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/Azure.ResourceManager.Confluent/samples/Generated/Samples/Sample_ConfluentOrganizationCollection.cs b/sdk/confluent/Azure.ResourceManager.Confluent/samples/Generated/Samples/Sample_ConfluentOrganizationCollection.cs
index e3df67821395..2b06733ab4bb 100644
--- a/sdk/confluent/Azure.ResourceManager.Confluent/samples/Generated/Samples/Sample_ConfluentOrganizationCollection.cs
+++ b/sdk/confluent/Azure.ResourceManager.Confluent/samples/Generated/Samples/Sample_ConfluentOrganizationCollection.cs
@@ -21,7 +21,7 @@ public partial class Sample_ConfluentOrganizationCollection
[Ignore("Only validating compilation of examples")]
public async Task CreateOrUpdate_OrganizationCreate()
{
- // Generated from example definition: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Organization_Create.json
+ // Generated from example definition: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-07-01/examples/Organization_Create.json
// this example is just showing the usage of "Organization_Create" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -73,7 +73,7 @@ public async Task CreateOrUpdate_OrganizationCreate()
[Ignore("Only validating compilation of examples")]
public async Task Get_OrganizationGet()
{
- // Generated from example definition: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Organization_Get.json
+ // Generated from example definition: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-07-01/examples/Organization_Get.json
// this example is just showing the usage of "Organization_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -106,7 +106,7 @@ public async Task Get_OrganizationGet()
[Ignore("Only validating compilation of examples")]
public async Task GetAll_OrganizationListByResourceGroup()
{
- // Generated from example definition: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Organization_ListByResourceGroup.json
+ // Generated from example definition: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-07-01/examples/Organization_ListByResourceGroup.json
// this example is just showing the usage of "Organization_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
@@ -141,7 +141,7 @@ public async Task GetAll_OrganizationListByResourceGroup()
[Ignore("Only validating compilation of examples")]
public async Task Exists_OrganizationGet()
{
- // Generated from example definition: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Organization_Get.json
+ // Generated from example definition: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-07-01/examples/Organization_Get.json
// this example is just showing the usage of "Organization_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -170,7 +170,7 @@ public async Task Exists_OrganizationGet()
[Ignore("Only validating compilation of examples")]
public async Task GetIfExists_OrganizationGet()
{
- // Generated from example definition: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Organization_Get.json
+ // Generated from example definition: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-07-01/examples/Organization_Get.json
// this example is just showing the usage of "Organization_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
diff --git a/sdk/confluent/Azure.ResourceManager.Confluent/samples/Generated/Samples/Sample_ConfluentOrganizationResource.cs b/sdk/confluent/Azure.ResourceManager.Confluent/samples/Generated/Samples/Sample_ConfluentOrganizationResource.cs
index 4f41145e8e49..28cb5b944194 100644
--- a/sdk/confluent/Azure.ResourceManager.Confluent/samples/Generated/Samples/Sample_ConfluentOrganizationResource.cs
+++ b/sdk/confluent/Azure.ResourceManager.Confluent/samples/Generated/Samples/Sample_ConfluentOrganizationResource.cs
@@ -20,7 +20,7 @@ public partial class Sample_ConfluentOrganizationResource
[Ignore("Only validating compilation of examples")]
public async Task Get_OrganizationGet()
{
- // Generated from example definition: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Organization_Get.json
+ // Generated from example definition: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-07-01/examples/Organization_Get.json
// this example is just showing the usage of "Organization_Get" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -50,7 +50,7 @@ public async Task Get_OrganizationGet()
[Ignore("Only validating compilation of examples")]
public async Task Delete_ConfluentDelete()
{
- // Generated from example definition: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Organization_Delete.json
+ // Generated from example definition: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-07-01/examples/Organization_Delete.json
// this example is just showing the usage of "Organization_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
@@ -76,7 +76,7 @@ public async Task Delete_ConfluentDelete()
[Ignore("Only validating compilation of examples")]
public async Task Update_ConfluentUpdate()
{
- // Generated from example definition: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Organization_Update.json
+ // Generated from example definition: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-07-01/examples/Organization_Update.json
// this example is just showing the usage of "Organization_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
@@ -110,129 +110,11 @@ public async Task Update_ConfluentUpdate()
Console.WriteLine($"Succeeded on id: {resourceData.Id}");
}
- [Test]
- [Ignore("Only validating compilation of examples")]
- public async Task GetEnvironments_OrganizationListEnvironments()
- {
- // Generated from example definition: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Organization_EnvironmentList.json
- // this example is just showing the usage of "Organization_ListEnvironments" operation, for the dependent resources, they will have to be created separately.
-
- // get your azure access token, for more details of how Azure SDK get your access 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 ConfluentOrganizationResource created on azure
- // for more information of creating ConfluentOrganizationResource, please refer to the document of ConfluentOrganizationResource
- string subscriptionId = "00000000-0000-0000-0000-000000000000";
- string resourceGroupName = "myResourceGroup";
- string organizationName = "myOrganization";
- ResourceIdentifier confluentOrganizationResourceId = ConfluentOrganizationResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, organizationName);
- ConfluentOrganizationResource confluentOrganization = client.GetConfluentOrganizationResource(confluentOrganizationResourceId);
-
- // invoke the operation and iterate over the result
- int? pageSize = 10;
- await foreach (SCEnvironmentRecord item in confluentOrganization.GetEnvironmentsAsync(pageSize: pageSize))
- {
- Console.WriteLine($"Succeeded: {item}");
- }
-
- Console.WriteLine("Succeeded");
- }
-
- [Test]
- [Ignore("Only validating compilation of examples")]
- public async Task GetEnvironment_OrganizationGetEnvironmentById()
- {
- // Generated from example definition: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Organization_GetEnvironmentById.json
- // this example is just showing the usage of "Organization_GetEnvironmentById" operation, for the dependent resources, they will have to be created separately.
-
- // get your azure access token, for more details of how Azure SDK get your access 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 ConfluentOrganizationResource created on azure
- // for more information of creating ConfluentOrganizationResource, please refer to the document of ConfluentOrganizationResource
- string subscriptionId = "00000000-0000-0000-0000-000000000000";
- string resourceGroupName = "myResourceGroup";
- string organizationName = "myOrganization";
- ResourceIdentifier confluentOrganizationResourceId = ConfluentOrganizationResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, organizationName);
- ConfluentOrganizationResource confluentOrganization = client.GetConfluentOrganizationResource(confluentOrganizationResourceId);
-
- // invoke the operation
- string environmentId = "dlz-f3a90de";
- SCEnvironmentRecord result = await confluentOrganization.GetEnvironmentAsync(environmentId);
-
- Console.WriteLine($"Succeeded: {result}");
- }
-
- [Test]
- [Ignore("Only validating compilation of examples")]
- public async Task GetClusters_OrganizationListClusters()
- {
- // Generated from example definition: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Organization_ClusterList.json
- // this example is just showing the usage of "Organization_ListClusters" operation, for the dependent resources, they will have to be created separately.
-
- // get your azure access token, for more details of how Azure SDK get your access 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 ConfluentOrganizationResource created on azure
- // for more information of creating ConfluentOrganizationResource, please refer to the document of ConfluentOrganizationResource
- string subscriptionId = "00000000-0000-0000-0000-000000000000";
- string resourceGroupName = "myResourceGroup";
- string organizationName = "myOrganization";
- ResourceIdentifier confluentOrganizationResourceId = ConfluentOrganizationResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, organizationName);
- ConfluentOrganizationResource confluentOrganization = client.GetConfluentOrganizationResource(confluentOrganizationResourceId);
-
- // invoke the operation and iterate over the result
- string environmentId = "env-12132";
- int? pageSize = 10;
- await foreach (SCClusterRecord item in confluentOrganization.GetClustersAsync(environmentId, pageSize: pageSize))
- {
- Console.WriteLine($"Succeeded: {item}");
- }
-
- Console.WriteLine("Succeeded");
- }
-
- [Test]
- [Ignore("Only validating compilation of examples")]
- public async Task GetSchemaRegistryClusters_OrganizationListSchemaRegistryClusters()
- {
- // Generated from example definition: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Organization_ListSchemaRegistryClusters.json
- // this example is just showing the usage of "Organization_ListSchemaRegistryClusters" operation, for the dependent resources, they will have to be created separately.
-
- // get your azure access token, for more details of how Azure SDK get your access 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 ConfluentOrganizationResource created on azure
- // for more information of creating ConfluentOrganizationResource, please refer to the document of ConfluentOrganizationResource
- string subscriptionId = "00000000-0000-0000-0000-000000000000";
- string resourceGroupName = "myResourceGroup";
- string organizationName = "myOrganization";
- ResourceIdentifier confluentOrganizationResourceId = ConfluentOrganizationResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, organizationName);
- ConfluentOrganizationResource confluentOrganization = client.GetConfluentOrganizationResource(confluentOrganizationResourceId);
-
- // invoke the operation and iterate over the result
- string environmentId = "env-stgcczjp2j3";
- await foreach (SchemaRegistryClusterRecord item in confluentOrganization.GetSchemaRegistryClustersAsync(environmentId))
- {
- Console.WriteLine($"Succeeded: {item}");
- }
-
- Console.WriteLine("Succeeded");
- }
-
[Test]
[Ignore("Only validating compilation of examples")]
public async Task GetRegions_OrganizationListRegions()
{
- // Generated from example definition: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Organization_ListRegions.json
+ // Generated from example definition: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-07-01/examples/Organization_ListRegions.json
// this example is just showing the usage of "Organization_ListRegions" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -263,44 +145,11 @@ public async Task GetRegions_OrganizationListRegions()
Console.WriteLine($"Succeeded: {result}");
}
- [Test]
- [Ignore("Only validating compilation of examples")]
- public async Task CreateApiKey_OrganizationCreateAPIKey()
- {
- // Generated from example definition: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Organization_CreateClusterAPIKey.json
- // this example is just showing the usage of "Organization_CreateApiKey" operation, for the dependent resources, they will have to be created separately.
-
- // get your azure access token, for more details of how Azure SDK get your access 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 ConfluentOrganizationResource created on azure
- // for more information of creating ConfluentOrganizationResource, please refer to the document of ConfluentOrganizationResource
- string subscriptionId = "00000000-0000-0000-0000-000000000000";
- string resourceGroupName = "myResourceGroup";
- string organizationName = "myOrganization";
- ResourceIdentifier confluentOrganizationResourceId = ConfluentOrganizationResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, organizationName);
- ConfluentOrganizationResource confluentOrganization = client.GetConfluentOrganizationResource(confluentOrganizationResourceId);
-
- // invoke the operation
- string environmentId = "env-12132";
- string clusterId = "clusterId-123";
- ConfluentApiKeyCreateContent content = new ConfluentApiKeyCreateContent
- {
- Name = "CI kafka access key",
- Description = "This API key provides kafka access to cluster x",
- };
- ConfluentApiKeyRecord result = await confluentOrganization.CreateApiKeyAsync(environmentId, clusterId, content);
-
- Console.WriteLine($"Succeeded: {result}");
- }
-
[Test]
[Ignore("Only validating compilation of examples")]
public async Task DeleteClusterApiKey_OrganizationDeleteClusterAPIKey()
{
- // Generated from example definition: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Organization_DeleteClusterAPIKey.json
+ // Generated from example definition: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-07-01/examples/Organization_DeleteClusterAPIKey.json
// this example is just showing the usage of "Organization_DeleteClusterApiKey" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -327,7 +176,7 @@ public async Task DeleteClusterApiKey_OrganizationDeleteClusterAPIKey()
[Ignore("Only validating compilation of examples")]
public async Task GetClusterApiKey_OrganizationGetClusterAPIKey()
{
- // Generated from example definition: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Organization_GetClusterAPIKey.json
+ // Generated from example definition: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-07-01/examples/Organization_GetClusterAPIKey.json
// this example is just showing the usage of "Organization_GetClusterApiKey" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -350,67 +199,11 @@ public async Task GetClusterApiKey_OrganizationGetClusterAPIKey()
Console.WriteLine($"Succeeded: {result}");
}
- [Test]
- [Ignore("Only validating compilation of examples")]
- public async Task GetSchemaRegistryCluster_OrganizationGetSchemaRegistryClusterById()
- {
- // Generated from example definition: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Organization_GetSchemaRegistryClusterById.json
- // this example is just showing the usage of "Organization_GetSchemaRegistryClusterById" operation, for the dependent resources, they will have to be created separately.
-
- // get your azure access token, for more details of how Azure SDK get your access 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 ConfluentOrganizationResource created on azure
- // for more information of creating ConfluentOrganizationResource, please refer to the document of ConfluentOrganizationResource
- string subscriptionId = "00000000-0000-0000-0000-000000000000";
- string resourceGroupName = "myResourceGroup";
- string organizationName = "myOrganization";
- ResourceIdentifier confluentOrganizationResourceId = ConfluentOrganizationResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, organizationName);
- ConfluentOrganizationResource confluentOrganization = client.GetConfluentOrganizationResource(confluentOrganizationResourceId);
-
- // invoke the operation
- string environmentId = "env-stgcczjp2j3";
- string clusterId = "lsrc-stgczkq22z";
- SchemaRegistryClusterRecord result = await confluentOrganization.GetSchemaRegistryClusterAsync(environmentId, clusterId);
-
- Console.WriteLine($"Succeeded: {result}");
- }
-
- [Test]
- [Ignore("Only validating compilation of examples")]
- public async Task GetCluster_OrganizationGetClusterById()
- {
- // Generated from example definition: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Organization_GetClusterById.json
- // this example is just showing the usage of "Organization_GetClusterById" operation, for the dependent resources, they will have to be created separately.
-
- // get your azure access token, for more details of how Azure SDK get your access 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 ConfluentOrganizationResource created on azure
- // for more information of creating ConfluentOrganizationResource, please refer to the document of ConfluentOrganizationResource
- string subscriptionId = "00000000-0000-0000-0000-000000000000";
- string resourceGroupName = "myResourceGroup";
- string organizationName = "myOrganization";
- ResourceIdentifier confluentOrganizationResourceId = ConfluentOrganizationResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, organizationName);
- ConfluentOrganizationResource confluentOrganization = client.GetConfluentOrganizationResource(confluentOrganizationResourceId);
-
- // invoke the operation
- string environmentId = "env-12132";
- string clusterId = "dlz-f3a90de";
- SCClusterRecord result = await confluentOrganization.GetClusterAsync(environmentId, clusterId);
-
- Console.WriteLine($"Succeeded: {result}");
- }
-
[Test]
[Ignore("Only validating compilation of examples")]
public async Task GetAccessUsers_AccessUsersList()
{
- // Generated from example definition: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Access_UsersList.json
+ // Generated from example definition: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-07-01/examples/Access_UsersList.json
// this example is just showing the usage of "Access_ListUsers" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -444,7 +237,7 @@ public async Task GetAccessUsers_AccessUsersList()
[Ignore("Only validating compilation of examples")]
public async Task GetAccessServiceAccounts_AccessServiceAccountsList()
{
- // Generated from example definition: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Access_ServiceAccountsList.json
+ // Generated from example definition: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-07-01/examples/Access_ServiceAccountsList.json
// this example is just showing the usage of "Access_ListServiceAccounts" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -478,7 +271,7 @@ public async Task GetAccessServiceAccounts_AccessServiceAccountsList()
[Ignore("Only validating compilation of examples")]
public async Task GetAccessInvitations_AccessInvitationsList()
{
- // Generated from example definition: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Access_InvitationsList.json
+ // Generated from example definition: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-07-01/examples/Access_InvitationsList.json
// this example is just showing the usage of "Access_ListInvitations" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -513,7 +306,7 @@ public async Task GetAccessInvitations_AccessInvitationsList()
[Ignore("Only validating compilation of examples")]
public async Task InviteUser_AccessInviteUser()
{
- // Generated from example definition: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Access_InviteUser.json
+ // Generated from example definition: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-07-01/examples/Access_InviteUser.json
// this example is just showing the usage of "Access_InviteUser" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -547,7 +340,7 @@ public async Task InviteUser_AccessInviteUser()
[Ignore("Only validating compilation of examples")]
public async Task GetAccessEnvironments_AccessEnvironmentList()
{
- // Generated from example definition: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Access_EnvironmentList.json
+ // Generated from example definition: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-07-01/examples/Access_EnvironmentList.json
// this example is just showing the usage of "Access_ListEnvironments" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -581,7 +374,7 @@ public async Task GetAccessEnvironments_AccessEnvironmentList()
[Ignore("Only validating compilation of examples")]
public async Task GetAccessClusters_AccessClusterList()
{
- // Generated from example definition: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Access_ClusterList.json
+ // Generated from example definition: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-07-01/examples/Access_ClusterList.json
// this example is just showing the usage of "Access_ListClusters" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -615,7 +408,7 @@ public async Task GetAccessClusters_AccessClusterList()
[Ignore("Only validating compilation of examples")]
public async Task GetAccessRoleBindings_AccessRoleBindingList()
{
- // Generated from example definition: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Access_RoleBindingList.json
+ // Generated from example definition: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-07-01/examples/Access_RoleBindingList.json
// this example is just showing the usage of "Access_ListRoleBindings" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -649,7 +442,7 @@ public async Task GetAccessRoleBindings_AccessRoleBindingList()
[Ignore("Only validating compilation of examples")]
public async Task CreateAccessRoleBinding_AccessCreateRoleBinding()
{
- // Generated from example definition: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Access_CreateRoleBinding.json
+ // Generated from example definition: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-07-01/examples/Access_CreateRoleBinding.json
// this example is just showing the usage of "Access_CreateRoleBinding" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -681,7 +474,7 @@ public async Task CreateAccessRoleBinding_AccessCreateRoleBinding()
[Ignore("Only validating compilation of examples")]
public async Task DeleteAccessRoleBinding_AccessDeleteRoleBinding()
{
- // Generated from example definition: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Access_DeleteRoleBinding.json
+ // Generated from example definition: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-07-01/examples/Access_DeleteRoleBinding.json
// this example is just showing the usage of "Access_DeleteRoleBinding" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -708,7 +501,7 @@ public async Task DeleteAccessRoleBinding_AccessDeleteRoleBinding()
[Ignore("Only validating compilation of examples")]
public async Task GetAccessRoleBindingNames_AccessRoleBindingNameList()
{
- // Generated from example definition: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Access_RoleBindingNameList.json
+ // Generated from example definition: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-07-01/examples/Access_RoleBindingNameList.json
// this example is just showing the usage of "Access_ListRoleBindingNameList" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
diff --git a/sdk/confluent/Azure.ResourceManager.Confluent/samples/Generated/Samples/Sample_ConnectorResource.cs b/sdk/confluent/Azure.ResourceManager.Confluent/samples/Generated/Samples/Sample_ConnectorResource.cs
new file mode 100644
index 000000000000..32c8b5b8c338
--- /dev/null
+++ b/sdk/confluent/Azure.ResourceManager.Confluent/samples/Generated/Samples/Sample_ConnectorResource.cs
@@ -0,0 +1,143 @@
+// 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.Confluent.Models;
+using NUnit.Framework;
+
+namespace Azure.ResourceManager.Confluent.Samples
+{
+ public partial class Sample_ConnectorResource
+ {
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task Get_ConnectorGet()
+ {
+ // Generated from example definition: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-07-01/examples/Organization_GetConnectorByName.json
+ // this example is just showing the usage of "Connector_Get" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this ConnectorResource created on azure
+ // for more information of creating ConnectorResource, please refer to the document of ConnectorResource
+ string subscriptionId = "00000000-0000-0000-0000-000000000000";
+ string resourceGroupName = "myResourceGroup";
+ string organizationName = "myOrganization";
+ string environmentId = "env-12132";
+ string clusterId = "dlz-f3a90de";
+ string connectorName = "connector-1";
+ ResourceIdentifier connectorResourceId = ConnectorResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, organizationName, environmentId, clusterId, connectorName);
+ ConnectorResource connectorResource = client.GetConnectorResource(connectorResourceId);
+
+ // invoke the operation
+ ConnectorResource result = await connectorResource.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
+ ConnectorResourceData 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_ConnectorDelete()
+ {
+ // Generated from example definition: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-07-01/examples/Organization_DeleteConnectorByName.json
+ // this example is just showing the usage of "Connector_Delete" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this ConnectorResource created on azure
+ // for more information of creating ConnectorResource, please refer to the document of ConnectorResource
+ string subscriptionId = "00000000-0000-0000-0000-000000000000";
+ string resourceGroupName = "myResourceGroup";
+ string organizationName = "myOrganization";
+ string environmentId = "env-12132";
+ string clusterId = "dlz-f3a90de";
+ string connectorName = "connector-1";
+ ResourceIdentifier connectorResourceId = ConnectorResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, organizationName, environmentId, clusterId, connectorName);
+ ConnectorResource connectorResource = client.GetConnectorResource(connectorResourceId);
+
+ // invoke the operation
+ await connectorResource.DeleteAsync(WaitUntil.Completed);
+
+ Console.WriteLine("Succeeded");
+ }
+
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task Update_ConnectorCreateOrUpdate()
+ {
+ // Generated from example definition: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-07-01/examples/Organization_CreateConnectorByName.json
+ // this example is just showing the usage of "Connector_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this ConnectorResource created on azure
+ // for more information of creating ConnectorResource, please refer to the document of ConnectorResource
+ string subscriptionId = "00000000-0000-0000-0000-000000000000";
+ string resourceGroupName = "myResourceGroup";
+ string organizationName = "myOrganization";
+ string environmentId = "env-12132";
+ string clusterId = "dlz-f3a90de";
+ string connectorName = "connector-1";
+ ResourceIdentifier connectorResourceId = ConnectorResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, organizationName, environmentId, clusterId, connectorName);
+ ConnectorResource connectorResource = client.GetConnectorResource(connectorResourceId);
+
+ // invoke the operation
+ ConnectorResourceData data = new ConnectorResourceData
+ {
+ ConnectorBasicInfo = new ConnectorInfoBase
+ {
+ ConnectorType = ConnectorType.Sink,
+ ConnectorClass = new ConnectorClass("AZUREBLOBSTORAGESINK"),
+ ConnectorName = "connector-1",
+ },
+ ConnectorServiceTypeInfo = new AzureBlobStorageSinkConnectorServiceInfo
+ {
+ StorageAccountName = "stcfaccount-1",
+ StorageAccountKey = "*******",
+ StorageContainerName = "continer-1",
+ },
+ PartnerConnectorInfo = new KafkaAzureBlobStorageSinkConnectorInfo
+ {
+ AuthType = AuthType.KafkaApiKEY,
+ InputFormat = DataFormatType.Json,
+ OutputFormat = DataFormatType.Json,
+ ApiKey = "xxxxxxx",
+ ApiSecret = "*******",
+ Topics = { "topic-1" },
+ TopicsDir = "topicsDir",
+ FlushSize = "1000",
+ MaxTasks = "2",
+ TimeInterval = "DAILY",
+ },
+ };
+ ArmOperation lro = await connectorResource.UpdateAsync(WaitUntil.Completed, data);
+ ConnectorResource result = lro.Value;
+
+ // the variable result is a resource, you could call other operations on this instance as well
+ // but just for demo, we get its data from this resource instance
+ ConnectorResourceData resourceData = result.Data;
+ // for demo we just print out the id
+ Console.WriteLine($"Succeeded on id: {resourceData.Id}");
+ }
+ }
+}
diff --git a/sdk/confluent/Azure.ResourceManager.Confluent/samples/Generated/Samples/Sample_ConnectorResourceCollection.cs b/sdk/confluent/Azure.ResourceManager.Confluent/samples/Generated/Samples/Sample_ConnectorResourceCollection.cs
new file mode 100644
index 000000000000..ee39d13840e3
--- /dev/null
+++ b/sdk/confluent/Azure.ResourceManager.Confluent/samples/Generated/Samples/Sample_ConnectorResourceCollection.cs
@@ -0,0 +1,235 @@
+// 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.Confluent.Models;
+using NUnit.Framework;
+
+namespace Azure.ResourceManager.Confluent.Samples
+{
+ public partial class Sample_ConnectorResourceCollection
+ {
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task CreateOrUpdate_ConnectorCreateOrUpdate()
+ {
+ // Generated from example definition: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-07-01/examples/Organization_CreateConnectorByName.json
+ // this example is just showing the usage of "Connector_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this SCClusterRecordResource created on azure
+ // for more information of creating SCClusterRecordResource, please refer to the document of SCClusterRecordResource
+ string subscriptionId = "00000000-0000-0000-0000-000000000000";
+ string resourceGroupName = "myResourceGroup";
+ string organizationName = "myOrganization";
+ string environmentId = "env-12132";
+ string clusterId = "dlz-f3a90de";
+ ResourceIdentifier scClusterRecordResourceId = SCClusterRecordResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, organizationName, environmentId, clusterId);
+ SCClusterRecordResource scClusterRecord = client.GetSCClusterRecordResource(scClusterRecordResourceId);
+
+ // get the collection of this ConnectorResource
+ ConnectorResourceCollection collection = scClusterRecord.GetConnectorResources();
+
+ // invoke the operation
+ string connectorName = "connector-1";
+ ConnectorResourceData data = new ConnectorResourceData
+ {
+ ConnectorBasicInfo = new ConnectorInfoBase
+ {
+ ConnectorType = ConnectorType.Sink,
+ ConnectorClass = new ConnectorClass("AZUREBLOBSTORAGESINK"),
+ ConnectorName = "connector-1",
+ },
+ ConnectorServiceTypeInfo = new AzureBlobStorageSinkConnectorServiceInfo
+ {
+ StorageAccountName = "stcfaccount-1",
+ StorageAccountKey = "*******",
+ StorageContainerName = "continer-1",
+ },
+ PartnerConnectorInfo = new KafkaAzureBlobStorageSinkConnectorInfo
+ {
+ AuthType = AuthType.KafkaApiKEY,
+ InputFormat = DataFormatType.Json,
+ OutputFormat = DataFormatType.Json,
+ ApiKey = "xxxxxxx",
+ ApiSecret = "*******",
+ Topics = { "topic-1" },
+ TopicsDir = "topicsDir",
+ FlushSize = "1000",
+ MaxTasks = "2",
+ TimeInterval = "DAILY",
+ },
+ };
+ ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, connectorName, data);
+ ConnectorResource result = lro.Value;
+
+ // the variable result is a resource, you could call other operations on this instance as well
+ // but just for demo, we get its data from this resource instance
+ ConnectorResourceData 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_ConnectorGet()
+ {
+ // Generated from example definition: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-07-01/examples/Organization_GetConnectorByName.json
+ // this example is just showing the usage of "Connector_Get" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this SCClusterRecordResource created on azure
+ // for more information of creating SCClusterRecordResource, please refer to the document of SCClusterRecordResource
+ string subscriptionId = "00000000-0000-0000-0000-000000000000";
+ string resourceGroupName = "myResourceGroup";
+ string organizationName = "myOrganization";
+ string environmentId = "env-12132";
+ string clusterId = "dlz-f3a90de";
+ ResourceIdentifier scClusterRecordResourceId = SCClusterRecordResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, organizationName, environmentId, clusterId);
+ SCClusterRecordResource scClusterRecord = client.GetSCClusterRecordResource(scClusterRecordResourceId);
+
+ // get the collection of this ConnectorResource
+ ConnectorResourceCollection collection = scClusterRecord.GetConnectorResources();
+
+ // invoke the operation
+ string connectorName = "connector-1";
+ ConnectorResource result = await collection.GetAsync(connectorName);
+
+ // the variable result is a resource, you could call other operations on this instance as well
+ // but just for demo, we get its data from this resource instance
+ ConnectorResourceData 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_ConnectorList()
+ {
+ // Generated from example definition: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-07-01/examples/Organization_ConnectorList.json
+ // this example is just showing the usage of "Connector_List" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this SCClusterRecordResource created on azure
+ // for more information of creating SCClusterRecordResource, please refer to the document of SCClusterRecordResource
+ string subscriptionId = "00000000-0000-0000-0000-000000000000";
+ string resourceGroupName = "myResourceGroup";
+ string organizationName = "myOrganization";
+ string environmentId = "env-12132";
+ string clusterId = "dlz-f3a90de";
+ ResourceIdentifier scClusterRecordResourceId = SCClusterRecordResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, organizationName, environmentId, clusterId);
+ SCClusterRecordResource scClusterRecord = client.GetSCClusterRecordResource(scClusterRecordResourceId);
+
+ // get the collection of this ConnectorResource
+ ConnectorResourceCollection collection = scClusterRecord.GetConnectorResources();
+
+ // invoke the operation and iterate over the result
+ int? pageSize = 10;
+ await foreach (ConnectorResource item in collection.GetAllAsync(pageSize: pageSize))
+ {
+ // 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
+ ConnectorResourceData 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_ConnectorGet()
+ {
+ // Generated from example definition: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-07-01/examples/Organization_GetConnectorByName.json
+ // this example is just showing the usage of "Connector_Get" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this SCClusterRecordResource created on azure
+ // for more information of creating SCClusterRecordResource, please refer to the document of SCClusterRecordResource
+ string subscriptionId = "00000000-0000-0000-0000-000000000000";
+ string resourceGroupName = "myResourceGroup";
+ string organizationName = "myOrganization";
+ string environmentId = "env-12132";
+ string clusterId = "dlz-f3a90de";
+ ResourceIdentifier scClusterRecordResourceId = SCClusterRecordResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, organizationName, environmentId, clusterId);
+ SCClusterRecordResource scClusterRecord = client.GetSCClusterRecordResource(scClusterRecordResourceId);
+
+ // get the collection of this ConnectorResource
+ ConnectorResourceCollection collection = scClusterRecord.GetConnectorResources();
+
+ // invoke the operation
+ string connectorName = "connector-1";
+ bool result = await collection.ExistsAsync(connectorName);
+
+ Console.WriteLine($"Succeeded: {result}");
+ }
+
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task GetIfExists_ConnectorGet()
+ {
+ // Generated from example definition: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-07-01/examples/Organization_GetConnectorByName.json
+ // this example is just showing the usage of "Connector_Get" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this SCClusterRecordResource created on azure
+ // for more information of creating SCClusterRecordResource, please refer to the document of SCClusterRecordResource
+ string subscriptionId = "00000000-0000-0000-0000-000000000000";
+ string resourceGroupName = "myResourceGroup";
+ string organizationName = "myOrganization";
+ string environmentId = "env-12132";
+ string clusterId = "dlz-f3a90de";
+ ResourceIdentifier scClusterRecordResourceId = SCClusterRecordResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, organizationName, environmentId, clusterId);
+ SCClusterRecordResource scClusterRecord = client.GetSCClusterRecordResource(scClusterRecordResourceId);
+
+ // get the collection of this ConnectorResource
+ ConnectorResourceCollection collection = scClusterRecord.GetConnectorResources();
+
+ // invoke the operation
+ string connectorName = "connector-1";
+ NullableResponse response = await collection.GetIfExistsAsync(connectorName);
+ ConnectorResource result = response.HasValue ? response.Value : null;
+
+ if (result == null)
+ {
+ Console.WriteLine("Succeeded with null as result");
+ }
+ else
+ {
+ // the variable result is a resource, you could call other operations on this instance as well
+ // but just for demo, we get its data from this resource instance
+ ConnectorResourceData resourceData = result.Data;
+ // for demo we just print out the id
+ Console.WriteLine($"Succeeded on id: {resourceData.Id}");
+ }
+ }
+ }
+}
diff --git a/sdk/confluent/Azure.ResourceManager.Confluent/samples/Generated/Samples/Sample_ResourceGroupResourceExtensions.cs b/sdk/confluent/Azure.ResourceManager.Confluent/samples/Generated/Samples/Sample_ResourceGroupResourceExtensions.cs
index b6c14aed8114..b034337b0aec 100644
--- a/sdk/confluent/Azure.ResourceManager.Confluent/samples/Generated/Samples/Sample_ResourceGroupResourceExtensions.cs
+++ b/sdk/confluent/Azure.ResourceManager.Confluent/samples/Generated/Samples/Sample_ResourceGroupResourceExtensions.cs
@@ -21,7 +21,7 @@ public partial class Sample_ResourceGroupResourceExtensions
[Ignore("Only validating compilation of examples")]
public async Task ValidateOrganization_ValidationsValidateOrganizations()
{
- // Generated from example definition: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Validations_ValidateOrganizations.json
+ // Generated from example definition: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-07-01/examples/Validations_ValidateOrganizations.json
// this example is just showing the usage of "Validations_ValidateOrganization" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -68,7 +68,7 @@ public async Task ValidateOrganization_ValidationsValidateOrganizations()
[Ignore("Only validating compilation of examples")]
public async Task ValidateOrganizationV2_ValidationsValidateOrganizations()
{
- // Generated from example definition: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Validations_ValidateOrganizationsV2.json
+ // Generated from example definition: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-07-01/examples/Validations_ValidateOrganizationsV2.json
// this example is just showing the usage of "Validations_ValidateOrganizationV2" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
diff --git a/sdk/confluent/Azure.ResourceManager.Confluent/samples/Generated/Samples/Sample_SCClusterRecordCollection.cs b/sdk/confluent/Azure.ResourceManager.Confluent/samples/Generated/Samples/Sample_SCClusterRecordCollection.cs
new file mode 100644
index 000000000000..30c150848a32
--- /dev/null
+++ b/sdk/confluent/Azure.ResourceManager.Confluent/samples/Generated/Samples/Sample_SCClusterRecordCollection.cs
@@ -0,0 +1,214 @@
+// 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.Confluent.Models;
+using NUnit.Framework;
+
+namespace Azure.ResourceManager.Confluent.Samples
+{
+ public partial class Sample_SCClusterRecordCollection
+ {
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task CreateOrUpdate_ClusterCreateOrUpdate()
+ {
+ // Generated from example definition: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-07-01/examples/Cluster_Create.json
+ // this example is just showing the usage of "Cluster_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 SCEnvironmentRecordResource created on azure
+ // for more information of creating SCEnvironmentRecordResource, please refer to the document of SCEnvironmentRecordResource
+ string subscriptionId = "00000000-0000-0000-0000-000000000000";
+ string resourceGroupName = "myResourceGroup";
+ string organizationName = "myOrganization";
+ string environmentId = "env-1";
+ ResourceIdentifier scEnvironmentRecordResourceId = SCEnvironmentRecordResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, organizationName, environmentId);
+ SCEnvironmentRecordResource scEnvironmentRecord = client.GetSCEnvironmentRecordResource(scEnvironmentRecordResourceId);
+
+ // get the collection of this SCClusterRecordResource
+ SCClusterRecordCollection collection = scEnvironmentRecord.GetSCClusterRecords();
+
+ // invoke the operation
+ string clusterId = "cluster-1";
+ SCClusterRecordData data = new SCClusterRecordData
+ {
+ Spec = new SCClusterSpecEntity
+ {
+ Package = Package.Essentials,
+ Region = "us-east4",
+ Environment = new SCClusterNetworkEnvironmentEntity
+ {
+ Id = "env-1",
+ },
+ },
+ };
+ ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, clusterId, data);
+ SCClusterRecordResource 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
+ SCClusterRecordData 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_OrganizationGetClusterById()
+ {
+ // Generated from example definition: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-07-01/examples/Organization_GetClusterById.json
+ // this example is just showing the usage of "Organization_GetClusterById" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access 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 SCEnvironmentRecordResource created on azure
+ // for more information of creating SCEnvironmentRecordResource, please refer to the document of SCEnvironmentRecordResource
+ string subscriptionId = "00000000-0000-0000-0000-000000000000";
+ string resourceGroupName = "myResourceGroup";
+ string organizationName = "myOrganization";
+ string environmentId = "env-12132";
+ ResourceIdentifier scEnvironmentRecordResourceId = SCEnvironmentRecordResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, organizationName, environmentId);
+ SCEnvironmentRecordResource scEnvironmentRecord = client.GetSCEnvironmentRecordResource(scEnvironmentRecordResourceId);
+
+ // get the collection of this SCClusterRecordResource
+ SCClusterRecordCollection collection = scEnvironmentRecord.GetSCClusterRecords();
+
+ // invoke the operation
+ string clusterId = "dlz-f3a90de";
+ SCClusterRecordResource result = await collection.GetAsync(clusterId);
+
+ // 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
+ SCClusterRecordData 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_OrganizationListClusters()
+ {
+ // Generated from example definition: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-07-01/examples/Organization_ClusterList.json
+ // this example is just showing the usage of "Organization_ListClusters" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access 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 SCEnvironmentRecordResource created on azure
+ // for more information of creating SCEnvironmentRecordResource, please refer to the document of SCEnvironmentRecordResource
+ string subscriptionId = "00000000-0000-0000-0000-000000000000";
+ string resourceGroupName = "myResourceGroup";
+ string organizationName = "myOrganization";
+ string environmentId = "env-12132";
+ ResourceIdentifier scEnvironmentRecordResourceId = SCEnvironmentRecordResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, organizationName, environmentId);
+ SCEnvironmentRecordResource scEnvironmentRecord = client.GetSCEnvironmentRecordResource(scEnvironmentRecordResourceId);
+
+ // get the collection of this SCClusterRecordResource
+ SCClusterRecordCollection collection = scEnvironmentRecord.GetSCClusterRecords();
+
+ // invoke the operation and iterate over the result
+ int? pageSize = 10;
+ await foreach (SCClusterRecordResource item in collection.GetAllAsync(pageSize: pageSize))
+ {
+ // 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
+ SCClusterRecordData 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_OrganizationGetClusterById()
+ {
+ // Generated from example definition: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-07-01/examples/Organization_GetClusterById.json
+ // this example is just showing the usage of "Organization_GetClusterById" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access 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 SCEnvironmentRecordResource created on azure
+ // for more information of creating SCEnvironmentRecordResource, please refer to the document of SCEnvironmentRecordResource
+ string subscriptionId = "00000000-0000-0000-0000-000000000000";
+ string resourceGroupName = "myResourceGroup";
+ string organizationName = "myOrganization";
+ string environmentId = "env-12132";
+ ResourceIdentifier scEnvironmentRecordResourceId = SCEnvironmentRecordResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, organizationName, environmentId);
+ SCEnvironmentRecordResource scEnvironmentRecord = client.GetSCEnvironmentRecordResource(scEnvironmentRecordResourceId);
+
+ // get the collection of this SCClusterRecordResource
+ SCClusterRecordCollection collection = scEnvironmentRecord.GetSCClusterRecords();
+
+ // invoke the operation
+ string clusterId = "dlz-f3a90de";
+ bool result = await collection.ExistsAsync(clusterId);
+
+ Console.WriteLine($"Succeeded: {result}");
+ }
+
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task GetIfExists_OrganizationGetClusterById()
+ {
+ // Generated from example definition: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-07-01/examples/Organization_GetClusterById.json
+ // this example is just showing the usage of "Organization_GetClusterById" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access 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 SCEnvironmentRecordResource created on azure
+ // for more information of creating SCEnvironmentRecordResource, please refer to the document of SCEnvironmentRecordResource
+ string subscriptionId = "00000000-0000-0000-0000-000000000000";
+ string resourceGroupName = "myResourceGroup";
+ string organizationName = "myOrganization";
+ string environmentId = "env-12132";
+ ResourceIdentifier scEnvironmentRecordResourceId = SCEnvironmentRecordResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, organizationName, environmentId);
+ SCEnvironmentRecordResource scEnvironmentRecord = client.GetSCEnvironmentRecordResource(scEnvironmentRecordResourceId);
+
+ // get the collection of this SCClusterRecordResource
+ SCClusterRecordCollection collection = scEnvironmentRecord.GetSCClusterRecords();
+
+ // invoke the operation
+ string clusterId = "dlz-f3a90de";
+ NullableResponse response = await collection.GetIfExistsAsync(clusterId);
+ SCClusterRecordResource 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
+ SCClusterRecordData resourceData = result.Data;
+ // for demo we just print out the id
+ Console.WriteLine($"Succeeded on id: {resourceData.Id}");
+ }
+ }
+ }
+}
diff --git a/sdk/confluent/Azure.ResourceManager.Confluent/samples/Generated/Samples/Sample_SCClusterRecordResource.cs b/sdk/confluent/Azure.ResourceManager.Confluent/samples/Generated/Samples/Sample_SCClusterRecordResource.cs
new file mode 100644
index 000000000000..3538ff0756f9
--- /dev/null
+++ b/sdk/confluent/Azure.ResourceManager.Confluent/samples/Generated/Samples/Sample_SCClusterRecordResource.cs
@@ -0,0 +1,157 @@
+// 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.Confluent.Models;
+using NUnit.Framework;
+
+namespace Azure.ResourceManager.Confluent.Samples
+{
+ public partial class Sample_SCClusterRecordResource
+ {
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task Get_OrganizationGetClusterById()
+ {
+ // Generated from example definition: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-07-01/examples/Organization_GetClusterById.json
+ // this example is just showing the usage of "Organization_GetClusterById" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access 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 SCClusterRecordResource created on azure
+ // for more information of creating SCClusterRecordResource, please refer to the document of SCClusterRecordResource
+ string subscriptionId = "00000000-0000-0000-0000-000000000000";
+ string resourceGroupName = "myResourceGroup";
+ string organizationName = "myOrganization";
+ string environmentId = "env-12132";
+ string clusterId = "dlz-f3a90de";
+ ResourceIdentifier scClusterRecordResourceId = SCClusterRecordResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, organizationName, environmentId, clusterId);
+ SCClusterRecordResource scClusterRecord = client.GetSCClusterRecordResource(scClusterRecordResourceId);
+
+ // invoke the operation
+ SCClusterRecordResource result = await scClusterRecord.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
+ SCClusterRecordData 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_ClusterDelete()
+ {
+ // Generated from example definition: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-07-01/examples/Cluster_Delete.json
+ // this example is just showing the usage of "Cluster_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 SCClusterRecordResource created on azure
+ // for more information of creating SCClusterRecordResource, please refer to the document of SCClusterRecordResource
+ string subscriptionId = "00000000-0000-0000-0000-000000000000";
+ string resourceGroupName = "myResourceGroup";
+ string organizationName = "myOrganization";
+ string environmentId = "env-12132";
+ string clusterId = "dlz-f3a90de";
+ ResourceIdentifier scClusterRecordResourceId = SCClusterRecordResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, organizationName, environmentId, clusterId);
+ SCClusterRecordResource scClusterRecord = client.GetSCClusterRecordResource(scClusterRecordResourceId);
+
+ // invoke the operation
+ await scClusterRecord.DeleteAsync(WaitUntil.Completed);
+
+ Console.WriteLine("Succeeded");
+ }
+
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task Update_ClusterCreateOrUpdate()
+ {
+ // Generated from example definition: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-07-01/examples/Cluster_Create.json
+ // this example is just showing the usage of "Cluster_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 SCClusterRecordResource created on azure
+ // for more information of creating SCClusterRecordResource, please refer to the document of SCClusterRecordResource
+ string subscriptionId = "00000000-0000-0000-0000-000000000000";
+ string resourceGroupName = "myResourceGroup";
+ string organizationName = "myOrganization";
+ string environmentId = "env-1";
+ string clusterId = "cluster-1";
+ ResourceIdentifier scClusterRecordResourceId = SCClusterRecordResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, organizationName, environmentId, clusterId);
+ SCClusterRecordResource scClusterRecord = client.GetSCClusterRecordResource(scClusterRecordResourceId);
+
+ // invoke the operation
+ SCClusterRecordData data = new SCClusterRecordData
+ {
+ Spec = new SCClusterSpecEntity
+ {
+ Package = Package.Essentials,
+ Region = "us-east4",
+ Environment = new SCClusterNetworkEnvironmentEntity
+ {
+ Id = "env-1",
+ },
+ },
+ };
+ ArmOperation lro = await scClusterRecord.UpdateAsync(WaitUntil.Completed, data);
+ SCClusterRecordResource 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
+ SCClusterRecordData 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 CreateApiKey_OrganizationCreateClusterAPIKey()
+ {
+ // Generated from example definition: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-07-01/examples/Organization_CreateClusterAPIKey.json
+ // this example is just showing the usage of "Organization_CreateApiKey" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access 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 SCClusterRecordResource created on azure
+ // for more information of creating SCClusterRecordResource, please refer to the document of SCClusterRecordResource
+ string subscriptionId = "00000000-0000-0000-0000-000000000000";
+ string resourceGroupName = "myResourceGroup";
+ string organizationName = "myOrganization";
+ string environmentId = "env-12132";
+ string clusterId = "clusterId-123";
+ ResourceIdentifier scClusterRecordResourceId = SCClusterRecordResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, organizationName, environmentId, clusterId);
+ SCClusterRecordResource scClusterRecord = client.GetSCClusterRecordResource(scClusterRecordResourceId);
+
+ // invoke the operation
+ ConfluentApiKeyCreateContent content = new ConfluentApiKeyCreateContent
+ {
+ Name = "CI kafka access key",
+ Description = "This API key provides kafka access to cluster x",
+ };
+ ConfluentApiKeyRecord result = await scClusterRecord.CreateApiKeyAsync(content);
+
+ Console.WriteLine($"Succeeded: {result}");
+ }
+ }
+}
diff --git a/sdk/confluent/Azure.ResourceManager.Confluent/samples/Generated/Samples/Sample_SCEnvironmentRecordCollection.cs b/sdk/confluent/Azure.ResourceManager.Confluent/samples/Generated/Samples/Sample_SCEnvironmentRecordCollection.cs
new file mode 100644
index 000000000000..8bf0a4015935
--- /dev/null
+++ b/sdk/confluent/Azure.ResourceManager.Confluent/samples/Generated/Samples/Sample_SCEnvironmentRecordCollection.cs
@@ -0,0 +1,201 @@
+// 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.Confluent.Models;
+using NUnit.Framework;
+
+namespace Azure.ResourceManager.Confluent.Samples
+{
+ public partial class Sample_SCEnvironmentRecordCollection
+ {
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task CreateOrUpdate_EnvironmentCreateOrUpdate()
+ {
+ // Generated from example definition: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-07-01/examples/Environment_Create.json
+ // this example is just showing the usage of "Environment_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 ConfluentOrganizationResource created on azure
+ // for more information of creating ConfluentOrganizationResource, please refer to the document of ConfluentOrganizationResource
+ string subscriptionId = "00000000-0000-0000-0000-000000000000";
+ string resourceGroupName = "myResourceGroup";
+ string organizationName = "myOrganization";
+ ResourceIdentifier confluentOrganizationResourceId = ConfluentOrganizationResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, organizationName);
+ ConfluentOrganizationResource confluentOrganization = client.GetConfluentOrganizationResource(confluentOrganizationResourceId);
+
+ // get the collection of this SCEnvironmentRecordResource
+ SCEnvironmentRecordCollection collection = confluentOrganization.GetSCEnvironmentRecords();
+
+ // invoke the operation
+ string environmentId = "env-1";
+ SCEnvironmentRecordData data = new SCEnvironmentRecordData
+ {
+ StreamGovernanceConfigPackage = Package.Essentials,
+ };
+ ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, environmentId, data);
+ SCEnvironmentRecordResource 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
+ SCEnvironmentRecordData 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_OrganizationGetEnvironmentById()
+ {
+ // Generated from example definition: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-07-01/examples/Organization_GetEnvironmentById.json
+ // this example is just showing the usage of "Organization_GetEnvironmentById" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access 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 ConfluentOrganizationResource created on azure
+ // for more information of creating ConfluentOrganizationResource, please refer to the document of ConfluentOrganizationResource
+ string subscriptionId = "00000000-0000-0000-0000-000000000000";
+ string resourceGroupName = "myResourceGroup";
+ string organizationName = "myOrganization";
+ ResourceIdentifier confluentOrganizationResourceId = ConfluentOrganizationResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, organizationName);
+ ConfluentOrganizationResource confluentOrganization = client.GetConfluentOrganizationResource(confluentOrganizationResourceId);
+
+ // get the collection of this SCEnvironmentRecordResource
+ SCEnvironmentRecordCollection collection = confluentOrganization.GetSCEnvironmentRecords();
+
+ // invoke the operation
+ string environmentId = "dlz-f3a90de";
+ SCEnvironmentRecordResource result = await collection.GetAsync(environmentId);
+
+ // 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
+ SCEnvironmentRecordData 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_OrganizationListEnvironments()
+ {
+ // Generated from example definition: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-07-01/examples/Organization_EnvironmentList.json
+ // this example is just showing the usage of "Organization_ListEnvironments" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access 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 ConfluentOrganizationResource created on azure
+ // for more information of creating ConfluentOrganizationResource, please refer to the document of ConfluentOrganizationResource
+ string subscriptionId = "00000000-0000-0000-0000-000000000000";
+ string resourceGroupName = "myResourceGroup";
+ string organizationName = "myOrganization";
+ ResourceIdentifier confluentOrganizationResourceId = ConfluentOrganizationResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, organizationName);
+ ConfluentOrganizationResource confluentOrganization = client.GetConfluentOrganizationResource(confluentOrganizationResourceId);
+
+ // get the collection of this SCEnvironmentRecordResource
+ SCEnvironmentRecordCollection collection = confluentOrganization.GetSCEnvironmentRecords();
+
+ // invoke the operation and iterate over the result
+ int? pageSize = 10;
+ await foreach (SCEnvironmentRecordResource item in collection.GetAllAsync(pageSize: pageSize))
+ {
+ // 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
+ SCEnvironmentRecordData 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_OrganizationGetEnvironmentById()
+ {
+ // Generated from example definition: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-07-01/examples/Organization_GetEnvironmentById.json
+ // this example is just showing the usage of "Organization_GetEnvironmentById" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access 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 ConfluentOrganizationResource created on azure
+ // for more information of creating ConfluentOrganizationResource, please refer to the document of ConfluentOrganizationResource
+ string subscriptionId = "00000000-0000-0000-0000-000000000000";
+ string resourceGroupName = "myResourceGroup";
+ string organizationName = "myOrganization";
+ ResourceIdentifier confluentOrganizationResourceId = ConfluentOrganizationResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, organizationName);
+ ConfluentOrganizationResource confluentOrganization = client.GetConfluentOrganizationResource(confluentOrganizationResourceId);
+
+ // get the collection of this SCEnvironmentRecordResource
+ SCEnvironmentRecordCollection collection = confluentOrganization.GetSCEnvironmentRecords();
+
+ // invoke the operation
+ string environmentId = "dlz-f3a90de";
+ bool result = await collection.ExistsAsync(environmentId);
+
+ Console.WriteLine($"Succeeded: {result}");
+ }
+
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task GetIfExists_OrganizationGetEnvironmentById()
+ {
+ // Generated from example definition: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-07-01/examples/Organization_GetEnvironmentById.json
+ // this example is just showing the usage of "Organization_GetEnvironmentById" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access 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 ConfluentOrganizationResource created on azure
+ // for more information of creating ConfluentOrganizationResource, please refer to the document of ConfluentOrganizationResource
+ string subscriptionId = "00000000-0000-0000-0000-000000000000";
+ string resourceGroupName = "myResourceGroup";
+ string organizationName = "myOrganization";
+ ResourceIdentifier confluentOrganizationResourceId = ConfluentOrganizationResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, organizationName);
+ ConfluentOrganizationResource confluentOrganization = client.GetConfluentOrganizationResource(confluentOrganizationResourceId);
+
+ // get the collection of this SCEnvironmentRecordResource
+ SCEnvironmentRecordCollection collection = confluentOrganization.GetSCEnvironmentRecords();
+
+ // invoke the operation
+ string environmentId = "dlz-f3a90de";
+ NullableResponse response = await collection.GetIfExistsAsync(environmentId);
+ SCEnvironmentRecordResource 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
+ SCEnvironmentRecordData resourceData = result.Data;
+ // for demo we just print out the id
+ Console.WriteLine($"Succeeded on id: {resourceData.Id}");
+ }
+ }
+ }
+}
diff --git a/sdk/confluent/Azure.ResourceManager.Confluent/samples/Generated/Samples/Sample_SCEnvironmentRecordResource.cs b/sdk/confluent/Azure.ResourceManager.Confluent/samples/Generated/Samples/Sample_SCEnvironmentRecordResource.cs
new file mode 100644
index 000000000000..2f89ed763b3f
--- /dev/null
+++ b/sdk/confluent/Azure.ResourceManager.Confluent/samples/Generated/Samples/Sample_SCEnvironmentRecordResource.cs
@@ -0,0 +1,171 @@
+// 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.Confluent.Models;
+using NUnit.Framework;
+
+namespace Azure.ResourceManager.Confluent.Samples
+{
+ public partial class Sample_SCEnvironmentRecordResource
+ {
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task Get_OrganizationGetEnvironmentById()
+ {
+ // Generated from example definition: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-07-01/examples/Organization_GetEnvironmentById.json
+ // this example is just showing the usage of "Organization_GetEnvironmentById" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access 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 SCEnvironmentRecordResource created on azure
+ // for more information of creating SCEnvironmentRecordResource, please refer to the document of SCEnvironmentRecordResource
+ string subscriptionId = "00000000-0000-0000-0000-000000000000";
+ string resourceGroupName = "myResourceGroup";
+ string organizationName = "myOrganization";
+ string environmentId = "dlz-f3a90de";
+ ResourceIdentifier scEnvironmentRecordResourceId = SCEnvironmentRecordResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, organizationName, environmentId);
+ SCEnvironmentRecordResource scEnvironmentRecord = client.GetSCEnvironmentRecordResource(scEnvironmentRecordResourceId);
+
+ // invoke the operation
+ SCEnvironmentRecordResource result = await scEnvironmentRecord.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
+ SCEnvironmentRecordData 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_EnvironmentDelete()
+ {
+ // Generated from example definition: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-07-01/examples/Environment_Delete.json
+ // this example is just showing the usage of "Environment_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 SCEnvironmentRecordResource created on azure
+ // for more information of creating SCEnvironmentRecordResource, please refer to the document of SCEnvironmentRecordResource
+ string subscriptionId = "00000000-0000-0000-0000-000000000000";
+ string resourceGroupName = "myResourceGroup";
+ string organizationName = "myOrganization";
+ string environmentId = "env-12132";
+ ResourceIdentifier scEnvironmentRecordResourceId = SCEnvironmentRecordResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, organizationName, environmentId);
+ SCEnvironmentRecordResource scEnvironmentRecord = client.GetSCEnvironmentRecordResource(scEnvironmentRecordResourceId);
+
+ // invoke the operation
+ await scEnvironmentRecord.DeleteAsync(WaitUntil.Completed);
+
+ Console.WriteLine("Succeeded");
+ }
+
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task Update_EnvironmentCreateOrUpdate()
+ {
+ // Generated from example definition: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-07-01/examples/Environment_Create.json
+ // this example is just showing the usage of "Environment_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 SCEnvironmentRecordResource created on azure
+ // for more information of creating SCEnvironmentRecordResource, please refer to the document of SCEnvironmentRecordResource
+ string subscriptionId = "00000000-0000-0000-0000-000000000000";
+ string resourceGroupName = "myResourceGroup";
+ string organizationName = "myOrganization";
+ string environmentId = "env-1";
+ ResourceIdentifier scEnvironmentRecordResourceId = SCEnvironmentRecordResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, organizationName, environmentId);
+ SCEnvironmentRecordResource scEnvironmentRecord = client.GetSCEnvironmentRecordResource(scEnvironmentRecordResourceId);
+
+ // invoke the operation
+ SCEnvironmentRecordData data = new SCEnvironmentRecordData
+ {
+ StreamGovernanceConfigPackage = Package.Essentials,
+ };
+ ArmOperation lro = await scEnvironmentRecord.UpdateAsync(WaitUntil.Completed, data);
+ SCEnvironmentRecordResource 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
+ SCEnvironmentRecordData 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 GetSchemaRegistryClusters_OrganizationListSchemaRegistryClusters()
+ {
+ // Generated from example definition: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-07-01/examples/Organization_ListSchemaRegistryClusters.json
+ // this example is just showing the usage of "Organization_ListSchemaRegistryClusters" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access 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 SCEnvironmentRecordResource created on azure
+ // for more information of creating SCEnvironmentRecordResource, please refer to the document of SCEnvironmentRecordResource
+ string subscriptionId = "00000000-0000-0000-0000-000000000000";
+ string resourceGroupName = "myResourceGroup";
+ string organizationName = "myOrganization";
+ string environmentId = "env-stgcczjp2j3";
+ ResourceIdentifier scEnvironmentRecordResourceId = SCEnvironmentRecordResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, organizationName, environmentId);
+ SCEnvironmentRecordResource scEnvironmentRecord = client.GetSCEnvironmentRecordResource(scEnvironmentRecordResourceId);
+
+ // invoke the operation and iterate over the result
+ await foreach (SchemaRegistryClusterRecord item in scEnvironmentRecord.GetSchemaRegistryClustersAsync())
+ {
+ Console.WriteLine($"Succeeded: {item}");
+ }
+
+ Console.WriteLine("Succeeded");
+ }
+
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task GetSchemaRegistryCluster_OrganizationGetSchemaRegistryClusterById()
+ {
+ // Generated from example definition: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-07-01/examples/Organization_GetSchemaRegistryClusterById.json
+ // this example is just showing the usage of "Organization_GetSchemaRegistryClusterById" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access 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 SCEnvironmentRecordResource created on azure
+ // for more information of creating SCEnvironmentRecordResource, please refer to the document of SCEnvironmentRecordResource
+ string subscriptionId = "00000000-0000-0000-0000-000000000000";
+ string resourceGroupName = "myResourceGroup";
+ string organizationName = "myOrganization";
+ string environmentId = "env-stgcczjp2j3";
+ ResourceIdentifier scEnvironmentRecordResourceId = SCEnvironmentRecordResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, organizationName, environmentId);
+ SCEnvironmentRecordResource scEnvironmentRecord = client.GetSCEnvironmentRecordResource(scEnvironmentRecordResourceId);
+
+ // invoke the operation
+ string clusterId = "lsrc-stgczkq22z";
+ SchemaRegistryClusterRecord result = await scEnvironmentRecord.GetSchemaRegistryClusterAsync(clusterId);
+
+ Console.WriteLine($"Succeeded: {result}");
+ }
+ }
+}
diff --git a/sdk/confluent/Azure.ResourceManager.Confluent/samples/Generated/Samples/Sample_SubscriptionResourceExtensions.cs b/sdk/confluent/Azure.ResourceManager.Confluent/samples/Generated/Samples/Sample_SubscriptionResourceExtensions.cs
index 6e96d95d8672..3f6edc8fbfa7 100644
--- a/sdk/confluent/Azure.ResourceManager.Confluent/samples/Generated/Samples/Sample_SubscriptionResourceExtensions.cs
+++ b/sdk/confluent/Azure.ResourceManager.Confluent/samples/Generated/Samples/Sample_SubscriptionResourceExtensions.cs
@@ -21,7 +21,7 @@ public partial class Sample_SubscriptionResourceExtensions
[Ignore("Only validating compilation of examples")]
public async Task GetMarketplaceAgreements_MarketplaceAgreementsList()
{
- // Generated from example definition: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/MarketplaceAgreements_List.json
+ // Generated from example definition: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-07-01/examples/MarketplaceAgreements_List.json
// this example is just showing the usage of "MarketplaceAgreements_List" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -48,7 +48,7 @@ public async Task GetMarketplaceAgreements_MarketplaceAgreementsList()
[Ignore("Only validating compilation of examples")]
public async Task CreateMarketplaceAgreement_MarketplaceAgreementsCreate()
{
- // Generated from example definition: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/MarketplaceAgreements_Create.json
+ // Generated from example definition: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-07-01/examples/MarketplaceAgreements_Create.json
// this example is just showing the usage of "MarketplaceAgreements_Create" operation, for the dependent resources, they will have to be created separately.
// get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
@@ -72,7 +72,7 @@ public async Task CreateMarketplaceAgreement_MarketplaceAgreementsCreate()
[Ignore("Only validating compilation of examples")]
public async Task GetConfluentOrganizations_OrganizationListBySubscription()
{
- // Generated from example definition: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-02-13/examples/Organization_ListBySubscription.json
+ // Generated from example definition: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-07-01/examples/Organization_ListBySubscription.json
// this example is just showing the usage of "Organization_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
diff --git a/sdk/confluent/Azure.ResourceManager.Confluent/samples/Generated/Samples/Sample_TopicRecordCollection.cs b/sdk/confluent/Azure.ResourceManager.Confluent/samples/Generated/Samples/Sample_TopicRecordCollection.cs
new file mode 100644
index 000000000000..57aa3bc75006
--- /dev/null
+++ b/sdk/confluent/Azure.ResourceManager.Confluent/samples/Generated/Samples/Sample_TopicRecordCollection.cs
@@ -0,0 +1,221 @@
+// 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.Confluent.Models;
+using NUnit.Framework;
+
+namespace Azure.ResourceManager.Confluent.Samples
+{
+ public partial class Sample_TopicRecordCollection
+ {
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task CreateOrUpdate_TopicsCreate()
+ {
+ // Generated from example definition: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-07-01/examples/Topics_Create.json
+ // this example is just showing the usage of "Topics_Create" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this SCClusterRecordResource created on azure
+ // for more information of creating SCClusterRecordResource, please refer to the document of SCClusterRecordResource
+ string subscriptionId = "00000000-0000-0000-0000-000000000000";
+ string resourceGroupName = "myResourceGroup";
+ string organizationName = "myOrganization";
+ string environmentId = "env-12132";
+ string clusterId = "dlz-f3a90de";
+ ResourceIdentifier scClusterRecordResourceId = SCClusterRecordResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, organizationName, environmentId, clusterId);
+ SCClusterRecordResource scClusterRecord = client.GetSCClusterRecordResource(scClusterRecordResourceId);
+
+ // get the collection of this TopicRecordResource
+ TopicRecordCollection collection = scClusterRecord.GetTopicRecords();
+
+ // invoke the operation
+ string topicName = "topic-1";
+ TopicRecordData data = new TopicRecordData
+ {
+ InputConfigs = {new TopicsInputConfig
+{
+Name = "cleanup.policy",
+Value = "compact",
+}, new TopicsInputConfig
+{
+Name = "retention.ms",
+Value = "86400000",
+}},
+ PartitionsCount = "1",
+ ReplicationFactor = "3",
+ };
+ ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, topicName, data);
+ TopicRecordResource 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
+ TopicRecordData 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_TopicsGet()
+ {
+ // Generated from example definition: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-07-01/examples/Topics_Get.json
+ // this example is just showing the usage of "Topics_Get" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access 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 SCClusterRecordResource created on azure
+ // for more information of creating SCClusterRecordResource, please refer to the document of SCClusterRecordResource
+ string subscriptionId = "00000000-0000-0000-0000-000000000000";
+ string resourceGroupName = "myResourceGroup";
+ string organizationName = "myOrganization";
+ string environmentId = "env-12132";
+ string clusterId = "dlz-f3a90de";
+ ResourceIdentifier scClusterRecordResourceId = SCClusterRecordResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, organizationName, environmentId, clusterId);
+ SCClusterRecordResource scClusterRecord = client.GetSCClusterRecordResource(scClusterRecordResourceId);
+
+ // get the collection of this TopicRecordResource
+ TopicRecordCollection collection = scClusterRecord.GetTopicRecords();
+
+ // invoke the operation
+ string topicName = "topic-1";
+ TopicRecordResource result = await collection.GetAsync(topicName);
+
+ // 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
+ TopicRecordData 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_OrganizationListTopics()
+ {
+ // Generated from example definition: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-07-01/examples/Organization_TopicList.json
+ // this example is just showing the usage of "Topics_List" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this SCClusterRecordResource created on azure
+ // for more information of creating SCClusterRecordResource, please refer to the document of SCClusterRecordResource
+ string subscriptionId = "00000000-0000-0000-0000-000000000000";
+ string resourceGroupName = "myResourceGroup";
+ string organizationName = "myOrganization";
+ string environmentId = "env-12132";
+ string clusterId = "dlz-f3a90de";
+ ResourceIdentifier scClusterRecordResourceId = SCClusterRecordResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, organizationName, environmentId, clusterId);
+ SCClusterRecordResource scClusterRecord = client.GetSCClusterRecordResource(scClusterRecordResourceId);
+
+ // get the collection of this TopicRecordResource
+ TopicRecordCollection collection = scClusterRecord.GetTopicRecords();
+
+ // invoke the operation and iterate over the result
+ int? pageSize = 10;
+ await foreach (TopicRecordResource item in collection.GetAllAsync(pageSize: pageSize))
+ {
+ // 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
+ TopicRecordData 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_TopicsGet()
+ {
+ // Generated from example definition: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-07-01/examples/Topics_Get.json
+ // this example is just showing the usage of "Topics_Get" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access 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 SCClusterRecordResource created on azure
+ // for more information of creating SCClusterRecordResource, please refer to the document of SCClusterRecordResource
+ string subscriptionId = "00000000-0000-0000-0000-000000000000";
+ string resourceGroupName = "myResourceGroup";
+ string organizationName = "myOrganization";
+ string environmentId = "env-12132";
+ string clusterId = "dlz-f3a90de";
+ ResourceIdentifier scClusterRecordResourceId = SCClusterRecordResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, organizationName, environmentId, clusterId);
+ SCClusterRecordResource scClusterRecord = client.GetSCClusterRecordResource(scClusterRecordResourceId);
+
+ // get the collection of this TopicRecordResource
+ TopicRecordCollection collection = scClusterRecord.GetTopicRecords();
+
+ // invoke the operation
+ string topicName = "topic-1";
+ bool result = await collection.ExistsAsync(topicName);
+
+ Console.WriteLine($"Succeeded: {result}");
+ }
+
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task GetIfExists_TopicsGet()
+ {
+ // Generated from example definition: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-07-01/examples/Topics_Get.json
+ // this example is just showing the usage of "Topics_Get" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access 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 SCClusterRecordResource created on azure
+ // for more information of creating SCClusterRecordResource, please refer to the document of SCClusterRecordResource
+ string subscriptionId = "00000000-0000-0000-0000-000000000000";
+ string resourceGroupName = "myResourceGroup";
+ string organizationName = "myOrganization";
+ string environmentId = "env-12132";
+ string clusterId = "dlz-f3a90de";
+ ResourceIdentifier scClusterRecordResourceId = SCClusterRecordResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, organizationName, environmentId, clusterId);
+ SCClusterRecordResource scClusterRecord = client.GetSCClusterRecordResource(scClusterRecordResourceId);
+
+ // get the collection of this TopicRecordResource
+ TopicRecordCollection collection = scClusterRecord.GetTopicRecords();
+
+ // invoke the operation
+ string topicName = "topic-1";
+ NullableResponse response = await collection.GetIfExistsAsync(topicName);
+ TopicRecordResource 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
+ TopicRecordData resourceData = result.Data;
+ // for demo we just print out the id
+ Console.WriteLine($"Succeeded on id: {resourceData.Id}");
+ }
+ }
+ }
+}
diff --git a/sdk/confluent/Azure.ResourceManager.Confluent/samples/Generated/Samples/Sample_TopicRecordResource.cs b/sdk/confluent/Azure.ResourceManager.Confluent/samples/Generated/Samples/Sample_TopicRecordResource.cs
new file mode 100644
index 000000000000..4cde2c85be58
--- /dev/null
+++ b/sdk/confluent/Azure.ResourceManager.Confluent/samples/Generated/Samples/Sample_TopicRecordResource.cs
@@ -0,0 +1,129 @@
+// 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.Confluent.Models;
+using NUnit.Framework;
+
+namespace Azure.ResourceManager.Confluent.Samples
+{
+ public partial class Sample_TopicRecordResource
+ {
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task Get_TopicsGet()
+ {
+ // Generated from example definition: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-07-01/examples/Topics_Get.json
+ // this example is just showing the usage of "Topics_Get" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access 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 TopicRecordResource created on azure
+ // for more information of creating TopicRecordResource, please refer to the document of TopicRecordResource
+ string subscriptionId = "00000000-0000-0000-0000-000000000000";
+ string resourceGroupName = "myResourceGroup";
+ string organizationName = "myOrganization";
+ string environmentId = "env-12132";
+ string clusterId = "dlz-f3a90de";
+ string topicName = "topic-1";
+ ResourceIdentifier topicRecordResourceId = TopicRecordResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, organizationName, environmentId, clusterId, topicName);
+ TopicRecordResource topicRecord = client.GetTopicRecordResource(topicRecordResourceId);
+
+ // invoke the operation
+ TopicRecordResource result = await topicRecord.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
+ TopicRecordData 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_TopicsDelete()
+ {
+ // Generated from example definition: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-07-01/examples/Topics_Delete.json
+ // this example is just showing the usage of "Topics_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 TopicRecordResource created on azure
+ // for more information of creating TopicRecordResource, please refer to the document of TopicRecordResource
+ string subscriptionId = "00000000-0000-0000-0000-000000000000";
+ string resourceGroupName = "myResourceGroup";
+ string organizationName = "myOrganization";
+ string environmentId = "env-12132";
+ string clusterId = "dlz-f3a90de";
+ string topicName = "topic-1";
+ ResourceIdentifier topicRecordResourceId = TopicRecordResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, organizationName, environmentId, clusterId, topicName);
+ TopicRecordResource topicRecord = client.GetTopicRecordResource(topicRecordResourceId);
+
+ // invoke the operation
+ await topicRecord.DeleteAsync(WaitUntil.Completed);
+
+ Console.WriteLine("Succeeded");
+ }
+
+ [Test]
+ [Ignore("Only validating compilation of examples")]
+ public async Task Update_TopicsCreate()
+ {
+ // Generated from example definition: specification/confluent/resource-manager/Microsoft.Confluent/stable/2024-07-01/examples/Topics_Create.json
+ // this example is just showing the usage of "Topics_Create" operation, for the dependent resources, they will have to be created separately.
+
+ // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line
+ TokenCredential cred = new DefaultAzureCredential();
+ // authenticate your client
+ ArmClient client = new ArmClient(cred);
+
+ // this example assumes you already have this TopicRecordResource created on azure
+ // for more information of creating TopicRecordResource, please refer to the document of TopicRecordResource
+ string subscriptionId = "00000000-0000-0000-0000-000000000000";
+ string resourceGroupName = "myResourceGroup";
+ string organizationName = "myOrganization";
+ string environmentId = "env-12132";
+ string clusterId = "dlz-f3a90de";
+ string topicName = "topic-1";
+ ResourceIdentifier topicRecordResourceId = TopicRecordResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, organizationName, environmentId, clusterId, topicName);
+ TopicRecordResource topicRecord = client.GetTopicRecordResource(topicRecordResourceId);
+
+ // invoke the operation
+ TopicRecordData data = new TopicRecordData
+ {
+ InputConfigs = {new TopicsInputConfig
+{
+Name = "cleanup.policy",
+Value = "compact",
+}, new TopicsInputConfig
+{
+Name = "retention.ms",
+Value = "86400000",
+}},
+ PartitionsCount = "1",
+ ReplicationFactor = "3",
+ };
+ ArmOperation lro = await topicRecord.UpdateAsync(WaitUntil.Completed, data);
+ TopicRecordResource 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
+ TopicRecordData resourceData = result.Data;
+ // for demo we just print out the id
+ Console.WriteLine($"Succeeded on id: {resourceData.Id}");
+ }
+ }
+}
diff --git a/sdk/confluent/Azure.ResourceManager.Confluent/src/Generated/ArmConfluentModelFactory.cs b/sdk/confluent/Azure.ResourceManager.Confluent/src/Generated/ArmConfluentModelFactory.cs
index c7508a5eb465..939f3fc70632 100644
--- a/sdk/confluent/Azure.ResourceManager.Confluent/src/Generated/ArmConfluentModelFactory.cs
+++ b/sdk/confluent/Azure.ResourceManager.Confluent/src/Generated/ArmConfluentModelFactory.cs
@@ -348,15 +348,6 @@ public static ClusterByokEntity ClusterByokEntity(string id = null, string relat
return new ClusterByokEntity(id, related, resourceName, serializedAdditionalRawData: null);
}
- /// Initializes a new instance of .
- /// The lifecycle phase of the cluster.
- /// The number of Confluent Kafka Units.
- /// A new instance for mocking.
- public static ClusterStatusEntity ClusterStatusEntity(string phase = null, int? cku = null)
- {
- return new ClusterStatusEntity(phase, cku, serializedAdditionalRawData: null);
- }
-
/// Initializes a new instance of .
/// Type of response.
/// Metadata of the list.
@@ -401,108 +392,6 @@ public static AccessRoleBindingNameListResult AccessRoleBindingNameListResult(st
return new AccessRoleBindingNameListResult(kind, metadata, data?.ToList(), serializedAdditionalRawData: null);
}
- /// Initializes a new instance of .
- /// Type of environment.
- /// Id of the environment.
- /// Display name of the environment.
- /// Metadata of the record.
- /// A new instance for mocking.
- public static SCEnvironmentRecord SCEnvironmentRecord(string kind = null, string id = null, string name = null, SCMetadataEntity metadata = null)
- {
- return new SCEnvironmentRecord(kind, id, name, metadata, serializedAdditionalRawData: null);
- }
-
- /// Initializes a new instance of .
- /// Self lookup url.
- /// Resource name of the record.
- /// Created Date Time.
- /// Updated Date time.
- /// Deleted Date time.
- /// A new instance for mocking.
- public static SCMetadataEntity SCMetadataEntity(string self = null, string resourceName = null, DateTimeOffset? createdOn = null, DateTimeOffset? updatedOn = null, DateTimeOffset? deletedOn = null)
- {
- return new SCMetadataEntity(
- self,
- resourceName,
- createdOn,
- updatedOn,
- deletedOn,
- serializedAdditionalRawData: null);
- }
-
- /// Initializes a new instance of .
- /// Type of cluster.
- /// Id of the cluster.
- /// Display name of the cluster.
- /// Metadata of the record.
- /// Specification of the cluster.
- /// Specification of the cluster status.
- /// A new instance for mocking.
- public static SCClusterRecord SCClusterRecord(string kind = null, string id = null, string name = null, SCMetadataEntity metadata = null, SCClusterSpecEntity spec = null, ClusterStatusEntity status = null)
- {
- return new SCClusterRecord(
- kind,
- id,
- name,
- metadata,
- spec,
- status,
- serializedAdditionalRawData: null);
- }
-
- /// Initializes a new instance of .
- /// The name of the cluster.
- /// The availability zone configuration of the cluster.
- /// The cloud service provider.
- /// type of zone availability.
- /// The cloud service provider region.
- /// The bootstrap endpoint used by Kafka clients to connect to the cluster.
- /// The cluster HTTP request URL.
- /// The Kafka API cluster endpoint.
- /// Specification of the cluster configuration.
- /// Specification of the cluster environment.
- /// Specification of the cluster network.
- /// Specification of the cluster byok.
- /// A new instance for mocking.
- public static SCClusterSpecEntity SCClusterSpecEntity(string name = null, string availability = null, string cloud = null, string zone = null, string region = null, string kafkaBootstrapEndpoint = null, string httpEndpoint = null, string apiEndpoint = null, string configKind = null, SCClusterNetworkEnvironmentEntity environment = null, SCClusterNetworkEnvironmentEntity network = null, SCClusterByokEntity byok = null)
- {
- return new SCClusterSpecEntity(
- name,
- availability,
- cloud,
- zone,
- region,
- kafkaBootstrapEndpoint,
- httpEndpoint,
- apiEndpoint,
- configKind != null ? new ClusterConfigEntity(configKind, serializedAdditionalRawData: null) : null,
- environment,
- network,
- byok,
- serializedAdditionalRawData: null);
- }
-
- /// Initializes a new instance of .
- /// ID of the referred resource.
- /// Environment of the referred resource.
- /// API URL for accessing or modifying the referred object.
- /// CRN reference to the referred resource.
- /// A new instance for mocking.
- public static SCClusterNetworkEnvironmentEntity SCClusterNetworkEnvironmentEntity(string id = null, string environment = null, string related = null, string resourceName = null)
- {
- return new SCClusterNetworkEnvironmentEntity(id, environment, related, resourceName, serializedAdditionalRawData: null);
- }
-
- /// Initializes a new instance of .
- /// ID of the referred resource.
- /// API URL for accessing or modifying the referred object.
- /// CRN reference to the referred resource.
- /// A new instance for mocking.
- public static SCClusterByokEntity SCClusterByokEntity(string id = null, string related = null, string resourceName = null)
- {
- return new SCClusterByokEntity(id, related, resourceName, serializedAdditionalRawData: null);
- }
-
/// Initializes a new instance of .
/// Kind of the cluster.
/// Id of the cluster.
@@ -643,6 +532,72 @@ public static ApiKeyOwnerEntity ApiKeyOwnerEntity(string id = null, string relat
return new ApiKeyOwnerEntity(id, related, resourceName, kind, serializedAdditionalRawData: null);
}
+ /// Initializes a new instance of .
+ /// The id.
+ /// The name.
+ /// The resourceType.
+ /// The systemData.
+ /// Connector Info Base.
+ ///
+ /// Connector Service type info base properties.
+ /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes.
+ /// The available derived classes include , , , and .
+ ///
+ ///
+ /// The connection information consumed by applications.
+ /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes.
+ /// The available derived classes include , , , and .
+ ///
+ /// A new instance for mocking.
+ public static ConnectorResourceData ConnectorResourceData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, ConnectorInfoBase connectorBasicInfo = null, ConnectorServiceTypeInfoBase connectorServiceTypeInfo = null, PartnerInfoBase partnerConnectorInfo = null)
+ {
+ return new ConnectorResourceData(
+ id,
+ name,
+ resourceType,
+ systemData,
+ connectorBasicInfo,
+ connectorServiceTypeInfo,
+ partnerConnectorInfo,
+ serializedAdditionalRawData: null);
+ }
+
+ /// Initializes a new instance of .
+ /// The id.
+ /// The name.
+ /// The resourceType.
+ /// The systemData.
+ /// Type of topic.
+ /// Topic Id returned by Confluent.
+ /// Metadata of the record.
+ /// Partition Specification of the topic.
+ /// Config Specification of the topic.
+ /// Input Config Specification of the topic.
+ /// Partition Reassignment Specification of the topic.
+ /// Partition count of the topic.
+ /// Replication factor of the topic.
+ /// A new instance for mocking.
+ public static TopicRecordData TopicRecordData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string kind = null, string topicId = null, TopicMetadataEntity metadata = null, string partitionsRelated = null, string configsRelated = null, IEnumerable inputConfigs = null, string partitionsReassignmentsRelated = null, string partitionsCount = null, string replicationFactor = null)
+ {
+ inputConfigs ??= new List();
+
+ return new TopicRecordData(
+ id,
+ name,
+ resourceType,
+ systemData,
+ kind,
+ topicId,
+ metadata,
+ partitionsRelated != null ? new TopicsRelatedLink(partitionsRelated, serializedAdditionalRawData: null) : null,
+ configsRelated != null ? new TopicsRelatedLink(configsRelated, serializedAdditionalRawData: null) : null,
+ inputConfigs?.ToList(),
+ partitionsReassignmentsRelated != null ? new TopicsRelatedLink(partitionsReassignmentsRelated, serializedAdditionalRawData: null) : null,
+ partitionsCount,
+ replicationFactor,
+ serializedAdditionalRawData: null);
+ }
+
/// Initializes a new instance of ConfluentOrganizationData.
/// The id.
/// The name.
diff --git a/sdk/confluent/Azure.ResourceManager.Confluent/src/Generated/ConfluentOrganizationCollection.cs b/sdk/confluent/Azure.ResourceManager.Confluent/src/Generated/ConfluentOrganizationCollection.cs
index bf4e0e7ba54e..5a1df1a95baa 100644
--- a/sdk/confluent/Azure.ResourceManager.Confluent/src/Generated/ConfluentOrganizationCollection.cs
+++ b/sdk/confluent/Azure.ResourceManager.Confluent/src/Generated/ConfluentOrganizationCollection.cs
@@ -65,7 +65,7 @@ internal static void ValidateResourceId(ResourceIdentifier id)
///
/// -
/// Default Api Version
- /// 2024-02-13
+ /// 2024-07-01
///
/// -
/// Resource
@@ -114,7 +114,7 @@ public virtual async Task> CreateOrU
///
/// -
/// Default Api Version
- /// 2024-02-13
+ /// 2024-07-01
///
/// -
/// Resource
@@ -163,7 +163,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUn
///
/// -
/// Default Api Version
- /// 2024-02-13
+ /// 2024-07-01
///
/// -
/// Resource
@@ -208,7 +208,7 @@ public virtual async Task> GetAsync(stri
///
/// -
/// Default Api Version
- /// 2024-02-13
+ /// 2024-07-01
///
/// -
/// Resource
@@ -253,7 +253,7 @@ public virtual Response Get(string organizationNa
///
/// -
/// Default Api Version
- /// 2024-02-13
+ /// 2024-07-01
///
/// -
/// Resource
@@ -283,7 +283,7 @@ public virtual AsyncPageable GetAllAsync(Cancella
///
/// -
/// Default Api Version
- /// 2024-02-13
+ /// 2024-07-01
///
/// -
/// Resource
@@ -313,7 +313,7 @@ public virtual Pageable GetAll(CancellationToken
///
/// -
/// Default Api Version
- /// 2024-02-13
+ /// 2024-07-01
///
/// -
/// Resource
@@ -356,7 +356,7 @@ public virtual async Task> ExistsAsync(string organizationName, C
///
/// -
/// Default Api Version
- /// 2024-02-13
+ /// 2024-07-01
///
/// -
/// Resource
@@ -399,7 +399,7 @@ public virtual Response Exists(string organizationName, CancellationToken
///
/// -
/// Default Api Version
- /// 2024-02-13
+ /// 2024-07-01
///
/// -
/// Resource
@@ -444,7 +444,7 @@ public virtual async Task> GetIf
///
/// -
/// Default Api Version
- /// 2024-02-13
+ /// 2024-07-01
///
/// -
/// Resource
diff --git a/sdk/confluent/Azure.ResourceManager.Confluent/src/Generated/ConfluentOrganizationResource.cs b/sdk/confluent/Azure.ResourceManager.Confluent/src/Generated/ConfluentOrganizationResource.cs
index d6f533c7cfcd..dc61f54037b2 100644
--- a/sdk/confluent/Azure.ResourceManager.Confluent/src/Generated/ConfluentOrganizationResource.cs
+++ b/sdk/confluent/Azure.ResourceManager.Confluent/src/Generated/ConfluentOrganizationResource.cs
@@ -10,7 +10,6 @@
using System.Globalization;
using System.Threading;
using System.Threading.Tasks;
-using Autorest.CSharp.Core;
using Azure.Core;
using Azure.Core.Pipeline;
using Azure.ResourceManager.Confluent.Models;
@@ -95,6 +94,75 @@ internal static void ValidateResourceId(ResourceIdentifier id)
throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, ResourceType), nameof(id));
}
+ /// Gets a collection of SCEnvironmentRecordResources in the ConfluentOrganization.
+ /// An object representing collection of SCEnvironmentRecordResources and their operations over a SCEnvironmentRecordResource.
+ public virtual SCEnvironmentRecordCollection GetSCEnvironmentRecords()
+ {
+ return GetCachedClient(client => new SCEnvironmentRecordCollection(client, Id));
+ }
+
+ ///
+ /// Get Environment details by environment Id
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Confluent/organizations/{organizationName}/environments/{environmentId}
+ ///
+ /// -
+ /// Operation Id
+ /// Organization_GetEnvironmentById
+ ///
+ /// -
+ /// Default Api Version
+ /// 2024-07-01
+ ///
+ /// -
+ /// Resource
+ ///
+ ///
+ ///
+ ///
+ /// Confluent environment id.
+ /// The cancellation token to use.
+ /// is null.
+ /// is an empty string, and was expected to be non-empty.
+ [ForwardsClientCalls]
+ public virtual async Task> GetSCEnvironmentRecordAsync(string environmentId, CancellationToken cancellationToken = default)
+ {
+ return await GetSCEnvironmentRecords().GetAsync(environmentId, cancellationToken).ConfigureAwait(false);
+ }
+
+ ///
+ /// Get Environment details by environment Id
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Confluent/organizations/{organizationName}/environments/{environmentId}
+ ///
+ /// -
+ /// Operation Id
+ /// Organization_GetEnvironmentById
+ ///
+ /// -
+ /// Default Api Version
+ /// 2024-07-01
+ ///
+ /// -
+ /// Resource
+ ///
+ ///
+ ///
+ ///
+ /// Confluent environment id.
+ /// The cancellation token to use.
+ /// is null.
+ /// is an empty string, and was expected to be non-empty.
+ [ForwardsClientCalls]
+ public virtual Response GetSCEnvironmentRecord(string environmentId, CancellationToken cancellationToken = default)
+ {
+ return GetSCEnvironmentRecords().Get(environmentId, cancellationToken);
+ }
+
///
/// Get the properties of a specific Organization resource.
///
@@ -108,7 +176,7 @@ internal static void ValidateResourceId(ResourceIdentifier id)
///
/// -
/// Default Api Version
- /// 2024-02-13
+ /// 2024-07-01
///
/// -
/// Resource
@@ -148,7 +216,7 @@ public virtual async Task> GetAsync(Canc
///
/// -
/// Default Api Version
- /// 2024-02-13
+ /// 2024-07-01
///
/// -
/// Resource
@@ -188,7 +256,7 @@ public virtual Response Get(CancellationToken can
///
/// -
/// Default Api Version
- /// 2024-02-13
+ /// 2024-07-01
///
/// -
/// Resource
@@ -230,7 +298,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell
///
/// -
/// Default Api Version
- /// 2024-02-13
+ /// 2024-07-01
///
/// -
/// Resource
@@ -272,7 +340,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel
///
/// -
/// Default Api Version
- /// 2024-02-13
+ /// 2024-07-01
///
/// -
/// Resource
@@ -314,7 +382,7 @@ public virtual async Task> UpdateAsync(C
///
/// -
/// Default Api Version
- /// 2024-02-13
+ /// 2024-07-01
///
/// -
/// Resource
@@ -343,304 +411,6 @@ public virtual Response Update(ConfluentOrganizat
}
}
- ///
- /// Lists of all the environments in a organization
- ///
- /// -
- /// Request Path
- /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Confluent/organizations/{organizationName}/environments
- ///
- /// -
- /// Operation Id
- /// Organization_ListEnvironments
- ///
- /// -
- /// Default Api Version
- /// 2024-02-13
- ///
- /// -
- /// Resource
- ///
- ///
- ///
- ///
- /// Pagination size.
- /// An opaque pagination token to fetch the next set of records.
- /// The cancellation token to use.
- /// An async collection of that may take multiple service requests to iterate over.
- public virtual AsyncPageable GetEnvironmentsAsync(int? pageSize = null, string pageToken = null, CancellationToken cancellationToken = default)
- {
- HttpMessage FirstPageRequest(int? pageSizeHint) => _confluentOrganizationOrganizationRestClient.CreateListEnvironmentsRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, pageSizeHint, pageToken);
- HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _confluentOrganizationOrganizationRestClient.CreateListEnvironmentsNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name, pageSizeHint, pageToken);
- return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => SCEnvironmentRecord.DeserializeSCEnvironmentRecord(e), _confluentOrganizationOrganizationClientDiagnostics, Pipeline, "ConfluentOrganizationResource.GetEnvironments", "value", "nextLink", cancellationToken);
- }
-
- ///
- /// Lists of all the environments in a organization
- ///
- /// -
- /// Request Path
- /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Confluent/organizations/{organizationName}/environments
- ///
- /// -
- /// Operation Id
- /// Organization_ListEnvironments
- ///
- /// -
- /// Default Api Version
- /// 2024-02-13
- ///
- /// -
- /// Resource
- ///
- ///
- ///
- ///
- /// Pagination size.
- /// An opaque pagination token to fetch the next set of records.
- /// The cancellation token to use.
- /// A collection of that may take multiple service requests to iterate over.
- public virtual Pageable GetEnvironments(int? pageSize = null, string pageToken = null, CancellationToken cancellationToken = default)
- {
- HttpMessage FirstPageRequest(int? pageSizeHint) => _confluentOrganizationOrganizationRestClient.CreateListEnvironmentsRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, pageSizeHint, pageToken);
- HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _confluentOrganizationOrganizationRestClient.CreateListEnvironmentsNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name, pageSizeHint, pageToken);
- return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => SCEnvironmentRecord.DeserializeSCEnvironmentRecord(e), _confluentOrganizationOrganizationClientDiagnostics, Pipeline, "ConfluentOrganizationResource.GetEnvironments", "value", "nextLink", cancellationToken);
- }
-
- ///
- /// Get Environment details by environment Id
- ///
- /// -
- /// Request Path
- /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Confluent/organizations/{organizationName}/environments/{environmentId}
- ///
- /// -
- /// Operation Id
- /// Organization_GetEnvironmentById
- ///
- /// -
- /// Default Api Version
- /// 2024-02-13
- ///
- /// -
- /// Resource
- ///
- ///
- ///
- ///
- /// Confluent environment id.
- /// The cancellation token to use.
- /// is an empty string, and was expected to be non-empty.
- /// is null.
- public virtual async Task> GetEnvironmentAsync(string environmentId, CancellationToken cancellationToken = default)
- {
- Argument.AssertNotNullOrEmpty(environmentId, nameof(environmentId));
-
- using var scope = _confluentOrganizationOrganizationClientDiagnostics.CreateScope("ConfluentOrganizationResource.GetEnvironment");
- scope.Start();
- try
- {
- var response = await _confluentOrganizationOrganizationRestClient.GetEnvironmentByIdAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, environmentId, cancellationToken).ConfigureAwait(false);
- return response;
- }
- catch (Exception e)
- {
- scope.Failed(e);
- throw;
- }
- }
-
- ///
- /// Get Environment details by environment Id
- ///
- /// -
- /// Request Path
- /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Confluent/organizations/{organizationName}/environments/{environmentId}
- ///
- /// -
- /// Operation Id
- /// Organization_GetEnvironmentById
- ///
- /// -
- /// Default Api Version
- /// 2024-02-13
- ///
- /// -
- /// Resource
- ///
- ///
- ///
- ///
- /// Confluent environment id.
- /// The cancellation token to use.
- /// is an empty string, and was expected to be non-empty.
- /// is null.
- public virtual Response GetEnvironment(string environmentId, CancellationToken cancellationToken = default)
- {
- Argument.AssertNotNullOrEmpty(environmentId, nameof(environmentId));
-
- using var scope = _confluentOrganizationOrganizationClientDiagnostics.CreateScope("ConfluentOrganizationResource.GetEnvironment");
- scope.Start();
- try
- {
- var response = _confluentOrganizationOrganizationRestClient.GetEnvironmentById(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, environmentId, cancellationToken);
- return response;
- }
- catch (Exception e)
- {
- scope.Failed(e);
- throw;
- }
- }
-
- ///
- /// Lists of all the clusters in a environment
- ///
- /// -
- /// Request Path
- /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Confluent/organizations/{organizationName}/environments/{environmentId}/clusters
- ///
- /// -
- /// Operation Id
- /// Organization_ListClusters
- ///
- /// -
- /// Default Api Version
- /// 2024-02-13
- ///
- /// -
- /// Resource
- ///
- ///
- ///
- ///
- /// Confluent environment id.
- /// Pagination size.
- /// An opaque pagination token to fetch the next set of records.
- /// The cancellation token to use.
- /// is an empty string, and was expected to be non-empty.
- /// is null.
- /// An async collection of that may take multiple service requests to iterate over.
- public virtual AsyncPageable GetClustersAsync(string environmentId, int? pageSize = null, string pageToken = null, CancellationToken cancellationToken = default)
- {
- Argument.AssertNotNullOrEmpty(environmentId, nameof(environmentId));
-
- HttpMessage FirstPageRequest(int? pageSizeHint) => _confluentOrganizationOrganizationRestClient.CreateListClustersRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, environmentId, pageSizeHint, pageToken);
- HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _confluentOrganizationOrganizationRestClient.CreateListClustersNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name, environmentId, pageSizeHint, pageToken);
- return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => SCClusterRecord.DeserializeSCClusterRecord(e), _confluentOrganizationOrganizationClientDiagnostics, Pipeline, "ConfluentOrganizationResource.GetClusters", "value", "nextLink", cancellationToken);
- }
-
- ///
- /// Lists of all the clusters in a environment
- ///
- /// -
- /// Request Path
- /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Confluent/organizations/{organizationName}/environments/{environmentId}/clusters
- ///
- /// -
- /// Operation Id
- /// Organization_ListClusters
- ///
- /// -
- /// Default Api Version
- /// 2024-02-13
- ///
- /// -
- /// Resource
- ///
- ///
- ///
- ///
- /// Confluent environment id.
- /// Pagination size.
- /// An opaque pagination token to fetch the next set of records.
- /// The cancellation token to use.
- /// is an empty string, and was expected to be non-empty.
- /// is null.
- /// A collection of that may take multiple service requests to iterate over.
- public virtual Pageable GetClusters(string environmentId, int? pageSize = null, string pageToken = null, CancellationToken cancellationToken = default)
- {
- Argument.AssertNotNullOrEmpty(environmentId, nameof(environmentId));
-
- HttpMessage FirstPageRequest(int? pageSizeHint) => _confluentOrganizationOrganizationRestClient.CreateListClustersRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, environmentId, pageSizeHint, pageToken);
- HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _confluentOrganizationOrganizationRestClient.CreateListClustersNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name, environmentId, pageSizeHint, pageToken);
- return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => SCClusterRecord.DeserializeSCClusterRecord(e), _confluentOrganizationOrganizationClientDiagnostics, Pipeline, "ConfluentOrganizationResource.GetClusters", "value", "nextLink", cancellationToken);
- }
-
- ///
- /// Get schema registry clusters
- ///
- /// -
- /// Request Path
- /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Confluent/organizations/{organizationName}/environments/{environmentId}/schemaRegistryClusters
- ///
- /// -
- /// Operation Id
- /// Organization_ListSchemaRegistryClusters
- ///
- /// -
- /// Default Api Version
- /// 2024-02-13
- ///
- /// -
- /// Resource
- ///
- ///
- ///
- ///
- /// Confluent environment id.
- /// Pagination size.
- /// An opaque pagination token to fetch the next set of records.
- /// The cancellation token to use.
- /// is an empty string, and was expected to be non-empty.
- /// is null.
- /// An async collection of that may take multiple service requests to iterate over.
- public virtual AsyncPageable GetSchemaRegistryClustersAsync(string environmentId, int? pageSize = null, string pageToken = null, CancellationToken cancellationToken = default)
- {
- Argument.AssertNotNullOrEmpty(environmentId, nameof(environmentId));
-
- HttpMessage FirstPageRequest(int? pageSizeHint) => _confluentOrganizationOrganizationRestClient.CreateListSchemaRegistryClustersRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, environmentId, pageSizeHint, pageToken);
- HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _confluentOrganizationOrganizationRestClient.CreateListSchemaRegistryClustersNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name, environmentId, pageSizeHint, pageToken);
- return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => SchemaRegistryClusterRecord.DeserializeSchemaRegistryClusterRecord(e), _confluentOrganizationOrganizationClientDiagnostics, Pipeline, "ConfluentOrganizationResource.GetSchemaRegistryClusters", "value", "nextLink", cancellationToken);
- }
-
- ///
- /// Get schema registry clusters
- ///
- /// -
- /// Request Path
- /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Confluent/organizations/{organizationName}/environments/{environmentId}/schemaRegistryClusters
- ///
- /// -
- /// Operation Id
- /// Organization_ListSchemaRegistryClusters
- ///
- /// -
- /// Default Api Version
- /// 2024-02-13
- ///
- /// -
- /// Resource
- ///
- ///
- ///
- ///
- /// Confluent environment id.
- /// Pagination size.
- /// An opaque pagination token to fetch the next set of records.
- /// The cancellation token to use.
- /// is an empty string, and was expected to be non-empty.
- /// is null.
- /// A collection of that may take multiple service requests to iterate over.
- public virtual Pageable GetSchemaRegistryClusters(string environmentId, int? pageSize = null, string pageToken = null, CancellationToken cancellationToken = default)
- {
- Argument.AssertNotNullOrEmpty(environmentId, nameof(environmentId));
-
- HttpMessage FirstPageRequest(int? pageSizeHint) => _confluentOrganizationOrganizationRestClient.CreateListSchemaRegistryClustersRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, environmentId, pageSizeHint, pageToken);
- HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _confluentOrganizationOrganizationRestClient.CreateListSchemaRegistryClustersNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name, environmentId, pageSizeHint, pageToken);
- return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => SchemaRegistryClusterRecord.DeserializeSchemaRegistryClusterRecord(e), _confluentOrganizationOrganizationClientDiagnostics, Pipeline, "ConfluentOrganizationResource.GetSchemaRegistryClusters", "value", "nextLink", cancellationToken);
- }
-
///
/// cloud provider regions available for creating Schema Registry clusters.
///
@@ -654,7 +424,7 @@ public virtual Pageable GetSchemaRegistryClusters(s
///
/// -
/// Default Api Version
- /// 2024-02-13
+ /// 2024-07-01
///
/// -
/// Resource
@@ -696,7 +466,7 @@ public virtual async Task> GetRegionsAsync(A
///
/// -
/// Default Api Version
- /// 2024-02-13
+ /// 2024-07-01
///
/// -
/// Resource
@@ -725,100 +495,6 @@ public virtual Response GetRegions(AccessListContent
}
}
- ///
- /// Creates API key for a schema registry Cluster ID or Kafka Cluster ID under a environment
- ///
- /// -
- /// Request Path
- /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Confluent/organizations/{organizationName}/environments/{environmentId}/clusters/{clusterId}/createAPIKey
- ///
- /// -
- /// Operation Id
- /// Organization_CreateApiKey
- ///
- /// -
- /// Default Api Version
- /// 2024-02-13
- ///
- /// -
- /// Resource
- ///
- ///
- ///
- ///
- /// Confluent environment id.
- /// Confluent kafka or schema registry cluster id.
- /// Request payload for get creating API Key for schema registry Cluster ID or Kafka Cluster ID under a environment.
- /// The cancellation token to use.
- /// or is an empty string, and was expected to be non-empty.
- /// , or is null.
- public virtual async Task> CreateApiKeyAsync(string environmentId, string clusterId, ConfluentApiKeyCreateContent content, CancellationToken cancellationToken = default)
- {
- Argument.AssertNotNullOrEmpty(environmentId, nameof(environmentId));
- Argument.AssertNotNullOrEmpty(clusterId, nameof(clusterId));
- Argument.AssertNotNull(content, nameof(content));
-
- using var scope = _confluentOrganizationOrganizationClientDiagnostics.CreateScope("ConfluentOrganizationResource.CreateApiKey");
- scope.Start();
- try
- {
- var response = await _confluentOrganizationOrganizationRestClient.CreateApiKeyAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, environmentId, clusterId, content, cancellationToken).ConfigureAwait(false);
- return response;
- }
- catch (Exception e)
- {
- scope.Failed(e);
- throw;
- }
- }
-
- ///
- /// Creates API key for a schema registry Cluster ID or Kafka Cluster ID under a environment
- ///
- /// -
- /// Request Path
- /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Confluent/organizations/{organizationName}/environments/{environmentId}/clusters/{clusterId}/createAPIKey
- ///
- /// -
- /// Operation Id
- /// Organization_CreateApiKey
- ///
- /// -
- /// Default Api Version
- /// 2024-02-13
- ///
- /// -
- /// Resource
- ///
- ///
- ///
- ///
- /// Confluent environment id.
- /// Confluent kafka or schema registry cluster id.
- /// Request payload for get creating API Key for schema registry Cluster ID or Kafka Cluster ID under a environment.
- /// The cancellation token to use.
- /// or is an empty string, and was expected to be non-empty.
- /// , or is null.
- public virtual Response CreateApiKey(string environmentId, string clusterId, ConfluentApiKeyCreateContent content, CancellationToken cancellationToken = default)
- {
- Argument.AssertNotNullOrEmpty(environmentId, nameof(environmentId));
- Argument.AssertNotNullOrEmpty(clusterId, nameof(clusterId));
- Argument.AssertNotNull(content, nameof(content));
-
- using var scope = _confluentOrganizationOrganizationClientDiagnostics.CreateScope("ConfluentOrganizationResource.CreateApiKey");
- scope.Start();
- try
- {
- var response = _confluentOrganizationOrganizationRestClient.CreateApiKey(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, environmentId, clusterId, content, cancellationToken);
- return response;
- }
- catch (Exception e)
- {
- scope.Failed(e);
- throw;
- }
- }
-
///
/// Deletes API key of a kafka or schema registry cluster
///
@@ -832,11 +508,7 @@ public virtual Response CreateApiKey(string environmentId
///
/// -
/// Default Api Version
- /// 2024-02-13
- ///
- /// -
- /// Resource
- ///
+ /// 2024-07-01
///
///
///
@@ -875,11 +547,7 @@ public virtual async Task DeleteClusterApiKeyAsync(string apiKeyId, Ca
///
/// -
/// Default Api Version
- /// 2024-02-13
- ///
- /// -
- /// Resource
- ///
+ /// 2024-07-01
///
///
///
@@ -918,11 +586,7 @@ public virtual Response DeleteClusterApiKey(string apiKeyId, CancellationToken c
///
/// -
/// Default Api Version
- /// 2024-02-13
- ///
- /// -
- /// Resource
- ///
+ /// 2024-07-01
///
///
///
@@ -961,11 +625,7 @@ public virtual async Task> GetClusterApiKeyAsync
///
/// -
/// Default Api Version
- /// 2024-02-13
- ///
- /// -
- /// Resource
- ///
+ /// 2024-07-01
///
///
///
@@ -991,186 +651,6 @@ public virtual Response GetClusterApiKey(string apiKeyId,
}
}
- ///
- /// Get schema registry cluster by Id
- ///
- /// -
- /// Request Path
- /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Confluent/organizations/{organizationName}/environments/{environmentId}/schemaRegistryClusters/{clusterId}
- ///
- /// -
- /// Operation Id
- /// Organization_GetSchemaRegistryClusterById
- ///
- /// -
- /// Default Api Version
- /// 2024-02-13
- ///
- /// -
- /// Resource
- ///
- ///
- ///
- ///
- /// Confluent environment id.
- /// Confluent kafka or schema registry cluster id.
- /// The cancellation token to use.
- /// or is an empty string, and was expected to be non-empty.
- /// or is null.
- public virtual async Task> GetSchemaRegistryClusterAsync(string environmentId, string clusterId, CancellationToken cancellationToken = default)
- {
- Argument.AssertNotNullOrEmpty(environmentId, nameof(environmentId));
- Argument.AssertNotNullOrEmpty(clusterId, nameof(clusterId));
-
- using var scope = _confluentOrganizationOrganizationClientDiagnostics.CreateScope("ConfluentOrganizationResource.GetSchemaRegistryCluster");
- scope.Start();
- try
- {
- var response = await _confluentOrganizationOrganizationRestClient.GetSchemaRegistryClusterByIdAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, environmentId, clusterId, cancellationToken).ConfigureAwait(false);
- return response;
- }
- catch (Exception e)
- {
- scope.Failed(e);
- throw;
- }
- }
-
- ///
- /// Get schema registry cluster by Id
- ///
- /// -
- /// Request Path
- /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Confluent/organizations/{organizationName}/environments/{environmentId}/schemaRegistryClusters/{clusterId}
- ///
- /// -
- /// Operation Id
- /// Organization_GetSchemaRegistryClusterById
- ///
- /// -
- /// Default Api Version
- /// 2024-02-13
- ///
- /// -
- /// Resource
- ///
- ///
- ///
- ///
- /// Confluent environment id.
- /// Confluent kafka or schema registry cluster id.
- /// The cancellation token to use.
- /// or is an empty string, and was expected to be non-empty.
- /// or is null.
- public virtual Response GetSchemaRegistryCluster(string environmentId, string clusterId, CancellationToken cancellationToken = default)
- {
- Argument.AssertNotNullOrEmpty(environmentId, nameof(environmentId));
- Argument.AssertNotNullOrEmpty(clusterId, nameof(clusterId));
-
- using var scope = _confluentOrganizationOrganizationClientDiagnostics.CreateScope("ConfluentOrganizationResource.GetSchemaRegistryCluster");
- scope.Start();
- try
- {
- var response = _confluentOrganizationOrganizationRestClient.GetSchemaRegistryClusterById(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, environmentId, clusterId, cancellationToken);
- return response;
- }
- catch (Exception e)
- {
- scope.Failed(e);
- throw;
- }
- }
-
- ///
- /// Get cluster by Id
- ///
- /// -
- /// Request Path
- /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Confluent/organizations/{organizationName}/environments/{environmentId}/clusters/{clusterId}
- ///
- /// -
- /// Operation Id
- /// Organization_GetClusterById
- ///
- /// -
- /// Default Api Version
- /// 2024-02-13
- ///
- /// -
- /// Resource
- ///
- ///
- ///
- ///
- /// Confluent environment id.
- /// Confluent kafka or schema registry cluster id.
- /// The cancellation token to use.
- /// or is an empty string, and was expected to be non-empty.
- /// or is null.
- public virtual async Task> GetClusterAsync(string environmentId, string clusterId, CancellationToken cancellationToken = default)
- {
- Argument.AssertNotNullOrEmpty(environmentId, nameof(environmentId));
- Argument.AssertNotNullOrEmpty(clusterId, nameof(clusterId));
-
- using var scope = _confluentOrganizationOrganizationClientDiagnostics.CreateScope("ConfluentOrganizationResource.GetCluster");
- scope.Start();
- try
- {
- var response = await _confluentOrganizationOrganizationRestClient.GetClusterByIdAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, environmentId, clusterId, cancellationToken).ConfigureAwait(false);
- return response;
- }
- catch (Exception e)
- {
- scope.Failed(e);
- throw;
- }
- }
-
- ///
- /// Get cluster by Id
- ///
- /// -
- /// Request Path
- /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Confluent/organizations/{organizationName}/environments/{environmentId}/clusters/{clusterId}
- ///
- /// -
- /// Operation Id
- /// Organization_GetClusterById
- ///
- /// -
- /// Default Api Version
- /// 2024-02-13
- ///
- /// -
- /// Resource
- ///
- ///
- ///
- ///
- /// Confluent environment id.
- /// Confluent kafka or schema registry cluster id.
- /// The cancellation token to use.
- /// or is an empty string, and was expected to be non-empty.
- /// or is null.
- public virtual Response GetCluster(string environmentId, string clusterId, CancellationToken cancellationToken = default)
- {
- Argument.AssertNotNullOrEmpty(environmentId, nameof(environmentId));
- Argument.AssertNotNullOrEmpty(clusterId, nameof(clusterId));
-
- using var scope = _confluentOrganizationOrganizationClientDiagnostics.CreateScope("ConfluentOrganizationResource.GetCluster");
- scope.Start();
- try
- {
- var response = _confluentOrganizationOrganizationRestClient.GetClusterById(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, environmentId, clusterId, cancellationToken);
- return response;
- }
- catch (Exception e)
- {
- scope.Failed(e);
- throw;
- }
- }
-
///
/// Organization users details
///
@@ -1184,7 +664,7 @@ public virtual Response GetCluster(string environmentId, string
///
/// -
/// Default Api Version
- /// 2024-02-13
+ /// 2024-07-01
///
///
///
@@ -1222,7 +702,7 @@ public virtual async Task> GetAccessUsersAsync(Ac
///
/// -
/// Default Api Version
- /// 2024-02-13
+ /// 2024-07-01
///
///
///
@@ -1260,7 +740,7 @@ public virtual Response GetAccessUsers(AccessListContent c
///
/// -
/// Default Api Version
- /// 2024-02-13
+ /// 2024-07-01
///
///
///
@@ -1298,7 +778,7 @@ public virtual async Task> GetAccessSer
///
/// -
/// Default Api Version
- /// 2024-02-13
+ /// 2024-07-01
///
///
///
@@ -1336,7 +816,7 @@ public virtual Response GetAccessServiceAccounts
///
/// -
/// Default Api Version
- /// 2024-02-13
+ /// 2024-07-01
///
///
///
@@ -1374,7 +854,7 @@ public virtual async Task> GetAccessInvitat
///
/// -
/// Default Api Version
- /// 2024-02-13
+ /// 2024-07-01
///
///
///
@@ -1412,7 +892,7 @@ public virtual Response GetAccessInvitations(AccessL
///
/// -
/// Default Api Version
- /// 2024-02-13
+ /// 2024-07-01
///
///
///
@@ -1450,7 +930,7 @@ public virtual async Task> InviteUserAsync(Acce
///
/// -
/// Default Api Version
- /// 2024-02-13
+ /// 2024-07-01
///
///
///
@@ -1488,7 +968,7 @@ public virtual Response InviteUser(AccessInvitationConte
///
/// -
/// Default Api Version
- /// 2024-02-13
+ /// 2024-07-01
///
///
///
@@ -1526,7 +1006,7 @@ public virtual async Task> GetAccessEnviro
///
/// -
/// Default Api Version
- /// 2024-02-13
+ /// 2024-07-01
///
///
///
@@ -1564,7 +1044,7 @@ public virtual Response GetAccessEnvironments(Acces
///
/// -
/// Default Api Version
- /// 2024-02-13
+ /// 2024-07-01
///
///
///
@@ -1602,7 +1082,7 @@ public virtual async Task> GetAccessClustersAs
///
/// -
/// Default Api Version
- /// 2024-02-13
+ /// 2024-07-01
///
///
///
@@ -1640,7 +1120,7 @@ public virtual Response GetAccessClusters(AccessListCon
///
/// -
/// Default Api Version
- /// 2024-02-13
+ /// 2024-07-01
///
///
///
@@ -1678,7 +1158,7 @@ public virtual async Task> GetAccessRoleBi
///
/// -
/// Default Api Version
- /// 2024-02-13
+ /// 2024-07-01
///
///
///
@@ -1716,7 +1196,7 @@ public virtual Response GetAccessRoleBindings(Acces
///
/// -
/// Default Api Version
- /// 2024-02-13
+ /// 2024-07-01
///
///
///
@@ -1754,7 +1234,7 @@ public virtual async Task> CreateAccessRoleBin
///
/// -
/// Default Api Version
- /// 2024-02-13
+ /// 2024-07-01
///
///
///
@@ -1792,7 +1272,7 @@ public virtual Response CreateAccessRoleBinding(AccessR
///
/// -
/// Default Api Version
- /// 2024-02-13
+ /// 2024-07-01
///
///
///
@@ -1831,7 +1311,7 @@ public virtual async Task DeleteAccessRoleBindingAsync(string roleBind
///
/// -
/// Default Api Version
- /// 2024-02-13
+ /// 2024-07-01
///
///
///
@@ -1870,7 +1350,7 @@ public virtual Response DeleteAccessRoleBinding(string roleBindingId, Cancellati
///
/// -
/// Default Api Version
- /// 2024-02-13
+ /// 2024-07-01
///
///
///
@@ -1908,7 +1388,7 @@ public virtual async Task> GetAccessRo
///
/// -
/// Default Api Version
- /// 2024-02-13
+ /// 2024-07-01
///
///
///
@@ -1946,7 +1426,7 @@ public virtual Response GetAccessRoleBindingNam
///
/// -
/// Default Api Version
- /// 2024-02-13
+ /// 2024-07-01
///
/// -
/// Resource
@@ -2008,7 +1488,7 @@ public virtual async Task> AddTagAsync(s
///
/// -
/// Default Api Version
- /// 2024-02-13
+ /// 2024-07-01
///
/// -
/// Resource
@@ -2070,7 +1550,7 @@ public virtual Response AddTag(string key, string
///
/// -
/// Default Api Version
- /// 2024-02-13
+ /// 2024-07-01
///
/// -
/// Resource
@@ -2127,7 +1607,7 @@ public virtual async Task> SetTagsAsync(
///
/// -
/// Default Api Version
- /// 2024-02-13
+ /// 2024-07-01
///
/// -
/// Resource
@@ -2184,7 +1664,7 @@ public virtual Response SetTags(IDictionary
///
-
/// Default Api Version
- /// 2024-02-13
+ /// 2024-07-01
///
/// -
/// Resource
@@ -2244,7 +1724,7 @@ public virtual async Task> RemoveTagAsyn
///
/// -
/// Default Api Version
- /// 2024-02-13
+ /// 2024-07-01
///
/// -
/// Resource
diff --git a/sdk/confluent/Azure.ResourceManager.Confluent/src/Generated/ConnectorResource.Serialization.cs b/sdk/confluent/Azure.ResourceManager.Confluent/src/Generated/ConnectorResource.Serialization.cs
new file mode 100644
index 000000000000..f97197d7070d
--- /dev/null
+++ b/sdk/confluent/Azure.ResourceManager.Confluent/src/Generated/ConnectorResource.Serialization.cs
@@ -0,0 +1,26 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.ClientModel.Primitives;
+using System.Text.Json;
+
+namespace Azure.ResourceManager.Confluent
+{
+ public partial class ConnectorResource : IJsonModel
+ {
+ void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) => ((IJsonModel)Data).Write(writer, options);
+
+ ConnectorResourceData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => ((IJsonModel)Data).Create(ref reader, options);
+
+ BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => ModelReaderWriter.Write(Data, options);
+
+ ConnectorResourceData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => ModelReaderWriter.Read(data, options);
+
+ string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => ((IPersistableModel)Data).GetFormatFromOptions(options);
+ }
+}
diff --git a/sdk/confluent/Azure.ResourceManager.Confluent/src/Generated/ConnectorResource.cs b/sdk/confluent/Azure.ResourceManager.Confluent/src/Generated/ConnectorResource.cs
new file mode 100644
index 000000000000..d7318a8558c5
--- /dev/null
+++ b/sdk/confluent/Azure.ResourceManager.Confluent/src/Generated/ConnectorResource.cs
@@ -0,0 +1,353 @@
+// 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.Confluent
+{
+ ///
+ /// A Class representing a ConnectorResource along with the instance operations that can be performed on it.
+ /// If you have a you can construct a
+ /// from an instance of using the GetConnectorResource method.
+ /// Otherwise you can get one from its parent resource using the GetConnectorResource method.
+ ///
+ public partial class ConnectorResource : ArmResource
+ {
+ /// Generate the resource identifier of a instance.
+ /// The subscriptionId.
+ /// The resourceGroupName.
+ /// The organizationName.
+ /// The environmentId.
+ /// The clusterId.
+ /// The connectorName.
+ public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string organizationName, string environmentId, string clusterId, string connectorName)
+ {
+ var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Confluent/organizations/{organizationName}/environments/{environmentId}/clusters/{clusterId}/connectors/{connectorName}";
+ return new ResourceIdentifier(resourceId);
+ }
+
+ private readonly ClientDiagnostics _connectorResourceConnectorClientDiagnostics;
+ private readonly ConnectorRestOperations _connectorResourceConnectorRestClient;
+ private readonly ConnectorResourceData _data;
+
+ /// Gets the resource type for the operations.
+ public static readonly ResourceType ResourceType = "Microsoft.Confluent/organizations/environments/clusters/connectors";
+
+ /// Initializes a new instance of the class for mocking.
+ protected ConnectorResource()
+ {
+ }
+
+ /// Initializes a new instance of the class.
+ /// The client parameters to use in these operations.
+ /// The resource that is the target of operations.
+ internal ConnectorResource(ArmClient client, ConnectorResourceData data) : this(client, data.Id)
+ {
+ HasData = true;
+ _data = data;
+ }
+
+ /// Initializes a new instance of the class.
+ /// The client parameters to use in these operations.
+ /// The identifier of the resource that is the target of operations.
+ internal ConnectorResource(ArmClient client, ResourceIdentifier id) : base(client, id)
+ {
+ _connectorResourceConnectorClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Confluent", ResourceType.Namespace, Diagnostics);
+ TryGetApiVersion(ResourceType, out string connectorResourceConnectorApiVersion);
+ _connectorResourceConnectorRestClient = new ConnectorRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, connectorResourceConnectorApiVersion);
+#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 ConnectorResourceData 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 confluent connector by Name
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Confluent/organizations/{organizationName}/environments/{environmentId}/clusters/{clusterId}/connectors/{connectorName}
+ ///
+ /// -
+ /// Operation Id
+ /// Connector_Get
+ ///
+ /// -
+ /// Default Api Version
+ /// 2024-07-01
+ ///
+ /// -
+ /// Resource
+ ///
+ ///
+ ///
+ ///
+ /// The cancellation token to use.
+ public virtual async Task> GetAsync(CancellationToken cancellationToken = default)
+ {
+ using var scope = _connectorResourceConnectorClientDiagnostics.CreateScope("ConnectorResource.Get");
+ scope.Start();
+ try
+ {
+ var response = await _connectorResourceConnectorRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Name, 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 ConnectorResource(Client, response.Value), response.GetRawResponse());
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// Get confluent connector by Name
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Confluent/organizations/{organizationName}/environments/{environmentId}/clusters/{clusterId}/connectors/{connectorName}
+ ///
+ /// -
+ /// Operation Id
+ /// Connector_Get
+ ///
+ /// -
+ /// Default Api Version
+ /// 2024-07-01
+ ///
+ /// -
+ /// Resource
+ ///
+ ///
+ ///
+ ///
+ /// The cancellation token to use.
+ public virtual Response Get(CancellationToken cancellationToken = default)
+ {
+ using var scope = _connectorResourceConnectorClientDiagnostics.CreateScope("ConnectorResource.Get");
+ scope.Start();
+ try
+ {
+ var response = _connectorResourceConnectorRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken);
+ if (response.Value == null)
+ throw new RequestFailedException(response.GetRawResponse());
+ return Response.FromValue(new ConnectorResource(Client, response.Value), response.GetRawResponse());
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// Delete confluent connector by name
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Confluent/organizations/{organizationName}/environments/{environmentId}/clusters/{clusterId}/connectors/{connectorName}
+ ///
+ /// -
+ /// Operation Id
+ /// Connector_Delete
+ ///
+ /// -
+ /// Default Api Version
+ /// 2024-07-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 = _connectorResourceConnectorClientDiagnostics.CreateScope("ConnectorResource.Delete");
+ scope.Start();
+ try
+ {
+ var response = await _connectorResourceConnectorRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false);
+ var operation = new ConfluentArmOperation(_connectorResourceConnectorClientDiagnostics, Pipeline, _connectorResourceConnectorRestClient.CreateDeleteRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Name, 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 confluent connector by name
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Confluent/organizations/{organizationName}/environments/{environmentId}/clusters/{clusterId}/connectors/{connectorName}
+ ///
+ /// -
+ /// Operation Id
+ /// Connector_Delete
+ ///
+ /// -
+ /// Default Api Version
+ /// 2024-07-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 = _connectorResourceConnectorClientDiagnostics.CreateScope("ConnectorResource.Delete");
+ scope.Start();
+ try
+ {
+ var response = _connectorResourceConnectorRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken);
+ var operation = new ConfluentArmOperation(_connectorResourceConnectorClientDiagnostics, Pipeline, _connectorResourceConnectorRestClient.CreateDeleteRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Name, 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 confluent connector by Name
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Confluent/organizations/{organizationName}/environments/{environmentId}/clusters/{clusterId}/connectors/{connectorName}
+ ///
+ /// -
+ /// Operation Id
+ /// Connector_CreateOrUpdate
+ ///
+ /// -
+ /// Default Api Version
+ /// 2024-07-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.
+ /// Confluent Connector resource model.
+ /// The cancellation token to use.
+ /// is null.
+ public virtual async Task> UpdateAsync(WaitUntil waitUntil, ConnectorResourceData data, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNull(data, nameof(data));
+
+ using var scope = _connectorResourceConnectorClientDiagnostics.CreateScope("ConnectorResource.Update");
+ scope.Start();
+ try
+ {
+ var response = await _connectorResourceConnectorRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false);
+ var uri = _connectorResourceConnectorRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data);
+ var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), "None", null, OperationFinalStateVia.OriginalUri.ToString());
+ var operation = new ConfluentArmOperation(Response.FromValue(new ConnectorResource(Client, response), response.GetRawResponse()), rehydrationToken);
+ if (waitUntil == WaitUntil.Completed)
+ await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false);
+ return operation;
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// Create confluent connector by Name
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Confluent/organizations/{organizationName}/environments/{environmentId}/clusters/{clusterId}/connectors/{connectorName}
+ ///
+ /// -
+ /// Operation Id
+ /// Connector_CreateOrUpdate
+ ///
+ /// -
+ /// Default Api Version
+ /// 2024-07-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.
+ /// Confluent Connector resource model.
+ /// The cancellation token to use.
+ /// is null.
+ public virtual ArmOperation Update(WaitUntil waitUntil, ConnectorResourceData data, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNull(data, nameof(data));
+
+ using var scope = _connectorResourceConnectorClientDiagnostics.CreateScope("ConnectorResource.Update");
+ scope.Start();
+ try
+ {
+ var response = _connectorResourceConnectorRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, cancellationToken);
+ var uri = _connectorResourceConnectorRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data);
+ var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), "None", null, OperationFinalStateVia.OriginalUri.ToString());
+ var operation = new ConfluentArmOperation(Response.FromValue(new ConnectorResource(Client, response), response.GetRawResponse()), rehydrationToken);
+ if (waitUntil == WaitUntil.Completed)
+ operation.WaitForCompletion(cancellationToken);
+ return operation;
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+ }
+}
diff --git a/sdk/confluent/Azure.ResourceManager.Confluent/src/Generated/ConnectorResourceCollection.cs b/sdk/confluent/Azure.ResourceManager.Confluent/src/Generated/ConnectorResourceCollection.cs
new file mode 100644
index 000000000000..55caf92b697a
--- /dev/null
+++ b/sdk/confluent/Azure.ResourceManager.Confluent/src/Generated/ConnectorResourceCollection.cs
@@ -0,0 +1,501 @@
+// 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.Confluent
+{
+ ///
+ /// 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 GetConnectorResources method from an instance of .
+ ///
+ public partial class ConnectorResourceCollection : ArmCollection, IEnumerable, IAsyncEnumerable
+ {
+ private readonly ClientDiagnostics _connectorResourceConnectorClientDiagnostics;
+ private readonly ConnectorRestOperations _connectorResourceConnectorRestClient;
+
+ /// Initializes a new instance of the class for mocking.
+ protected ConnectorResourceCollection()
+ {
+ }
+
+ /// 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 ConnectorResourceCollection(ArmClient client, ResourceIdentifier id) : base(client, id)
+ {
+ _connectorResourceConnectorClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Confluent", ConnectorResource.ResourceType.Namespace, Diagnostics);
+ TryGetApiVersion(ConnectorResource.ResourceType, out string connectorResourceConnectorApiVersion);
+ _connectorResourceConnectorRestClient = new ConnectorRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, connectorResourceConnectorApiVersion);
+#if DEBUG
+ ValidateResourceId(Id);
+#endif
+ }
+
+ internal static void ValidateResourceId(ResourceIdentifier id)
+ {
+ if (id.ResourceType != SCClusterRecordResource.ResourceType)
+ throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, SCClusterRecordResource.ResourceType), nameof(id));
+ }
+
+ ///
+ /// Create confluent connector by Name
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Confluent/organizations/{organizationName}/environments/{environmentId}/clusters/{clusterId}/connectors/{connectorName}
+ ///
+ /// -
+ /// Operation Id
+ /// Connector_CreateOrUpdate
+ ///
+ /// -
+ /// Default Api Version
+ /// 2024-07-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.
+ /// Confluent connector name.
+ /// Confluent Connector resource model.
+ /// The cancellation token to use.
+ /// is an empty string, and was expected to be non-empty.
+ /// or is null.
+ public virtual async Task> CreateOrUpdateAsync(WaitUntil waitUntil, string connectorName, ConnectorResourceData data, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNullOrEmpty(connectorName, nameof(connectorName));
+ Argument.AssertNotNull(data, nameof(data));
+
+ using var scope = _connectorResourceConnectorClientDiagnostics.CreateScope("ConnectorResourceCollection.CreateOrUpdate");
+ scope.Start();
+ try
+ {
+ var response = await _connectorResourceConnectorRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, connectorName, data, cancellationToken).ConfigureAwait(false);
+ var uri = _connectorResourceConnectorRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, connectorName, data);
+ var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), "None", null, OperationFinalStateVia.OriginalUri.ToString());
+ var operation = new ConfluentArmOperation(Response.FromValue(new ConnectorResource(Client, response), response.GetRawResponse()), rehydrationToken);
+ if (waitUntil == WaitUntil.Completed)
+ await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false);
+ return operation;
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// Create confluent connector by Name
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Confluent/organizations/{organizationName}/environments/{environmentId}/clusters/{clusterId}/connectors/{connectorName}
+ ///
+ /// -
+ /// Operation Id
+ /// Connector_CreateOrUpdate
+ ///
+ /// -
+ /// Default Api Version
+ /// 2024-07-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.
+ /// Confluent connector name.
+ /// Confluent Connector resource model.
+ /// The cancellation token to use.
+ /// is an empty string, and was expected to be non-empty.
+ /// or is null.
+ public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, string connectorName, ConnectorResourceData data, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNullOrEmpty(connectorName, nameof(connectorName));
+ Argument.AssertNotNull(data, nameof(data));
+
+ using var scope = _connectorResourceConnectorClientDiagnostics.CreateScope("ConnectorResourceCollection.CreateOrUpdate");
+ scope.Start();
+ try
+ {
+ var response = _connectorResourceConnectorRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, connectorName, data, cancellationToken);
+ var uri = _connectorResourceConnectorRestClient.CreateCreateOrUpdateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, connectorName, data);
+ var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), "None", null, OperationFinalStateVia.OriginalUri.ToString());
+ var operation = new ConfluentArmOperation(Response.FromValue(new ConnectorResource(Client, response), response.GetRawResponse()), rehydrationToken);
+ if (waitUntil == WaitUntil.Completed)
+ operation.WaitForCompletion(cancellationToken);
+ return operation;
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// Get confluent connector by Name
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Confluent/organizations/{organizationName}/environments/{environmentId}/clusters/{clusterId}/connectors/{connectorName}
+ ///
+ /// -
+ /// Operation Id
+ /// Connector_Get
+ ///
+ /// -
+ /// Default Api Version
+ /// 2024-07-01
+ ///
+ /// -
+ /// Resource
+ ///
+ ///
+ ///
+ ///
+ /// Confluent connector name.
+ /// The cancellation token to use.
+ /// is an empty string, and was expected to be non-empty.
+ /// is null.
+ public virtual async Task> GetAsync(string connectorName, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNullOrEmpty(connectorName, nameof(connectorName));
+
+ using var scope = _connectorResourceConnectorClientDiagnostics.CreateScope("ConnectorResourceCollection.Get");
+ scope.Start();
+ try
+ {
+ var response = await _connectorResourceConnectorRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, connectorName, cancellationToken).ConfigureAwait(false);
+ if (response.Value == null)
+ throw new RequestFailedException(response.GetRawResponse());
+ return Response.FromValue(new ConnectorResource(Client, response.Value), response.GetRawResponse());
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// Get confluent connector by Name
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Confluent/organizations/{organizationName}/environments/{environmentId}/clusters/{clusterId}/connectors/{connectorName}
+ ///
+ /// -
+ /// Operation Id
+ /// Connector_Get
+ ///
+ /// -
+ /// Default Api Version
+ /// 2024-07-01
+ ///
+ /// -
+ /// Resource
+ ///
+ ///
+ ///
+ ///
+ /// Confluent connector name.
+ /// The cancellation token to use.
+ /// is an empty string, and was expected to be non-empty.
+ /// is null.
+ public virtual Response Get(string connectorName, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNullOrEmpty(connectorName, nameof(connectorName));
+
+ using var scope = _connectorResourceConnectorClientDiagnostics.CreateScope("ConnectorResourceCollection.Get");
+ scope.Start();
+ try
+ {
+ var response = _connectorResourceConnectorRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, connectorName, cancellationToken);
+ if (response.Value == null)
+ throw new RequestFailedException(response.GetRawResponse());
+ return Response.FromValue(new ConnectorResource(Client, response.Value), response.GetRawResponse());
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// Lists all the connectors in a cluster
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Confluent/organizations/{organizationName}/environments/{environmentId}/clusters/{clusterId}/connectors
+ ///
+ /// -
+ /// Operation Id
+ /// Connector_List
+ ///
+ /// -
+ /// Default Api Version
+ /// 2024-07-01
+ ///
+ /// -
+ /// Resource
+ ///
+ ///
+ ///
+ ///
+ /// Pagination size.
+ /// An opaque pagination token to fetch the next set of records.
+ /// The cancellation token to use.
+ /// An async collection of that may take multiple service requests to iterate over.
+ public virtual AsyncPageable GetAllAsync(int? pageSize = null, string pageToken = null, CancellationToken cancellationToken = default)
+ {
+ HttpMessage FirstPageRequest(int? pageSizeHint) => _connectorResourceConnectorRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, pageSizeHint, pageToken);
+ HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _connectorResourceConnectorRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, pageSizeHint, pageToken);
+ return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new ConnectorResource(Client, ConnectorResourceData.DeserializeConnectorResourceData(e)), _connectorResourceConnectorClientDiagnostics, Pipeline, "ConnectorResourceCollection.GetAll", "value", "nextLink", cancellationToken);
+ }
+
+ ///
+ /// Lists all the connectors in a cluster
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Confluent/organizations/{organizationName}/environments/{environmentId}/clusters/{clusterId}/connectors
+ ///
+ /// -
+ /// Operation Id
+ /// Connector_List
+ ///
+ /// -
+ /// Default Api Version
+ /// 2024-07-01
+ ///
+ /// -
+ /// Resource
+ ///
+ ///
+ ///
+ ///
+ /// Pagination size.
+ /// An opaque pagination token to fetch the next set of records.
+ /// The cancellation token to use.
+ /// A collection of that may take multiple service requests to iterate over.
+ public virtual Pageable GetAll(int? pageSize = null, string pageToken = null, CancellationToken cancellationToken = default)
+ {
+ HttpMessage FirstPageRequest(int? pageSizeHint) => _connectorResourceConnectorRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, pageSizeHint, pageToken);
+ HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _connectorResourceConnectorRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, pageSizeHint, pageToken);
+ return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new ConnectorResource(Client, ConnectorResourceData.DeserializeConnectorResourceData(e)), _connectorResourceConnectorClientDiagnostics, Pipeline, "ConnectorResourceCollection.GetAll", "value", "nextLink", cancellationToken);
+ }
+
+ ///
+ /// Checks to see if the resource exists in azure.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Confluent/organizations/{organizationName}/environments/{environmentId}/clusters/{clusterId}/connectors/{connectorName}
+ ///
+ /// -
+ /// Operation Id
+ /// Connector_Get
+ ///
+ /// -
+ /// Default Api Version
+ /// 2024-07-01
+ ///
+ /// -
+ /// Resource
+ ///
+ ///
+ ///
+ ///
+ /// Confluent connector name.
+ /// The cancellation token to use.
+ /// is an empty string, and was expected to be non-empty.
+ /// is null.
+ public virtual async Task> ExistsAsync(string connectorName, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNullOrEmpty(connectorName, nameof(connectorName));
+
+ using var scope = _connectorResourceConnectorClientDiagnostics.CreateScope("ConnectorResourceCollection.Exists");
+ scope.Start();
+ try
+ {
+ var response = await _connectorResourceConnectorRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, connectorName, cancellationToken: cancellationToken).ConfigureAwait(false);
+ return Response.FromValue(response.Value != null, response.GetRawResponse());
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// Checks to see if the resource exists in azure.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Confluent/organizations/{organizationName}/environments/{environmentId}/clusters/{clusterId}/connectors/{connectorName}
+ ///
+ /// -
+ /// Operation Id
+ /// Connector_Get
+ ///
+ /// -
+ /// Default Api Version
+ /// 2024-07-01
+ ///
+ /// -
+ /// Resource
+ ///
+ ///
+ ///
+ ///
+ /// Confluent connector name.
+ /// The cancellation token to use.
+ /// is an empty string, and was expected to be non-empty.
+ /// is null.
+ public virtual Response Exists(string connectorName, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNullOrEmpty(connectorName, nameof(connectorName));
+
+ using var scope = _connectorResourceConnectorClientDiagnostics.CreateScope("ConnectorResourceCollection.Exists");
+ scope.Start();
+ try
+ {
+ var response = _connectorResourceConnectorRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, connectorName, cancellationToken: cancellationToken);
+ return Response.FromValue(response.Value != null, response.GetRawResponse());
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// Tries to get details for this resource from the service.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Confluent/organizations/{organizationName}/environments/{environmentId}/clusters/{clusterId}/connectors/{connectorName}
+ ///
+ /// -
+ /// Operation Id
+ /// Connector_Get
+ ///
+ /// -
+ /// Default Api Version
+ /// 2024-07-01
+ ///
+ /// -
+ /// Resource
+ ///
+ ///
+ ///
+ ///
+ /// Confluent connector name.
+ /// The cancellation token to use.
+ /// is an empty string, and was expected to be non-empty.
+ /// is null.
+ public virtual async Task> GetIfExistsAsync(string connectorName, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNullOrEmpty(connectorName, nameof(connectorName));
+
+ using var scope = _connectorResourceConnectorClientDiagnostics.CreateScope("ConnectorResourceCollection.GetIfExists");
+ scope.Start();
+ try
+ {
+ var response = await _connectorResourceConnectorRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, connectorName, cancellationToken: cancellationToken).ConfigureAwait(false);
+ if (response.Value == null)
+ return new NoValueResponse(response.GetRawResponse());
+ return Response.FromValue(new ConnectorResource(Client, response.Value), response.GetRawResponse());
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// Tries to get details for this resource from the service.
+ ///
+ /// -
+ /// Request Path
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Confluent/organizations/{organizationName}/environments/{environmentId}/clusters/{clusterId}/connectors/{connectorName}
+ ///
+ /// -
+ /// Operation Id
+ /// Connector_Get
+ ///
+ /// -
+ /// Default Api Version
+ /// 2024-07-01
+ ///
+ /// -
+ /// Resource
+ ///
+ ///
+ ///
+ ///
+ /// Confluent connector name.
+ /// The cancellation token to use.
+ /// is an empty string, and was expected to be non-empty.
+ /// is null.
+ public virtual NullableResponse GetIfExists(string connectorName, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNullOrEmpty(connectorName, nameof(connectorName));
+
+ using var scope = _connectorResourceConnectorClientDiagnostics.CreateScope("ConnectorResourceCollection.GetIfExists");
+ scope.Start();
+ try
+ {
+ var response = _connectorResourceConnectorRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, connectorName, cancellationToken: cancellationToken);
+ if (response.Value == null)
+ return new NoValueResponse(response.GetRawResponse());
+ return Response.FromValue(new ConnectorResource(Client, response.Value), response.GetRawResponse());
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ IEnumerator IEnumerable.GetEnumerator()
+ {
+ return GetAll().GetEnumerator();
+ }
+
+ IEnumerator IEnumerable.GetEnumerator()
+ {
+ return GetAll().GetEnumerator();
+ }
+
+ IAsyncEnumerator IAsyncEnumerable.GetAsyncEnumerator(CancellationToken cancellationToken)
+ {
+ return GetAllAsync(cancellationToken: cancellationToken).GetAsyncEnumerator(cancellationToken);
+ }
+ }
+}
diff --git a/sdk/confluent/Azure.ResourceManager.Confluent/src/Generated/ConnectorResourceData.Serialization.cs b/sdk/confluent/Azure.ResourceManager.Confluent/src/Generated/ConnectorResourceData.Serialization.cs
new file mode 100644
index 000000000000..a4f7fc54b4b4
--- /dev/null
+++ b/sdk/confluent/Azure.ResourceManager.Confluent/src/Generated/ConnectorResourceData.Serialization.cs
@@ -0,0 +1,202 @@
+// 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.Confluent.Models;
+using Azure.ResourceManager.Models;
+
+namespace Azure.ResourceManager.Confluent
+{
+ public partial class ConnectorResourceData : 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(ConnectorResourceData)} does not support writing '{format}' format.");
+ }
+
+ base.JsonModelWriteCore(writer, options);
+ writer.WritePropertyName("properties"u8);
+ writer.WriteStartObject();
+ if (Optional.IsDefined(ConnectorBasicInfo))
+ {
+ writer.WritePropertyName("connectorBasicInfo"u8);
+ writer.WriteObjectValue(ConnectorBasicInfo, options);
+ }
+ if (Optional.IsDefined(ConnectorServiceTypeInfo))
+ {
+ writer.WritePropertyName("connectorServiceTypeInfo"u8);
+ writer.WriteObjectValue(ConnectorServiceTypeInfo, options);
+ }
+ if (Optional.IsDefined(PartnerConnectorInfo))
+ {
+ writer.WritePropertyName("partnerConnectorInfo"u8);
+ writer.WriteObjectValue(PartnerConnectorInfo, options);
+ }
+ writer.WriteEndObject();
+ }
+
+ ConnectorResourceData 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(ConnectorResourceData)} does not support reading '{format}' format.");
+ }
+
+ using JsonDocument document = JsonDocument.ParseValue(ref reader);
+ return DeserializeConnectorResourceData(document.RootElement, options);
+ }
+
+ internal static ConnectorResourceData DeserializeConnectorResourceData(JsonElement element, ModelReaderWriterOptions options = null)
+ {
+ options ??= ModelSerializationExtensions.WireOptions;
+
+ if (element.ValueKind == JsonValueKind.Null)
+ {
+ return null;
+ }
+ ResourceIdentifier id = default;
+ string name = default;
+ ResourceType type = default;
+ SystemData systemData = default;
+ ConnectorInfoBase connectorBasicInfo = default;
+ ConnectorServiceTypeInfoBase connectorServiceTypeInfo = default;
+ PartnerInfoBase partnerConnectorInfo = default;
+ IDictionary serializedAdditionalRawData = default;
+ Dictionary rawDataDictionary = new Dictionary();
+ foreach (var property in element.EnumerateObject())
+ {
+ if (property.NameEquals("id"u8))
+ {
+ id = new ResourceIdentifier(property.Value.GetString());
+ continue;
+ }
+ if (property.NameEquals("name"u8))
+ {
+ name = property.Value.GetString();
+ continue;
+ }
+ if (property.NameEquals("type"u8))
+ {
+ type = new ResourceType(property.Value.GetString());
+ continue;
+ }
+ if (property.NameEquals("systemData"u8))
+ {
+ if (property.Value.ValueKind == JsonValueKind.Null)
+ {
+ continue;
+ }
+ systemData = JsonSerializer.Deserialize(property.Value.GetRawText());
+ continue;
+ }
+ if (property.NameEquals("properties"u8))
+ {
+ if (property.Value.ValueKind == JsonValueKind.Null)
+ {
+ property.ThrowNonNullablePropertyIsNull();
+ continue;
+ }
+ foreach (var property0 in property.Value.EnumerateObject())
+ {
+ if (property0.NameEquals("connectorBasicInfo"u8))
+ {
+ if (property0.Value.ValueKind == JsonValueKind.Null)
+ {
+ continue;
+ }
+ connectorBasicInfo = ConnectorInfoBase.DeserializeConnectorInfoBase(property0.Value, options);
+ continue;
+ }
+ if (property0.NameEquals("connectorServiceTypeInfo"u8))
+ {
+ if (property0.Value.ValueKind == JsonValueKind.Null)
+ {
+ continue;
+ }
+ connectorServiceTypeInfo = ConnectorServiceTypeInfoBase.DeserializeConnectorServiceTypeInfoBase(property0.Value, options);
+ continue;
+ }
+ if (property0.NameEquals("partnerConnectorInfo"u8))
+ {
+ if (property0.Value.ValueKind == JsonValueKind.Null)
+ {
+ continue;
+ }
+ partnerConnectorInfo = PartnerInfoBase.DeserializePartnerInfoBase(property0.Value, options);
+ continue;
+ }
+ }
+ continue;
+ }
+ if (options.Format != "W")
+ {
+ rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText()));
+ }
+ }
+ serializedAdditionalRawData = rawDataDictionary;
+ return new ConnectorResourceData(
+ id,
+ name,
+ type,
+ systemData,
+ connectorBasicInfo,
+ connectorServiceTypeInfo,
+ partnerConnectorInfo,
+ 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(ConnectorResourceData)} does not support writing '{options.Format}' format.");
+ }
+ }
+
+ ConnectorResourceData 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 DeserializeConnectorResourceData(document.RootElement, options);
+ }
+ default:
+ throw new FormatException($"The model {nameof(ConnectorResourceData)} does not support reading '{options.Format}' format.");
+ }
+ }
+
+ string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J";
+ }
+}
diff --git a/sdk/confluent/Azure.ResourceManager.Confluent/src/Generated/ConnectorResourceData.cs b/sdk/confluent/Azure.ResourceManager.Confluent/src/Generated/ConnectorResourceData.cs
new file mode 100644
index 000000000000..1b51fe932246
--- /dev/null
+++ b/sdk/confluent/Azure.ResourceManager.Confluent/src/Generated/ConnectorResourceData.cs
@@ -0,0 +1,99 @@
+// 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.Confluent.Models;
+using Azure.ResourceManager.Models;
+
+namespace Azure.ResourceManager.Confluent
+{
+ ///
+ /// A class representing the ConnectorResource data model.
+ /// Details of connector record
+ ///
+ public partial class ConnectorResourceData : ResourceData
+ {
+ ///
+ /// Keeps track of any properties unknown to the library.
+ ///
+ /// To assign an object to the value of this property use .
+ ///
+ ///
+ /// To assign an already formatted json string to this property use .
+ ///
+ ///
+ /// Examples:
+ ///
+ /// -
+ /// BinaryData.FromObjectAsJson("foo")
+ /// Creates a payload of "foo".
+ ///
+ /// -
+ /// BinaryData.FromString("\"foo\"")
+ /// Creates a payload of "foo".
+ ///
+ /// -
+ /// BinaryData.FromObjectAsJson(new { key = "value" })
+ /// Creates a payload of { "key": "value" }.
+ ///
+ /// -
+ /// BinaryData.FromString("{\"key\": \"value\"}")
+ /// Creates a payload of { "key": "value" }.
+ ///
+ ///
+ ///
+ ///
+ private IDictionary _serializedAdditionalRawData;
+
+ /// Initializes a new instance of .
+ public ConnectorResourceData()
+ {
+ }
+
+ /// Initializes a new instance of .
+ /// The id.
+ /// The name.
+ /// The resourceType.
+ /// The systemData.
+ /// Connector Info Base.
+ ///
+ /// Connector Service type info base properties.
+ /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes.
+ /// The available derived classes include , , , and .
+ ///
+ ///
+ /// The connection information consumed by applications.
+ /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes.
+ /// The available derived classes include , , , and .
+ ///
+ /// Keeps track of any properties unknown to the library.
+ internal ConnectorResourceData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, ConnectorInfoBase connectorBasicInfo, ConnectorServiceTypeInfoBase connectorServiceTypeInfo, PartnerInfoBase partnerConnectorInfo, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData)
+ {
+ ConnectorBasicInfo = connectorBasicInfo;
+ ConnectorServiceTypeInfo = connectorServiceTypeInfo;
+ PartnerConnectorInfo = partnerConnectorInfo;
+ _serializedAdditionalRawData = serializedAdditionalRawData;
+ }
+
+ /// Connector Info Base.
+ public ConnectorInfoBase ConnectorBasicInfo { get; set; }
+ ///
+ /// Connector Service type info base properties.
+ /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes.
+ /// The available derived classes include , , , and .
+ ///
+ public ConnectorServiceTypeInfoBase ConnectorServiceTypeInfo { get; set; }
+ ///
+ /// The connection information consumed by applications.
+ /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes.
+ /// The available derived classes include , , , and .
+ ///
+ public PartnerInfoBase PartnerConnectorInfo { get; set; }
+ }
+}
diff --git a/sdk/confluent/Azure.ResourceManager.Confluent/src/Generated/Extensions/ConfluentExtensions.cs b/sdk/confluent/Azure.ResourceManager.Confluent/src/Generated/Extensions/ConfluentExtensions.cs
index d725b662e498..390db254794b 100644
--- a/sdk/confluent/Azure.ResourceManager.Confluent/src/Generated/Extensions/ConfluentExtensions.cs
+++ b/sdk/confluent/Azure.ResourceManager.Confluent/src/Generated/Extensions/ConfluentExtensions.cs
@@ -52,6 +52,82 @@ public static ConfluentOrganizationResource GetConfluentOrganizationResource(thi
return GetMockableConfluentArmClient(client).GetConfluentOrganizationResource(id);
}
+ ///
+ /// Gets an object representing a along with the instance operations that can be performed on it but with no data.
+ /// You can use to create a from its components.
+ /// -
+ /// Mocking
+ /// To mock this method, please mock instead.
+ ///
+ ///
+ /// The instance the method will execute against.
+ /// The resource ID of the resource to get.
+ /// is null.
+ /// Returns a object.
+ public static SCEnvironmentRecordResource GetSCEnvironmentRecordResource(this ArmClient client, ResourceIdentifier id)
+ {
+ Argument.AssertNotNull(client, nameof(client));
+
+ return GetMockableConfluentArmClient(client).GetSCEnvironmentRecordResource(id);
+ }
+
+ ///
+ /// Gets an object representing a along with the instance operations that can be performed on it but with no data.
+ /// You can use to create a from its components.
+ /// -
+ /// Mocking
+ /// To mock this method, please mock instead.
+ ///
+ ///
+ /// The instance the method will execute against.
+ /// The resource ID of the resource to get.
+ /// is null.
+ /// Returns a object.
+ public static SCClusterRecordResource GetSCClusterRecordResource(this ArmClient client, ResourceIdentifier id)
+ {
+ Argument.AssertNotNull(client, nameof(client));
+
+ return GetMockableConfluentArmClient(client).GetSCClusterRecordResource(id);
+ }
+
+ ///
+ /// Gets an object representing a along with the instance operations that can be performed on it but with no data.
+ /// You can use to create a from its components.
+ /// -
+ /// Mocking
+ /// To mock this method, please mock instead.
+ ///
+ ///
+ /// The instance the method will execute against.
+ /// The resource ID of the resource to get.
+ /// is null.
+ /// Returns a object.
+ public static ConnectorResource GetConnectorResource(this ArmClient client, ResourceIdentifier id)
+ {
+ Argument.AssertNotNull(client, nameof(client));
+
+ return GetMockableConfluentArmClient(client).GetConnectorResource(id);
+ }
+
+ ///
+ /// Gets an object representing a along with the instance operations that can be performed on it but with no data.
+ /// You can use to create a from its components.
+ /// -
+ /// Mocking
+ /// To mock this method, please mock instead.
+ ///
+ ///
+ /// The instance the method will execute against.
+ /// The resource ID of the resource to get.
+ /// is null.
+ /// Returns a object.
+ public static TopicRecordResource GetTopicRecordResource(this ArmClient client, ResourceIdentifier id)
+ {
+ Argument.AssertNotNull(client, nameof(client));
+
+ return GetMockableConfluentArmClient(client).GetTopicRecordResource(id);
+ }
+
///
/// Gets a collection of ConfluentOrganizationResources in the ResourceGroupResource.
/// -
@@ -82,7 +158,7 @@ public static ConfluentOrganizationCollection GetConfluentOrganizations(this Res
///
/// -
/// Default Api Version
- /// 2024-02-13
+ /// 2024-07-01
///
/// -
/// Resource
@@ -120,7 +196,7 @@ public static async Task> GetConfluentOr
///
/// -
/// Default Api Version
- /// 2024-02-13
+ /// 2024-07-01
///
/// -
/// Resource
@@ -158,7 +234,7 @@ public static Response GetConfluentOrganization(t
///
/// -
/// Default Api Version
- /// 2024-02-13
+ /// 2024-07-01
///
///
/// -
@@ -192,7 +268,7 @@ public static async Task> ValidateOrgani
///
/// -
/// Default Api Version
- /// 2024-02-13
+ /// 2024-07-01
///
///
/// -
@@ -226,7 +302,7 @@ public static Response ValidateOrganization(this
///
/// -
/// Default Api Version
- /// 2024-02-13
+ /// 2024-07-01
///
///
/// -
@@ -260,7 +336,7 @@ public static async Task> Valida
///
/// -
/// Default Api Version
- /// 2024-02-13
+ /// 2024-07-01
///
///
/// -
@@ -294,7 +370,7 @@ public static Response ValidateOrganizati
///
/// -
/// Default Api Version
- /// 2024-02-13
+ /// 2024-07-01
///
///
/// -
@@ -326,7 +402,7 @@ public static AsyncPageable GetMarketplaceAgreementsAsync(th
///
/// -
/// Default Api Version
- /// 2024-02-13
+ /// 2024-07-01
///
///
/// -
@@ -358,7 +434,7 @@ public static Pageable GetMarketplaceAgreements(this Subscri
///
/// -
/// Default Api Version
- /// 2024-02-13
+ /// 2024-07-01
///
///
/// -
@@ -390,7 +466,7 @@ public static async Task> CreateMarketplaceAgreemen
///
/// -
/// Default Api Version
- /// 2024-02-13
+ /// 2024-07-01
///
///
/// -
@@ -422,7 +498,7 @@ public static Response CreateMarketplaceAgreement(this Subsc
///
/// -
/// Default Api Version
- /// 2024-02-13
+ /// 2024-07-01
///
/// -
/// Resource
@@ -458,7 +534,7 @@ public static AsyncPageable GetConfluentOrganizat
///
/// -
/// Default Api Version
- /// 2024-02-13
+ /// 2024-07-01
///
/// -
/// Resource
diff --git a/sdk/confluent/Azure.ResourceManager.Confluent/src/Generated/Extensions/MockableConfluentArmClient.cs b/sdk/confluent/Azure.ResourceManager.Confluent/src/Generated/Extensions/MockableConfluentArmClient.cs
index ebe6a745075c..ba1a8e509a28 100644
--- a/sdk/confluent/Azure.ResourceManager.Confluent/src/Generated/Extensions/MockableConfluentArmClient.cs
+++ b/sdk/confluent/Azure.ResourceManager.Confluent/src/Generated/Extensions/MockableConfluentArmClient.cs
@@ -45,5 +45,53 @@ public virtual ConfluentOrganizationResource GetConfluentOrganizationResource(Re
ConfluentOrganizationResource.ValidateResourceId(id);
return new ConfluentOrganizationResource(Client, id);
}
+
+ ///
+ /// Gets an object representing a along with the instance operations that can be performed on it but with no data.
+ /// You can use to create a from its components.
+ ///
+ /// The resource ID of the resource to get.
+ /// Returns a object.
+ public virtual SCEnvironmentRecordResource GetSCEnvironmentRecordResource(ResourceIdentifier id)
+ {
+ SCEnvironmentRecordResource.ValidateResourceId(id);
+ return new SCEnvironmentRecordResource(Client, id);
+ }
+
+ ///
+ /// Gets an object representing a along with the instance operations that can be performed on it but with no data.
+ /// You can use to create a from its components.
+ ///
+ /// The resource ID of the resource to get.
+ /// Returns a object.
+ public virtual SCClusterRecordResource GetSCClusterRecordResource(ResourceIdentifier id)
+ {
+ SCClusterRecordResource.ValidateResourceId(id);
+ return new SCClusterRecordResource(Client, id);
+ }
+
+ ///
+ /// Gets an object representing a along with the instance operations that can be performed on it but with no data.
+ /// You can use to create a from its components.
+ ///
+ /// The resource ID of the resource to get.
+ /// Returns a object.
+ public virtual ConnectorResource GetConnectorResource(ResourceIdentifier id)
+ {
+ ConnectorResource.ValidateResourceId(id);
+ return new ConnectorResource(Client, id);
+ }
+
+ ///
+ /// Gets an object representing a along with the instance operations that can be performed on it but with no data.
+ /// You can use to create a from its components.
+ ///
+ /// The resource ID of the resource to get.
+ /// Returns a object.
+ public virtual TopicRecordResource GetTopicRecordResource(ResourceIdentifier id)
+ {
+ TopicRecordResource.ValidateResourceId(id);
+ return new TopicRecordResource(Client, id);
+ }
}
}
diff --git a/sdk/confluent/Azure.ResourceManager.Confluent/src/Generated/Extensions/MockableConfluentResourceGroupResource.cs b/sdk/confluent/Azure.ResourceManager.Confluent/src/Generated/Extensions/MockableConfluentResourceGroupResource.cs
index 3c5ce9924282..84a496460939 100644
--- a/sdk/confluent/Azure.ResourceManager.Confluent/src/Generated/Extensions/MockableConfluentResourceGroupResource.cs
+++ b/sdk/confluent/Azure.ResourceManager.Confluent/src/Generated/Extensions/MockableConfluentResourceGroupResource.cs
@@ -61,7 +61,7 @@ public virtual ConfluentOrganizationCollection GetConfluentOrganizations()
///
/// -
/// Default Api Version
- /// 2024-02-13
+ /// 2024-07-01
///
/// -
/// Resource
@@ -92,7 +92,7 @@ public virtual async Task> GetConfluentO
///
/// -
/// Default Api Version
- /// 2024-02-13
+ /// 2024-07-01
///
/// -
/// Resource
@@ -123,7 +123,7 @@ public virtual Response GetConfluentOrganization(
///
/// -
/// Default Api Version
- /// 2024-02-13
+ /// 2024-07-01
///
///
///
@@ -164,7 +164,7 @@ public virtual async Task> ValidateOrgan
///
/// -
/// Default Api Version
- /// 2024-02-13
+ /// 2024-07-01
///
///
///
@@ -205,7 +205,7 @@ public virtual Response ValidateOrganization(stri
///
/// -
/// Default Api Version
- /// 2024-02-13
+ /// 2024-07-01
///
///
///
@@ -246,7 +246,7 @@ public virtual async Task> Valid
///
/// -
/// Default Api Version
- /// 2024-02-13
+ /// 2024-07-01
///
///
///
diff --git a/sdk/confluent/Azure.ResourceManager.Confluent/src/Generated/Extensions/MockableConfluentSubscriptionResource.cs b/sdk/confluent/Azure.ResourceManager.Confluent/src/Generated/Extensions/MockableConfluentSubscriptionResource.cs
index a841312a5273..c20825b7cfea 100644
--- a/sdk/confluent/Azure.ResourceManager.Confluent/src/Generated/Extensions/MockableConfluentSubscriptionResource.cs
+++ b/sdk/confluent/Azure.ResourceManager.Confluent/src/Generated/Extensions/MockableConfluentSubscriptionResource.cs
@@ -59,7 +59,7 @@ private string GetApiVersionOrNull(ResourceType resourceType)
///
/// -
/// Default Api Version
- /// 2024-02-13
+ /// 2024-07-01
///
///
///
@@ -85,7 +85,7 @@ public virtual AsyncPageable GetMarketplaceAgreementsAsync(C
///
/// -
/// Default Api Version
- /// 2024-02-13
+ /// 2024-07-01
///
///
///
@@ -111,7 +111,7 @@ public virtual Pageable GetMarketplaceAgreements(Cancellatio
///
/// -
/// Default Api Version
- /// 2024-02-13
+ /// 2024-07-01
///
///
///
@@ -146,7 +146,7 @@ public virtual async Task> CreateMarketplaceAgreeme
///
/// -
/// Default Api Version
- /// 2024-02-13
+ /// 2024-07-01
///
///
///
@@ -181,7 +181,7 @@ public virtual Response CreateMarketplaceAgreement(Confluent
///
/// -
/// Default Api Version
- /// 2024-02-13
+ /// 2024-07-01
///
/// -
/// Resource
@@ -211,7 +211,7 @@ public virtual AsyncPageable GetConfluentOrganiza
///
/// -
/// Default Api Version
- /// 2024-02-13
+ /// 2024-07-01
///
/// -
/// Resource
diff --git a/sdk/confluent/Azure.ResourceManager.Confluent/src/Generated/Models/AuthType.cs b/sdk/confluent/Azure.ResourceManager.Confluent/src/Generated/Models/AuthType.cs
new file mode 100644
index 000000000000..acb33d21fac9
--- /dev/null
+++ b/sdk/confluent/Azure.ResourceManager.Confluent/src/Generated/Models/AuthType.cs
@@ -0,0 +1,51 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.ComponentModel;
+
+namespace Azure.ResourceManager.Confluent.Models
+{
+ /// Kafka Connector Auth Type.
+ public readonly partial struct AuthType : IEquatable
+ {
+ private readonly string _value;
+
+ /// Initializes a new instance of .
+ /// is null.
+ public AuthType(string value)
+ {
+ _value = value ?? throw new ArgumentNullException(nameof(value));
+ }
+
+ private const string ServiceAccountValue = "SERVICE_ACCOUNT";
+ private const string KafkaApiKEYValue = "KAFKA_API_KEY";
+
+ /// SERVICE_ACCOUNT.
+ public static AuthType ServiceAccount { get; } = new AuthType(ServiceAccountValue);
+ /// KAFKA_API_KEY.
+ public static AuthType KafkaApiKEY { get; } = new AuthType(KafkaApiKEYValue);
+ /// Determines if two values are the same.
+ public static bool operator ==(AuthType left, AuthType right) => left.Equals(right);
+ /// Determines if two values are not the same.
+ public static bool operator !=(AuthType left, AuthType right) => !left.Equals(right);
+ /// Converts a to a .
+ public static implicit operator AuthType(string value) => new AuthType(value);
+
+ ///
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public override bool Equals(object obj) => obj is AuthType other && Equals(other);
+ ///
+ public bool Equals(AuthType other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase);
+
+ ///
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public override int GetHashCode() => _value != null ? StringComparer.InvariantCultureIgnoreCase.GetHashCode(_value) : 0;
+ ///
+ public override string ToString() => _value;
+ }
+}
diff --git a/sdk/confluent/Azure.ResourceManager.Confluent/src/Generated/Models/AzureBlobStorageSinkConnectorServiceInfo.Serialization.cs b/sdk/confluent/Azure.ResourceManager.Confluent/src/Generated/Models/AzureBlobStorageSinkConnectorServiceInfo.Serialization.cs
new file mode 100644
index 000000000000..04cf2443796c
--- /dev/null
+++ b/sdk/confluent/Azure.ResourceManager.Confluent/src/Generated/Models/AzureBlobStorageSinkConnectorServiceInfo.Serialization.cs
@@ -0,0 +1,143 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.ClientModel.Primitives;
+using System.Collections.Generic;
+using System.Text.Json;
+using Azure.Core;
+
+namespace Azure.ResourceManager.Confluent.Models
+{
+ public partial class AzureBlobStorageSinkConnectorServiceInfo : 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(AzureBlobStorageSinkConnectorServiceInfo)} does not support writing '{format}' format.");
+ }
+
+ base.JsonModelWriteCore(writer, options);
+ if (Optional.IsDefined(StorageAccountName))
+ {
+ writer.WritePropertyName("storageAccountName"u8);
+ writer.WriteStringValue(StorageAccountName);
+ }
+ if (Optional.IsDefined(StorageAccountKey))
+ {
+ writer.WritePropertyName("storageAccountKey"u8);
+ writer.WriteStringValue(StorageAccountKey);
+ }
+ if (Optional.IsDefined(StorageContainerName))
+ {
+ writer.WritePropertyName("storageContainerName"u8);
+ writer.WriteStringValue(StorageContainerName);
+ }
+ }
+
+ AzureBlobStorageSinkConnectorServiceInfo 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(AzureBlobStorageSinkConnectorServiceInfo)} does not support reading '{format}' format.");
+ }
+
+ using JsonDocument document = JsonDocument.ParseValue(ref reader);
+ return DeserializeAzureBlobStorageSinkConnectorServiceInfo(document.RootElement, options);
+ }
+
+ internal static AzureBlobStorageSinkConnectorServiceInfo DeserializeAzureBlobStorageSinkConnectorServiceInfo(JsonElement element, ModelReaderWriterOptions options = null)
+ {
+ options ??= ModelSerializationExtensions.WireOptions;
+
+ if (element.ValueKind == JsonValueKind.Null)
+ {
+ return null;
+ }
+ string storageAccountName = default;
+ string storageAccountKey = default;
+ string storageContainerName = default;
+ ConnectorServiceType connectorServiceType = default;
+ IDictionary serializedAdditionalRawData = default;
+ Dictionary rawDataDictionary = new Dictionary();
+ foreach (var property in element.EnumerateObject())
+ {
+ if (property.NameEquals("storageAccountName"u8))
+ {
+ storageAccountName = property.Value.GetString();
+ continue;
+ }
+ if (property.NameEquals("storageAccountKey"u8))
+ {
+ storageAccountKey = property.Value.GetString();
+ continue;
+ }
+ if (property.NameEquals("storageContainerName"u8))
+ {
+ storageContainerName = property.Value.GetString();
+ continue;
+ }
+ if (property.NameEquals("connectorServiceType"u8))
+ {
+ connectorServiceType = new ConnectorServiceType(property.Value.GetString());
+ continue;
+ }
+ if (options.Format != "W")
+ {
+ rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText()));
+ }
+ }
+ serializedAdditionalRawData = rawDataDictionary;
+ return new AzureBlobStorageSinkConnectorServiceInfo(connectorServiceType, serializedAdditionalRawData, storageAccountName, storageAccountKey, storageContainerName);
+ }
+
+ 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(AzureBlobStorageSinkConnectorServiceInfo)} does not support writing '{options.Format}' format.");
+ }
+ }
+
+ AzureBlobStorageSinkConnectorServiceInfo 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 DeserializeAzureBlobStorageSinkConnectorServiceInfo(document.RootElement, options);
+ }
+ default:
+ throw new FormatException($"The model {nameof(AzureBlobStorageSinkConnectorServiceInfo)} does not support reading '{options.Format}' format.");
+ }
+ }
+
+ string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J";
+ }
+}
diff --git a/sdk/confluent/Azure.ResourceManager.Confluent/src/Generated/Models/AzureBlobStorageSinkConnectorServiceInfo.cs b/sdk/confluent/Azure.ResourceManager.Confluent/src/Generated/Models/AzureBlobStorageSinkConnectorServiceInfo.cs
new file mode 100644
index 000000000000..4ac48c4f67d7
--- /dev/null
+++ b/sdk/confluent/Azure.ResourceManager.Confluent/src/Generated/Models/AzureBlobStorageSinkConnectorServiceInfo.cs
@@ -0,0 +1,43 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.Collections.Generic;
+
+namespace Azure.ResourceManager.Confluent.Models
+{
+ /// The authentication info when auth_type is azureBlobStorageSinkConnector.
+ public partial class AzureBlobStorageSinkConnectorServiceInfo : ConnectorServiceTypeInfoBase
+ {
+ /// Initializes a new instance of .
+ public AzureBlobStorageSinkConnectorServiceInfo()
+ {
+ ConnectorServiceType = ConnectorServiceType.AzureBlobStorageSinkConnector;
+ }
+
+ /// Initializes a new instance of .
+ /// The connector service type.
+ /// Keeps track of any properties unknown to the library.
+ /// Azure Blob Storage Account Name.
+ /// Azure Blob Storage Account Key.
+ /// Azure Blob Storage Account Container Name.
+ internal AzureBlobStorageSinkConnectorServiceInfo(ConnectorServiceType connectorServiceType, IDictionary serializedAdditionalRawData, string storageAccountName, string storageAccountKey, string storageContainerName) : base(connectorServiceType, serializedAdditionalRawData)
+ {
+ StorageAccountName = storageAccountName;
+ StorageAccountKey = storageAccountKey;
+ StorageContainerName = storageContainerName;
+ ConnectorServiceType = connectorServiceType;
+ }
+
+ /// Azure Blob Storage Account Name.
+ public string StorageAccountName { get; set; }
+ /// Azure Blob Storage Account Key.
+ public string StorageAccountKey { get; set; }
+ /// Azure Blob Storage Account Container Name.
+ public string StorageContainerName { get; set; }
+ }
+}
diff --git a/sdk/confluent/Azure.ResourceManager.Confluent/src/Generated/Models/AzureBlobStorageSourceConnectorServiceInfo.Serialization.cs b/sdk/confluent/Azure.ResourceManager.Confluent/src/Generated/Models/AzureBlobStorageSourceConnectorServiceInfo.Serialization.cs
new file mode 100644
index 000000000000..093ded2405d2
--- /dev/null
+++ b/sdk/confluent/Azure.ResourceManager.Confluent/src/Generated/Models/AzureBlobStorageSourceConnectorServiceInfo.Serialization.cs
@@ -0,0 +1,143 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.ClientModel.Primitives;
+using System.Collections.Generic;
+using System.Text.Json;
+using Azure.Core;
+
+namespace Azure.ResourceManager.Confluent.Models
+{
+ public partial class AzureBlobStorageSourceConnectorServiceInfo : 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(AzureBlobStorageSourceConnectorServiceInfo)} does not support writing '{format}' format.");
+ }
+
+ base.JsonModelWriteCore(writer, options);
+ if (Optional.IsDefined(StorageAccountName))
+ {
+ writer.WritePropertyName("storageAccountName"u8);
+ writer.WriteStringValue(StorageAccountName);
+ }
+ if (Optional.IsDefined(StorageAccountKey))
+ {
+ writer.WritePropertyName("storageAccountKey"u8);
+ writer.WriteStringValue(StorageAccountKey);
+ }
+ if (Optional.IsDefined(StorageContainerName))
+ {
+ writer.WritePropertyName("storageContainerName"u8);
+ writer.WriteStringValue(StorageContainerName);
+ }
+ }
+
+ AzureBlobStorageSourceConnectorServiceInfo 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(AzureBlobStorageSourceConnectorServiceInfo)} does not support reading '{format}' format.");
+ }
+
+ using JsonDocument document = JsonDocument.ParseValue(ref reader);
+ return DeserializeAzureBlobStorageSourceConnectorServiceInfo(document.RootElement, options);
+ }
+
+ internal static AzureBlobStorageSourceConnectorServiceInfo DeserializeAzureBlobStorageSourceConnectorServiceInfo(JsonElement element, ModelReaderWriterOptions options = null)
+ {
+ options ??= ModelSerializationExtensions.WireOptions;
+
+ if (element.ValueKind == JsonValueKind.Null)
+ {
+ return null;
+ }
+ string storageAccountName = default;
+ string storageAccountKey = default;
+ string storageContainerName = default;
+ ConnectorServiceType connectorServiceType = default;
+ IDictionary serializedAdditionalRawData = default;
+ Dictionary rawDataDictionary = new Dictionary();
+ foreach (var property in element.EnumerateObject())
+ {
+ if (property.NameEquals("storageAccountName"u8))
+ {
+ storageAccountName = property.Value.GetString();
+ continue;
+ }
+ if (property.NameEquals("storageAccountKey"u8))
+ {
+ storageAccountKey = property.Value.GetString();
+ continue;
+ }
+ if (property.NameEquals("storageContainerName"u8))
+ {
+ storageContainerName = property.Value.GetString();
+ continue;
+ }
+ if (property.NameEquals("connectorServiceType"u8))
+ {
+ connectorServiceType = new ConnectorServiceType(property.Value.GetString());
+ continue;
+ }
+ if (options.Format != "W")
+ {
+ rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText()));
+ }
+ }
+ serializedAdditionalRawData = rawDataDictionary;
+ return new AzureBlobStorageSourceConnectorServiceInfo(connectorServiceType, serializedAdditionalRawData, storageAccountName, storageAccountKey, storageContainerName);
+ }
+
+ 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(AzureBlobStorageSourceConnectorServiceInfo)} does not support writing '{options.Format}' format.");
+ }
+ }
+
+ AzureBlobStorageSourceConnectorServiceInfo 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 DeserializeAzureBlobStorageSourceConnectorServiceInfo(document.RootElement, options);
+ }
+ default:
+ throw new FormatException($"The model {nameof(AzureBlobStorageSourceConnectorServiceInfo)} does not support reading '{options.Format}' format.");
+ }
+ }
+
+ string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J";
+ }
+}
diff --git a/sdk/confluent/Azure.ResourceManager.Confluent/src/Generated/Models/AzureBlobStorageSourceConnectorServiceInfo.cs b/sdk/confluent/Azure.ResourceManager.Confluent/src/Generated/Models/AzureBlobStorageSourceConnectorServiceInfo.cs
new file mode 100644
index 000000000000..b964817dc8b4
--- /dev/null
+++ b/sdk/confluent/Azure.ResourceManager.Confluent/src/Generated/Models/AzureBlobStorageSourceConnectorServiceInfo.cs
@@ -0,0 +1,43 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.Collections.Generic;
+
+namespace Azure.ResourceManager.Confluent.Models
+{
+ /// The connector service type is AzureBlobStorageSourceConnector.
+ public partial class AzureBlobStorageSourceConnectorServiceInfo : ConnectorServiceTypeInfoBase
+ {
+ /// Initializes a new instance of .
+ public AzureBlobStorageSourceConnectorServiceInfo()
+ {
+ ConnectorServiceType = ConnectorServiceType.AzureBlobStorageSourceConnector;
+ }
+
+ /// Initializes a new instance of .
+ /// The connector service type.
+ /// Keeps track of any properties unknown to the library.
+ /// Azure Blob Storage Account Name.
+ /// Azure Blob Storage Account Key.
+ /// Azure Blob Storage Account Container Name.
+ internal AzureBlobStorageSourceConnectorServiceInfo(ConnectorServiceType connectorServiceType, IDictionary serializedAdditionalRawData, string storageAccountName, string storageAccountKey, string storageContainerName) : base(connectorServiceType, serializedAdditionalRawData)
+ {
+ StorageAccountName = storageAccountName;
+ StorageAccountKey = storageAccountKey;
+ StorageContainerName = storageContainerName;
+ ConnectorServiceType = connectorServiceType;
+ }
+
+ /// Azure Blob Storage Account Name.
+ public string StorageAccountName { get; set; }
+ /// Azure Blob Storage Account Key.
+ public string StorageAccountKey { get; set; }
+ /// Azure Blob Storage Account Container Name.
+ public string StorageContainerName { get; set; }
+ }
+}
diff --git a/sdk/confluent/Azure.ResourceManager.Confluent/src/Generated/Models/AzureCosmosDBSinkConnectorServiceInfo.Serialization.cs b/sdk/confluent/Azure.ResourceManager.Confluent/src/Generated/Models/AzureCosmosDBSinkConnectorServiceInfo.Serialization.cs
new file mode 100644
index 000000000000..3c3af814720f
--- /dev/null
+++ b/sdk/confluent/Azure.ResourceManager.Confluent/src/Generated/Models/AzureCosmosDBSinkConnectorServiceInfo.Serialization.cs
@@ -0,0 +1,172 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.ClientModel.Primitives;
+using System.Collections.Generic;
+using System.Text.Json;
+using Azure.Core;
+
+namespace Azure.ResourceManager.Confluent.Models
+{
+ public partial class AzureCosmosDBSinkConnectorServiceInfo : 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(AzureCosmosDBSinkConnectorServiceInfo)} does not support writing '{format}' format.");
+ }
+
+ base.JsonModelWriteCore(writer, options);
+ if (Optional.IsDefined(CosmosDatabaseName))
+ {
+ writer.WritePropertyName("cosmosDatabaseName"u8);
+ writer.WriteStringValue(CosmosDatabaseName);
+ }
+ if (Optional.IsDefined(CosmosMasterKey))
+ {
+ writer.WritePropertyName("cosmosMasterKey"u8);
+ writer.WriteStringValue(CosmosMasterKey);
+ }
+ if (Optional.IsDefined(CosmosConnectionEndpoint))
+ {
+ writer.WritePropertyName("cosmosConnectionEndpoint"u8);
+ writer.WriteStringValue(CosmosConnectionEndpoint);
+ }
+ if (Optional.IsDefined(CosmosContainersTopicMapping))
+ {
+ writer.WritePropertyName("cosmosContainersTopicMapping"u8);
+ writer.WriteStringValue(CosmosContainersTopicMapping);
+ }
+ if (Optional.IsDefined(CosmosIdStrategy))
+ {
+ writer.WritePropertyName("cosmosIdStrategy"u8);
+ writer.WriteStringValue(CosmosIdStrategy);
+ }
+ }
+
+ AzureCosmosDBSinkConnectorServiceInfo 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(AzureCosmosDBSinkConnectorServiceInfo)} does not support reading '{format}' format.");
+ }
+
+ using JsonDocument document = JsonDocument.ParseValue(ref reader);
+ return DeserializeAzureCosmosDBSinkConnectorServiceInfo(document.RootElement, options);
+ }
+
+ internal static AzureCosmosDBSinkConnectorServiceInfo DeserializeAzureCosmosDBSinkConnectorServiceInfo(JsonElement element, ModelReaderWriterOptions options = null)
+ {
+ options ??= ModelSerializationExtensions.WireOptions;
+
+ if (element.ValueKind == JsonValueKind.Null)
+ {
+ return null;
+ }
+ string cosmosDatabaseName = default;
+ string cosmosMasterKey = default;
+ string cosmosConnectionEndpoint = default;
+ string cosmosContainersTopicMapping = default;
+ string cosmosIdStrategy = default;
+ ConnectorServiceType connectorServiceType = default;
+ IDictionary serializedAdditionalRawData = default;
+ Dictionary rawDataDictionary = new Dictionary();
+ foreach (var property in element.EnumerateObject())
+ {
+ if (property.NameEquals("cosmosDatabaseName"u8))
+ {
+ cosmosDatabaseName = property.Value.GetString();
+ continue;
+ }
+ if (property.NameEquals("cosmosMasterKey"u8))
+ {
+ cosmosMasterKey = property.Value.GetString();
+ continue;
+ }
+ if (property.NameEquals("cosmosConnectionEndpoint"u8))
+ {
+ cosmosConnectionEndpoint = property.Value.GetString();
+ continue;
+ }
+ if (property.NameEquals("cosmosContainersTopicMapping"u8))
+ {
+ cosmosContainersTopicMapping = property.Value.GetString();
+ continue;
+ }
+ if (property.NameEquals("cosmosIdStrategy"u8))
+ {
+ cosmosIdStrategy = property.Value.GetString();
+ continue;
+ }
+ if (property.NameEquals("connectorServiceType"u8))
+ {
+ connectorServiceType = new ConnectorServiceType(property.Value.GetString());
+ continue;
+ }
+ if (options.Format != "W")
+ {
+ rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText()));
+ }
+ }
+ serializedAdditionalRawData = rawDataDictionary;
+ return new AzureCosmosDBSinkConnectorServiceInfo(
+ connectorServiceType,
+ serializedAdditionalRawData,
+ cosmosDatabaseName,
+ cosmosMasterKey,
+ cosmosConnectionEndpoint,
+ cosmosContainersTopicMapping,
+ cosmosIdStrategy);
+ }
+
+ 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(AzureCosmosDBSinkConnectorServiceInfo)} does not support writing '{options.Format}' format.");
+ }
+ }
+
+ AzureCosmosDBSinkConnectorServiceInfo 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 DeserializeAzureCosmosDBSinkConnectorServiceInfo(document.RootElement, options);
+ }
+ default:
+ throw new FormatException($"The model {nameof(AzureCosmosDBSinkConnectorServiceInfo)} does not support reading '{options.Format}' format.");
+ }
+ }
+
+ string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J";
+ }
+}
diff --git a/sdk/confluent/Azure.ResourceManager.Confluent/src/Generated/Models/AzureCosmosDBSinkConnectorServiceInfo.cs b/sdk/confluent/Azure.ResourceManager.Confluent/src/Generated/Models/AzureCosmosDBSinkConnectorServiceInfo.cs
new file mode 100644
index 000000000000..dd37cfc47017
--- /dev/null
+++ b/sdk/confluent/Azure.ResourceManager.Confluent/src/Generated/Models/AzureCosmosDBSinkConnectorServiceInfo.cs
@@ -0,0 +1,51 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.Collections.Generic;
+
+namespace Azure.ResourceManager.Confluent.Models
+{
+ /// The authentication info when auth_type is AzureCosmosDBSinkConnector.
+ public partial class AzureCosmosDBSinkConnectorServiceInfo : ConnectorServiceTypeInfoBase
+ {
+ /// Initializes a new instance of .
+ public AzureCosmosDBSinkConnectorServiceInfo()
+ {
+ ConnectorServiceType = ConnectorServiceType.AzureCosmosDBSinkConnector;
+ }
+
+ /// Initializes a new instance of .
+ /// The connector service type.
+ /// Keeps track of any properties unknown to the library.
+ /// Azure Cosmos Database Name.
+ /// Azure Cosmos Database Master Key.
+ /// Azure Cosmos Database Connection Endpoint.
+ /// Azure Cosmos Database Containers Topic Mapping.
+ /// Azure Cosmos Database Id Strategy.
+ internal AzureCosmosDBSinkConnectorServiceInfo(ConnectorServiceType connectorServiceType, IDictionary serializedAdditionalRawData, string cosmosDatabaseName, string cosmosMasterKey, string cosmosConnectionEndpoint, string cosmosContainersTopicMapping, string cosmosIdStrategy) : base(connectorServiceType, serializedAdditionalRawData)
+ {
+ CosmosDatabaseName = cosmosDatabaseName;
+ CosmosMasterKey = cosmosMasterKey;
+ CosmosConnectionEndpoint = cosmosConnectionEndpoint;
+ CosmosContainersTopicMapping = cosmosContainersTopicMapping;
+ CosmosIdStrategy = cosmosIdStrategy;
+ ConnectorServiceType = connectorServiceType;
+ }
+
+ /// Azure Cosmos Database Name.
+ public string CosmosDatabaseName { get; set; }
+ /// Azure Cosmos Database Master Key.
+ public string CosmosMasterKey { get; set; }
+ /// Azure Cosmos Database Connection Endpoint.
+ public string CosmosConnectionEndpoint { get; set; }
+ /// Azure Cosmos Database Containers Topic Mapping.
+ public string CosmosContainersTopicMapping { get; set; }
+ /// Azure Cosmos Database Id Strategy.
+ public string CosmosIdStrategy { get; set; }
+ }
+}
diff --git a/sdk/confluent/Azure.ResourceManager.Confluent/src/Generated/Models/AzureCosmosDBSourceConnectorServiceInfo.Serialization.cs b/sdk/confluent/Azure.ResourceManager.Confluent/src/Generated/Models/AzureCosmosDBSourceConnectorServiceInfo.Serialization.cs
new file mode 100644
index 000000000000..0928c33aeacf
--- /dev/null
+++ b/sdk/confluent/Azure.ResourceManager.Confluent/src/Generated/Models/AzureCosmosDBSourceConnectorServiceInfo.Serialization.cs
@@ -0,0 +1,188 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.ClientModel.Primitives;
+using System.Collections.Generic;
+using System.Text.Json;
+using Azure.Core;
+
+namespace Azure.ResourceManager.Confluent.Models
+{
+ public partial class AzureCosmosDBSourceConnectorServiceInfo : 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(AzureCosmosDBSourceConnectorServiceInfo)} does not support writing '{format}' format.");
+ }
+
+ base.JsonModelWriteCore(writer, options);
+ if (Optional.IsDefined(CosmosDatabaseName))
+ {
+ writer.WritePropertyName("cosmosDatabaseName"u8);
+ writer.WriteStringValue(CosmosDatabaseName);
+ }
+ if (Optional.IsDefined(CosmosMasterKey))
+ {
+ writer.WritePropertyName("cosmosMasterKey"u8);
+ writer.WriteStringValue(CosmosMasterKey);
+ }
+ if (Optional.IsDefined(CosmosConnectionEndpoint))
+ {
+ writer.WritePropertyName("cosmosConnectionEndpoint"u8);
+ writer.WriteStringValue(CosmosConnectionEndpoint);
+ }
+ if (Optional.IsDefined(CosmosContainersTopicMapping))
+ {
+ writer.WritePropertyName("cosmosContainersTopicMapping"u8);
+ writer.WriteStringValue(CosmosContainersTopicMapping);
+ }
+ if (Optional.IsDefined(CosmosMessageKeyEnabled))
+ {
+ writer.WritePropertyName("cosmosMessageKeyEnabled"u8);
+ writer.WriteBooleanValue(CosmosMessageKeyEnabled.Value);
+ }
+ if (Optional.IsDefined(CosmosMessageKeyField))
+ {
+ writer.WritePropertyName("cosmosMessageKeyField"u8);
+ writer.WriteStringValue(CosmosMessageKeyField);
+ }
+ }
+
+ AzureCosmosDBSourceConnectorServiceInfo 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(AzureCosmosDBSourceConnectorServiceInfo)} does not support reading '{format}' format.");
+ }
+
+ using JsonDocument document = JsonDocument.ParseValue(ref reader);
+ return DeserializeAzureCosmosDBSourceConnectorServiceInfo(document.RootElement, options);
+ }
+
+ internal static AzureCosmosDBSourceConnectorServiceInfo DeserializeAzureCosmosDBSourceConnectorServiceInfo(JsonElement element, ModelReaderWriterOptions options = null)
+ {
+ options ??= ModelSerializationExtensions.WireOptions;
+
+ if (element.ValueKind == JsonValueKind.Null)
+ {
+ return null;
+ }
+ string cosmosDatabaseName = default;
+ string cosmosMasterKey = default;
+ string cosmosConnectionEndpoint = default;
+ string cosmosContainersTopicMapping = default;
+ bool? cosmosMessageKeyEnabled = default;
+ string cosmosMessageKeyField = default;
+ ConnectorServiceType connectorServiceType = default;
+ IDictionary serializedAdditionalRawData = default;
+ Dictionary rawDataDictionary = new Dictionary();
+ foreach (var property in element.EnumerateObject())
+ {
+ if (property.NameEquals("cosmosDatabaseName"u8))
+ {
+ cosmosDatabaseName = property.Value.GetString();
+ continue;
+ }
+ if (property.NameEquals("cosmosMasterKey"u8))
+ {
+ cosmosMasterKey = property.Value.GetString();
+ continue;
+ }
+ if (property.NameEquals("cosmosConnectionEndpoint"u8))
+ {
+ cosmosConnectionEndpoint = property.Value.GetString();
+ continue;
+ }
+ if (property.NameEquals("cosmosContainersTopicMapping"u8))
+ {
+ cosmosContainersTopicMapping = property.Value.GetString();
+ continue;
+ }
+ if (property.NameEquals("cosmosMessageKeyEnabled"u8))
+ {
+ if (property.Value.ValueKind == JsonValueKind.Null)
+ {
+ continue;
+ }
+ cosmosMessageKeyEnabled = property.Value.GetBoolean();
+ continue;
+ }
+ if (property.NameEquals("cosmosMessageKeyField"u8))
+ {
+ cosmosMessageKeyField = property.Value.GetString();
+ continue;
+ }
+ if (property.NameEquals("connectorServiceType"u8))
+ {
+ connectorServiceType = new ConnectorServiceType(property.Value.GetString());
+ continue;
+ }
+ if (options.Format != "W")
+ {
+ rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText()));
+ }
+ }
+ serializedAdditionalRawData = rawDataDictionary;
+ return new AzureCosmosDBSourceConnectorServiceInfo(
+ connectorServiceType,
+ serializedAdditionalRawData,
+ cosmosDatabaseName,
+ cosmosMasterKey,
+ cosmosConnectionEndpoint,
+ cosmosContainersTopicMapping,
+ cosmosMessageKeyEnabled,
+ cosmosMessageKeyField);
+ }
+
+ 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(AzureCosmosDBSourceConnectorServiceInfo)} does not support writing '{options.Format}' format.");
+ }
+ }
+
+ AzureCosmosDBSourceConnectorServiceInfo 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 DeserializeAzureCosmosDBSourceConnectorServiceInfo(document.RootElement, options);
+ }
+ default:
+ throw new FormatException($"The model {nameof(AzureCosmosDBSourceConnectorServiceInfo)} does not support reading '{options.Format}' format.");
+ }
+ }
+
+ string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J";
+ }
+}
diff --git a/sdk/confluent/Azure.ResourceManager.Confluent/src/Generated/Models/AzureCosmosDBSourceConnectorServiceInfo.cs b/sdk/confluent/Azure.ResourceManager.Confluent/src/Generated/Models/AzureCosmosDBSourceConnectorServiceInfo.cs
new file mode 100644
index 000000000000..f60ac38724a2
--- /dev/null
+++ b/sdk/confluent/Azure.ResourceManager.Confluent/src/Generated/Models/AzureCosmosDBSourceConnectorServiceInfo.cs
@@ -0,0 +1,55 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.Collections.Generic;
+
+namespace Azure.ResourceManager.Confluent.Models
+{
+ /// The authentication info when auth_type is AzureCosmosDBSourceConnector.
+ public partial class AzureCosmosDBSourceConnectorServiceInfo : ConnectorServiceTypeInfoBase
+ {
+ /// Initializes a new instance of .
+ public AzureCosmosDBSourceConnectorServiceInfo()
+ {
+ ConnectorServiceType = ConnectorServiceType.AzureCosmosDBSourceConnector;
+ }
+
+ /// Initializes a new instance of .
+ /// The connector service type.
+ /// Keeps track of any properties unknown to the library.
+ /// Azure Cosmos Database Name.
+ /// Azure Cosmos Database Master Key.
+ /// Azure Cosmos Database Connection Endpoint.
+ /// Azure Cosmos Database Containers Topic Mapping.
+ /// Azure Cosmos Database Message Key Enabled.
+ /// Azure Cosmos Database Message Key Field.
+ internal AzureCosmosDBSourceConnectorServiceInfo(ConnectorServiceType connectorServiceType, IDictionary serializedAdditionalRawData, string cosmosDatabaseName, string cosmosMasterKey, string cosmosConnectionEndpoint, string cosmosContainersTopicMapping, bool? cosmosMessageKeyEnabled, string cosmosMessageKeyField) : base(connectorServiceType, serializedAdditionalRawData)
+ {
+ CosmosDatabaseName = cosmosDatabaseName;
+ CosmosMasterKey = cosmosMasterKey;
+ CosmosConnectionEndpoint = cosmosConnectionEndpoint;
+ CosmosContainersTopicMapping = cosmosContainersTopicMapping;
+ CosmosMessageKeyEnabled = cosmosMessageKeyEnabled;
+ CosmosMessageKeyField = cosmosMessageKeyField;
+ ConnectorServiceType = connectorServiceType;
+ }
+
+ /// Azure Cosmos Database Name.
+ public string CosmosDatabaseName { get; set; }
+ /// Azure Cosmos Database Master Key.
+ public string CosmosMasterKey { get; set; }
+ /// Azure Cosmos Database Connection Endpoint.
+ public string CosmosConnectionEndpoint { get; set; }
+ /// Azure Cosmos Database Containers Topic Mapping.
+ public string CosmosContainersTopicMapping { get; set; }
+ /// Azure Cosmos Database Message Key Enabled.
+ public bool? CosmosMessageKeyEnabled { get; set; }
+ /// Azure Cosmos Database Message Key Field.
+ public string CosmosMessageKeyField { get; set; }
+ }
+}
diff --git a/sdk/confluent/Azure.ResourceManager.Confluent/src/Generated/Models/AzureSynapseAnalyticsSinkConnectorServiceInfo.Serialization.cs b/sdk/confluent/Azure.ResourceManager.Confluent/src/Generated/Models/AzureSynapseAnalyticsSinkConnectorServiceInfo.Serialization.cs
new file mode 100644
index 000000000000..920423e6452a
--- /dev/null
+++ b/sdk/confluent/Azure.ResourceManager.Confluent/src/Generated/Models/AzureSynapseAnalyticsSinkConnectorServiceInfo.Serialization.cs
@@ -0,0 +1,160 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.ClientModel.Primitives;
+using System.Collections.Generic;
+using System.Text.Json;
+using Azure.Core;
+
+namespace Azure.ResourceManager.Confluent.Models
+{
+ public partial class AzureSynapseAnalyticsSinkConnectorServiceInfo : 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(AzureSynapseAnalyticsSinkConnectorServiceInfo)} does not support writing '{format}' format.");
+ }
+
+ base.JsonModelWriteCore(writer, options);
+ if (Optional.IsDefined(SynapseSqlServerName))
+ {
+ writer.WritePropertyName("synapseSqlServerName"u8);
+ writer.WriteStringValue(SynapseSqlServerName);
+ }
+ if (Optional.IsDefined(SynapseSqlUser))
+ {
+ writer.WritePropertyName("synapseSqlUser"u8);
+ writer.WriteStringValue(SynapseSqlUser);
+ }
+ if (Optional.IsDefined(SynapseSqlPassword))
+ {
+ writer.WritePropertyName("synapseSqlPassword"u8);
+ writer.WriteStringValue(SynapseSqlPassword);
+ }
+ if (Optional.IsDefined(SynapseSqlDatabaseName))
+ {
+ writer.WritePropertyName("synapseSqlDatabaseName"u8);
+ writer.WriteStringValue(SynapseSqlDatabaseName);
+ }
+ }
+
+ AzureSynapseAnalyticsSinkConnectorServiceInfo 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(AzureSynapseAnalyticsSinkConnectorServiceInfo)} does not support reading '{format}' format.");
+ }
+
+ using JsonDocument document = JsonDocument.ParseValue(ref reader);
+ return DeserializeAzureSynapseAnalyticsSinkConnectorServiceInfo(document.RootElement, options);
+ }
+
+ internal static AzureSynapseAnalyticsSinkConnectorServiceInfo DeserializeAzureSynapseAnalyticsSinkConnectorServiceInfo(JsonElement element, ModelReaderWriterOptions options = null)
+ {
+ options ??= ModelSerializationExtensions.WireOptions;
+
+ if (element.ValueKind == JsonValueKind.Null)
+ {
+ return null;
+ }
+ string synapseSqlServerName = default;
+ string synapseSqlUser = default;
+ string synapseSqlPassword = default;
+ string synapseSqlDatabaseName = default;
+ ConnectorServiceType connectorServiceType = default;
+ IDictionary serializedAdditionalRawData = default;
+ Dictionary rawDataDictionary = new Dictionary();
+ foreach (var property in element.EnumerateObject())
+ {
+ if (property.NameEquals("synapseSqlServerName"u8))
+ {
+ synapseSqlServerName = property.Value.GetString();
+ continue;
+ }
+ if (property.NameEquals("synapseSqlUser"u8))
+ {
+ synapseSqlUser = property.Value.GetString();
+ continue;
+ }
+ if (property.NameEquals("synapseSqlPassword"u8))
+ {
+ synapseSqlPassword = property.Value.GetString();
+ continue;
+ }
+ if (property.NameEquals("synapseSqlDatabaseName"u8))
+ {
+ synapseSqlDatabaseName = property.Value.GetString();
+ continue;
+ }
+ if (property.NameEquals("connectorServiceType"u8))
+ {
+ connectorServiceType = new ConnectorServiceType(property.Value.GetString());
+ continue;
+ }
+ if (options.Format != "W")
+ {
+ rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText()));
+ }
+ }
+ serializedAdditionalRawData = rawDataDictionary;
+ return new AzureSynapseAnalyticsSinkConnectorServiceInfo(
+ connectorServiceType,
+ serializedAdditionalRawData,
+ synapseSqlServerName,
+ synapseSqlUser,
+ synapseSqlPassword,
+ synapseSqlDatabaseName);
+ }
+
+ 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(AzureSynapseAnalyticsSinkConnectorServiceInfo)} does not support writing '{options.Format}' format.");
+ }
+ }
+
+ AzureSynapseAnalyticsSinkConnectorServiceInfo 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 DeserializeAzureSynapseAnalyticsSinkConnectorServiceInfo(document.RootElement, options);
+ }
+ default:
+ throw new FormatException($"The model {nameof(AzureSynapseAnalyticsSinkConnectorServiceInfo)} does not support reading '{options.Format}' format.");
+ }
+ }
+
+ string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J";
+ }
+}
diff --git a/sdk/confluent/Azure.ResourceManager.Confluent/src/Generated/Models/AzureSynapseAnalyticsSinkConnectorServiceInfo.cs b/sdk/confluent/Azure.ResourceManager.Confluent/src/Generated/Models/AzureSynapseAnalyticsSinkConnectorServiceInfo.cs
new file mode 100644
index 000000000000..e7c7cc2a9882
--- /dev/null
+++ b/sdk/confluent/Azure.ResourceManager.Confluent/src/Generated/Models/AzureSynapseAnalyticsSinkConnectorServiceInfo.cs
@@ -0,0 +1,47 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.Collections.Generic;
+
+namespace Azure.ResourceManager.Confluent.Models
+{
+ /// The authentication info when auth_type is AzureSynapseAnalyticsSinkConnector.
+ public partial class AzureSynapseAnalyticsSinkConnectorServiceInfo : ConnectorServiceTypeInfoBase
+ {
+ /// Initializes a new instance of .
+ public AzureSynapseAnalyticsSinkConnectorServiceInfo()
+ {
+ ConnectorServiceType = ConnectorServiceType.AzureSynapseAnalyticsSinkConnector;
+ }
+
+ /// Initializes a new instance of .
+ /// The connector service type.
+ /// Keeps track of any properties unknown to the library.
+ /// Azure Synapse Analytics SQL Server Name.
+ /// Azure Synapse SQL login details.
+ /// Azure Synapse SQL login details.
+ /// Azure Synapse Dedicated SQL Pool Database Name.
+ internal AzureSynapseAnalyticsSinkConnectorServiceInfo(ConnectorServiceType connectorServiceType, IDictionary serializedAdditionalRawData, string synapseSqlServerName, string synapseSqlUser, string synapseSqlPassword, string synapseSqlDatabaseName) : base(connectorServiceType, serializedAdditionalRawData)
+ {
+ SynapseSqlServerName = synapseSqlServerName;
+ SynapseSqlUser = synapseSqlUser;
+ SynapseSqlPassword = synapseSqlPassword;
+ SynapseSqlDatabaseName = synapseSqlDatabaseName;
+ ConnectorServiceType = connectorServiceType;
+ }
+
+ /// Azure Synapse Analytics SQL Server Name.
+ public string SynapseSqlServerName { get; set; }
+ /// Azure Synapse SQL login details.
+ public string SynapseSqlUser { get; set; }
+ /// Azure Synapse SQL login details.
+ public string SynapseSqlPassword { get; set; }
+ /// Azure Synapse Dedicated SQL Pool Database Name.
+ public string SynapseSqlDatabaseName { get; set; }
+ }
+}
diff --git a/sdk/confluent/Azure.ResourceManager.Confluent/src/Generated/Models/ClusterConfigEntity.cs b/sdk/confluent/Azure.ResourceManager.Confluent/src/Generated/Models/ClusterConfigEntity.cs
index 13c5cc9560b1..887cbb783e6b 100644
--- a/sdk/confluent/Azure.ResourceManager.Confluent/src/Generated/Models/ClusterConfigEntity.cs
+++ b/sdk/confluent/Azure.ResourceManager.Confluent/src/Generated/Models/ClusterConfigEntity.cs
@@ -46,7 +46,7 @@ internal partial class ClusterConfigEntity
private IDictionary _serializedAdditionalRawData;
/// Initializes a new instance of .
- internal ClusterConfigEntity()
+ public ClusterConfigEntity()
{
}
@@ -60,6 +60,6 @@ internal ClusterConfigEntity(string kind, IDictionary serial
}
/// The lifecycle phase of the cluster.
- public string Kind { get; }
+ public string Kind { get; set; }
}
}
diff --git a/sdk/confluent/Azure.ResourceManager.Confluent/src/Generated/Models/ClusterStatusEntity.cs b/sdk/confluent/Azure.ResourceManager.Confluent/src/Generated/Models/ClusterStatusEntity.cs
index b12a7a3e2c52..ae31f30a9b1f 100644
--- a/sdk/confluent/Azure.ResourceManager.Confluent/src/Generated/Models/ClusterStatusEntity.cs
+++ b/sdk/confluent/Azure.ResourceManager.Confluent/src/Generated/Models/ClusterStatusEntity.cs
@@ -46,7 +46,7 @@ public partial class ClusterStatusEntity
private IDictionary _serializedAdditionalRawData;
/// Initializes a new instance of .
- internal ClusterStatusEntity()
+ public ClusterStatusEntity()
{
}
@@ -62,8 +62,8 @@ internal ClusterStatusEntity(string phase, int? cku, IDictionary The lifecycle phase of the cluster.
- public string Phase { get; }
+ public string Phase { get; set; }
/// The number of Confluent Kafka Units.
- public int? Cku { get; }
+ public int? Cku { get; set; }
}
}
diff --git a/sdk/confluent/Azure.ResourceManager.Confluent/src/Generated/Models/ConnectorClass.cs b/sdk/confluent/Azure.ResourceManager.Confluent/src/Generated/Models/ConnectorClass.cs
new file mode 100644
index 000000000000..2aa18e50bd81
--- /dev/null
+++ b/sdk/confluent/Azure.ResourceManager.Confluent/src/Generated/Models/ConnectorClass.cs
@@ -0,0 +1,51 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.ComponentModel;
+
+namespace Azure.ResourceManager.Confluent.Models
+{
+ /// Connector Class.
+ public readonly partial struct ConnectorClass : IEquatable
+ {
+ private readonly string _value;
+
+ /// Initializes a new instance of .
+ /// is null.
+ public ConnectorClass(string value)
+ {
+ _value = value ?? throw new ArgumentNullException(nameof(value));
+ }
+
+ private const string AzureblobsourceValue = "AZUREBLOBSOURCE";
+ private const string AzureblobsinkValue = "AZUREBLOBSINK";
+
+ /// AZUREBLOBSOURCE.
+ public static ConnectorClass Azureblobsource { get; } = new ConnectorClass(AzureblobsourceValue);
+ /// AZUREBLOBSINK.
+ public static ConnectorClass Azureblobsink { get; } = new ConnectorClass(AzureblobsinkValue);
+ /// Determines if two values are the same.
+ public static bool operator ==(ConnectorClass left, ConnectorClass right) => left.Equals(right);
+ /// Determines if two values are not the same.
+ public static bool operator !=(ConnectorClass left, ConnectorClass right) => !left.Equals(right);
+ /// Converts a to a .
+ public static implicit operator ConnectorClass(string value) => new ConnectorClass(value);
+
+ ///
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public override bool Equals(object obj) => obj is ConnectorClass other && Equals(other);
+ ///
+ public bool Equals(ConnectorClass other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase);
+
+ ///
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public override int GetHashCode() => _value != null ? StringComparer.InvariantCultureIgnoreCase.GetHashCode(_value) : 0;
+ ///
+ public override string ToString() => _value;
+ }
+}
diff --git a/sdk/confluent/Azure.ResourceManager.Confluent/src/Generated/Models/ConnectorInfoBase.Serialization.cs b/sdk/confluent/Azure.ResourceManager.Confluent/src/Generated/Models/ConnectorInfoBase.Serialization.cs
new file mode 100644
index 000000000000..ddbcc2076927
--- /dev/null
+++ b/sdk/confluent/Azure.ResourceManager.Confluent/src/Generated/Models/ConnectorInfoBase.Serialization.cs
@@ -0,0 +1,191 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.ClientModel.Primitives;
+using System.Collections.Generic;
+using System.Text.Json;
+using Azure.Core;
+
+namespace Azure.ResourceManager.Confluent.Models
+{
+ public partial class ConnectorInfoBase : IUtf8JsonSerializable, IJsonModel
+ {
+ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions);
+
+ void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options)
+ {
+ writer.WriteStartObject();
+ JsonModelWriteCore(writer, options);
+ writer.WriteEndObject();
+ }
+
+ /// The JSON writer.
+ /// The client options for reading and writing models.
+ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options)
+ {
+ var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
+ if (format != "J")
+ {
+ throw new FormatException($"The model {nameof(ConnectorInfoBase)} does not support writing '{format}' format.");
+ }
+
+ if (Optional.IsDefined(ConnectorType))
+ {
+ writer.WritePropertyName("connectorType"u8);
+ writer.WriteStringValue(ConnectorType.Value.ToString());
+ }
+ if (Optional.IsDefined(ConnectorClass))
+ {
+ writer.WritePropertyName("connectorClass"u8);
+ writer.WriteStringValue(ConnectorClass.Value.ToString());
+ }
+ if (Optional.IsDefined(ConnectorName))
+ {
+ writer.WritePropertyName("connectorName"u8);
+ writer.WriteStringValue(ConnectorName);
+ }
+ if (Optional.IsDefined(ConnectorId))
+ {
+ writer.WritePropertyName("connectorId"u8);
+ writer.WriteStringValue(ConnectorId);
+ }
+ if (Optional.IsDefined(ConnectorState))
+ {
+ writer.WritePropertyName("connectorState"u8);
+ writer.WriteStringValue(ConnectorState.Value.ToString());
+ }
+ if (options.Format != "W" && _serializedAdditionalRawData != null)
+ {
+ foreach (var item in _serializedAdditionalRawData)
+ {
+ writer.WritePropertyName(item.Key);
+#if NET6_0_OR_GREATER
+ writer.WriteRawValue(item.Value);
+#else
+ using (JsonDocument document = JsonDocument.Parse(item.Value))
+ {
+ JsonSerializer.Serialize(writer, document.RootElement);
+ }
+#endif
+ }
+ }
+ }
+
+ ConnectorInfoBase 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(ConnectorInfoBase)} does not support reading '{format}' format.");
+ }
+
+ using JsonDocument document = JsonDocument.ParseValue(ref reader);
+ return DeserializeConnectorInfoBase(document.RootElement, options);
+ }
+
+ internal static ConnectorInfoBase DeserializeConnectorInfoBase(JsonElement element, ModelReaderWriterOptions options = null)
+ {
+ options ??= ModelSerializationExtensions.WireOptions;
+
+ if (element.ValueKind == JsonValueKind.Null)
+ {
+ return null;
+ }
+ ConnectorType? connectorType = default;
+ ConnectorClass? connectorClass = default;
+ string connectorName = default;
+ string connectorId = default;
+ ConnectorStatus? connectorState = default;
+ IDictionary serializedAdditionalRawData = default;
+ Dictionary rawDataDictionary = new Dictionary();
+ foreach (var property in element.EnumerateObject())
+ {
+ if (property.NameEquals("connectorType"u8))
+ {
+ if (property.Value.ValueKind == JsonValueKind.Null)
+ {
+ continue;
+ }
+ connectorType = new ConnectorType(property.Value.GetString());
+ continue;
+ }
+ if (property.NameEquals("connectorClass"u8))
+ {
+ if (property.Value.ValueKind == JsonValueKind.Null)
+ {
+ continue;
+ }
+ connectorClass = new ConnectorClass(property.Value.GetString());
+ continue;
+ }
+ if (property.NameEquals("connectorName"u8))
+ {
+ connectorName = property.Value.GetString();
+ continue;
+ }
+ if (property.NameEquals("connectorId"u8))
+ {
+ connectorId = property.Value.GetString();
+ continue;
+ }
+ if (property.NameEquals("connectorState"u8))
+ {
+ if (property.Value.ValueKind == JsonValueKind.Null)
+ {
+ continue;
+ }
+ connectorState = new ConnectorStatus(property.Value.GetString());
+ continue;
+ }
+ if (options.Format != "W")
+ {
+ rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText()));
+ }
+ }
+ serializedAdditionalRawData = rawDataDictionary;
+ return new ConnectorInfoBase(
+ connectorType,
+ connectorClass,
+ connectorName,
+ connectorId,
+ connectorState,
+ 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(ConnectorInfoBase)} does not support writing '{options.Format}' format.");
+ }
+ }
+
+ ConnectorInfoBase 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 DeserializeConnectorInfoBase(document.RootElement, options);
+ }
+ default:
+ throw new FormatException($"The model {nameof(ConnectorInfoBase)} does not support reading '{options.Format}' format.");
+ }
+ }
+
+ string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J";
+ }
+}
diff --git a/sdk/confluent/Azure.ResourceManager.Confluent/src/Generated/Models/ConnectorInfoBase.cs b/sdk/confluent/Azure.ResourceManager.Confluent/src/Generated/Models/ConnectorInfoBase.cs
new file mode 100644
index 000000000000..754d532f3809
--- /dev/null
+++ b/sdk/confluent/Azure.ResourceManager.Confluent/src/Generated/Models/ConnectorInfoBase.cs
@@ -0,0 +1,81 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.Collections.Generic;
+
+namespace Azure.ResourceManager.Confluent.Models
+{
+ /// Connector Info Base properties.
+ public partial class ConnectorInfoBase
+ {
+ ///
+ /// Keeps track of any properties unknown to the library.
+ ///
+ /// To assign an object to the value of this property use .
+ ///
+ ///
+ /// To assign an already formatted json string to this property use .
+ ///
+ ///
+ /// Examples:
+ ///
+ /// -
+ /// BinaryData.FromObjectAsJson("foo")
+ /// Creates a payload of "foo".
+ ///
+ /// -
+ /// BinaryData.FromString("\"foo\"")
+ /// Creates a payload of "foo".
+ ///
+ /// -
+ /// BinaryData.FromObjectAsJson(new { key = "value" })
+ /// Creates a payload of { "key": "value" }.
+ ///
+ /// -
+ /// BinaryData.FromString("{\"key\": \"value\"}")
+ /// Creates a payload of { "key": "value" }.
+ ///
+ ///
+ ///
+ ///
+ private IDictionary _serializedAdditionalRawData;
+
+ /// Initializes a new instance of .
+ public ConnectorInfoBase()
+ {
+ }
+
+ /// Initializes a new instance of .
+ /// Connector Type.
+ /// Connector Class.
+ /// Connector Name.
+ /// Connector Id.
+ /// Connector Status.
+ /// Keeps track of any properties unknown to the library.
+ internal ConnectorInfoBase(ConnectorType? connectorType, ConnectorClass? connectorClass, string connectorName, string connectorId, ConnectorStatus? connectorState, IDictionary serializedAdditionalRawData)
+ {
+ ConnectorType = connectorType;
+ ConnectorClass = connectorClass;
+ ConnectorName = connectorName;
+ ConnectorId = connectorId;
+ ConnectorState = connectorState;
+ _serializedAdditionalRawData = serializedAdditionalRawData;
+ }
+
+ /// Connector Type.
+ public ConnectorType? ConnectorType { get; set; }
+ /// Connector Class.
+ public ConnectorClass? ConnectorClass { get; set; }
+ /// Connector Name.
+ public string ConnectorName { get; set; }
+ /// Connector Id.
+ public string ConnectorId { get; set; }
+ /// Connector Status.
+ public ConnectorStatus? ConnectorState { get; set; }
+ }
+}
diff --git a/sdk/confluent/Azure.ResourceManager.Confluent/src/Generated/Models/ConnectorServiceType.cs b/sdk/confluent/Azure.ResourceManager.Confluent/src/Generated/Models/ConnectorServiceType.cs
new file mode 100644
index 000000000000..89662b3fc2d2
--- /dev/null
+++ b/sdk/confluent/Azure.ResourceManager.Confluent/src/Generated/Models/ConnectorServiceType.cs
@@ -0,0 +1,60 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.ComponentModel;
+
+namespace Azure.ResourceManager.Confluent.Models
+{
+ /// The connector service type.
+ internal readonly partial struct ConnectorServiceType : IEquatable
+ {
+ private readonly string _value;
+
+ /// Initializes a new instance of .
+ /// is null.
+ public ConnectorServiceType(string value)
+ {
+ _value = value ?? throw new ArgumentNullException(nameof(value));
+ }
+
+ private const string AzureBlobStorageSinkConnectorValue = "AzureBlobStorageSinkConnector";
+ private const string AzureBlobStorageSourceConnectorValue = "AzureBlobStorageSourceConnector";
+ private const string AzureCosmosDBSinkConnectorValue = "AzureCosmosDBSinkConnector";
+ private const string AzureCosmosDBSourceConnectorValue = "AzureCosmosDBSourceConnector";
+ private const string AzureSynapseAnalyticsSinkConnectorValue = "AzureSynapseAnalyticsSinkConnector";
+
+ /// AzureBlobStorageSinkConnector.
+ public static ConnectorServiceType AzureBlobStorageSinkConnector { get; } = new ConnectorServiceType(AzureBlobStorageSinkConnectorValue);
+ /// AzureBlobStorageSourceConnector.
+ public static ConnectorServiceType AzureBlobStorageSourceConnector { get; } = new ConnectorServiceType(AzureBlobStorageSourceConnectorValue);
+ /// AzureCosmosDBSinkConnector.
+ public static ConnectorServiceType AzureCosmosDBSinkConnector { get; } = new ConnectorServiceType(AzureCosmosDBSinkConnectorValue);
+ /// AzureCosmosDBSourceConnector.
+ public static ConnectorServiceType AzureCosmosDBSourceConnector { get; } = new ConnectorServiceType(AzureCosmosDBSourceConnectorValue);
+ /// AzureSynapseAnalyticsSinkConnector.
+ public static ConnectorServiceType AzureSynapseAnalyticsSinkConnector { get; } = new ConnectorServiceType(AzureSynapseAnalyticsSinkConnectorValue);
+ /// Determines if two values are the same.
+ public static bool operator ==(ConnectorServiceType left, ConnectorServiceType right) => left.Equals(right);
+ /// Determines if two values are not the same.
+ public static bool operator !=(ConnectorServiceType left, ConnectorServiceType right) => !left.Equals(right);
+ /// Converts a to a .
+ public static implicit operator ConnectorServiceType(string value) => new ConnectorServiceType(value);
+
+ ///
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public override bool Equals(object obj) => obj is ConnectorServiceType other && Equals(other);
+ ///
+ public bool Equals(ConnectorServiceType other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase);
+
+ ///
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public override int GetHashCode() => _value != null ? StringComparer.InvariantCultureIgnoreCase.GetHashCode(_value) : 0;
+ ///
+ public override string ToString() => _value;
+ }
+}
diff --git a/sdk/confluent/Azure.ResourceManager.Confluent/src/Generated/Models/ConnectorServiceTypeInfoBase.Serialization.cs b/sdk/confluent/Azure.ResourceManager.Confluent/src/Generated/Models/ConnectorServiceTypeInfoBase.Serialization.cs
new file mode 100644
index 000000000000..8cfe8d77123e
--- /dev/null
+++ b/sdk/confluent/Azure.ResourceManager.Confluent/src/Generated/Models/ConnectorServiceTypeInfoBase.Serialization.cs
@@ -0,0 +1,121 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.ClientModel.Primitives;
+using System.Text.Json;
+using Azure.Core;
+
+namespace Azure.ResourceManager.Confluent.Models
+{
+ [PersistableModelProxy(typeof(UnknownConnectorServiceTypeInfoBase))]
+ public partial class ConnectorServiceTypeInfoBase : IUtf8JsonSerializable, IJsonModel
+ {
+ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions);
+
+ void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options)
+ {
+ writer.WriteStartObject();
+ JsonModelWriteCore(writer, options);
+ writer.WriteEndObject();
+ }
+
+ /// The JSON writer.
+ /// The client options for reading and writing models.
+ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options)
+ {
+ var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
+ if (format != "J")
+ {
+ throw new FormatException($"The model {nameof(ConnectorServiceTypeInfoBase)} does not support writing '{format}' format.");
+ }
+
+ writer.WritePropertyName("connectorServiceType"u8);
+ writer.WriteStringValue(ConnectorServiceType.ToString());
+ if (options.Format != "W" && _serializedAdditionalRawData != null)
+ {
+ foreach (var item in _serializedAdditionalRawData)
+ {
+ writer.WritePropertyName(item.Key);
+#if NET6_0_OR_GREATER
+ writer.WriteRawValue(item.Value);
+#else
+ using (JsonDocument document = JsonDocument.Parse(item.Value))
+ {
+ JsonSerializer.Serialize(writer, document.RootElement);
+ }
+#endif
+ }
+ }
+ }
+
+ ConnectorServiceTypeInfoBase 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(ConnectorServiceTypeInfoBase)} does not support reading '{format}' format.");
+ }
+
+ using JsonDocument document = JsonDocument.ParseValue(ref reader);
+ return DeserializeConnectorServiceTypeInfoBase(document.RootElement, options);
+ }
+
+ internal static ConnectorServiceTypeInfoBase DeserializeConnectorServiceTypeInfoBase(JsonElement element, ModelReaderWriterOptions options = null)
+ {
+ options ??= ModelSerializationExtensions.WireOptions;
+
+ if (element.ValueKind == JsonValueKind.Null)
+ {
+ return null;
+ }
+ if (element.TryGetProperty("connectorServiceType", out JsonElement discriminator))
+ {
+ switch (discriminator.GetString())
+ {
+ case "AzureBlobStorageSinkConnector": return AzureBlobStorageSinkConnectorServiceInfo.DeserializeAzureBlobStorageSinkConnectorServiceInfo(element, options);
+ case "AzureBlobStorageSourceConnector": return AzureBlobStorageSourceConnectorServiceInfo.DeserializeAzureBlobStorageSourceConnectorServiceInfo(element, options);
+ case "AzureCosmosDBSinkConnector": return AzureCosmosDBSinkConnectorServiceInfo.DeserializeAzureCosmosDBSinkConnectorServiceInfo(element, options);
+ case "AzureCosmosDBSourceConnector": return AzureCosmosDBSourceConnectorServiceInfo.DeserializeAzureCosmosDBSourceConnectorServiceInfo(element, options);
+ case "AzureSynapseAnalyticsSinkConnector": return AzureSynapseAnalyticsSinkConnectorServiceInfo.DeserializeAzureSynapseAnalyticsSinkConnectorServiceInfo(element, options);
+ }
+ }
+ return UnknownConnectorServiceTypeInfoBase.DeserializeUnknownConnectorServiceTypeInfoBase(element, options);
+ }
+
+ 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(ConnectorServiceTypeInfoBase)} does not support writing '{options.Format}' format.");
+ }
+ }
+
+ ConnectorServiceTypeInfoBase 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 DeserializeConnectorServiceTypeInfoBase(document.RootElement, options);
+ }
+ default:
+ throw new FormatException($"The model {nameof(ConnectorServiceTypeInfoBase)} does not support reading '{options.Format}' format.");
+ }
+ }
+
+ string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J";
+ }
+}
diff --git a/sdk/confluent/Azure.ResourceManager.Confluent/src/Generated/Models/ConnectorServiceTypeInfoBase.cs b/sdk/confluent/Azure.ResourceManager.Confluent/src/Generated/Models/ConnectorServiceTypeInfoBase.cs
new file mode 100644
index 000000000000..2b594f3be837
--- /dev/null
+++ b/sdk/confluent/Azure.ResourceManager.Confluent/src/Generated/Models/ConnectorServiceTypeInfoBase.cs
@@ -0,0 +1,69 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.Collections.Generic;
+
+namespace Azure.ResourceManager.Confluent.Models
+{
+ ///
+ /// The connector service type info
+ /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes.
+ /// The available derived classes include , , , and .
+ ///
+ public abstract partial class ConnectorServiceTypeInfoBase
+ {
+ ///
+ /// Keeps track of any properties unknown to the library.
+ ///
+ /// To assign an object to the value of this property use .
+ ///
+ ///
+ /// To assign an already formatted json string to this property use .
+ ///
+ ///
+ /// Examples:
+ ///
+ /// -
+ /// BinaryData.FromObjectAsJson("foo")
+ /// Creates a payload of "foo".
+ ///
+ /// -
+ /// BinaryData.FromString("\"foo\"")
+ /// Creates a payload of "foo".
+ ///
+ /// -
+ /// BinaryData.FromObjectAsJson(new { key = "value" })
+ /// Creates a payload of { "key": "value" }.
+ ///
+ /// -
+ /// BinaryData.FromString("{\"key\": \"value\"}")
+ /// Creates a payload of { "key": "value" }.
+ ///
+ ///
+ ///
+ ///
+ private protected IDictionary _serializedAdditionalRawData;
+
+ /// Initializes a new instance of .
+ protected ConnectorServiceTypeInfoBase()
+ {
+ }
+
+ /// Initializes a new instance of .
+ /// The connector service type.
+ /// Keeps track of any properties unknown to the library.
+ internal ConnectorServiceTypeInfoBase(ConnectorServiceType connectorServiceType, IDictionary serializedAdditionalRawData)
+ {
+ ConnectorServiceType = connectorServiceType;
+ _serializedAdditionalRawData = serializedAdditionalRawData;
+ }
+
+ /// The connector service type.
+ internal ConnectorServiceType ConnectorServiceType { get; set; }
+ }
+}
diff --git a/sdk/confluent/Azure.ResourceManager.Confluent/src/Generated/Models/ConnectorStatus.cs b/sdk/confluent/Azure.ResourceManager.Confluent/src/Generated/Models/ConnectorStatus.cs
new file mode 100644
index 000000000000..327664c13720
--- /dev/null
+++ b/sdk/confluent/Azure.ResourceManager.Confluent/src/Generated/Models/ConnectorStatus.cs
@@ -0,0 +1,57 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.ComponentModel;
+
+namespace Azure.ResourceManager.Confluent.Models
+{
+ /// Connector Status.
+ public readonly partial struct ConnectorStatus : IEquatable
+ {
+ private readonly string _value;
+
+ /// Initializes a new instance of .
+ /// is null.
+ public ConnectorStatus(string value)
+ {
+ _value = value ?? throw new ArgumentNullException(nameof(value));
+ }
+
+ private const string ProvisioningValue = "PROVISIONING";
+ private const string RunningValue = "RUNNING";
+ private const string PausedValue = "PAUSED";
+ private const string FailedValue = "FAILED";
+
+ /// PROVISIONING.
+ public static ConnectorStatus Provisioning { get; } = new ConnectorStatus(ProvisioningValue);
+ /// RUNNING.
+ public static ConnectorStatus Running { get; } = new ConnectorStatus(RunningValue);
+ /// PAUSED.
+ public static ConnectorStatus Paused { get; } = new ConnectorStatus(PausedValue);
+ /// FAILED.
+ public static ConnectorStatus Failed { get; } = new ConnectorStatus(FailedValue);
+ /// Determines if two values are the same.
+ public static bool operator ==(ConnectorStatus left, ConnectorStatus right) => left.Equals(right);
+ /// Determines if two values are not the same.
+ public static bool operator !=(ConnectorStatus left, ConnectorStatus right) => !left.Equals(right);
+ /// Converts a to a .
+ public static implicit operator ConnectorStatus(string value) => new ConnectorStatus(value);
+
+ ///
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public override bool Equals(object obj) => obj is ConnectorStatus other && Equals(other);
+ ///
+ public bool Equals(ConnectorStatus other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase);
+
+ ///
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public override int GetHashCode() => _value != null ? StringComparer.InvariantCultureIgnoreCase.GetHashCode(_value) : 0;
+ ///
+ public override string ToString() => _value;
+ }
+}
diff --git a/sdk/confluent/Azure.ResourceManager.Confluent/src/Generated/Models/ConnectorType.cs b/sdk/confluent/Azure.ResourceManager.Confluent/src/Generated/Models/ConnectorType.cs
new file mode 100644
index 000000000000..9da20526c7f4
--- /dev/null
+++ b/sdk/confluent/Azure.ResourceManager.Confluent/src/Generated/Models/ConnectorType.cs
@@ -0,0 +1,51 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.ComponentModel;
+
+namespace Azure.ResourceManager.Confluent.Models
+{
+ /// Connector Type.
+ public readonly partial struct ConnectorType : IEquatable
+ {
+ private readonly string _value;
+
+ /// Initializes a new instance of .
+ /// is null.
+ public ConnectorType(string value)
+ {
+ _value = value ?? throw new ArgumentNullException(nameof(value));
+ }
+
+ private const string SinkValue = "SINK";
+ private const string SourceValue = "SOURCE";
+
+ /// SINK.
+ public static ConnectorType Sink { get; } = new ConnectorType(SinkValue);
+ /// SOURCE.
+ public static ConnectorType Source { get; } = new ConnectorType(SourceValue);
+ /// Determines if two values are the same.
+ public static bool operator ==(ConnectorType left, ConnectorType right) => left.Equals(right);
+ /// Determines if two values are not the same.
+ public static bool operator !=(ConnectorType left, ConnectorType right) => !left.Equals(right);
+ /// Converts a to a .
+ public static implicit operator ConnectorType(string value) => new ConnectorType(value);
+
+ ///
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public override bool Equals(object obj) => obj is ConnectorType other && Equals(other);
+ ///
+ public bool Equals(ConnectorType other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase);
+
+ ///
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public override int GetHashCode() => _value != null ? StringComparer.InvariantCultureIgnoreCase.GetHashCode(_value) : 0;
+ ///
+ public override string ToString() => _value;
+ }
+}
diff --git a/sdk/confluent/Azure.ResourceManager.Confluent/src/Generated/Models/DataFormatType.cs b/sdk/confluent/Azure.ResourceManager.Confluent/src/Generated/Models/DataFormatType.cs
new file mode 100644
index 000000000000..fca503142e72
--- /dev/null
+++ b/sdk/confluent/Azure.ResourceManager.Confluent/src/Generated/Models/DataFormatType.cs
@@ -0,0 +1,60 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.ComponentModel;
+
+namespace Azure.ResourceManager.Confluent.Models
+{
+ /// Data Format Type.
+ public readonly partial struct DataFormatType : IEquatable
+ {
+ private readonly string _value;
+
+ /// Initializes a new instance of .
+ /// is null.
+ public DataFormatType(string value)
+ {
+ _value = value ?? throw new ArgumentNullException(nameof(value));
+ }
+
+ private const string AvroValue = "AVRO";
+ private const string JsonValue = "JSON";
+ private const string StringValue = "STRING";
+ private const string BytesValue = "BYTES";
+ private const string ProtobufValue = "PROTOBUF";
+
+ /// AVRO.
+ public static DataFormatType Avro { get; } = new DataFormatType(AvroValue);
+ /// JSON.
+ public static DataFormatType Json { get; } = new DataFormatType(JsonValue);
+ /// STRING.
+ public static DataFormatType String { get; } = new DataFormatType(StringValue);
+ /// BYTES.
+ public static DataFormatType Bytes { get; } = new DataFormatType(BytesValue);
+ /// PROTOBUF.
+ public static DataFormatType Protobuf { get; } = new DataFormatType(ProtobufValue);
+ /// Determines if two values are the same.
+ public static bool operator ==(DataFormatType left, DataFormatType right) => left.Equals(right);
+ /// Determines if two values are not the same.
+ public static bool operator !=(DataFormatType left, DataFormatType right) => !left.Equals(right);
+ /// Converts a to a .
+ public static implicit operator DataFormatType(string value) => new DataFormatType(value);
+
+ ///
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public override bool Equals(object obj) => obj is DataFormatType other && Equals(other);
+ ///
+ public bool Equals(DataFormatType other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase);
+
+ ///
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public override int GetHashCode() => _value != null ? StringComparer.InvariantCultureIgnoreCase.GetHashCode(_value) : 0;
+ ///
+ public override string ToString() => _value;
+ }
+}
diff --git a/sdk/confluent/Azure.ResourceManager.Confluent/src/Generated/Models/GetEnvironmentsResponse.Serialization.cs b/sdk/confluent/Azure.ResourceManager.Confluent/src/Generated/Models/GetEnvironmentsResponse.Serialization.cs
index c43e71c3a926..ea28364f8226 100644
--- a/sdk/confluent/Azure.ResourceManager.Confluent/src/Generated/Models/GetEnvironmentsResponse.Serialization.cs
+++ b/sdk/confluent/Azure.ResourceManager.Confluent/src/Generated/Models/GetEnvironmentsResponse.Serialization.cs
@@ -86,7 +86,7 @@ internal static GetEnvironmentsResponse DeserializeGetEnvironmentsResponse(JsonE
{
return null;
}
- IReadOnlyList value = default;
+ IReadOnlyList value = default;
string nextLink = default;
IDictionary serializedAdditionalRawData = default;
Dictionary rawDataDictionary = new Dictionary();
@@ -98,10 +98,10 @@ internal static GetEnvironmentsResponse DeserializeGetEnvironmentsResponse(JsonE
{
continue;
}
- List array = new List();
+ List array = new List();
foreach (var item in property.Value.EnumerateArray())
{
- array.Add(SCEnvironmentRecord.DeserializeSCEnvironmentRecord(item, options));
+ array.Add(SCEnvironmentRecordData.DeserializeSCEnvironmentRecordData(item, options));
}
value = array;
continue;
@@ -117,7 +117,7 @@ internal static GetEnvironmentsResponse DeserializeGetEnvironmentsResponse(JsonE
}
}
serializedAdditionalRawData = rawDataDictionary;
- return new GetEnvironmentsResponse(value ?? new ChangeTrackingList(), nextLink, serializedAdditionalRawData);
+ return new GetEnvironmentsResponse(value ?? new ChangeTrackingList(), nextLink, serializedAdditionalRawData);
}
BinaryData IPersistableModel.Write(ModelReaderWriterOptions options)
diff --git a/sdk/confluent/Azure.ResourceManager.Confluent/src/Generated/Models/GetEnvironmentsResponse.cs b/sdk/confluent/Azure.ResourceManager.Confluent/src/Generated/Models/GetEnvironmentsResponse.cs
index 1bdbe6d36225..065e97b0b27a 100644
--- a/sdk/confluent/Azure.ResourceManager.Confluent/src/Generated/Models/GetEnvironmentsResponse.cs
+++ b/sdk/confluent/Azure.ResourceManager.Confluent/src/Generated/Models/GetEnvironmentsResponse.cs
@@ -48,14 +48,14 @@ internal partial class GetEnvironmentsResponse
/// Initializes a new instance of .
internal GetEnvironmentsResponse()
{
- Value = new ChangeTrackingList();
+ Value = new ChangeTrackingList();
}
/// Initializes a new instance of .
/// List of environments in a confluent organization.
/// URL to get the next set of environment records if there are any.
/// Keeps track of any properties unknown to the library.
- internal GetEnvironmentsResponse(IReadOnlyList value, string nextLink, IDictionary serializedAdditionalRawData)
+ internal GetEnvironmentsResponse(IReadOnlyList value, string nextLink, IDictionary serializedAdditionalRawData)
{
Value = value;
NextLink = nextLink;
@@ -63,7 +63,7 @@ internal GetEnvironmentsResponse(IReadOnlyList value, strin
}
/// List of environments in a confluent organization.
- public IReadOnlyList Value { get; }
+ public IReadOnlyList Value { get; }
/// URL to get the next set of environment records if there are any.
public string NextLink { get; }
}
diff --git a/sdk/confluent/Azure.ResourceManager.Confluent/src/Generated/Models/KafkaAzureBlobStorageSinkConnectorInfo.Serialization.cs b/sdk/confluent/Azure.ResourceManager.Confluent/src/Generated/Models/KafkaAzureBlobStorageSinkConnectorInfo.Serialization.cs
new file mode 100644
index 000000000000..f9c642e283b3
--- /dev/null
+++ b/sdk/confluent/Azure.ResourceManager.Confluent/src/Generated/Models/KafkaAzureBlobStorageSinkConnectorInfo.Serialization.cs
@@ -0,0 +1,270 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.ClientModel.Primitives;
+using System.Collections.Generic;
+using System.Text.Json;
+using Azure.Core;
+
+namespace Azure.ResourceManager.Confluent.Models
+{
+ public partial class KafkaAzureBlobStorageSinkConnectorInfo : 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(KafkaAzureBlobStorageSinkConnectorInfo)} does not support writing '{format}' format.");
+ }
+
+ base.JsonModelWriteCore(writer, options);
+ if (Optional.IsDefined(AuthType))
+ {
+ writer.WritePropertyName("authType"u8);
+ writer.WriteStringValue(AuthType.Value.ToString());
+ }
+ if (Optional.IsDefined(InputFormat))
+ {
+ writer.WritePropertyName("inputFormat"u8);
+ writer.WriteStringValue(InputFormat.Value.ToString());
+ }
+ if (Optional.IsDefined(OutputFormat))
+ {
+ writer.WritePropertyName("outputFormat"u8);
+ writer.WriteStringValue(OutputFormat.Value.ToString());
+ }
+ if (Optional.IsDefined(ApiKey))
+ {
+ writer.WritePropertyName("apiKey"u8);
+ writer.WriteStringValue(ApiKey);
+ }
+ if (Optional.IsDefined(ApiSecret))
+ {
+ writer.WritePropertyName("apiSecret"u8);
+ writer.WriteStringValue(ApiSecret);
+ }
+ if (Optional.IsDefined(ServiceAccountId))
+ {
+ writer.WritePropertyName("serviceAccountId"u8);
+ writer.WriteStringValue(ServiceAccountId);
+ }
+ if (Optional.IsCollectionDefined(Topics))
+ {
+ writer.WritePropertyName("topics"u8);
+ writer.WriteStartArray();
+ foreach (var item in Topics)
+ {
+ writer.WriteStringValue(item);
+ }
+ writer.WriteEndArray();
+ }
+ if (Optional.IsDefined(TopicsDir))
+ {
+ writer.WritePropertyName("topicsDir"u8);
+ writer.WriteStringValue(TopicsDir);
+ }
+ if (Optional.IsDefined(FlushSize))
+ {
+ writer.WritePropertyName("flushSize"u8);
+ writer.WriteStringValue(FlushSize);
+ }
+ if (Optional.IsDefined(MaxTasks))
+ {
+ writer.WritePropertyName("maxTasks"u8);
+ writer.WriteStringValue(MaxTasks);
+ }
+ if (Optional.IsDefined(TimeInterval))
+ {
+ writer.WritePropertyName("timeInterval"u8);
+ writer.WriteStringValue(TimeInterval);
+ }
+ }
+
+ KafkaAzureBlobStorageSinkConnectorInfo 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(KafkaAzureBlobStorageSinkConnectorInfo)} does not support reading '{format}' format.");
+ }
+
+ using JsonDocument document = JsonDocument.ParseValue(ref reader);
+ return DeserializeKafkaAzureBlobStorageSinkConnectorInfo(document.RootElement, options);
+ }
+
+ internal static KafkaAzureBlobStorageSinkConnectorInfo DeserializeKafkaAzureBlobStorageSinkConnectorInfo(JsonElement element, ModelReaderWriterOptions options = null)
+ {
+ options ??= ModelSerializationExtensions.WireOptions;
+
+ if (element.ValueKind == JsonValueKind.Null)
+ {
+ return null;
+ }
+ AuthType? authType = default;
+ DataFormatType? inputFormat = default;
+ DataFormatType? outputFormat = default;
+ string apiKey = default;
+ string apiSecret = default;
+ string serviceAccountId = default;
+ IList topics = default;
+ string topicsDir = default;
+ string flushSize = default;
+ string maxTasks = default;
+ string timeInterval = default;
+ PartnerConnectorType partnerConnectorType = default;
+ IDictionary serializedAdditionalRawData = default;
+ Dictionary rawDataDictionary = new Dictionary();
+ foreach (var property in element.EnumerateObject())
+ {
+ if (property.NameEquals("authType"u8))
+ {
+ if (property.Value.ValueKind == JsonValueKind.Null)
+ {
+ continue;
+ }
+ authType = new AuthType(property.Value.GetString());
+ continue;
+ }
+ if (property.NameEquals("inputFormat"u8))
+ {
+ if (property.Value.ValueKind == JsonValueKind.Null)
+ {
+ continue;
+ }
+ inputFormat = new DataFormatType(property.Value.GetString());
+ continue;
+ }
+ if (property.NameEquals("outputFormat"u8))
+ {
+ if (property.Value.ValueKind == JsonValueKind.Null)
+ {
+ continue;
+ }
+ outputFormat = new DataFormatType(property.Value.GetString());
+ continue;
+ }
+ if (property.NameEquals("apiKey"u8))
+ {
+ apiKey = property.Value.GetString();
+ continue;
+ }
+ if (property.NameEquals("apiSecret"u8))
+ {
+ apiSecret = property.Value.GetString();
+ continue;
+ }
+ if (property.NameEquals("serviceAccountId"u8))
+ {
+ serviceAccountId = property.Value.GetString();
+ continue;
+ }
+ if (property.NameEquals("topics"u8))
+ {
+ if (property.Value.ValueKind == JsonValueKind.Null)
+ {
+ continue;
+ }
+ List array = new List();
+ foreach (var item in property.Value.EnumerateArray())
+ {
+ array.Add(item.GetString());
+ }
+ topics = array;
+ continue;
+ }
+ if (property.NameEquals("topicsDir"u8))
+ {
+ topicsDir = property.Value.GetString();
+ continue;
+ }
+ if (property.NameEquals("flushSize"u8))
+ {
+ flushSize = property.Value.GetString();
+ continue;
+ }
+ if (property.NameEquals("maxTasks"u8))
+ {
+ maxTasks = property.Value.GetString();
+ continue;
+ }
+ if (property.NameEquals("timeInterval"u8))
+ {
+ timeInterval = property.Value.GetString();
+ continue;
+ }
+ if (property.NameEquals("partnerConnectorType"u8))
+ {
+ partnerConnectorType = new PartnerConnectorType(property.Value.GetString());
+ continue;
+ }
+ if (options.Format != "W")
+ {
+ rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText()));
+ }
+ }
+ serializedAdditionalRawData = rawDataDictionary;
+ return new KafkaAzureBlobStorageSinkConnectorInfo(
+ partnerConnectorType,
+ serializedAdditionalRawData,
+ authType,
+ inputFormat,
+ outputFormat,
+ apiKey,
+ apiSecret,
+ serviceAccountId,
+ topics ?? new ChangeTrackingList(),
+ topicsDir,
+ flushSize,
+ maxTasks,
+ timeInterval);
+ }
+
+ 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(KafkaAzureBlobStorageSinkConnectorInfo)} does not support writing '{options.Format}' format.");
+ }
+ }
+
+ KafkaAzureBlobStorageSinkConnectorInfo 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 DeserializeKafkaAzureBlobStorageSinkConnectorInfo(document.RootElement, options);
+ }
+ default:
+ throw new FormatException($"The model {nameof(KafkaAzureBlobStorageSinkConnectorInfo)} does not support reading '{options.Format}' format.");
+ }
+ }
+
+ string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J";
+ }
+}
diff --git a/sdk/confluent/Azure.ResourceManager.Confluent/src/Generated/Models/KafkaAzureBlobStorageSinkConnectorInfo.cs b/sdk/confluent/Azure.ResourceManager.Confluent/src/Generated/Models/KafkaAzureBlobStorageSinkConnectorInfo.cs
new file mode 100644
index 000000000000..6fb578d5c9ea
--- /dev/null
+++ b/sdk/confluent/Azure.ResourceManager.Confluent/src/Generated/Models/KafkaAzureBlobStorageSinkConnectorInfo.cs
@@ -0,0 +1,76 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.Collections.Generic;
+
+namespace Azure.ResourceManager.Confluent.Models
+{
+ /// The partner connector type is KafkaAzureBlobStorageSink.
+ public partial class KafkaAzureBlobStorageSinkConnectorInfo : PartnerInfoBase
+ {
+ /// Initializes a new instance of .
+ public KafkaAzureBlobStorageSinkConnectorInfo()
+ {
+ Topics = new ChangeTrackingList();
+ PartnerConnectorType = PartnerConnectorType.KafkaAzureBlobStorageSink;
+ }
+
+ /// Initializes a new instance of .
+ /// The partner connector type.
+ /// Keeps track of any properties unknown to the library.
+ /// Kafka Auth Type.
+ /// Kafka Input Data Format Type.
+ /// Kafka Output Data Format Type.
+ /// Kafka API Key.
+ /// Kafka API Key Secret.
+ /// Kafka Service Account Id.
+ /// Kafka topics list.
+ /// Kafka topics directory.
+ /// Flush size.
+ /// Maximum Tasks.
+ /// Time Interval.
+ internal KafkaAzureBlobStorageSinkConnectorInfo(PartnerConnectorType partnerConnectorType, IDictionary serializedAdditionalRawData, AuthType? authType, DataFormatType? inputFormat, DataFormatType? outputFormat, string apiKey, string apiSecret, string serviceAccountId, IList topics, string topicsDir, string flushSize, string maxTasks, string timeInterval) : base(partnerConnectorType, serializedAdditionalRawData)
+ {
+ AuthType = authType;
+ InputFormat = inputFormat;
+ OutputFormat = outputFormat;
+ ApiKey = apiKey;
+ ApiSecret = apiSecret;
+ ServiceAccountId = serviceAccountId;
+ Topics = topics;
+ TopicsDir = topicsDir;
+ FlushSize = flushSize;
+ MaxTasks = maxTasks;
+ TimeInterval = timeInterval;
+ PartnerConnectorType = partnerConnectorType;
+ }
+
+ /// Kafka Auth Type.
+ public AuthType? AuthType { get; set; }
+ /// Kafka Input Data Format Type.
+ public DataFormatType? InputFormat { get; set; }
+ /// Kafka Output Data Format Type.
+ public DataFormatType? OutputFormat { get; set; }
+ /// Kafka API Key.
+ public string ApiKey { get; set; }
+ /// Kafka API Key Secret.
+ public string ApiSecret { get; set; }
+ /// Kafka Service Account Id.
+ public string ServiceAccountId { get; set; }
+ /// Kafka topics list.
+ public IList Topics { get; }
+ /// Kafka topics directory.
+ public string TopicsDir { get; set; }
+ /// Flush size.
+ public string FlushSize { get; set; }
+ /// Maximum Tasks.
+ public string MaxTasks { get; set; }
+ /// Time Interval.
+ public string TimeInterval { get; set; }
+ }
+}
diff --git a/sdk/confluent/Azure.ResourceManager.Confluent/src/Generated/Models/KafkaAzureBlobStorageSourceConnectorInfo.Serialization.cs b/sdk/confluent/Azure.ResourceManager.Confluent/src/Generated/Models/KafkaAzureBlobStorageSourceConnectorInfo.Serialization.cs
new file mode 100644
index 000000000000..9f3f0711cd4a
--- /dev/null
+++ b/sdk/confluent/Azure.ResourceManager.Confluent/src/Generated/Models/KafkaAzureBlobStorageSourceConnectorInfo.Serialization.cs
@@ -0,0 +1,232 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.ClientModel.Primitives;
+using System.Collections.Generic;
+using System.Text.Json;
+using Azure.Core;
+
+namespace Azure.ResourceManager.Confluent.Models
+{
+ public partial class KafkaAzureBlobStorageSourceConnectorInfo : 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(KafkaAzureBlobStorageSourceConnectorInfo)} does not support writing '{format}' format.");
+ }
+
+ base.JsonModelWriteCore(writer, options);
+ if (Optional.IsDefined(AuthType))
+ {
+ writer.WritePropertyName("authType"u8);
+ writer.WriteStringValue(AuthType.Value.ToString());
+ }
+ if (Optional.IsDefined(InputFormat))
+ {
+ writer.WritePropertyName("inputFormat"u8);
+ writer.WriteStringValue(InputFormat.Value.ToString());
+ }
+ if (Optional.IsDefined(OutputFormat))
+ {
+ writer.WritePropertyName("outputFormat"u8);
+ writer.WriteStringValue(OutputFormat.Value.ToString());
+ }
+ if (Optional.IsDefined(ApiKey))
+ {
+ writer.WritePropertyName("apiKey"u8);
+ writer.WriteStringValue(ApiKey);
+ }
+ if (Optional.IsDefined(ApiSecret))
+ {
+ writer.WritePropertyName("apiSecret"u8);
+ writer.WriteStringValue(ApiSecret);
+ }
+ if (Optional.IsDefined(ServiceAccountId))
+ {
+ writer.WritePropertyName("serviceAccountId"u8);
+ writer.WriteStringValue(ServiceAccountId);
+ }
+ if (Optional.IsDefined(TopicRegex))
+ {
+ writer.WritePropertyName("topicRegex"u8);
+ writer.WriteStringValue(TopicRegex);
+ }
+ if (Optional.IsDefined(TopicsDir))
+ {
+ writer.WritePropertyName("topicsDir"u8);
+ writer.WriteStringValue(TopicsDir);
+ }
+ if (Optional.IsDefined(MaxTasks))
+ {
+ writer.WritePropertyName("maxTasks"u8);
+ writer.WriteStringValue(MaxTasks);
+ }
+ }
+
+ KafkaAzureBlobStorageSourceConnectorInfo 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(KafkaAzureBlobStorageSourceConnectorInfo)} does not support reading '{format}' format.");
+ }
+
+ using JsonDocument document = JsonDocument.ParseValue(ref reader);
+ return DeserializeKafkaAzureBlobStorageSourceConnectorInfo(document.RootElement, options);
+ }
+
+ internal static KafkaAzureBlobStorageSourceConnectorInfo DeserializeKafkaAzureBlobStorageSourceConnectorInfo(JsonElement element, ModelReaderWriterOptions options = null)
+ {
+ options ??= ModelSerializationExtensions.WireOptions;
+
+ if (element.ValueKind == JsonValueKind.Null)
+ {
+ return null;
+ }
+ AuthType? authType = default;
+ DataFormatType? inputFormat = default;
+ DataFormatType? outputFormat = default;
+ string apiKey = default;
+ string apiSecret = default;
+ string serviceAccountId = default;
+ string topicRegex = default;
+ string topicsDir = default;
+ string maxTasks = default;
+ PartnerConnectorType partnerConnectorType = default;
+ IDictionary serializedAdditionalRawData = default;
+ Dictionary rawDataDictionary = new Dictionary();
+ foreach (var property in element.EnumerateObject())
+ {
+ if (property.NameEquals("authType"u8))
+ {
+ if (property.Value.ValueKind == JsonValueKind.Null)
+ {
+ continue;
+ }
+ authType = new AuthType(property.Value.GetString());
+ continue;
+ }
+ if (property.NameEquals("inputFormat"u8))
+ {
+ if (property.Value.ValueKind == JsonValueKind.Null)
+ {
+ continue;
+ }
+ inputFormat = new DataFormatType(property.Value.GetString());
+ continue;
+ }
+ if (property.NameEquals("outputFormat"u8))
+ {
+ if (property.Value.ValueKind == JsonValueKind.Null)
+ {
+ continue;
+ }
+ outputFormat = new DataFormatType(property.Value.GetString());
+ continue;
+ }
+ if (property.NameEquals("apiKey"u8))
+ {
+ apiKey = property.Value.GetString();
+ continue;
+ }
+ if (property.NameEquals("apiSecret"u8))
+ {
+ apiSecret = property.Value.GetString();
+ continue;
+ }
+ if (property.NameEquals("serviceAccountId"u8))
+ {
+ serviceAccountId = property.Value.GetString();
+ continue;
+ }
+ if (property.NameEquals("topicRegex"u8))
+ {
+ topicRegex = property.Value.GetString();
+ continue;
+ }
+ if (property.NameEquals("topicsDir"u8))
+ {
+ topicsDir = property.Value.GetString();
+ continue;
+ }
+ if (property.NameEquals("maxTasks"u8))
+ {
+ maxTasks = property.Value.GetString();
+ continue;
+ }
+ if (property.NameEquals("partnerConnectorType"u8))
+ {
+ partnerConnectorType = new PartnerConnectorType(property.Value.GetString());
+ continue;
+ }
+ if (options.Format != "W")
+ {
+ rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText()));
+ }
+ }
+ serializedAdditionalRawData = rawDataDictionary;
+ return new KafkaAzureBlobStorageSourceConnectorInfo(
+ partnerConnectorType,
+ serializedAdditionalRawData,
+ authType,
+ inputFormat,
+ outputFormat,
+ apiKey,
+ apiSecret,
+ serviceAccountId,
+ topicRegex,
+ topicsDir,
+ maxTasks);
+ }
+
+ 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(KafkaAzureBlobStorageSourceConnectorInfo)} does not support writing '{options.Format}' format.");
+ }
+ }
+
+ KafkaAzureBlobStorageSourceConnectorInfo 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 DeserializeKafkaAzureBlobStorageSourceConnectorInfo(document.RootElement, options);
+ }
+ default:
+ throw new FormatException($"The model {nameof(KafkaAzureBlobStorageSourceConnectorInfo)} does not support reading '{options.Format}' format.");
+ }
+ }
+
+ string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J";
+ }
+}
diff --git a/sdk/confluent/Azure.ResourceManager.Confluent/src/Generated/Models/KafkaAzureBlobStorageSourceConnectorInfo.cs b/sdk/confluent/Azure.ResourceManager.Confluent/src/Generated/Models/KafkaAzureBlobStorageSourceConnectorInfo.cs
new file mode 100644
index 000000000000..6c2948eabed1
--- /dev/null
+++ b/sdk/confluent/Azure.ResourceManager.Confluent/src/Generated/Models/KafkaAzureBlobStorageSourceConnectorInfo.cs
@@ -0,0 +1,67 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.Collections.Generic;
+
+namespace Azure.ResourceManager.Confluent.Models
+{
+ /// The partner connector type is KafkaAzureBlobStorageSource.
+ public partial class KafkaAzureBlobStorageSourceConnectorInfo : PartnerInfoBase
+ {
+ /// Initializes a new instance of .
+ public KafkaAzureBlobStorageSourceConnectorInfo()
+ {
+ PartnerConnectorType = PartnerConnectorType.KafkaAzureBlobStorageSource;
+ }
+
+ /// Initializes a new instance of .
+ /// The partner connector type.
+ /// Keeps track of any properties unknown to the library.
+ /// Kafka Auth Type.
+ /// Kafka Input Data Format Type.
+ /// Kafka Output Data Format Type.
+ /// Kafka API Key.
+ /// Kafka API Secret.
+ /// Kafka Service Account Id.
+ /// Kafka topics Regex pattern.
+ /// Kafka topics directory.
+ /// Maximum Tasks.
+ internal KafkaAzureBlobStorageSourceConnectorInfo(PartnerConnectorType partnerConnectorType, IDictionary serializedAdditionalRawData, AuthType? authType, DataFormatType? inputFormat, DataFormatType? outputFormat, string apiKey, string apiSecret, string serviceAccountId, string topicRegex, string topicsDir, string maxTasks) : base(partnerConnectorType, serializedAdditionalRawData)
+ {
+ AuthType = authType;
+ InputFormat = inputFormat;
+ OutputFormat = outputFormat;
+ ApiKey = apiKey;
+ ApiSecret = apiSecret;
+ ServiceAccountId = serviceAccountId;
+ TopicRegex = topicRegex;
+ TopicsDir = topicsDir;
+ MaxTasks = maxTasks;
+ PartnerConnectorType = partnerConnectorType;
+ }
+
+ /// Kafka Auth Type.
+ public AuthType? AuthType { get; set; }
+ /// Kafka Input Data Format Type.
+ public DataFormatType? InputFormat { get; set; }
+ /// Kafka Output Data Format Type.
+ public DataFormatType? OutputFormat { get; set; }
+ /// Kafka API Key.
+ public string ApiKey { get; set; }
+ /// Kafka API Secret.
+ public string ApiSecret { get; set; }
+ /// Kafka Service Account Id.
+ public string ServiceAccountId { get; set; }
+ /// Kafka topics Regex pattern.
+ public string TopicRegex { get; set; }
+ /// Kafka topics directory.
+ public string TopicsDir { get; set; }
+ /// Maximum Tasks.
+ public string MaxTasks { get; set; }
+ }
+}
diff --git a/sdk/confluent/Azure.ResourceManager.Confluent/src/Generated/Models/KafkaAzureCosmosDBSinkConnectorInfo.Serialization.cs b/sdk/confluent/Azure.ResourceManager.Confluent/src/Generated/Models/KafkaAzureCosmosDBSinkConnectorInfo.Serialization.cs
new file mode 100644
index 000000000000..1530b7a05784
--- /dev/null
+++ b/sdk/confluent/Azure.ResourceManager.Confluent/src/Generated/Models/KafkaAzureCosmosDBSinkConnectorInfo.Serialization.cs
@@ -0,0 +1,270 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.ClientModel.Primitives;
+using System.Collections.Generic;
+using System.Text.Json;
+using Azure.Core;
+
+namespace Azure.ResourceManager.Confluent.Models
+{
+ public partial class KafkaAzureCosmosDBSinkConnectorInfo : 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(KafkaAzureCosmosDBSinkConnectorInfo)} does not support writing '{format}' format.");
+ }
+
+ base.JsonModelWriteCore(writer, options);
+ if (Optional.IsDefined(AuthType))
+ {
+ writer.WritePropertyName("authType"u8);
+ writer.WriteStringValue(AuthType.Value.ToString());
+ }
+ if (Optional.IsDefined(InputFormat))
+ {
+ writer.WritePropertyName("inputFormat"u8);
+ writer.WriteStringValue(InputFormat.Value.ToString());
+ }
+ if (Optional.IsDefined(OutputFormat))
+ {
+ writer.WritePropertyName("outputFormat"u8);
+ writer.WriteStringValue(OutputFormat.Value.ToString());
+ }
+ if (Optional.IsDefined(ApiKey))
+ {
+ writer.WritePropertyName("apiKey"u8);
+ writer.WriteStringValue(ApiKey);
+ }
+ if (Optional.IsDefined(ApiSecret))
+ {
+ writer.WritePropertyName("apiSecret"u8);
+ writer.WriteStringValue(ApiSecret);
+ }
+ if (Optional.IsDefined(ServiceAccountId))
+ {
+ writer.WritePropertyName("serviceAccountId"u8);
+ writer.WriteStringValue(ServiceAccountId);
+ }
+ if (Optional.IsCollectionDefined(Topics))
+ {
+ writer.WritePropertyName("topics"u8);
+ writer.WriteStartArray();
+ foreach (var item in Topics)
+ {
+ writer.WriteStringValue(item);
+ }
+ writer.WriteEndArray();
+ }
+ if (Optional.IsDefined(TopicsDir))
+ {
+ writer.WritePropertyName("topicsDir"u8);
+ writer.WriteStringValue(TopicsDir);
+ }
+ if (Optional.IsDefined(FlushSize))
+ {
+ writer.WritePropertyName("flushSize"u8);
+ writer.WriteStringValue(FlushSize);
+ }
+ if (Optional.IsDefined(MaxTasks))
+ {
+ writer.WritePropertyName("maxTasks"u8);
+ writer.WriteStringValue(MaxTasks);
+ }
+ if (Optional.IsDefined(TimeInterval))
+ {
+ writer.WritePropertyName("timeInterval"u8);
+ writer.WriteStringValue(TimeInterval);
+ }
+ }
+
+ KafkaAzureCosmosDBSinkConnectorInfo 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(KafkaAzureCosmosDBSinkConnectorInfo)} does not support reading '{format}' format.");
+ }
+
+ using JsonDocument document = JsonDocument.ParseValue(ref reader);
+ return DeserializeKafkaAzureCosmosDBSinkConnectorInfo(document.RootElement, options);
+ }
+
+ internal static KafkaAzureCosmosDBSinkConnectorInfo DeserializeKafkaAzureCosmosDBSinkConnectorInfo(JsonElement element, ModelReaderWriterOptions options = null)
+ {
+ options ??= ModelSerializationExtensions.WireOptions;
+
+ if (element.ValueKind == JsonValueKind.Null)
+ {
+ return null;
+ }
+ AuthType? authType = default;
+ DataFormatType? inputFormat = default;
+ DataFormatType? outputFormat = default;
+ string apiKey = default;
+ string apiSecret = default;
+ string serviceAccountId = default;
+ IList topics = default;
+ string topicsDir = default;
+ string flushSize = default;
+ string maxTasks = default;
+ string timeInterval = default;
+ PartnerConnectorType partnerConnectorType = default;
+ IDictionary serializedAdditionalRawData = default;
+ Dictionary rawDataDictionary = new Dictionary();
+ foreach (var property in element.EnumerateObject())
+ {
+ if (property.NameEquals("authType"u8))
+ {
+ if (property.Value.ValueKind == JsonValueKind.Null)
+ {
+ continue;
+ }
+ authType = new AuthType(property.Value.GetString());
+ continue;
+ }
+ if (property.NameEquals("inputFormat"u8))
+ {
+ if (property.Value.ValueKind == JsonValueKind.Null)
+ {
+ continue;
+ }
+ inputFormat = new DataFormatType(property.Value.GetString());
+ continue;
+ }
+ if (property.NameEquals("outputFormat"u8))
+ {
+ if (property.Value.ValueKind == JsonValueKind.Null)
+ {
+ continue;
+ }
+ outputFormat = new DataFormatType(property.Value.GetString());
+ continue;
+ }
+ if (property.NameEquals("apiKey"u8))
+ {
+ apiKey = property.Value.GetString();
+ continue;
+ }
+ if (property.NameEquals("apiSecret"u8))
+ {
+ apiSecret = property.Value.GetString();
+ continue;
+ }
+ if (property.NameEquals("serviceAccountId"u8))
+ {
+ serviceAccountId = property.Value.GetString();
+ continue;
+ }
+ if (property.NameEquals("topics"u8))
+ {
+ if (property.Value.ValueKind == JsonValueKind.Null)
+ {
+ continue;
+ }
+ List array = new List();
+ foreach (var item in property.Value.EnumerateArray())
+ {
+ array.Add(item.GetString());
+ }
+ topics = array;
+ continue;
+ }
+ if (property.NameEquals("topicsDir"u8))
+ {
+ topicsDir = property.Value.GetString();
+ continue;
+ }
+ if (property.NameEquals("flushSize"u8))
+ {
+ flushSize = property.Value.GetString();
+ continue;
+ }
+ if (property.NameEquals("maxTasks"u8))
+ {
+ maxTasks = property.Value.GetString();
+ continue;
+ }
+ if (property.NameEquals("timeInterval"u8))
+ {
+ timeInterval = property.Value.GetString();
+ continue;
+ }
+ if (property.NameEquals("partnerConnectorType"u8))
+ {
+ partnerConnectorType = new PartnerConnectorType(property.Value.GetString());
+ continue;
+ }
+ if (options.Format != "W")
+ {
+ rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText()));
+ }
+ }
+ serializedAdditionalRawData = rawDataDictionary;
+ return new KafkaAzureCosmosDBSinkConnectorInfo(
+ partnerConnectorType,
+ serializedAdditionalRawData,
+ authType,
+ inputFormat,
+ outputFormat,
+ apiKey,
+ apiSecret,
+ serviceAccountId,
+ topics ?? new ChangeTrackingList(),
+ topicsDir,
+ flushSize,
+ maxTasks,
+ timeInterval);
+ }
+
+ 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(KafkaAzureCosmosDBSinkConnectorInfo)} does not support writing '{options.Format}' format.");
+ }
+ }
+
+ KafkaAzureCosmosDBSinkConnectorInfo 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 DeserializeKafkaAzureCosmosDBSinkConnectorInfo(document.RootElement, options);
+ }
+ default:
+ throw new FormatException($"The model {nameof(KafkaAzureCosmosDBSinkConnectorInfo)} does not support reading '{options.Format}' format.");
+ }
+ }
+
+ string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J";
+ }
+}
diff --git a/sdk/confluent/Azure.ResourceManager.Confluent/src/Generated/Models/KafkaAzureCosmosDBSinkConnectorInfo.cs b/sdk/confluent/Azure.ResourceManager.Confluent/src/Generated/Models/KafkaAzureCosmosDBSinkConnectorInfo.cs
new file mode 100644
index 000000000000..a379c9567b64
--- /dev/null
+++ b/sdk/confluent/Azure.ResourceManager.Confluent/src/Generated/Models/KafkaAzureCosmosDBSinkConnectorInfo.cs
@@ -0,0 +1,76 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.Collections.Generic;
+
+namespace Azure.ResourceManager.Confluent.Models
+{
+ /// The partner connector type is KafkaAzureCosmosDBSink.
+ public partial class KafkaAzureCosmosDBSinkConnectorInfo : PartnerInfoBase
+ {
+ /// Initializes a new instance of .
+ public KafkaAzureCosmosDBSinkConnectorInfo()
+ {
+ Topics = new ChangeTrackingList();
+ PartnerConnectorType = PartnerConnectorType.KafkaAzureCosmosDBSink;
+ }
+
+ /// Initializes a new instance of .
+ /// The partner connector type.
+ /// Keeps track of any properties unknown to the library.
+ /// Kafka Auth Type.
+ /// Kafka Input Data Format Type.
+ /// Kafka Output Data Format Type.
+ /// Kafka API Key.
+ /// Kafka API Key Secret.
+ /// Kafka Service Account Id.
+ /// Kafka topics list.
+ /// Kafka topics directory.
+ /// Flush size.
+ /// Maximum Tasks.
+ /// Time Interval.
+ internal KafkaAzureCosmosDBSinkConnectorInfo(PartnerConnectorType partnerConnectorType, IDictionary serializedAdditionalRawData, AuthType? authType, DataFormatType? inputFormat, DataFormatType? outputFormat, string apiKey, string apiSecret, string serviceAccountId, IList topics, string topicsDir, string flushSize, string maxTasks, string timeInterval) : base(partnerConnectorType, serializedAdditionalRawData)
+ {
+ AuthType = authType;
+ InputFormat = inputFormat;
+ OutputFormat = outputFormat;
+ ApiKey = apiKey;
+ ApiSecret = apiSecret;
+ ServiceAccountId = serviceAccountId;
+ Topics = topics;
+ TopicsDir = topicsDir;
+ FlushSize = flushSize;
+ MaxTasks = maxTasks;
+ TimeInterval = timeInterval;
+ PartnerConnectorType = partnerConnectorType;
+ }
+
+ /// Kafka Auth Type.
+ public AuthType? AuthType { get; set; }
+ /// Kafka Input Data Format Type.
+ public DataFormatType? InputFormat { get; set; }
+ /// Kafka Output Data Format Type.
+ public DataFormatType? OutputFormat { get; set; }
+ /// Kafka API Key.
+ public string ApiKey { get; set; }
+ /// Kafka API Key Secret.
+ public string ApiSecret { get; set; }
+ /// Kafka Service Account Id.
+ public string ServiceAccountId { get; set; }
+ /// Kafka topics list.
+ public IList Topics { get; }
+ /// Kafka topics directory.
+ public string TopicsDir { get; set; }
+ /// Flush size.
+ public string FlushSize { get; set; }
+ /// Maximum Tasks.
+ public string MaxTasks { get; set; }
+ /// Time Interval.
+ public string TimeInterval { get; set; }
+ }
+}
diff --git a/sdk/confluent/Azure.ResourceManager.Confluent/src/Generated/Models/KafkaAzureCosmosDBSourceConnectorInfo.Serialization.cs b/sdk/confluent/Azure.ResourceManager.Confluent/src/Generated/Models/KafkaAzureCosmosDBSourceConnectorInfo.Serialization.cs
new file mode 100644
index 000000000000..6768b14948ca
--- /dev/null
+++ b/sdk/confluent/Azure.ResourceManager.Confluent/src/Generated/Models/KafkaAzureCosmosDBSourceConnectorInfo.Serialization.cs
@@ -0,0 +1,232 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.ClientModel.Primitives;
+using System.Collections.Generic;
+using System.Text.Json;
+using Azure.Core;
+
+namespace Azure.ResourceManager.Confluent.Models
+{
+ public partial class KafkaAzureCosmosDBSourceConnectorInfo : 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(KafkaAzureCosmosDBSourceConnectorInfo)} does not support writing '{format}' format.");
+ }
+
+ base.JsonModelWriteCore(writer, options);
+ if (Optional.IsDefined(AuthType))
+ {
+ writer.WritePropertyName("authType"u8);
+ writer.WriteStringValue(AuthType.Value.ToString());
+ }
+ if (Optional.IsDefined(InputFormat))
+ {
+ writer.WritePropertyName("inputFormat"u8);
+ writer.WriteStringValue(InputFormat.Value.ToString());
+ }
+ if (Optional.IsDefined(OutputFormat))
+ {
+ writer.WritePropertyName("outputFormat"u8);
+ writer.WriteStringValue(OutputFormat.Value.ToString());
+ }
+ if (Optional.IsDefined(ApiKey))
+ {
+ writer.WritePropertyName("apiKey"u8);
+ writer.WriteStringValue(ApiKey);
+ }
+ if (Optional.IsDefined(ApiSecret))
+ {
+ writer.WritePropertyName("apiSecret"u8);
+ writer.WriteStringValue(ApiSecret);
+ }
+ if (Optional.IsDefined(ServiceAccountId))
+ {
+ writer.WritePropertyName("serviceAccountId"u8);
+ writer.WriteStringValue(ServiceAccountId);
+ }
+ if (Optional.IsDefined(TopicRegex))
+ {
+ writer.WritePropertyName("topicRegex"u8);
+ writer.WriteStringValue(TopicRegex);
+ }
+ if (Optional.IsDefined(TopicsDir))
+ {
+ writer.WritePropertyName("topicsDir"u8);
+ writer.WriteStringValue(TopicsDir);
+ }
+ if (Optional.IsDefined(MaxTasks))
+ {
+ writer.WritePropertyName("maxTasks"u8);
+ writer.WriteStringValue(MaxTasks);
+ }
+ }
+
+ KafkaAzureCosmosDBSourceConnectorInfo 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(KafkaAzureCosmosDBSourceConnectorInfo)} does not support reading '{format}' format.");
+ }
+
+ using JsonDocument document = JsonDocument.ParseValue(ref reader);
+ return DeserializeKafkaAzureCosmosDBSourceConnectorInfo(document.RootElement, options);
+ }
+
+ internal static KafkaAzureCosmosDBSourceConnectorInfo DeserializeKafkaAzureCosmosDBSourceConnectorInfo(JsonElement element, ModelReaderWriterOptions options = null)
+ {
+ options ??= ModelSerializationExtensions.WireOptions;
+
+ if (element.ValueKind == JsonValueKind.Null)
+ {
+ return null;
+ }
+ AuthType? authType = default;
+ DataFormatType? inputFormat = default;
+ DataFormatType? outputFormat = default;
+ string apiKey = default;
+ string apiSecret = default;
+ string serviceAccountId = default;
+ string topicRegex = default;
+ string topicsDir = default;
+ string maxTasks = default;
+ PartnerConnectorType partnerConnectorType = default;
+ IDictionary serializedAdditionalRawData = default;
+ Dictionary rawDataDictionary = new Dictionary();
+ foreach (var property in element.EnumerateObject())
+ {
+ if (property.NameEquals("authType"u8))
+ {
+ if (property.Value.ValueKind == JsonValueKind.Null)
+ {
+ continue;
+ }
+ authType = new AuthType(property.Value.GetString());
+ continue;
+ }
+ if (property.NameEquals("inputFormat"u8))
+ {
+ if (property.Value.ValueKind == JsonValueKind.Null)
+ {
+ continue;
+ }
+ inputFormat = new DataFormatType(property.Value.GetString());
+ continue;
+ }
+ if (property.NameEquals("outputFormat"u8))
+ {
+ if (property.Value.ValueKind == JsonValueKind.Null)
+ {
+ continue;
+ }
+ outputFormat = new DataFormatType(property.Value.GetString());
+ continue;
+ }
+ if (property.NameEquals("apiKey"u8))
+ {
+ apiKey = property.Value.GetString();
+ continue;
+ }
+ if (property.NameEquals("apiSecret"u8))
+ {
+ apiSecret = property.Value.GetString();
+ continue;
+ }
+ if (property.NameEquals("serviceAccountId"u8))
+ {
+ serviceAccountId = property.Value.GetString();
+ continue;
+ }
+ if (property.NameEquals("topicRegex"u8))
+ {
+ topicRegex = property.Value.GetString();
+ continue;
+ }
+ if (property.NameEquals("topicsDir"u8))
+ {
+ topicsDir = property.Value.GetString();
+ continue;
+ }
+ if (property.NameEquals("maxTasks"u8))
+ {
+ maxTasks = property.Value.GetString();
+ continue;
+ }
+ if (property.NameEquals("partnerConnectorType"u8))
+ {
+ partnerConnectorType = new PartnerConnectorType(property.Value.GetString());
+ continue;
+ }
+ if (options.Format != "W")
+ {
+ rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText()));
+ }
+ }
+ serializedAdditionalRawData = rawDataDictionary;
+ return new KafkaAzureCosmosDBSourceConnectorInfo(
+ partnerConnectorType,
+ serializedAdditionalRawData,
+ authType,
+ inputFormat,
+ outputFormat,
+ apiKey,
+ apiSecret,
+ serviceAccountId,
+ topicRegex,
+ topicsDir,
+ maxTasks);
+ }
+
+ 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(KafkaAzureCosmosDBSourceConnectorInfo)} does not support writing '{options.Format}' format.");
+ }
+ }
+
+ KafkaAzureCosmosDBSourceConnectorInfo 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 DeserializeKafkaAzureCosmosDBSourceConnectorInfo(document.RootElement, options);
+ }
+ default:
+ throw new FormatException($"The model {nameof(KafkaAzureCosmosDBSourceConnectorInfo)} does not support reading '{options.Format}' format.");
+ }
+ }
+
+ string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J";
+ }
+}
diff --git a/sdk/confluent/Azure.ResourceManager.Confluent/src/Generated/Models/KafkaAzureCosmosDBSourceConnectorInfo.cs b/sdk/confluent/Azure.ResourceManager.Confluent/src/Generated/Models/KafkaAzureCosmosDBSourceConnectorInfo.cs
new file mode 100644
index 000000000000..34d9fb5c52cf
--- /dev/null
+++ b/sdk/confluent/Azure.ResourceManager.Confluent/src/Generated/Models/KafkaAzureCosmosDBSourceConnectorInfo.cs
@@ -0,0 +1,67 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//