diff --git a/sdk/advisor/ci.mgmt.yml b/sdk/advisor/ci.mgmt.yml index 6b9f8d6952e6..22df99de35f2 100644 --- a/sdk/advisor/ci.mgmt.yml +++ b/sdk/advisor/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/advisor/ci.mgmt.yml - sdk/advisor/Azure.ResourceManager.Advisor/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/advisor/ci.mgmt.yml + - sdk/advisor/Azure.ResourceManager.Advisor/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/agrifood/ci.mgmt.yml b/sdk/agrifood/ci.mgmt.yml index ee27d71f9495..03a5f6399ccb 100644 --- a/sdk/agrifood/ci.mgmt.yml +++ b/sdk/agrifood/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/agrifood/ci.mgmt.yml - sdk/agrifood/Azure.ResourceManager.AgFoodPlatform/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/agrifood/ci.mgmt.yml + - sdk/agrifood/Azure.ResourceManager.AgFoodPlatform/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/alertsmanagement/ci.mgmt.yml b/sdk/alertsmanagement/ci.mgmt.yml index f33a90fffe5c..ad3a8d3d1efd 100644 --- a/sdk/alertsmanagement/ci.mgmt.yml +++ b/sdk/alertsmanagement/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/alertsmanagement/ci.mgmt.yml - sdk/alertsmanagement/Azure.ResourceManager.AlertsManagement/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/alertsmanagement/ci.mgmt.yml + - sdk/alertsmanagement/Azure.ResourceManager.AlertsManagement/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/analysisservices/ci.mgmt.yml b/sdk/analysisservices/ci.mgmt.yml index 33729b962d88..d3774b358380 100644 --- a/sdk/analysisservices/ci.mgmt.yml +++ b/sdk/analysisservices/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/analysisservices/ci.mgmt.yml - sdk/analysisservices/Azure.ResourceManager.Analysis/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/analysisservices/ci.mgmt.yml + - sdk/analysisservices/Azure.ResourceManager.Analysis/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/apicenter/ci.mgmt.yml b/sdk/apicenter/ci.mgmt.yml index 41c037327e33..4882d4409c0b 100644 --- a/sdk/apicenter/ci.mgmt.yml +++ b/sdk/apicenter/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/apicenter/ci.mgmt.yml - sdk/apicenter/Azure.ResourceManager.ApiCenter/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/apicenter/ci.mgmt.yml + - sdk/apicenter/Azure.ResourceManager.ApiCenter/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/apimanagement/ci.mgmt.yml b/sdk/apimanagement/ci.mgmt.yml index b72c80a2e0e6..2f766edb9528 100644 --- a/sdk/apimanagement/ci.mgmt.yml +++ b/sdk/apimanagement/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/apimanagement/ci.mgmt.yml - sdk/apimanagement/Azure.ResourceManager.ApiManagement/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/apimanagement/ci.mgmt.yml + - sdk/apimanagement/Azure.ResourceManager.ApiManagement/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/appcomplianceautomation/ci.mgmt.yml b/sdk/appcomplianceautomation/ci.mgmt.yml index d8a31e0139a8..7c3b00d97c17 100644 --- a/sdk/appcomplianceautomation/ci.mgmt.yml +++ b/sdk/appcomplianceautomation/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/appcomplianceautomation/ci.mgmt.yml - sdk/appcomplianceautomation/Azure.ResourceManager.AppComplianceAutomation/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/appcomplianceautomation/ci.mgmt.yml + - sdk/appcomplianceautomation/Azure.ResourceManager.AppComplianceAutomation/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/appconfiguration/ci.mgmt.yml b/sdk/appconfiguration/ci.mgmt.yml index a883eaefcd59..e53dd63aca0f 100644 --- a/sdk/appconfiguration/ci.mgmt.yml +++ b/sdk/appconfiguration/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/appconfiguration/ci.mgmt.yml - sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/appconfiguration/ci.mgmt.yml + - sdk/appconfiguration/Azure.ResourceManager.AppConfiguration/ + # These comments should stay. extends: diff --git a/sdk/applicationinsights/ci.mgmt.yml b/sdk/applicationinsights/ci.mgmt.yml index af82b66e6952..361f4019d322 100644 --- a/sdk/applicationinsights/ci.mgmt.yml +++ b/sdk/applicationinsights/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/applicationinsights/ci.mgmt.yml - sdk/applicationinsights/Azure.ResourceManager.ApplicationInsights/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/applicationinsights/ci.mgmt.yml + - sdk/applicationinsights/Azure.ResourceManager.ApplicationInsights/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/appplatform/ci.mgmt.yml b/sdk/appplatform/ci.mgmt.yml index 1d28b9352b6c..023cebeb8d71 100644 --- a/sdk/appplatform/ci.mgmt.yml +++ b/sdk/appplatform/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/appplatform/ci.mgmt.yml - sdk/appplatform/Azure.ResourceManager.AppPlatform/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/appplatform/ci.mgmt.yml + - sdk/appplatform/Azure.ResourceManager.AppPlatform/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/arc-scvmm/ci.mgmt.yml b/sdk/arc-scvmm/ci.mgmt.yml index bbc2db0c9f63..53438df9d332 100644 --- a/sdk/arc-scvmm/ci.mgmt.yml +++ b/sdk/arc-scvmm/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/arc-scvmm/ci.mgmt.yml - sdk/arc-scvmm/Azure.ResourceManager.ScVmm/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/arc-scvmm/ci.mgmt.yml + - sdk/arc-scvmm/Azure.ResourceManager.ScVmm/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/astronomer/ci.mgmt.yml b/sdk/astronomer/ci.mgmt.yml index f6099036651c..d0de6d52b29a 100644 --- a/sdk/astronomer/ci.mgmt.yml +++ b/sdk/astronomer/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/astronomer/ci.mgmt.yml - sdk/astronomer/Azure.ResourceManager.Astro/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/astronomer/ci.mgmt.yml + - sdk/astronomer/Azure.ResourceManager.Astro/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/attestation/ci.mgmt.yml b/sdk/attestation/ci.mgmt.yml index 51d1ac0c8240..595f887b2c35 100644 --- a/sdk/attestation/ci.mgmt.yml +++ b/sdk/attestation/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/attestation/ci.mgmt.yml - sdk/attestation/Azure.ResourceManager.Attestation/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/attestation/ci.mgmt.yml + - sdk/attestation/Azure.ResourceManager.Attestation/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/authorization/ci.mgmt.yml b/sdk/authorization/ci.mgmt.yml index 7ac32fcc5543..9c9d9638348d 100644 --- a/sdk/authorization/ci.mgmt.yml +++ b/sdk/authorization/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/authorization/ci.mgmt.yml - sdk/authorization/Azure.ResourceManager.Authorization/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/authorization/ci.mgmt.yml + - sdk/authorization/Azure.ResourceManager.Authorization/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/automanage/ci.mgmt.yml b/sdk/automanage/ci.mgmt.yml index 5a2467820b85..8e45b6506aa8 100644 --- a/sdk/automanage/ci.mgmt.yml +++ b/sdk/automanage/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/automanage/ci.mgmt.yml - sdk/automanage/Azure.ResourceManager.Automanage/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/automanage/ci.mgmt.yml + - sdk/automanage/Azure.ResourceManager.Automanage/ + extends: template: ../../eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/automation/ci.mgmt.yml b/sdk/automation/ci.mgmt.yml index 45bec5d1c196..b2cb0f44bf22 100644 --- a/sdk/automation/ci.mgmt.yml +++ b/sdk/automation/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/automation/ci.mgmt.yml - sdk/automation/Azure.ResourceManager.Automation/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/automation/ci.mgmt.yml + - sdk/automation/Azure.ResourceManager.Automation/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/avs/ci.mgmt.yml b/sdk/avs/ci.mgmt.yml index 6404a2ba34ce..7030303dc9f4 100644 --- a/sdk/avs/ci.mgmt.yml +++ b/sdk/avs/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/avs/ci.mgmt.yml - sdk/avs/Azure.ResourceManager.Avs/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/avs/ci.mgmt.yml + - sdk/avs/Azure.ResourceManager.Avs/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/azurelargeinstance/ci.mgmt.yml b/sdk/azurelargeinstance/ci.mgmt.yml index fbe98927ef15..d9425419d2c3 100644 --- a/sdk/azurelargeinstance/ci.mgmt.yml +++ b/sdk/azurelargeinstance/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/azurelargeinstance/ci.mgmt.yml - sdk/azurelargeinstance/Azure.ResourceManager.LargeInstance/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/azurelargeinstance/ci.mgmt.yml + - sdk/azurelargeinstance/Azure.ResourceManager.LargeInstance/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/azurestackhci/ci.mgmt.yml b/sdk/azurestackhci/ci.mgmt.yml index 89c22080e00c..167241c22e36 100644 --- a/sdk/azurestackhci/ci.mgmt.yml +++ b/sdk/azurestackhci/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/azurestackhci/ci.mgmt.yml - sdk/azurestackhci/Azure.ResourceManager.Hci/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/azurestackhci/ci.mgmt.yml + - sdk/azurestackhci/Azure.ResourceManager.Hci/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/batch/ci.mgmt.yml b/sdk/batch/ci.mgmt.yml index fdb37873525c..57a9135b3c71 100644 --- a/sdk/batch/ci.mgmt.yml +++ b/sdk/batch/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/batch/ci.mgmt.yml - sdk/batch/Azure.ResourceManager.Batch/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/batch/ci.mgmt.yml + - sdk/batch/Azure.ResourceManager.Batch/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/billing/ci.mgmt.yml b/sdk/billing/ci.mgmt.yml index 67cf904850c6..0efcab4a9c90 100644 --- a/sdk/billing/ci.mgmt.yml +++ b/sdk/billing/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/billing/ci.mgmt.yml - sdk/billing/Azure.ResourceManager.Billing/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/billing/ci.mgmt.yml + - sdk/billing/Azure.ResourceManager.Billing/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/billingbenefits/ci.mgmt.yml b/sdk/billingbenefits/ci.mgmt.yml index 9900a842be4f..d2d1e939d8cd 100644 --- a/sdk/billingbenefits/ci.mgmt.yml +++ b/sdk/billingbenefits/ci.mgmt.yml @@ -2,6 +2,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -14,6 +15,18 @@ pr: - sdk/billingbenefits/ci.mgmt.yml - sdk/billingbenefits/Azure.ResourceManager.BillingBenefits/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/billingbenefits/ci.mgmt.yml + - sdk/billingbenefits/Azure.ResourceManager.BillingBenefits/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/blueprint/ci.mgmt.yml b/sdk/blueprint/ci.mgmt.yml index 65bd23b77f51..6524937da4ee 100644 --- a/sdk/blueprint/ci.mgmt.yml +++ b/sdk/blueprint/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/blueprint/ci.mgmt.yml - sdk/blueprint/Azure.ResourceManager.Blueprint/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/blueprint/ci.mgmt.yml + - sdk/blueprint/Azure.ResourceManager.Blueprint/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/botservice/ci.mgmt.yml b/sdk/botservice/ci.mgmt.yml index 8e5444ff3f9a..3e991a6ebab1 100644 --- a/sdk/botservice/ci.mgmt.yml +++ b/sdk/botservice/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/botservice/ci.mgmt.yml - sdk/botservice/Azure.ResourceManager.BotService/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/botservice/ci.mgmt.yml + - sdk/botservice/Azure.ResourceManager.BotService/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/cdn/ci.mgmt.yml b/sdk/cdn/ci.mgmt.yml index ac2ea82249d1..f1932c6d31b9 100644 --- a/sdk/cdn/ci.mgmt.yml +++ b/sdk/cdn/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/cdn/ci.mgmt.yml - sdk/cdn/Azure.ResourceManager.Cdn/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/cdn/ci.mgmt.yml + - sdk/cdn/Azure.ResourceManager.Cdn/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/changeanalysis/ci.mgmt.yml b/sdk/changeanalysis/ci.mgmt.yml index 65c6e90d195a..aee7612c339f 100644 --- a/sdk/changeanalysis/ci.mgmt.yml +++ b/sdk/changeanalysis/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/changeanalysis/ci.mgmt.yml - sdk/changeanalysis/Azure.ResourceManager.ChangeAnalysis/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/changeanalysis/ci.mgmt.yml + - sdk/changeanalysis/Azure.ResourceManager.ChangeAnalysis/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/chaos/ci.mgmt.yml b/sdk/chaos/ci.mgmt.yml index 585591bcb6bd..a74922d27932 100644 --- a/sdk/chaos/ci.mgmt.yml +++ b/sdk/chaos/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/chaos/ci.mgmt.yml - sdk/chaos/Azure.ResourceManager.Chaos/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/chaos/ci.mgmt.yml + - sdk/chaos/Azure.ResourceManager.Chaos/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/cognitiveservices/ci.mgmt.yml b/sdk/cognitiveservices/ci.mgmt.yml index ddeb32b868ce..79dda70912e2 100644 --- a/sdk/cognitiveservices/ci.mgmt.yml +++ b/sdk/cognitiveservices/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/cognitiveservices/ci.mgmt.yml - sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/cognitiveservices/ci.mgmt.yml + - sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/communication/ci.mgmt.yml b/sdk/communication/ci.mgmt.yml index 8fc73e107745..be0c8b4b5903 100644 --- a/sdk/communication/ci.mgmt.yml +++ b/sdk/communication/ci.mgmt.yml @@ -1,5 +1,6 @@ trigger: none + pr: branches: include: @@ -12,6 +13,18 @@ pr: - sdk/communication/ci.mgmt.yml - sdk/communication/Azure.ResourceManager.Communication/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/communication/ci.mgmt.yml + - sdk/communication/Azure.ResourceManager.Communication/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/compute/ci.mgmt.yml b/sdk/compute/ci.mgmt.yml index d9520f58d12c..9736fea82d63 100644 --- a/sdk/compute/ci.mgmt.yml +++ b/sdk/compute/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/compute/ci.mgmt.yml - sdk/compute/Azure.ResourceManager.Compute/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/compute/ci.mgmt.yml + - sdk/compute/Azure.ResourceManager.Compute/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/computefleet/ci.mgmt.yml b/sdk/computefleet/ci.mgmt.yml index de169e18c599..58fc15347c98 100644 --- a/sdk/computefleet/ci.mgmt.yml +++ b/sdk/computefleet/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/computefleet/ci.mgmt.yml - sdk/computefleet/Azure.ResourceManager.ComputeFleet/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/computefleet/ci.mgmt.yml + - sdk/computefleet/Azure.ResourceManager.ComputeFleet/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/computeschedule/ci.mgmt.yml b/sdk/computeschedule/ci.mgmt.yml index d3a367f82551..01d026ef37ea 100644 --- a/sdk/computeschedule/ci.mgmt.yml +++ b/sdk/computeschedule/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/computeschedule/ci.mgmt.yml - sdk/computeschedule/Azure.ResourceManager.ComputeSchedule/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/computeschedule/ci.mgmt.yml + - sdk/computeschedule/Azure.ResourceManager.ComputeSchedule/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/confidentialledger/ci.mgmt.yml b/sdk/confidentialledger/ci.mgmt.yml index 7343d843f2ee..b61c498ed14a 100644 --- a/sdk/confidentialledger/ci.mgmt.yml +++ b/sdk/confidentialledger/ci.mgmt.yml @@ -1,5 +1,6 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -12,6 +13,18 @@ pr: - sdk/confidentialledger/ci.mgmt.yml - sdk/confidentialledger/Azure.ResourceManager.ConfidentialLedger/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/confidentialledger/ci.mgmt.yml + - sdk/confidentialledger/Azure.ResourceManager.ConfidentialLedger/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/confluent/ci.mgmt.yml b/sdk/confluent/ci.mgmt.yml index 12d37aa41bd2..757508d306f9 100644 --- a/sdk/confluent/ci.mgmt.yml +++ b/sdk/confluent/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/confluent/ci.mgmt.yml - sdk/confluent/Azure.ResourceManager.Confluent/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/confluent/ci.mgmt.yml + - sdk/confluent/Azure.ResourceManager.Confluent/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/connectedvmwarevsphere/ci.mgmt.yml b/sdk/connectedvmwarevsphere/ci.mgmt.yml index a9d0db85cf82..f8990a206c45 100644 --- a/sdk/connectedvmwarevsphere/ci.mgmt.yml +++ b/sdk/connectedvmwarevsphere/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/connectedvmwarevsphere/ci.mgmt.yml - sdk/connectedvmwarevsphere/Azure.ResourceManager.ConnectedVMwarevSphere/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/connectedvmwarevsphere/ci.mgmt.yml + - sdk/connectedvmwarevsphere/Azure.ResourceManager.ConnectedVMwarevSphere/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/consumption/ci.mgmt.yml b/sdk/consumption/ci.mgmt.yml index 6b0ebe2b2fa7..ccda85ce5789 100644 --- a/sdk/consumption/ci.mgmt.yml +++ b/sdk/consumption/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/consumption/ci.mgmt.yml - sdk/consumption/Azure.ResourceManager.Consumption/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/consumption/ci.mgmt.yml + - sdk/consumption/Azure.ResourceManager.Consumption/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/containerapps/ci.mgmt.yml b/sdk/containerapps/ci.mgmt.yml index 7715d499fa59..69564e2f1920 100644 --- a/sdk/containerapps/ci.mgmt.yml +++ b/sdk/containerapps/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/containerapps/ci.mgmt.yml - sdk/containerapps/Azure.ResourceManager.AppContainers/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/containerapps/ci.mgmt.yml + - sdk/containerapps/Azure.ResourceManager.AppContainers/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/containerinstance/ci.mgmt.yml b/sdk/containerinstance/ci.mgmt.yml index 0b4d90bf6d1c..865705313c2c 100644 --- a/sdk/containerinstance/ci.mgmt.yml +++ b/sdk/containerinstance/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/containerinstance/ci.mgmt.yml - sdk/containerinstance/Azure.ResourceManager.ContainerInstance/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/containerinstance/ci.mgmt.yml + - sdk/containerinstance/Azure.ResourceManager.ContainerInstance/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/containerorchestratorruntime/ci.mgmt.yml b/sdk/containerorchestratorruntime/ci.mgmt.yml index 0a036386143b..98ade1bcf8c6 100644 --- a/sdk/containerorchestratorruntime/ci.mgmt.yml +++ b/sdk/containerorchestratorruntime/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/containerorchestratorruntime/ci.mgmt.yml - sdk/containerorchestratorruntime/Azure.ResourceManager.ContainerOrchestratorRuntime/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/containerorchestratorruntime/ci.mgmt.yml + - sdk/containerorchestratorruntime/Azure.ResourceManager.ContainerOrchestratorRuntime/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/containerregistry/ci.mgmt.yml b/sdk/containerregistry/ci.mgmt.yml index e3f0cfb5bfa5..5fa9fce02790 100644 --- a/sdk/containerregistry/ci.mgmt.yml +++ b/sdk/containerregistry/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/containerregistry/ci.mgmt.yml - sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/containerregistry/ci.mgmt.yml + - sdk/containerregistry/Azure.ResourceManager.ContainerRegistry/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/containerservice/ci.mgmt.yml b/sdk/containerservice/ci.mgmt.yml index 9eb58047b02e..8eb615e701f7 100644 --- a/sdk/containerservice/ci.mgmt.yml +++ b/sdk/containerservice/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/containerservice/ci.mgmt.yml - sdk/containerservice/Azure.ResourceManager.ContainerService/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/containerservice/ci.mgmt.yml + - sdk/containerservice/Azure.ResourceManager.ContainerService/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/cosmosdb/ci.mgmt.yml b/sdk/cosmosdb/ci.mgmt.yml index 1eab24b3bbf9..ac1fce954c2a 100644 --- a/sdk/cosmosdb/ci.mgmt.yml +++ b/sdk/cosmosdb/ci.mgmt.yml @@ -2,6 +2,7 @@ # This file is generated automatically and any changes will be lost. trigger: none + pr: branches: include: @@ -14,6 +15,18 @@ pr: - sdk/cosmosdb/ci.mgmt.yml - sdk/cosmosdb/Azure.ResourceManager.CosmosDB/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/cosmosdb/ci.mgmt.yml + - sdk/cosmosdb/Azure.ResourceManager.CosmosDB/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/cosmosdbforpostgresql/ci.mgmt.yml b/sdk/cosmosdbforpostgresql/ci.mgmt.yml index ef6098c3999f..bfe2761181a8 100644 --- a/sdk/cosmosdbforpostgresql/ci.mgmt.yml +++ b/sdk/cosmosdbforpostgresql/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/cosmosdbforpostgresql/ci.mgmt.yml - sdk/cosmosdbforpostgresql/Azure.ResourceManager.CosmosDBForPostgreSql/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/cosmosdbforpostgresql/ci.mgmt.yml + - sdk/cosmosdbforpostgresql/Azure.ResourceManager.CosmosDBForPostgreSql/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/costmanagement/ci.mgmt.yml b/sdk/costmanagement/ci.mgmt.yml index e59280ba6be2..cee9459831fb 100644 --- a/sdk/costmanagement/ci.mgmt.yml +++ b/sdk/costmanagement/ci.mgmt.yml @@ -2,6 +2,7 @@ # This file is generated automatically and any changes will be lost. trigger: none + pr: branches: include: @@ -14,6 +15,18 @@ pr: - sdk/costmanagement/ci.mgmt.yml - sdk/costmanagement/Azure.ResourceManager.CostManagement/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/costmanagement/ci.mgmt.yml + - sdk/costmanagement/Azure.ResourceManager.CostManagement/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/customer-insights/ci.mgmt.yml b/sdk/customer-insights/ci.mgmt.yml index 124af418dcfa..a5d4f1a60cb5 100644 --- a/sdk/customer-insights/ci.mgmt.yml +++ b/sdk/customer-insights/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/customer-insights/ci.mgmt.yml - sdk/customer-insights/Azure.ResourceManager.CustomerInsights/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/customer-insights/ci.mgmt.yml + - sdk/customer-insights/Azure.ResourceManager.CustomerInsights/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/databox/ci.mgmt.yml b/sdk/databox/ci.mgmt.yml index edd63a701700..6525b0b436cc 100644 --- a/sdk/databox/ci.mgmt.yml +++ b/sdk/databox/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/databox/ci.mgmt.yml - sdk/databox/Azure.ResourceManager.DataBox/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/databox/ci.mgmt.yml + - sdk/databox/Azure.ResourceManager.DataBox/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/databoxedge/ci.mgmt.yml b/sdk/databoxedge/ci.mgmt.yml index 29e3b1537c78..3cf952bd82f3 100644 --- a/sdk/databoxedge/ci.mgmt.yml +++ b/sdk/databoxedge/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/databoxedge/ci.mgmt.yml - sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/databoxedge/ci.mgmt.yml + - sdk/databoxedge/Azure.ResourceManager.DataBoxEdge/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/datadog/ci.mgmt.yml b/sdk/datadog/ci.mgmt.yml index 9e9d6825d8b0..c1b66f6edb09 100644 --- a/sdk/datadog/ci.mgmt.yml +++ b/sdk/datadog/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/datadog/ci.mgmt.yml - sdk/datadog/Azure.ResourceManager.Datadog/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/datadog/ci.mgmt.yml + - sdk/datadog/Azure.ResourceManager.Datadog/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/datafactory/ci.mgmt.yml b/sdk/datafactory/ci.mgmt.yml index 85d246a5d4e7..1f1a4ba295cd 100644 --- a/sdk/datafactory/ci.mgmt.yml +++ b/sdk/datafactory/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/datafactory/ci.mgmt.yml - sdk/datafactory/Azure.ResourceManager.DataFactory/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/datafactory/ci.mgmt.yml + - sdk/datafactory/Azure.ResourceManager.DataFactory/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/datalake-analytics/ci.mgmt.yml b/sdk/datalake-analytics/ci.mgmt.yml index b8794cd18f9e..44823b2f9444 100644 --- a/sdk/datalake-analytics/ci.mgmt.yml +++ b/sdk/datalake-analytics/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/datalake-analytics/ci.mgmt.yml - sdk/datalake-analytics/Azure.ResourceManager.DataLakeAnalytics/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/datalake-analytics/ci.mgmt.yml + - sdk/datalake-analytics/Azure.ResourceManager.DataLakeAnalytics/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/datalake-store/ci.mgmt.yml b/sdk/datalake-store/ci.mgmt.yml index 469839fd3024..27295ad1c28c 100644 --- a/sdk/datalake-store/ci.mgmt.yml +++ b/sdk/datalake-store/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/datalake-store/ci.mgmt.yml - sdk/datalake-store/Azure.ResourceManager.DataLakeStore/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/datalake-store/ci.mgmt.yml + - sdk/datalake-store/Azure.ResourceManager.DataLakeStore/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/datamigration/ci.mgmt.yml b/sdk/datamigration/ci.mgmt.yml index 1e64024fed17..f26452e1de48 100644 --- a/sdk/datamigration/ci.mgmt.yml +++ b/sdk/datamigration/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/datamigration/ci.mgmt.yml - sdk/datamigration/Azure.ResourceManager.DataMigration/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/datamigration/ci.mgmt.yml + - sdk/datamigration/Azure.ResourceManager.DataMigration/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/dataprotection/ci.mgmt.yml b/sdk/dataprotection/ci.mgmt.yml index 25637090aedb..0b74e9436cc7 100644 --- a/sdk/dataprotection/ci.mgmt.yml +++ b/sdk/dataprotection/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/dataprotection/ci.mgmt.yml - sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/dataprotection/ci.mgmt.yml + - sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/datashare/ci.mgmt.yml b/sdk/datashare/ci.mgmt.yml index f6dd41e0f37f..dcb3801e3f58 100644 --- a/sdk/datashare/ci.mgmt.yml +++ b/sdk/datashare/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/datashare/ci.mgmt.yml - sdk/datashare/Azure.ResourceManager.DataShare/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/datashare/ci.mgmt.yml + - sdk/datashare/Azure.ResourceManager.DataShare/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/defendereasm/ci.mgmt.yml b/sdk/defendereasm/ci.mgmt.yml index dd90e5a46690..2dc5c04ec007 100644 --- a/sdk/defendereasm/ci.mgmt.yml +++ b/sdk/defendereasm/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/defendereasm/ci.mgmt.yml - sdk/defendereasm/Azure.ResourceManager.DefenderEasm/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/defendereasm/ci.mgmt.yml + - sdk/defendereasm/Azure.ResourceManager.DefenderEasm/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/desktopvirtualization/ci.mgmt.yml b/sdk/desktopvirtualization/ci.mgmt.yml index 3d6f40025c77..b6af32cc15c3 100644 --- a/sdk/desktopvirtualization/ci.mgmt.yml +++ b/sdk/desktopvirtualization/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/desktopvirtualization/ci.mgmt.yml - sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/desktopvirtualization/ci.mgmt.yml + - sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/devcenter/ci.mgmt.yml b/sdk/devcenter/ci.mgmt.yml index 136d77bbba6d..cfa8320239dd 100644 --- a/sdk/devcenter/ci.mgmt.yml +++ b/sdk/devcenter/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/devcenter/ci.mgmt.yml - sdk/devcenter/Azure.ResourceManager.DevCenter/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/devcenter/ci.mgmt.yml + - sdk/devcenter/Azure.ResourceManager.DevCenter/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/deviceprovisioningservices/ci.mgmt.yml b/sdk/deviceprovisioningservices/ci.mgmt.yml index f9c94973a324..733989d927dc 100644 --- a/sdk/deviceprovisioningservices/ci.mgmt.yml +++ b/sdk/deviceprovisioningservices/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/deviceprovisioningservices/ci.mgmt.yml - sdk/deviceprovisioningservices/Azure.ResourceManager.DeviceProvisioningServices/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/deviceprovisioningservices/ci.mgmt.yml + - sdk/deviceprovisioningservices/Azure.ResourceManager.DeviceProvisioningServices/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/deviceregistry/ci.mgmt.yml b/sdk/deviceregistry/ci.mgmt.yml index 05fffe301114..271e718d8676 100644 --- a/sdk/deviceregistry/ci.mgmt.yml +++ b/sdk/deviceregistry/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/deviceregistry/ci.mgmt.yml - sdk/deviceregistry/Azure.ResourceManager.DeviceRegistry/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/deviceregistry/ci.mgmt.yml + - sdk/deviceregistry/Azure.ResourceManager.DeviceRegistry/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/deviceupdate/ci.mgmt.yml b/sdk/deviceupdate/ci.mgmt.yml index c1315e462bb9..d8abd00a2256 100644 --- a/sdk/deviceupdate/ci.mgmt.yml +++ b/sdk/deviceupdate/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/deviceupdate/ci.mgmt.yml - sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/deviceupdate/ci.mgmt.yml + - sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/devopsinfrastructure/ci.mgmt.yml b/sdk/devopsinfrastructure/ci.mgmt.yml index 0f2db1225cf0..8e463b9f3794 100644 --- a/sdk/devopsinfrastructure/ci.mgmt.yml +++ b/sdk/devopsinfrastructure/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/devopsinfrastructure/ci.mgmt.yml - sdk/devopsinfrastructure/Azure.ResourceManager.DevOpsInfrastructure/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/devopsinfrastructure/ci.mgmt.yml + - sdk/devopsinfrastructure/Azure.ResourceManager.DevOpsInfrastructure/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/devspaces/ci.mgmt.yml b/sdk/devspaces/ci.mgmt.yml index b63234a64555..248d3c3143f0 100644 --- a/sdk/devspaces/ci.mgmt.yml +++ b/sdk/devspaces/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/devspaces/ci.mgmt.yml - sdk/devspaces/Azure.ResourceManager.DevSpaces/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/devspaces/ci.mgmt.yml + - sdk/devspaces/Azure.ResourceManager.DevSpaces/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/devtestlabs/ci.mgmt.yml b/sdk/devtestlabs/ci.mgmt.yml index 1946409a6b75..7ee994de378b 100644 --- a/sdk/devtestlabs/ci.mgmt.yml +++ b/sdk/devtestlabs/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/devtestlabs/ci.mgmt.yml - sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/devtestlabs/ci.mgmt.yml + - sdk/devtestlabs/Azure.ResourceManager.DevTestLabs/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/digitaltwins/ci.mgmt.yml b/sdk/digitaltwins/ci.mgmt.yml index a0e8233a36cf..a8766e215b7c 100644 --- a/sdk/digitaltwins/ci.mgmt.yml +++ b/sdk/digitaltwins/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/digitaltwins/ci.mgmt.yml - sdk/digitaltwins/Azure.ResourceManager.DigitalTwins/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/digitaltwins/ci.mgmt.yml + - sdk/digitaltwins/Azure.ResourceManager.DigitalTwins/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/dns/ci.mgmt.yml b/sdk/dns/ci.mgmt.yml index 8357809b4e6f..ec6edfb21775 100644 --- a/sdk/dns/ci.mgmt.yml +++ b/sdk/dns/ci.mgmt.yml @@ -2,6 +2,7 @@ # This file is generated automatically and any changes will be lost. trigger: none + pr: branches: include: @@ -14,6 +15,18 @@ pr: - sdk/dns/ci.mgmt.yml - sdk/dns/Azure.ResourceManager.Dns/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/dns/ci.mgmt.yml + - sdk/dns/Azure.ResourceManager.Dns/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/dnsresolver/ci.mgmt.yml b/sdk/dnsresolver/ci.mgmt.yml index afa270cdc600..6b2569c11c49 100644 --- a/sdk/dnsresolver/ci.mgmt.yml +++ b/sdk/dnsresolver/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/dnsresolver/ci.mgmt.yml - sdk/dnsresolver/Azure.ResourceManager.DnsResolver/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/dnsresolver/ci.mgmt.yml + - sdk/dnsresolver/Azure.ResourceManager.DnsResolver/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/dynatrace/ci.mgmt.yml b/sdk/dynatrace/ci.mgmt.yml index f76bf3a316af..fe97a3c1f612 100644 --- a/sdk/dynatrace/ci.mgmt.yml +++ b/sdk/dynatrace/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/dynatrace/ci.mgmt.yml - sdk/dynatrace/Azure.ResourceManager.Dynatrace/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/dynatrace/ci.mgmt.yml + - sdk/dynatrace/Azure.ResourceManager.Dynatrace/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/edgeorder/ci.mgmt.yml b/sdk/edgeorder/ci.mgmt.yml index 4d1fbaa121f9..cb4d87c29a1b 100644 --- a/sdk/edgeorder/ci.mgmt.yml +++ b/sdk/edgeorder/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/edgeorder/ci.mgmt.yml - sdk/edgeorder/Azure.ResourceManager.EdgeOrder/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/edgeorder/ci.mgmt.yml + - sdk/edgeorder/Azure.ResourceManager.EdgeOrder/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/edgezones/ci.mgmt.yml b/sdk/edgezones/ci.mgmt.yml index 9dc8d79aab30..ebed00842581 100644 --- a/sdk/edgezones/ci.mgmt.yml +++ b/sdk/edgezones/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/edgezones/ci.mgmt.yml - sdk/edgezones/Azure.ResourceManager.EdgeZones/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/edgezones/ci.mgmt.yml + - sdk/edgezones/Azure.ResourceManager.EdgeZones/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/elastic/ci.mgmt.yml b/sdk/elastic/ci.mgmt.yml index 76ecd8b3923d..2e29070fce4a 100644 --- a/sdk/elastic/ci.mgmt.yml +++ b/sdk/elastic/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/elastic/ci.mgmt.yml - sdk/elastic/Azure.ResourceManager.Elastic/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/elastic/ci.mgmt.yml + - sdk/elastic/Azure.ResourceManager.Elastic/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/elasticsan/ci.mgmt.yml b/sdk/elasticsan/ci.mgmt.yml index 7e2bb35dde21..dba4416415e9 100644 --- a/sdk/elasticsan/ci.mgmt.yml +++ b/sdk/elasticsan/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/elasticsan/ci.mgmt.yml - sdk/elasticsan/Azure.ResourceManager.ElasticSan/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/elasticsan/ci.mgmt.yml + - sdk/elasticsan/Azure.ResourceManager.ElasticSan/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/eventgrid/ci.mgmt.yml b/sdk/eventgrid/ci.mgmt.yml index cb02a1b84e8b..1b2eaffc0fdd 100644 --- a/sdk/eventgrid/ci.mgmt.yml +++ b/sdk/eventgrid/ci.mgmt.yml @@ -2,6 +2,7 @@ # This is for Track 2 managment plane SDK trigger: none + pr: branches: include: @@ -14,6 +15,18 @@ pr: - sdk/eventgrid/ci.mgmt.yml - sdk/eventgrid/Azure.ResourceManager.EventGrid/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/eventgrid/ci.mgmt.yml + - sdk/eventgrid/Azure.ResourceManager.EventGrid/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/eventhub/ci.mgmt.yml b/sdk/eventhub/ci.mgmt.yml index b7c0045fffb3..dadda2db6dc5 100644 --- a/sdk/eventhub/ci.mgmt.yml +++ b/sdk/eventhub/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/eventhub/ci.mgmt.yml - sdk/eventhub/Azure.ResourceManager.EventHubs/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/eventhub/ci.mgmt.yml + - sdk/eventhub/Azure.ResourceManager.EventHubs/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/extendedlocation/ci.mgmt.yml b/sdk/extendedlocation/ci.mgmt.yml index 4fb53374be74..e9c6939e2b1d 100644 --- a/sdk/extendedlocation/ci.mgmt.yml +++ b/sdk/extendedlocation/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/extendedlocation/ci.mgmt.yml - sdk/extendedlocation/Azure.ResourceManager.ExtendedLocations/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/extendedlocation/ci.mgmt.yml + - sdk/extendedlocation/Azure.ResourceManager.ExtendedLocations/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/fabric/ci.mgmt.yml b/sdk/fabric/ci.mgmt.yml index d0bc6cea6eb9..5cc91d0c8722 100644 --- a/sdk/fabric/ci.mgmt.yml +++ b/sdk/fabric/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/fabric/ci.mgmt.yml - sdk/fabric/Azure.ResourceManager.Fabric/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/fabric/ci.mgmt.yml + - sdk/fabric/Azure.ResourceManager.Fabric/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/fleet/ci.mgmt.yml b/sdk/fleet/ci.mgmt.yml index 09a225882401..469d40cad619 100644 --- a/sdk/fleet/ci.mgmt.yml +++ b/sdk/fleet/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/fleet/ci.mgmt.yml - sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/fleet/ci.mgmt.yml + - sdk/fleet/Azure.ResourceManager.ContainerServiceFleet/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/fluidrelay/ci.mgmt.yml b/sdk/fluidrelay/ci.mgmt.yml index d43dfe94d729..1673db3a9f26 100644 --- a/sdk/fluidrelay/ci.mgmt.yml +++ b/sdk/fluidrelay/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/fluidrelay/ci.mgmt.yml - sdk/fluidrelay/Azure.ResourceManager.FluidRelay/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/fluidrelay/ci.mgmt.yml + - sdk/fluidrelay/Azure.ResourceManager.FluidRelay/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/frontdoor/ci.mgmt.yml b/sdk/frontdoor/ci.mgmt.yml index bff9dbcae78c..f19923a1b43d 100644 --- a/sdk/frontdoor/ci.mgmt.yml +++ b/sdk/frontdoor/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/frontdoor/ci.mgmt.yml - sdk/frontdoor/Azure.ResourceManager.FrontDoor/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/frontdoor/ci.mgmt.yml + - sdk/frontdoor/Azure.ResourceManager.FrontDoor/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/grafana/ci.mgmt.yml b/sdk/grafana/ci.mgmt.yml index a2f22e6ee33b..848173351b4d 100644 --- a/sdk/grafana/ci.mgmt.yml +++ b/sdk/grafana/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/grafana/ci.mgmt.yml - sdk/grafana/Azure.ResourceManager.Grafana/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/grafana/ci.mgmt.yml + - sdk/grafana/Azure.ResourceManager.Grafana/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/graphservices/ci.mgmt.yml b/sdk/graphservices/ci.mgmt.yml index 717a9a4a1963..ccd14b614b43 100644 --- a/sdk/graphservices/ci.mgmt.yml +++ b/sdk/graphservices/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/graphservices/ci.mgmt.yml - sdk/graphservices/Azure.ResourceManager.GraphServices/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/graphservices/ci.mgmt.yml + - sdk/graphservices/Azure.ResourceManager.GraphServices/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/guestconfiguration/ci.mgmt.yml b/sdk/guestconfiguration/ci.mgmt.yml index 5ebc59550f58..c2d2526d488b 100644 --- a/sdk/guestconfiguration/ci.mgmt.yml +++ b/sdk/guestconfiguration/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/guestconfiguration/ci.mgmt.yml - sdk/guestconfiguration/Azure.ResourceManager.GuestConfiguration/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/guestconfiguration/ci.mgmt.yml + - sdk/guestconfiguration/Azure.ResourceManager.GuestConfiguration/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/hardwaresecuritymodules/ci.mgmt.yml b/sdk/hardwaresecuritymodules/ci.mgmt.yml index 21778711f99e..d94eea966253 100644 --- a/sdk/hardwaresecuritymodules/ci.mgmt.yml +++ b/sdk/hardwaresecuritymodules/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/hardwaresecuritymodules/ci.mgmt.yml - sdk/hardwaresecuritymodules/Azure.ResourceManager.HardwareSecurityModules/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/hardwaresecuritymodules/ci.mgmt.yml + - sdk/hardwaresecuritymodules/Azure.ResourceManager.HardwareSecurityModules/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/hdinsight/ci.mgmt.yml b/sdk/hdinsight/ci.mgmt.yml index 4df0a02f5c80..29d3b404c76a 100644 --- a/sdk/hdinsight/ci.mgmt.yml +++ b/sdk/hdinsight/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/hdinsight/ci.mgmt.yml - sdk/hdinsight/Azure.ResourceManager.HDInsight/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/hdinsight/ci.mgmt.yml + - sdk/hdinsight/Azure.ResourceManager.HDInsight/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/hdinsightcontainers/ci.mgmt.yml b/sdk/hdinsightcontainers/ci.mgmt.yml index 69a7566e0caa..66a879d8fbcd 100644 --- a/sdk/hdinsightcontainers/ci.mgmt.yml +++ b/sdk/hdinsightcontainers/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/hdinsightcontainers/ci.mgmt.yml - sdk/hdinsightcontainers/Azure.ResourceManager.HDInsight.Containers/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/hdinsightcontainers/ci.mgmt.yml + - sdk/hdinsightcontainers/Azure.ResourceManager.HDInsight.Containers/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/healthbot/ci.mgmt.yml b/sdk/healthbot/ci.mgmt.yml index 14bfc7f855e6..4c2698659502 100644 --- a/sdk/healthbot/ci.mgmt.yml +++ b/sdk/healthbot/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/healthbot/ci.mgmt.yml - sdk/healthbot/Azure.ResourceManager.HealthBot/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/healthbot/ci.mgmt.yml + - sdk/healthbot/Azure.ResourceManager.HealthBot/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/healthcareapis/ci.mgmt.yml b/sdk/healthcareapis/ci.mgmt.yml index 57030df35e56..6f02ac8fd023 100644 --- a/sdk/healthcareapis/ci.mgmt.yml +++ b/sdk/healthcareapis/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/healthcareapis/ci.mgmt.yml - sdk/healthcareapis/Azure.ResourceManager.HealthcareApis/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/healthcareapis/ci.mgmt.yml + - sdk/healthcareapis/Azure.ResourceManager.HealthcareApis/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/healthdataaiservices/ci.mgmt.yml b/sdk/healthdataaiservices/ci.mgmt.yml index 016a917c1e19..45857afa5722 100644 --- a/sdk/healthdataaiservices/ci.mgmt.yml +++ b/sdk/healthdataaiservices/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/healthdataaiservices/ci.mgmt.yml - sdk/healthdataaiservices/Azure.ResourceManager.HealthDataAIServices/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/healthdataaiservices/ci.mgmt.yml + - sdk/healthdataaiservices/Azure.ResourceManager.HealthDataAIServices/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/hybridaks/ci.mgmt.yml b/sdk/hybridaks/ci.mgmt.yml index 552eb3298d3a..af3d82703d11 100644 --- a/sdk/hybridaks/ci.mgmt.yml +++ b/sdk/hybridaks/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/hybridaks/ci.mgmt.yml - sdk/hybridaks/Azure.ResourceManager.HybridContainerService/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/hybridaks/ci.mgmt.yml + - sdk/hybridaks/Azure.ResourceManager.HybridContainerService/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/hybridcompute/ci.mgmt.yml b/sdk/hybridcompute/ci.mgmt.yml index d163a966512d..15f8656c399e 100644 --- a/sdk/hybridcompute/ci.mgmt.yml +++ b/sdk/hybridcompute/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/hybridcompute/ci.mgmt.yml - sdk/hybridcompute/Azure.ResourceManager.HybridCompute/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/hybridcompute/ci.mgmt.yml + - sdk/hybridcompute/Azure.ResourceManager.HybridCompute/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/hybridconnectivity/ci.mgmt.yml b/sdk/hybridconnectivity/ci.mgmt.yml index 9ccca42ef557..8d809d4d9633 100644 --- a/sdk/hybridconnectivity/ci.mgmt.yml +++ b/sdk/hybridconnectivity/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/hybridconnectivity/ci.mgmt.yml - sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/hybridconnectivity/ci.mgmt.yml + - sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/hybridkubernetes/ci.mgmt.yml b/sdk/hybridkubernetes/ci.mgmt.yml index fff768430c9d..bb98635a8e1c 100644 --- a/sdk/hybridkubernetes/ci.mgmt.yml +++ b/sdk/hybridkubernetes/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/hybridkubernetes/ci.mgmt.yml - sdk/hybridkubernetes/Azure.ResourceManager.Kubernetes/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/hybridkubernetes/ci.mgmt.yml + - sdk/hybridkubernetes/Azure.ResourceManager.Kubernetes/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/hybridnetwork/ci.mgmt.yml b/sdk/hybridnetwork/ci.mgmt.yml index 35f71f8ae870..39412ff81f05 100644 --- a/sdk/hybridnetwork/ci.mgmt.yml +++ b/sdk/hybridnetwork/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/hybridnetwork/ci.mgmt.yml - sdk/hybridnetwork/Azure.ResourceManager.HybridNetwork/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/hybridnetwork/ci.mgmt.yml + - sdk/hybridnetwork/Azure.ResourceManager.HybridNetwork/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/informaticadatamanagement/ci.mgmt.yml b/sdk/informaticadatamanagement/ci.mgmt.yml index 03013cc9c90b..82d3bafd3f7f 100644 --- a/sdk/informaticadatamanagement/ci.mgmt.yml +++ b/sdk/informaticadatamanagement/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/informaticadatamanagement/ci.mgmt.yml - sdk/informaticadatamanagement/Azure.ResourceManager.InformaticaDataManagement/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/informaticadatamanagement/ci.mgmt.yml + - sdk/informaticadatamanagement/Azure.ResourceManager.InformaticaDataManagement/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/iot/ci.mgmt.yml b/sdk/iot/ci.mgmt.yml index 6260cd0d71f2..199578b03331 100644 --- a/sdk/iot/ci.mgmt.yml +++ b/sdk/iot/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/iot/ci.mgmt.yml - sdk/iot/Azure.ResourceManager.IotFirmwareDefense/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/iot/ci.mgmt.yml + - sdk/iot/Azure.ResourceManager.IotFirmwareDefense/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/iotcentral/ci.mgmt.yml b/sdk/iotcentral/ci.mgmt.yml index 1702fd71c6dd..1225f99c37fd 100644 --- a/sdk/iotcentral/ci.mgmt.yml +++ b/sdk/iotcentral/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/iotcentral/ci.mgmt.yml - sdk/iotcentral/Azure.ResourceManager.IotCentral/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/iotcentral/ci.mgmt.yml + - sdk/iotcentral/Azure.ResourceManager.IotCentral/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/iothub/ci.mgmt.yml b/sdk/iothub/ci.mgmt.yml index 5eb9e999a89c..63fb10994eac 100644 --- a/sdk/iothub/ci.mgmt.yml +++ b/sdk/iothub/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/iothub/ci.mgmt.yml - sdk/iothub/Azure.ResourceManager.IotHub/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/iothub/ci.mgmt.yml + - sdk/iothub/Azure.ResourceManager.IotHub/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/keyvault/ci.mgmt.yml b/sdk/keyvault/ci.mgmt.yml index b48c2f8d4ff4..8ad905079a0a 100644 --- a/sdk/keyvault/ci.mgmt.yml +++ b/sdk/keyvault/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/keyvault/ci.mgmt.yml - sdk/keyvault/Azure.ResourceManager.KeyVault/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/keyvault/ci.mgmt.yml + - sdk/keyvault/Azure.ResourceManager.KeyVault/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/kubernetesconfiguration/ci.mgmt.yml b/sdk/kubernetesconfiguration/ci.mgmt.yml index 4249ef57fa6e..d3fb470a7b6e 100644 --- a/sdk/kubernetesconfiguration/ci.mgmt.yml +++ b/sdk/kubernetesconfiguration/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/kubernetesconfiguration/ci.mgmt.yml - sdk/kubernetesconfiguration/Azure.ResourceManager.KubernetesConfiguration/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/kubernetesconfiguration/ci.mgmt.yml + - sdk/kubernetesconfiguration/Azure.ResourceManager.KubernetesConfiguration/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/kusto/ci.mgmt.yml b/sdk/kusto/ci.mgmt.yml index 374cf1f0cb81..c410d1487d18 100644 --- a/sdk/kusto/ci.mgmt.yml +++ b/sdk/kusto/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/kusto/ci.mgmt.yml - sdk/kusto/Azure.ResourceManager.Kusto/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/kusto/ci.mgmt.yml + - sdk/kusto/Azure.ResourceManager.Kusto/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/labservices/ci.mgmt.yml b/sdk/labservices/ci.mgmt.yml index 48f80379ab14..f8a982072965 100644 --- a/sdk/labservices/ci.mgmt.yml +++ b/sdk/labservices/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/labservices/ci.mgmt.yml - sdk/labservices/Azure.ResourceManager.LabServices/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/labservices/ci.mgmt.yml + - sdk/labservices/Azure.ResourceManager.LabServices/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/loadtestservice/ci.mgmt.yml b/sdk/loadtestservice/ci.mgmt.yml index 4e3d99d42979..dfc32939e497 100644 --- a/sdk/loadtestservice/ci.mgmt.yml +++ b/sdk/loadtestservice/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/loadtestservice/ci.mgmt.yml - sdk/loadtestservice/Azure.ResourceManager.LoadTesting/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/loadtestservice/ci.mgmt.yml + - sdk/loadtestservice/Azure.ResourceManager.LoadTesting/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/logic/ci.mgmt.yml b/sdk/logic/ci.mgmt.yml index b89b224082ee..5bed51facd34 100644 --- a/sdk/logic/ci.mgmt.yml +++ b/sdk/logic/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/logic/ci.mgmt.yml - sdk/logic/Azure.ResourceManager.Logic/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/logic/ci.mgmt.yml + - sdk/logic/Azure.ResourceManager.Logic/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/machinelearningcompute/ci.mgmt.yml b/sdk/machinelearningcompute/ci.mgmt.yml index 9ea84fdf4d15..5ea619231191 100644 --- a/sdk/machinelearningcompute/ci.mgmt.yml +++ b/sdk/machinelearningcompute/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/machinelearningcompute/ci.mgmt.yml - sdk/machinelearningcompute/Azure.ResourceManager.MachineLearningCompute/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/machinelearningcompute/ci.mgmt.yml + - sdk/machinelearningcompute/Azure.ResourceManager.MachineLearningCompute/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/machinelearningservices/ci.mgmt.yml b/sdk/machinelearningservices/ci.mgmt.yml index 457299ab20b9..3a99ed224fc2 100644 --- a/sdk/machinelearningservices/ci.mgmt.yml +++ b/sdk/machinelearningservices/ci.mgmt.yml @@ -1,5 +1,6 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -12,6 +13,18 @@ pr: - sdk/machinelearningservices/ci.mgmt.yml - sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/machinelearningservices/ci.mgmt.yml + - sdk/machinelearningservices/Azure.ResourceManager.MachineLearning/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/maintenance/ci.mgmt.yml b/sdk/maintenance/ci.mgmt.yml index c49cc1565d6d..94c552b69f26 100644 --- a/sdk/maintenance/ci.mgmt.yml +++ b/sdk/maintenance/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/maintenance/ci.mgmt.yml - sdk/maintenance/Azure.ResourceManager.Maintenance/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/maintenance/ci.mgmt.yml + - sdk/maintenance/Azure.ResourceManager.Maintenance/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/managednetwork/ci.mgmt.yml b/sdk/managednetwork/ci.mgmt.yml index 431d66d1245b..08c9f3d0ce55 100644 --- a/sdk/managednetwork/ci.mgmt.yml +++ b/sdk/managednetwork/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/managednetwork/ci.mgmt.yml - sdk/managednetwork/Azure.ResourceManager.ManagedNetwork/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/managednetwork/ci.mgmt.yml + - sdk/managednetwork/Azure.ResourceManager.ManagedNetwork/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/managednetworkfabric/ci.mgmt.yml b/sdk/managednetworkfabric/ci.mgmt.yml index aa6b571b04e2..3212ad45bbde 100644 --- a/sdk/managednetworkfabric/ci.mgmt.yml +++ b/sdk/managednetworkfabric/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/managednetworkfabric/ci.mgmt.yml - sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/managednetworkfabric/ci.mgmt.yml + - sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/managedserviceidentity/ci.mgmt.yml b/sdk/managedserviceidentity/ci.mgmt.yml index c8f3a187f918..c9cd4b0f235a 100644 --- a/sdk/managedserviceidentity/ci.mgmt.yml +++ b/sdk/managedserviceidentity/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/managedserviceidentity/ci.mgmt.yml - sdk/managedserviceidentity/Azure.ResourceManager.ManagedServiceIdentities/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/managedserviceidentity/ci.mgmt.yml + - sdk/managedserviceidentity/Azure.ResourceManager.ManagedServiceIdentities/ + extends: template: ../../eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/managedservices/ci.mgmt.yml b/sdk/managedservices/ci.mgmt.yml index d6c0ccd16eef..88360bb2defa 100644 --- a/sdk/managedservices/ci.mgmt.yml +++ b/sdk/managedservices/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/managedservices/ci.mgmt.yml - sdk/managedservices/Azure.ResourceManager.ManagedServices/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/managedservices/ci.mgmt.yml + - sdk/managedservices/Azure.ResourceManager.ManagedServices/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/managementpartner/ci.mgmt.yml b/sdk/managementpartner/ci.mgmt.yml index 52c8e762088e..6fdd0118e1b9 100644 --- a/sdk/managementpartner/ci.mgmt.yml +++ b/sdk/managementpartner/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/managementpartner/ci.mgmt.yml - sdk/managementpartner/Azure.ResourceManager.ManagementPartner/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/managementpartner/ci.mgmt.yml + - sdk/managementpartner/Azure.ResourceManager.ManagementPartner/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/maps/ci.mgmt.yml b/sdk/maps/ci.mgmt.yml index 2f16079cab2e..7ee4f1ddad3c 100644 --- a/sdk/maps/ci.mgmt.yml +++ b/sdk/maps/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/maps/ci.mgmt.yml - sdk/maps/Azure.ResourceManager.Maps/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/maps/ci.mgmt.yml + - sdk/maps/Azure.ResourceManager.Maps/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/marketplace/ci.mgmt.yml b/sdk/marketplace/ci.mgmt.yml index e6574bdb3039..42bc8a147b30 100644 --- a/sdk/marketplace/ci.mgmt.yml +++ b/sdk/marketplace/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/marketplace/ci.mgmt.yml - sdk/marketplace/Azure.ResourceManager.Marketplace/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/marketplace/ci.mgmt.yml + - sdk/marketplace/Azure.ResourceManager.Marketplace/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/marketplaceordering/ci.mgmt.yml b/sdk/marketplaceordering/ci.mgmt.yml index 2b1f8721902e..c602647fb32d 100644 --- a/sdk/marketplaceordering/ci.mgmt.yml +++ b/sdk/marketplaceordering/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/marketplaceordering/ci.mgmt.yml - sdk/marketplaceordering/Azure.ResourceManager.MarketplaceOrdering/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/marketplaceordering/ci.mgmt.yml + - sdk/marketplaceordering/Azure.ResourceManager.MarketplaceOrdering/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/mediaservices/ci.mgmt.yml b/sdk/mediaservices/ci.mgmt.yml index 55656f3ae48b..201ecc9d995d 100644 --- a/sdk/mediaservices/ci.mgmt.yml +++ b/sdk/mediaservices/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/mediaservices/ci.mgmt.yml - sdk/mediaservices/Azure.ResourceManager.Media/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/mediaservices/ci.mgmt.yml + - sdk/mediaservices/Azure.ResourceManager.Media/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/migrationdiscoverysap/ci.mgmt.yml b/sdk/migrationdiscoverysap/ci.mgmt.yml index f5eb354d28e7..26c079f3d6f5 100644 --- a/sdk/migrationdiscoverysap/ci.mgmt.yml +++ b/sdk/migrationdiscoverysap/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/migrationdiscoverysap/ci.mgmt.yml - sdk/migrationdiscoverysap/Azure.ResourceManager.MigrationDiscoverySap/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/migrationdiscoverysap/ci.mgmt.yml + - sdk/migrationdiscoverysap/Azure.ResourceManager.MigrationDiscoverySap/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/mixedreality/ci.mgmt.yml b/sdk/mixedreality/ci.mgmt.yml index 81c0c2744232..d342a10a32e0 100644 --- a/sdk/mixedreality/ci.mgmt.yml +++ b/sdk/mixedreality/ci.mgmt.yml @@ -1,5 +1,6 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -12,6 +13,18 @@ pr: - sdk/mixedreality/ci.mgmt.yml - sdk/mixedreality/Azure.ResourceManager.MixedReality/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/mixedreality/ci.mgmt.yml + - sdk/mixedreality/Azure.ResourceManager.MixedReality/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/mobilenetwork/ci.mgmt.yml b/sdk/mobilenetwork/ci.mgmt.yml index 8a68e6749ba7..325154bfbfb7 100644 --- a/sdk/mobilenetwork/ci.mgmt.yml +++ b/sdk/mobilenetwork/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/mobilenetwork/ci.mgmt.yml - sdk/mobilenetwork/Azure.ResourceManager.MobileNetwork/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/mobilenetwork/ci.mgmt.yml + - sdk/mobilenetwork/Azure.ResourceManager.MobileNetwork/ + extends: template: ../../eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/mongocluster/ci.mgmt.yml b/sdk/mongocluster/ci.mgmt.yml index d2eafe7877dd..10f6e93db8bc 100644 --- a/sdk/mongocluster/ci.mgmt.yml +++ b/sdk/mongocluster/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/mongocluster/ci.mgmt.yml - sdk/mongocluster/Azure.ResourceManager.MongoCluster/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/mongocluster/ci.mgmt.yml + - sdk/mongocluster/Azure.ResourceManager.MongoCluster/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/monitor/ci.mgmt.yml b/sdk/monitor/ci.mgmt.yml index 8beeded4e3b9..5933fd35d9e5 100644 --- a/sdk/monitor/ci.mgmt.yml +++ b/sdk/monitor/ci.mgmt.yml @@ -2,6 +2,7 @@ # This file is generated automatically and any changes will be lost. trigger: none + pr: branches: include: @@ -14,6 +15,18 @@ pr: - sdk/monitor/ci.mgmt.yml - sdk/monitor/Azure.ResourceManager.Monitor/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/monitor/ci.mgmt.yml + - sdk/monitor/Azure.ResourceManager.Monitor/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/mysql/ci.mgmt.yml b/sdk/mysql/ci.mgmt.yml index e1521b4ed568..2ba5627ae3fc 100644 --- a/sdk/mysql/ci.mgmt.yml +++ b/sdk/mysql/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/mysql/ci.mgmt.yml - sdk/mysql/Azure.ResourceManager.MySql/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/mysql/ci.mgmt.yml + - sdk/mysql/Azure.ResourceManager.MySql/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/neonpostgres/ci.mgmt.yml b/sdk/neonpostgres/ci.mgmt.yml index 72d449fc7a16..00f734ba7230 100644 --- a/sdk/neonpostgres/ci.mgmt.yml +++ b/sdk/neonpostgres/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/neonpostgres/ci.mgmt.yml - sdk/neonpostgres/Azure.ResourceManager.NeonPostgres/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/neonpostgres/ci.mgmt.yml + - sdk/neonpostgres/Azure.ResourceManager.NeonPostgres/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/netapp/ci.mgmt.yml b/sdk/netapp/ci.mgmt.yml index 05a683e910f5..5d0a3e741513 100644 --- a/sdk/netapp/ci.mgmt.yml +++ b/sdk/netapp/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/netapp/ci.mgmt.yml - sdk/netapp/Azure.ResourceManager.NetApp/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/netapp/ci.mgmt.yml + - sdk/netapp/Azure.ResourceManager.NetApp/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_AdminRuleGroupCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_AdminRuleGroupCollection.cs index 0010d2a744b7..3fc9e22b2c2f 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_AdminRuleGroupCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_AdminRuleGroupCollection.cs @@ -20,7 +20,7 @@ public partial class Sample_AdminRuleGroupCollection [Ignore("Only validating compilation of examples")] public async Task GetAll_ListSecurityAdminRuleCollections() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerAdminRuleCollectionList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkManagerAdminRuleCollectionList.json // this example is just showing the usage of "AdminRuleCollections_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 @@ -57,7 +57,7 @@ public async Task GetAll_ListSecurityAdminRuleCollections() [Ignore("Only validating compilation of examples")] public async Task Get_GetsSecurityAdminRuleCollection() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerAdminRuleCollectionGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkManagerAdminRuleCollectionGet.json // this example is just showing the usage of "AdminRuleCollections_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 @@ -92,7 +92,7 @@ public async Task Get_GetsSecurityAdminRuleCollection() [Ignore("Only validating compilation of examples")] public async Task Exists_GetsSecurityAdminRuleCollection() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerAdminRuleCollectionGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkManagerAdminRuleCollectionGet.json // this example is just showing the usage of "AdminRuleCollections_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 @@ -123,7 +123,7 @@ public async Task Exists_GetsSecurityAdminRuleCollection() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GetsSecurityAdminRuleCollection() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerAdminRuleCollectionGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkManagerAdminRuleCollectionGet.json // this example is just showing the usage of "AdminRuleCollections_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 @@ -166,7 +166,7 @@ public async Task GetIfExists_GetsSecurityAdminRuleCollection() [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_CreateOrUpdateAnAdminRuleCollection() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerAdminRuleCollectionPut.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkManagerAdminRuleCollectionPut.json // this example is just showing the usage of "AdminRuleCollections_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_AdminRuleGroupResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_AdminRuleGroupResource.cs index 8a91366e500c..b6f0d577b3c7 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_AdminRuleGroupResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_AdminRuleGroupResource.cs @@ -20,7 +20,7 @@ public partial class Sample_AdminRuleGroupResource [Ignore("Only validating compilation of examples")] public async Task Get_GetsSecurityAdminRuleCollection() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerAdminRuleCollectionGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkManagerAdminRuleCollectionGet.json // this example is just showing the usage of "AdminRuleCollections_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 @@ -52,7 +52,7 @@ public async Task Get_GetsSecurityAdminRuleCollection() [Ignore("Only validating compilation of examples")] public async Task Update_CreateOrUpdateAnAdminRuleCollection() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerAdminRuleCollectionPut.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkManagerAdminRuleCollectionPut.json // this example is just showing the usage of "AdminRuleCollections_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -93,7 +93,7 @@ public async Task Update_CreateOrUpdateAnAdminRuleCollection() [Ignore("Only validating compilation of examples")] public async Task Delete_DeletesAnAdminRuleCollection() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerAdminRuleCollectionDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkManagerAdminRuleCollectionDelete.json // this example is just showing the usage of "AdminRuleCollections_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ApplicationGatewayCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ApplicationGatewayCollection.cs index 8e5d51ec165a..e4984af996ab 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ApplicationGatewayCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ApplicationGatewayCollection.cs @@ -23,7 +23,7 @@ public partial class Sample_ApplicationGatewayCollection [Ignore("Only validating compilation of examples")] public async Task Get_GetApplicationGateway() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ApplicationGatewayGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/ApplicationGatewayGet.json // this example is just showing the usage of "ApplicationGateways_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -56,7 +56,7 @@ public async Task Get_GetApplicationGateway() [Ignore("Only validating compilation of examples")] public async Task Exists_GetApplicationGateway() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ApplicationGatewayGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/ApplicationGatewayGet.json // this example is just showing the usage of "ApplicationGateways_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -85,7 +85,7 @@ public async Task Exists_GetApplicationGateway() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GetApplicationGateway() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ApplicationGatewayGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/ApplicationGatewayGet.json // this example is just showing the usage of "ApplicationGateways_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -126,7 +126,7 @@ public async Task GetIfExists_GetApplicationGateway() [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_CreateApplicationGateway() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ApplicationGatewayCreate.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/ApplicationGatewayCreate.json // this example is just showing the usage of "ApplicationGateways_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 @@ -392,7 +392,7 @@ public async Task CreateOrUpdate_CreateApplicationGateway() [Ignore("Only validating compilation of examples")] public async Task GetAll_ListsAllApplicationGatewaysInAResourceGroup() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ApplicationGatewayList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/ApplicationGatewayList.json // this example is just showing the usage of "ApplicationGateways_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ApplicationGatewayPrivateEndpointConnectionCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ApplicationGatewayPrivateEndpointConnectionCollection.cs index 879037545fa7..8ba6d73f6ae6 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ApplicationGatewayPrivateEndpointConnectionCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ApplicationGatewayPrivateEndpointConnectionCollection.cs @@ -20,7 +20,7 @@ public partial class Sample_ApplicationGatewayPrivateEndpointConnectionCollectio [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_UpdateApplicationGatewayPrivateEndpointConnection() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ApplicationGatewayPrivateEndpointConnectionUpdate.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/ApplicationGatewayPrivateEndpointConnectionUpdate.json // this example is just showing the usage of "ApplicationGatewayPrivateEndpointConnections_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 @@ -64,7 +64,7 @@ public async Task CreateOrUpdate_UpdateApplicationGatewayPrivateEndpointConnecti [Ignore("Only validating compilation of examples")] public async Task Get_GetApplicationGatewayPrivateEndpointConnection() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ApplicationGatewayPrivateEndpointConnectionGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/ApplicationGatewayPrivateEndpointConnectionGet.json // this example is just showing the usage of "ApplicationGatewayPrivateEndpointConnections_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -98,7 +98,7 @@ public async Task Get_GetApplicationGatewayPrivateEndpointConnection() [Ignore("Only validating compilation of examples")] public async Task Exists_GetApplicationGatewayPrivateEndpointConnection() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ApplicationGatewayPrivateEndpointConnectionGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/ApplicationGatewayPrivateEndpointConnectionGet.json // this example is just showing the usage of "ApplicationGatewayPrivateEndpointConnections_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -128,7 +128,7 @@ public async Task Exists_GetApplicationGatewayPrivateEndpointConnection() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GetApplicationGatewayPrivateEndpointConnection() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ApplicationGatewayPrivateEndpointConnectionGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/ApplicationGatewayPrivateEndpointConnectionGet.json // this example is just showing the usage of "ApplicationGatewayPrivateEndpointConnections_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 GetIfExists_GetApplicationGatewayPrivateEndpointConnection() [Ignore("Only validating compilation of examples")] public async Task GetAll_ListsAllPrivateEndpointConnectionsOnApplicationGateway() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ApplicationGatewayPrivateEndpointConnectionList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/ApplicationGatewayPrivateEndpointConnectionList.json // this example is just showing the usage of "ApplicationGatewayPrivateEndpointConnections_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ApplicationGatewayPrivateEndpointConnectionResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ApplicationGatewayPrivateEndpointConnectionResource.cs index 0504bdee5eb6..07b3a6e62021 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ApplicationGatewayPrivateEndpointConnectionResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ApplicationGatewayPrivateEndpointConnectionResource.cs @@ -20,7 +20,7 @@ public partial class Sample_ApplicationGatewayPrivateEndpointConnectionResource [Ignore("Only validating compilation of examples")] public async Task Delete_DeleteApplicationGatewayPrivateEndpointConnection() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ApplicationGatewayPrivateEndpointConnectionDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/ApplicationGatewayPrivateEndpointConnectionDelete.json // this example is just showing the usage of "ApplicationGatewayPrivateEndpointConnections_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 @@ -47,7 +47,7 @@ public async Task Delete_DeleteApplicationGatewayPrivateEndpointConnection() [Ignore("Only validating compilation of examples")] public async Task Update_UpdateApplicationGatewayPrivateEndpointConnection() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ApplicationGatewayPrivateEndpointConnectionUpdate.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/ApplicationGatewayPrivateEndpointConnectionUpdate.json // this example is just showing the usage of "ApplicationGatewayPrivateEndpointConnections_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 @@ -88,7 +88,7 @@ public async Task Update_UpdateApplicationGatewayPrivateEndpointConnection() [Ignore("Only validating compilation of examples")] public async Task Get_GetApplicationGatewayPrivateEndpointConnection() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ApplicationGatewayPrivateEndpointConnectionGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/ApplicationGatewayPrivateEndpointConnectionGet.json // this example is just showing the usage of "ApplicationGatewayPrivateEndpointConnections_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/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ApplicationGatewayResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ApplicationGatewayResource.cs index a37bac8c040b..4a38ac138940 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ApplicationGatewayResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ApplicationGatewayResource.cs @@ -21,7 +21,7 @@ public partial class Sample_ApplicationGatewayResource [Ignore("Only validating compilation of examples")] public async Task Delete_DeleteApplicationGateway() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ApplicationGatewayDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/ApplicationGatewayDelete.json // this example is just showing the usage of "ApplicationGateways_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 @@ -47,7 +47,7 @@ public async Task Delete_DeleteApplicationGateway() [Ignore("Only validating compilation of examples")] public async Task Get_GetApplicationGateway() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ApplicationGatewayGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/ApplicationGatewayGet.json // this example is just showing the usage of "ApplicationGateways_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 @@ -77,7 +77,7 @@ public async Task Get_GetApplicationGateway() [Ignore("Only validating compilation of examples")] public async Task Update_UpdateApplicationGatewayTags() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ApplicationGatewayUpdateTags.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/ApplicationGatewayUpdateTags.json // this example is just showing the usage of "ApplicationGateways_UpdateTags" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -115,7 +115,7 @@ public async Task Update_UpdateApplicationGatewayTags() [Ignore("Only validating compilation of examples")] public async Task GetApplicationGateways_ListsAllApplicationGatewaysInASubscription() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ApplicationGatewayListAll.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/ApplicationGatewayListAll.json // this example is just showing the usage of "ApplicationGateways_ListAll" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -146,7 +146,7 @@ public async Task GetApplicationGateways_ListsAllApplicationGatewaysInASubscript [Ignore("Only validating compilation of examples")] public async Task Start_StartApplicationGateway() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ApplicationGatewayStart.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/ApplicationGatewayStart.json // this example is just showing the usage of "ApplicationGateways_Start" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -172,7 +172,7 @@ public async Task Start_StartApplicationGateway() [Ignore("Only validating compilation of examples")] public async Task Stop_StopApplicationGateway() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ApplicationGatewayStop.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/ApplicationGatewayStop.json // this example is just showing the usage of "ApplicationGateways_Stop" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -198,7 +198,7 @@ public async Task Stop_StopApplicationGateway() [Ignore("Only validating compilation of examples")] public async Task BackendHealth_GetBackendHealth() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ApplicationGatewayBackendHealthGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/ApplicationGatewayBackendHealthGet.json // this example is just showing the usage of "ApplicationGateways_BackendHealth" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -225,7 +225,7 @@ public async Task BackendHealth_GetBackendHealth() [Ignore("Only validating compilation of examples")] public async Task BackendHealthOnDemand_TestBackendHealth() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ApplicationGatewayBackendHealthTest.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/ApplicationGatewayBackendHealthTest.json // this example is just showing the usage of "ApplicationGateways_BackendHealthOnDemand" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -261,7 +261,7 @@ public async Task BackendHealthOnDemand_TestBackendHealth() [Ignore("Only validating compilation of examples")] public async Task GetAvailableServerVariablesApplicationGateways_GetAvailableServerVariables() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ApplicationGatewayAvailableServerVariablesGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/ApplicationGatewayAvailableServerVariablesGet.json // this example is just showing the usage of "ApplicationGateways_ListAvailableServerVariables" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -288,7 +288,7 @@ public async Task GetAvailableServerVariablesApplicationGateways_GetAvailableSer [Ignore("Only validating compilation of examples")] public async Task GetAvailableRequestHeadersApplicationGateways_GetAvailableRequestHeaders() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ApplicationGatewayAvailableRequestHeadersGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/ApplicationGatewayAvailableRequestHeadersGet.json // this example is just showing the usage of "ApplicationGateways_ListAvailableRequestHeaders" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -315,7 +315,7 @@ public async Task GetAvailableRequestHeadersApplicationGateways_GetAvailableRequ [Ignore("Only validating compilation of examples")] public async Task GetAvailableResponseHeadersApplicationGateways_GetAvailableResponseHeaders() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ApplicationGatewayAvailableResponseHeadersGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/ApplicationGatewayAvailableResponseHeadersGet.json // this example is just showing the usage of "ApplicationGateways_ListAvailableResponseHeaders" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -342,7 +342,7 @@ public async Task GetAvailableResponseHeadersApplicationGateways_GetAvailableRes [Ignore("Only validating compilation of examples")] public async Task GetAppGatewayAvailableWafRuleSets_GetAvailableWafRuleSets() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ApplicationGatewayAvailableWafRuleSetsGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/ApplicationGatewayAvailableWafRuleSetsGet.json // this example is just showing the usage of "ApplicationGateways_ListAvailableWafRuleSets" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -369,7 +369,7 @@ public async Task GetAppGatewayAvailableWafRuleSets_GetAvailableWafRuleSets() [Ignore("Only validating compilation of examples")] public async Task GetApplicationGatewayAvailableSslOptions_GetAvailableSslOptions() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ApplicationGatewayAvailableSslOptionsGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/ApplicationGatewayAvailableSslOptionsGet.json // this example is just showing the usage of "ApplicationGateways_ListAvailableSslOptions" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -393,7 +393,7 @@ public async Task GetApplicationGatewayAvailableSslOptions_GetAvailableSslOption [Ignore("Only validating compilation of examples")] public async Task GetApplicationGatewayAvailableSslPredefinedPolicies_GetAvailableSslPredefinedPolicies() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ApplicationGatewayAvailableSslOptionsPredefinedPoliciesGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/ApplicationGatewayAvailableSslOptionsPredefinedPoliciesGet.json // this example is just showing the usage of "ApplicationGateways_ListAvailableSslPredefinedPolicies" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -420,7 +420,7 @@ public async Task GetApplicationGatewayAvailableSslPredefinedPolicies_GetAvailab [Ignore("Only validating compilation of examples")] public async Task GetApplicationGatewaySslPredefinedPolicy_GetAvailableSslPredefinedPolicyByName() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ApplicationGatewayAvailableSslOptionsPredefinedPolicyGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/ApplicationGatewayAvailableSslOptionsPredefinedPolicyGet.json // this example is just showing the usage of "ApplicationGateways_GetSslPredefinedPolicy" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -445,7 +445,7 @@ public async Task GetApplicationGatewaySslPredefinedPolicy_GetAvailableSslPredef [Ignore("Only validating compilation of examples")] public async Task GetApplicationGatewayPrivateLinkResources_ListsAllPrivateLinkResourcesOnApplicationGateway() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ApplicationGatewayPrivateLinkResourceList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/ApplicationGatewayPrivateLinkResourceList.json // this example is just showing the usage of "ApplicationGatewayPrivateLinkResources_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ApplicationGatewayWafDynamicManifestCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ApplicationGatewayWafDynamicManifestCollection.cs index 44602d46ba64..b363d2224afb 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ApplicationGatewayWafDynamicManifestCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ApplicationGatewayWafDynamicManifestCollection.cs @@ -20,7 +20,7 @@ public partial class Sample_ApplicationGatewayWafDynamicManifestCollection [Ignore("Only validating compilation of examples")] public async Task Get_GetsWAFDefaultManifest() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/GetApplicationGatewayWafDynamicManifestsDefault.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/GetApplicationGatewayWafDynamicManifestsDefault.json // this example is just showing the usage of "ApplicationGatewayWafDynamicManifestsDefault_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 @@ -52,7 +52,7 @@ public async Task Get_GetsWAFDefaultManifest() [Ignore("Only validating compilation of examples")] public async Task Exists_GetsWAFDefaultManifest() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/GetApplicationGatewayWafDynamicManifestsDefault.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/GetApplicationGatewayWafDynamicManifestsDefault.json // this example is just showing the usage of "ApplicationGatewayWafDynamicManifestsDefault_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -80,7 +80,7 @@ public async Task Exists_GetsWAFDefaultManifest() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GetsWAFDefaultManifest() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/GetApplicationGatewayWafDynamicManifestsDefault.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/GetApplicationGatewayWafDynamicManifestsDefault.json // this example is just showing the usage of "ApplicationGatewayWafDynamicManifestsDefault_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 @@ -120,7 +120,7 @@ public async Task GetIfExists_GetsWAFDefaultManifest() [Ignore("Only validating compilation of examples")] public async Task GetAll_GetsWAFManifests() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/GetApplicationGatewayWafDynamicManifests.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/GetApplicationGatewayWafDynamicManifests.json // this example is just showing the usage of "ApplicationGatewayWafDynamicManifests_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/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ApplicationGatewayWafDynamicManifestResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ApplicationGatewayWafDynamicManifestResource.cs index 2e719c086718..580900ad2a08 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ApplicationGatewayWafDynamicManifestResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ApplicationGatewayWafDynamicManifestResource.cs @@ -19,7 +19,7 @@ public partial class Sample_ApplicationGatewayWafDynamicManifestResource [Ignore("Only validating compilation of examples")] public async Task Get_GetsWAFDefaultManifest() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/GetApplicationGatewayWafDynamicManifestsDefault.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/GetApplicationGatewayWafDynamicManifestsDefault.json // this example is just showing the usage of "ApplicationGatewayWafDynamicManifestsDefault_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/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ApplicationSecurityGroupCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ApplicationSecurityGroupCollection.cs index d9edd7250a6d..ca5c346630ed 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ApplicationSecurityGroupCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ApplicationSecurityGroupCollection.cs @@ -20,7 +20,7 @@ public partial class Sample_ApplicationSecurityGroupCollection [Ignore("Only validating compilation of examples")] public async Task Get_GetApplicationSecurityGroup() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ApplicationSecurityGroupGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/ApplicationSecurityGroupGet.json // this example is just showing the usage of "ApplicationSecurityGroups_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -53,7 +53,7 @@ public async Task Get_GetApplicationSecurityGroup() [Ignore("Only validating compilation of examples")] public async Task Exists_GetApplicationSecurityGroup() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ApplicationSecurityGroupGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/ApplicationSecurityGroupGet.json // this example is just showing the usage of "ApplicationSecurityGroups_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -82,7 +82,7 @@ public async Task Exists_GetApplicationSecurityGroup() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GetApplicationSecurityGroup() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ApplicationSecurityGroupGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/ApplicationSecurityGroupGet.json // this example is just showing the usage of "ApplicationSecurityGroups_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 @@ -123,7 +123,7 @@ public async Task GetIfExists_GetApplicationSecurityGroup() [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_CreateApplicationSecurityGroup() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ApplicationSecurityGroupCreate.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/ApplicationSecurityGroupCreate.json // this example is just showing the usage of "ApplicationSecurityGroups_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 @@ -161,7 +161,7 @@ public async Task CreateOrUpdate_CreateApplicationSecurityGroup() [Ignore("Only validating compilation of examples")] public async Task GetAll_ListLoadBalancersInResourceGroup() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ApplicationSecurityGroupList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/ApplicationSecurityGroupList.json // this example is just showing the usage of "ApplicationSecurityGroups_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ApplicationSecurityGroupResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ApplicationSecurityGroupResource.cs index 0712755b5cc3..6e52b7a669e1 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ApplicationSecurityGroupResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ApplicationSecurityGroupResource.cs @@ -21,7 +21,7 @@ public partial class Sample_ApplicationSecurityGroupResource [Ignore("Only validating compilation of examples")] public async Task Delete_DeleteApplicationSecurityGroup() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ApplicationSecurityGroupDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/ApplicationSecurityGroupDelete.json // this example is just showing the usage of "ApplicationSecurityGroups_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 @@ -47,7 +47,7 @@ public async Task Delete_DeleteApplicationSecurityGroup() [Ignore("Only validating compilation of examples")] public async Task Get_GetApplicationSecurityGroup() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ApplicationSecurityGroupGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/ApplicationSecurityGroupGet.json // this example is just showing the usage of "ApplicationSecurityGroups_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 @@ -77,7 +77,7 @@ public async Task Get_GetApplicationSecurityGroup() [Ignore("Only validating compilation of examples")] public async Task Update_UpdateApplicationSecurityGroupTags() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ApplicationSecurityGroupUpdateTags.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/ApplicationSecurityGroupUpdateTags.json // this example is just showing the usage of "ApplicationSecurityGroups_UpdateTags" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -115,7 +115,7 @@ public async Task Update_UpdateApplicationSecurityGroupTags() [Ignore("Only validating compilation of examples")] public async Task GetApplicationSecurityGroups_ListAllApplicationSecurityGroups() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ApplicationSecurityGroupListAll.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/ApplicationSecurityGroupListAll.json // this example is just showing the usage of "ApplicationSecurityGroups_ListAll" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details 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/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_AzureFirewallCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_AzureFirewallCollection.cs index 2dee92c9936f..8dee8445e7b7 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_AzureFirewallCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_AzureFirewallCollection.cs @@ -21,7 +21,7 @@ public partial class Sample_AzureFirewallCollection [Ignore("Only validating compilation of examples")] public async Task Get_GetAzureFirewall() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/AzureFirewallGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/AzureFirewallGet.json // this example is just showing the usage of "AzureFirewalls_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -54,7 +54,7 @@ public async Task Get_GetAzureFirewall() [Ignore("Only validating compilation of examples")] public async Task Exists_GetAzureFirewall() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/AzureFirewallGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/AzureFirewallGet.json // this example is just showing the usage of "AzureFirewalls_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -83,7 +83,7 @@ public async Task Exists_GetAzureFirewall() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GetAzureFirewall() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/AzureFirewallGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/AzureFirewallGet.json // this example is just showing the usage of "AzureFirewalls_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 @@ -124,7 +124,7 @@ public async Task GetIfExists_GetAzureFirewall() [Ignore("Only validating compilation of examples")] public async Task Get_GetAzureFirewallWithAdditionalProperties() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/AzureFirewallGetWithAdditionalProperties.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/AzureFirewallGetWithAdditionalProperties.json // this example is just showing the usage of "AzureFirewalls_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 @@ -157,7 +157,7 @@ public async Task Get_GetAzureFirewallWithAdditionalProperties() [Ignore("Only validating compilation of examples")] public async Task Exists_GetAzureFirewallWithAdditionalProperties() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/AzureFirewallGetWithAdditionalProperties.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/AzureFirewallGetWithAdditionalProperties.json // this example is just showing the usage of "AzureFirewalls_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -186,7 +186,7 @@ public async Task Exists_GetAzureFirewallWithAdditionalProperties() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GetAzureFirewallWithAdditionalProperties() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/AzureFirewallGetWithAdditionalProperties.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/AzureFirewallGetWithAdditionalProperties.json // this example is just showing the usage of "AzureFirewalls_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 @@ -227,7 +227,7 @@ public async Task GetIfExists_GetAzureFirewallWithAdditionalProperties() [Ignore("Only validating compilation of examples")] public async Task Get_GetAzureFirewallWithIpGroups() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/AzureFirewallGetWithIpGroups.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/AzureFirewallGetWithIpGroups.json // this example is just showing the usage of "AzureFirewalls_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 @@ -260,7 +260,7 @@ public async Task Get_GetAzureFirewallWithIpGroups() [Ignore("Only validating compilation of examples")] public async Task Exists_GetAzureFirewallWithIpGroups() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/AzureFirewallGetWithIpGroups.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/AzureFirewallGetWithIpGroups.json // this example is just showing the usage of "AzureFirewalls_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 @@ -289,7 +289,7 @@ public async Task Exists_GetAzureFirewallWithIpGroups() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GetAzureFirewallWithIpGroups() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/AzureFirewallGetWithIpGroups.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/AzureFirewallGetWithIpGroups.json // this example is just showing the usage of "AzureFirewalls_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 @@ -330,7 +330,7 @@ public async Task GetIfExists_GetAzureFirewallWithIpGroups() [Ignore("Only validating compilation of examples")] public async Task Get_GetAzureFirewallWithZones() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/AzureFirewallGetWithZones.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/AzureFirewallGetWithZones.json // this example is just showing the usage of "AzureFirewalls_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 @@ -363,7 +363,7 @@ public async Task Get_GetAzureFirewallWithZones() [Ignore("Only validating compilation of examples")] public async Task Exists_GetAzureFirewallWithZones() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/AzureFirewallGetWithZones.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/AzureFirewallGetWithZones.json // this example is just showing the usage of "AzureFirewalls_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 @@ -392,7 +392,7 @@ public async Task Exists_GetAzureFirewallWithZones() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GetAzureFirewallWithZones() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/AzureFirewallGetWithZones.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/AzureFirewallGetWithZones.json // this example is just showing the usage of "AzureFirewalls_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 @@ -433,7 +433,7 @@ public async Task GetIfExists_GetAzureFirewallWithZones() [Ignore("Only validating compilation of examples")] public async Task Get_GetAzureFirewallWithManagementSubnet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/AzureFirewallGetWithMgmtSubnet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/AzureFirewallGetWithMgmtSubnet.json // this example is just showing the usage of "AzureFirewalls_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 @@ -466,7 +466,7 @@ public async Task Get_GetAzureFirewallWithManagementSubnet() [Ignore("Only validating compilation of examples")] public async Task Exists_GetAzureFirewallWithManagementSubnet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/AzureFirewallGetWithMgmtSubnet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/AzureFirewallGetWithMgmtSubnet.json // this example is just showing the usage of "AzureFirewalls_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 @@ -495,7 +495,7 @@ public async Task Exists_GetAzureFirewallWithManagementSubnet() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GetAzureFirewallWithManagementSubnet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/AzureFirewallGetWithMgmtSubnet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/AzureFirewallGetWithMgmtSubnet.json // this example is just showing the usage of "AzureFirewalls_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 @@ -536,7 +536,7 @@ public async Task GetIfExists_GetAzureFirewallWithManagementSubnet() [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_CreateAzureFirewall() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/AzureFirewallPut.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/AzureFirewallPut.json // this example is just showing the usage of "AzureFirewalls_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 @@ -742,7 +742,7 @@ public async Task CreateOrUpdate_CreateAzureFirewall() [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_CreateAzureFirewallWithAdditionalProperties() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/AzureFirewallPutWithAdditionalProperties.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/AzureFirewallPutWithAdditionalProperties.json // this example is just showing the usage of "AzureFirewalls_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 @@ -953,7 +953,7 @@ public async Task CreateOrUpdate_CreateAzureFirewallWithAdditionalProperties() [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_CreateAzureFirewallWithIpGroups() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/AzureFirewallPutWithIpGroups.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/AzureFirewallPutWithIpGroups.json // this example is just showing the usage of "AzureFirewalls_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 @@ -1159,7 +1159,7 @@ public async Task CreateOrUpdate_CreateAzureFirewallWithIpGroups() [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_CreateAzureFirewallWithZones() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/AzureFirewallPutWithZones.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/AzureFirewallPutWithZones.json // this example is just showing the usage of "AzureFirewalls_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 @@ -1366,7 +1366,7 @@ public async Task CreateOrUpdate_CreateAzureFirewallWithZones() [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_CreateAzureFirewallWithManagementSubnet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/AzureFirewallPutWithMgmtSubnet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/AzureFirewallPutWithMgmtSubnet.json // this example is just showing the usage of "AzureFirewalls_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 @@ -1578,7 +1578,7 @@ public async Task CreateOrUpdate_CreateAzureFirewallWithManagementSubnet() [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_CreateAzureFirewallInVirtualHub() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/AzureFirewallPutInHub.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/AzureFirewallPutInHub.json // this example is just showing the usage of "AzureFirewalls_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 @@ -1641,7 +1641,7 @@ public async Task CreateOrUpdate_CreateAzureFirewallInVirtualHub() [Ignore("Only validating compilation of examples")] public async Task GetAll_ListAllAzureFirewallsForAGivenResourceGroup() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/AzureFirewallListByResourceGroup.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/AzureFirewallListByResourceGroup.json // this example is just showing the usage of "AzureFirewalls_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_AzureFirewallResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_AzureFirewallResource.cs index 9873ea3bb15d..eeed2348beb6 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_AzureFirewallResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_AzureFirewallResource.cs @@ -21,7 +21,7 @@ public partial class Sample_AzureFirewallResource [Ignore("Only validating compilation of examples")] public async Task Delete_DeleteAzureFirewall() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/AzureFirewallDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/AzureFirewallDelete.json // this example is just showing the usage of "AzureFirewalls_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 @@ -47,7 +47,7 @@ public async Task Delete_DeleteAzureFirewall() [Ignore("Only validating compilation of examples")] public async Task Get_GetAzureFirewall() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/AzureFirewallGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/AzureFirewallGet.json // this example is just showing the usage of "AzureFirewalls_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 @@ -77,7 +77,7 @@ public async Task Get_GetAzureFirewall() [Ignore("Only validating compilation of examples")] public async Task Get_GetAzureFirewallWithAdditionalProperties() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/AzureFirewallGetWithAdditionalProperties.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/AzureFirewallGetWithAdditionalProperties.json // this example is just showing the usage of "AzureFirewalls_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 @@ -107,7 +107,7 @@ public async Task Get_GetAzureFirewallWithAdditionalProperties() [Ignore("Only validating compilation of examples")] public async Task Get_GetAzureFirewallWithIpGroups() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/AzureFirewallGetWithIpGroups.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/AzureFirewallGetWithIpGroups.json // this example is just showing the usage of "AzureFirewalls_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -137,7 +137,7 @@ public async Task Get_GetAzureFirewallWithIpGroups() [Ignore("Only validating compilation of examples")] public async Task Get_GetAzureFirewallWithZones() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/AzureFirewallGetWithZones.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/AzureFirewallGetWithZones.json // this example is just showing the usage of "AzureFirewalls_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 @@ -167,7 +167,7 @@ public async Task Get_GetAzureFirewallWithZones() [Ignore("Only validating compilation of examples")] public async Task Get_GetAzureFirewallWithManagementSubnet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/AzureFirewallGetWithMgmtSubnet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/AzureFirewallGetWithMgmtSubnet.json // this example is just showing the usage of "AzureFirewalls_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 @@ -197,7 +197,7 @@ public async Task Get_GetAzureFirewallWithManagementSubnet() [Ignore("Only validating compilation of examples")] public async Task Update_UpdateAzureFirewallTags() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/AzureFirewallUpdateTags.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/AzureFirewallUpdateTags.json // this example is just showing the usage of "AzureFirewalls_UpdateTags" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -236,7 +236,7 @@ public async Task Update_UpdateAzureFirewallTags() [Ignore("Only validating compilation of examples")] public async Task GetAzureFirewalls_ListAllAzureFirewallsForAGivenSubscription() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/AzureFirewallListBySubscription.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/AzureFirewallListBySubscription.json // this example is just showing the usage of "AzureFirewalls_ListAll" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -267,7 +267,7 @@ public async Task GetAzureFirewalls_ListAllAzureFirewallsForAGivenSubscription() [Ignore("Only validating compilation of examples")] public async Task GetLearnedPrefixes_AzureFirewallListLearnedPrefixes() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/AzureFirewallListLearnedIPPrefixes.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/AzureFirewallListLearnedIPPrefixes.json // this example is just showing the usage of "AzureFirewalls_ListLearnedPrefixes" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -294,7 +294,7 @@ public async Task GetLearnedPrefixes_AzureFirewallListLearnedPrefixes() [Ignore("Only validating compilation of examples")] public async Task PacketCapture_AzureFirewallPacketCapture() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/AzureFirewallPacketCapture.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/AzureFirewallPacketCapture.json // this example is just showing the usage of "AzureFirewalls_PacketCapture" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details 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/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_AzureWebCategoryCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_AzureWebCategoryCollection.cs index 8954cd668ddf..caee49c9dfce 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_AzureWebCategoryCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_AzureWebCategoryCollection.cs @@ -20,7 +20,7 @@ public partial class Sample_AzureWebCategoryCollection [Ignore("Only validating compilation of examples")] public async Task Get_GetAzureWebCategoryByName() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/AzureWebCategoryGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/AzureWebCategoryGet.json // this example is just showing the usage of "WebCategories_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 @@ -52,7 +52,7 @@ public async Task Get_GetAzureWebCategoryByName() [Ignore("Only validating compilation of examples")] public async Task Exists_GetAzureWebCategoryByName() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/AzureWebCategoryGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/AzureWebCategoryGet.json // this example is just showing the usage of "WebCategories_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -80,7 +80,7 @@ public async Task Exists_GetAzureWebCategoryByName() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GetAzureWebCategoryByName() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/AzureWebCategoryGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/AzureWebCategoryGet.json // this example is just showing the usage of "WebCategories_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 @@ -120,7 +120,7 @@ public async Task GetIfExists_GetAzureWebCategoryByName() [Ignore("Only validating compilation of examples")] public async Task GetAll_ListAllAzureWebCategoriesForAGivenSubscription() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/AzureWebCategoriesListBySubscription.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/AzureWebCategoriesListBySubscription.json // this example is just showing the usage of "WebCategories_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/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_AzureWebCategoryResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_AzureWebCategoryResource.cs index 4b39978c327b..6e296812b463 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_AzureWebCategoryResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_AzureWebCategoryResource.cs @@ -19,7 +19,7 @@ public partial class Sample_AzureWebCategoryResource [Ignore("Only validating compilation of examples")] public async Task Get_GetAzureWebCategoryByName() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/AzureWebCategoryGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/AzureWebCategoryGet.json // this example is just showing the usage of "WebCategories_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/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_BackendAddressPoolCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_BackendAddressPoolCollection.cs index 1da353ea479f..3f31ac57153f 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_BackendAddressPoolCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_BackendAddressPoolCollection.cs @@ -20,7 +20,7 @@ public partial class Sample_BackendAddressPoolCollection [Ignore("Only validating compilation of examples")] public async Task GetAll_LoadBalancerWithBackendAddressPoolContainingBackendAddresses() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/LBBackendAddressPoolListWithBackendAddressesPoolType.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/LBBackendAddressPoolListWithBackendAddressesPoolType.json // this example is just showing the usage of "LoadBalancerBackendAddressPools_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -56,7 +56,7 @@ public async Task GetAll_LoadBalancerWithBackendAddressPoolContainingBackendAddr [Ignore("Only validating compilation of examples")] public async Task GetAll_LoadBalancerBackendAddressPoolList() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/LoadBalancerBackendAddressPoolList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/LoadBalancerBackendAddressPoolList.json // this example is just showing the usage of "LoadBalancerBackendAddressPools_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 @@ -92,7 +92,7 @@ public async Task GetAll_LoadBalancerBackendAddressPoolList() [Ignore("Only validating compilation of examples")] public async Task Get_LoadBalancerWithBackendAddressPoolWithBackendAddresses() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/LBBackendAddressPoolWithBackendAddressesGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/LBBackendAddressPoolWithBackendAddressesGet.json // this example is just showing the usage of "LoadBalancerBackendAddressPools_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -126,7 +126,7 @@ public async Task Get_LoadBalancerWithBackendAddressPoolWithBackendAddresses() [Ignore("Only validating compilation of examples")] public async Task Exists_LoadBalancerWithBackendAddressPoolWithBackendAddresses() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/LBBackendAddressPoolWithBackendAddressesGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/LBBackendAddressPoolWithBackendAddressesGet.json // this example is just showing the usage of "LoadBalancerBackendAddressPools_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 @@ -156,7 +156,7 @@ public async Task Exists_LoadBalancerWithBackendAddressPoolWithBackendAddresses( [Ignore("Only validating compilation of examples")] public async Task GetIfExists_LoadBalancerWithBackendAddressPoolWithBackendAddresses() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/LBBackendAddressPoolWithBackendAddressesGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/LBBackendAddressPoolWithBackendAddressesGet.json // this example is just showing the usage of "LoadBalancerBackendAddressPools_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 @@ -198,7 +198,7 @@ public async Task GetIfExists_LoadBalancerWithBackendAddressPoolWithBackendAddre [Ignore("Only validating compilation of examples")] public async Task Get_LoadBalancerBackendAddressPoolGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/LoadBalancerBackendAddressPoolGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/LoadBalancerBackendAddressPoolGet.json // this example is just showing the usage of "LoadBalancerBackendAddressPools_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 @@ -232,7 +232,7 @@ public async Task Get_LoadBalancerBackendAddressPoolGet() [Ignore("Only validating compilation of examples")] public async Task Exists_LoadBalancerBackendAddressPoolGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/LoadBalancerBackendAddressPoolGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/LoadBalancerBackendAddressPoolGet.json // this example is just showing the usage of "LoadBalancerBackendAddressPools_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 @@ -262,7 +262,7 @@ public async Task Exists_LoadBalancerBackendAddressPoolGet() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_LoadBalancerBackendAddressPoolGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/LoadBalancerBackendAddressPoolGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/LoadBalancerBackendAddressPoolGet.json // this example is just showing the usage of "LoadBalancerBackendAddressPools_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 @@ -304,7 +304,7 @@ public async Task GetIfExists_LoadBalancerBackendAddressPoolGet() [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_UpdateLoadBalancerBackendPoolWithBackendAddressesContainingVirtualNetworkAndIPAddress() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/LBBackendAddressPoolWithBackendAddressesPut.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/LBBackendAddressPoolWithBackendAddressesPut.json // this example is just showing the usage of "LoadBalancerBackendAddressPools_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_BackendAddressPoolResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_BackendAddressPoolResource.cs index b6805a46ea32..f42a9dec1d48 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_BackendAddressPoolResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_BackendAddressPoolResource.cs @@ -20,7 +20,7 @@ public partial class Sample_BackendAddressPoolResource [Ignore("Only validating compilation of examples")] public async Task GetInboundNatRulePortMappingsLoadBalancer_QueryInboundNATRulePortMapping() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/QueryInboundNatRulePortMapping.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/QueryInboundNatRulePortMapping.json // this example is just showing the usage of "LoadBalancers_ListInboundNatRulePortMappings" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -52,7 +52,7 @@ public async Task GetInboundNatRulePortMappingsLoadBalancer_QueryInboundNATRuleP [Ignore("Only validating compilation of examples")] public async Task Get_LoadBalancerWithBackendAddressPoolWithBackendAddresses() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/LBBackendAddressPoolWithBackendAddressesGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/LBBackendAddressPoolWithBackendAddressesGet.json // this example is just showing the usage of "LoadBalancerBackendAddressPools_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -83,7 +83,7 @@ public async Task Get_LoadBalancerWithBackendAddressPoolWithBackendAddresses() [Ignore("Only validating compilation of examples")] public async Task Get_LoadBalancerBackendAddressPoolGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/LoadBalancerBackendAddressPoolGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/LoadBalancerBackendAddressPoolGet.json // this example is just showing the usage of "LoadBalancerBackendAddressPools_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -114,7 +114,7 @@ public async Task Get_LoadBalancerBackendAddressPoolGet() [Ignore("Only validating compilation of examples")] public async Task Update_UpdateLoadBalancerBackendPoolWithBackendAddressesContainingVirtualNetworkAndIPAddress() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/LBBackendAddressPoolWithBackendAddressesPut.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/LBBackendAddressPoolWithBackendAddressesPut.json // this example is just showing the usage of "LoadBalancerBackendAddressPools_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 @@ -163,7 +163,7 @@ public async Task Update_UpdateLoadBalancerBackendPoolWithBackendAddressesContai [Ignore("Only validating compilation of examples")] public async Task Delete_BackendAddressPoolDelete() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/LoadBalancerBackendAddressPoolDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/LoadBalancerBackendAddressPoolDelete.json // this example is just showing the usage of "LoadBalancerBackendAddressPools_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_BaseAdminRuleCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_BaseAdminRuleCollection.cs index dbb66f1327e1..0ba0b97b4660 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_BaseAdminRuleCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_BaseAdminRuleCollection.cs @@ -20,7 +20,7 @@ public partial class Sample_BaseAdminRuleCollection [Ignore("Only validating compilation of examples")] public async Task GetAll_ListSecurityAdminRules() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerAdminRuleList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkManagerAdminRuleList.json // this example is just showing the usage of "AdminRules_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 @@ -58,7 +58,7 @@ public async Task GetAll_ListSecurityAdminRules() [Ignore("Only validating compilation of examples")] public async Task Get_GetsSecurityAdminRule() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerAdminRuleGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkManagerAdminRuleGet.json // this example is just showing the usage of "AdminRules_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 @@ -94,7 +94,7 @@ public async Task Get_GetsSecurityAdminRule() [Ignore("Only validating compilation of examples")] public async Task Exists_GetsSecurityAdminRule() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerAdminRuleGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkManagerAdminRuleGet.json // this example is just showing the usage of "AdminRules_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -126,7 +126,7 @@ public async Task Exists_GetsSecurityAdminRule() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GetsSecurityAdminRule() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerAdminRuleGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkManagerAdminRuleGet.json // this example is just showing the usage of "AdminRules_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 GetIfExists_GetsSecurityAdminRule() [Ignore("Only validating compilation of examples")] public async Task Get_GetsSecurityDefaultAdminRule() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerDefaultAdminRuleGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkManagerDefaultAdminRuleGet.json // this example is just showing the usage of "AdminRules_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 @@ -206,7 +206,7 @@ public async Task Get_GetsSecurityDefaultAdminRule() [Ignore("Only validating compilation of examples")] public async Task Exists_GetsSecurityDefaultAdminRule() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerDefaultAdminRuleGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkManagerDefaultAdminRuleGet.json // this example is just showing the usage of "AdminRules_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 @@ -238,7 +238,7 @@ public async Task Exists_GetsSecurityDefaultAdminRule() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GetsSecurityDefaultAdminRule() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerDefaultAdminRuleGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkManagerDefaultAdminRuleGet.json // this example is just showing the usage of "AdminRules_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 @@ -280,9 +280,9 @@ public async Task GetIfExists_GetsSecurityDefaultAdminRule() [Test] [Ignore("Only validating compilation of examples")] - public async Task CreateOrUpdate_CreateADefaultAdminRule() + public async Task CreateOrUpdate_CreateAAdminRuleWithNetworkGroupAsSourceOrDestination() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerDefaultAdminRulePut.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkManagerAdminRulePut_NetworkGroupSource.json // this example is just showing the usage of "AdminRules_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 @@ -304,10 +304,38 @@ public async Task CreateOrUpdate_CreateADefaultAdminRule() BaseAdminRuleCollection collection = adminRuleGroup.GetBaseAdminRules(); // invoke the operation - string ruleName = "SampleDefaultAdminRule"; - BaseAdminRuleData data = new NetworkDefaultAdminRule() + string ruleName = "SampleAdminRule"; + BaseAdminRuleData data = new NetworkAdminRule() { - Flag = "AllowVnetInbound", + Description = "This is Sample Admin Rule", + Protocol = SecurityConfigurationRuleProtocol.Tcp, + Sources = +{ +new AddressPrefixItem() +{ +AddressPrefix = "Internet", +AddressPrefixType = AddressPrefixType.ServiceTag, +} +}, + Destinations = +{ +new AddressPrefixItem() +{ +AddressPrefix = "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/networkManagers/testNetworkManager/networkGroups/ng1", +AddressPrefixType = AddressPrefixType.NetworkGroup, +} +}, + SourcePortRanges = +{ +"0-65535" +}, + DestinationPortRanges = +{ +"22" +}, + Access = SecurityConfigurationRuleAccess.Deny, + Priority = 1, + Direction = SecurityConfigurationRuleDirection.Inbound, }; ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, ruleName, data); BaseAdminRuleResource result = lro.Value; @@ -323,7 +351,7 @@ public async Task CreateOrUpdate_CreateADefaultAdminRule() [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_CreateAnAdminRule() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerAdminRulePut.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkManagerAdminRulePut.json // this example is just showing the usage of "AdminRules_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_BaseAdminRuleResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_BaseAdminRuleResource.cs index c45853c5d35d..63def8e75b3a 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_BaseAdminRuleResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_BaseAdminRuleResource.cs @@ -20,7 +20,7 @@ public partial class Sample_BaseAdminRuleResource [Ignore("Only validating compilation of examples")] public async Task Get_GetsSecurityAdminRule() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerAdminRuleGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkManagerAdminRuleGet.json // this example is just showing the usage of "AdminRules_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -53,7 +53,7 @@ public async Task Get_GetsSecurityAdminRule() [Ignore("Only validating compilation of examples")] public async Task Get_GetsSecurityDefaultAdminRule() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerDefaultAdminRuleGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkManagerDefaultAdminRuleGet.json // this example is just showing the usage of "AdminRules_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 @@ -84,9 +84,9 @@ public async Task Get_GetsSecurityDefaultAdminRule() [Test] [Ignore("Only validating compilation of examples")] - public async Task Update_CreateADefaultAdminRule() + public async Task Update_CreateAAdminRuleWithNetworkGroupAsSourceOrDestination() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerDefaultAdminRulePut.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkManagerAdminRulePut_NetworkGroupSource.json // this example is just showing the usage of "AdminRules_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 @@ -101,14 +101,42 @@ public async Task Update_CreateADefaultAdminRule() string networkManagerName = "testNetworkManager"; string configurationName = "myTestSecurityConfig"; string ruleCollectionName = "testRuleCollection"; - string ruleName = "SampleDefaultAdminRule"; + string ruleName = "SampleAdminRule"; ResourceIdentifier baseAdminRuleResourceId = BaseAdminRuleResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, networkManagerName, configurationName, ruleCollectionName, ruleName); BaseAdminRuleResource baseAdminRule = client.GetBaseAdminRuleResource(baseAdminRuleResourceId); // invoke the operation - BaseAdminRuleData data = new NetworkDefaultAdminRule() + BaseAdminRuleData data = new NetworkAdminRule() { - Flag = "AllowVnetInbound", + Description = "This is Sample Admin Rule", + Protocol = SecurityConfigurationRuleProtocol.Tcp, + Sources = +{ +new AddressPrefixItem() +{ +AddressPrefix = "Internet", +AddressPrefixType = AddressPrefixType.ServiceTag, +} +}, + Destinations = +{ +new AddressPrefixItem() +{ +AddressPrefix = "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/networkManagers/testNetworkManager/networkGroups/ng1", +AddressPrefixType = AddressPrefixType.NetworkGroup, +} +}, + SourcePortRanges = +{ +"0-65535" +}, + DestinationPortRanges = +{ +"22" +}, + Access = SecurityConfigurationRuleAccess.Deny, + Priority = 1, + Direction = SecurityConfigurationRuleDirection.Inbound, }; ArmOperation lro = await baseAdminRule.UpdateAsync(WaitUntil.Completed, data); BaseAdminRuleResource result = lro.Value; @@ -124,7 +152,7 @@ public async Task Update_CreateADefaultAdminRule() [Ignore("Only validating compilation of examples")] public async Task Update_CreateAnAdminRule() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerAdminRulePut.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkManagerAdminRulePut.json // this example is just showing the usage of "AdminRules_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 @@ -190,7 +218,7 @@ public async Task Update_CreateAnAdminRule() [Ignore("Only validating compilation of examples")] public async Task Delete_DeletesAnAdminRule() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerAdminRuleDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkManagerAdminRuleDelete.json // this example is just showing the usage of "AdminRules_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_BastionHostCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_BastionHostCollection.cs index fa822078d056..87365306aa12 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_BastionHostCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_BastionHostCollection.cs @@ -21,7 +21,7 @@ public partial class Sample_BastionHostCollection [Ignore("Only validating compilation of examples")] public async Task Get_GetBastionHost() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/BastionHostGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/BastionHostGet.json // this example is just showing the usage of "BastionHosts_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -54,7 +54,7 @@ public async Task Get_GetBastionHost() [Ignore("Only validating compilation of examples")] public async Task Exists_GetBastionHost() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/BastionHostGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/BastionHostGet.json // this example is just showing the usage of "BastionHosts_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -83,7 +83,7 @@ public async Task Exists_GetBastionHost() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GetBastionHost() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/BastionHostGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/BastionHostGet.json // this example is just showing the usage of "BastionHosts_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 @@ -120,11 +120,114 @@ public async Task GetIfExists_GetBastionHost() } } + [Test] + [Ignore("Only validating compilation of examples")] + public async Task Get_GetBastionHostWithPrivateOnly() + { + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/BastionHostGetWithPrivateOnly.json + // this example is just showing the usage of "BastionHosts_Get" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this ResourceGroupResource created on azure + // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource + string subscriptionId = "subid"; + string resourceGroupName = "rg1"; + ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName); + ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId); + + // get the collection of this BastionHostResource + BastionHostCollection collection = resourceGroupResource.GetBastionHosts(); + + // invoke the operation + string bastionHostName = "bastionhosttenant"; + BastionHostResource result = await collection.GetAsync(bastionHostName); + + // 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 + BastionHostData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + [Test] + [Ignore("Only validating compilation of examples")] + public async Task Exists_GetBastionHostWithPrivateOnly() + { + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/BastionHostGetWithPrivateOnly.json + // this example is just showing the usage of "BastionHosts_Get" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this ResourceGroupResource created on azure + // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource + string subscriptionId = "subid"; + string resourceGroupName = "rg1"; + ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName); + ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId); + + // get the collection of this BastionHostResource + BastionHostCollection collection = resourceGroupResource.GetBastionHosts(); + + // invoke the operation + string bastionHostName = "bastionhosttenant"; + bool result = await collection.ExistsAsync(bastionHostName); + + Console.WriteLine($"Succeeded: {result}"); + } + + [Test] + [Ignore("Only validating compilation of examples")] + public async Task GetIfExists_GetBastionHostWithPrivateOnly() + { + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/BastionHostGetWithPrivateOnly.json + // this example is just showing the usage of "BastionHosts_Get" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this ResourceGroupResource created on azure + // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource + string subscriptionId = "subid"; + string resourceGroupName = "rg1"; + ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName); + ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId); + + // get the collection of this BastionHostResource + BastionHostCollection collection = resourceGroupResource.GetBastionHosts(); + + // invoke the operation + string bastionHostName = "bastionhosttenant"; + NullableResponse response = await collection.GetIfExistsAsync(bastionHostName); + BastionHostResource 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 + BastionHostData 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_GetBastionHostWithZones() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/BastionHostGetWithZones.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/BastionHostGetWithZones.json // this example is just showing the usage of "BastionHosts_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 @@ -143,7 +246,7 @@ public async Task Get_GetBastionHostWithZones() BastionHostCollection collection = resourceGroupResource.GetBastionHosts(); // invoke the operation - string bastionHostName = "bastionhosttenant'"; + string bastionHostName = "bastionhosttenant"; BastionHostResource result = await collection.GetAsync(bastionHostName); // the variable result is a resource, you could call other operations on this instance as well @@ -157,7 +260,7 @@ public async Task Get_GetBastionHostWithZones() [Ignore("Only validating compilation of examples")] public async Task Exists_GetBastionHostWithZones() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/BastionHostGetWithZones.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/BastionHostGetWithZones.json // this example is just showing the usage of "BastionHosts_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 @@ -176,7 +279,7 @@ public async Task Exists_GetBastionHostWithZones() BastionHostCollection collection = resourceGroupResource.GetBastionHosts(); // invoke the operation - string bastionHostName = "bastionhosttenant'"; + string bastionHostName = "bastionhosttenant"; bool result = await collection.ExistsAsync(bastionHostName); Console.WriteLine($"Succeeded: {result}"); @@ -186,7 +289,7 @@ public async Task Exists_GetBastionHostWithZones() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GetBastionHostWithZones() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/BastionHostGetWithZones.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/BastionHostGetWithZones.json // this example is just showing the usage of "BastionHosts_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -205,7 +308,7 @@ public async Task GetIfExists_GetBastionHostWithZones() BastionHostCollection collection = resourceGroupResource.GetBastionHosts(); // invoke the operation - string bastionHostName = "bastionhosttenant'"; + string bastionHostName = "bastionhosttenant"; NullableResponse response = await collection.GetIfExistsAsync(bastionHostName); BastionHostResource result = response.HasValue ? response.Value : null; @@ -227,7 +330,7 @@ public async Task GetIfExists_GetBastionHostWithZones() [Ignore("Only validating compilation of examples")] public async Task Get_GetDeveloperBastionHost() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/BastionHostDeveloperGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/BastionHostDeveloperGet.json // this example is just showing the usage of "BastionHosts_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 @@ -260,7 +363,7 @@ public async Task Get_GetDeveloperBastionHost() [Ignore("Only validating compilation of examples")] public async Task Exists_GetDeveloperBastionHost() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/BastionHostDeveloperGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/BastionHostDeveloperGet.json // this example is just showing the usage of "BastionHosts_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 @@ -289,7 +392,7 @@ public async Task Exists_GetDeveloperBastionHost() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GetDeveloperBastionHost() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/BastionHostDeveloperGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/BastionHostDeveloperGet.json // this example is just showing the usage of "BastionHosts_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 @@ -330,7 +433,7 @@ public async Task GetIfExists_GetDeveloperBastionHost() [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_CreateBastionHost() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/BastionHostPut.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/BastionHostPut.json // this example is just showing the usage of "BastionHosts_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 @@ -372,11 +475,57 @@ public async Task CreateOrUpdate_CreateBastionHost() Console.WriteLine($"Succeeded on id: {resourceData.Id}"); } + [Test] + [Ignore("Only validating compilation of examples")] + public async Task CreateOrUpdate_CreateBastionHostWithPrivateOnly() + { + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/BastionHostPutWithPrivateOnly.json + // this example is just showing the usage of "BastionHosts_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this ResourceGroupResource created on azure + // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource + string subscriptionId = "subid"; + string resourceGroupName = "rg1"; + ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName); + ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId); + + // get the collection of this BastionHostResource + BastionHostCollection collection = resourceGroupResource.GetBastionHosts(); + + // invoke the operation + string bastionHostName = "bastionhosttenant"; + BastionHostData data = new BastionHostData() + { + IPConfigurations = +{ +new BastionHostIPConfiguration() +{ +SubnetId = new ResourceIdentifier("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/vnet2/subnets/BastionHostSubnet"), +Name = "bastionHostIpConfiguration", +} +}, + EnablePrivateOnlyBastion = true, + }; + ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, bastionHostName, data); + BastionHostResource 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 + BastionHostData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + [Test] [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_CreateBastionHostWithZones() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/BastionHostPutWithZones.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/BastionHostPutWithZones.json // this example is just showing the usage of "BastionHosts_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 @@ -422,7 +571,7 @@ public async Task CreateOrUpdate_CreateBastionHostWithZones() [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_CreateDeveloperBastionHost() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/BastionHostDeveloperPut.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/BastionHostDeveloperPut.json // this example is just showing the usage of "BastionHosts_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 @@ -470,7 +619,7 @@ public async Task CreateOrUpdate_CreateDeveloperBastionHost() [Ignore("Only validating compilation of examples")] public async Task GetAll_ListAllBastionHostsForAGivenResourceGroup() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/BastionHostListByResourceGroup.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/BastionHostListByResourceGroup.json // this example is just showing the usage of "BastionHosts_ListByResourceGroup" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_BastionHostResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_BastionHostResource.cs index 10f03bd77107..852634eaea58 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_BastionHostResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_BastionHostResource.cs @@ -21,7 +21,7 @@ public partial class Sample_BastionHostResource [Ignore("Only validating compilation of examples")] public async Task Delete_DeleteBastionHost() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/BastionHostDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/BastionHostDelete.json // this example is just showing the usage of "BastionHosts_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 @@ -47,7 +47,7 @@ public async Task Delete_DeleteBastionHost() [Ignore("Only validating compilation of examples")] public async Task Delete_DeleteDeveloperBastionHost() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/BastionHostDeveloperDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/BastionHostDeveloperDelete.json // this example is just showing the usage of "BastionHosts_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 @@ -73,7 +73,7 @@ public async Task Delete_DeleteDeveloperBastionHost() [Ignore("Only validating compilation of examples")] public async Task Get_GetBastionHost() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/BastionHostGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/BastionHostGet.json // this example is just showing the usage of "BastionHosts_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 @@ -99,11 +99,41 @@ public async Task Get_GetBastionHost() Console.WriteLine($"Succeeded on id: {resourceData.Id}"); } + [Test] + [Ignore("Only validating compilation of examples")] + public async Task Get_GetBastionHostWithPrivateOnly() + { + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/BastionHostGetWithPrivateOnly.json + // this example is just showing the usage of "BastionHosts_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 BastionHostResource created on azure + // for more information of creating BastionHostResource, please refer to the document of BastionHostResource + string subscriptionId = "subid"; + string resourceGroupName = "rg1"; + string bastionHostName = "bastionhosttenant"; + ResourceIdentifier bastionHostResourceId = BastionHostResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, bastionHostName); + BastionHostResource bastionHost = client.GetBastionHostResource(bastionHostResourceId); + + // invoke the operation + BastionHostResource result = await bastionHost.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 + BastionHostData 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_GetBastionHostWithZones() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/BastionHostGetWithZones.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/BastionHostGetWithZones.json // this example is just showing the usage of "BastionHosts_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 @@ -115,7 +145,7 @@ public async Task Get_GetBastionHostWithZones() // for more information of creating BastionHostResource, please refer to the document of BastionHostResource string subscriptionId = "subid"; string resourceGroupName = "rg1"; - string bastionHostName = "bastionhosttenant'"; + string bastionHostName = "bastionhosttenant"; ResourceIdentifier bastionHostResourceId = BastionHostResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, bastionHostName); BastionHostResource bastionHost = client.GetBastionHostResource(bastionHostResourceId); @@ -133,7 +163,7 @@ public async Task Get_GetBastionHostWithZones() [Ignore("Only validating compilation of examples")] public async Task Get_GetDeveloperBastionHost() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/BastionHostDeveloperGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/BastionHostDeveloperGet.json // this example is just showing the usage of "BastionHosts_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 @@ -163,7 +193,7 @@ public async Task Get_GetDeveloperBastionHost() [Ignore("Only validating compilation of examples")] public async Task Update_PatchBastionHost() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/BastionHostPatch.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/BastionHostPatch.json // this example is just showing the usage of "BastionHosts_UpdateTags" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -202,7 +232,7 @@ public async Task Update_PatchBastionHost() [Ignore("Only validating compilation of examples")] public async Task GetBastionHosts_ListAllBastionHostsForAGivenSubscription() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/BastionHostListBySubscription.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/BastionHostListBySubscription.json // this example is just showing the usage of "BastionHosts_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 @@ -233,7 +263,7 @@ public async Task GetBastionHosts_ListAllBastionHostsForAGivenSubscription() [Ignore("Only validating compilation of examples")] public async Task DeleteBastionShareableLinkByToken_DeleteBastionShareableLinksForTheRequestVMs() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/BastionShareableLinkDeleteByToken.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/BastionShareableLinkDeleteByToken.json // this example is just showing the usage of "DeleteBastionShareableLinkByToken" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details 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/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_BgpConnectionCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_BgpConnectionCollection.cs index 0f97ce872073..320a1aabceb0 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_BgpConnectionCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_BgpConnectionCollection.cs @@ -19,7 +19,7 @@ public partial class Sample_BgpConnectionCollection [Ignore("Only validating compilation of examples")] public async Task Get_VirtualHubVirtualHubRouteTableV2Get() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualHubBgpConnectionGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VirtualHubBgpConnectionGet.json // this example is just showing the usage of "VirtualHubBgpConnection_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -53,7 +53,7 @@ public async Task Get_VirtualHubVirtualHubRouteTableV2Get() [Ignore("Only validating compilation of examples")] public async Task Exists_VirtualHubVirtualHubRouteTableV2Get() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualHubBgpConnectionGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VirtualHubBgpConnectionGet.json // this example is just showing the usage of "VirtualHubBgpConnection_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -83,7 +83,7 @@ public async Task Exists_VirtualHubVirtualHubRouteTableV2Get() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_VirtualHubVirtualHubRouteTableV2Get() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualHubBgpConnectionGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VirtualHubBgpConnectionGet.json // this example is just showing the usage of "VirtualHubBgpConnection_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -125,7 +125,7 @@ public async Task GetIfExists_VirtualHubVirtualHubRouteTableV2Get() [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_VirtualHubRouteTableV2Put() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualHubBgpConnectionPut.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VirtualHubBgpConnectionPut.json // this example is just showing the usage of "VirtualHubBgpConnection_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 @@ -166,7 +166,7 @@ public async Task CreateOrUpdate_VirtualHubRouteTableV2Put() [Ignore("Only validating compilation of examples")] public async Task GetAll_VirtualHubRouteTableV2List() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualHubBgpConnectionList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VirtualHubBgpConnectionList.json // this example is just showing the usage of "VirtualHubBgpConnections_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_BgpConnectionResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_BgpConnectionResource.cs index 9b7969077961..46e81f193334 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_BgpConnectionResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_BgpConnectionResource.cs @@ -21,7 +21,7 @@ public partial class Sample_BgpConnectionResource [Ignore("Only validating compilation of examples")] public async Task Get_VirtualHubVirtualHubRouteTableV2Get() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualHubBgpConnectionGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VirtualHubBgpConnectionGet.json // this example is just showing the usage of "VirtualHubBgpConnection_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 @@ -52,7 +52,7 @@ public async Task Get_VirtualHubVirtualHubRouteTableV2Get() [Ignore("Only validating compilation of examples")] public async Task Update_VirtualHubRouteTableV2Put() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualHubBgpConnectionPut.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VirtualHubBgpConnectionPut.json // this example is just showing the usage of "VirtualHubBgpConnection_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 @@ -90,7 +90,7 @@ public async Task Update_VirtualHubRouteTableV2Put() [Ignore("Only validating compilation of examples")] public async Task Delete_VirtualHubRouteTableV2Delete() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualHubBgpConnectionDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VirtualHubBgpConnectionDelete.json // this example is just showing the usage of "VirtualHubBgpConnection_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 @@ -117,7 +117,7 @@ public async Task Delete_VirtualHubRouteTableV2Delete() [Ignore("Only validating compilation of examples")] public async Task GetVirtualHubBgpConnectionLearnedRoutes_VirtualRouterPeerListLearnedRoutes() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualRouterPeerListLearnedRoute.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VirtualRouterPeerListLearnedRoute.json // this example is just showing the usage of "VirtualHubBgpConnections_ListLearnedRoutes" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -145,7 +145,7 @@ public async Task GetVirtualHubBgpConnectionLearnedRoutes_VirtualRouterPeerListL [Ignore("Only validating compilation of examples")] public async Task GetVirtualHubBgpConnectionAdvertisedRoutes_VirtualRouterPeerListAdvertisedRoutes() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualRouterPeerListAdvertisedRoute.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VirtualRouterPeerListAdvertisedRoute.json // this example is just showing the usage of "VirtualHubBgpConnections_ListAdvertisedRoutes" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details 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/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_CloudServiceSwapCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_CloudServiceSwapCollection.cs index a6976dddfddf..4536164bebae 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_CloudServiceSwapCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_CloudServiceSwapCollection.cs @@ -21,7 +21,7 @@ public partial class Sample_CloudServiceSwapCollection [Ignore("Only validating compilation of examples")] public async Task Get_GetSwapResource() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/CloudServiceSwapGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/CloudServiceSwapGet.json // this example is just showing the usage of "VipSwap_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -54,7 +54,7 @@ public async Task Get_GetSwapResource() [Ignore("Only validating compilation of examples")] public async Task Exists_GetSwapResource() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/CloudServiceSwapGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/CloudServiceSwapGet.json // this example is just showing the usage of "VipSwap_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -83,7 +83,7 @@ public async Task Exists_GetSwapResource() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GetSwapResource() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/CloudServiceSwapGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/CloudServiceSwapGet.json // this example is just showing the usage of "VipSwap_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 @@ -124,7 +124,7 @@ public async Task GetIfExists_GetSwapResource() [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_PutVipSwapOperation() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/CloudServiceSwapPut.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/CloudServiceSwapPut.json // this example is just showing the usage of "VipSwap_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 @@ -157,7 +157,7 @@ public async Task CreateOrUpdate_PutVipSwapOperation() [Ignore("Only validating compilation of examples")] public async Task GetAll_GetSwapResourceList() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/CloudServiceSwapList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/CloudServiceSwapList.json // this example is just showing the usage of "VipSwap_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_CloudServiceSwapResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_CloudServiceSwapResource.cs index 7deaed06484a..59e6d615fc24 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_CloudServiceSwapResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_CloudServiceSwapResource.cs @@ -20,7 +20,7 @@ public partial class Sample_CloudServiceSwapResource [Ignore("Only validating compilation of examples")] public async Task Get_GetSwapResource() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/CloudServiceSwapGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/CloudServiceSwapGet.json // this example is just showing the usage of "VipSwap_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_GetSwapResource() [Ignore("Only validating compilation of examples")] public async Task Update_PutVipSwapOperation() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/CloudServiceSwapPut.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/CloudServiceSwapPut.json // this example is just showing the usage of "VipSwap_Create" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ConnectionMonitorCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ConnectionMonitorCollection.cs index 8aab0de9dea2..290e94dc772e 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ConnectionMonitorCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ConnectionMonitorCollection.cs @@ -20,7 +20,7 @@ public partial class Sample_ConnectionMonitorCollection [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_CreateConnectionMonitorV1() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkWatcherConnectionMonitorCreate.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkWatcherConnectionMonitorCreate.json // this example is just showing the usage of "ConnectionMonitors_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -93,7 +93,7 @@ public async Task CreateOrUpdate_CreateConnectionMonitorV1() [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_CreateConnectionMonitorV2() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkWatcherConnectionMonitorV2Create.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkWatcherConnectionMonitorV2Create.json // this example is just showing the usage of "ConnectionMonitors_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 @@ -190,7 +190,7 @@ public async Task CreateOrUpdate_CreateConnectionMonitorV2() [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_CreateConnectionMonitorWithArcNetwork() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkWatcherConnectionMonitorCreateWithArcNetwork.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkWatcherConnectionMonitorCreateWithArcNetwork.json // this example is just showing the usage of "ConnectionMonitors_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 @@ -290,7 +290,7 @@ public async Task CreateOrUpdate_CreateConnectionMonitorWithArcNetwork() [Ignore("Only validating compilation of examples")] public async Task Get_GetConnectionMonitor() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkWatcherConnectionMonitorGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkWatcherConnectionMonitorGet.json // this example is just showing the usage of "ConnectionMonitors_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 @@ -324,7 +324,7 @@ public async Task Get_GetConnectionMonitor() [Ignore("Only validating compilation of examples")] public async Task Exists_GetConnectionMonitor() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkWatcherConnectionMonitorGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkWatcherConnectionMonitorGet.json // this example is just showing the usage of "ConnectionMonitors_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 @@ -354,7 +354,7 @@ public async Task Exists_GetConnectionMonitor() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GetConnectionMonitor() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkWatcherConnectionMonitorGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkWatcherConnectionMonitorGet.json // this example is just showing the usage of "ConnectionMonitors_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 @@ -396,7 +396,7 @@ public async Task GetIfExists_GetConnectionMonitor() [Ignore("Only validating compilation of examples")] public async Task GetAll_ListConnectionMonitors() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkWatcherConnectionMonitorList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkWatcherConnectionMonitorList.json // this example is just showing the usage of "ConnectionMonitors_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ConnectionMonitorResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ConnectionMonitorResource.cs index 2a0f3aa26c9c..e9fec7501c37 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ConnectionMonitorResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ConnectionMonitorResource.cs @@ -20,7 +20,7 @@ public partial class Sample_ConnectionMonitorResource [Ignore("Only validating compilation of examples")] public async Task Get_GetConnectionMonitor() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkWatcherConnectionMonitorGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkWatcherConnectionMonitorGet.json // this example is just showing the usage of "ConnectionMonitors_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 @@ -51,7 +51,7 @@ public async Task Get_GetConnectionMonitor() [Ignore("Only validating compilation of examples")] public async Task Delete_DeleteConnectionMonitor() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkWatcherConnectionMonitorDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkWatcherConnectionMonitorDelete.json // this example is just showing the usage of "ConnectionMonitors_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 @@ -78,7 +78,7 @@ public async Task Delete_DeleteConnectionMonitor() [Ignore("Only validating compilation of examples")] public async Task Update_UpdateConnectionMonitorTags() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkWatcherConnectionMonitorUpdateTags.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkWatcherConnectionMonitorUpdateTags.json // this example is just showing the usage of "ConnectionMonitors_UpdateTags" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -117,7 +117,7 @@ public async Task Update_UpdateConnectionMonitorTags() [Ignore("Only validating compilation of examples")] public async Task Stop_StopConnectionMonitor() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkWatcherConnectionMonitorStop.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkWatcherConnectionMonitorStop.json // this example is just showing the usage of "ConnectionMonitors_Stop" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -144,7 +144,7 @@ public async Task Stop_StopConnectionMonitor() [Ignore("Only validating compilation of examples")] public async Task Start_StartConnectionMonitor() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkWatcherConnectionMonitorStart.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkWatcherConnectionMonitorStart.json // this example is just showing the usage of "ConnectionMonitors_Start" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -171,7 +171,7 @@ public async Task Start_StartConnectionMonitor() [Ignore("Only validating compilation of examples")] public async Task Query_QueryConnectionMonitor() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkWatcherConnectionMonitorQuery.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkWatcherConnectionMonitorQuery.json // this example is just showing the usage of "ConnectionMonitors_Query" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details 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/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ConnectivityConfigurationCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ConnectivityConfigurationCollection.cs index 2194533fe116..8dfa5f6bd6b3 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ConnectivityConfigurationCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ConnectivityConfigurationCollection.cs @@ -20,7 +20,7 @@ public partial class Sample_ConnectivityConfigurationCollection [Ignore("Only validating compilation of examples")] public async Task Get_ConnectivityConfigurationsGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerConnectivityConfigurationGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkManagerConnectivityConfigurationGet.json // this example is just showing the usage of "ConnectivityConfigurations_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -54,7 +54,7 @@ public async Task Get_ConnectivityConfigurationsGet() [Ignore("Only validating compilation of examples")] public async Task Exists_ConnectivityConfigurationsGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerConnectivityConfigurationGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkManagerConnectivityConfigurationGet.json // this example is just showing the usage of "ConnectivityConfigurations_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 @@ -84,7 +84,7 @@ public async Task Exists_ConnectivityConfigurationsGet() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_ConnectivityConfigurationsGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerConnectivityConfigurationGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkManagerConnectivityConfigurationGet.json // this example is just showing the usage of "ConnectivityConfigurations_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -126,7 +126,7 @@ public async Task GetIfExists_ConnectivityConfigurationsGet() [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_ConnectivityConfigurationsPut() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerConnectivityConfigurationPut.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkManagerConnectivityConfigurationPut.json // this example is just showing the usage of "ConnectivityConfigurations_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -184,7 +184,7 @@ public async Task CreateOrUpdate_ConnectivityConfigurationsPut() [Ignore("Only validating compilation of examples")] public async Task GetAll_ConnectivityConfigurationsList() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerConnectivityConfigurationList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkManagerConnectivityConfigurationList.json // this example is just showing the usage of "ConnectivityConfigurations_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ConnectivityConfigurationResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ConnectivityConfigurationResource.cs index 3f05ade43419..fc0e03bc2224 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ConnectivityConfigurationResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ConnectivityConfigurationResource.cs @@ -20,7 +20,7 @@ public partial class Sample_ConnectivityConfigurationResource [Ignore("Only validating compilation of examples")] public async Task Get_ConnectivityConfigurationsGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerConnectivityConfigurationGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkManagerConnectivityConfigurationGet.json // this example is just showing the usage of "ConnectivityConfigurations_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 @@ -51,7 +51,7 @@ public async Task Get_ConnectivityConfigurationsGet() [Ignore("Only validating compilation of examples")] public async Task Update_ConnectivityConfigurationsPut() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerConnectivityConfigurationPut.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkManagerConnectivityConfigurationPut.json // this example is just showing the usage of "ConnectivityConfigurations_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 @@ -106,7 +106,7 @@ public async Task Update_ConnectivityConfigurationsPut() [Ignore("Only validating compilation of examples")] public async Task Delete_ConnectivityConfigurationsDelete() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerConnectivityConfigurationDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkManagerConnectivityConfigurationDelete.json // this example is just showing the usage of "ConnectivityConfigurations_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_CustomIPPrefixCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_CustomIPPrefixCollection.cs index 7df4dcbeac70..c8c481e55f40 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_CustomIPPrefixCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_CustomIPPrefixCollection.cs @@ -20,7 +20,7 @@ public partial class Sample_CustomIPPrefixCollection [Ignore("Only validating compilation of examples")] public async Task Get_GetCustomIPPrefix() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/CustomIpPrefixGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/CustomIpPrefixGet.json // this example is just showing the usage of "CustomIPPrefixes_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -53,7 +53,7 @@ public async Task Get_GetCustomIPPrefix() [Ignore("Only validating compilation of examples")] public async Task Exists_GetCustomIPPrefix() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/CustomIpPrefixGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/CustomIpPrefixGet.json // this example is just showing the usage of "CustomIPPrefixes_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -82,7 +82,7 @@ public async Task Exists_GetCustomIPPrefix() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GetCustomIPPrefix() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/CustomIpPrefixGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/CustomIpPrefixGet.json // this example is just showing the usage of "CustomIPPrefixes_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 @@ -123,7 +123,7 @@ public async Task GetIfExists_GetCustomIPPrefix() [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_CreateCustomIPPrefixAllocationMethod() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/CustomIpPrefixCreateCustomizedValues.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/CustomIpPrefixCreateCustomizedValues.json // this example is just showing the usage of "CustomIPPrefixes_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 @@ -162,7 +162,7 @@ public async Task CreateOrUpdate_CreateCustomIPPrefixAllocationMethod() [Ignore("Only validating compilation of examples")] public async Task GetAll_ListResourceGroupCustomIPPrefixes() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/CustomIpPrefixList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/CustomIpPrefixList.json // this example is just showing the usage of "CustomIPPrefixes_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_CustomIPPrefixResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_CustomIPPrefixResource.cs index 5266573cdfdc..fc1c63556e4e 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_CustomIPPrefixResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_CustomIPPrefixResource.cs @@ -21,7 +21,7 @@ public partial class Sample_CustomIPPrefixResource [Ignore("Only validating compilation of examples")] public async Task Delete_DeleteCustomIPPrefix() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/CustomIpPrefixDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/CustomIpPrefixDelete.json // this example is just showing the usage of "CustomIPPrefixes_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 @@ -47,7 +47,7 @@ public async Task Delete_DeleteCustomIPPrefix() [Ignore("Only validating compilation of examples")] public async Task Get_GetCustomIPPrefix() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/CustomIpPrefixGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/CustomIpPrefixGet.json // this example is just showing the usage of "CustomIPPrefixes_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 @@ -77,7 +77,7 @@ public async Task Get_GetCustomIPPrefix() [Ignore("Only validating compilation of examples")] public async Task Update_UpdatePublicIPAddressTags() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/CustomIpPrefixUpdateTags.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/CustomIpPrefixUpdateTags.json // this example is just showing the usage of "CustomIPPrefixes_UpdateTags" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -115,7 +115,7 @@ public async Task Update_UpdatePublicIPAddressTags() [Ignore("Only validating compilation of examples")] public async Task GetCustomIPPrefixes_ListAllCustomIPPrefixes() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/CustomIpPrefixListAll.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/CustomIpPrefixListAll.json // this example is just showing the usage of "CustomIPPrefixes_ListAll" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details 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/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_DdosCustomPolicyCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_DdosCustomPolicyCollection.cs index b289cd9aed6a..bc08b2fce055 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_DdosCustomPolicyCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_DdosCustomPolicyCollection.cs @@ -20,7 +20,7 @@ public partial class Sample_DdosCustomPolicyCollection [Ignore("Only validating compilation of examples")] public async Task Get_GetDDoSCustomPolicy() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/DdosCustomPolicyGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/DdosCustomPolicyGet.json // this example is just showing the usage of "DdosCustomPolicies_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -53,7 +53,7 @@ public async Task Get_GetDDoSCustomPolicy() [Ignore("Only validating compilation of examples")] public async Task Exists_GetDDoSCustomPolicy() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/DdosCustomPolicyGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/DdosCustomPolicyGet.json // this example is just showing the usage of "DdosCustomPolicies_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -82,7 +82,7 @@ public async Task Exists_GetDDoSCustomPolicy() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GetDDoSCustomPolicy() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/DdosCustomPolicyGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/DdosCustomPolicyGet.json // this example is just showing the usage of "DdosCustomPolicies_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 @@ -123,7 +123,7 @@ public async Task GetIfExists_GetDDoSCustomPolicy() [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_CreateDDoSCustomPolicy() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/DdosCustomPolicyCreate.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/DdosCustomPolicyCreate.json // this example is just showing the usage of "DdosCustomPolicies_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_DdosCustomPolicyResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_DdosCustomPolicyResource.cs index 9d67433add85..62fdf955bbf2 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_DdosCustomPolicyResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_DdosCustomPolicyResource.cs @@ -20,7 +20,7 @@ public partial class Sample_DdosCustomPolicyResource [Ignore("Only validating compilation of examples")] public async Task Delete_DeleteDDoSCustomPolicy() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/DdosCustomPolicyDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/DdosCustomPolicyDelete.json // this example is just showing the usage of "DdosCustomPolicies_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 @@ -46,7 +46,7 @@ public async Task Delete_DeleteDDoSCustomPolicy() [Ignore("Only validating compilation of examples")] public async Task Get_GetDDoSCustomPolicy() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/DdosCustomPolicyGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/DdosCustomPolicyGet.json // this example is just showing the usage of "DdosCustomPolicies_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -76,7 +76,7 @@ public async Task Get_GetDDoSCustomPolicy() [Ignore("Only validating compilation of examples")] public async Task Update_DDoSCustomPolicyUpdateTags() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/DdosCustomPolicyUpdateTags.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/DdosCustomPolicyUpdateTags.json // this example is just showing the usage of "DdosCustomPolicies_UpdateTags" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details 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/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_DdosProtectionPlanCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_DdosProtectionPlanCollection.cs index fd7ad1a41319..40580abab383 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_DdosProtectionPlanCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_DdosProtectionPlanCollection.cs @@ -20,7 +20,7 @@ public partial class Sample_DdosProtectionPlanCollection [Ignore("Only validating compilation of examples")] public async Task Get_GetDDoSProtectionPlan() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/DdosProtectionPlanGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/DdosProtectionPlanGet.json // this example is just showing the usage of "DdosProtectionPlans_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -53,7 +53,7 @@ public async Task Get_GetDDoSProtectionPlan() [Ignore("Only validating compilation of examples")] public async Task Exists_GetDDoSProtectionPlan() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/DdosProtectionPlanGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/DdosProtectionPlanGet.json // this example is just showing the usage of "DdosProtectionPlans_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -82,7 +82,7 @@ public async Task Exists_GetDDoSProtectionPlan() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GetDDoSProtectionPlan() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/DdosProtectionPlanGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/DdosProtectionPlanGet.json // this example is just showing the usage of "DdosProtectionPlans_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 @@ -123,7 +123,7 @@ public async Task GetIfExists_GetDDoSProtectionPlan() [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_CreateDDoSProtectionPlan() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/DdosProtectionPlanCreate.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/DdosProtectionPlanCreate.json // this example is just showing the usage of "DdosProtectionPlans_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 @@ -158,7 +158,7 @@ public async Task CreateOrUpdate_CreateDDoSProtectionPlan() [Ignore("Only validating compilation of examples")] public async Task GetAll_ListDDoSProtectionPlansInResourceGroup() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/DdosProtectionPlanList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/DdosProtectionPlanList.json // this example is just showing the usage of "DdosProtectionPlans_ListByResourceGroup" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_DdosProtectionPlanResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_DdosProtectionPlanResource.cs index cabe3afc6efa..d40941a1b541 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_DdosProtectionPlanResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_DdosProtectionPlanResource.cs @@ -21,7 +21,7 @@ public partial class Sample_DdosProtectionPlanResource [Ignore("Only validating compilation of examples")] public async Task Delete_DeleteDDoSProtectionPlan() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/DdosProtectionPlanDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/DdosProtectionPlanDelete.json // this example is just showing the usage of "DdosProtectionPlans_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 @@ -47,7 +47,7 @@ public async Task Delete_DeleteDDoSProtectionPlan() [Ignore("Only validating compilation of examples")] public async Task Get_GetDDoSProtectionPlan() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/DdosProtectionPlanGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/DdosProtectionPlanGet.json // this example is just showing the usage of "DdosProtectionPlans_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 @@ -77,7 +77,7 @@ public async Task Get_GetDDoSProtectionPlan() [Ignore("Only validating compilation of examples")] public async Task Update_DDoSProtectionPlanUpdateTags() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/DdosProtectionPlanUpdateTags.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/DdosProtectionPlanUpdateTags.json // this example is just showing the usage of "DdosProtectionPlans_UpdateTags" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -115,7 +115,7 @@ public async Task Update_DDoSProtectionPlanUpdateTags() [Ignore("Only validating compilation of examples")] public async Task GetDdosProtectionPlans_ListAllDDoSProtectionPlans() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/DdosProtectionPlanListAll.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/DdosProtectionPlanListAll.json // this example is just showing the usage of "DdosProtectionPlans_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_DefaultSecurityRuleCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_DefaultSecurityRuleCollection.cs index 7d7f35c58def..0ccf6374fbdd 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_DefaultSecurityRuleCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_DefaultSecurityRuleCollection.cs @@ -19,7 +19,7 @@ public partial class Sample_DefaultSecurityRuleCollection [Ignore("Only validating compilation of examples")] public async Task GetAll_DefaultSecurityRuleList() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/DefaultSecurityRuleList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/DefaultSecurityRuleList.json // this example is just showing the usage of "DefaultSecurityRules_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -55,7 +55,7 @@ public async Task GetAll_DefaultSecurityRuleList() [Ignore("Only validating compilation of examples")] public async Task Get_DefaultSecurityRuleGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/DefaultSecurityRuleGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/DefaultSecurityRuleGet.json // this example is just showing the usage of "DefaultSecurityRules_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -89,7 +89,7 @@ public async Task Get_DefaultSecurityRuleGet() [Ignore("Only validating compilation of examples")] public async Task Exists_DefaultSecurityRuleGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/DefaultSecurityRuleGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/DefaultSecurityRuleGet.json // this example is just showing the usage of "DefaultSecurityRules_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -119,7 +119,7 @@ public async Task Exists_DefaultSecurityRuleGet() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_DefaultSecurityRuleGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/DefaultSecurityRuleGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/DefaultSecurityRuleGet.json // this example is just showing the usage of "DefaultSecurityRules_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/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_DefaultSecurityRuleResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_DefaultSecurityRuleResource.cs index b936463c1429..96cf42f7793a 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_DefaultSecurityRuleResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_DefaultSecurityRuleResource.cs @@ -19,7 +19,7 @@ public partial class Sample_DefaultSecurityRuleResource [Ignore("Only validating compilation of examples")] public async Task Get_DefaultSecurityRuleGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/DefaultSecurityRuleGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/DefaultSecurityRuleGet.json // this example is just showing the usage of "DefaultSecurityRules_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/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_DscpConfigurationCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_DscpConfigurationCollection.cs index 522e7ec42e54..785ba8472461 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_DscpConfigurationCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_DscpConfigurationCollection.cs @@ -21,7 +21,7 @@ public partial class Sample_DscpConfigurationCollection [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_CreateDSCPConfiguration() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/DscpConfigurationCreate.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/DscpConfigurationCreate.json // this example is just showing the usage of "DscpConfiguration_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 @@ -145,7 +145,7 @@ public async Task CreateOrUpdate_CreateDSCPConfiguration() [Ignore("Only validating compilation of examples")] public async Task Get_GetDscpConfiguration() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/DscpConfigurationGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/DscpConfigurationGet.json // this example is just showing the usage of "DscpConfiguration_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -178,7 +178,7 @@ public async Task Get_GetDscpConfiguration() [Ignore("Only validating compilation of examples")] public async Task Exists_GetDscpConfiguration() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/DscpConfigurationGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/DscpConfigurationGet.json // this example is just showing the usage of "DscpConfiguration_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 @@ -207,7 +207,7 @@ public async Task Exists_GetDscpConfiguration() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GetDscpConfiguration() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/DscpConfigurationGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/DscpConfigurationGet.json // this example is just showing the usage of "DscpConfiguration_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 @@ -248,7 +248,7 @@ public async Task GetIfExists_GetDscpConfiguration() [Ignore("Only validating compilation of examples")] public async Task GetAll_GetDscpConfiguration() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/DscpConfigurationList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/DscpConfigurationList.json // this example is just showing the usage of "DscpConfiguration_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_DscpConfigurationResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_DscpConfigurationResource.cs index 1eaaaf6110ee..7adc70e08661 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_DscpConfigurationResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_DscpConfigurationResource.cs @@ -21,7 +21,7 @@ public partial class Sample_DscpConfigurationResource [Ignore("Only validating compilation of examples")] public async Task Update_CreateDSCPConfiguration() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/DscpConfigurationCreate.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/DscpConfigurationCreate.json // this example is just showing the usage of "DscpConfiguration_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 @@ -142,7 +142,7 @@ public async Task Update_CreateDSCPConfiguration() [Ignore("Only validating compilation of examples")] public async Task Delete_DeleteDSCPConfiguration() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/DscpConfigurationDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/DscpConfigurationDelete.json // this example is just showing the usage of "DscpConfiguration_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 @@ -168,7 +168,7 @@ public async Task Delete_DeleteDSCPConfiguration() [Ignore("Only validating compilation of examples")] public async Task Get_GetDscpConfiguration() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/DscpConfigurationGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/DscpConfigurationGet.json // this example is just showing the usage of "DscpConfiguration_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 @@ -198,7 +198,7 @@ public async Task Get_GetDscpConfiguration() [Ignore("Only validating compilation of examples")] public async Task GetDscpConfigurations_ListAllNetworkInterfaces() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/DscpConfigurationListAll.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/DscpConfigurationListAll.json // this example is just showing the usage of "DscpConfiguration_ListAll" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details 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/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteCircuitAuthorizationCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteCircuitAuthorizationCollection.cs index 39a5ad904c81..7852d8d614aa 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteCircuitAuthorizationCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteCircuitAuthorizationCollection.cs @@ -19,7 +19,7 @@ public partial class Sample_ExpressRouteCircuitAuthorizationCollection [Ignore("Only validating compilation of examples")] public async Task Get_GetExpressRouteCircuitAuthorization() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ExpressRouteCircuitAuthorizationGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/ExpressRouteCircuitAuthorizationGet.json // this example is just showing the usage of "ExpressRouteCircuitAuthorizations_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -53,7 +53,7 @@ public async Task Get_GetExpressRouteCircuitAuthorization() [Ignore("Only validating compilation of examples")] public async Task Exists_GetExpressRouteCircuitAuthorization() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ExpressRouteCircuitAuthorizationGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/ExpressRouteCircuitAuthorizationGet.json // this example is just showing the usage of "ExpressRouteCircuitAuthorizations_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -83,7 +83,7 @@ public async Task Exists_GetExpressRouteCircuitAuthorization() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GetExpressRouteCircuitAuthorization() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ExpressRouteCircuitAuthorizationGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/ExpressRouteCircuitAuthorizationGet.json // this example is just showing the usage of "ExpressRouteCircuitAuthorizations_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -125,7 +125,7 @@ public async Task GetIfExists_GetExpressRouteCircuitAuthorization() [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_CreateExpressRouteCircuitAuthorization() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ExpressRouteCircuitAuthorizationCreate.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/ExpressRouteCircuitAuthorizationCreate.json // this example is just showing the usage of "ExpressRouteCircuitAuthorizations_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 @@ -161,7 +161,7 @@ public async Task CreateOrUpdate_CreateExpressRouteCircuitAuthorization() [Ignore("Only validating compilation of examples")] public async Task GetAll_ListExpressRouteCircuitAuthorization() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ExpressRouteCircuitAuthorizationList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/ExpressRouteCircuitAuthorizationList.json // this example is just showing the usage of "ExpressRouteCircuitAuthorizations_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteCircuitAuthorizationResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteCircuitAuthorizationResource.cs index 8fe457709b1d..d260ac6f6b3f 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteCircuitAuthorizationResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteCircuitAuthorizationResource.cs @@ -19,7 +19,7 @@ public partial class Sample_ExpressRouteCircuitAuthorizationResource [Ignore("Only validating compilation of examples")] public async Task Delete_DeleteExpressRouteCircuitAuthorization() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ExpressRouteCircuitAuthorizationDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/ExpressRouteCircuitAuthorizationDelete.json // this example is just showing the usage of "ExpressRouteCircuitAuthorizations_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 @@ -46,7 +46,7 @@ public async Task Delete_DeleteExpressRouteCircuitAuthorization() [Ignore("Only validating compilation of examples")] public async Task Get_GetExpressRouteCircuitAuthorization() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ExpressRouteCircuitAuthorizationGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/ExpressRouteCircuitAuthorizationGet.json // this example is just showing the usage of "ExpressRouteCircuitAuthorizations_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 @@ -77,7 +77,7 @@ public async Task Get_GetExpressRouteCircuitAuthorization() [Ignore("Only validating compilation of examples")] public async Task Update_CreateExpressRouteCircuitAuthorization() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ExpressRouteCircuitAuthorizationCreate.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/ExpressRouteCircuitAuthorizationCreate.json // this example is just showing the usage of "ExpressRouteCircuitAuthorizations_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteCircuitCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteCircuitCollection.cs index a730743ba87c..f1e96b3fae8b 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteCircuitCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteCircuitCollection.cs @@ -21,7 +21,7 @@ public partial class Sample_ExpressRouteCircuitCollection [Ignore("Only validating compilation of examples")] public async Task Get_GetExpressRouteCircuit() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ExpressRouteCircuitGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/ExpressRouteCircuitGet.json // this example is just showing the usage of "ExpressRouteCircuits_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -54,7 +54,7 @@ public async Task Get_GetExpressRouteCircuit() [Ignore("Only validating compilation of examples")] public async Task Exists_GetExpressRouteCircuit() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ExpressRouteCircuitGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/ExpressRouteCircuitGet.json // this example is just showing the usage of "ExpressRouteCircuits_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -83,7 +83,7 @@ public async Task Exists_GetExpressRouteCircuit() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GetExpressRouteCircuit() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ExpressRouteCircuitGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/ExpressRouteCircuitGet.json // this example is just showing the usage of "ExpressRouteCircuits_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 @@ -124,7 +124,7 @@ public async Task GetIfExists_GetExpressRouteCircuit() [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_CreateExpressRouteCircuit() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ExpressRouteCircuitCreate.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/ExpressRouteCircuitCreate.json // this example is just showing the usage of "ExpressRouteCircuits_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 @@ -181,7 +181,7 @@ public async Task CreateOrUpdate_CreateExpressRouteCircuit() [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_CreateExpressRouteCircuitOnExpressRoutePort() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ExpressRouteCircuitCreateOnExpressRoutePort.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/ExpressRouteCircuitCreateOnExpressRoutePort.json // this example is just showing the usage of "ExpressRouteCircuits_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 @@ -229,7 +229,7 @@ public async Task CreateOrUpdate_CreateExpressRouteCircuitOnExpressRoutePort() [Ignore("Only validating compilation of examples")] public async Task GetAll_ListExpressRouteCircuitsInAResourceGroup() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ExpressRouteCircuitListByResourceGroup.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/ExpressRouteCircuitListByResourceGroup.json // this example is just showing the usage of "ExpressRouteCircuits_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteCircuitConnectionCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteCircuitConnectionCollection.cs index d639553eee01..382060b19d19 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteCircuitConnectionCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteCircuitConnectionCollection.cs @@ -20,7 +20,7 @@ public partial class Sample_ExpressRouteCircuitConnectionCollection [Ignore("Only validating compilation of examples")] public async Task Get_ExpressRouteCircuitConnectionGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ExpressRouteCircuitConnectionGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/ExpressRouteCircuitConnectionGet.json // this example is just showing the usage of "ExpressRouteCircuitConnections_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -55,7 +55,7 @@ public async Task Get_ExpressRouteCircuitConnectionGet() [Ignore("Only validating compilation of examples")] public async Task Exists_ExpressRouteCircuitConnectionGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ExpressRouteCircuitConnectionGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/ExpressRouteCircuitConnectionGet.json // this example is just showing the usage of "ExpressRouteCircuitConnections_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -86,7 +86,7 @@ public async Task Exists_ExpressRouteCircuitConnectionGet() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_ExpressRouteCircuitConnectionGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ExpressRouteCircuitConnectionGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/ExpressRouteCircuitConnectionGet.json // this example is just showing the usage of "ExpressRouteCircuitConnections_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -129,7 +129,7 @@ public async Task GetIfExists_ExpressRouteCircuitConnectionGet() [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_ExpressRouteCircuitConnectionCreate() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ExpressRouteCircuitConnectionCreate.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/ExpressRouteCircuitConnectionCreate.json // this example is just showing the usage of "ExpressRouteCircuitConnections_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -176,7 +176,7 @@ public async Task CreateOrUpdate_ExpressRouteCircuitConnectionCreate() [Ignore("Only validating compilation of examples")] public async Task GetAll_ListExpressRouteCircuitConnection() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ExpressRouteCircuitConnectionList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/ExpressRouteCircuitConnectionList.json // this example is just showing the usage of "ExpressRouteCircuitConnections_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteCircuitConnectionResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteCircuitConnectionResource.cs index 2cb25a85ee9d..3b96ef7899ec 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteCircuitConnectionResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteCircuitConnectionResource.cs @@ -20,7 +20,7 @@ public partial class Sample_ExpressRouteCircuitConnectionResource [Ignore("Only validating compilation of examples")] public async Task Delete_DeleteExpressRouteCircuit() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ExpressRouteCircuitConnectionDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/ExpressRouteCircuitConnectionDelete.json // this example is just showing the usage of "ExpressRouteCircuitConnections_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -48,7 +48,7 @@ public async Task Delete_DeleteExpressRouteCircuit() [Ignore("Only validating compilation of examples")] public async Task Get_ExpressRouteCircuitConnectionGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ExpressRouteCircuitConnectionGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/ExpressRouteCircuitConnectionGet.json // this example is just showing the usage of "ExpressRouteCircuitConnections_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -80,7 +80,7 @@ public async Task Get_ExpressRouteCircuitConnectionGet() [Ignore("Only validating compilation of examples")] public async Task Update_ExpressRouteCircuitConnectionCreate() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ExpressRouteCircuitConnectionCreate.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/ExpressRouteCircuitConnectionCreate.json // this example is just showing the usage of "ExpressRouteCircuitConnections_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteCircuitPeeringCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteCircuitPeeringCollection.cs index 4194e68b3f0a..15e97a490cb4 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteCircuitPeeringCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteCircuitPeeringCollection.cs @@ -19,7 +19,7 @@ public partial class Sample_ExpressRouteCircuitPeeringCollection [Ignore("Only validating compilation of examples")] public async Task Get_GetExpressRouteCircuitPeering() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ExpressRouteCircuitPeeringGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/ExpressRouteCircuitPeeringGet.json // this example is just showing the usage of "ExpressRouteCircuitPeerings_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -53,7 +53,7 @@ public async Task Get_GetExpressRouteCircuitPeering() [Ignore("Only validating compilation of examples")] public async Task Exists_GetExpressRouteCircuitPeering() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ExpressRouteCircuitPeeringGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/ExpressRouteCircuitPeeringGet.json // this example is just showing the usage of "ExpressRouteCircuitPeerings_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -83,7 +83,7 @@ public async Task Exists_GetExpressRouteCircuitPeering() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GetExpressRouteCircuitPeering() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ExpressRouteCircuitPeeringGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/ExpressRouteCircuitPeeringGet.json // this example is just showing the usage of "ExpressRouteCircuitPeerings_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -125,7 +125,7 @@ public async Task GetIfExists_GetExpressRouteCircuitPeering() [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_CreateExpressRouteCircuitPeerings() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ExpressRouteCircuitPeeringCreate.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/ExpressRouteCircuitPeeringCreate.json // this example is just showing the usage of "ExpressRouteCircuitPeerings_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 @@ -167,7 +167,7 @@ public async Task CreateOrUpdate_CreateExpressRouteCircuitPeerings() [Ignore("Only validating compilation of examples")] public async Task GetAll_ListExpressRouteCircuitPeerings() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ExpressRouteCircuitPeeringList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/ExpressRouteCircuitPeeringList.json // this example is just showing the usage of "ExpressRouteCircuitPeerings_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteCircuitPeeringResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteCircuitPeeringResource.cs index a5aeb2aba339..719a0e17731e 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteCircuitPeeringResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteCircuitPeeringResource.cs @@ -20,7 +20,7 @@ public partial class Sample_ExpressRouteCircuitPeeringResource [Ignore("Only validating compilation of examples")] public async Task Delete_DeleteExpressRouteCircuitPeerings() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ExpressRouteCircuitPeeringDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/ExpressRouteCircuitPeeringDelete.json // this example is just showing the usage of "ExpressRouteCircuitPeerings_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 @@ -47,7 +47,7 @@ public async Task Delete_DeleteExpressRouteCircuitPeerings() [Ignore("Only validating compilation of examples")] public async Task Get_GetExpressRouteCircuitPeering() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ExpressRouteCircuitPeeringGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/ExpressRouteCircuitPeeringGet.json // this example is just showing the usage of "ExpressRouteCircuitPeerings_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 @@ -78,7 +78,7 @@ public async Task Get_GetExpressRouteCircuitPeering() [Ignore("Only validating compilation of examples")] public async Task Update_CreateExpressRouteCircuitPeerings() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ExpressRouteCircuitPeeringCreate.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/ExpressRouteCircuitPeeringCreate.json // this example is just showing the usage of "ExpressRouteCircuitPeerings_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 @@ -117,7 +117,7 @@ public async Task Update_CreateExpressRouteCircuitPeerings() [Ignore("Only validating compilation of examples")] public async Task GetArpTableExpressRouteCircuit_ListARPTable() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ExpressRouteCircuitARPTableList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/ExpressRouteCircuitARPTableList.json // this example is just showing the usage of "ExpressRouteCircuits_ListArpTable" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -146,7 +146,7 @@ public async Task GetArpTableExpressRouteCircuit_ListARPTable() [Ignore("Only validating compilation of examples")] public async Task GetRoutesTableExpressRouteCircuit_ListRouteTables() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ExpressRouteCircuitRouteTableList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/ExpressRouteCircuitRouteTableList.json // this example is just showing the usage of "ExpressRouteCircuits_ListRoutesTable" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -175,7 +175,7 @@ public async Task GetRoutesTableExpressRouteCircuit_ListRouteTables() [Ignore("Only validating compilation of examples")] public async Task GetRoutesTableSummaryExpressRouteCircuit_ListRouteTableSummary() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ExpressRouteCircuitRouteTableSummaryList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/ExpressRouteCircuitRouteTableSummaryList.json // this example is just showing the usage of "ExpressRouteCircuits_ListRoutesTableSummary" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -204,7 +204,7 @@ public async Task GetRoutesTableSummaryExpressRouteCircuit_ListRouteTableSummary [Ignore("Only validating compilation of examples")] public async Task GetPeeringStatsExpressRouteCircuit_GetExpressRouteCircuitPeeringTrafficStats() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ExpressRouteCircuitPeeringStats.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/ExpressRouteCircuitPeeringStats.json // this example is just showing the usage of "ExpressRouteCircuits_GetPeeringStats" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details 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/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteCircuitResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteCircuitResource.cs index 061305e6b2e8..24faac7562b4 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteCircuitResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteCircuitResource.cs @@ -21,7 +21,7 @@ public partial class Sample_ExpressRouteCircuitResource [Ignore("Only validating compilation of examples")] public async Task Delete_DeleteExpressRouteCircuit() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ExpressRouteCircuitDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/ExpressRouteCircuitDelete.json // this example is just showing the usage of "ExpressRouteCircuits_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 @@ -47,7 +47,7 @@ public async Task Delete_DeleteExpressRouteCircuit() [Ignore("Only validating compilation of examples")] public async Task Get_GetExpressRouteCircuit() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ExpressRouteCircuitGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/ExpressRouteCircuitGet.json // this example is just showing the usage of "ExpressRouteCircuits_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 @@ -77,7 +77,7 @@ public async Task Get_GetExpressRouteCircuit() [Ignore("Only validating compilation of examples")] public async Task Update_UpdateExpressRouteCircuitTags() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ExpressRouteCircuitUpdateTags.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/ExpressRouteCircuitUpdateTags.json // this example is just showing the usage of "ExpressRouteCircuits_UpdateTags" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -115,7 +115,7 @@ public async Task Update_UpdateExpressRouteCircuitTags() [Ignore("Only validating compilation of examples")] public async Task GetStats_GetExpressRouteCircuitTrafficStats() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ExpressRouteCircuitStats.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/ExpressRouteCircuitStats.json // this example is just showing the usage of "ExpressRouteCircuits_GetStats" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details 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 GetStats_GetExpressRouteCircuitTrafficStats() [Ignore("Only validating compilation of examples")] public async Task GetExpressRouteCircuits_ListExpressRouteCircuitsInASubscription() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ExpressRouteCircuitListBySubscription.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/ExpressRouteCircuitListBySubscription.json // this example is just showing the usage of "ExpressRouteCircuits_ListAll" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details 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/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteConnectionCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteConnectionCollection.cs index 6ce28f19dbd0..8a27ee24686e 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteConnectionCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteConnectionCollection.cs @@ -21,7 +21,7 @@ public partial class Sample_ExpressRouteConnectionCollection [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_ExpressRouteConnectionCreate() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ExpressRouteConnectionCreate.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/ExpressRouteConnectionCreate.json // this example is just showing the usage of "ExpressRouteConnections_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 @@ -90,7 +90,7 @@ public async Task CreateOrUpdate_ExpressRouteConnectionCreate() [Ignore("Only validating compilation of examples")] public async Task Get_ExpressRouteConnectionGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ExpressRouteConnectionGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/ExpressRouteConnectionGet.json // this example is just showing the usage of "ExpressRouteConnections_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 @@ -124,7 +124,7 @@ public async Task Get_ExpressRouteConnectionGet() [Ignore("Only validating compilation of examples")] public async Task Exists_ExpressRouteConnectionGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ExpressRouteConnectionGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/ExpressRouteConnectionGet.json // this example is just showing the usage of "ExpressRouteConnections_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 @@ -154,7 +154,7 @@ public async Task Exists_ExpressRouteConnectionGet() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_ExpressRouteConnectionGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ExpressRouteConnectionGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/ExpressRouteConnectionGet.json // this example is just showing the usage of "ExpressRouteConnections_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 @@ -196,7 +196,7 @@ public async Task GetIfExists_ExpressRouteConnectionGet() [Ignore("Only validating compilation of examples")] public async Task GetAll_ExpressRouteConnectionList() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ExpressRouteConnectionList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/ExpressRouteConnectionList.json // this example is just showing the usage of "ExpressRouteConnections_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteConnectionResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteConnectionResource.cs index e6827d067aca..e1d34d77440c 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteConnectionResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteConnectionResource.cs @@ -21,7 +21,7 @@ public partial class Sample_ExpressRouteConnectionResource [Ignore("Only validating compilation of examples")] public async Task Update_ExpressRouteConnectionCreate() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ExpressRouteConnectionCreate.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/ExpressRouteConnectionCreate.json // this example is just showing the usage of "ExpressRouteConnections_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 @@ -87,7 +87,7 @@ public async Task Update_ExpressRouteConnectionCreate() [Ignore("Only validating compilation of examples")] public async Task Get_ExpressRouteConnectionGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ExpressRouteConnectionGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/ExpressRouteConnectionGet.json // this example is just showing the usage of "ExpressRouteConnections_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 @@ -118,7 +118,7 @@ public async Task Get_ExpressRouteConnectionGet() [Ignore("Only validating compilation of examples")] public async Task Delete_ExpressRouteConnectionDelete() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ExpressRouteConnectionDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/ExpressRouteConnectionDelete.json // this example is just showing the usage of "ExpressRouteConnections_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteCrossConnectionCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteCrossConnectionCollection.cs index 203d4747160b..2127812dd88b 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteCrossConnectionCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteCrossConnectionCollection.cs @@ -21,7 +21,7 @@ public partial class Sample_ExpressRouteCrossConnectionCollection [Ignore("Only validating compilation of examples")] public async Task GetAll_ExpressRouteCrossConnectionListByResourceGroup() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ExpressRouteCrossConnectionListByResourceGroup.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/ExpressRouteCrossConnectionListByResourceGroup.json // this example is just showing the usage of "ExpressRouteCrossConnections_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 @@ -56,7 +56,7 @@ public async Task GetAll_ExpressRouteCrossConnectionListByResourceGroup() [Ignore("Only validating compilation of examples")] public async Task Get_GetExpressRouteCrossConnection() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ExpressRouteCrossConnectionGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/ExpressRouteCrossConnectionGet.json // this example is just showing the usage of "ExpressRouteCrossConnections_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -89,7 +89,7 @@ public async Task Get_GetExpressRouteCrossConnection() [Ignore("Only validating compilation of examples")] public async Task Exists_GetExpressRouteCrossConnection() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ExpressRouteCrossConnectionGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/ExpressRouteCrossConnectionGet.json // this example is just showing the usage of "ExpressRouteCrossConnections_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 @@ -118,7 +118,7 @@ public async Task Exists_GetExpressRouteCrossConnection() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GetExpressRouteCrossConnection() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ExpressRouteCrossConnectionGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/ExpressRouteCrossConnectionGet.json // this example is just showing the usage of "ExpressRouteCrossConnections_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 @@ -159,7 +159,7 @@ public async Task GetIfExists_GetExpressRouteCrossConnection() [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_UpdateExpressRouteCrossConnection() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ExpressRouteCrossConnectionUpdate.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/ExpressRouteCrossConnectionUpdate.json // this example is just showing the usage of "ExpressRouteCrossConnections_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteCrossConnectionPeeringCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteCrossConnectionPeeringCollection.cs index d7bdab194bac..06d5e02d719f 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteCrossConnectionPeeringCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteCrossConnectionPeeringCollection.cs @@ -20,7 +20,7 @@ public partial class Sample_ExpressRouteCrossConnectionPeeringCollection [Ignore("Only validating compilation of examples")] public async Task GetAll_ExpressRouteCrossConnectionBgpPeeringList() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ExpressRouteCrossConnectionBgpPeeringList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/ExpressRouteCrossConnectionBgpPeeringList.json // this example is just showing the usage of "ExpressRouteCrossConnectionPeerings_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -56,7 +56,7 @@ public async Task GetAll_ExpressRouteCrossConnectionBgpPeeringList() [Ignore("Only validating compilation of examples")] public async Task Get_GetExpressRouteCrossConnectionBgpPeering() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ExpressRouteCrossConnectionBgpPeeringGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/ExpressRouteCrossConnectionBgpPeeringGet.json // this example is just showing the usage of "ExpressRouteCrossConnectionPeerings_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -90,7 +90,7 @@ public async Task Get_GetExpressRouteCrossConnectionBgpPeering() [Ignore("Only validating compilation of examples")] public async Task Exists_GetExpressRouteCrossConnectionBgpPeering() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ExpressRouteCrossConnectionBgpPeeringGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/ExpressRouteCrossConnectionBgpPeeringGet.json // this example is just showing the usage of "ExpressRouteCrossConnectionPeerings_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 @@ -120,7 +120,7 @@ public async Task Exists_GetExpressRouteCrossConnectionBgpPeering() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GetExpressRouteCrossConnectionBgpPeering() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ExpressRouteCrossConnectionBgpPeeringGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/ExpressRouteCrossConnectionBgpPeeringGet.json // this example is just showing the usage of "ExpressRouteCrossConnectionPeerings_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 @@ -162,7 +162,7 @@ public async Task GetIfExists_GetExpressRouteCrossConnectionBgpPeering() [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_ExpressRouteCrossConnectionBgpPeeringCreate() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ExpressRouteCrossConnectionBgpPeeringCreate.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/ExpressRouteCrossConnectionBgpPeeringCreate.json // this example is just showing the usage of "ExpressRouteCrossConnectionPeerings_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteCrossConnectionPeeringResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteCrossConnectionPeeringResource.cs index 40eea9d22cb1..2c752e3cc972 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteCrossConnectionPeeringResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteCrossConnectionPeeringResource.cs @@ -20,7 +20,7 @@ public partial class Sample_ExpressRouteCrossConnectionPeeringResource [Ignore("Only validating compilation of examples")] public async Task GetArpTableExpressRouteCrossConnection_GetExpressRouteCrossConnectionsArpTable() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ExpressRouteCrossConnectionsArpTable.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/ExpressRouteCrossConnectionsArpTable.json // this example is just showing the usage of "ExpressRouteCrossConnections_ListArpTable" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -49,7 +49,7 @@ public async Task GetArpTableExpressRouteCrossConnection_GetExpressRouteCrossCon [Ignore("Only validating compilation of examples")] public async Task GetRoutesTableSummaryExpressRouteCrossConnection_GetExpressRouteCrossConnectionsRouteTableSummary() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ExpressRouteCrossConnectionsRouteTableSummary.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/ExpressRouteCrossConnectionsRouteTableSummary.json // this example is just showing the usage of "ExpressRouteCrossConnections_ListRoutesTableSummary" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -78,7 +78,7 @@ public async Task GetRoutesTableSummaryExpressRouteCrossConnection_GetExpressRou [Ignore("Only validating compilation of examples")] public async Task GetRoutesTableExpressRouteCrossConnection_GetExpressRouteCrossConnectionsRouteTable() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ExpressRouteCrossConnectionsRouteTable.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/ExpressRouteCrossConnectionsRouteTable.json // this example is just showing the usage of "ExpressRouteCrossConnections_ListRoutesTable" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -107,7 +107,7 @@ public async Task GetRoutesTableExpressRouteCrossConnection_GetExpressRouteCross [Ignore("Only validating compilation of examples")] public async Task Delete_DeleteExpressRouteCrossConnectionBgpPeering() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ExpressRouteCrossConnectionBgpPeeringDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/ExpressRouteCrossConnectionBgpPeeringDelete.json // this example is just showing the usage of "ExpressRouteCrossConnectionPeerings_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 @@ -134,7 +134,7 @@ public async Task Delete_DeleteExpressRouteCrossConnectionBgpPeering() [Ignore("Only validating compilation of examples")] public async Task Get_GetExpressRouteCrossConnectionBgpPeering() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ExpressRouteCrossConnectionBgpPeeringGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/ExpressRouteCrossConnectionBgpPeeringGet.json // this example is just showing the usage of "ExpressRouteCrossConnectionPeerings_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 @@ -165,7 +165,7 @@ public async Task Get_GetExpressRouteCrossConnectionBgpPeering() [Ignore("Only validating compilation of examples")] public async Task Update_ExpressRouteCrossConnectionBgpPeeringCreate() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ExpressRouteCrossConnectionBgpPeeringCreate.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/ExpressRouteCrossConnectionBgpPeeringCreate.json // this example is just showing the usage of "ExpressRouteCrossConnectionPeerings_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteCrossConnectionResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteCrossConnectionResource.cs index b0ab13376438..301db3763a30 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteCrossConnectionResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteCrossConnectionResource.cs @@ -21,7 +21,7 @@ public partial class Sample_ExpressRouteCrossConnectionResource [Ignore("Only validating compilation of examples")] public async Task GetExpressRouteCrossConnections_ExpressRouteCrossConnectionList() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ExpressRouteCrossConnectionList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/ExpressRouteCrossConnectionList.json // this example is just showing the usage of "ExpressRouteCrossConnections_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 @@ -52,7 +52,7 @@ public async Task GetExpressRouteCrossConnections_ExpressRouteCrossConnectionLis [Ignore("Only validating compilation of examples")] public async Task Get_GetExpressRouteCrossConnection() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ExpressRouteCrossConnectionGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/ExpressRouteCrossConnectionGet.json // this example is just showing the usage of "ExpressRouteCrossConnections_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -82,7 +82,7 @@ public async Task Get_GetExpressRouteCrossConnection() [Ignore("Only validating compilation of examples")] public async Task Update_UpdateExpressRouteCrossConnectionTags() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ExpressRouteCrossConnectionUpdateTags.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/ExpressRouteCrossConnectionUpdateTags.json // this example is just showing the usage of "ExpressRouteCrossConnections_UpdateTags" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details 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/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteGatewayCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteGatewayCollection.cs index 2fd15d39bc86..8965b20a122c 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteGatewayCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteGatewayCollection.cs @@ -21,7 +21,7 @@ public partial class Sample_ExpressRouteGatewayCollection [Ignore("Only validating compilation of examples")] public async Task GetAll_ExpressRouteGatewayListByResourceGroup() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ExpressRouteGatewayListByResourceGroup.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/ExpressRouteGatewayListByResourceGroup.json // this example is just showing the usage of "ExpressRouteGateways_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 @@ -56,7 +56,7 @@ public async Task GetAll_ExpressRouteGatewayListByResourceGroup() [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_ExpressRouteGatewayCreate() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ExpressRouteGatewayCreate.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/ExpressRouteGatewayCreate.json // this example is just showing the usage of "ExpressRouteGateways_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 @@ -100,7 +100,7 @@ public async Task CreateOrUpdate_ExpressRouteGatewayCreate() [Ignore("Only validating compilation of examples")] public async Task Get_ExpressRouteGatewayGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ExpressRouteGatewayGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/ExpressRouteGatewayGet.json // this example is just showing the usage of "ExpressRouteGateways_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 @@ -133,7 +133,7 @@ public async Task Get_ExpressRouteGatewayGet() [Ignore("Only validating compilation of examples")] public async Task Exists_ExpressRouteGatewayGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ExpressRouteGatewayGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/ExpressRouteGatewayGet.json // this example is just showing the usage of "ExpressRouteGateways_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 @@ -162,7 +162,7 @@ public async Task Exists_ExpressRouteGatewayGet() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_ExpressRouteGatewayGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ExpressRouteGatewayGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/ExpressRouteGatewayGet.json // this example is just showing the usage of "ExpressRouteGateways_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/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteGatewayResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteGatewayResource.cs index 9cacc21ce3b7..577fc94289a0 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteGatewayResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteGatewayResource.cs @@ -21,7 +21,7 @@ public partial class Sample_ExpressRouteGatewayResource [Ignore("Only validating compilation of examples")] public async Task GetExpressRouteGateways_ExpressRouteGatewayListBySubscription() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ExpressRouteGatewayListBySubscription.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/ExpressRouteGatewayListBySubscription.json // this example is just showing the usage of "ExpressRouteGateways_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 @@ -52,7 +52,7 @@ public async Task GetExpressRouteGateways_ExpressRouteGatewayListBySubscription( [Ignore("Only validating compilation of examples")] public async Task Update_ExpressRouteGatewayUpdate() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ExpressRouteGatewayUpdateTags.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/ExpressRouteGatewayUpdateTags.json // this example is just showing the usage of "ExpressRouteGateways_UpdateTags" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -91,7 +91,7 @@ public async Task Update_ExpressRouteGatewayUpdate() [Ignore("Only validating compilation of examples")] public async Task Get_ExpressRouteGatewayGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ExpressRouteGatewayGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/ExpressRouteGatewayGet.json // this example is just showing the usage of "ExpressRouteGateways_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 @@ -121,7 +121,7 @@ public async Task Get_ExpressRouteGatewayGet() [Ignore("Only validating compilation of examples")] public async Task Delete_ExpressRouteGatewayDelete() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ExpressRouteGatewayDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/ExpressRouteGatewayDelete.json // this example is just showing the usage of "ExpressRouteGateways_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteLinkCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteLinkCollection.cs index 4e2dc45455c9..13ac706ac066 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteLinkCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteLinkCollection.cs @@ -19,7 +19,7 @@ public partial class Sample_ExpressRouteLinkCollection [Ignore("Only validating compilation of examples")] public async Task Get_ExpressRouteLinkGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ExpressRouteLinkGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/ExpressRouteLinkGet.json // this example is just showing the usage of "ExpressRouteLinks_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -53,7 +53,7 @@ public async Task Get_ExpressRouteLinkGet() [Ignore("Only validating compilation of examples")] public async Task Exists_ExpressRouteLinkGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ExpressRouteLinkGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/ExpressRouteLinkGet.json // this example is just showing the usage of "ExpressRouteLinks_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -83,7 +83,7 @@ public async Task Exists_ExpressRouteLinkGet() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_ExpressRouteLinkGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ExpressRouteLinkGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/ExpressRouteLinkGet.json // this example is just showing the usage of "ExpressRouteLinks_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -125,7 +125,7 @@ public async Task GetIfExists_ExpressRouteLinkGet() [Ignore("Only validating compilation of examples")] public async Task GetAll_ExpressRouteLinkGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ExpressRouteLinkList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/ExpressRouteLinkList.json // this example is just showing the usage of "ExpressRouteLinks_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteLinkResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteLinkResource.cs index c2d9a988b2d6..d9f33ec48236 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteLinkResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteLinkResource.cs @@ -19,7 +19,7 @@ public partial class Sample_ExpressRouteLinkResource [Ignore("Only validating compilation of examples")] public async Task Get_ExpressRouteLinkGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ExpressRouteLinkGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/ExpressRouteLinkGet.json // this example is just showing the usage of "ExpressRouteLinks_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/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRoutePortAuthorizationCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRoutePortAuthorizationCollection.cs index fd02fe7dc1da..65af439d5e4a 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRoutePortAuthorizationCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRoutePortAuthorizationCollection.cs @@ -19,7 +19,7 @@ public partial class Sample_ExpressRoutePortAuthorizationCollection [Ignore("Only validating compilation of examples")] public async Task Get_GetExpressRoutePortAuthorization() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ExpressRoutePortAuthorizationGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/ExpressRoutePortAuthorizationGet.json // this example is just showing the usage of "ExpressRoutePortAuthorizations_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -53,7 +53,7 @@ public async Task Get_GetExpressRoutePortAuthorization() [Ignore("Only validating compilation of examples")] public async Task Exists_GetExpressRoutePortAuthorization() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ExpressRoutePortAuthorizationGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/ExpressRoutePortAuthorizationGet.json // this example is just showing the usage of "ExpressRoutePortAuthorizations_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -83,7 +83,7 @@ public async Task Exists_GetExpressRoutePortAuthorization() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GetExpressRoutePortAuthorization() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ExpressRoutePortAuthorizationGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/ExpressRoutePortAuthorizationGet.json // this example is just showing the usage of "ExpressRoutePortAuthorizations_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -125,7 +125,7 @@ public async Task GetIfExists_GetExpressRoutePortAuthorization() [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_CreateExpressRoutePortAuthorization() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ExpressRoutePortAuthorizationCreate.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/ExpressRoutePortAuthorizationCreate.json // this example is just showing the usage of "ExpressRoutePortAuthorizations_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 @@ -161,7 +161,7 @@ public async Task CreateOrUpdate_CreateExpressRoutePortAuthorization() [Ignore("Only validating compilation of examples")] public async Task GetAll_ListExpressRoutePortAuthorization() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ExpressRoutePortAuthorizationList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/ExpressRoutePortAuthorizationList.json // this example is just showing the usage of "ExpressRoutePortAuthorizations_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRoutePortAuthorizationResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRoutePortAuthorizationResource.cs index 551dc9a329b1..917615b672df 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRoutePortAuthorizationResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRoutePortAuthorizationResource.cs @@ -19,7 +19,7 @@ public partial class Sample_ExpressRoutePortAuthorizationResource [Ignore("Only validating compilation of examples")] public async Task Delete_DeleteExpressRoutePortAuthorization() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ExpressRoutePortAuthorizationDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/ExpressRoutePortAuthorizationDelete.json // this example is just showing the usage of "ExpressRoutePortAuthorizations_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 @@ -46,7 +46,7 @@ public async Task Delete_DeleteExpressRoutePortAuthorization() [Ignore("Only validating compilation of examples")] public async Task Get_GetExpressRoutePortAuthorization() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ExpressRoutePortAuthorizationGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/ExpressRoutePortAuthorizationGet.json // this example is just showing the usage of "ExpressRoutePortAuthorizations_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 @@ -77,7 +77,7 @@ public async Task Get_GetExpressRoutePortAuthorization() [Ignore("Only validating compilation of examples")] public async Task Update_CreateExpressRoutePortAuthorization() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ExpressRoutePortAuthorizationCreate.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/ExpressRoutePortAuthorizationCreate.json // this example is just showing the usage of "ExpressRoutePortAuthorizations_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRoutePortCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRoutePortCollection.cs index 7b12567e888b..f1252de2b5db 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRoutePortCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRoutePortCollection.cs @@ -21,7 +21,7 @@ public partial class Sample_ExpressRoutePortCollection [Ignore("Only validating compilation of examples")] public async Task Get_ExpressRoutePortGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ExpressRoutePortGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/ExpressRoutePortGet.json // this example is just showing the usage of "ExpressRoutePorts_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -54,7 +54,7 @@ public async Task Get_ExpressRoutePortGet() [Ignore("Only validating compilation of examples")] public async Task Exists_ExpressRoutePortGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ExpressRoutePortGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/ExpressRoutePortGet.json // this example is just showing the usage of "ExpressRoutePorts_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -83,7 +83,7 @@ public async Task Exists_ExpressRoutePortGet() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_ExpressRoutePortGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ExpressRoutePortGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/ExpressRoutePortGet.json // this example is just showing the usage of "ExpressRoutePorts_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 @@ -124,7 +124,7 @@ public async Task GetIfExists_ExpressRoutePortGet() [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_ExpressRoutePortCreate() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ExpressRoutePortCreate.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/ExpressRoutePortCreate.json // this example is just showing the usage of "ExpressRoutePorts_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 @@ -166,7 +166,7 @@ public async Task CreateOrUpdate_ExpressRoutePortCreate() [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_ExpressRoutePortUpdateLink() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ExpressRoutePortUpdateLink.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/ExpressRoutePortUpdateLink.json // this example is just showing the usage of "ExpressRoutePorts_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 @@ -216,7 +216,7 @@ public async Task CreateOrUpdate_ExpressRoutePortUpdateLink() [Ignore("Only validating compilation of examples")] public async Task GetAll_ExpressRoutePortListByResourceGroup() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ExpressRoutePortListByResourceGroup.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/ExpressRoutePortListByResourceGroup.json // this example is just showing the usage of "ExpressRoutePorts_ListByResourceGroup" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRoutePortResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRoutePortResource.cs index 4581800ad6e4..ea2e045aec32 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRoutePortResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRoutePortResource.cs @@ -21,7 +21,7 @@ public partial class Sample_ExpressRoutePortResource [Ignore("Only validating compilation of examples")] public async Task Delete_ExpressRoutePortDelete() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ExpressRoutePortDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/ExpressRoutePortDelete.json // this example is just showing the usage of "ExpressRoutePorts_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 @@ -47,7 +47,7 @@ public async Task Delete_ExpressRoutePortDelete() [Ignore("Only validating compilation of examples")] public async Task Get_ExpressRoutePortGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ExpressRoutePortGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/ExpressRoutePortGet.json // this example is just showing the usage of "ExpressRoutePorts_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 @@ -77,7 +77,7 @@ public async Task Get_ExpressRoutePortGet() [Ignore("Only validating compilation of examples")] public async Task Update_ExpressRoutePortUpdateTags() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ExpressRoutePortUpdateTags.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/ExpressRoutePortUpdateTags.json // this example is just showing the usage of "ExpressRoutePorts_UpdateTags" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -115,7 +115,7 @@ public async Task Update_ExpressRoutePortUpdateTags() [Ignore("Only validating compilation of examples")] public async Task GetExpressRoutePorts_ExpressRoutePortList() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ExpressRoutePortList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/ExpressRoutePortList.json // this example is just showing the usage of "ExpressRoutePorts_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 @@ -146,7 +146,7 @@ public async Task GetExpressRoutePorts_ExpressRoutePortList() [Ignore("Only validating compilation of examples")] public async Task GenerateLoa_GenerateExpressRoutePortLOA() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/GenerateExpressRoutePortsLOA.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/GenerateExpressRoutePortsLOA.json // this example is just showing the usage of "ExpressRoutePorts_GenerateLoa" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details 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/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRoutePortsLocationCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRoutePortsLocationCollection.cs index ba3c6a55f3d4..e1505e7897da 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRoutePortsLocationCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRoutePortsLocationCollection.cs @@ -20,7 +20,7 @@ public partial class Sample_ExpressRoutePortsLocationCollection [Ignore("Only validating compilation of examples")] public async Task GetAll_ExpressRoutePortsLocationList() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ExpressRoutePortsLocationList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/ExpressRoutePortsLocationList.json // this example is just showing the usage of "ExpressRoutePortsLocations_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 @@ -54,7 +54,7 @@ public async Task GetAll_ExpressRoutePortsLocationList() [Ignore("Only validating compilation of examples")] public async Task Get_ExpressRoutePortsLocationGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ExpressRoutePortsLocationGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/ExpressRoutePortsLocationGet.json // this example is just showing the usage of "ExpressRoutePortsLocations_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -86,7 +86,7 @@ public async Task Get_ExpressRoutePortsLocationGet() [Ignore("Only validating compilation of examples")] public async Task Exists_ExpressRoutePortsLocationGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ExpressRoutePortsLocationGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/ExpressRoutePortsLocationGet.json // this example is just showing the usage of "ExpressRoutePortsLocations_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -114,7 +114,7 @@ public async Task Exists_ExpressRoutePortsLocationGet() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_ExpressRoutePortsLocationGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ExpressRoutePortsLocationGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/ExpressRoutePortsLocationGet.json // this example is just showing the usage of "ExpressRoutePortsLocations_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/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRoutePortsLocationResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRoutePortsLocationResource.cs index c2747c48d7b8..a332db22db30 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRoutePortsLocationResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRoutePortsLocationResource.cs @@ -19,7 +19,7 @@ public partial class Sample_ExpressRoutePortsLocationResource [Ignore("Only validating compilation of examples")] public async Task Get_ExpressRoutePortsLocationGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ExpressRoutePortsLocationGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/ExpressRoutePortsLocationGet.json // this example is just showing the usage of "ExpressRoutePortsLocations_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/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteProviderPortCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteProviderPortCollection.cs index f9e16c03e19b..739bbc37340c 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteProviderPortCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteProviderPortCollection.cs @@ -20,7 +20,7 @@ public partial class Sample_ExpressRouteProviderPortCollection [Ignore("Only validating compilation of examples")] public async Task Get_ExpressRouteProviderPort() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/expressRouteProviderPort.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/expressRouteProviderPort.json // this example is just showing the usage of "ExpressRouteProviderPort" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -52,7 +52,7 @@ public async Task Get_ExpressRouteProviderPort() [Ignore("Only validating compilation of examples")] public async Task Exists_ExpressRouteProviderPort() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/expressRouteProviderPort.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/expressRouteProviderPort.json // this example is just showing the usage of "ExpressRouteProviderPort" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -80,7 +80,7 @@ public async Task Exists_ExpressRouteProviderPort() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_ExpressRouteProviderPort() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/expressRouteProviderPort.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/expressRouteProviderPort.json // this example is just showing the usage of "ExpressRouteProviderPort" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -120,7 +120,7 @@ public async Task GetIfExists_ExpressRouteProviderPort() [Ignore("Only validating compilation of examples")] public async Task GetAll_ExpressRouteProviderPortList() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/expressRouteProviderPortList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/expressRouteProviderPortList.json // this example is just showing the usage of "ExpressRouteProviderPortsLocation_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteProviderPortResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteProviderPortResource.cs index d4a79bd28484..1b326d41f966 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteProviderPortResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ExpressRouteProviderPortResource.cs @@ -21,7 +21,7 @@ public partial class Sample_ExpressRouteProviderPortResource [Ignore("Only validating compilation of examples")] public async Task CheckDnsNameAvailability_CheckDnsNameAvailability() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/CheckDnsNameAvailability.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/CheckDnsNameAvailability.json // this example is just showing the usage of "CheckDnsNameAvailability" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -47,7 +47,7 @@ public async Task CheckDnsNameAvailability_CheckDnsNameAvailability() [Ignore("Only validating compilation of examples")] public async Task Get_ExpressRouteProviderPort() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/expressRouteProviderPort.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/expressRouteProviderPort.json // this example is just showing the usage of "ExpressRouteProviderPort" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details 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/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_FirewallPolicyCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_FirewallPolicyCollection.cs index d7eb2a8944e7..35f933957790 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_FirewallPolicyCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_FirewallPolicyCollection.cs @@ -21,7 +21,7 @@ public partial class Sample_FirewallPolicyCollection [Ignore("Only validating compilation of examples")] public async Task Get_GetFirewallPolicy() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/FirewallPolicyGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/FirewallPolicyGet.json // this example is just showing the usage of "FirewallPolicies_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -54,7 +54,7 @@ public async Task Get_GetFirewallPolicy() [Ignore("Only validating compilation of examples")] public async Task Exists_GetFirewallPolicy() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/FirewallPolicyGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/FirewallPolicyGet.json // this example is just showing the usage of "FirewallPolicies_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -83,7 +83,7 @@ public async Task Exists_GetFirewallPolicy() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GetFirewallPolicy() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/FirewallPolicyGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/FirewallPolicyGet.json // this example is just showing the usage of "FirewallPolicies_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 @@ -124,7 +124,7 @@ public async Task GetIfExists_GetFirewallPolicy() [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_CreateFirewallPolicy() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/FirewallPolicyPut.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/FirewallPolicyPut.json // this example is just showing the usage of "FirewallPolicies_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 @@ -268,7 +268,7 @@ public async Task CreateOrUpdate_CreateFirewallPolicy() [Ignore("Only validating compilation of examples")] public async Task GetAll_ListAllFirewallPoliciesForAGivenResourceGroup() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/FirewallPolicyListByResourceGroup.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/FirewallPolicyListByResourceGroup.json // this example is just showing the usage of "FirewallPolicies_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_FirewallPolicyDraftResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_FirewallPolicyDraftResource.cs index 28f8484049de..2d6e137d23b1 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_FirewallPolicyDraftResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_FirewallPolicyDraftResource.cs @@ -20,7 +20,7 @@ public partial class Sample_FirewallPolicyDraftResource [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_CreateOrUpdateFirewallPolicyDraft() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/FirewallPolicyDraftPut.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/FirewallPolicyDraftPut.json // this example is just showing the usage of "FirewallPolicyDrafts_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -150,7 +150,7 @@ public async Task CreateOrUpdate_CreateOrUpdateFirewallPolicyDraft() [Ignore("Only validating compilation of examples")] public async Task Delete_DeleteFirewallPolicyDraft() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/FirewallPolicyDraftDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/FirewallPolicyDraftDelete.json // this example is just showing the usage of "FirewallPolicyDrafts_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 @@ -176,7 +176,7 @@ public async Task Delete_DeleteFirewallPolicyDraft() [Ignore("Only validating compilation of examples")] public async Task Get_GetFirewallPolicyDraft() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/FirewallPolicyDraftGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/FirewallPolicyDraftGet.json // this example is just showing the usage of "FirewallPolicyDrafts_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/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_FirewallPolicyResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_FirewallPolicyResource.cs index 3fc30f9ba642..ca219b4db7b0 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_FirewallPolicyResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_FirewallPolicyResource.cs @@ -21,7 +21,7 @@ public partial class Sample_FirewallPolicyResource [Ignore("Only validating compilation of examples")] public async Task Delete_DeleteFirewallPolicy() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/FirewallPolicyDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/FirewallPolicyDelete.json // this example is just showing the usage of "FirewallPolicies_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 @@ -47,7 +47,7 @@ public async Task Delete_DeleteFirewallPolicy() [Ignore("Only validating compilation of examples")] public async Task Get_GetFirewallPolicy() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/FirewallPolicyGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/FirewallPolicyGet.json // this example is just showing the usage of "FirewallPolicies_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 @@ -77,7 +77,7 @@ public async Task Get_GetFirewallPolicy() [Ignore("Only validating compilation of examples")] public async Task Update_UpdateFirewallPolicyTags() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/FirewallPolicyPatch.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/FirewallPolicyPatch.json // this example is just showing the usage of "FirewallPolicies_UpdateTags" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -115,7 +115,7 @@ public async Task Update_UpdateFirewallPolicyTags() [Ignore("Only validating compilation of examples")] public async Task GetFirewallPolicies_ListAllFirewallPoliciesForAGivenSubscription() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/FirewallPolicyListBySubscription.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/FirewallPolicyListBySubscription.json // this example is just showing the usage of "FirewallPolicies_ListAll" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -146,7 +146,7 @@ public async Task GetFirewallPolicies_ListAllFirewallPoliciesForAGivenSubscripti [Ignore("Only validating compilation of examples")] public async Task GetFirewallPolicyIdpsSignature_QuerySignatureOverrides() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/FirewallPolicyQuerySignatureOverrides.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/FirewallPolicyQuerySignatureOverrides.json // this example is just showing the usage of "FirewallPolicyIdpsSignatures_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 @@ -194,7 +194,7 @@ public async Task GetFirewallPolicyIdpsSignature_QuerySignatureOverrides() [Ignore("Only validating compilation of examples")] public async Task GetFirewallPolicyIdpsSignaturesFilterValue_QuerySignatureOverrides() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/FirewallPolicyQuerySignatureOverridesFilterValues.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/FirewallPolicyQuerySignatureOverridesFilterValues.json // this example is just showing the usage of "FirewallPolicyIdpsSignaturesFilterValues_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 @@ -224,7 +224,7 @@ public async Task GetFirewallPolicyIdpsSignaturesFilterValue_QuerySignatureOverr [Ignore("Only validating compilation of examples")] public async Task DeployFirewallPolicyDeployment_DeployFirewallPolicyDraft() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/FirewallPolicyDraftDeploy.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/FirewallPolicyDraftDeploy.json // this example is just showing the usage of "FirewallPolicyDeployments_Deploy" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details 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/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_FirewallPolicyRuleCollectionGroupCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_FirewallPolicyRuleCollectionGroupCollection.cs index f307d21a81f1..fde9b286c9c3 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_FirewallPolicyRuleCollectionGroupCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_FirewallPolicyRuleCollectionGroupCollection.cs @@ -20,7 +20,7 @@ public partial class Sample_FirewallPolicyRuleCollectionGroupCollection [Ignore("Only validating compilation of examples")] public async Task Get_GetFirewallPolicyNatRuleCollectionGroup() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/FirewallPolicyNatRuleCollectionGroupGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/FirewallPolicyNatRuleCollectionGroupGet.json // this example is just showing the usage of "FirewallPolicyRuleCollectionGroups_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -54,7 +54,7 @@ public async Task Get_GetFirewallPolicyNatRuleCollectionGroup() [Ignore("Only validating compilation of examples")] public async Task Exists_GetFirewallPolicyNatRuleCollectionGroup() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/FirewallPolicyNatRuleCollectionGroupGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/FirewallPolicyNatRuleCollectionGroupGet.json // this example is just showing the usage of "FirewallPolicyRuleCollectionGroups_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 @@ -84,7 +84,7 @@ public async Task Exists_GetFirewallPolicyNatRuleCollectionGroup() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GetFirewallPolicyNatRuleCollectionGroup() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/FirewallPolicyNatRuleCollectionGroupGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/FirewallPolicyNatRuleCollectionGroupGet.json // this example is just showing the usage of "FirewallPolicyRuleCollectionGroups_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -126,7 +126,7 @@ public async Task GetIfExists_GetFirewallPolicyNatRuleCollectionGroup() [Ignore("Only validating compilation of examples")] public async Task Get_GetFirewallPolicyRuleCollectionGroup() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/FirewallPolicyRuleCollectionGroupGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/FirewallPolicyRuleCollectionGroupGet.json // this example is just showing the usage of "FirewallPolicyRuleCollectionGroups_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 @@ -160,7 +160,7 @@ public async Task Get_GetFirewallPolicyRuleCollectionGroup() [Ignore("Only validating compilation of examples")] public async Task Exists_GetFirewallPolicyRuleCollectionGroup() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/FirewallPolicyRuleCollectionGroupGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/FirewallPolicyRuleCollectionGroupGet.json // this example is just showing the usage of "FirewallPolicyRuleCollectionGroups_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 @@ -190,7 +190,7 @@ public async Task Exists_GetFirewallPolicyRuleCollectionGroup() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GetFirewallPolicyRuleCollectionGroup() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/FirewallPolicyRuleCollectionGroupGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/FirewallPolicyRuleCollectionGroupGet.json // this example is just showing the usage of "FirewallPolicyRuleCollectionGroups_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 @@ -232,7 +232,7 @@ public async Task GetIfExists_GetFirewallPolicyRuleCollectionGroup() [Ignore("Only validating compilation of examples")] public async Task Get_GetFirewallPolicyRuleCollectionGroupWithIpGroups() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/FirewallPolicyRuleCollectionGroupWithIpGroupsGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/FirewallPolicyRuleCollectionGroupWithIpGroupsGet.json // this example is just showing the usage of "FirewallPolicyRuleCollectionGroups_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 @@ -266,7 +266,7 @@ public async Task Get_GetFirewallPolicyRuleCollectionGroupWithIpGroups() [Ignore("Only validating compilation of examples")] public async Task Exists_GetFirewallPolicyRuleCollectionGroupWithIpGroups() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/FirewallPolicyRuleCollectionGroupWithIpGroupsGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/FirewallPolicyRuleCollectionGroupWithIpGroupsGet.json // this example is just showing the usage of "FirewallPolicyRuleCollectionGroups_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 @@ -296,7 +296,7 @@ public async Task Exists_GetFirewallPolicyRuleCollectionGroupWithIpGroups() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GetFirewallPolicyRuleCollectionGroupWithIpGroups() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/FirewallPolicyRuleCollectionGroupWithIpGroupsGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/FirewallPolicyRuleCollectionGroupWithIpGroupsGet.json // this example is just showing the usage of "FirewallPolicyRuleCollectionGroups_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 @@ -338,7 +338,7 @@ public async Task GetIfExists_GetFirewallPolicyRuleCollectionGroupWithIpGroups() [Ignore("Only validating compilation of examples")] public async Task Get_GetFirewallPolicyRuleCollectionGroupWithWebCategories() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/FirewallPolicyRuleCollectionGroupWithWebCategoriesGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/FirewallPolicyRuleCollectionGroupWithWebCategoriesGet.json // this example is just showing the usage of "FirewallPolicyRuleCollectionGroups_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 @@ -372,7 +372,7 @@ public async Task Get_GetFirewallPolicyRuleCollectionGroupWithWebCategories() [Ignore("Only validating compilation of examples")] public async Task Exists_GetFirewallPolicyRuleCollectionGroupWithWebCategories() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/FirewallPolicyRuleCollectionGroupWithWebCategoriesGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/FirewallPolicyRuleCollectionGroupWithWebCategoriesGet.json // this example is just showing the usage of "FirewallPolicyRuleCollectionGroups_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 @@ -402,7 +402,7 @@ public async Task Exists_GetFirewallPolicyRuleCollectionGroupWithWebCategories() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GetFirewallPolicyRuleCollectionGroupWithWebCategories() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/FirewallPolicyRuleCollectionGroupWithWebCategoriesGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/FirewallPolicyRuleCollectionGroupWithWebCategoriesGet.json // this example is just showing the usage of "FirewallPolicyRuleCollectionGroups_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 @@ -444,7 +444,7 @@ public async Task GetIfExists_GetFirewallPolicyRuleCollectionGroupWithWebCategor [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_CreateFirewallPolicyNatRuleCollectionGroup() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/FirewallPolicyNatRuleCollectionGroupPut.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/FirewallPolicyNatRuleCollectionGroupPut.json // this example is just showing the usage of "FirewallPolicyRuleCollectionGroups_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 @@ -520,7 +520,7 @@ public async Task CreateOrUpdate_CreateFirewallPolicyNatRuleCollectionGroup() [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_CreateFirewallPolicyRuleCollectionGroup() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/FirewallPolicyRuleCollectionGroupPut.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/FirewallPolicyRuleCollectionGroupPut.json // this example is just showing the usage of "FirewallPolicyRuleCollectionGroups_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 @@ -591,7 +591,7 @@ public async Task CreateOrUpdate_CreateFirewallPolicyRuleCollectionGroup() [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_CreateFirewallPolicyRuleCollectionGroupWithIPGroups() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/FirewallPolicyRuleCollectionGroupWithIpGroupsPut.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/FirewallPolicyRuleCollectionGroupWithIpGroupsPut.json // this example is just showing the usage of "FirewallPolicyRuleCollectionGroups_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 @@ -661,7 +661,7 @@ public async Task CreateOrUpdate_CreateFirewallPolicyRuleCollectionGroupWithIPGr [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_CreateFirewallPolicyRuleCollectionGroupWithWebCategories() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/FirewallPolicyRuleCollectionGroupWithWebCategoriesPut.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/FirewallPolicyRuleCollectionGroupWithWebCategoriesPut.json // this example is just showing the usage of "FirewallPolicyRuleCollectionGroups_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 @@ -732,7 +732,7 @@ public async Task CreateOrUpdate_CreateFirewallPolicyRuleCollectionGroupWithWebC [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_CreateFirewallPolicyRuleCollectionGroupWithHttpHeaderToInsert() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/FirewallPolicyRuleCollectionGroupWithHttpHeadersToInsert.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/FirewallPolicyRuleCollectionGroupWithHttpHeadersToInsert.json // this example is just showing the usage of "FirewallPolicyRuleCollectionGroups_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 @@ -811,7 +811,7 @@ public async Task CreateOrUpdate_CreateFirewallPolicyRuleCollectionGroupWithHttp [Ignore("Only validating compilation of examples")] public async Task GetAll_ListAllFirewallPolicyRuleCollectionGroupWithWebCategories() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/FirewallPolicyRuleCollectionGroupWithWebCategoriesList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/FirewallPolicyRuleCollectionGroupWithWebCategoriesList.json // this example is just showing the usage of "FirewallPolicyRuleCollectionGroups_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 @@ -847,7 +847,7 @@ public async Task GetAll_ListAllFirewallPolicyRuleCollectionGroupWithWebCategori [Ignore("Only validating compilation of examples")] public async Task GetAll_ListAllFirewallPolicyRuleCollectionGroupsForAGivenFirewallPolicy() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/FirewallPolicyRuleCollectionGroupList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/FirewallPolicyRuleCollectionGroupList.json // this example is just showing the usage of "FirewallPolicyRuleCollectionGroups_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 @@ -883,7 +883,7 @@ public async Task GetAll_ListAllFirewallPolicyRuleCollectionGroupsForAGivenFirew [Ignore("Only validating compilation of examples")] public async Task GetAll_ListAllFirewallPolicyRuleCollectionGroupsWithIpGroupsForAGivenFirewallPolicy() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/FirewallPolicyRuleCollectionGroupWithIpGroupsList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/FirewallPolicyRuleCollectionGroupWithIpGroupsList.json // this example is just showing the usage of "FirewallPolicyRuleCollectionGroups_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_FirewallPolicyRuleCollectionGroupDraftResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_FirewallPolicyRuleCollectionGroupDraftResource.cs index cc80d8acbe29..340a9b56238d 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_FirewallPolicyRuleCollectionGroupDraftResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_FirewallPolicyRuleCollectionGroupDraftResource.cs @@ -20,7 +20,7 @@ public partial class Sample_FirewallPolicyRuleCollectionGroupDraftResource [Ignore("Only validating compilation of examples")] public async Task Delete_DeleteFirewallRuleCollectionGroupDraft() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/FirewallPolicyRuleCollectionGroupDraftDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/FirewallPolicyRuleCollectionGroupDraftDelete.json // this example is just showing the usage of "FirewallPolicyRuleCollectionGroupDrafts_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 @@ -47,7 +47,7 @@ public async Task Delete_DeleteFirewallRuleCollectionGroupDraft() [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_CreateOrUpdateRuleCollectionGroupDraft() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/FirewallPolicyRuleCollectionGroupDraftPut.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/FirewallPolicyRuleCollectionGroupDraftPut.json // this example is just showing the usage of "FirewallPolicyRuleCollectionGroupDrafts_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 @@ -115,7 +115,7 @@ public async Task CreateOrUpdate_CreateOrUpdateRuleCollectionGroupDraft() [Ignore("Only validating compilation of examples")] public async Task Get_GetRuleCollectionGroupDraft() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/FirewallPolicyRuleCollectionGroupDraftGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/FirewallPolicyRuleCollectionGroupDraftGet.json // this example is just showing the usage of "FirewallPolicyRuleCollectionGroupDrafts_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/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_FirewallPolicyRuleCollectionGroupResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_FirewallPolicyRuleCollectionGroupResource.cs index 26162668b025..c32eb82394d9 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_FirewallPolicyRuleCollectionGroupResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_FirewallPolicyRuleCollectionGroupResource.cs @@ -20,7 +20,7 @@ public partial class Sample_FirewallPolicyRuleCollectionGroupResource [Ignore("Only validating compilation of examples")] public async Task Delete_DeleteFirewallPolicyRuleCollectionGroup() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/FirewallPolicyRuleCollectionGroupDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/FirewallPolicyRuleCollectionGroupDelete.json // this example is just showing the usage of "FirewallPolicyRuleCollectionGroups_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 @@ -47,7 +47,7 @@ public async Task Delete_DeleteFirewallPolicyRuleCollectionGroup() [Ignore("Only validating compilation of examples")] public async Task Get_GetFirewallPolicyNatRuleCollectionGroup() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/FirewallPolicyNatRuleCollectionGroupGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/FirewallPolicyNatRuleCollectionGroupGet.json // this example is just showing the usage of "FirewallPolicyRuleCollectionGroups_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 @@ -78,7 +78,7 @@ public async Task Get_GetFirewallPolicyNatRuleCollectionGroup() [Ignore("Only validating compilation of examples")] public async Task Get_GetFirewallPolicyRuleCollectionGroup() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/FirewallPolicyRuleCollectionGroupGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/FirewallPolicyRuleCollectionGroupGet.json // this example is just showing the usage of "FirewallPolicyRuleCollectionGroups_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 @@ -109,7 +109,7 @@ public async Task Get_GetFirewallPolicyRuleCollectionGroup() [Ignore("Only validating compilation of examples")] public async Task Get_GetFirewallPolicyRuleCollectionGroupWithIpGroups() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/FirewallPolicyRuleCollectionGroupWithIpGroupsGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/FirewallPolicyRuleCollectionGroupWithIpGroupsGet.json // this example is just showing the usage of "FirewallPolicyRuleCollectionGroups_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -140,7 +140,7 @@ public async Task Get_GetFirewallPolicyRuleCollectionGroupWithIpGroups() [Ignore("Only validating compilation of examples")] public async Task Get_GetFirewallPolicyRuleCollectionGroupWithWebCategories() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/FirewallPolicyRuleCollectionGroupWithWebCategoriesGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/FirewallPolicyRuleCollectionGroupWithWebCategoriesGet.json // this example is just showing the usage of "FirewallPolicyRuleCollectionGroups_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -171,7 +171,7 @@ public async Task Get_GetFirewallPolicyRuleCollectionGroupWithWebCategories() [Ignore("Only validating compilation of examples")] public async Task Update_CreateFirewallPolicyNatRuleCollectionGroup() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/FirewallPolicyNatRuleCollectionGroupPut.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/FirewallPolicyNatRuleCollectionGroupPut.json // this example is just showing the usage of "FirewallPolicyRuleCollectionGroups_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 @@ -244,7 +244,7 @@ public async Task Update_CreateFirewallPolicyNatRuleCollectionGroup() [Ignore("Only validating compilation of examples")] public async Task Update_CreateFirewallPolicyRuleCollectionGroup() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/FirewallPolicyRuleCollectionGroupPut.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/FirewallPolicyRuleCollectionGroupPut.json // this example is just showing the usage of "FirewallPolicyRuleCollectionGroups_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 @@ -312,7 +312,7 @@ public async Task Update_CreateFirewallPolicyRuleCollectionGroup() [Ignore("Only validating compilation of examples")] public async Task Update_CreateFirewallPolicyRuleCollectionGroupWithIPGroups() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/FirewallPolicyRuleCollectionGroupWithIpGroupsPut.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/FirewallPolicyRuleCollectionGroupWithIpGroupsPut.json // this example is just showing the usage of "FirewallPolicyRuleCollectionGroups_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 @@ -379,7 +379,7 @@ public async Task Update_CreateFirewallPolicyRuleCollectionGroupWithIPGroups() [Ignore("Only validating compilation of examples")] public async Task Update_CreateFirewallPolicyRuleCollectionGroupWithWebCategories() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/FirewallPolicyRuleCollectionGroupWithWebCategoriesPut.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/FirewallPolicyRuleCollectionGroupWithWebCategoriesPut.json // this example is just showing the usage of "FirewallPolicyRuleCollectionGroups_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 @@ -447,7 +447,7 @@ public async Task Update_CreateFirewallPolicyRuleCollectionGroupWithWebCategorie [Ignore("Only validating compilation of examples")] public async Task Update_CreateFirewallPolicyRuleCollectionGroupWithHttpHeaderToInsert() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/FirewallPolicyRuleCollectionGroupWithHttpHeadersToInsert.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/FirewallPolicyRuleCollectionGroupWithHttpHeadersToInsert.json // this example is just showing the usage of "FirewallPolicyRuleCollectionGroups_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_FlowLogCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_FlowLogCollection.cs index dae21ae0ff9d..52bdf916658a 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_FlowLogCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_FlowLogCollection.cs @@ -21,7 +21,7 @@ public partial class Sample_FlowLogCollection [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_CreateOrUpdateFlowLog() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkWatcherFlowLogCreate.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkWatcherFlowLogCreate.json // this example is just showing the usage of "FlowLogs_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 @@ -76,7 +76,7 @@ public async Task CreateOrUpdate_CreateOrUpdateFlowLog() [Ignore("Only validating compilation of examples")] public async Task Get_GetFlowLog() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkWatcherFlowLogGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkWatcherFlowLogGet.json // this example is just showing the usage of "FlowLogs_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 @@ -110,7 +110,7 @@ public async Task Get_GetFlowLog() [Ignore("Only validating compilation of examples")] public async Task Exists_GetFlowLog() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkWatcherFlowLogGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkWatcherFlowLogGet.json // this example is just showing the usage of "FlowLogs_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -140,7 +140,7 @@ public async Task Exists_GetFlowLog() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GetFlowLog() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkWatcherFlowLogGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkWatcherFlowLogGet.json // this example is just showing the usage of "FlowLogs_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 @@ -182,7 +182,7 @@ public async Task GetIfExists_GetFlowLog() [Ignore("Only validating compilation of examples")] public async Task GetAll_ListConnectionMonitors() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkWatcherFlowLogList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkWatcherFlowLogList.json // this example is just showing the usage of "FlowLogs_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_FlowLogResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_FlowLogResource.cs index a8ece5cf9e64..0773e1d99a3b 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_FlowLogResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_FlowLogResource.cs @@ -20,7 +20,7 @@ public partial class Sample_FlowLogResource [Ignore("Only validating compilation of examples")] public async Task Update_UpdateFlowLogTags() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkWatcherFlowLogUpdateTags.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkWatcherFlowLogUpdateTags.json // this example is just showing the usage of "FlowLogs_UpdateTags" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -59,7 +59,7 @@ public async Task Update_UpdateFlowLogTags() [Ignore("Only validating compilation of examples")] public async Task Get_GetFlowLog() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkWatcherFlowLogGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkWatcherFlowLogGet.json // this example is just showing the usage of "FlowLogs_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -90,7 +90,7 @@ public async Task Get_GetFlowLog() [Ignore("Only validating compilation of examples")] public async Task Delete_DeleteFlowLog() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkWatcherFlowLogDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkWatcherFlowLogDelete.json // this example is just showing the usage of "FlowLogs_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_FrontendIPConfigurationCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_FrontendIPConfigurationCollection.cs index ba8c0b9ee5ba..804fd09176ab 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_FrontendIPConfigurationCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_FrontendIPConfigurationCollection.cs @@ -19,7 +19,7 @@ public partial class Sample_FrontendIPConfigurationCollection [Ignore("Only validating compilation of examples")] public async Task GetAll_LoadBalancerFrontendIPConfigurationList() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/LoadBalancerFrontendIPConfigurationList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/LoadBalancerFrontendIPConfigurationList.json // this example is just showing the usage of "LoadBalancerFrontendIPConfigurations_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -55,7 +55,7 @@ public async Task GetAll_LoadBalancerFrontendIPConfigurationList() [Ignore("Only validating compilation of examples")] public async Task Get_LoadBalancerFrontendIPConfigurationGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/LoadBalancerFrontendIPConfigurationGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/LoadBalancerFrontendIPConfigurationGet.json // this example is just showing the usage of "LoadBalancerFrontendIPConfigurations_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -89,7 +89,7 @@ public async Task Get_LoadBalancerFrontendIPConfigurationGet() [Ignore("Only validating compilation of examples")] public async Task Exists_LoadBalancerFrontendIPConfigurationGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/LoadBalancerFrontendIPConfigurationGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/LoadBalancerFrontendIPConfigurationGet.json // this example is just showing the usage of "LoadBalancerFrontendIPConfigurations_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -119,7 +119,7 @@ public async Task Exists_LoadBalancerFrontendIPConfigurationGet() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_LoadBalancerFrontendIPConfigurationGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/LoadBalancerFrontendIPConfigurationGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/LoadBalancerFrontendIPConfigurationGet.json // this example is just showing the usage of "LoadBalancerFrontendIPConfigurations_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/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_FrontendIPConfigurationResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_FrontendIPConfigurationResource.cs index ff203c4773ca..e0ef0d6e42d3 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_FrontendIPConfigurationResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_FrontendIPConfigurationResource.cs @@ -19,7 +19,7 @@ public partial class Sample_FrontendIPConfigurationResource [Ignore("Only validating compilation of examples")] public async Task Get_LoadBalancerFrontendIPConfigurationGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/LoadBalancerFrontendIPConfigurationGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/LoadBalancerFrontendIPConfigurationGet.json // this example is just showing the usage of "LoadBalancerFrontendIPConfigurations_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/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_HubIPConfigurationCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_HubIPConfigurationCollection.cs index a929655821ef..b4ad6b8ef0f9 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_HubIPConfigurationCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_HubIPConfigurationCollection.cs @@ -19,7 +19,7 @@ public partial class Sample_HubIPConfigurationCollection [Ignore("Only validating compilation of examples")] public async Task Get_VirtualHubVirtualHubRouteTableV2Get() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualHubIpConfigurationGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VirtualHubIpConfigurationGet.json // this example is just showing the usage of "VirtualHubIpConfiguration_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -53,7 +53,7 @@ public async Task Get_VirtualHubVirtualHubRouteTableV2Get() [Ignore("Only validating compilation of examples")] public async Task Exists_VirtualHubVirtualHubRouteTableV2Get() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualHubIpConfigurationGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VirtualHubIpConfigurationGet.json // this example is just showing the usage of "VirtualHubIpConfiguration_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -83,7 +83,7 @@ public async Task Exists_VirtualHubVirtualHubRouteTableV2Get() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_VirtualHubVirtualHubRouteTableV2Get() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualHubIpConfigurationGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VirtualHubIpConfigurationGet.json // this example is just showing the usage of "VirtualHubIpConfiguration_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -125,7 +125,7 @@ public async Task GetIfExists_VirtualHubVirtualHubRouteTableV2Get() [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_VirtualHubIpConfigurationPut() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualHubIpConfigurationPut.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VirtualHubIpConfigurationPut.json // this example is just showing the usage of "VirtualHubIpConfiguration_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 @@ -167,7 +167,7 @@ public async Task CreateOrUpdate_VirtualHubIpConfigurationPut() [Ignore("Only validating compilation of examples")] public async Task GetAll_VirtualHubRouteTableV2List() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualHubIpConfigurationList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VirtualHubIpConfigurationList.json // this example is just showing the usage of "VirtualHubIpConfiguration_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_HubIPConfigurationResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_HubIPConfigurationResource.cs index ed88f6091789..a7b5d021b975 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_HubIPConfigurationResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_HubIPConfigurationResource.cs @@ -19,7 +19,7 @@ public partial class Sample_HubIPConfigurationResource [Ignore("Only validating compilation of examples")] public async Task Get_VirtualHubVirtualHubRouteTableV2Get() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualHubIpConfigurationGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VirtualHubIpConfigurationGet.json // this example is just showing the usage of "VirtualHubIpConfiguration_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_VirtualHubVirtualHubRouteTableV2Get() [Ignore("Only validating compilation of examples")] public async Task Update_VirtualHubIpConfigurationPut() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualHubIpConfigurationPut.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VirtualHubIpConfigurationPut.json // this example is just showing the usage of "VirtualHubIpConfiguration_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 @@ -89,7 +89,7 @@ public async Task Update_VirtualHubIpConfigurationPut() [Ignore("Only validating compilation of examples")] public async Task Delete_VirtualHubIpConfigurationDelete() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualHubIpConfigurationDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VirtualHubIpConfigurationDelete.json // this example is just showing the usage of "VirtualHubIpConfiguration_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_HubRouteTableCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_HubRouteTableCollection.cs index c266a31d97a6..943c283a9272 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_HubRouteTableCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_HubRouteTableCollection.cs @@ -20,7 +20,7 @@ public partial class Sample_HubRouteTableCollection [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_RouteTablePut() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/HubRouteTablePut.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/HubRouteTablePut.json // this example is just showing the usage of "HubRouteTables_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 @@ -69,7 +69,7 @@ public async Task CreateOrUpdate_RouteTablePut() [Ignore("Only validating compilation of examples")] public async Task Get_RouteTableGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/HubRouteTableGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/HubRouteTableGet.json // this example is just showing the usage of "HubRouteTables_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 @@ -103,7 +103,7 @@ public async Task Get_RouteTableGet() [Ignore("Only validating compilation of examples")] public async Task Exists_RouteTableGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/HubRouteTableGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/HubRouteTableGet.json // this example is just showing the usage of "HubRouteTables_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 @@ -133,7 +133,7 @@ public async Task Exists_RouteTableGet() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_RouteTableGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/HubRouteTableGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/HubRouteTableGet.json // this example is just showing the usage of "HubRouteTables_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 @@ -175,7 +175,7 @@ public async Task GetIfExists_RouteTableGet() [Ignore("Only validating compilation of examples")] public async Task GetAll_RouteTableList() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/HubRouteTableList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/HubRouteTableList.json // this example is just showing the usage of "HubRouteTables_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_HubRouteTableResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_HubRouteTableResource.cs index e55d1f616b7f..44cd0e936e5f 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_HubRouteTableResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_HubRouteTableResource.cs @@ -20,7 +20,7 @@ public partial class Sample_HubRouteTableResource [Ignore("Only validating compilation of examples")] public async Task Update_RouteTablePut() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/HubRouteTablePut.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/HubRouteTablePut.json // this example is just showing the usage of "HubRouteTables_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 @@ -66,7 +66,7 @@ public async Task Update_RouteTablePut() [Ignore("Only validating compilation of examples")] public async Task Get_RouteTableGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/HubRouteTableGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/HubRouteTableGet.json // this example is just showing the usage of "HubRouteTables_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -97,7 +97,7 @@ public async Task Get_RouteTableGet() [Ignore("Only validating compilation of examples")] public async Task Delete_RouteTableDelete() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/HubRouteTableDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/HubRouteTableDelete.json // this example is just showing the usage of "HubRouteTables_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_HubVirtualNetworkConnectionCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_HubVirtualNetworkConnectionCollection.cs index 61ee42bc8fed..4dffb3f4a286 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_HubVirtualNetworkConnectionCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_HubVirtualNetworkConnectionCollection.cs @@ -21,7 +21,7 @@ public partial class Sample_HubVirtualNetworkConnectionCollection [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_HubVirtualNetworkConnectionPut() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/HubVirtualNetworkConnectionPut.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/HubVirtualNetworkConnectionPut.json // this example is just showing the usage of "HubVirtualNetworkConnections_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 @@ -108,7 +108,7 @@ public async Task CreateOrUpdate_HubVirtualNetworkConnectionPut() [Ignore("Only validating compilation of examples")] public async Task Get_HubVirtualNetworkConnectionGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/HubVirtualNetworkConnectionGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/HubVirtualNetworkConnectionGet.json // this example is just showing the usage of "HubVirtualNetworkConnections_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 @@ -142,7 +142,7 @@ public async Task Get_HubVirtualNetworkConnectionGet() [Ignore("Only validating compilation of examples")] public async Task Exists_HubVirtualNetworkConnectionGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/HubVirtualNetworkConnectionGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/HubVirtualNetworkConnectionGet.json // this example is just showing the usage of "HubVirtualNetworkConnections_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -172,7 +172,7 @@ public async Task Exists_HubVirtualNetworkConnectionGet() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_HubVirtualNetworkConnectionGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/HubVirtualNetworkConnectionGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/HubVirtualNetworkConnectionGet.json // this example is just showing the usage of "HubVirtualNetworkConnections_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 @@ -214,7 +214,7 @@ public async Task GetIfExists_HubVirtualNetworkConnectionGet() [Ignore("Only validating compilation of examples")] public async Task GetAll_HubVirtualNetworkConnectionList() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/HubVirtualNetworkConnectionList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/HubVirtualNetworkConnectionList.json // this example is just showing the usage of "HubVirtualNetworkConnections_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_HubVirtualNetworkConnectionResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_HubVirtualNetworkConnectionResource.cs index 8574e9c19cf7..41560710dd71 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_HubVirtualNetworkConnectionResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_HubVirtualNetworkConnectionResource.cs @@ -21,7 +21,7 @@ public partial class Sample_HubVirtualNetworkConnectionResource [Ignore("Only validating compilation of examples")] public async Task Update_HubVirtualNetworkConnectionPut() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/HubVirtualNetworkConnectionPut.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/HubVirtualNetworkConnectionPut.json // this example is just showing the usage of "HubVirtualNetworkConnections_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 @@ -105,7 +105,7 @@ public async Task Update_HubVirtualNetworkConnectionPut() [Ignore("Only validating compilation of examples")] public async Task Delete_HubVirtualNetworkConnectionDelete() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/HubVirtualNetworkConnectionDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/HubVirtualNetworkConnectionDelete.json // this example is just showing the usage of "HubVirtualNetworkConnections_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 @@ -132,7 +132,7 @@ public async Task Delete_HubVirtualNetworkConnectionDelete() [Ignore("Only validating compilation of examples")] public async Task Get_HubVirtualNetworkConnectionGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/HubVirtualNetworkConnectionGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/HubVirtualNetworkConnectionGet.json // this example is just showing the usage of "HubVirtualNetworkConnections_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/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_IPAllocationCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_IPAllocationCollection.cs index 0c96b78a680c..221b1d385007 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_IPAllocationCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_IPAllocationCollection.cs @@ -21,7 +21,7 @@ public partial class Sample_IPAllocationCollection [Ignore("Only validating compilation of examples")] public async Task Get_GetIpAllocation() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/IpAllocationGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/IpAllocationGet.json // this example is just showing the usage of "IpAllocations_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -54,7 +54,7 @@ public async Task Get_GetIpAllocation() [Ignore("Only validating compilation of examples")] public async Task Exists_GetIpAllocation() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/IpAllocationGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/IpAllocationGet.json // this example is just showing the usage of "IpAllocations_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -83,7 +83,7 @@ public async Task Exists_GetIpAllocation() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GetIpAllocation() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/IpAllocationGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/IpAllocationGet.json // this example is just showing the usage of "IpAllocations_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 @@ -124,7 +124,7 @@ public async Task GetIfExists_GetIpAllocation() [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_CreateIpAllocation() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/IpAllocationCreate.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/IpAllocationCreate.json // this example is just showing the usage of "IpAllocations_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 @@ -168,7 +168,7 @@ public async Task CreateOrUpdate_CreateIpAllocation() [Ignore("Only validating compilation of examples")] public async Task GetAll_ListIpAllocationsInResourceGroup() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/IpAllocationListByResourceGroup.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/IpAllocationListByResourceGroup.json // this example is just showing the usage of "IpAllocations_ListByResourceGroup" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_IPAllocationResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_IPAllocationResource.cs index a224ae336521..81817124c391 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_IPAllocationResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_IPAllocationResource.cs @@ -21,7 +21,7 @@ public partial class Sample_IPAllocationResource [Ignore("Only validating compilation of examples")] public async Task Delete_DeleteIpAllocation() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/IpAllocationDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/IpAllocationDelete.json // this example is just showing the usage of "IpAllocations_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 @@ -47,7 +47,7 @@ public async Task Delete_DeleteIpAllocation() [Ignore("Only validating compilation of examples")] public async Task Get_GetIpAllocation() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/IpAllocationGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/IpAllocationGet.json // this example is just showing the usage of "IpAllocations_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 @@ -77,7 +77,7 @@ public async Task Get_GetIpAllocation() [Ignore("Only validating compilation of examples")] public async Task Update_UpdateVirtualNetworkTags() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/IpAllocationUpdateTags.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/IpAllocationUpdateTags.json // this example is just showing the usage of "IpAllocations_UpdateTags" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -115,7 +115,7 @@ public async Task Update_UpdateVirtualNetworkTags() [Ignore("Only validating compilation of examples")] public async Task GetIPAllocations_ListAllIpAllocations() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/IpAllocationList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/IpAllocationList.json // this example is just showing the usage of "IpAllocations_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_IPGroupCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_IPGroupCollection.cs index caa55bb12e36..7cc26aebd60d 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_IPGroupCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_IPGroupCollection.cs @@ -20,7 +20,7 @@ public partial class Sample_IPGroupCollection [Ignore("Only validating compilation of examples")] public async Task Get_GetIpGroups() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/IpGroupsGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/IpGroupsGet.json // this example is just showing the usage of "IpGroups_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -53,7 +53,7 @@ public async Task Get_GetIpGroups() [Ignore("Only validating compilation of examples")] public async Task Exists_GetIpGroups() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/IpGroupsGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/IpGroupsGet.json // this example is just showing the usage of "IpGroups_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -82,7 +82,7 @@ public async Task Exists_GetIpGroups() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GetIpGroups() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/IpGroupsGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/IpGroupsGet.json // this example is just showing the usage of "IpGroups_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 @@ -123,7 +123,7 @@ public async Task GetIfExists_GetIpGroups() [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_CreateOrUpdateIpGroups() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/IpGroupsCreate.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/IpGroupsCreate.json // this example is just showing the usage of "IpGroups_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -169,7 +169,7 @@ public async Task CreateOrUpdate_CreateOrUpdateIpGroups() [Ignore("Only validating compilation of examples")] public async Task GetAll_ListByResourceGroupIpGroups() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/IpGroupsListByResourceGroup.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/IpGroupsListByResourceGroup.json // this example is just showing the usage of "IpGroups_ListByResourceGroup" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_IPGroupResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_IPGroupResource.cs index 2d9e5311517a..e8b22fd55e67 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_IPGroupResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_IPGroupResource.cs @@ -21,7 +21,7 @@ public partial class Sample_IPGroupResource [Ignore("Only validating compilation of examples")] public async Task Get_GetIpGroups() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/IpGroupsGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/IpGroupsGet.json // this example is just showing the usage of "IpGroups_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 @@ -51,7 +51,7 @@ public async Task Get_GetIpGroups() [Ignore("Only validating compilation of examples")] public async Task Update_UpdateIpGroups() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/IpGroupsUpdateTags.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/IpGroupsUpdateTags.json // this example is just showing the usage of "IpGroups_UpdateGroups" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -89,7 +89,7 @@ public async Task Update_UpdateIpGroups() [Ignore("Only validating compilation of examples")] public async Task Delete_DeleteIpGroups() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/IpGroupsDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/IpGroupsDelete.json // this example is just showing the usage of "IpGroups_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 @@ -115,7 +115,7 @@ public async Task Delete_DeleteIpGroups() [Ignore("Only validating compilation of examples")] public async Task GetIPGroups_ListIpGroups() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/IpGroupsListBySubscription.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/IpGroupsListBySubscription.json // this example is just showing the usage of "IpGroups_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_InboundNatRuleCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_InboundNatRuleCollection.cs index 1ef838de510f..1899ee69b1ab 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_InboundNatRuleCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_InboundNatRuleCollection.cs @@ -20,7 +20,7 @@ public partial class Sample_InboundNatRuleCollection [Ignore("Only validating compilation of examples")] public async Task GetAll_InboundNatRuleList() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/InboundNatRuleList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/InboundNatRuleList.json // this example is just showing the usage of "InboundNatRules_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -56,7 +56,7 @@ public async Task GetAll_InboundNatRuleList() [Ignore("Only validating compilation of examples")] public async Task Get_InboundNatRuleGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/InboundNatRuleGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/InboundNatRuleGet.json // this example is just showing the usage of "InboundNatRules_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -90,7 +90,7 @@ public async Task Get_InboundNatRuleGet() [Ignore("Only validating compilation of examples")] public async Task Exists_InboundNatRuleGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/InboundNatRuleGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/InboundNatRuleGet.json // this example is just showing the usage of "InboundNatRules_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 @@ -120,7 +120,7 @@ public async Task Exists_InboundNatRuleGet() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_InboundNatRuleGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/InboundNatRuleGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/InboundNatRuleGet.json // this example is just showing the usage of "InboundNatRules_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 @@ -162,7 +162,7 @@ public async Task GetIfExists_InboundNatRuleGet() [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_InboundNatRuleCreate() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/InboundNatRuleCreate.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/InboundNatRuleCreate.json // this example is just showing the usage of "InboundNatRules_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_InboundNatRuleResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_InboundNatRuleResource.cs index 656b78786bb8..f134585ad5d2 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_InboundNatRuleResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_InboundNatRuleResource.cs @@ -20,7 +20,7 @@ public partial class Sample_InboundNatRuleResource [Ignore("Only validating compilation of examples")] public async Task Delete_InboundNatRuleDelete() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/InboundNatRuleDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/InboundNatRuleDelete.json // this example is just showing the usage of "InboundNatRules_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 @@ -47,7 +47,7 @@ public async Task Delete_InboundNatRuleDelete() [Ignore("Only validating compilation of examples")] public async Task Get_InboundNatRuleGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/InboundNatRuleGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/InboundNatRuleGet.json // this example is just showing the usage of "InboundNatRules_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 @@ -78,7 +78,7 @@ public async Task Get_InboundNatRuleGet() [Ignore("Only validating compilation of examples")] public async Task Update_InboundNatRuleCreate() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/InboundNatRuleCreate.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/InboundNatRuleCreate.json // this example is just showing the usage of "InboundNatRules_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_InboundSecurityRuleCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_InboundSecurityRuleCollection.cs index ff7ed4fc7094..c8efa5784922 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_InboundSecurityRuleCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_InboundSecurityRuleCollection.cs @@ -20,7 +20,7 @@ public partial class Sample_InboundSecurityRuleCollection [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_CreateNetworkVirtualApplianceInboundSecurityRules() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/InboundSecurityRulePut.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/InboundSecurityRulePut.json // this example is just showing the usage of "InboundSecurityRule_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 @@ -77,7 +77,7 @@ public async Task CreateOrUpdate_CreateNetworkVirtualApplianceInboundSecurityRul [Ignore("Only validating compilation of examples")] public async Task Get_CreateNetworkVirtualApplianceInboundSecurityRules() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/InboundSecurityRuleGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/InboundSecurityRuleGet.json // this example is just showing the usage of "InboundSecurityRule_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 @@ -111,7 +111,7 @@ public async Task Get_CreateNetworkVirtualApplianceInboundSecurityRules() [Ignore("Only validating compilation of examples")] public async Task Exists_CreateNetworkVirtualApplianceInboundSecurityRules() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/InboundSecurityRuleGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/InboundSecurityRuleGet.json // this example is just showing the usage of "InboundSecurityRule_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 @@ -141,7 +141,7 @@ public async Task Exists_CreateNetworkVirtualApplianceInboundSecurityRules() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_CreateNetworkVirtualApplianceInboundSecurityRules() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/InboundSecurityRuleGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/InboundSecurityRuleGet.json // this example is just showing the usage of "InboundSecurityRule_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/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_InboundSecurityRuleResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_InboundSecurityRuleResource.cs index 98f8a723095f..4e5e03b8caa6 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_InboundSecurityRuleResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_InboundSecurityRuleResource.cs @@ -20,7 +20,7 @@ public partial class Sample_InboundSecurityRuleResource [Ignore("Only validating compilation of examples")] public async Task Update_CreateNetworkVirtualApplianceInboundSecurityRules() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/InboundSecurityRulePut.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/InboundSecurityRulePut.json // this example is just showing the usage of "InboundSecurityRule_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 @@ -74,7 +74,7 @@ public async Task Update_CreateNetworkVirtualApplianceInboundSecurityRules() [Ignore("Only validating compilation of examples")] public async Task Get_CreateNetworkVirtualApplianceInboundSecurityRules() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/InboundSecurityRuleGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/InboundSecurityRuleGet.json // this example is just showing the usage of "InboundSecurityRule_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/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_IpamPoolCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_IpamPoolCollection.cs new file mode 100644 index 000000000000..053f503cd949 --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_IpamPoolCollection.cs @@ -0,0 +1,204 @@ +// 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.Network.Models; +using NUnit.Framework; + +namespace Azure.ResourceManager.Network.Samples +{ + public partial class Sample_IpamPoolCollection + { + [Test] + [Ignore("Only validating compilation of examples")] + public async Task GetAll_IpamPoolsList() + { + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/IpamPools_List.json + // this example is just showing the usage of "IpamPools_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 NetworkManagerResource created on azure + // for more information of creating NetworkManagerResource, please refer to the document of NetworkManagerResource + string subscriptionId = "11111111-1111-1111-1111-111111111111"; + string resourceGroupName = "rg1"; + string networkManagerName = "TestNetworkManager"; + ResourceIdentifier networkManagerResourceId = NetworkManagerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, networkManagerName); + NetworkManagerResource networkManager = client.GetNetworkManagerResource(networkManagerResourceId); + + // get the collection of this IpamPoolResource + IpamPoolCollection collection = networkManager.GetIpamPools(); + + // invoke the operation and iterate over the result + await foreach (IpamPoolResource item in collection.GetAllAsync()) + { + // the variable item is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + IpamPoolData 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 CreateOrUpdate_IpamPoolsCreate() + { + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/IpamPools_Create.json + // this example is just showing the usage of "IpamPools_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 NetworkManagerResource created on azure + // for more information of creating NetworkManagerResource, please refer to the document of NetworkManagerResource + string subscriptionId = "11111111-1111-1111-1111-111111111111"; + string resourceGroupName = "rg1"; + string networkManagerName = "TestNetworkManager"; + ResourceIdentifier networkManagerResourceId = NetworkManagerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, networkManagerName); + NetworkManagerResource networkManager = client.GetNetworkManagerResource(networkManagerResourceId); + + // get the collection of this IpamPoolResource + IpamPoolCollection collection = networkManager.GetIpamPools(); + + // invoke the operation + string poolName = "TestPool"; + IpamPoolData data = new IpamPoolData(new AzureLocation("eastus"), new IpamPoolProperties(new string[] + { +"10.0.0.0/24" + }) + { + Description = "Test description.", + ParentPoolName = "", + }); + ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, poolName, data); + IpamPoolResource 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 + IpamPoolData 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_IpamPoolsGet() + { + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/IpamPools_Get.json + // this example is just showing the usage of "IpamPools_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 NetworkManagerResource created on azure + // for more information of creating NetworkManagerResource, please refer to the document of NetworkManagerResource + string subscriptionId = "11111111-1111-1111-1111-111111111111"; + string resourceGroupName = "rg1"; + string networkManagerName = "TestNetworkManager"; + ResourceIdentifier networkManagerResourceId = NetworkManagerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, networkManagerName); + NetworkManagerResource networkManager = client.GetNetworkManagerResource(networkManagerResourceId); + + // get the collection of this IpamPoolResource + IpamPoolCollection collection = networkManager.GetIpamPools(); + + // invoke the operation + string poolName = "TestPool"; + IpamPoolResource result = await collection.GetAsync(poolName); + + // 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 + IpamPoolData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + [Test] + [Ignore("Only validating compilation of examples")] + public async Task Exists_IpamPoolsGet() + { + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/IpamPools_Get.json + // this example is just showing the usage of "IpamPools_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 NetworkManagerResource created on azure + // for more information of creating NetworkManagerResource, please refer to the document of NetworkManagerResource + string subscriptionId = "11111111-1111-1111-1111-111111111111"; + string resourceGroupName = "rg1"; + string networkManagerName = "TestNetworkManager"; + ResourceIdentifier networkManagerResourceId = NetworkManagerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, networkManagerName); + NetworkManagerResource networkManager = client.GetNetworkManagerResource(networkManagerResourceId); + + // get the collection of this IpamPoolResource + IpamPoolCollection collection = networkManager.GetIpamPools(); + + // invoke the operation + string poolName = "TestPool"; + bool result = await collection.ExistsAsync(poolName); + + Console.WriteLine($"Succeeded: {result}"); + } + + [Test] + [Ignore("Only validating compilation of examples")] + public async Task GetIfExists_IpamPoolsGet() + { + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/IpamPools_Get.json + // this example is just showing the usage of "IpamPools_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 NetworkManagerResource created on azure + // for more information of creating NetworkManagerResource, please refer to the document of NetworkManagerResource + string subscriptionId = "11111111-1111-1111-1111-111111111111"; + string resourceGroupName = "rg1"; + string networkManagerName = "TestNetworkManager"; + ResourceIdentifier networkManagerResourceId = NetworkManagerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, networkManagerName); + NetworkManagerResource networkManager = client.GetNetworkManagerResource(networkManagerResourceId); + + // get the collection of this IpamPoolResource + IpamPoolCollection collection = networkManager.GetIpamPools(); + + // invoke the operation + string poolName = "TestPool"; + NullableResponse response = await collection.GetIfExistsAsync(poolName); + IpamPoolResource 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 + IpamPoolData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + } + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_IpamPoolResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_IpamPoolResource.cs new file mode 100644 index 000000000000..3323eda35108 --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_IpamPoolResource.cs @@ -0,0 +1,166 @@ +// 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.Network.Models; +using NUnit.Framework; + +namespace Azure.ResourceManager.Network.Samples +{ + public partial class Sample_IpamPoolResource + { + [Test] + [Ignore("Only validating compilation of examples")] + public async Task Update_IpamPoolsUpdate() + { + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/IpamPools_Update.json + // this example is just showing the usage of "IpamPools_Update" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this IpamPoolResource created on azure + // for more information of creating IpamPoolResource, please refer to the document of IpamPoolResource + string subscriptionId = "11111111-1111-1111-1111-111111111111"; + string resourceGroupName = "rg1"; + string networkManagerName = "TestNetworkManager"; + string poolName = "TestPool"; + ResourceIdentifier ipamPoolResourceId = IpamPoolResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, networkManagerName, poolName); + IpamPoolResource ipamPool = client.GetIpamPoolResource(ipamPoolResourceId); + + // invoke the operation + IpamPoolPatch patch = new IpamPoolPatch(); + IpamPoolResource result = await ipamPool.UpdateAsync(patch); + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + IpamPoolData 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_IpamPoolsGet() + { + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/IpamPools_Get.json + // this example is just showing the usage of "IpamPools_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 IpamPoolResource created on azure + // for more information of creating IpamPoolResource, please refer to the document of IpamPoolResource + string subscriptionId = "11111111-1111-1111-1111-111111111111"; + string resourceGroupName = "rg1"; + string networkManagerName = "TestNetworkManager"; + string poolName = "TestPool"; + ResourceIdentifier ipamPoolResourceId = IpamPoolResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, networkManagerName, poolName); + IpamPoolResource ipamPool = client.GetIpamPoolResource(ipamPoolResourceId); + + // invoke the operation + IpamPoolResource result = await ipamPool.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 + IpamPoolData 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_IpamPoolsDelete() + { + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/IpamPools_Delete.json + // this example is just showing the usage of "IpamPools_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 IpamPoolResource created on azure + // for more information of creating IpamPoolResource, please refer to the document of IpamPoolResource + string subscriptionId = "11111111-1111-1111-1111-111111111111"; + string resourceGroupName = "rg1"; + string networkManagerName = "TestNetworkManager"; + string poolName = "TestPool"; + ResourceIdentifier ipamPoolResourceId = IpamPoolResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, networkManagerName, poolName); + IpamPoolResource ipamPool = client.GetIpamPoolResource(ipamPoolResourceId); + + // invoke the operation + await ipamPool.DeleteAsync(WaitUntil.Completed); + + Console.WriteLine("Succeeded"); + } + + [Test] + [Ignore("Only validating compilation of examples")] + public async Task GetPoolUsage_IpamPoolsGetPoolUsage() + { + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/IpamPools_GetPoolUsage.json + // this example is just showing the usage of "IpamPools_GetPoolUsage" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details 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 IpamPoolResource created on azure + // for more information of creating IpamPoolResource, please refer to the document of IpamPoolResource + string subscriptionId = "11111111-1111-1111-1111-111111111111"; + string resourceGroupName = "rg1"; + string networkManagerName = "TestNetworkManager"; + string poolName = "TestPool"; + ResourceIdentifier ipamPoolResourceId = IpamPoolResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, networkManagerName, poolName); + IpamPoolResource ipamPool = client.GetIpamPoolResource(ipamPoolResourceId); + + // invoke the operation + PoolUsage result = await ipamPool.GetPoolUsageAsync(); + + Console.WriteLine($"Succeeded: {result}"); + } + + [Test] + [Ignore("Only validating compilation of examples")] + public async Task GetAssociatedResources_IpamPoolsListAssociatedResources() + { + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/IpamPools_ListAssociatedResources.json + // this example is just showing the usage of "IpamPools_ListAssociatedResources" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details 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 IpamPoolResource created on azure + // for more information of creating IpamPoolResource, please refer to the document of IpamPoolResource + string subscriptionId = "11111111-1111-1111-1111-111111111111"; + string resourceGroupName = "rg1"; + string networkManagerName = "TestNetworkManager"; + string poolName = "TestPool"; + ResourceIdentifier ipamPoolResourceId = IpamPoolResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, networkManagerName, poolName); + IpamPoolResource ipamPool = client.GetIpamPoolResource(ipamPoolResourceId); + + // invoke the operation and iterate over the result + await foreach (PoolAssociation item in ipamPool.GetAssociatedResourcesAsync()) + { + Console.WriteLine($"Succeeded: {item}"); + } + + Console.WriteLine("Succeeded"); + } + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_LoadBalancerCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_LoadBalancerCollection.cs index 4fef9c953a6c..0018de399f55 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_LoadBalancerCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_LoadBalancerCollection.cs @@ -22,7 +22,7 @@ public partial class Sample_LoadBalancerCollection [Ignore("Only validating compilation of examples")] public async Task Get_GetLoadBalancer() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/LoadBalancerGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/LoadBalancerGet.json // this example is just showing the usage of "LoadBalancers_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -55,7 +55,7 @@ public async Task Get_GetLoadBalancer() [Ignore("Only validating compilation of examples")] public async Task Exists_GetLoadBalancer() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/LoadBalancerGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/LoadBalancerGet.json // this example is just showing the usage of "LoadBalancers_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 @@ -84,7 +84,7 @@ public async Task Exists_GetLoadBalancer() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GetLoadBalancer() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/LoadBalancerGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/LoadBalancerGet.json // this example is just showing the usage of "LoadBalancers_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -125,7 +125,7 @@ public async Task GetIfExists_GetLoadBalancer() [Ignore("Only validating compilation of examples")] public async Task Get_GetLoadBalancerWithInboundNATRulePortMapping() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/LoadBalancerGetInboundNatRulePortMapping.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/LoadBalancerGetInboundNatRulePortMapping.json // this example is just showing the usage of "LoadBalancers_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 @@ -158,7 +158,7 @@ public async Task Get_GetLoadBalancerWithInboundNATRulePortMapping() [Ignore("Only validating compilation of examples")] public async Task Exists_GetLoadBalancerWithInboundNATRulePortMapping() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/LoadBalancerGetInboundNatRulePortMapping.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/LoadBalancerGetInboundNatRulePortMapping.json // this example is just showing the usage of "LoadBalancers_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 @@ -187,7 +187,7 @@ public async Task Exists_GetLoadBalancerWithInboundNATRulePortMapping() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GetLoadBalancerWithInboundNATRulePortMapping() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/LoadBalancerGetInboundNatRulePortMapping.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/LoadBalancerGetInboundNatRulePortMapping.json // this example is just showing the usage of "LoadBalancers_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 @@ -228,7 +228,7 @@ public async Task GetIfExists_GetLoadBalancerWithInboundNATRulePortMapping() [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_CreateLoadBalancer() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/LoadBalancerCreate.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/LoadBalancerCreate.json // this example is just showing the usage of "LoadBalancers_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 @@ -331,7 +331,7 @@ public async Task CreateOrUpdate_CreateLoadBalancer() [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_CreateLoadBalancerWithFrontendIPInZone1() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/LoadBalancerCreateWithZones.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/LoadBalancerCreateWithZones.json // this example is just showing the usage of "LoadBalancers_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 @@ -443,7 +443,7 @@ public async Task CreateOrUpdate_CreateLoadBalancerWithFrontendIPInZone1() [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_CreateLoadBalancerWithGatewayLoadBalancerConsumerConfigured() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/LoadBalancerCreateGatewayLoadBalancerConsumer.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/LoadBalancerCreateGatewayLoadBalancerConsumer.json // this example is just showing the usage of "LoadBalancers_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 @@ -552,7 +552,7 @@ public async Task CreateOrUpdate_CreateLoadBalancerWithGatewayLoadBalancerConsum [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_CreateLoadBalancerWithGatewayLoadBalancerProviderConfiguredWithOneBackendPool() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/LoadBalancerCreateGatewayLoadBalancerProviderWithOneBackendPool.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/LoadBalancerCreateGatewayLoadBalancerProviderWithOneBackendPool.json // this example is just showing the usage of "LoadBalancers_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 @@ -669,7 +669,7 @@ public async Task CreateOrUpdate_CreateLoadBalancerWithGatewayLoadBalancerProvid [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_CreateLoadBalancerWithGatewayLoadBalancerProviderConfiguredWithTwoBackendPool() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/LoadBalancerCreateGatewayLoadBalancerProviderWithTwoBackendPool.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/LoadBalancerCreateGatewayLoadBalancerProviderWithTwoBackendPool.json // this example is just showing the usage of "LoadBalancers_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 @@ -776,7 +776,7 @@ public async Task CreateOrUpdate_CreateLoadBalancerWithGatewayLoadBalancerProvid [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_CreateLoadBalancerWithGlobalTierAndOneRegionalLoadBalancerInItsBackendPool() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/LoadBalancerCreateGlobalTier.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/LoadBalancerCreateGlobalTier.json // this example is just showing the usage of "LoadBalancers_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 @@ -874,7 +874,7 @@ public async Task CreateOrUpdate_CreateLoadBalancerWithGlobalTierAndOneRegionalL [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_CreateLoadBalancerWithStandardSKU() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/LoadBalancerCreateStandardSku.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/LoadBalancerCreateStandardSku.json // this example is just showing the usage of "LoadBalancers_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 @@ -982,7 +982,7 @@ public async Task CreateOrUpdate_CreateLoadBalancerWithStandardSKU() [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_CreateLoadBalancerWithSyncModePropertyOnPool() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/LoadBalancerCreateWithSyncModePropertyOnPool.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/LoadBalancerCreateWithSyncModePropertyOnPool.json // this example is just showing the usage of "LoadBalancers_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 @@ -1092,7 +1092,7 @@ public async Task CreateOrUpdate_CreateLoadBalancerWithSyncModePropertyOnPool() [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_CreateLoadBalancerWithInboundNatPool() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/LoadBalancerCreateWithInboundNatPool.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/LoadBalancerCreateWithInboundNatPool.json // this example is just showing the usage of "LoadBalancers_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 @@ -1181,7 +1181,7 @@ public async Task CreateOrUpdate_CreateLoadBalancerWithInboundNatPool() [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_CreateLoadBalancerWithOutboundRules() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/LoadBalancerCreateWithOutboundRules.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/LoadBalancerCreateWithOutboundRules.json // this example is just showing the usage of "LoadBalancers_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 @@ -1303,7 +1303,7 @@ public async Task CreateOrUpdate_CreateLoadBalancerWithOutboundRules() [Ignore("Only validating compilation of examples")] public async Task GetAll_ListLoadBalancersInResourceGroup() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/LoadBalancerList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/LoadBalancerList.json // this example is just showing the usage of "LoadBalancers_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_LoadBalancerResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_LoadBalancerResource.cs index 24c5f69e917d..6897c6a4a1ff 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_LoadBalancerResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_LoadBalancerResource.cs @@ -21,7 +21,7 @@ public partial class Sample_LoadBalancerResource [Ignore("Only validating compilation of examples")] public async Task Delete_DeleteLoadBalancer() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/LoadBalancerDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/LoadBalancerDelete.json // this example is just showing the usage of "LoadBalancers_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 @@ -47,7 +47,7 @@ public async Task Delete_DeleteLoadBalancer() [Ignore("Only validating compilation of examples")] public async Task Get_GetLoadBalancer() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/LoadBalancerGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/LoadBalancerGet.json // this example is just showing the usage of "LoadBalancers_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 @@ -77,7 +77,7 @@ public async Task Get_GetLoadBalancer() [Ignore("Only validating compilation of examples")] public async Task Get_GetLoadBalancerWithInboundNATRulePortMapping() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/LoadBalancerGetInboundNatRulePortMapping.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/LoadBalancerGetInboundNatRulePortMapping.json // this example is just showing the usage of "LoadBalancers_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 @@ -107,7 +107,7 @@ public async Task Get_GetLoadBalancerWithInboundNATRulePortMapping() [Ignore("Only validating compilation of examples")] public async Task Update_UpdateLoadBalancerTags() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/LoadBalancerUpdateTags.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/LoadBalancerUpdateTags.json // this example is just showing the usage of "LoadBalancers_UpdateTags" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -145,7 +145,7 @@ public async Task Update_UpdateLoadBalancerTags() [Ignore("Only validating compilation of examples")] public async Task GetLoadBalancers_ListAllLoadBalancers() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/LoadBalancerListAll.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/LoadBalancerListAll.json // this example is just showing the usage of "LoadBalancers_ListAll" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -176,7 +176,7 @@ public async Task GetLoadBalancers_ListAllLoadBalancers() [Ignore("Only validating compilation of examples")] public async Task SwapPublicIPAddressesLoadBalancer_SwapVIPsBetweenTwoLoadBalancers() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/LoadBalancersSwapPublicIpAddresses.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/LoadBalancersSwapPublicIpAddresses.json // this example is just showing the usage of "LoadBalancers_SwapPublicIPAddresses" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -216,7 +216,7 @@ public async Task SwapPublicIPAddressesLoadBalancer_SwapVIPsBetweenTwoLoadBalanc [Ignore("Only validating compilation of examples")] public async Task MigrateToIPBased_MigrateLoadBalancerToIPBased() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/MigrateLoadBalancerToIPBased.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/MigrateLoadBalancerToIPBased.json // this example is just showing the usage of "LoadBalancers_MigrateToIPBased" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -249,7 +249,7 @@ public async Task MigrateToIPBased_MigrateLoadBalancerToIPBased() [Ignore("Only validating compilation of examples")] public async Task GetLoadBalancerNetworkInterfaces_LoadBalancerNetworkInterfaceListSimple() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/LoadBalancerNetworkInterfaceListSimple.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/LoadBalancerNetworkInterfaceListSimple.json // this example is just showing the usage of "LoadBalancerNetworkInterfaces_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 @@ -282,7 +282,7 @@ public async Task GetLoadBalancerNetworkInterfaces_LoadBalancerNetworkInterfaceL [Ignore("Only validating compilation of examples")] public async Task GetLoadBalancerNetworkInterfaces_LoadBalancerNetworkInterfaceListVmss() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/LoadBalancerNetworkInterfaceListVmss.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/LoadBalancerNetworkInterfaceListVmss.json // this example is just showing the usage of "LoadBalancerNetworkInterfaces_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_LoadBalancingRuleCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_LoadBalancingRuleCollection.cs index ed56059b0cdb..cdd34db7731c 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_LoadBalancingRuleCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_LoadBalancingRuleCollection.cs @@ -19,7 +19,7 @@ public partial class Sample_LoadBalancingRuleCollection [Ignore("Only validating compilation of examples")] public async Task GetAll_LoadBalancerLoadBalancingRuleList() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/LoadBalancerLoadBalancingRuleList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/LoadBalancerLoadBalancingRuleList.json // this example is just showing the usage of "LoadBalancerLoadBalancingRules_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -55,7 +55,7 @@ public async Task GetAll_LoadBalancerLoadBalancingRuleList() [Ignore("Only validating compilation of examples")] public async Task Get_LoadBalancerLoadBalancingRuleGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/LoadBalancerLoadBalancingRuleGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/LoadBalancerLoadBalancingRuleGet.json // this example is just showing the usage of "LoadBalancerLoadBalancingRules_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -89,7 +89,7 @@ public async Task Get_LoadBalancerLoadBalancingRuleGet() [Ignore("Only validating compilation of examples")] public async Task Exists_LoadBalancerLoadBalancingRuleGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/LoadBalancerLoadBalancingRuleGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/LoadBalancerLoadBalancingRuleGet.json // this example is just showing the usage of "LoadBalancerLoadBalancingRules_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -119,7 +119,7 @@ public async Task Exists_LoadBalancerLoadBalancingRuleGet() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_LoadBalancerLoadBalancingRuleGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/LoadBalancerLoadBalancingRuleGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/LoadBalancerLoadBalancingRuleGet.json // this example is just showing the usage of "LoadBalancerLoadBalancingRules_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/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_LoadBalancingRuleResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_LoadBalancingRuleResource.cs index a7e1dddf9e9e..b0dbd132eaa2 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_LoadBalancingRuleResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_LoadBalancingRuleResource.cs @@ -9,6 +9,7 @@ using System.Threading.Tasks; using Azure.Core; using Azure.Identity; +using Azure.ResourceManager.Network.Models; using NUnit.Framework; namespace Azure.ResourceManager.Network.Samples @@ -19,7 +20,7 @@ public partial class Sample_LoadBalancingRuleResource [Ignore("Only validating compilation of examples")] public async Task Get_LoadBalancerLoadBalancingRuleGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/LoadBalancerLoadBalancingRuleGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/LoadBalancerLoadBalancingRuleGet.json // this example is just showing the usage of "LoadBalancerLoadBalancingRules_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 @@ -45,5 +46,33 @@ public async Task Get_LoadBalancerLoadBalancingRuleGet() // 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 Health_QueryLoadBalancingRuleHealth() + { + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/LoadBalancerHealth.json + // this example is just showing the usage of "LoadBalancerLoadBalancingRules_Health" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details 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 LoadBalancingRuleResource created on azure + // for more information of creating LoadBalancingRuleResource, please refer to the document of LoadBalancingRuleResource + string subscriptionId = "subid"; + string groupName = "rg1"; + string loadBalancerName = "lb1"; + string loadBalancingRuleName = "rulelb"; + ResourceIdentifier loadBalancingRuleResourceId = LoadBalancingRuleResource.CreateResourceIdentifier(subscriptionId, groupName, loadBalancerName, loadBalancingRuleName); + LoadBalancingRuleResource loadBalancingRule = client.GetLoadBalancingRuleResource(loadBalancingRuleResourceId); + + // invoke the operation + ArmOperation lro = await loadBalancingRule.HealthAsync(WaitUntil.Completed); + LoadBalancerHealthPerRule result = lro.Value; + + Console.WriteLine($"Succeeded: {result}"); + } } } diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_LocalNetworkGatewayCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_LocalNetworkGatewayCollection.cs index 406f6e0a3548..059c14da4a23 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_LocalNetworkGatewayCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_LocalNetworkGatewayCollection.cs @@ -9,6 +9,7 @@ using System.Threading.Tasks; using Azure.Core; using Azure.Identity; +using Azure.ResourceManager.Network.Models; using Azure.ResourceManager.Resources; using NUnit.Framework; @@ -20,7 +21,7 @@ public partial class Sample_LocalNetworkGatewayCollection [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_CreateLocalNetworkGateway() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/LocalNetworkGatewayCreate.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/LocalNetworkGatewayCreate.json // this example is just showing the usage of "LocalNetworkGateways_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 @@ -42,10 +43,13 @@ public async Task CreateOrUpdate_CreateLocalNetworkGateway() string localNetworkGatewayName = "localgw"; LocalNetworkGatewayData data = new LocalNetworkGatewayData() { - LocalNetworkAddressPrefixes = + LocalNetworkAddressSpace = new AddressSpace() + { + AddressPrefixes = { "10.1.0.0/16" }, + }, GatewayIPAddress = "11.12.13.14", Fqdn = "site1.contoso.com", Location = new AzureLocation("Central US"), @@ -64,7 +68,7 @@ public async Task CreateOrUpdate_CreateLocalNetworkGateway() [Ignore("Only validating compilation of examples")] public async Task Get_GetLocalNetworkGateway() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/LocalNetworkGatewayGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/LocalNetworkGatewayGet.json // this example is just showing the usage of "LocalNetworkGateways_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -97,7 +101,7 @@ public async Task Get_GetLocalNetworkGateway() [Ignore("Only validating compilation of examples")] public async Task Exists_GetLocalNetworkGateway() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/LocalNetworkGatewayGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/LocalNetworkGatewayGet.json // this example is just showing the usage of "LocalNetworkGateways_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -126,7 +130,7 @@ public async Task Exists_GetLocalNetworkGateway() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GetLocalNetworkGateway() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/LocalNetworkGatewayGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/LocalNetworkGatewayGet.json // this example is just showing the usage of "LocalNetworkGateways_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 @@ -167,7 +171,7 @@ public async Task GetIfExists_GetLocalNetworkGateway() [Ignore("Only validating compilation of examples")] public async Task GetAll_ListLocalNetworkGateways() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/LocalNetworkGatewayList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/LocalNetworkGatewayList.json // this example is just showing the usage of "LocalNetworkGateways_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_LocalNetworkGatewayResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_LocalNetworkGatewayResource.cs index fdadecd8ecf6..fd6a985f27fc 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_LocalNetworkGatewayResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_LocalNetworkGatewayResource.cs @@ -20,7 +20,7 @@ public partial class Sample_LocalNetworkGatewayResource [Ignore("Only validating compilation of examples")] public async Task Get_GetLocalNetworkGateway() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/LocalNetworkGatewayGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/LocalNetworkGatewayGet.json // this example is just showing the usage of "LocalNetworkGateways_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_GetLocalNetworkGateway() [Ignore("Only validating compilation of examples")] public async Task Delete_DeleteLocalNetworkGateway() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/LocalNetworkGatewayDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/LocalNetworkGatewayDelete.json // this example is just showing the usage of "LocalNetworkGateways_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_DeleteLocalNetworkGateway() [Ignore("Only validating compilation of examples")] public async Task Update_UpdateLocalNetworkGatewayTags() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/LocalNetworkGatewayUpdateTags.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/LocalNetworkGatewayUpdateTags.json // this example is just showing the usage of "LocalNetworkGateways_UpdateTags" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details 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/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ManagementGroupNetworkManagerConnectionCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ManagementGroupNetworkManagerConnectionCollection.cs index 076ca46fc9a9..f83110a99beb 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ManagementGroupNetworkManagerConnectionCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ManagementGroupNetworkManagerConnectionCollection.cs @@ -20,7 +20,7 @@ public partial class Sample_ManagementGroupNetworkManagerConnectionCollection [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_CreateOrUpdateManagementGroupNetworkManagerConnection() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerConnectionManagementGroupPut.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkManagerConnectionManagementGroupPut.json // this example is just showing the usage of "ManagementGroupNetworkManagerConnections_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 @@ -57,7 +57,7 @@ public async Task CreateOrUpdate_CreateOrUpdateManagementGroupNetworkManagerConn [Ignore("Only validating compilation of examples")] public async Task Get_GetManagementGroupNetworkManagerConnection() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerConnectionManagementGroupGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkManagerConnectionManagementGroupGet.json // this example is just showing the usage of "ManagementGroupNetworkManagerConnections_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -89,7 +89,7 @@ public async Task Get_GetManagementGroupNetworkManagerConnection() [Ignore("Only validating compilation of examples")] public async Task Exists_GetManagementGroupNetworkManagerConnection() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerConnectionManagementGroupGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkManagerConnectionManagementGroupGet.json // this example is just showing the usage of "ManagementGroupNetworkManagerConnections_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -117,7 +117,7 @@ public async Task Exists_GetManagementGroupNetworkManagerConnection() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GetManagementGroupNetworkManagerConnection() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerConnectionManagementGroupGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkManagerConnectionManagementGroupGet.json // this example is just showing the usage of "ManagementGroupNetworkManagerConnections_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 @@ -157,7 +157,7 @@ public async Task GetIfExists_GetManagementGroupNetworkManagerConnection() [Ignore("Only validating compilation of examples")] public async Task GetAll_ListManagementGroupNetworkManagerConnection() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerConnectionManagementGroupList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkManagerConnectionManagementGroupList.json // this example is just showing the usage of "ManagementGroupNetworkManagerConnections_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ManagementGroupNetworkManagerConnectionResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ManagementGroupNetworkManagerConnectionResource.cs index fd33c40f7aa5..465faf6227af 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ManagementGroupNetworkManagerConnectionResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ManagementGroupNetworkManagerConnectionResource.cs @@ -19,7 +19,7 @@ public partial class Sample_ManagementGroupNetworkManagerConnectionResource [Ignore("Only validating compilation of examples")] public async Task Update_CreateOrUpdateManagementGroupNetworkManagerConnection() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerConnectionManagementGroupPut.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkManagerConnectionManagementGroupPut.json // this example is just showing the usage of "ManagementGroupNetworkManagerConnections_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 @@ -53,7 +53,7 @@ public async Task Update_CreateOrUpdateManagementGroupNetworkManagerConnection() [Ignore("Only validating compilation of examples")] public async Task Get_GetManagementGroupNetworkManagerConnection() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerConnectionManagementGroupGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkManagerConnectionManagementGroupGet.json // this example is just showing the usage of "ManagementGroupNetworkManagerConnections_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -82,7 +82,7 @@ public async Task Get_GetManagementGroupNetworkManagerConnection() [Ignore("Only validating compilation of examples")] public async Task Delete_DeleteManagementGroupNetworkManagerConnection() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerConnectionManagementGroupDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkManagerConnectionManagementGroupDelete.json // this example is just showing the usage of "ManagementGroupNetworkManagerConnections_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NatGatewayCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NatGatewayCollection.cs index 5b68d6cac443..6a422be99d9d 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NatGatewayCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NatGatewayCollection.cs @@ -22,7 +22,7 @@ public partial class Sample_NatGatewayCollection [Ignore("Only validating compilation of examples")] public async Task Get_GetNatGateway() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NatGatewayGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NatGatewayGet.json // this example is just showing the usage of "NatGateways_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -55,7 +55,7 @@ public async Task Get_GetNatGateway() [Ignore("Only validating compilation of examples")] public async Task Exists_GetNatGateway() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NatGatewayGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NatGatewayGet.json // this example is just showing the usage of "NatGateways_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 @@ -84,7 +84,7 @@ public async Task Exists_GetNatGateway() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GetNatGateway() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NatGatewayGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NatGatewayGet.json // this example is just showing the usage of "NatGateways_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -125,7 +125,7 @@ public async Task GetIfExists_GetNatGateway() [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_CreateNatGateway() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NatGatewayCreateOrUpdate.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NatGatewayCreateOrUpdate.json // this example is just showing the usage of "NatGateways_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 @@ -178,7 +178,7 @@ public async Task CreateOrUpdate_CreateNatGateway() [Ignore("Only validating compilation of examples")] public async Task GetAll_ListNatGatewaysInResourceGroup() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NatGatewayList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NatGatewayList.json // this example is just showing the usage of "NatGateways_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NatGatewayResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NatGatewayResource.cs index 06e6aaf8584f..161c3f046238 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NatGatewayResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NatGatewayResource.cs @@ -21,7 +21,7 @@ public partial class Sample_NatGatewayResource [Ignore("Only validating compilation of examples")] public async Task Delete_DeleteNatGateway() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NatGatewayDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NatGatewayDelete.json // this example is just showing the usage of "NatGateways_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 @@ -47,7 +47,7 @@ public async Task Delete_DeleteNatGateway() [Ignore("Only validating compilation of examples")] public async Task Get_GetNatGateway() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NatGatewayGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NatGatewayGet.json // this example is just showing the usage of "NatGateways_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 @@ -77,7 +77,7 @@ public async Task Get_GetNatGateway() [Ignore("Only validating compilation of examples")] public async Task Update_UpdateNatGatewayTags() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NatGatewayUpdateTags.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NatGatewayUpdateTags.json // this example is just showing the usage of "NatGateways_UpdateTags" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -115,7 +115,7 @@ public async Task Update_UpdateNatGatewayTags() [Ignore("Only validating compilation of examples")] public async Task GetNatGateways_ListAllNatGateways() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NatGatewayListAll.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NatGatewayListAll.json // this example is just showing the usage of "NatGateways_ListAll" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details 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/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkGroupCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkGroupCollection.cs index a403b8ed1906..68e54ffba214 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkGroupCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkGroupCollection.cs @@ -20,7 +20,7 @@ public partial class Sample_NetworkGroupCollection [Ignore("Only validating compilation of examples")] public async Task Get_NetworkGroupsGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerGroupGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkManagerGroupGet.json // this example is just showing the usage of "NetworkGroups_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -54,7 +54,7 @@ public async Task Get_NetworkGroupsGet() [Ignore("Only validating compilation of examples")] public async Task Exists_NetworkGroupsGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerGroupGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkManagerGroupGet.json // this example is just showing the usage of "NetworkGroups_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 @@ -84,7 +84,7 @@ public async Task Exists_NetworkGroupsGet() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_NetworkGroupsGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerGroupGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkManagerGroupGet.json // this example is just showing the usage of "NetworkGroups_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -126,7 +126,7 @@ public async Task GetIfExists_NetworkGroupsGet() [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_NetworkGroupsPut() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerGroupPut.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkManagerGroupPut.json // this example is just showing the usage of "NetworkGroups_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 @@ -166,7 +166,7 @@ public async Task CreateOrUpdate_NetworkGroupsPut() [Ignore("Only validating compilation of examples")] public async Task GetAll_NetworkGroupsList() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerGroupList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkManagerGroupList.json // this example is just showing the usage of "NetworkGroups_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkGroupResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkGroupResource.cs index 5839308478c2..51f3069edcab 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkGroupResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkGroupResource.cs @@ -20,7 +20,7 @@ public partial class Sample_NetworkGroupResource [Ignore("Only validating compilation of examples")] public async Task Get_NetworkGroupsGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerGroupGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkManagerGroupGet.json // this example is just showing the usage of "NetworkGroups_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 @@ -51,7 +51,7 @@ public async Task Get_NetworkGroupsGet() [Ignore("Only validating compilation of examples")] public async Task Update_NetworkGroupsPut() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerGroupPut.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkManagerGroupPut.json // this example is just showing the usage of "NetworkGroups_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 @@ -88,7 +88,7 @@ public async Task Update_NetworkGroupsPut() [Ignore("Only validating compilation of examples")] public async Task Delete_NetworkGroupsDelete() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerGroupDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkManagerGroupDelete.json // this example is just showing the usage of "NetworkGroups_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkGroupStaticMemberCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkGroupStaticMemberCollection.cs index ec278f587912..c80e97bbdff4 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkGroupStaticMemberCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkGroupStaticMemberCollection.cs @@ -19,7 +19,7 @@ public partial class Sample_NetworkGroupStaticMemberCollection [Ignore("Only validating compilation of examples")] public async Task Get_StaticMembersGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerStaticMemberGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkManagerStaticMemberGet.json // this example is just showing the usage of "StaticMembers_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -54,7 +54,7 @@ public async Task Get_StaticMembersGet() [Ignore("Only validating compilation of examples")] public async Task Exists_StaticMembersGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerStaticMemberGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkManagerStaticMemberGet.json // this example is just showing the usage of "StaticMembers_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -85,7 +85,7 @@ public async Task Exists_StaticMembersGet() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_StaticMembersGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerStaticMemberGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkManagerStaticMemberGet.json // this example is just showing the usage of "StaticMembers_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -128,7 +128,7 @@ public async Task GetIfExists_StaticMembersGet() [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_StaticMemberPut() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerStaticMemberPut.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkManagerStaticMemberPut.json // this example is just showing the usage of "StaticMembers_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 @@ -168,7 +168,7 @@ public async Task CreateOrUpdate_StaticMemberPut() [Ignore("Only validating compilation of examples")] public async Task GetAll_StaticMembersList() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerStaticMemberList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkManagerStaticMemberList.json // this example is just showing the usage of "StaticMembers_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkGroupStaticMemberResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkGroupStaticMemberResource.cs index 97288e06f50e..cbcb163c3dba 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkGroupStaticMemberResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkGroupStaticMemberResource.cs @@ -19,7 +19,7 @@ public partial class Sample_NetworkGroupStaticMemberResource [Ignore("Only validating compilation of examples")] public async Task Get_StaticMembersGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerStaticMemberGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkManagerStaticMemberGet.json // this example is just showing the usage of "StaticMembers_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 @@ -51,7 +51,7 @@ public async Task Get_StaticMembersGet() [Ignore("Only validating compilation of examples")] public async Task Update_StaticMemberPut() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerStaticMemberPut.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkManagerStaticMemberPut.json // this example is just showing the usage of "StaticMembers_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 @@ -88,7 +88,7 @@ public async Task Update_StaticMemberPut() [Ignore("Only validating compilation of examples")] public async Task Delete_StaticMembersDelete() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerStaticMemberDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkManagerStaticMemberDelete.json // this example is just showing the usage of "StaticMembers_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkInterfaceCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkInterfaceCollection.cs index 109e2b4a4d50..12e8a3f0400f 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkInterfaceCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkInterfaceCollection.cs @@ -20,7 +20,7 @@ public partial class Sample_NetworkInterfaceCollection [Ignore("Only validating compilation of examples")] public async Task Get_GetNetworkInterface() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkInterfaceGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkInterfaceGet.json // this example is just showing the usage of "NetworkInterfaces_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -53,7 +53,7 @@ public async Task Get_GetNetworkInterface() [Ignore("Only validating compilation of examples")] public async Task Exists_GetNetworkInterface() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkInterfaceGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkInterfaceGet.json // this example is just showing the usage of "NetworkInterfaces_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -82,7 +82,7 @@ public async Task Exists_GetNetworkInterface() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GetNetworkInterface() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkInterfaceGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkInterfaceGet.json // this example is just showing the usage of "NetworkInterfaces_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 @@ -123,7 +123,7 @@ public async Task GetIfExists_GetNetworkInterface() [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_CreateNetworkInterface() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkInterfaceCreate.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkInterfaceCreate.json // this example is just showing the usage of "NetworkInterfaces_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 @@ -182,7 +182,7 @@ public async Task CreateOrUpdate_CreateNetworkInterface() [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_CreateNetworkInterfaceWithGatewayLoadBalancerConsumerConfigured() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkInterfaceCreateGatewayLoadBalancerConsumer.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkInterfaceCreateGatewayLoadBalancerConsumer.json // this example is just showing the usage of "NetworkInterfaces_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 @@ -237,7 +237,7 @@ public async Task CreateOrUpdate_CreateNetworkInterfaceWithGatewayLoadBalancerCo [Ignore("Only validating compilation of examples")] public async Task GetAll_ListNetworkInterfacesInResourceGroup() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkInterfaceList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkInterfaceList.json // this example is just showing the usage of "NetworkInterfaces_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkInterfaceIPConfigurationCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkInterfaceIPConfigurationCollection.cs index 72c69f824cd4..753e08b9d605 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkInterfaceIPConfigurationCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkInterfaceIPConfigurationCollection.cs @@ -19,7 +19,7 @@ public partial class Sample_NetworkInterfaceIPConfigurationCollection [Ignore("Only validating compilation of examples")] public async Task GetAll_NetworkInterfaceIPConfigurationList() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkInterfaceIPConfigurationList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkInterfaceIPConfigurationList.json // this example is just showing the usage of "NetworkInterfaceIPConfigurations_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -55,7 +55,7 @@ public async Task GetAll_NetworkInterfaceIPConfigurationList() [Ignore("Only validating compilation of examples")] public async Task Get_NetworkInterfaceIPConfigurationGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkInterfaceIPConfigurationGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkInterfaceIPConfigurationGet.json // this example is just showing the usage of "NetworkInterfaceIPConfigurations_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -89,7 +89,7 @@ public async Task Get_NetworkInterfaceIPConfigurationGet() [Ignore("Only validating compilation of examples")] public async Task Exists_NetworkInterfaceIPConfigurationGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkInterfaceIPConfigurationGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkInterfaceIPConfigurationGet.json // this example is just showing the usage of "NetworkInterfaceIPConfigurations_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -119,7 +119,7 @@ public async Task Exists_NetworkInterfaceIPConfigurationGet() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_NetworkInterfaceIPConfigurationGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkInterfaceIPConfigurationGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkInterfaceIPConfigurationGet.json // this example is just showing the usage of "NetworkInterfaceIPConfigurations_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/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkInterfaceIPConfigurationResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkInterfaceIPConfigurationResource.cs index 5a95eef133c7..1c403d98be3f 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkInterfaceIPConfigurationResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkInterfaceIPConfigurationResource.cs @@ -19,7 +19,7 @@ public partial class Sample_NetworkInterfaceIPConfigurationResource [Ignore("Only validating compilation of examples")] public async Task Get_NetworkInterfaceIPConfigurationGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkInterfaceIPConfigurationGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkInterfaceIPConfigurationGet.json // this example is just showing the usage of "NetworkInterfaceIPConfigurations_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/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkInterfaceResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkInterfaceResource.cs index 22555a94bfa0..6348e0e50bb8 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkInterfaceResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkInterfaceResource.cs @@ -21,7 +21,7 @@ public partial class Sample_NetworkInterfaceResource [Ignore("Only validating compilation of examples")] public async Task Delete_DeleteNetworkInterface() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkInterfaceDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkInterfaceDelete.json // this example is just showing the usage of "NetworkInterfaces_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 @@ -47,7 +47,7 @@ public async Task Delete_DeleteNetworkInterface() [Ignore("Only validating compilation of examples")] public async Task Get_GetNetworkInterface() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkInterfaceGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkInterfaceGet.json // this example is just showing the usage of "NetworkInterfaces_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 @@ -77,7 +77,7 @@ public async Task Get_GetNetworkInterface() [Ignore("Only validating compilation of examples")] public async Task Update_UpdateNetworkInterfaceTags() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkInterfaceUpdateTags.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkInterfaceUpdateTags.json // this example is just showing the usage of "NetworkInterfaces_UpdateTags" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -115,7 +115,7 @@ public async Task Update_UpdateNetworkInterfaceTags() [Ignore("Only validating compilation of examples")] public async Task GetNetworkInterfaces_ListAllNetworkInterfaces() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkInterfaceListAll.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkInterfaceListAll.json // this example is just showing the usage of "NetworkInterfaces_ListAll" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -146,7 +146,7 @@ public async Task GetNetworkInterfaces_ListAllNetworkInterfaces() [Ignore("Only validating compilation of examples")] public async Task GetEffectiveRouteTable_ShowNetworkInterfaceEffectiveRouteTables() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkInterfaceEffectiveRouteTableList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkInterfaceEffectiveRouteTableList.json // this example is just showing the usage of "NetworkInterfaces_GetEffectiveRouteTable" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -173,7 +173,7 @@ public async Task GetEffectiveRouteTable_ShowNetworkInterfaceEffectiveRouteTable [Ignore("Only validating compilation of examples")] public async Task GetEffectiveNetworkSecurityGroups_ListNetworkInterfaceEffectiveNetworkSecurityGroups() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkInterfaceEffectiveNSGList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkInterfaceEffectiveNSGList.json // this example is just showing the usage of "NetworkInterfaces_ListEffectiveNetworkSecurityGroups" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -200,7 +200,7 @@ public async Task GetEffectiveNetworkSecurityGroups_ListNetworkInterfaceEffectiv [Ignore("Only validating compilation of examples")] public async Task GetNetworkInterfaceLoadBalancers_NetworkInterfaceLoadBalancerList() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkInterfaceLoadBalancerList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkInterfaceLoadBalancerList.json // this example is just showing the usage of "NetworkInterfaceLoadBalancers_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkInterfaceTapConfigurationCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkInterfaceTapConfigurationCollection.cs index 8a28d74d2744..7a36fde5471e 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkInterfaceTapConfigurationCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkInterfaceTapConfigurationCollection.cs @@ -19,7 +19,7 @@ public partial class Sample_NetworkInterfaceTapConfigurationCollection [Ignore("Only validating compilation of examples")] public async Task Get_GetNetworkInterfaceTapConfigurations() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkInterfaceTapConfigurationGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkInterfaceTapConfigurationGet.json // this example is just showing the usage of "NetworkInterfaceTapConfigurations_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -53,7 +53,7 @@ public async Task Get_GetNetworkInterfaceTapConfigurations() [Ignore("Only validating compilation of examples")] public async Task Exists_GetNetworkInterfaceTapConfigurations() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkInterfaceTapConfigurationGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkInterfaceTapConfigurationGet.json // this example is just showing the usage of "NetworkInterfaceTapConfigurations_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -83,7 +83,7 @@ public async Task Exists_GetNetworkInterfaceTapConfigurations() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GetNetworkInterfaceTapConfigurations() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkInterfaceTapConfigurationGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkInterfaceTapConfigurationGet.json // this example is just showing the usage of "NetworkInterfaceTapConfigurations_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -125,7 +125,7 @@ public async Task GetIfExists_GetNetworkInterfaceTapConfigurations() [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_CreateNetworkInterfaceTapConfigurations() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkInterfaceTapConfigurationCreate.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkInterfaceTapConfigurationCreate.json // this example is just showing the usage of "NetworkInterfaceTapConfigurations_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 @@ -167,7 +167,7 @@ public async Task CreateOrUpdate_CreateNetworkInterfaceTapConfigurations() [Ignore("Only validating compilation of examples")] public async Task GetAll_ListVirtualNetworkTapConfigurations() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkInterfaceTapConfigurationList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkInterfaceTapConfigurationList.json // this example is just showing the usage of "NetworkInterfaceTapConfigurations_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkInterfaceTapConfigurationResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkInterfaceTapConfigurationResource.cs index db7336d807d0..9ab19d50dcf4 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkInterfaceTapConfigurationResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkInterfaceTapConfigurationResource.cs @@ -19,7 +19,7 @@ public partial class Sample_NetworkInterfaceTapConfigurationResource [Ignore("Only validating compilation of examples")] public async Task Delete_DeleteTapConfiguration() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkInterfaceTapConfigurationDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkInterfaceTapConfigurationDelete.json // this example is just showing the usage of "NetworkInterfaceTapConfigurations_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 @@ -46,7 +46,7 @@ public async Task Delete_DeleteTapConfiguration() [Ignore("Only validating compilation of examples")] public async Task Get_GetNetworkInterfaceTapConfigurations() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkInterfaceTapConfigurationGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkInterfaceTapConfigurationGet.json // this example is just showing the usage of "NetworkInterfaceTapConfigurations_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 @@ -77,7 +77,7 @@ public async Task Get_GetNetworkInterfaceTapConfigurations() [Ignore("Only validating compilation of examples")] public async Task Update_CreateNetworkInterfaceTapConfigurations() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkInterfaceTapConfigurationCreate.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkInterfaceTapConfigurationCreate.json // this example is just showing the usage of "NetworkInterfaceTapConfigurations_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkManagerCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkManagerCollection.cs index 30770289fafe..5417a7874194 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkManagerCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkManagerCollection.cs @@ -21,7 +21,7 @@ public partial class Sample_NetworkManagerCollection [Ignore("Only validating compilation of examples")] public async Task Get_NetworkManagersGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkManagerGet.json // this example is just showing the usage of "NetworkManagers_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -54,7 +54,7 @@ public async Task Get_NetworkManagersGet() [Ignore("Only validating compilation of examples")] public async Task Exists_NetworkManagersGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkManagerGet.json // this example is just showing the usage of "NetworkManagers_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -83,7 +83,7 @@ public async Task Exists_NetworkManagersGet() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_NetworkManagersGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkManagerGet.json // this example is just showing the usage of "NetworkManagers_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 @@ -124,7 +124,7 @@ public async Task GetIfExists_NetworkManagersGet() [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_PutNetworkManager() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerPut.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkManagerPut.json // this example is just showing the usage of "NetworkManagers_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -177,7 +177,7 @@ public async Task CreateOrUpdate_PutNetworkManager() [Ignore("Only validating compilation of examples")] public async Task GetAll_ListNetworkManager() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkManagerList.json // this example is just showing the usage of "NetworkManagers_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkManagerResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkManagerResource.cs index 589a1a9a99ca..13bbb9b54524 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkManagerResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkManagerResource.cs @@ -21,7 +21,7 @@ public partial class Sample_NetworkManagerResource [Ignore("Only validating compilation of examples")] public async Task GetActiveConnectivityConfigurations_ListActiveConnectivityConfigurations() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerActiveConnectivityConfigurationsList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkManagerActiveConnectivityConfigurationsList.json // this example is just showing the usage of "ListActiveConnectivityConfigurations" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -58,7 +58,7 @@ public async Task GetActiveConnectivityConfigurations_ListActiveConnectivityConf [Ignore("Only validating compilation of examples")] public async Task GetActiveSecurityAdminRules_ListActiveSecurityAdminRules() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerActiveSecurityAdminRulesList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkManagerActiveSecurityAdminRulesList.json // this example is just showing the usage of "ListActiveSecurityAdminRules" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -95,7 +95,7 @@ public async Task GetActiveSecurityAdminRules_ListActiveSecurityAdminRules() [Ignore("Only validating compilation of examples")] public async Task Get_NetworkManagersGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkManagerGet.json // this example is just showing the usage of "NetworkManagers_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -125,7 +125,7 @@ public async Task Get_NetworkManagersGet() [Ignore("Only validating compilation of examples")] public async Task Delete_NetworkManagersDelete() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkManagerDelete.json // this example is just showing the usage of "NetworkManagers_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 @@ -152,7 +152,7 @@ public async Task Delete_NetworkManagersDelete() [Ignore("Only validating compilation of examples")] public async Task Update_NetworkManagesPatch() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerPatch.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkManagerPatch.json // this example is just showing the usage of "NetworkManagers_Patch" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -190,7 +190,7 @@ public async Task Update_NetworkManagesPatch() [Ignore("Only validating compilation of examples")] public async Task GetNetworkManagers_NetworkManagersList() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerListAll.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkManagerListAll.json // this example is just showing the usage of "NetworkManagers_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 @@ -221,7 +221,7 @@ public async Task GetNetworkManagers_NetworkManagersList() [Ignore("Only validating compilation of examples")] public async Task PostNetworkManagerCommit_NetworkManageCommitPost() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerCommitPost.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkManagerCommitPost.json // this example is just showing the usage of "NetworkManagerCommits_Post" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -258,7 +258,7 @@ public async Task PostNetworkManagerCommit_NetworkManageCommitPost() [Ignore("Only validating compilation of examples")] public async Task GetNetworkManagerDeploymentStatus_NetworkManagerDeploymentStatusList() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerDeploymentStatusList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkManagerDeploymentStatusList.json // this example is just showing the usage of "NetworkManagerDeploymentStatus_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkManagerRoutingConfigurationCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkManagerRoutingConfigurationCollection.cs index dd23320c5e8b..e9067bcd22f3 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkManagerRoutingConfigurationCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkManagerRoutingConfigurationCollection.cs @@ -19,7 +19,7 @@ public partial class Sample_NetworkManagerRoutingConfigurationCollection [Ignore("Only validating compilation of examples")] public async Task GetAll_ListRoutingConfigurationsInANetworkManager() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerRoutingConfigurationList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkManagerRoutingConfigurationList.json // this example is just showing the usage of "NetworkManagerRoutingConfigurations_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -55,7 +55,7 @@ public async Task GetAll_ListRoutingConfigurationsInANetworkManager() [Ignore("Only validating compilation of examples")] public async Task Get_GetRoutingConfigurations() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerRoutingConfigurationGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkManagerRoutingConfigurationGet.json // this example is just showing the usage of "NetworkManagerRoutingConfigurations_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -89,7 +89,7 @@ public async Task Get_GetRoutingConfigurations() [Ignore("Only validating compilation of examples")] public async Task Exists_GetRoutingConfigurations() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerRoutingConfigurationGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkManagerRoutingConfigurationGet.json // this example is just showing the usage of "NetworkManagerRoutingConfigurations_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -119,7 +119,7 @@ public async Task Exists_GetRoutingConfigurations() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GetRoutingConfigurations() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerRoutingConfigurationGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkManagerRoutingConfigurationGet.json // this example is just showing the usage of "NetworkManagerRoutingConfigurations_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -161,7 +161,7 @@ public async Task GetIfExists_GetRoutingConfigurations() [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_CreateNetworkManagerRoutingConfiguration() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerRoutingConfigurationPut.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkManagerRoutingConfigurationPut.json // this example is just showing the usage of "NetworkManagerRoutingConfigurations_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkManagerRoutingConfigurationResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkManagerRoutingConfigurationResource.cs index 5562a181bdbf..745ff3dcab58 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkManagerRoutingConfigurationResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkManagerRoutingConfigurationResource.cs @@ -19,7 +19,7 @@ public partial class Sample_NetworkManagerRoutingConfigurationResource [Ignore("Only validating compilation of examples")] public async Task Get_GetRoutingConfigurations() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerRoutingConfigurationGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkManagerRoutingConfigurationGet.json // this example is just showing the usage of "NetworkManagerRoutingConfigurations_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_GetRoutingConfigurations() [Ignore("Only validating compilation of examples")] public async Task Update_CreateNetworkManagerRoutingConfiguration() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerRoutingConfigurationPut.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkManagerRoutingConfigurationPut.json // this example is just showing the usage of "NetworkManagerRoutingConfigurations_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 @@ -86,7 +86,7 @@ public async Task Update_CreateNetworkManagerRoutingConfiguration() [Ignore("Only validating compilation of examples")] public async Task Delete_DeleteNetworkManagerRoutingConfiguration() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerRoutingConfigurationDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkManagerRoutingConfigurationDelete.json // this example is just showing the usage of "NetworkManagerRoutingConfigurations_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkManagerRoutingRuleCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkManagerRoutingRuleCollection.cs index 6c3763c4caa4..5184e83d9c2d 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkManagerRoutingRuleCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkManagerRoutingRuleCollection.cs @@ -20,7 +20,7 @@ public partial class Sample_NetworkManagerRoutingRuleCollection [Ignore("Only validating compilation of examples")] public async Task GetAll_ListRoutingRules() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerRoutingRuleList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkManagerRoutingRuleList.json // this example is just showing the usage of "RoutingRules_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 @@ -58,7 +58,7 @@ public async Task GetAll_ListRoutingRules() [Ignore("Only validating compilation of examples")] public async Task Get_GetsRoutingRule() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerRoutingRuleGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkManagerRoutingRuleGet.json // this example is just showing the usage of "RoutingRules_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 @@ -94,7 +94,7 @@ public async Task Get_GetsRoutingRule() [Ignore("Only validating compilation of examples")] public async Task Exists_GetsRoutingRule() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerRoutingRuleGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkManagerRoutingRuleGet.json // this example is just showing the usage of "RoutingRules_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -126,7 +126,7 @@ public async Task Exists_GetsRoutingRule() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GetsRoutingRule() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerRoutingRuleGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkManagerRoutingRuleGet.json // this example is just showing the usage of "RoutingRules_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 GetIfExists_GetsRoutingRule() [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_CreateADefaultRoutingRule() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerRoutingRulePut.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkManagerRoutingRulePut.json // this example is just showing the usage of "RoutingRules_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 @@ -213,7 +213,7 @@ public async Task CreateOrUpdate_CreateADefaultRoutingRule() [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_CreateAnRoutingRule() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerRoutingRulePut.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkManagerRoutingRulePut.json // this example is just showing the usage of "RoutingRules_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkManagerRoutingRuleResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkManagerRoutingRuleResource.cs index f9ec5ed61c50..6028b4a48edb 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkManagerRoutingRuleResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkManagerRoutingRuleResource.cs @@ -20,7 +20,7 @@ public partial class Sample_NetworkManagerRoutingRuleResource [Ignore("Only validating compilation of examples")] public async Task Get_GetsRoutingRule() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerRoutingRuleGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkManagerRoutingRuleGet.json // this example is just showing the usage of "RoutingRules_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -53,7 +53,7 @@ public async Task Get_GetsRoutingRule() [Ignore("Only validating compilation of examples")] public async Task Update_CreateADefaultRoutingRule() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerRoutingRulePut.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkManagerRoutingRulePut.json // this example is just showing the usage of "RoutingRules_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -93,7 +93,7 @@ public async Task Update_CreateADefaultRoutingRule() [Ignore("Only validating compilation of examples")] public async Task Update_CreateAnRoutingRule() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerRoutingRulePut.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkManagerRoutingRulePut.json // this example is just showing the usage of "RoutingRules_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 @@ -133,7 +133,7 @@ public async Task Update_CreateAnRoutingRule() [Ignore("Only validating compilation of examples")] public async Task Delete_DeletesARoutingRule() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerRoutingRuleDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkManagerRoutingRuleDelete.json // this example is just showing the usage of "RoutingRules_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkManagerRoutingRulesCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkManagerRoutingRulesCollection.cs index 0b7646439526..2c5b0e5be056 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkManagerRoutingRulesCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkManagerRoutingRulesCollection.cs @@ -20,7 +20,7 @@ public partial class Sample_NetworkManagerRoutingRulesCollection [Ignore("Only validating compilation of examples")] public async Task GetAll_ListRoutingRuleCollections() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerRoutingRuleCollectionList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkManagerRoutingRuleCollectionList.json // this example is just showing the usage of "RoutingRuleCollections_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 @@ -57,7 +57,7 @@ public async Task GetAll_ListRoutingRuleCollections() [Ignore("Only validating compilation of examples")] public async Task Get_GetsRoutingRuleCollection() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerRoutingRuleCollectionGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkManagerRoutingRuleCollectionGet.json // this example is just showing the usage of "RoutingRuleCollections_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 @@ -92,7 +92,7 @@ public async Task Get_GetsRoutingRuleCollection() [Ignore("Only validating compilation of examples")] public async Task Exists_GetsRoutingRuleCollection() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerRoutingRuleCollectionGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkManagerRoutingRuleCollectionGet.json // this example is just showing the usage of "RoutingRuleCollections_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 @@ -123,7 +123,7 @@ public async Task Exists_GetsRoutingRuleCollection() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GetsRoutingRuleCollection() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerRoutingRuleCollectionGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkManagerRoutingRuleCollectionGet.json // this example is just showing the usage of "RoutingRuleCollections_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 @@ -166,7 +166,7 @@ public async Task GetIfExists_GetsRoutingRuleCollection() [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_CreateOrUpdateARoutingRuleCollection() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerRoutingRuleCollectionPut.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkManagerRoutingRuleCollectionPut.json // this example is just showing the usage of "RoutingRuleCollections_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkManagerRoutingRulesResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkManagerRoutingRulesResource.cs index 7c6a32f4c5ee..a33fac7bdb1d 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkManagerRoutingRulesResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkManagerRoutingRulesResource.cs @@ -20,7 +20,7 @@ public partial class Sample_NetworkManagerRoutingRulesResource [Ignore("Only validating compilation of examples")] public async Task Get_GetsRoutingRuleCollection() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerRoutingRuleCollectionGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkManagerRoutingRuleCollectionGet.json // this example is just showing the usage of "RoutingRuleCollections_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 @@ -52,7 +52,7 @@ public async Task Get_GetsRoutingRuleCollection() [Ignore("Only validating compilation of examples")] public async Task Update_CreateOrUpdateARoutingRuleCollection() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerRoutingRuleCollectionPut.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkManagerRoutingRuleCollectionPut.json // this example is just showing the usage of "RoutingRuleCollections_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -93,7 +93,7 @@ public async Task Update_CreateOrUpdateARoutingRuleCollection() [Ignore("Only validating compilation of examples")] public async Task Delete_DeletesAnRoutingRuleCollection() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerRoutingRuleCollectionDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkManagerRoutingRuleCollectionDelete.json // this example is just showing the usage of "RoutingRuleCollections_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkManagerSecurityUserConfigurationCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkManagerSecurityUserConfigurationCollection.cs index 1daff060a071..03830d5f5602 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkManagerSecurityUserConfigurationCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkManagerSecurityUserConfigurationCollection.cs @@ -19,7 +19,7 @@ public partial class Sample_NetworkManagerSecurityUserConfigurationCollection [Ignore("Only validating compilation of examples")] public async Task GetAll_ListSecurityUserConfigurationsInANetworkManager() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerSecurityUserConfigurationList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkManagerSecurityUserConfigurationList.json // this example is just showing the usage of "SecurityUserConfigurations_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -55,7 +55,7 @@ public async Task GetAll_ListSecurityUserConfigurationsInANetworkManager() [Ignore("Only validating compilation of examples")] public async Task Get_GetSecurityUserConfigurations() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerSecurityUserConfigurationGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkManagerSecurityUserConfigurationGet.json // this example is just showing the usage of "SecurityUserConfigurations_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -89,7 +89,7 @@ public async Task Get_GetSecurityUserConfigurations() [Ignore("Only validating compilation of examples")] public async Task Exists_GetSecurityUserConfigurations() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerSecurityUserConfigurationGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkManagerSecurityUserConfigurationGet.json // this example is just showing the usage of "SecurityUserConfigurations_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -119,7 +119,7 @@ public async Task Exists_GetSecurityUserConfigurations() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GetSecurityUserConfigurations() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerSecurityUserConfigurationGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkManagerSecurityUserConfigurationGet.json // this example is just showing the usage of "SecurityUserConfigurations_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -161,7 +161,7 @@ public async Task GetIfExists_GetSecurityUserConfigurations() [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_CreateNetworkManagerSecurityUserConfiguration() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerSecurityUserConfigurationPut.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkManagerSecurityUserConfigurationPut.json // this example is just showing the usage of "SecurityUserConfigurations_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkManagerSecurityUserConfigurationResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkManagerSecurityUserConfigurationResource.cs index ba4513f654ea..feb85c7ed005 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkManagerSecurityUserConfigurationResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkManagerSecurityUserConfigurationResource.cs @@ -19,7 +19,7 @@ public partial class Sample_NetworkManagerSecurityUserConfigurationResource [Ignore("Only validating compilation of examples")] public async Task Get_GetSecurityUserConfigurations() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerSecurityUserConfigurationGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkManagerSecurityUserConfigurationGet.json // this example is just showing the usage of "SecurityUserConfigurations_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_GetSecurityUserConfigurations() [Ignore("Only validating compilation of examples")] public async Task Update_CreateNetworkManagerSecurityUserConfiguration() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerSecurityUserConfigurationPut.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkManagerSecurityUserConfigurationPut.json // this example is just showing the usage of "SecurityUserConfigurations_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 @@ -86,7 +86,7 @@ public async Task Update_CreateNetworkManagerSecurityUserConfiguration() [Ignore("Only validating compilation of examples")] public async Task Delete_DeleteNetworkManagerSecurityUserConfiguration() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerSecurityUserConfigurationDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkManagerSecurityUserConfigurationDelete.json // this example is just showing the usage of "SecurityUserConfigurations_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkManagerSecurityUserRuleCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkManagerSecurityUserRuleCollection.cs index bf2d8c561df8..8ac6d4d8412e 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkManagerSecurityUserRuleCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkManagerSecurityUserRuleCollection.cs @@ -20,7 +20,7 @@ public partial class Sample_NetworkManagerSecurityUserRuleCollection [Ignore("Only validating compilation of examples")] public async Task GetAll_ListSecurityUserRules() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerSecurityUserRuleList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkManagerSecurityUserRuleList.json // this example is just showing the usage of "SecurityUserRules_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 @@ -58,7 +58,7 @@ public async Task GetAll_ListSecurityUserRules() [Ignore("Only validating compilation of examples")] public async Task Get_GetsASecurityUserRule() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerSecurityUserRuleGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkManagerSecurityUserRuleGet.json // this example is just showing the usage of "SecurityUserRules_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 @@ -94,7 +94,7 @@ public async Task Get_GetsASecurityUserRule() [Ignore("Only validating compilation of examples")] public async Task Exists_GetsASecurityUserRule() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerSecurityUserRuleGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkManagerSecurityUserRuleGet.json // this example is just showing the usage of "SecurityUserRules_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -126,7 +126,7 @@ public async Task Exists_GetsASecurityUserRule() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GetsASecurityUserRule() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerSecurityUserRuleGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkManagerSecurityUserRuleGet.json // this example is just showing the usage of "SecurityUserRules_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 GetIfExists_GetsASecurityUserRule() [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_CreateASecurityUserRule() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerSecurityUserRulePut.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkManagerSecurityUserRulePut.json // this example is just showing the usage of "SecurityUserRules_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkManagerSecurityUserRuleResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkManagerSecurityUserRuleResource.cs index 43f36fd6db64..405047460afe 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkManagerSecurityUserRuleResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkManagerSecurityUserRuleResource.cs @@ -20,7 +20,7 @@ public partial class Sample_NetworkManagerSecurityUserRuleResource [Ignore("Only validating compilation of examples")] public async Task Get_GetsASecurityUserRule() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerSecurityUserRuleGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkManagerSecurityUserRuleGet.json // this example is just showing the usage of "SecurityUserRules_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -53,7 +53,7 @@ public async Task Get_GetsASecurityUserRule() [Ignore("Only validating compilation of examples")] public async Task Update_CreateASecurityUserRule() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerSecurityUserRulePut.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkManagerSecurityUserRulePut.json // this example is just showing the usage of "SecurityUserRules_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 @@ -117,7 +117,7 @@ public async Task Update_CreateASecurityUserRule() [Ignore("Only validating compilation of examples")] public async Task Delete_DeleteASecurityUserRule() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerSecurityUserRuleDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkManagerSecurityUserRuleDelete.json // this example is just showing the usage of "SecurityUserRules_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkManagerSecurityUserRulesCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkManagerSecurityUserRulesCollection.cs index 74705df129cd..bb1cc4b42b00 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkManagerSecurityUserRulesCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkManagerSecurityUserRulesCollection.cs @@ -20,7 +20,7 @@ public partial class Sample_NetworkManagerSecurityUserRulesCollection [Ignore("Only validating compilation of examples")] public async Task GetAll_ListRuleCollectionsInASecurityConfiguration() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerSecurityUserRuleCollectionList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkManagerSecurityUserRuleCollectionList.json // this example is just showing the usage of "SecurityUserRuleCollections_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 @@ -57,7 +57,7 @@ public async Task GetAll_ListRuleCollectionsInASecurityConfiguration() [Ignore("Only validating compilation of examples")] public async Task Get_GetsSecurityUserRuleCollection() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerSecurityUserRuleCollectionGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkManagerSecurityUserRuleCollectionGet.json // this example is just showing the usage of "SecurityUserRuleCollections_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 @@ -92,7 +92,7 @@ public async Task Get_GetsSecurityUserRuleCollection() [Ignore("Only validating compilation of examples")] public async Task Exists_GetsSecurityUserRuleCollection() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerSecurityUserRuleCollectionGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkManagerSecurityUserRuleCollectionGet.json // this example is just showing the usage of "SecurityUserRuleCollections_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 @@ -123,7 +123,7 @@ public async Task Exists_GetsSecurityUserRuleCollection() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GetsSecurityUserRuleCollection() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerSecurityUserRuleCollectionGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkManagerSecurityUserRuleCollectionGet.json // this example is just showing the usage of "SecurityUserRuleCollections_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 @@ -166,7 +166,7 @@ public async Task GetIfExists_GetsSecurityUserRuleCollection() [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_CreateOrUpdateASecurityUserRuleCollection() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerSecurityUserRuleCollectionPut.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkManagerSecurityUserRuleCollectionPut.json // this example is just showing the usage of "SecurityUserRuleCollections_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkManagerSecurityUserRulesResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkManagerSecurityUserRulesResource.cs index 16fd87df0294..718038c9232f 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkManagerSecurityUserRulesResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkManagerSecurityUserRulesResource.cs @@ -20,7 +20,7 @@ public partial class Sample_NetworkManagerSecurityUserRulesResource [Ignore("Only validating compilation of examples")] public async Task Get_GetsSecurityUserRuleCollection() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerSecurityUserRuleCollectionGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkManagerSecurityUserRuleCollectionGet.json // this example is just showing the usage of "SecurityUserRuleCollections_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 @@ -52,7 +52,7 @@ public async Task Get_GetsSecurityUserRuleCollection() [Ignore("Only validating compilation of examples")] public async Task Update_CreateOrUpdateASecurityUserRuleCollection() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerSecurityUserRuleCollectionPut.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkManagerSecurityUserRuleCollectionPut.json // this example is just showing the usage of "SecurityUserRuleCollections_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -93,7 +93,7 @@ public async Task Update_CreateOrUpdateASecurityUserRuleCollection() [Ignore("Only validating compilation of examples")] public async Task Delete_DeletesASecurityUserRuleCollection() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerSecurityUserRuleCollectionDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkManagerSecurityUserRuleCollectionDelete.json // this example is just showing the usage of "SecurityUserRuleCollections_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkPrivateEndpointConnectionCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkPrivateEndpointConnectionCollection.cs index 1bfa4a12135d..09136ba6733e 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkPrivateEndpointConnectionCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkPrivateEndpointConnectionCollection.cs @@ -20,7 +20,7 @@ public partial class Sample_NetworkPrivateEndpointConnectionCollection [Ignore("Only validating compilation of examples")] public async Task Get_GetPrivateEndPointConnection() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/PrivateLinkServiceGetPrivateEndpointConnection.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/PrivateLinkServiceGetPrivateEndpointConnection.json // this example is just showing the usage of "PrivateLinkServices_GetPrivateEndpointConnection" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -54,7 +54,7 @@ public async Task Get_GetPrivateEndPointConnection() [Ignore("Only validating compilation of examples")] public async Task Exists_GetPrivateEndPointConnection() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/PrivateLinkServiceGetPrivateEndpointConnection.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/PrivateLinkServiceGetPrivateEndpointConnection.json // this example is just showing the usage of "PrivateLinkServices_GetPrivateEndpointConnection" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -84,7 +84,7 @@ public async Task Exists_GetPrivateEndPointConnection() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GetPrivateEndPointConnection() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/PrivateLinkServiceGetPrivateEndpointConnection.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/PrivateLinkServiceGetPrivateEndpointConnection.json // this example is just showing the usage of "PrivateLinkServices_GetPrivateEndpointConnection" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -126,7 +126,7 @@ public async Task GetIfExists_GetPrivateEndPointConnection() [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_ApproveOrRejectPrivateEndPointConnectionForAPrivateLinkService() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/PrivateLinkServiceUpdatePrivateEndpointConnection.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/PrivateLinkServiceUpdatePrivateEndpointConnection.json // this example is just showing the usage of "PrivateLinkServices_UpdatePrivateEndpointConnection" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details 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 CreateOrUpdate_ApproveOrRejectPrivateEndPointConnectionForAPri [Ignore("Only validating compilation of examples")] public async Task GetAll_ListPrivateLinkServiceInResourceGroup() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/PrivateLinkServiceListPrivateEndpointConnection.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/PrivateLinkServiceListPrivateEndpointConnection.json // this example is just showing the usage of "PrivateLinkServices_ListPrivateEndpointConnections" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details 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/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkPrivateEndpointConnectionResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkPrivateEndpointConnectionResource.cs index d3bee760f6c4..f3ac6c13c85a 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkPrivateEndpointConnectionResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkPrivateEndpointConnectionResource.cs @@ -20,7 +20,7 @@ public partial class Sample_NetworkPrivateEndpointConnectionResource [Ignore("Only validating compilation of examples")] public async Task Get_GetPrivateEndPointConnection() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/PrivateLinkServiceGetPrivateEndpointConnection.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/PrivateLinkServiceGetPrivateEndpointConnection.json // this example is just showing the usage of "PrivateLinkServices_GetPrivateEndpointConnection" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -51,7 +51,7 @@ public async Task Get_GetPrivateEndPointConnection() [Ignore("Only validating compilation of examples")] public async Task Update_ApproveOrRejectPrivateEndPointConnectionForAPrivateLinkService() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/PrivateLinkServiceUpdatePrivateEndpointConnection.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/PrivateLinkServiceUpdatePrivateEndpointConnection.json // this example is just showing the usage of "PrivateLinkServices_UpdatePrivateEndpointConnection" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -92,7 +92,7 @@ public async Task Update_ApproveOrRejectPrivateEndPointConnectionForAPrivateLink [Ignore("Only validating compilation of examples")] public async Task Delete_DeletePrivateEndPointConnectionForAPrivateLinkService() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/PrivateLinkServiceDeletePrivateEndpointConnection.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/PrivateLinkServiceDeletePrivateEndpointConnection.json // this example is just showing the usage of "PrivateLinkServices_DeletePrivateEndpointConnection" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details 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/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkProfileCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkProfileCollection.cs index a1abbef01dbf..bfba8e06001f 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkProfileCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkProfileCollection.cs @@ -21,7 +21,7 @@ public partial class Sample_NetworkProfileCollection [Ignore("Only validating compilation of examples")] public async Task Get_GetNetworkProfile() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkProfileGetConfigOnly.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkProfileGetConfigOnly.json // this example is just showing the usage of "NetworkProfiles_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -54,7 +54,7 @@ public async Task Get_GetNetworkProfile() [Ignore("Only validating compilation of examples")] public async Task Exists_GetNetworkProfile() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkProfileGetConfigOnly.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkProfileGetConfigOnly.json // this example is just showing the usage of "NetworkProfiles_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -83,7 +83,7 @@ public async Task Exists_GetNetworkProfile() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GetNetworkProfile() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkProfileGetConfigOnly.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkProfileGetConfigOnly.json // this example is just showing the usage of "NetworkProfiles_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 @@ -124,7 +124,7 @@ public async Task GetIfExists_GetNetworkProfile() [Ignore("Only validating compilation of examples")] public async Task Get_GetNetworkProfileWithContainerNetworkInterfaces() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkProfileGetWithContainerNic.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkProfileGetWithContainerNic.json // this example is just showing the usage of "NetworkProfiles_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 @@ -157,7 +157,7 @@ public async Task Get_GetNetworkProfileWithContainerNetworkInterfaces() [Ignore("Only validating compilation of examples")] public async Task Exists_GetNetworkProfileWithContainerNetworkInterfaces() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkProfileGetWithContainerNic.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkProfileGetWithContainerNic.json // this example is just showing the usage of "NetworkProfiles_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -186,7 +186,7 @@ public async Task Exists_GetNetworkProfileWithContainerNetworkInterfaces() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GetNetworkProfileWithContainerNetworkInterfaces() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkProfileGetWithContainerNic.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkProfileGetWithContainerNic.json // this example is just showing the usage of "NetworkProfiles_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 @@ -227,7 +227,7 @@ public async Task GetIfExists_GetNetworkProfileWithContainerNetworkInterfaces() [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_CreateNetworkProfileDefaults() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkProfileCreateConfigOnly.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkProfileCreateConfigOnly.json // this example is just showing the usage of "NetworkProfiles_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 @@ -283,7 +283,7 @@ public async Task CreateOrUpdate_CreateNetworkProfileDefaults() [Ignore("Only validating compilation of examples")] public async Task GetAll_ListResourceGroupNetworkProfiles() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkProfileList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkProfileList.json // this example is just showing the usage of "NetworkProfiles_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkProfileResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkProfileResource.cs index 4e3da8949f57..f43d8f9cb0c8 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkProfileResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkProfileResource.cs @@ -21,7 +21,7 @@ public partial class Sample_NetworkProfileResource [Ignore("Only validating compilation of examples")] public async Task Delete_DeleteNetworkProfile() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkProfileDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkProfileDelete.json // this example is just showing the usage of "NetworkProfiles_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 @@ -47,7 +47,7 @@ public async Task Delete_DeleteNetworkProfile() [Ignore("Only validating compilation of examples")] public async Task Get_GetNetworkProfile() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkProfileGetConfigOnly.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkProfileGetConfigOnly.json // this example is just showing the usage of "NetworkProfiles_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 @@ -77,7 +77,7 @@ public async Task Get_GetNetworkProfile() [Ignore("Only validating compilation of examples")] public async Task Get_GetNetworkProfileWithContainerNetworkInterfaces() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkProfileGetWithContainerNic.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkProfileGetWithContainerNic.json // this example is just showing the usage of "NetworkProfiles_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 @@ -107,7 +107,7 @@ public async Task Get_GetNetworkProfileWithContainerNetworkInterfaces() [Ignore("Only validating compilation of examples")] public async Task Update_UpdateNetworkProfileTags() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkProfileUpdateTags.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkProfileUpdateTags.json // this example is just showing the usage of "NetworkProfiles_UpdateTags" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -145,7 +145,7 @@ public async Task Update_UpdateNetworkProfileTags() [Ignore("Only validating compilation of examples")] public async Task GetNetworkProfiles_ListAllNetworkProfiles() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkProfileListAll.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkProfileListAll.json // this example is just showing the usage of "NetworkProfiles_ListAll" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details 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/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkSecurityGroupCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkSecurityGroupCollection.cs index 4184b8fc837a..b9a544303f97 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkSecurityGroupCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkSecurityGroupCollection.cs @@ -21,7 +21,7 @@ public partial class Sample_NetworkSecurityGroupCollection [Ignore("Only validating compilation of examples")] public async Task Get_GetNetworkSecurityGroup() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkSecurityGroupGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkSecurityGroupGet.json // this example is just showing the usage of "NetworkSecurityGroups_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -54,7 +54,7 @@ public async Task Get_GetNetworkSecurityGroup() [Ignore("Only validating compilation of examples")] public async Task Exists_GetNetworkSecurityGroup() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkSecurityGroupGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkSecurityGroupGet.json // this example is just showing the usage of "NetworkSecurityGroups_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -83,7 +83,7 @@ public async Task Exists_GetNetworkSecurityGroup() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GetNetworkSecurityGroup() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkSecurityGroupGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkSecurityGroupGet.json // this example is just showing the usage of "NetworkSecurityGroups_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 @@ -124,7 +124,7 @@ public async Task GetIfExists_GetNetworkSecurityGroup() [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_CreateNetworkSecurityGroup() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkSecurityGroupCreate.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkSecurityGroupCreate.json // this example is just showing the usage of "NetworkSecurityGroups_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 @@ -162,7 +162,7 @@ public async Task CreateOrUpdate_CreateNetworkSecurityGroup() [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_CreateNetworkSecurityGroupWithRule() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkSecurityGroupCreateWithRule.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkSecurityGroupCreateWithRule.json // this example is just showing the usage of "NetworkSecurityGroups_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 @@ -215,7 +215,7 @@ public async Task CreateOrUpdate_CreateNetworkSecurityGroupWithRule() [Ignore("Only validating compilation of examples")] public async Task GetAll_ListNetworkSecurityGroupsInResourceGroup() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkSecurityGroupList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkSecurityGroupList.json // this example is just showing the usage of "NetworkSecurityGroups_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkSecurityGroupResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkSecurityGroupResource.cs index f37465ee47bd..e29c51c3cdb1 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkSecurityGroupResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkSecurityGroupResource.cs @@ -21,7 +21,7 @@ public partial class Sample_NetworkSecurityGroupResource [Ignore("Only validating compilation of examples")] public async Task Delete_DeleteNetworkSecurityGroup() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkSecurityGroupDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkSecurityGroupDelete.json // this example is just showing the usage of "NetworkSecurityGroups_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 @@ -47,7 +47,7 @@ public async Task Delete_DeleteNetworkSecurityGroup() [Ignore("Only validating compilation of examples")] public async Task Get_GetNetworkSecurityGroup() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkSecurityGroupGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkSecurityGroupGet.json // this example is just showing the usage of "NetworkSecurityGroups_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 @@ -77,7 +77,7 @@ public async Task Get_GetNetworkSecurityGroup() [Ignore("Only validating compilation of examples")] public async Task Update_UpdateNetworkSecurityGroupTags() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkSecurityGroupUpdateTags.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkSecurityGroupUpdateTags.json // this example is just showing the usage of "NetworkSecurityGroups_UpdateTags" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -115,7 +115,7 @@ public async Task Update_UpdateNetworkSecurityGroupTags() [Ignore("Only validating compilation of examples")] public async Task GetNetworkSecurityGroups_ListAllNetworkSecurityGroups() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkSecurityGroupListAll.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkSecurityGroupListAll.json // this example is just showing the usage of "NetworkSecurityGroups_ListAll" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details 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/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkVirtualApplianceCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkVirtualApplianceCollection.cs index 7d80dd3120e9..c359c2ab0926 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkVirtualApplianceCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkVirtualApplianceCollection.cs @@ -23,7 +23,7 @@ public partial class Sample_NetworkVirtualApplianceCollection [Ignore("Only validating compilation of examples")] public async Task Get_GetNetworkVirtualAppliance() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkVirtualApplianceGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkVirtualApplianceGet.json // this example is just showing the usage of "NetworkVirtualAppliances_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -56,7 +56,7 @@ public async Task Get_GetNetworkVirtualAppliance() [Ignore("Only validating compilation of examples")] public async Task Exists_GetNetworkVirtualAppliance() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkVirtualApplianceGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkVirtualApplianceGet.json // this example is just showing the usage of "NetworkVirtualAppliances_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -85,7 +85,7 @@ public async Task Exists_GetNetworkVirtualAppliance() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GetNetworkVirtualAppliance() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkVirtualApplianceGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkVirtualApplianceGet.json // this example is just showing the usage of "NetworkVirtualAppliances_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -126,7 +126,7 @@ public async Task GetIfExists_GetNetworkVirtualAppliance() [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_CreateNetworkVirtualAppliance() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkVirtualAppliancePut.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkVirtualAppliancePut.json // this example is just showing the usage of "NetworkVirtualAppliances_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 @@ -240,7 +240,7 @@ public async Task CreateOrUpdate_CreateNetworkVirtualAppliance() [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_CreateSaaSNetworkVirtualAppliance() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkVirtualApplianceSaaSPut.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkVirtualApplianceSaaSPut.json // this example is just showing the usage of "NetworkVirtualAppliances_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 @@ -287,7 +287,7 @@ public async Task CreateOrUpdate_CreateSaaSNetworkVirtualAppliance() [Ignore("Only validating compilation of examples")] public async Task GetAll_ListAllNetworkVirtualApplianceForAGivenResourceGroup() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkVirtualApplianceListByResourceGroup.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkVirtualApplianceListByResourceGroup.json // this example is just showing the usage of "NetworkVirtualAppliances_ListByResourceGroup" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkVirtualApplianceConnectionCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkVirtualApplianceConnectionCollection.cs index 07f2c1eb9144..91beda463cbd 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkVirtualApplianceConnectionCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkVirtualApplianceConnectionCollection.cs @@ -21,7 +21,7 @@ public partial class Sample_NetworkVirtualApplianceConnectionCollection [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_NetworkVirtualApplianceConnectionPut() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkVirtualApplianceConnectionPut.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkVirtualApplianceConnectionPut.json // this example is just showing the usage of "NetworkVirtualApplianceConnections_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 @@ -88,7 +88,7 @@ public async Task CreateOrUpdate_NetworkVirtualApplianceConnectionPut() [Ignore("Only validating compilation of examples")] public async Task Get_NetworkVirtualApplianceConnectionGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkVirtualApplianceConnectionGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkVirtualApplianceConnectionGet.json // this example is just showing the usage of "NetworkVirtualApplianceConnections_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -122,7 +122,7 @@ public async Task Get_NetworkVirtualApplianceConnectionGet() [Ignore("Only validating compilation of examples")] public async Task Exists_NetworkVirtualApplianceConnectionGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkVirtualApplianceConnectionGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkVirtualApplianceConnectionGet.json // this example is just showing the usage of "NetworkVirtualApplianceConnections_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 @@ -152,7 +152,7 @@ public async Task Exists_NetworkVirtualApplianceConnectionGet() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_NetworkVirtualApplianceConnectionGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkVirtualApplianceConnectionGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkVirtualApplianceConnectionGet.json // this example is just showing the usage of "NetworkVirtualApplianceConnections_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 @@ -194,7 +194,7 @@ public async Task GetIfExists_NetworkVirtualApplianceConnectionGet() [Ignore("Only validating compilation of examples")] public async Task GetAll_NetworkVirtualApplianceConnectionList() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkVirtualApplianceConnectionList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkVirtualApplianceConnectionList.json // this example is just showing the usage of "NetworkVirtualApplianceConnections_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkVirtualApplianceConnectionResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkVirtualApplianceConnectionResource.cs index 21866d534634..4315d8c5ae25 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkVirtualApplianceConnectionResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkVirtualApplianceConnectionResource.cs @@ -21,7 +21,7 @@ public partial class Sample_NetworkVirtualApplianceConnectionResource [Ignore("Only validating compilation of examples")] public async Task Update_NetworkVirtualApplianceConnectionPut() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkVirtualApplianceConnectionPut.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkVirtualApplianceConnectionPut.json // this example is just showing the usage of "NetworkVirtualApplianceConnections_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 @@ -85,7 +85,7 @@ public async Task Update_NetworkVirtualApplianceConnectionPut() [Ignore("Only validating compilation of examples")] public async Task Get_NetworkVirtualApplianceConnectionGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkVirtualApplianceConnectionGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkVirtualApplianceConnectionGet.json // this example is just showing the usage of "NetworkVirtualApplianceConnections_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 @@ -116,7 +116,7 @@ public async Task Get_NetworkVirtualApplianceConnectionGet() [Ignore("Only validating compilation of examples")] public async Task Delete_NetworkVirtualApplianceConnectionDelete() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkVirtualApplianceConnectionDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkVirtualApplianceConnectionDelete.json // this example is just showing the usage of "NetworkVirtualApplianceConnections_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkVirtualApplianceResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkVirtualApplianceResource.cs index edf2c13bf80b..e0faa966da2c 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkVirtualApplianceResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkVirtualApplianceResource.cs @@ -21,7 +21,7 @@ public partial class Sample_NetworkVirtualApplianceResource [Ignore("Only validating compilation of examples")] public async Task Delete_DeleteNetworkVirtualAppliance() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkVirtualApplianceDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkVirtualApplianceDelete.json // this example is just showing the usage of "NetworkVirtualAppliances_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 @@ -47,7 +47,7 @@ public async Task Delete_DeleteNetworkVirtualAppliance() [Ignore("Only validating compilation of examples")] public async Task Get_GetNetworkVirtualAppliance() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkVirtualApplianceGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkVirtualApplianceGet.json // this example is just showing the usage of "NetworkVirtualAppliances_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 @@ -77,7 +77,7 @@ public async Task Get_GetNetworkVirtualAppliance() [Ignore("Only validating compilation of examples")] public async Task Update_UpdateNetworkVirtualAppliance() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkVirtualApplianceUpdateTags.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkVirtualApplianceUpdateTags.json // this example is just showing the usage of "NetworkVirtualAppliances_UpdateTags" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -115,7 +115,7 @@ public async Task Update_UpdateNetworkVirtualAppliance() [Ignore("Only validating compilation of examples")] public async Task Restart_RestartAllNetworkVirtualApplianceVMsInVMScaleSet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkVirtualApplianceEmptyRestart.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkVirtualApplianceEmptyRestart.json // this example is just showing the usage of "NetworkVirtualAppliances_Restart" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -142,7 +142,7 @@ public async Task Restart_RestartAllNetworkVirtualApplianceVMsInVMScaleSet() [Ignore("Only validating compilation of examples")] public async Task Restart_RestartSpecificNetworkVirtualApplianceVMsInVMScaleSet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkVirtualApplianceSpecificRestart.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkVirtualApplianceSpecificRestart.json // this example is just showing the usage of "NetworkVirtualAppliances_Restart" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -169,7 +169,7 @@ public async Task Restart_RestartSpecificNetworkVirtualApplianceVMsInVMScaleSet( [Ignore("Only validating compilation of examples")] public async Task GetNetworkVirtualAppliances_ListAllNetworkVirtualAppliancesForAGivenSubscription() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkVirtualApplianceListBySubscription.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkVirtualApplianceListBySubscription.json // this example is just showing the usage of "NetworkVirtualAppliances_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkVirtualApplianceSkuCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkVirtualApplianceSkuCollection.cs index 5bd1fe0ebb8b..b9741d43779e 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkVirtualApplianceSkuCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkVirtualApplianceSkuCollection.cs @@ -20,7 +20,7 @@ public partial class Sample_NetworkVirtualApplianceSkuCollection [Ignore("Only validating compilation of examples")] public async Task GetAll_NetworkVirtualApplianceSkuListResult() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkVirtualApplianceSkuList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkVirtualApplianceSkuList.json // this example is just showing the usage of "VirtualApplianceSkus_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 @@ -54,7 +54,7 @@ public async Task GetAll_NetworkVirtualApplianceSkuListResult() [Ignore("Only validating compilation of examples")] public async Task Get_NetworkVirtualApplianceSkuGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkVirtualApplianceSkuGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkVirtualApplianceSkuGet.json // this example is just showing the usage of "VirtualApplianceSkus_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -86,7 +86,7 @@ public async Task Get_NetworkVirtualApplianceSkuGet() [Ignore("Only validating compilation of examples")] public async Task Exists_NetworkVirtualApplianceSkuGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkVirtualApplianceSkuGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkVirtualApplianceSkuGet.json // this example is just showing the usage of "VirtualApplianceSkus_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -114,7 +114,7 @@ public async Task Exists_NetworkVirtualApplianceSkuGet() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_NetworkVirtualApplianceSkuGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkVirtualApplianceSkuGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkVirtualApplianceSkuGet.json // this example is just showing the usage of "VirtualApplianceSkus_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/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkVirtualApplianceSkuResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkVirtualApplianceSkuResource.cs index fee8a3b7c301..c20b790639b2 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkVirtualApplianceSkuResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkVirtualApplianceSkuResource.cs @@ -19,7 +19,7 @@ public partial class Sample_NetworkVirtualApplianceSkuResource [Ignore("Only validating compilation of examples")] public async Task Get_NetworkVirtualApplianceSkuGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkVirtualApplianceSkuGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkVirtualApplianceSkuGet.json // this example is just showing the usage of "VirtualApplianceSkus_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/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkWatcherCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkWatcherCollection.cs index 898197351079..eebca1e15c11 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkWatcherCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkWatcherCollection.cs @@ -20,7 +20,7 @@ public partial class Sample_NetworkWatcherCollection [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_CreateNetworkWatcher() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkWatcherCreate.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkWatcherCreate.json // this example is just showing the usage of "NetworkWatchers_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 @@ -58,7 +58,7 @@ public async Task CreateOrUpdate_CreateNetworkWatcher() [Ignore("Only validating compilation of examples")] public async Task Get_GetNetworkWatcher() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkWatcherGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkWatcherGet.json // this example is just showing the usage of "NetworkWatchers_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -91,7 +91,7 @@ public async Task Get_GetNetworkWatcher() [Ignore("Only validating compilation of examples")] public async Task Exists_GetNetworkWatcher() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkWatcherGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkWatcherGet.json // this example is just showing the usage of "NetworkWatchers_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 @@ -120,7 +120,7 @@ public async Task Exists_GetNetworkWatcher() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GetNetworkWatcher() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkWatcherGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkWatcherGet.json // this example is just showing the usage of "NetworkWatchers_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -161,7 +161,7 @@ public async Task GetIfExists_GetNetworkWatcher() [Ignore("Only validating compilation of examples")] public async Task GetAll_ListNetworkWatchers() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkWatcherList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkWatcherList.json // this example is just showing the usage of "NetworkWatchers_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkWatcherResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkWatcherResource.cs index f92145615479..610c10b713d2 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkWatcherResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_NetworkWatcherResource.cs @@ -22,7 +22,7 @@ public partial class Sample_NetworkWatcherResource [Ignore("Only validating compilation of examples")] public async Task Get_GetNetworkWatcher() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkWatcherGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkWatcherGet.json // this example is just showing the usage of "NetworkWatchers_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 @@ -52,7 +52,7 @@ public async Task Get_GetNetworkWatcher() [Ignore("Only validating compilation of examples")] public async Task Delete_DeleteNetworkWatcher() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkWatcherDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkWatcherDelete.json // this example is just showing the usage of "NetworkWatchers_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 @@ -78,7 +78,7 @@ public async Task Delete_DeleteNetworkWatcher() [Ignore("Only validating compilation of examples")] public async Task Update_UpdateNetworkWatcherTags() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkWatcherUpdateTags.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkWatcherUpdateTags.json // this example is just showing the usage of "NetworkWatchers_UpdateTags" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -116,7 +116,7 @@ public async Task Update_UpdateNetworkWatcherTags() [Ignore("Only validating compilation of examples")] public async Task GetNetworkWatchers_ListAllNetworkWatchers() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkWatcherListAll.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkWatcherListAll.json // this example is just showing the usage of "NetworkWatchers_ListAll" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -147,7 +147,7 @@ public async Task GetNetworkWatchers_ListAllNetworkWatchers() [Ignore("Only validating compilation of examples")] public async Task GetTopology_GetTopology() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkWatcherTopologyGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkWatcherTopologyGet.json // this example is just showing the usage of "NetworkWatchers_GetTopology" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -177,7 +177,7 @@ public async Task GetTopology_GetTopology() [Ignore("Only validating compilation of examples")] public async Task VerifyIPFlow_IpFlowVerify() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkWatcherIpFlowVerify.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkWatcherIpFlowVerify.json // this example is just showing the usage of "NetworkWatchers_VerifyIPFlow" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -205,7 +205,7 @@ public async Task VerifyIPFlow_IpFlowVerify() [Ignore("Only validating compilation of examples")] public async Task GetNextHop_GetNextHop() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkWatcherNextHopGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkWatcherNextHopGet.json // this example is just showing the usage of "NetworkWatchers_GetNextHop" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -236,7 +236,7 @@ public async Task GetNextHop_GetNextHop() [Ignore("Only validating compilation of examples")] public async Task GetVmSecurityRules_GetSecurityGroupView() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkWatcherSecurityGroupViewGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkWatcherSecurityGroupViewGet.json // this example is just showing the usage of "NetworkWatchers_GetVmSecurityRules" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -264,7 +264,7 @@ public async Task GetVmSecurityRules_GetSecurityGroupView() [Ignore("Only validating compilation of examples")] public async Task GetTroubleshooting_GetTroubleshooting() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkWatcherTroubleshootGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkWatcherTroubleshootGet.json // this example is just showing the usage of "NetworkWatchers_GetTroubleshooting" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -292,7 +292,7 @@ public async Task GetTroubleshooting_GetTroubleshooting() [Ignore("Only validating compilation of examples")] public async Task GetTroubleshootingResult_GetTroubleshootResult() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkWatcherTroubleshootResultQuery.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkWatcherTroubleshootResultQuery.json // this example is just showing the usage of "NetworkWatchers_GetTroubleshootingResult" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -320,7 +320,7 @@ public async Task GetTroubleshootingResult_GetTroubleshootResult() [Ignore("Only validating compilation of examples")] public async Task SetFlowLogConfiguration_ConfigureFlowLog() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkWatcherFlowLogConfigure.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkWatcherFlowLogConfigure.json // this example is just showing the usage of "NetworkWatchers_SetFlowLogConfiguration" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -357,7 +357,7 @@ public async Task SetFlowLogConfiguration_ConfigureFlowLog() [Ignore("Only validating compilation of examples")] public async Task GetFlowLogStatus_GetFlowLogStatus() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkWatcherFlowLogStatusQuery.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkWatcherFlowLogStatusQuery.json // this example is just showing the usage of "NetworkWatchers_GetFlowLogStatus" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -385,7 +385,7 @@ public async Task GetFlowLogStatus_GetFlowLogStatus() [Ignore("Only validating compilation of examples")] public async Task CheckConnectivity_CheckConnectivity() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkWatcherConnectivityCheck.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkWatcherConnectivityCheck.json // this example is just showing the usage of "NetworkWatchers_CheckConnectivity" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -420,7 +420,7 @@ public async Task CheckConnectivity_CheckConnectivity() [Ignore("Only validating compilation of examples")] public async Task GetAzureReachabilityReport_GetAzureReachabilityReport() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkWatcherAzureReachabilityReportGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkWatcherAzureReachabilityReportGet.json // this example is just showing the usage of "NetworkWatchers_GetAzureReachabilityReport" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -461,7 +461,7 @@ public async Task GetAzureReachabilityReport_GetAzureReachabilityReport() [Ignore("Only validating compilation of examples")] public async Task GetAvailableProviders_GetAvailableProvidersList() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkWatcherAvailableProvidersListGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkWatcherAvailableProvidersListGet.json // this example is just showing the usage of "NetworkWatchers_ListAvailableProviders" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -498,7 +498,7 @@ public async Task GetAvailableProviders_GetAvailableProvidersList() [Ignore("Only validating compilation of examples")] public async Task GetNetworkConfigurationDiagnostic_NetworkConfigurationDiagnostic() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkWatcherNetworkConfigurationDiagnostic.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkWatcherNetworkConfigurationDiagnostic.json // this example is just showing the usage of "NetworkWatchers_GetNetworkConfigurationDiagnostic" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details 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/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_OutboundRuleCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_OutboundRuleCollection.cs index 401dd01f2718..11381207a4cb 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_OutboundRuleCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_OutboundRuleCollection.cs @@ -19,7 +19,7 @@ public partial class Sample_OutboundRuleCollection [Ignore("Only validating compilation of examples")] public async Task GetAll_LoadBalancerOutboundRuleList() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/LoadBalancerOutboundRuleList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/LoadBalancerOutboundRuleList.json // this example is just showing the usage of "LoadBalancerOutboundRules_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -55,7 +55,7 @@ public async Task GetAll_LoadBalancerOutboundRuleList() [Ignore("Only validating compilation of examples")] public async Task Get_LoadBalancerOutboundRuleGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/LoadBalancerOutboundRuleGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/LoadBalancerOutboundRuleGet.json // this example is just showing the usage of "LoadBalancerOutboundRules_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -89,7 +89,7 @@ public async Task Get_LoadBalancerOutboundRuleGet() [Ignore("Only validating compilation of examples")] public async Task Exists_LoadBalancerOutboundRuleGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/LoadBalancerOutboundRuleGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/LoadBalancerOutboundRuleGet.json // this example is just showing the usage of "LoadBalancerOutboundRules_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -119,7 +119,7 @@ public async Task Exists_LoadBalancerOutboundRuleGet() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_LoadBalancerOutboundRuleGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/LoadBalancerOutboundRuleGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/LoadBalancerOutboundRuleGet.json // this example is just showing the usage of "LoadBalancerOutboundRules_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/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_OutboundRuleResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_OutboundRuleResource.cs index 9e642c9e9ebb..76870929d476 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_OutboundRuleResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_OutboundRuleResource.cs @@ -19,7 +19,7 @@ public partial class Sample_OutboundRuleResource [Ignore("Only validating compilation of examples")] public async Task Get_LoadBalancerOutboundRuleGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/LoadBalancerOutboundRuleGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/LoadBalancerOutboundRuleGet.json // this example is just showing the usage of "LoadBalancerOutboundRules_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/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_P2SVpnGatewayCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_P2SVpnGatewayCollection.cs index a97114e2b1e9..75848e61d1a2 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_P2SVpnGatewayCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_P2SVpnGatewayCollection.cs @@ -22,7 +22,7 @@ public partial class Sample_P2SVpnGatewayCollection [Ignore("Only validating compilation of examples")] public async Task Get_P2SVpnGatewayGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/P2SVpnGatewayGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/P2SVpnGatewayGet.json // this example is just showing the usage of "P2sVpnGateways_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -55,7 +55,7 @@ public async Task Get_P2SVpnGatewayGet() [Ignore("Only validating compilation of examples")] public async Task Exists_P2SVpnGatewayGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/P2SVpnGatewayGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/P2SVpnGatewayGet.json // this example is just showing the usage of "P2sVpnGateways_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 @@ -84,7 +84,7 @@ public async Task Exists_P2SVpnGatewayGet() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_P2SVpnGatewayGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/P2SVpnGatewayGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/P2SVpnGatewayGet.json // this example is just showing the usage of "P2sVpnGateways_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -125,7 +125,7 @@ public async Task GetIfExists_P2SVpnGatewayGet() [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_P2SVpnGatewayPut() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/P2SVpnGatewayPut.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/P2SVpnGatewayPut.json // this example is just showing the usage of "P2sVpnGateways_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 @@ -152,10 +152,13 @@ public async Task CreateOrUpdate_P2SVpnGatewayPut() { new P2SConnectionConfiguration() { -VpnClientAddressPrefixes = +VpnClientAddressPool = new AddressSpace() +{ +AddressPrefixes = { "101.3.0.0/16" }, +}, RoutingConfiguration = new RoutingConfiguration() { AssociatedRouteTableId = new ResourceIdentifier("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualHubs/virtualHub1/hubRouteTables/hubRouteTable1"), @@ -217,7 +220,7 @@ public async Task CreateOrUpdate_P2SVpnGatewayPut() [Ignore("Only validating compilation of examples")] public async Task GetAll_P2SVpnGatewayListByResourceGroup() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/P2SVpnGatewayListByResourceGroup.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/P2SVpnGatewayListByResourceGroup.json // this example is just showing the usage of "P2sVpnGateways_ListByResourceGroup" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_P2SVpnGatewayResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_P2SVpnGatewayResource.cs index 4e025c3f6031..7c3129accdeb 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_P2SVpnGatewayResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_P2SVpnGatewayResource.cs @@ -21,7 +21,7 @@ public partial class Sample_P2SVpnGatewayResource [Ignore("Only validating compilation of examples")] public async Task Get_P2SVpnGatewayGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/P2SVpnGatewayGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/P2SVpnGatewayGet.json // this example is just showing the usage of "P2sVpnGateways_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 @@ -51,7 +51,7 @@ public async Task Get_P2SVpnGatewayGet() [Ignore("Only validating compilation of examples")] public async Task Update_P2SVpnGatewayUpdate() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/P2SVpnGatewayUpdateTags.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/P2SVpnGatewayUpdateTags.json // this example is just showing the usage of "P2sVpnGateways_UpdateTags" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -90,7 +90,7 @@ public async Task Update_P2SVpnGatewayUpdate() [Ignore("Only validating compilation of examples")] public async Task Delete_P2SVpnGatewayDelete() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/P2SVpnGatewayDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/P2SVpnGatewayDelete.json // this example is just showing the usage of "P2sVpnGateways_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 @@ -116,7 +116,7 @@ public async Task Delete_P2SVpnGatewayDelete() [Ignore("Only validating compilation of examples")] public async Task GetP2SVpnGateways_P2SVpnGatewayListBySubscription() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/P2SVpnGatewayList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/P2SVpnGatewayList.json // this example is just showing the usage of "P2sVpnGateways_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 @@ -147,7 +147,7 @@ public async Task GetP2SVpnGateways_P2SVpnGatewayListBySubscription() [Ignore("Only validating compilation of examples")] public async Task Reset_ResetP2SVpnGateway() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/P2SVpnGatewayReset.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/P2SVpnGatewayReset.json // this example is just showing the usage of "P2SVpnGateways_Reset" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -178,7 +178,7 @@ public async Task Reset_ResetP2SVpnGateway() [Ignore("Only validating compilation of examples")] public async Task GenerateVpnProfile_GenerateP2SVpnGatewayVPNProfile() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/P2SVpnGatewayGenerateVpnProfile.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/P2SVpnGatewayGenerateVpnProfile.json // this example is just showing the usage of "P2sVpnGateways_GenerateVpnProfile" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -209,7 +209,7 @@ public async Task GenerateVpnProfile_GenerateP2SVpnGatewayVPNProfile() [Ignore("Only validating compilation of examples")] public async Task GetP2SVpnConnectionHealth_P2SVpnGatewayGetConnectionHealth() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/P2SVpnGatewayGetConnectionHealth.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/P2SVpnGatewayGetConnectionHealth.json // this example is just showing the usage of "P2sVpnGateways_GetP2SVpnConnectionHealth" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -240,7 +240,7 @@ public async Task GetP2SVpnConnectionHealth_P2SVpnGatewayGetConnectionHealth() [Ignore("Only validating compilation of examples")] public async Task GetP2SVpnConnectionHealthDetailed_P2SVpnGatewayGetConnectionHealthDetailed() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/P2SVpnGatewayGetConnectionHealthDetailed.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/P2SVpnGatewayGetConnectionHealthDetailed.json // this example is just showing the usage of "P2sVpnGateways_GetP2SVpnConnectionHealthDetailed" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -275,7 +275,7 @@ public async Task GetP2SVpnConnectionHealthDetailed_P2SVpnGatewayGetConnectionHe [Ignore("Only validating compilation of examples")] public async Task DisconnectP2SVpnConnections_DisconnectVpnConnectionsFromP2sVpnGateway() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/P2sVpnGatewaysDisconnectP2sVpnConnections.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/P2sVpnGatewaysDisconnectP2sVpnConnections.json // this example is just showing the usage of "P2sVpnGateways_DisconnectP2SVpnConnections" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details 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/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_PacketCaptureCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_PacketCaptureCollection.cs index b80bb7514243..009e18ff92bb 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_PacketCaptureCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_PacketCaptureCollection.cs @@ -20,7 +20,7 @@ public partial class Sample_PacketCaptureCollection [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_CreatePacketCapture() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkWatcherPacketCaptureCreate.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkWatcherPacketCaptureCreate.json // this example is just showing the usage of "PacketCaptures_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 @@ -75,7 +75,7 @@ public async Task CreateOrUpdate_CreatePacketCapture() [Ignore("Only validating compilation of examples")] public async Task Get_GetPacketCapture() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkWatcherPacketCaptureGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkWatcherPacketCaptureGet.json // this example is just showing the usage of "PacketCaptures_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 @@ -109,7 +109,7 @@ public async Task Get_GetPacketCapture() [Ignore("Only validating compilation of examples")] public async Task Exists_GetPacketCapture() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkWatcherPacketCaptureGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkWatcherPacketCaptureGet.json // this example is just showing the usage of "PacketCaptures_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 @@ -139,7 +139,7 @@ public async Task Exists_GetPacketCapture() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GetPacketCapture() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkWatcherPacketCaptureGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkWatcherPacketCaptureGet.json // this example is just showing the usage of "PacketCaptures_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 @@ -181,7 +181,7 @@ public async Task GetIfExists_GetPacketCapture() [Ignore("Only validating compilation of examples")] public async Task GetAll_ListPacketCaptures() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkWatcherPacketCapturesList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkWatcherPacketCapturesList.json // this example is just showing the usage of "PacketCaptures_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_PacketCaptureResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_PacketCaptureResource.cs index 046122d33197..e2db28ce467a 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_PacketCaptureResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_PacketCaptureResource.cs @@ -20,7 +20,7 @@ public partial class Sample_PacketCaptureResource [Ignore("Only validating compilation of examples")] public async Task Update_CreatePacketCapture() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkWatcherPacketCaptureCreate.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkWatcherPacketCaptureCreate.json // this example is just showing the usage of "PacketCaptures_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 Update_CreatePacketCapture() [Ignore("Only validating compilation of examples")] public async Task Get_GetPacketCapture() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkWatcherPacketCaptureGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkWatcherPacketCaptureGet.json // this example is just showing the usage of "PacketCaptures_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 @@ -103,7 +103,7 @@ public async Task Get_GetPacketCapture() [Ignore("Only validating compilation of examples")] public async Task Delete_DeletePacketCapture() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkWatcherPacketCaptureDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkWatcherPacketCaptureDelete.json // this example is just showing the usage of "PacketCaptures_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 @@ -130,7 +130,7 @@ public async Task Delete_DeletePacketCapture() [Ignore("Only validating compilation of examples")] public async Task Stop_StopPacketCapture() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkWatcherPacketCaptureStop.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkWatcherPacketCaptureStop.json // this example is just showing the usage of "PacketCaptures_Stop" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -157,7 +157,7 @@ public async Task Stop_StopPacketCapture() [Ignore("Only validating compilation of examples")] public async Task GetStatus_QueryPacketCaptureStatus() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkWatcherPacketCaptureQueryStatus.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkWatcherPacketCaptureQueryStatus.json // this example is just showing the usage of "PacketCaptures_GetStatus" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details 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/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_PeerExpressRouteCircuitConnectionCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_PeerExpressRouteCircuitConnectionCollection.cs index b85f8df96795..2acfd9def046 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_PeerExpressRouteCircuitConnectionCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_PeerExpressRouteCircuitConnectionCollection.cs @@ -19,7 +19,7 @@ public partial class Sample_PeerExpressRouteCircuitConnectionCollection [Ignore("Only validating compilation of examples")] public async Task Get_PeerExpressRouteCircuitConnectionGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/PeerExpressRouteCircuitConnectionGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/PeerExpressRouteCircuitConnectionGet.json // this example is just showing the usage of "PeerExpressRouteCircuitConnections_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -54,7 +54,7 @@ public async Task Get_PeerExpressRouteCircuitConnectionGet() [Ignore("Only validating compilation of examples")] public async Task Exists_PeerExpressRouteCircuitConnectionGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/PeerExpressRouteCircuitConnectionGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/PeerExpressRouteCircuitConnectionGet.json // this example is just showing the usage of "PeerExpressRouteCircuitConnections_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -85,7 +85,7 @@ public async Task Exists_PeerExpressRouteCircuitConnectionGet() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_PeerExpressRouteCircuitConnectionGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/PeerExpressRouteCircuitConnectionGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/PeerExpressRouteCircuitConnectionGet.json // this example is just showing the usage of "PeerExpressRouteCircuitConnections_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -128,7 +128,7 @@ public async Task GetIfExists_PeerExpressRouteCircuitConnectionGet() [Ignore("Only validating compilation of examples")] public async Task GetAll_ListPeerExpressRouteCircuitConnection() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/PeerExpressRouteCircuitConnectionList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/PeerExpressRouteCircuitConnectionList.json // this example is just showing the usage of "PeerExpressRouteCircuitConnections_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_PeerExpressRouteCircuitConnectionResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_PeerExpressRouteCircuitConnectionResource.cs index 92f1a439efe1..368310c3b27b 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_PeerExpressRouteCircuitConnectionResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_PeerExpressRouteCircuitConnectionResource.cs @@ -19,7 +19,7 @@ public partial class Sample_PeerExpressRouteCircuitConnectionResource [Ignore("Only validating compilation of examples")] public async Task Get_PeerExpressRouteCircuitConnectionGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/PeerExpressRouteCircuitConnectionGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/PeerExpressRouteCircuitConnectionGet.json // this example is just showing the usage of "PeerExpressRouteCircuitConnections_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/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_PolicySignaturesOverridesForIdpsResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_PolicySignaturesOverridesForIdpsResource.cs index 3101fb5e40b0..d7277cdc7918 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_PolicySignaturesOverridesForIdpsResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_PolicySignaturesOverridesForIdpsResource.cs @@ -19,7 +19,7 @@ public partial class Sample_PolicySignaturesOverridesForIdpsResource [Ignore("Only validating compilation of examples")] public async Task Update_PatchSignatureOverrides() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/FirewallPolicySignatureOverridesPatch.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/FirewallPolicySignatureOverridesPatch.json // this example is just showing the usage of "FirewallPolicyIdpsSignaturesOverrides_Patch" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -60,7 +60,7 @@ public async Task Update_PatchSignatureOverrides() [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_PutSignatureOverrides() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/FirewallPolicySignatureOverridesPut.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/FirewallPolicySignatureOverridesPut.json // this example is just showing the usage of "FirewallPolicyIdpsSignaturesOverrides_Put" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -102,7 +102,7 @@ public async Task CreateOrUpdate_PutSignatureOverrides() [Ignore("Only validating compilation of examples")] public async Task Get_GetSignatureOverrides() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/FirewallPolicySignatureOverridesGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/FirewallPolicySignatureOverridesGet.json // this example is just showing the usage of "FirewallPolicyIdpsSignaturesOverrides_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/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_PrivateDnsZoneGroupCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_PrivateDnsZoneGroupCollection.cs index 73b10138870b..4ef0c6ee9bd4 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_PrivateDnsZoneGroupCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_PrivateDnsZoneGroupCollection.cs @@ -20,7 +20,7 @@ public partial class Sample_PrivateDnsZoneGroupCollection [Ignore("Only validating compilation of examples")] public async Task Get_GetPrivateDnsZoneGroup() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/PrivateEndpointDnsZoneGroupGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/PrivateEndpointDnsZoneGroupGet.json // this example is just showing the usage of "PrivateDnsZoneGroups_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -54,7 +54,7 @@ public async Task Get_GetPrivateDnsZoneGroup() [Ignore("Only validating compilation of examples")] public async Task Exists_GetPrivateDnsZoneGroup() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/PrivateEndpointDnsZoneGroupGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/PrivateEndpointDnsZoneGroupGet.json // this example is just showing the usage of "PrivateDnsZoneGroups_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 @@ -84,7 +84,7 @@ public async Task Exists_GetPrivateDnsZoneGroup() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GetPrivateDnsZoneGroup() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/PrivateEndpointDnsZoneGroupGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/PrivateEndpointDnsZoneGroupGet.json // this example is just showing the usage of "PrivateDnsZoneGroups_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -126,7 +126,7 @@ public async Task GetIfExists_GetPrivateDnsZoneGroup() [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_CreatePrivateDnsZoneGroup() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/PrivateEndpointDnsZoneGroupCreate.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/PrivateEndpointDnsZoneGroupCreate.json // this example is just showing the usage of "PrivateDnsZoneGroups_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -171,7 +171,7 @@ public async Task CreateOrUpdate_CreatePrivateDnsZoneGroup() [Ignore("Only validating compilation of examples")] public async Task GetAll_ListPrivateEndpointsInResourceGroup() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/PrivateEndpointDnsZoneGroupList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/PrivateEndpointDnsZoneGroupList.json // this example is just showing the usage of "PrivateDnsZoneGroups_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_PrivateDnsZoneGroupResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_PrivateDnsZoneGroupResource.cs index bf0769637fce..12ad0b767147 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_PrivateDnsZoneGroupResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_PrivateDnsZoneGroupResource.cs @@ -20,7 +20,7 @@ public partial class Sample_PrivateDnsZoneGroupResource [Ignore("Only validating compilation of examples")] public async Task Delete_DeletePrivateDnsZoneGroup() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/PrivateEndpointDnsZoneGroupDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/PrivateEndpointDnsZoneGroupDelete.json // this example is just showing the usage of "PrivateDnsZoneGroups_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 @@ -47,7 +47,7 @@ public async Task Delete_DeletePrivateDnsZoneGroup() [Ignore("Only validating compilation of examples")] public async Task Get_GetPrivateDnsZoneGroup() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/PrivateEndpointDnsZoneGroupGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/PrivateEndpointDnsZoneGroupGet.json // this example is just showing the usage of "PrivateDnsZoneGroups_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 @@ -78,7 +78,7 @@ public async Task Get_GetPrivateDnsZoneGroup() [Ignore("Only validating compilation of examples")] public async Task Update_CreatePrivateDnsZoneGroup() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/PrivateEndpointDnsZoneGroupCreate.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/PrivateEndpointDnsZoneGroupCreate.json // this example is just showing the usage of "PrivateDnsZoneGroups_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_PrivateEndpointCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_PrivateEndpointCollection.cs index f178518f185a..57ef010ed449 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_PrivateEndpointCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_PrivateEndpointCollection.cs @@ -22,7 +22,7 @@ public partial class Sample_PrivateEndpointCollection [Ignore("Only validating compilation of examples")] public async Task Get_GetPrivateEndpoint() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/PrivateEndpointGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/PrivateEndpointGet.json // this example is just showing the usage of "PrivateEndpoints_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -55,7 +55,7 @@ public async Task Get_GetPrivateEndpoint() [Ignore("Only validating compilation of examples")] public async Task Exists_GetPrivateEndpoint() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/PrivateEndpointGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/PrivateEndpointGet.json // this example is just showing the usage of "PrivateEndpoints_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 @@ -84,7 +84,7 @@ public async Task Exists_GetPrivateEndpoint() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GetPrivateEndpoint() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/PrivateEndpointGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/PrivateEndpointGet.json // this example is just showing the usage of "PrivateEndpoints_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -125,7 +125,7 @@ public async Task GetIfExists_GetPrivateEndpoint() [Ignore("Only validating compilation of examples")] public async Task Get_GetPrivateEndpointWithApplicationSecurityGroups() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/PrivateEndpointGetWithASG.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/PrivateEndpointGetWithASG.json // this example is just showing the usage of "PrivateEndpoints_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 @@ -158,7 +158,7 @@ public async Task Get_GetPrivateEndpointWithApplicationSecurityGroups() [Ignore("Only validating compilation of examples")] public async Task Exists_GetPrivateEndpointWithApplicationSecurityGroups() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/PrivateEndpointGetWithASG.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/PrivateEndpointGetWithASG.json // this example is just showing the usage of "PrivateEndpoints_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 @@ -187,7 +187,7 @@ public async Task Exists_GetPrivateEndpointWithApplicationSecurityGroups() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GetPrivateEndpointWithApplicationSecurityGroups() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/PrivateEndpointGetWithASG.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/PrivateEndpointGetWithASG.json // this example is just showing the usage of "PrivateEndpoints_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 @@ -228,7 +228,7 @@ public async Task GetIfExists_GetPrivateEndpointWithApplicationSecurityGroups() [Ignore("Only validating compilation of examples")] public async Task Get_GetPrivateEndpointWithManualApprovalConnection() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/PrivateEndpointGetForManualApproval.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/PrivateEndpointGetForManualApproval.json // this example is just showing the usage of "PrivateEndpoints_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 @@ -261,7 +261,7 @@ public async Task Get_GetPrivateEndpointWithManualApprovalConnection() [Ignore("Only validating compilation of examples")] public async Task Exists_GetPrivateEndpointWithManualApprovalConnection() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/PrivateEndpointGetForManualApproval.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/PrivateEndpointGetForManualApproval.json // this example is just showing the usage of "PrivateEndpoints_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 @@ -290,7 +290,7 @@ public async Task Exists_GetPrivateEndpointWithManualApprovalConnection() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GetPrivateEndpointWithManualApprovalConnection() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/PrivateEndpointGetForManualApproval.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/PrivateEndpointGetForManualApproval.json // this example is just showing the usage of "PrivateEndpoints_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 @@ -331,7 +331,7 @@ public async Task GetIfExists_GetPrivateEndpointWithManualApprovalConnection() [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_CreatePrivateEndpoint() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/PrivateEndpointCreate.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/PrivateEndpointCreate.json // this example is just showing the usage of "PrivateEndpoints_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 @@ -396,7 +396,7 @@ public async Task CreateOrUpdate_CreatePrivateEndpoint() [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_CreatePrivateEndpointWithApplicationSecurityGroups() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/PrivateEndpointCreateWithASG.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/PrivateEndpointCreateWithASG.json // this example is just showing the usage of "PrivateEndpoints_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 @@ -457,7 +457,7 @@ public async Task CreateOrUpdate_CreatePrivateEndpointWithApplicationSecurityGro [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_CreatePrivateEndpointWithManualApprovalConnection() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/PrivateEndpointCreateForManualApproval.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/PrivateEndpointCreateForManualApproval.json // this example is just showing the usage of "PrivateEndpoints_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 @@ -522,7 +522,7 @@ public async Task CreateOrUpdate_CreatePrivateEndpointWithManualApprovalConnecti [Ignore("Only validating compilation of examples")] public async Task GetAll_ListPrivateEndpointsInResourceGroup() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/PrivateEndpointList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/PrivateEndpointList.json // this example is just showing the usage of "PrivateEndpoints_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_PrivateEndpointResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_PrivateEndpointResource.cs index 85b4cf80dafd..1deeb857edfc 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_PrivateEndpointResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_PrivateEndpointResource.cs @@ -22,7 +22,7 @@ public partial class Sample_PrivateEndpointResource [Ignore("Only validating compilation of examples")] public async Task Delete_DeletePrivateEndpoint() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/PrivateEndpointDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/PrivateEndpointDelete.json // this example is just showing the usage of "PrivateEndpoints_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -48,7 +48,7 @@ public async Task Delete_DeletePrivateEndpoint() [Ignore("Only validating compilation of examples")] public async Task Get_GetPrivateEndpoint() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/PrivateEndpointGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/PrivateEndpointGet.json // this example is just showing the usage of "PrivateEndpoints_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 @@ -78,7 +78,7 @@ public async Task Get_GetPrivateEndpoint() [Ignore("Only validating compilation of examples")] public async Task Get_GetPrivateEndpointWithApplicationSecurityGroups() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/PrivateEndpointGetWithASG.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/PrivateEndpointGetWithASG.json // this example is just showing the usage of "PrivateEndpoints_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -108,7 +108,7 @@ public async Task Get_GetPrivateEndpointWithApplicationSecurityGroups() [Ignore("Only validating compilation of examples")] public async Task Get_GetPrivateEndpointWithManualApprovalConnection() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/PrivateEndpointGetForManualApproval.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/PrivateEndpointGetForManualApproval.json // this example is just showing the usage of "PrivateEndpoints_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -138,7 +138,7 @@ public async Task Get_GetPrivateEndpointWithManualApprovalConnection() [Ignore("Only validating compilation of examples")] public async Task Update_CreatePrivateEndpoint() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/PrivateEndpointCreate.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/PrivateEndpointCreate.json // this example is just showing the usage of "PrivateEndpoints_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 @@ -200,7 +200,7 @@ public async Task Update_CreatePrivateEndpoint() [Ignore("Only validating compilation of examples")] public async Task Update_CreatePrivateEndpointWithApplicationSecurityGroups() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/PrivateEndpointCreateWithASG.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/PrivateEndpointCreateWithASG.json // this example is just showing the usage of "PrivateEndpoints_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 @@ -258,7 +258,7 @@ public async Task Update_CreatePrivateEndpointWithApplicationSecurityGroups() [Ignore("Only validating compilation of examples")] public async Task Update_CreatePrivateEndpointWithManualApprovalConnection() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/PrivateEndpointCreateForManualApproval.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/PrivateEndpointCreateForManualApproval.json // this example is just showing the usage of "PrivateEndpoints_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 @@ -320,7 +320,7 @@ public async Task Update_CreatePrivateEndpointWithManualApprovalConnection() [Ignore("Only validating compilation of examples")] public async Task GetPrivateEndpoints_ListAllPrivateEndpoints() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/PrivateEndpointListAll.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/PrivateEndpointListAll.json // this example is just showing the usage of "PrivateEndpoints_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/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_PrivateLinkServiceCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_PrivateLinkServiceCollection.cs index 07e178ca8573..113947ca8fc0 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_PrivateLinkServiceCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_PrivateLinkServiceCollection.cs @@ -21,7 +21,7 @@ public partial class Sample_PrivateLinkServiceCollection [Ignore("Only validating compilation of examples")] public async Task Get_GetPrivateLinkService() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/PrivateLinkServiceGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/PrivateLinkServiceGet.json // this example is just showing the usage of "PrivateLinkServices_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -54,7 +54,7 @@ public async Task Get_GetPrivateLinkService() [Ignore("Only validating compilation of examples")] public async Task Exists_GetPrivateLinkService() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/PrivateLinkServiceGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/PrivateLinkServiceGet.json // this example is just showing the usage of "PrivateLinkServices_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -83,7 +83,7 @@ public async Task Exists_GetPrivateLinkService() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GetPrivateLinkService() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/PrivateLinkServiceGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/PrivateLinkServiceGet.json // this example is just showing the usage of "PrivateLinkServices_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 @@ -124,7 +124,7 @@ public async Task GetIfExists_GetPrivateLinkService() [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_CreatePrivateLinkService() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/PrivateLinkServiceCreate.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/PrivateLinkServiceCreate.json // this example is just showing the usage of "PrivateLinkServices_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 @@ -195,7 +195,7 @@ public async Task CreateOrUpdate_CreatePrivateLinkService() [Ignore("Only validating compilation of examples")] public async Task GetAll_ListPrivateLinkServiceInResourceGroup() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/PrivateLinkServiceList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/PrivateLinkServiceList.json // this example is just showing the usage of "PrivateLinkServices_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_PrivateLinkServiceResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_PrivateLinkServiceResource.cs index fd8f4dc58f13..fb0a1d9bd20f 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_PrivateLinkServiceResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_PrivateLinkServiceResource.cs @@ -21,7 +21,7 @@ public partial class Sample_PrivateLinkServiceResource [Ignore("Only validating compilation of examples")] public async Task Delete_DeletePrivateLinkService() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/PrivateLinkServiceDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/PrivateLinkServiceDelete.json // this example is just showing the usage of "PrivateLinkServices_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 @@ -47,7 +47,7 @@ public async Task Delete_DeletePrivateLinkService() [Ignore("Only validating compilation of examples")] public async Task Get_GetPrivateLinkService() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/PrivateLinkServiceGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/PrivateLinkServiceGet.json // this example is just showing the usage of "PrivateLinkServices_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 @@ -77,7 +77,7 @@ public async Task Get_GetPrivateLinkService() [Ignore("Only validating compilation of examples")] public async Task Update_CreatePrivateLinkService() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/PrivateLinkServiceCreate.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/PrivateLinkServiceCreate.json // this example is just showing the usage of "PrivateLinkServices_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 @@ -145,7 +145,7 @@ public async Task Update_CreatePrivateLinkService() [Ignore("Only validating compilation of examples")] public async Task GetPrivateLinkServices_ListAllPrivateListService() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/PrivateLinkServiceListAll.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/PrivateLinkServiceListAll.json // this example is just showing the usage of "PrivateLinkServices_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/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ProbeCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ProbeCollection.cs index a05940176d91..45185acb3cbf 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ProbeCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ProbeCollection.cs @@ -19,7 +19,7 @@ public partial class Sample_ProbeCollection [Ignore("Only validating compilation of examples")] public async Task GetAll_LoadBalancerProbeList() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/LoadBalancerProbeList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/LoadBalancerProbeList.json // this example is just showing the usage of "LoadBalancerProbes_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -55,7 +55,7 @@ public async Task GetAll_LoadBalancerProbeList() [Ignore("Only validating compilation of examples")] public async Task Get_LoadBalancerProbeGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/LoadBalancerProbeGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/LoadBalancerProbeGet.json // this example is just showing the usage of "LoadBalancerProbes_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -89,7 +89,7 @@ public async Task Get_LoadBalancerProbeGet() [Ignore("Only validating compilation of examples")] public async Task Exists_LoadBalancerProbeGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/LoadBalancerProbeGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/LoadBalancerProbeGet.json // this example is just showing the usage of "LoadBalancerProbes_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -119,7 +119,7 @@ public async Task Exists_LoadBalancerProbeGet() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_LoadBalancerProbeGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/LoadBalancerProbeGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/LoadBalancerProbeGet.json // this example is just showing the usage of "LoadBalancerProbes_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/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ProbeResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ProbeResource.cs index a4cd71e99665..4d37135c1506 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ProbeResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ProbeResource.cs @@ -19,7 +19,7 @@ public partial class Sample_ProbeResource [Ignore("Only validating compilation of examples")] public async Task Get_LoadBalancerProbeGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/LoadBalancerProbeGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/LoadBalancerProbeGet.json // this example is just showing the usage of "LoadBalancerProbes_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/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_PublicIPAddressCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_PublicIPAddressCollection.cs index 30713160a7e2..9c9d615e0a17 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_PublicIPAddressCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_PublicIPAddressCollection.cs @@ -21,7 +21,7 @@ public partial class Sample_PublicIPAddressCollection [Ignore("Only validating compilation of examples")] public async Task Get_GetPublicIPAddress() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/PublicIpAddressGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/PublicIpAddressGet.json // this example is just showing the usage of "PublicIPAddresses_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -54,7 +54,7 @@ public async Task Get_GetPublicIPAddress() [Ignore("Only validating compilation of examples")] public async Task Exists_GetPublicIPAddress() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/PublicIpAddressGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/PublicIpAddressGet.json // this example is just showing the usage of "PublicIPAddresses_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -83,7 +83,7 @@ public async Task Exists_GetPublicIPAddress() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GetPublicIPAddress() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/PublicIpAddressGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/PublicIpAddressGet.json // this example is just showing the usage of "PublicIPAddresses_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 @@ -124,7 +124,7 @@ public async Task GetIfExists_GetPublicIPAddress() [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_CreatePublicIPAddressDNS() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/PublicIpAddressCreateDns.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/PublicIpAddressCreateDns.json // this example is just showing the usage of "PublicIPAddresses_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 @@ -166,7 +166,7 @@ public async Task CreateOrUpdate_CreatePublicIPAddressDNS() [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_CreatePublicIPAddressDNSWithDomainNameLabelScope() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/PublicIpAddressCreateDnsWithDomainNameLabelScope.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/PublicIpAddressCreateDnsWithDomainNameLabelScope.json // this example is just showing the usage of "PublicIPAddresses_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 @@ -209,7 +209,7 @@ public async Task CreateOrUpdate_CreatePublicIPAddressDNSWithDomainNameLabelScop [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_CreatePublicIPAddressAllocationMethod() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/PublicIpAddressCreateCustomizedValues.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/PublicIpAddressCreateCustomizedValues.json // this example is just showing the usage of "PublicIPAddresses_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 @@ -255,7 +255,7 @@ public async Task CreateOrUpdate_CreatePublicIPAddressAllocationMethod() [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_CreatePublicIPAddressDefaults() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/PublicIpAddressCreateDefaults.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/PublicIpAddressCreateDefaults.json // this example is just showing the usage of "PublicIPAddresses_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 @@ -293,7 +293,7 @@ public async Task CreateOrUpdate_CreatePublicIPAddressDefaults() [Ignore("Only validating compilation of examples")] public async Task GetAll_ListResourceGroupPublicIPAddresses() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/PublicIpAddressList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/PublicIpAddressList.json // this example is just showing the usage of "PublicIPAddresses_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_PublicIPAddressResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_PublicIPAddressResource.cs index 45edf5fcab39..7e16eb689076 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_PublicIPAddressResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_PublicIPAddressResource.cs @@ -21,7 +21,7 @@ public partial class Sample_PublicIPAddressResource [Ignore("Only validating compilation of examples")] public async Task Delete_DeletePublicIPAddress() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/PublicIpAddressDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/PublicIpAddressDelete.json // this example is just showing the usage of "PublicIPAddresses_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 @@ -47,7 +47,7 @@ public async Task Delete_DeletePublicIPAddress() [Ignore("Only validating compilation of examples")] public async Task Get_GetPublicIPAddress() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/PublicIpAddressGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/PublicIpAddressGet.json // this example is just showing the usage of "PublicIPAddresses_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 @@ -77,7 +77,7 @@ public async Task Get_GetPublicIPAddress() [Ignore("Only validating compilation of examples")] public async Task Update_UpdatePublicIPAddressTags() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/PublicIpAddressUpdateTags.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/PublicIpAddressUpdateTags.json // this example is just showing the usage of "PublicIPAddresses_UpdateTags" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -115,7 +115,7 @@ public async Task Update_UpdatePublicIPAddressTags() [Ignore("Only validating compilation of examples")] public async Task GetPublicIPAddresses_ListAllPublicIPAddresses() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/PublicIpAddressListAll.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/PublicIpAddressListAll.json // this example is just showing the usage of "PublicIPAddresses_ListAll" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -146,7 +146,7 @@ public async Task GetPublicIPAddresses_ListAllPublicIPAddresses() [Ignore("Only validating compilation of examples")] public async Task DdosProtectionStatus_GetDdosProtectionStatusOfAPublicIPAddress() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/PublicIpAddressGetDdosProtectionStatus.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/PublicIpAddressGetDdosProtectionStatus.json // this example is just showing the usage of "PublicIPAddresses_DdosProtectionStatus" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details 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/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_PublicIPPrefixCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_PublicIPPrefixCollection.cs index 13663d79dee4..fecf9f6b85d1 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_PublicIPPrefixCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_PublicIPPrefixCollection.cs @@ -21,7 +21,7 @@ public partial class Sample_PublicIPPrefixCollection [Ignore("Only validating compilation of examples")] public async Task Get_GetPublicIPPrefix() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/PublicIpPrefixGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/PublicIpPrefixGet.json // this example is just showing the usage of "PublicIPPrefixes_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -54,7 +54,7 @@ public async Task Get_GetPublicIPPrefix() [Ignore("Only validating compilation of examples")] public async Task Exists_GetPublicIPPrefix() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/PublicIpPrefixGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/PublicIpPrefixGet.json // this example is just showing the usage of "PublicIPPrefixes_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -83,7 +83,7 @@ public async Task Exists_GetPublicIPPrefix() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GetPublicIPPrefix() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/PublicIpPrefixGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/PublicIpPrefixGet.json // this example is just showing the usage of "PublicIPPrefixes_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 @@ -124,7 +124,7 @@ public async Task GetIfExists_GetPublicIPPrefix() [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_CreatePublicIPPrefixAllocationMethod() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/PublicIpPrefixCreateCustomizedValues.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/PublicIpPrefixCreateCustomizedValues.json // this example is just showing the usage of "PublicIPPrefixes_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -169,7 +169,7 @@ public async Task CreateOrUpdate_CreatePublicIPPrefixAllocationMethod() [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_CreatePublicIPPrefixDefaults() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/PublicIpPrefixCreateDefaults.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/PublicIpPrefixCreateDefaults.json // this example is just showing the usage of "PublicIPPrefixes_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 @@ -212,7 +212,7 @@ public async Task CreateOrUpdate_CreatePublicIPPrefixDefaults() [Ignore("Only validating compilation of examples")] public async Task GetAll_ListResourceGroupPublicIPPrefixes() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/PublicIpPrefixList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/PublicIpPrefixList.json // this example is just showing the usage of "PublicIPPrefixes_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_PublicIPPrefixResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_PublicIPPrefixResource.cs index 2cf08f814ca7..ac5d6e7b4246 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_PublicIPPrefixResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_PublicIPPrefixResource.cs @@ -21,7 +21,7 @@ public partial class Sample_PublicIPPrefixResource [Ignore("Only validating compilation of examples")] public async Task Delete_DeletePublicIPPrefix() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/PublicIpPrefixDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/PublicIpPrefixDelete.json // this example is just showing the usage of "PublicIPPrefixes_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 @@ -47,7 +47,7 @@ public async Task Delete_DeletePublicIPPrefix() [Ignore("Only validating compilation of examples")] public async Task Get_GetPublicIPPrefix() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/PublicIpPrefixGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/PublicIpPrefixGet.json // this example is just showing the usage of "PublicIPPrefixes_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 @@ -77,7 +77,7 @@ public async Task Get_GetPublicIPPrefix() [Ignore("Only validating compilation of examples")] public async Task Update_UpdatePublicIPPrefixTags() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/PublicIpPrefixUpdateTags.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/PublicIpPrefixUpdateTags.json // this example is just showing the usage of "PublicIPPrefixes_UpdateTags" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -115,7 +115,7 @@ public async Task Update_UpdatePublicIPPrefixTags() [Ignore("Only validating compilation of examples")] public async Task GetPublicIPPrefixes_ListAllPublicIPPrefixes() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/PublicIpPrefixListAll.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/PublicIpPrefixListAll.json // this example is just showing the usage of "PublicIPPrefixes_ListAll" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details 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/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ReachabilityAnalysisIntentCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ReachabilityAnalysisIntentCollection.cs new file mode 100644 index 000000000000..752f8b6de671 --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ReachabilityAnalysisIntentCollection.cs @@ -0,0 +1,220 @@ +// 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.Network.Models; +using NUnit.Framework; + +namespace Azure.ResourceManager.Network.Samples +{ + public partial class Sample_ReachabilityAnalysisIntentCollection + { + [Test] + [Ignore("Only validating compilation of examples")] + public async Task GetAll_ReachabilityAnalysisIntentList() + { + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/ReachabilityAnalysisIntentList.json + // this example is just showing the usage of "ReachabilityAnalysisIntents_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 VerifierWorkspaceResource created on azure + // for more information of creating VerifierWorkspaceResource, please refer to the document of VerifierWorkspaceResource + string subscriptionId = "00000000-0000-0000-0000-000000000000"; + string resourceGroupName = "rg1"; + string networkManagerName = "testNetworkManager"; + string workspaceName = "testVerifierWorkspace1"; + ResourceIdentifier verifierWorkspaceResourceId = VerifierWorkspaceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, networkManagerName, workspaceName); + VerifierWorkspaceResource verifierWorkspace = client.GetVerifierWorkspaceResource(verifierWorkspaceResourceId); + + // get the collection of this ReachabilityAnalysisIntentResource + ReachabilityAnalysisIntentCollection collection = verifierWorkspace.GetReachabilityAnalysisIntents(); + + // invoke the operation and iterate over the result + await foreach (ReachabilityAnalysisIntentResource item in collection.GetAllAsync()) + { + // the variable item is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + ReachabilityAnalysisIntentData 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 Get_ReachabilityAnalysisIntentGet() + { + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/ReachabilityAnalysisIntentGet.json + // this example is just showing the usage of "ReachabilityAnalysisIntents_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 VerifierWorkspaceResource created on azure + // for more information of creating VerifierWorkspaceResource, please refer to the document of VerifierWorkspaceResource + string subscriptionId = "00000000-0000-0000-0000-000000000000"; + string resourceGroupName = "rg1"; + string networkManagerName = "testNetworkManager"; + string workspaceName = "testWorkspace"; + ResourceIdentifier verifierWorkspaceResourceId = VerifierWorkspaceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, networkManagerName, workspaceName); + VerifierWorkspaceResource verifierWorkspace = client.GetVerifierWorkspaceResource(verifierWorkspaceResourceId); + + // get the collection of this ReachabilityAnalysisIntentResource + ReachabilityAnalysisIntentCollection collection = verifierWorkspace.GetReachabilityAnalysisIntents(); + + // invoke the operation + string reachabilityAnalysisIntentName = "testAnalysisIntentName"; + ReachabilityAnalysisIntentResource result = await collection.GetAsync(reachabilityAnalysisIntentName); + + // 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 + ReachabilityAnalysisIntentData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + [Test] + [Ignore("Only validating compilation of examples")] + public async Task Exists_ReachabilityAnalysisIntentGet() + { + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/ReachabilityAnalysisIntentGet.json + // this example is just showing the usage of "ReachabilityAnalysisIntents_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 VerifierWorkspaceResource created on azure + // for more information of creating VerifierWorkspaceResource, please refer to the document of VerifierWorkspaceResource + string subscriptionId = "00000000-0000-0000-0000-000000000000"; + string resourceGroupName = "rg1"; + string networkManagerName = "testNetworkManager"; + string workspaceName = "testWorkspace"; + ResourceIdentifier verifierWorkspaceResourceId = VerifierWorkspaceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, networkManagerName, workspaceName); + VerifierWorkspaceResource verifierWorkspace = client.GetVerifierWorkspaceResource(verifierWorkspaceResourceId); + + // get the collection of this ReachabilityAnalysisIntentResource + ReachabilityAnalysisIntentCollection collection = verifierWorkspace.GetReachabilityAnalysisIntents(); + + // invoke the operation + string reachabilityAnalysisIntentName = "testAnalysisIntentName"; + bool result = await collection.ExistsAsync(reachabilityAnalysisIntentName); + + Console.WriteLine($"Succeeded: {result}"); + } + + [Test] + [Ignore("Only validating compilation of examples")] + public async Task GetIfExists_ReachabilityAnalysisIntentGet() + { + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/ReachabilityAnalysisIntentGet.json + // this example is just showing the usage of "ReachabilityAnalysisIntents_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 VerifierWorkspaceResource created on azure + // for more information of creating VerifierWorkspaceResource, please refer to the document of VerifierWorkspaceResource + string subscriptionId = "00000000-0000-0000-0000-000000000000"; + string resourceGroupName = "rg1"; + string networkManagerName = "testNetworkManager"; + string workspaceName = "testWorkspace"; + ResourceIdentifier verifierWorkspaceResourceId = VerifierWorkspaceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, networkManagerName, workspaceName); + VerifierWorkspaceResource verifierWorkspace = client.GetVerifierWorkspaceResource(verifierWorkspaceResourceId); + + // get the collection of this ReachabilityAnalysisIntentResource + ReachabilityAnalysisIntentCollection collection = verifierWorkspace.GetReachabilityAnalysisIntents(); + + // invoke the operation + string reachabilityAnalysisIntentName = "testAnalysisIntentName"; + NullableResponse response = await collection.GetIfExistsAsync(reachabilityAnalysisIntentName); + ReachabilityAnalysisIntentResource 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 + ReachabilityAnalysisIntentData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + } + + [Test] + [Ignore("Only validating compilation of examples")] + public async Task CreateOrUpdate_ReachabilityAnalysisIntentCreate() + { + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/ReachabilityAnalysisIntentPut.json + // this example is just showing the usage of "ReachabilityAnalysisIntents_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 VerifierWorkspaceResource created on azure + // for more information of creating VerifierWorkspaceResource, please refer to the document of VerifierWorkspaceResource + string subscriptionId = "00000000-0000-0000-0000-000000000000"; + string resourceGroupName = "rg1"; + string networkManagerName = "testNetworkManager"; + string workspaceName = "testWorkspace"; + ResourceIdentifier verifierWorkspaceResourceId = VerifierWorkspaceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, networkManagerName, workspaceName); + VerifierWorkspaceResource verifierWorkspace = client.GetVerifierWorkspaceResource(verifierWorkspaceResourceId); + + // get the collection of this ReachabilityAnalysisIntentResource + ReachabilityAnalysisIntentCollection collection = verifierWorkspace.GetReachabilityAnalysisIntents(); + + // invoke the operation + string reachabilityAnalysisIntentName = "testAnalysisIntentName"; + ReachabilityAnalysisIntentData data = new ReachabilityAnalysisIntentData(new ReachabilityAnalysisIntentProperties(new ResourceIdentifier("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Compute/virtualMachines/testVmSrc"), new ResourceIdentifier("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Compute/virtualMachines/testVmDest"), new IPTraffic(new string[] + { +"10.4.0.0" + }, new string[] + { +"10.4.0.1" + }, new string[] + { +"0" + }, new string[] + { +"0" + }, new NetworkProtocol[] + { +NetworkProtocol.Any + })) + { + Description = "A sample reachability analysis intent", + }); + ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, reachabilityAnalysisIntentName, data); + ReachabilityAnalysisIntentResource 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 + ReachabilityAnalysisIntentData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ReachabilityAnalysisIntentResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ReachabilityAnalysisIntentResource.cs new file mode 100644 index 000000000000..51d10c45f69c --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ReachabilityAnalysisIntentResource.cs @@ -0,0 +1,131 @@ +// 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.Network.Models; +using NUnit.Framework; + +namespace Azure.ResourceManager.Network.Samples +{ + public partial class Sample_ReachabilityAnalysisIntentResource + { + [Test] + [Ignore("Only validating compilation of examples")] + public async Task Get_ReachabilityAnalysisIntentGet() + { + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/ReachabilityAnalysisIntentGet.json + // this example is just showing the usage of "ReachabilityAnalysisIntents_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 ReachabilityAnalysisIntentResource created on azure + // for more information of creating ReachabilityAnalysisIntentResource, please refer to the document of ReachabilityAnalysisIntentResource + string subscriptionId = "00000000-0000-0000-0000-000000000000"; + string resourceGroupName = "rg1"; + string networkManagerName = "testNetworkManager"; + string workspaceName = "testWorkspace"; + string reachabilityAnalysisIntentName = "testAnalysisIntentName"; + ResourceIdentifier reachabilityAnalysisIntentResourceId = ReachabilityAnalysisIntentResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, networkManagerName, workspaceName, reachabilityAnalysisIntentName); + ReachabilityAnalysisIntentResource reachabilityAnalysisIntent = client.GetReachabilityAnalysisIntentResource(reachabilityAnalysisIntentResourceId); + + // invoke the operation + ReachabilityAnalysisIntentResource result = await reachabilityAnalysisIntent.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 + ReachabilityAnalysisIntentData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + [Test] + [Ignore("Only validating compilation of examples")] + public async Task Update_ReachabilityAnalysisIntentCreate() + { + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/ReachabilityAnalysisIntentPut.json + // this example is just showing the usage of "ReachabilityAnalysisIntents_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 ReachabilityAnalysisIntentResource created on azure + // for more information of creating ReachabilityAnalysisIntentResource, please refer to the document of ReachabilityAnalysisIntentResource + string subscriptionId = "00000000-0000-0000-0000-000000000000"; + string resourceGroupName = "rg1"; + string networkManagerName = "testNetworkManager"; + string workspaceName = "testWorkspace"; + string reachabilityAnalysisIntentName = "testAnalysisIntentName"; + ResourceIdentifier reachabilityAnalysisIntentResourceId = ReachabilityAnalysisIntentResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, networkManagerName, workspaceName, reachabilityAnalysisIntentName); + ReachabilityAnalysisIntentResource reachabilityAnalysisIntent = client.GetReachabilityAnalysisIntentResource(reachabilityAnalysisIntentResourceId); + + // invoke the operation + ReachabilityAnalysisIntentData data = new ReachabilityAnalysisIntentData(new ReachabilityAnalysisIntentProperties(new ResourceIdentifier("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Compute/virtualMachines/testVmSrc"), new ResourceIdentifier("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Compute/virtualMachines/testVmDest"), new IPTraffic(new string[] + { +"10.4.0.0" + }, new string[] + { +"10.4.0.1" + }, new string[] + { +"0" + }, new string[] + { +"0" + }, new NetworkProtocol[] + { +NetworkProtocol.Any + })) + { + Description = "A sample reachability analysis intent", + }); + ArmOperation lro = await reachabilityAnalysisIntent.UpdateAsync(WaitUntil.Completed, data); + ReachabilityAnalysisIntentResource 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 + ReachabilityAnalysisIntentData 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_ReachabilityAnalysisIntentDelete() + { + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/ReachabilityAnalysisIntentDelete.json + // this example is just showing the usage of "ReachabilityAnalysisIntents_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 ReachabilityAnalysisIntentResource created on azure + // for more information of creating ReachabilityAnalysisIntentResource, please refer to the document of ReachabilityAnalysisIntentResource + string subscriptionId = "00000000-0000-0000-0000-000000000000"; + string resourceGroupName = "rg1"; + string networkManagerName = "testNetworkManager"; + string workspaceName = "testWorkspace"; + string reachabilityAnalysisIntentName = "testAnalysisIntent"; + ResourceIdentifier reachabilityAnalysisIntentResourceId = ReachabilityAnalysisIntentResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, networkManagerName, workspaceName, reachabilityAnalysisIntentName); + ReachabilityAnalysisIntentResource reachabilityAnalysisIntent = client.GetReachabilityAnalysisIntentResource(reachabilityAnalysisIntentResourceId); + + // invoke the operation + await reachabilityAnalysisIntent.DeleteAsync(WaitUntil.Completed); + + Console.WriteLine("Succeeded"); + } + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ReachabilityAnalysisRunCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ReachabilityAnalysisRunCollection.cs new file mode 100644 index 000000000000..f3f91fcc0df3 --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ReachabilityAnalysisRunCollection.cs @@ -0,0 +1,205 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Threading.Tasks; +using Azure.Core; +using Azure.Identity; +using Azure.ResourceManager.Network.Models; +using NUnit.Framework; + +namespace Azure.ResourceManager.Network.Samples +{ + public partial class Sample_ReachabilityAnalysisRunCollection + { + [Test] + [Ignore("Only validating compilation of examples")] + public async Task GetAll_ReachabilityAnalysisRunList() + { + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/ReachabilityAnalysisRunList.json + // this example is just showing the usage of "ReachabilityAnalysisRuns_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 VerifierWorkspaceResource created on azure + // for more information of creating VerifierWorkspaceResource, please refer to the document of VerifierWorkspaceResource + string subscriptionId = "00000000-0000-0000-0000-000000000000"; + string resourceGroupName = "rg1"; + string networkManagerName = "testNetworkManager"; + string workspaceName = "testVerifierWorkspace1"; + ResourceIdentifier verifierWorkspaceResourceId = VerifierWorkspaceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, networkManagerName, workspaceName); + VerifierWorkspaceResource verifierWorkspace = client.GetVerifierWorkspaceResource(verifierWorkspaceResourceId); + + // get the collection of this ReachabilityAnalysisRunResource + ReachabilityAnalysisRunCollection collection = verifierWorkspace.GetReachabilityAnalysisRuns(); + + // invoke the operation and iterate over the result + await foreach (ReachabilityAnalysisRunResource item in collection.GetAllAsync()) + { + // the variable item is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + ReachabilityAnalysisRunData 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 Get_ReachabilityAnalysisRunGet() + { + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/ReachabilityAnalysisRunGet.json + // this example is just showing the usage of "ReachabilityAnalysisRuns_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 VerifierWorkspaceResource created on azure + // for more information of creating VerifierWorkspaceResource, please refer to the document of VerifierWorkspaceResource + string subscriptionId = "00000000-0000-0000-0000-000000000000"; + string resourceGroupName = "rg1"; + string networkManagerName = "testNetworkManager"; + string workspaceName = "testWorkspace"; + ResourceIdentifier verifierWorkspaceResourceId = VerifierWorkspaceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, networkManagerName, workspaceName); + VerifierWorkspaceResource verifierWorkspace = client.GetVerifierWorkspaceResource(verifierWorkspaceResourceId); + + // get the collection of this ReachabilityAnalysisRunResource + ReachabilityAnalysisRunCollection collection = verifierWorkspace.GetReachabilityAnalysisRuns(); + + // invoke the operation + string reachabilityAnalysisRunName = "testAnalysisRunName"; + ReachabilityAnalysisRunResource result = await collection.GetAsync(reachabilityAnalysisRunName); + + // 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 + ReachabilityAnalysisRunData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + [Test] + [Ignore("Only validating compilation of examples")] + public async Task Exists_ReachabilityAnalysisRunGet() + { + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/ReachabilityAnalysisRunGet.json + // this example is just showing the usage of "ReachabilityAnalysisRuns_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 VerifierWorkspaceResource created on azure + // for more information of creating VerifierWorkspaceResource, please refer to the document of VerifierWorkspaceResource + string subscriptionId = "00000000-0000-0000-0000-000000000000"; + string resourceGroupName = "rg1"; + string networkManagerName = "testNetworkManager"; + string workspaceName = "testWorkspace"; + ResourceIdentifier verifierWorkspaceResourceId = VerifierWorkspaceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, networkManagerName, workspaceName); + VerifierWorkspaceResource verifierWorkspace = client.GetVerifierWorkspaceResource(verifierWorkspaceResourceId); + + // get the collection of this ReachabilityAnalysisRunResource + ReachabilityAnalysisRunCollection collection = verifierWorkspace.GetReachabilityAnalysisRuns(); + + // invoke the operation + string reachabilityAnalysisRunName = "testAnalysisRunName"; + bool result = await collection.ExistsAsync(reachabilityAnalysisRunName); + + Console.WriteLine($"Succeeded: {result}"); + } + + [Test] + [Ignore("Only validating compilation of examples")] + public async Task GetIfExists_ReachabilityAnalysisRunGet() + { + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/ReachabilityAnalysisRunGet.json + // this example is just showing the usage of "ReachabilityAnalysisRuns_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 VerifierWorkspaceResource created on azure + // for more information of creating VerifierWorkspaceResource, please refer to the document of VerifierWorkspaceResource + string subscriptionId = "00000000-0000-0000-0000-000000000000"; + string resourceGroupName = "rg1"; + string networkManagerName = "testNetworkManager"; + string workspaceName = "testWorkspace"; + ResourceIdentifier verifierWorkspaceResourceId = VerifierWorkspaceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, networkManagerName, workspaceName); + VerifierWorkspaceResource verifierWorkspace = client.GetVerifierWorkspaceResource(verifierWorkspaceResourceId); + + // get the collection of this ReachabilityAnalysisRunResource + ReachabilityAnalysisRunCollection collection = verifierWorkspace.GetReachabilityAnalysisRuns(); + + // invoke the operation + string reachabilityAnalysisRunName = "testAnalysisRunName"; + NullableResponse response = await collection.GetIfExistsAsync(reachabilityAnalysisRunName); + ReachabilityAnalysisRunResource 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 + ReachabilityAnalysisRunData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + } + + [Test] + [Ignore("Only validating compilation of examples")] + public async Task CreateOrUpdate_ReachabilityAnalysisRunCreate() + { + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/ReachabilityAnalysisRunPut.json + // this example is just showing the usage of "ReachabilityAnalysisRuns_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 VerifierWorkspaceResource created on azure + // for more information of creating VerifierWorkspaceResource, please refer to the document of VerifierWorkspaceResource + string subscriptionId = "00000000-0000-0000-0000-000000000000"; + string resourceGroupName = "rg1"; + string networkManagerName = "testNetworkManager"; + string workspaceName = "testWorkspace"; + ResourceIdentifier verifierWorkspaceResourceId = VerifierWorkspaceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, networkManagerName, workspaceName); + VerifierWorkspaceResource verifierWorkspace = client.GetVerifierWorkspaceResource(verifierWorkspaceResourceId); + + // get the collection of this ReachabilityAnalysisRunResource + ReachabilityAnalysisRunCollection collection = verifierWorkspace.GetReachabilityAnalysisRuns(); + + // invoke the operation + string reachabilityAnalysisRunName = "testAnalysisRunName"; + ReachabilityAnalysisRunData data = new ReachabilityAnalysisRunData(new ReachabilityAnalysisRunProperties("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/networkManagers/testNetworkManager/verifierWorkspaces/testVerifierWorkspace1/reachabilityAnalysisIntents/testReachabilityAnalysisIntenant1") + { + Description = "A sample reachability analysis run", + }); + ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, reachabilityAnalysisRunName, data); + ReachabilityAnalysisRunResource 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 + ReachabilityAnalysisRunData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ReachabilityAnalysisRunResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ReachabilityAnalysisRunResource.cs new file mode 100644 index 000000000000..da67fec82578 --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ReachabilityAnalysisRunResource.cs @@ -0,0 +1,116 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Threading.Tasks; +using Azure.Core; +using Azure.Identity; +using Azure.ResourceManager.Network.Models; +using NUnit.Framework; + +namespace Azure.ResourceManager.Network.Samples +{ + public partial class Sample_ReachabilityAnalysisRunResource + { + [Test] + [Ignore("Only validating compilation of examples")] + public async Task Get_ReachabilityAnalysisRunGet() + { + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/ReachabilityAnalysisRunGet.json + // this example is just showing the usage of "ReachabilityAnalysisRuns_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 ReachabilityAnalysisRunResource created on azure + // for more information of creating ReachabilityAnalysisRunResource, please refer to the document of ReachabilityAnalysisRunResource + string subscriptionId = "00000000-0000-0000-0000-000000000000"; + string resourceGroupName = "rg1"; + string networkManagerName = "testNetworkManager"; + string workspaceName = "testWorkspace"; + string reachabilityAnalysisRunName = "testAnalysisRunName"; + ResourceIdentifier reachabilityAnalysisRunResourceId = ReachabilityAnalysisRunResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, networkManagerName, workspaceName, reachabilityAnalysisRunName); + ReachabilityAnalysisRunResource reachabilityAnalysisRun = client.GetReachabilityAnalysisRunResource(reachabilityAnalysisRunResourceId); + + // invoke the operation + ReachabilityAnalysisRunResource result = await reachabilityAnalysisRun.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 + ReachabilityAnalysisRunData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + [Test] + [Ignore("Only validating compilation of examples")] + public async Task Update_ReachabilityAnalysisRunCreate() + { + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/ReachabilityAnalysisRunPut.json + // this example is just showing the usage of "ReachabilityAnalysisRuns_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 ReachabilityAnalysisRunResource created on azure + // for more information of creating ReachabilityAnalysisRunResource, please refer to the document of ReachabilityAnalysisRunResource + string subscriptionId = "00000000-0000-0000-0000-000000000000"; + string resourceGroupName = "rg1"; + string networkManagerName = "testNetworkManager"; + string workspaceName = "testWorkspace"; + string reachabilityAnalysisRunName = "testAnalysisRunName"; + ResourceIdentifier reachabilityAnalysisRunResourceId = ReachabilityAnalysisRunResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, networkManagerName, workspaceName, reachabilityAnalysisRunName); + ReachabilityAnalysisRunResource reachabilityAnalysisRun = client.GetReachabilityAnalysisRunResource(reachabilityAnalysisRunResourceId); + + // invoke the operation + ReachabilityAnalysisRunData data = new ReachabilityAnalysisRunData(new ReachabilityAnalysisRunProperties("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/networkManagers/testNetworkManager/verifierWorkspaces/testVerifierWorkspace1/reachabilityAnalysisIntents/testReachabilityAnalysisIntenant1") + { + Description = "A sample reachability analysis run", + }); + ArmOperation lro = await reachabilityAnalysisRun.UpdateAsync(WaitUntil.Completed, data); + ReachabilityAnalysisRunResource 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 + ReachabilityAnalysisRunData 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_ReachabilityAnalysisRunDelete() + { + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/ReachabilityAnalysisRunDelete.json + // this example is just showing the usage of "ReachabilityAnalysisRuns_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 ReachabilityAnalysisRunResource created on azure + // for more information of creating ReachabilityAnalysisRunResource, please refer to the document of ReachabilityAnalysisRunResource + string subscriptionId = "00000000-0000-0000-0000-000000000000"; + string resourceGroupName = "rg1"; + string networkManagerName = "testNetworkManager"; + string workspaceName = "testWorkspace"; + string reachabilityAnalysisRunName = "testAnalysisRun"; + ResourceIdentifier reachabilityAnalysisRunResourceId = ReachabilityAnalysisRunResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, networkManagerName, workspaceName, reachabilityAnalysisRunName); + ReachabilityAnalysisRunResource reachabilityAnalysisRun = client.GetReachabilityAnalysisRunResource(reachabilityAnalysisRunResourceId); + + // invoke the operation + await reachabilityAnalysisRun.DeleteAsync(WaitUntil.Completed); + + Console.WriteLine("Succeeded"); + } + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ResourceGroupResourceExtensions.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ResourceGroupResourceExtensions.cs index 2a78a8337c8e..2ff58351a98e 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ResourceGroupResourceExtensions.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ResourceGroupResourceExtensions.cs @@ -21,7 +21,7 @@ public partial class Sample_ResourceGroupResourceExtensions [Ignore("Only validating compilation of examples")] public async Task GetAvailableResourceGroupDelegations_GetAvailableDelegationsInTheResourceGroup() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/AvailableDelegationsResourceGroupGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/AvailableDelegationsResourceGroupGet.json // this example is just showing the usage of "AvailableResourceGroupDelegations_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 @@ -50,7 +50,7 @@ public async Task GetAvailableResourceGroupDelegations_GetAvailableDelegationsIn [Ignore("Only validating compilation of examples")] public async Task GetAvailableServiceAliasesByResourceGroup_GetAvailableServiceAliasesInTheResourceGroup() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/AvailableServiceAliasesListByResourceGroup.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/AvailableServiceAliasesListByResourceGroup.json // this example is just showing the usage of "AvailableServiceAliases_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 @@ -79,7 +79,7 @@ public async Task GetAvailableServiceAliasesByResourceGroup_GetAvailableServiceA [Ignore("Only validating compilation of examples")] public async Task GetAvailablePrivateEndpointTypesByResourceGroup_GetAvailablePrivateEndpointTypesInTheResourceGroup() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/AvailablePrivateEndpointTypesResourceGroupGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/AvailablePrivateEndpointTypesResourceGroupGet.json // this example is just showing the usage of "AvailablePrivateEndpointTypes_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 @@ -108,7 +108,7 @@ public async Task GetAvailablePrivateEndpointTypesByResourceGroup_GetAvailablePr [Ignore("Only validating compilation of examples")] public async Task CheckPrivateLinkServiceVisibilityByResourceGroupPrivateLinkService_CheckPrivateLinkServiceVisibility() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/CheckPrivateLinkServiceVisibilityByResourceGroup.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/CheckPrivateLinkServiceVisibilityByResourceGroup.json // this example is just showing the usage of "PrivateLinkServices_CheckPrivateLinkServiceVisibilityByResourceGroup" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -139,7 +139,7 @@ public async Task CheckPrivateLinkServiceVisibilityByResourceGroupPrivateLinkSer [Ignore("Only validating compilation of examples")] public async Task GetAutoApprovedPrivateLinkServicesByResourceGroupPrivateLinkServices_GetListOfPrivateLinkServiceIdThatCanBeLinkedToAPrivateEndPointWithAutoApproved() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/AutoApprovedPrivateLinkServicesResourceGroupGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/AutoApprovedPrivateLinkServicesResourceGroupGet.json // this example is just showing the usage of "PrivateLinkServices_ListAutoApprovedPrivateLinkServicesByResourceGroup" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details 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/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_RouteCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_RouteCollection.cs index 5fbce2a029b6..c8e5895e8438 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_RouteCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_RouteCollection.cs @@ -20,7 +20,7 @@ public partial class Sample_RouteCollection [Ignore("Only validating compilation of examples")] public async Task Get_GetRoute() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/RouteTableRouteGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/RouteTableRouteGet.json // this example is just showing the usage of "Routes_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -54,7 +54,7 @@ public async Task Get_GetRoute() [Ignore("Only validating compilation of examples")] public async Task Exists_GetRoute() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/RouteTableRouteGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/RouteTableRouteGet.json // this example is just showing the usage of "Routes_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 @@ -84,7 +84,7 @@ public async Task Exists_GetRoute() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GetRoute() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/RouteTableRouteGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/RouteTableRouteGet.json // this example is just showing the usage of "Routes_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -126,7 +126,7 @@ public async Task GetIfExists_GetRoute() [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_CreateRoute() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/RouteTableRouteCreate.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/RouteTableRouteCreate.json // this example is just showing the usage of "Routes_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 @@ -166,7 +166,7 @@ public async Task CreateOrUpdate_CreateRoute() [Ignore("Only validating compilation of examples")] public async Task GetAll_ListRoutes() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/RouteTableRouteList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/RouteTableRouteList.json // this example is just showing the usage of "Routes_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_RouteFilterCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_RouteFilterCollection.cs index e02f8b501836..99d5ad7b3269 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_RouteFilterCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_RouteFilterCollection.cs @@ -21,7 +21,7 @@ public partial class Sample_RouteFilterCollection [Ignore("Only validating compilation of examples")] public async Task Get_RouteFilterGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/RouteFilterGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/RouteFilterGet.json // this example is just showing the usage of "RouteFilters_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -54,7 +54,7 @@ public async Task Get_RouteFilterGet() [Ignore("Only validating compilation of examples")] public async Task Exists_RouteFilterGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/RouteFilterGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/RouteFilterGet.json // this example is just showing the usage of "RouteFilters_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -83,7 +83,7 @@ public async Task Exists_RouteFilterGet() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_RouteFilterGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/RouteFilterGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/RouteFilterGet.json // this example is just showing the usage of "RouteFilters_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 @@ -124,7 +124,7 @@ public async Task GetIfExists_RouteFilterGet() [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_RouteFilterCreate() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/RouteFilterCreate.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/RouteFilterCreate.json // this example is just showing the usage of "RouteFilters_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 @@ -179,7 +179,7 @@ public async Task CreateOrUpdate_RouteFilterCreate() [Ignore("Only validating compilation of examples")] public async Task GetAll_RouteFilterListByResourceGroup() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/RouteFilterListByResourceGroup.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/RouteFilterListByResourceGroup.json // this example is just showing the usage of "RouteFilters_ListByResourceGroup" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_RouteFilterResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_RouteFilterResource.cs index e9f0090d9df1..57636b5b069f 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_RouteFilterResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_RouteFilterResource.cs @@ -21,7 +21,7 @@ public partial class Sample_RouteFilterResource [Ignore("Only validating compilation of examples")] public async Task Delete_RouteFilterDelete() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/RouteFilterDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/RouteFilterDelete.json // this example is just showing the usage of "RouteFilters_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 @@ -47,7 +47,7 @@ public async Task Delete_RouteFilterDelete() [Ignore("Only validating compilation of examples")] public async Task Get_RouteFilterGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/RouteFilterGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/RouteFilterGet.json // this example is just showing the usage of "RouteFilters_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 @@ -77,7 +77,7 @@ public async Task Get_RouteFilterGet() [Ignore("Only validating compilation of examples")] public async Task Update_UpdateRouteFilterTags() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/RouteFilterUpdateTags.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/RouteFilterUpdateTags.json // this example is just showing the usage of "RouteFilters_UpdateTags" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -114,7 +114,7 @@ public async Task Update_UpdateRouteFilterTags() [Ignore("Only validating compilation of examples")] public async Task GetRouteFilters_RouteFilterList() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/RouteFilterList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/RouteFilterList.json // this example is just showing the usage of "RouteFilters_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_RouteFilterRuleCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_RouteFilterRuleCollection.cs index 6d8e44e277bb..b41506b470dd 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_RouteFilterRuleCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_RouteFilterRuleCollection.cs @@ -20,7 +20,7 @@ public partial class Sample_RouteFilterRuleCollection [Ignore("Only validating compilation of examples")] public async Task Get_RouteFilterRuleGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/RouteFilterRuleGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/RouteFilterRuleGet.json // this example is just showing the usage of "RouteFilterRules_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -54,7 +54,7 @@ public async Task Get_RouteFilterRuleGet() [Ignore("Only validating compilation of examples")] public async Task Exists_RouteFilterRuleGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/RouteFilterRuleGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/RouteFilterRuleGet.json // this example is just showing the usage of "RouteFilterRules_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 @@ -84,7 +84,7 @@ public async Task Exists_RouteFilterRuleGet() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_RouteFilterRuleGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/RouteFilterRuleGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/RouteFilterRuleGet.json // this example is just showing the usage of "RouteFilterRules_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -126,7 +126,7 @@ public async Task GetIfExists_RouteFilterRuleGet() [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_RouteFilterRuleCreate() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/RouteFilterRuleCreate.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/RouteFilterRuleCreate.json // this example is just showing the usage of "RouteFilterRules_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 @@ -170,7 +170,7 @@ public async Task CreateOrUpdate_RouteFilterRuleCreate() [Ignore("Only validating compilation of examples")] public async Task GetAll_RouteFilterRuleListByRouteFilter() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/RouteFilterRuleListByRouteFilter.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/RouteFilterRuleListByRouteFilter.json // this example is just showing the usage of "RouteFilterRules_ListByRouteFilter" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details 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/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_RouteFilterRuleResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_RouteFilterRuleResource.cs index 41bc3e9f2af4..ba308d9b14f9 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_RouteFilterRuleResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_RouteFilterRuleResource.cs @@ -20,7 +20,7 @@ public partial class Sample_RouteFilterRuleResource [Ignore("Only validating compilation of examples")] public async Task Delete_RouteFilterRuleDelete() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/RouteFilterRuleDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/RouteFilterRuleDelete.json // this example is just showing the usage of "RouteFilterRules_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 @@ -47,7 +47,7 @@ public async Task Delete_RouteFilterRuleDelete() [Ignore("Only validating compilation of examples")] public async Task Get_RouteFilterRuleGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/RouteFilterRuleGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/RouteFilterRuleGet.json // this example is just showing the usage of "RouteFilterRules_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 @@ -78,7 +78,7 @@ public async Task Get_RouteFilterRuleGet() [Ignore("Only validating compilation of examples")] public async Task Update_RouteFilterRuleCreate() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/RouteFilterRuleCreate.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/RouteFilterRuleCreate.json // this example is just showing the usage of "RouteFilterRules_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_RouteMapCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_RouteMapCollection.cs index f10a5eb03110..189caff8c743 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_RouteMapCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_RouteMapCollection.cs @@ -20,7 +20,7 @@ public partial class Sample_RouteMapCollection [Ignore("Only validating compilation of examples")] public async Task Get_RouteMapGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/RouteMapGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/RouteMapGet.json // this example is just showing the usage of "RouteMaps_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -54,7 +54,7 @@ public async Task Get_RouteMapGet() [Ignore("Only validating compilation of examples")] public async Task Exists_RouteMapGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/RouteMapGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/RouteMapGet.json // this example is just showing the usage of "RouteMaps_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 @@ -84,7 +84,7 @@ public async Task Exists_RouteMapGet() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_RouteMapGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/RouteMapGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/RouteMapGet.json // this example is just showing the usage of "RouteMaps_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -126,7 +126,7 @@ public async Task GetIfExists_RouteMapGet() [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_RouteMapPut() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/RouteMapPut.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/RouteMapPut.json // this example is just showing the usage of "RouteMaps_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 @@ -219,7 +219,7 @@ public async Task CreateOrUpdate_RouteMapPut() [Ignore("Only validating compilation of examples")] public async Task GetAll_RouteMapList() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/RouteMapList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/RouteMapList.json // this example is just showing the usage of "RouteMaps_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_RouteMapResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_RouteMapResource.cs index 71592d319661..4b4c0f5cec10 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_RouteMapResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_RouteMapResource.cs @@ -20,7 +20,7 @@ public partial class Sample_RouteMapResource [Ignore("Only validating compilation of examples")] public async Task Get_RouteMapGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/RouteMapGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/RouteMapGet.json // this example is just showing the usage of "RouteMaps_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 @@ -51,7 +51,7 @@ public async Task Get_RouteMapGet() [Ignore("Only validating compilation of examples")] public async Task Update_RouteMapPut() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/RouteMapPut.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/RouteMapPut.json // this example is just showing the usage of "RouteMaps_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 @@ -141,7 +141,7 @@ public async Task Update_RouteMapPut() [Ignore("Only validating compilation of examples")] public async Task Delete_RouteMapDelete() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/RouteMapDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/RouteMapDelete.json // this example is just showing the usage of "RouteMaps_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_RouteResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_RouteResource.cs index 92b2d23274b5..eb4417ff6ee9 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_RouteResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_RouteResource.cs @@ -20,7 +20,7 @@ public partial class Sample_RouteResource [Ignore("Only validating compilation of examples")] public async Task Delete_DeleteRoute() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/RouteTableRouteDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/RouteTableRouteDelete.json // this example is just showing the usage of "Routes_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 @@ -47,7 +47,7 @@ public async Task Delete_DeleteRoute() [Ignore("Only validating compilation of examples")] public async Task Get_GetRoute() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/RouteTableRouteGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/RouteTableRouteGet.json // this example is just showing the usage of "Routes_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 @@ -78,7 +78,7 @@ public async Task Get_GetRoute() [Ignore("Only validating compilation of examples")] public async Task Update_CreateRoute() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/RouteTableRouteCreate.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/RouteTableRouteCreate.json // this example is just showing the usage of "Routes_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_RouteTableCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_RouteTableCollection.cs index 8d2206a5d562..ede59fc0c7b0 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_RouteTableCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_RouteTableCollection.cs @@ -21,7 +21,7 @@ public partial class Sample_RouteTableCollection [Ignore("Only validating compilation of examples")] public async Task Get_GetRouteTable() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/RouteTableGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/RouteTableGet.json // this example is just showing the usage of "RouteTables_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -54,7 +54,7 @@ public async Task Get_GetRouteTable() [Ignore("Only validating compilation of examples")] public async Task Exists_GetRouteTable() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/RouteTableGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/RouteTableGet.json // this example is just showing the usage of "RouteTables_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -83,7 +83,7 @@ public async Task Exists_GetRouteTable() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GetRouteTable() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/RouteTableGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/RouteTableGet.json // this example is just showing the usage of "RouteTables_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 @@ -124,7 +124,7 @@ public async Task GetIfExists_GetRouteTable() [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_CreateRouteTable() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/RouteTableCreate.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/RouteTableCreate.json // this example is just showing the usage of "RouteTables_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 @@ -162,7 +162,7 @@ public async Task CreateOrUpdate_CreateRouteTable() [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_CreateRouteTableWithRoute() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/RouteTableCreateWithRoute.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/RouteTableCreateWithRoute.json // this example is just showing the usage of "RouteTables_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 @@ -210,7 +210,7 @@ public async Task CreateOrUpdate_CreateRouteTableWithRoute() [Ignore("Only validating compilation of examples")] public async Task GetAll_ListRouteTablesInResourceGroup() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/RouteTableList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/RouteTableList.json // this example is just showing the usage of "RouteTables_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_RouteTableResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_RouteTableResource.cs index ceefb7513128..a21a7ec6b8be 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_RouteTableResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_RouteTableResource.cs @@ -21,7 +21,7 @@ public partial class Sample_RouteTableResource [Ignore("Only validating compilation of examples")] public async Task Delete_DeleteRouteTable() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/RouteTableDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/RouteTableDelete.json // this example is just showing the usage of "RouteTables_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 @@ -47,7 +47,7 @@ public async Task Delete_DeleteRouteTable() [Ignore("Only validating compilation of examples")] public async Task Get_GetRouteTable() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/RouteTableGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/RouteTableGet.json // this example is just showing the usage of "RouteTables_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 @@ -77,7 +77,7 @@ public async Task Get_GetRouteTable() [Ignore("Only validating compilation of examples")] public async Task Update_UpdateRouteTableTags() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/RouteTableUpdateTags.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/RouteTableUpdateTags.json // this example is just showing the usage of "RouteTables_UpdateTags" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -115,7 +115,7 @@ public async Task Update_UpdateRouteTableTags() [Ignore("Only validating compilation of examples")] public async Task GetRouteTables_ListAllRouteTables() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/RouteTableListAll.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/RouteTableListAll.json // this example is just showing the usage of "RouteTables_ListAll" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details 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/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_RoutingIntentCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_RoutingIntentCollection.cs index 092a6b010173..61a1337cc3f1 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_RoutingIntentCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_RoutingIntentCollection.cs @@ -20,7 +20,7 @@ public partial class Sample_RoutingIntentCollection [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_RouteTablePut() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/RoutingIntentPut.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/RoutingIntentPut.json // this example is just showing the usage of "RoutingIntent_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 @@ -68,7 +68,7 @@ public async Task CreateOrUpdate_RouteTablePut() [Ignore("Only validating compilation of examples")] public async Task Get_RouteTableGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/RoutingIntentGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/RoutingIntentGet.json // this example is just showing the usage of "RoutingIntent_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 @@ -102,7 +102,7 @@ public async Task Get_RouteTableGet() [Ignore("Only validating compilation of examples")] public async Task Exists_RouteTableGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/RoutingIntentGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/RoutingIntentGet.json // this example is just showing the usage of "RoutingIntent_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -132,7 +132,7 @@ public async Task Exists_RouteTableGet() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_RouteTableGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/RoutingIntentGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/RoutingIntentGet.json // this example is just showing the usage of "RoutingIntent_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 @@ -174,7 +174,7 @@ public async Task GetIfExists_RouteTableGet() [Ignore("Only validating compilation of examples")] public async Task GetAll_RoutingIntentList() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/RoutingIntentList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/RoutingIntentList.json // this example is just showing the usage of "RoutingIntent_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_RoutingIntentResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_RoutingIntentResource.cs index 6d43aa9609c3..3ed4e91df071 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_RoutingIntentResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_RoutingIntentResource.cs @@ -20,7 +20,7 @@ public partial class Sample_RoutingIntentResource [Ignore("Only validating compilation of examples")] public async Task Update_RouteTablePut() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/RoutingIntentPut.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/RoutingIntentPut.json // this example is just showing the usage of "RoutingIntent_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 @@ -65,7 +65,7 @@ public async Task Update_RouteTablePut() [Ignore("Only validating compilation of examples")] public async Task Get_RouteTableGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/RoutingIntentGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/RoutingIntentGet.json // this example is just showing the usage of "RoutingIntent_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -96,7 +96,7 @@ public async Task Get_RouteTableGet() [Ignore("Only validating compilation of examples")] public async Task Delete_RouteTableDelete() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/RoutingIntentDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/RoutingIntentDelete.json // this example is just showing the usage of "RoutingIntent_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ScopeConnectionCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ScopeConnectionCollection.cs index 99a23f38b81f..07be60b3fe77 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ScopeConnectionCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ScopeConnectionCollection.cs @@ -19,7 +19,7 @@ public partial class Sample_ScopeConnectionCollection [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_CreateOrUpdateNetworkManagerScopeConnection() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerScopeConnectionPut.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkManagerScopeConnectionPut.json // this example is just showing the usage of "ScopeConnections_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 @@ -60,7 +60,7 @@ public async Task CreateOrUpdate_CreateOrUpdateNetworkManagerScopeConnection() [Ignore("Only validating compilation of examples")] public async Task Get_GetNetworkManagerScopeConnection() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerScopeConnectionGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkManagerScopeConnectionGet.json // this example is just showing the usage of "ScopeConnections_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 @@ -94,7 +94,7 @@ public async Task Get_GetNetworkManagerScopeConnection() [Ignore("Only validating compilation of examples")] public async Task Exists_GetNetworkManagerScopeConnection() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerScopeConnectionGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkManagerScopeConnectionGet.json // this example is just showing the usage of "ScopeConnections_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 @@ -124,7 +124,7 @@ public async Task Exists_GetNetworkManagerScopeConnection() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GetNetworkManagerScopeConnection() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerScopeConnectionGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkManagerScopeConnectionGet.json // this example is just showing the usage of "ScopeConnections_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 @@ -166,7 +166,7 @@ public async Task GetIfExists_GetNetworkManagerScopeConnection() [Ignore("Only validating compilation of examples")] public async Task GetAll_ListNetworkManagerScopeConnection() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerScopeConnectionList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkManagerScopeConnectionList.json // this example is just showing the usage of "ScopeConnections_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ScopeConnectionResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ScopeConnectionResource.cs index 103830f21829..677298421f31 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ScopeConnectionResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ScopeConnectionResource.cs @@ -19,7 +19,7 @@ public partial class Sample_ScopeConnectionResource [Ignore("Only validating compilation of examples")] public async Task Update_CreateOrUpdateNetworkManagerScopeConnection() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerScopeConnectionPut.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkManagerScopeConnectionPut.json // this example is just showing the usage of "ScopeConnections_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 @@ -57,7 +57,7 @@ public async Task Update_CreateOrUpdateNetworkManagerScopeConnection() [Ignore("Only validating compilation of examples")] public async Task Get_GetNetworkManagerScopeConnection() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerScopeConnectionGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkManagerScopeConnectionGet.json // this example is just showing the usage of "ScopeConnections_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -88,7 +88,7 @@ public async Task Get_GetNetworkManagerScopeConnection() [Ignore("Only validating compilation of examples")] public async Task Delete_DeleteNetworkManagerScopeConnection() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerScopeConnectionDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkManagerScopeConnectionDelete.json // this example is just showing the usage of "ScopeConnections_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_SecurityAdminConfigurationCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_SecurityAdminConfigurationCollection.cs index 54d14ff4b76f..b0fecc9d7b8c 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_SecurityAdminConfigurationCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_SecurityAdminConfigurationCollection.cs @@ -20,7 +20,7 @@ public partial class Sample_SecurityAdminConfigurationCollection [Ignore("Only validating compilation of examples")] public async Task GetAll_ListSecurityAdminConfigurationsInANetworkManager() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerSecurityAdminConfigurationList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkManagerSecurityAdminConfigurationList.json // this example is just showing the usage of "SecurityAdminConfigurations_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -56,7 +56,7 @@ public async Task GetAll_ListSecurityAdminConfigurationsInANetworkManager() [Ignore("Only validating compilation of examples")] public async Task Get_GetSecurityAdminConfigurations() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerSecurityAdminConfigurationGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkManagerSecurityAdminConfigurationGet.json // this example is just showing the usage of "SecurityAdminConfigurations_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -90,7 +90,7 @@ public async Task Get_GetSecurityAdminConfigurations() [Ignore("Only validating compilation of examples")] public async Task Exists_GetSecurityAdminConfigurations() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerSecurityAdminConfigurationGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkManagerSecurityAdminConfigurationGet.json // this example is just showing the usage of "SecurityAdminConfigurations_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 @@ -120,7 +120,7 @@ public async Task Exists_GetSecurityAdminConfigurations() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GetSecurityAdminConfigurations() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerSecurityAdminConfigurationGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkManagerSecurityAdminConfigurationGet.json // this example is just showing the usage of "SecurityAdminConfigurations_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 @@ -158,11 +158,51 @@ public async Task GetIfExists_GetSecurityAdminConfigurations() } } + [Test] + [Ignore("Only validating compilation of examples")] + public async Task CreateOrUpdate_CreateManualModeSecurityAdminConfiguration() + { + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkManagerSecurityAdminConfigurationPut_ManualAggregation.json + // this example is just showing the usage of "SecurityAdminConfigurations_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 NetworkManagerResource created on azure + // for more information of creating NetworkManagerResource, please refer to the document of NetworkManagerResource + string subscriptionId = "11111111-1111-1111-1111-111111111111"; + string resourceGroupName = "rg1"; + string networkManagerName = "testNetworkManager"; + ResourceIdentifier networkManagerResourceId = NetworkManagerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, networkManagerName); + NetworkManagerResource networkManager = client.GetNetworkManagerResource(networkManagerResourceId); + + // get the collection of this SecurityAdminConfigurationResource + SecurityAdminConfigurationCollection collection = networkManager.GetSecurityAdminConfigurations(); + + // invoke the operation + string configurationName = "myTestSecurityConfig"; + SecurityAdminConfigurationData data = new SecurityAdminConfigurationData() + { + Description = "A configuration which will update any network groups ip addresses at commit times.", + NetworkGroupAddressSpaceAggregationOption = AddressSpaceAggregationOption.Manual, + }; + ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, configurationName, data); + SecurityAdminConfigurationResource 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 + SecurityAdminConfigurationData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + [Test] [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_CreateNetworkManagerSecurityAdminConfiguration() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerSecurityAdminConfigurationPut.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkManagerSecurityAdminConfigurationPut.json // this example is just showing the usage of "SecurityAdminConfigurations_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_SecurityAdminConfigurationResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_SecurityAdminConfigurationResource.cs index 327b8f6c0b0e..2298946139ca 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_SecurityAdminConfigurationResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_SecurityAdminConfigurationResource.cs @@ -20,7 +20,7 @@ public partial class Sample_SecurityAdminConfigurationResource [Ignore("Only validating compilation of examples")] public async Task Get_GetSecurityAdminConfigurations() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerSecurityAdminConfigurationGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkManagerSecurityAdminConfigurationGet.json // this example is just showing the usage of "SecurityAdminConfigurations_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 @@ -47,11 +47,48 @@ public async Task Get_GetSecurityAdminConfigurations() Console.WriteLine($"Succeeded on id: {resourceData.Id}"); } + [Test] + [Ignore("Only validating compilation of examples")] + public async Task Update_CreateManualModeSecurityAdminConfiguration() + { + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkManagerSecurityAdminConfigurationPut_ManualAggregation.json + // this example is just showing the usage of "SecurityAdminConfigurations_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 SecurityAdminConfigurationResource created on azure + // for more information of creating SecurityAdminConfigurationResource, please refer to the document of SecurityAdminConfigurationResource + string subscriptionId = "11111111-1111-1111-1111-111111111111"; + string resourceGroupName = "rg1"; + string networkManagerName = "testNetworkManager"; + string configurationName = "myTestSecurityConfig"; + ResourceIdentifier securityAdminConfigurationResourceId = SecurityAdminConfigurationResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, networkManagerName, configurationName); + SecurityAdminConfigurationResource securityAdminConfiguration = client.GetSecurityAdminConfigurationResource(securityAdminConfigurationResourceId); + + // invoke the operation + SecurityAdminConfigurationData data = new SecurityAdminConfigurationData() + { + Description = "A configuration which will update any network groups ip addresses at commit times.", + NetworkGroupAddressSpaceAggregationOption = AddressSpaceAggregationOption.Manual, + }; + ArmOperation lro = await securityAdminConfiguration.UpdateAsync(WaitUntil.Completed, data); + SecurityAdminConfigurationResource 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 + SecurityAdminConfigurationData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + [Test] [Ignore("Only validating compilation of examples")] public async Task Update_CreateNetworkManagerSecurityAdminConfiguration() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerSecurityAdminConfigurationPut.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkManagerSecurityAdminConfigurationPut.json // this example is just showing the usage of "SecurityAdminConfigurations_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 @@ -91,7 +128,7 @@ public async Task Update_CreateNetworkManagerSecurityAdminConfiguration() [Ignore("Only validating compilation of examples")] public async Task Delete_DeleteNetworkManagerSecurityAdminConfiguration() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerSecurityAdminConfigurationDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkManagerSecurityAdminConfigurationDelete.json // this example is just showing the usage of "SecurityAdminConfigurations_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_SecurityPartnerProviderCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_SecurityPartnerProviderCollection.cs index 0319d19bdde8..3964950a01a6 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_SecurityPartnerProviderCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_SecurityPartnerProviderCollection.cs @@ -21,7 +21,7 @@ public partial class Sample_SecurityPartnerProviderCollection [Ignore("Only validating compilation of examples")] public async Task Get_GetSecurityPartnerProvider() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/SecurityPartnerProviderGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/SecurityPartnerProviderGet.json // this example is just showing the usage of "SecurityPartnerProviders_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -54,7 +54,7 @@ public async Task Get_GetSecurityPartnerProvider() [Ignore("Only validating compilation of examples")] public async Task Exists_GetSecurityPartnerProvider() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/SecurityPartnerProviderGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/SecurityPartnerProviderGet.json // this example is just showing the usage of "SecurityPartnerProviders_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -83,7 +83,7 @@ public async Task Exists_GetSecurityPartnerProvider() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GetSecurityPartnerProvider() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/SecurityPartnerProviderGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/SecurityPartnerProviderGet.json // this example is just showing the usage of "SecurityPartnerProviders_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 @@ -124,7 +124,7 @@ public async Task GetIfExists_GetSecurityPartnerProvider() [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_CreateSecurityPartnerProvider() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/SecurityPartnerProviderPut.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/SecurityPartnerProviderPut.json // this example is just showing the usage of "SecurityPartnerProviders_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 @@ -168,7 +168,7 @@ public async Task CreateOrUpdate_CreateSecurityPartnerProvider() [Ignore("Only validating compilation of examples")] public async Task GetAll_ListAllSecurityPartnerProvidersForAGivenResourceGroup() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/SecurityPartnerProviderListByResourceGroup.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/SecurityPartnerProviderListByResourceGroup.json // this example is just showing the usage of "SecurityPartnerProviders_ListByResourceGroup" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_SecurityPartnerProviderResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_SecurityPartnerProviderResource.cs index 6e0a18834ae9..71eceda26f9b 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_SecurityPartnerProviderResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_SecurityPartnerProviderResource.cs @@ -21,7 +21,7 @@ public partial class Sample_SecurityPartnerProviderResource [Ignore("Only validating compilation of examples")] public async Task Delete_DeleteSecurityPartnerProvider() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/SecurityPartnerProviderDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/SecurityPartnerProviderDelete.json // this example is just showing the usage of "SecurityPartnerProviders_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 @@ -47,7 +47,7 @@ public async Task Delete_DeleteSecurityPartnerProvider() [Ignore("Only validating compilation of examples")] public async Task Get_GetSecurityPartnerProvider() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/SecurityPartnerProviderGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/SecurityPartnerProviderGet.json // this example is just showing the usage of "SecurityPartnerProviders_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 @@ -77,7 +77,7 @@ public async Task Get_GetSecurityPartnerProvider() [Ignore("Only validating compilation of examples")] public async Task Update_UpdateSecurityPartnerProviderTags() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/SecurityPartnerProviderUpdateTags.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/SecurityPartnerProviderUpdateTags.json // this example is just showing the usage of "SecurityPartnerProviders_UpdateTags" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -115,7 +115,7 @@ public async Task Update_UpdateSecurityPartnerProviderTags() [Ignore("Only validating compilation of examples")] public async Task GetSecurityPartnerProviders_ListAllSecurityPartnerProvidersForAGivenSubscription() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/SecurityPartnerProviderListBySubscription.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/SecurityPartnerProviderListBySubscription.json // this example is just showing the usage of "SecurityPartnerProviders_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_SecurityRuleCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_SecurityRuleCollection.cs index 42f77edb0592..c4bc2783b221 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_SecurityRuleCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_SecurityRuleCollection.cs @@ -20,7 +20,7 @@ public partial class Sample_SecurityRuleCollection [Ignore("Only validating compilation of examples")] public async Task Get_GetNetworkSecurityRuleInNetworkSecurityGroup() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkSecurityGroupRuleGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkSecurityGroupRuleGet.json // this example is just showing the usage of "SecurityRules_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -54,7 +54,7 @@ public async Task Get_GetNetworkSecurityRuleInNetworkSecurityGroup() [Ignore("Only validating compilation of examples")] public async Task Exists_GetNetworkSecurityRuleInNetworkSecurityGroup() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkSecurityGroupRuleGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkSecurityGroupRuleGet.json // this example is just showing the usage of "SecurityRules_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 @@ -84,7 +84,7 @@ public async Task Exists_GetNetworkSecurityRuleInNetworkSecurityGroup() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GetNetworkSecurityRuleInNetworkSecurityGroup() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkSecurityGroupRuleGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkSecurityGroupRuleGet.json // this example is just showing the usage of "SecurityRules_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -126,7 +126,7 @@ public async Task GetIfExists_GetNetworkSecurityRuleInNetworkSecurityGroup() [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_CreateSecurityRule() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkSecurityGroupRuleCreate.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkSecurityGroupRuleCreate.json // this example is just showing the usage of "SecurityRules_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 @@ -172,7 +172,7 @@ public async Task CreateOrUpdate_CreateSecurityRule() [Ignore("Only validating compilation of examples")] public async Task GetAll_ListNetworkSecurityRulesInNetworkSecurityGroup() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkSecurityGroupRuleList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkSecurityGroupRuleList.json // this example is just showing the usage of "SecurityRules_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_SecurityRuleResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_SecurityRuleResource.cs index fc5799891fad..d675e274d5a3 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_SecurityRuleResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_SecurityRuleResource.cs @@ -20,7 +20,7 @@ public partial class Sample_SecurityRuleResource [Ignore("Only validating compilation of examples")] public async Task Delete_DeleteNetworkSecurityRuleFromNetworkSecurityGroup() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkSecurityGroupRuleDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkSecurityGroupRuleDelete.json // this example is just showing the usage of "SecurityRules_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 @@ -47,7 +47,7 @@ public async Task Delete_DeleteNetworkSecurityRuleFromNetworkSecurityGroup() [Ignore("Only validating compilation of examples")] public async Task Get_GetNetworkSecurityRuleInNetworkSecurityGroup() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkSecurityGroupRuleGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkSecurityGroupRuleGet.json // this example is just showing the usage of "SecurityRules_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 @@ -78,7 +78,7 @@ public async Task Get_GetNetworkSecurityRuleInNetworkSecurityGroup() [Ignore("Only validating compilation of examples")] public async Task Update_CreateSecurityRule() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkSecurityGroupRuleCreate.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkSecurityGroupRuleCreate.json // this example is just showing the usage of "SecurityRules_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ServiceEndpointPolicyCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ServiceEndpointPolicyCollection.cs index e13862e5abb2..bb210f24e715 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ServiceEndpointPolicyCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ServiceEndpointPolicyCollection.cs @@ -20,7 +20,7 @@ public partial class Sample_ServiceEndpointPolicyCollection [Ignore("Only validating compilation of examples")] public async Task Get_GetServiceEndPointPolicy() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ServiceEndpointPolicyGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/ServiceEndpointPolicyGet.json // this example is just showing the usage of "ServiceEndpointPolicies_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -53,7 +53,7 @@ public async Task Get_GetServiceEndPointPolicy() [Ignore("Only validating compilation of examples")] public async Task Exists_GetServiceEndPointPolicy() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ServiceEndpointPolicyGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/ServiceEndpointPolicyGet.json // this example is just showing the usage of "ServiceEndpointPolicies_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -82,7 +82,7 @@ public async Task Exists_GetServiceEndPointPolicy() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GetServiceEndPointPolicy() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ServiceEndpointPolicyGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/ServiceEndpointPolicyGet.json // this example is just showing the usage of "ServiceEndpointPolicies_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 @@ -123,7 +123,7 @@ public async Task GetIfExists_GetServiceEndPointPolicy() [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_CreateServiceEndpointPolicy() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ServiceEndpointPolicyCreate.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/ServiceEndpointPolicyCreate.json // this example is just showing the usage of "ServiceEndpointPolicies_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 @@ -161,7 +161,7 @@ public async Task CreateOrUpdate_CreateServiceEndpointPolicy() [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_CreateServiceEndpointPolicyWithDefinition() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ServiceEndpointPolicyCreateWithDefinition.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/ServiceEndpointPolicyCreateWithDefinition.json // this example is just showing the usage of "ServiceEndpointPolicies_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 @@ -212,7 +212,7 @@ public async Task CreateOrUpdate_CreateServiceEndpointPolicyWithDefinition() [Ignore("Only validating compilation of examples")] public async Task GetAll_ListResourceGroupServiceEndpointPolicies() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ServiceEndpointPolicyList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/ServiceEndpointPolicyList.json // this example is just showing the usage of "ServiceEndpointPolicies_ListByResourceGroup" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ServiceEndpointPolicyDefinitionCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ServiceEndpointPolicyDefinitionCollection.cs index 0feb943b5df5..dc11324920a4 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ServiceEndpointPolicyDefinitionCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ServiceEndpointPolicyDefinitionCollection.cs @@ -19,7 +19,7 @@ public partial class Sample_ServiceEndpointPolicyDefinitionCollection [Ignore("Only validating compilation of examples")] public async Task Get_GetServiceEndpointDefinitionInServiceEndpointPolicy() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ServiceEndpointPolicyDefinitionGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/ServiceEndpointPolicyDefinitionGet.json // this example is just showing the usage of "ServiceEndpointPolicyDefinitions_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -53,7 +53,7 @@ public async Task Get_GetServiceEndpointDefinitionInServiceEndpointPolicy() [Ignore("Only validating compilation of examples")] public async Task Exists_GetServiceEndpointDefinitionInServiceEndpointPolicy() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ServiceEndpointPolicyDefinitionGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/ServiceEndpointPolicyDefinitionGet.json // this example is just showing the usage of "ServiceEndpointPolicyDefinitions_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -83,7 +83,7 @@ public async Task Exists_GetServiceEndpointDefinitionInServiceEndpointPolicy() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GetServiceEndpointDefinitionInServiceEndpointPolicy() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ServiceEndpointPolicyDefinitionGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/ServiceEndpointPolicyDefinitionGet.json // this example is just showing the usage of "ServiceEndpointPolicyDefinitions_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -125,7 +125,7 @@ public async Task GetIfExists_GetServiceEndpointDefinitionInServiceEndpointPolic [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_CreateServiceEndpointPolicyDefinition() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ServiceEndpointPolicyDefinitionCreate.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/ServiceEndpointPolicyDefinitionCreate.json // this example is just showing the usage of "ServiceEndpointPolicyDefinitions_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -169,7 +169,7 @@ public async Task CreateOrUpdate_CreateServiceEndpointPolicyDefinition() [Ignore("Only validating compilation of examples")] public async Task GetAll_ListServiceEndpointDefinitionsInServiceEndPointPolicy() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ServiceEndpointPolicyDefinitionList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/ServiceEndpointPolicyDefinitionList.json // this example is just showing the usage of "ServiceEndpointPolicyDefinitions_ListByResourceGroup" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ServiceEndpointPolicyDefinitionResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ServiceEndpointPolicyDefinitionResource.cs index 8480c3b2b5a7..b5728b04c847 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ServiceEndpointPolicyDefinitionResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ServiceEndpointPolicyDefinitionResource.cs @@ -19,7 +19,7 @@ public partial class Sample_ServiceEndpointPolicyDefinitionResource [Ignore("Only validating compilation of examples")] public async Task Delete_DeleteServiceEndpointPolicyDefinitionsFromServiceEndpointPolicy() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ServiceEndpointPolicyDefinitionDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/ServiceEndpointPolicyDefinitionDelete.json // this example is just showing the usage of "ServiceEndpointPolicyDefinitions_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 @@ -46,7 +46,7 @@ public async Task Delete_DeleteServiceEndpointPolicyDefinitionsFromServiceEndpoi [Ignore("Only validating compilation of examples")] public async Task Get_GetServiceEndpointDefinitionInServiceEndpointPolicy() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ServiceEndpointPolicyDefinitionGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/ServiceEndpointPolicyDefinitionGet.json // this example is just showing the usage of "ServiceEndpointPolicyDefinitions_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 @@ -77,7 +77,7 @@ public async Task Get_GetServiceEndpointDefinitionInServiceEndpointPolicy() [Ignore("Only validating compilation of examples")] public async Task Update_CreateServiceEndpointPolicyDefinition() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ServiceEndpointPolicyDefinitionCreate.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/ServiceEndpointPolicyDefinitionCreate.json // this example is just showing the usage of "ServiceEndpointPolicyDefinitions_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ServiceEndpointPolicyResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ServiceEndpointPolicyResource.cs index 86f86237a5c6..a34bd1248e44 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ServiceEndpointPolicyResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_ServiceEndpointPolicyResource.cs @@ -21,7 +21,7 @@ public partial class Sample_ServiceEndpointPolicyResource [Ignore("Only validating compilation of examples")] public async Task Delete_DeleteServiceEndpointPolicy() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ServiceEndpointPolicyDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/ServiceEndpointPolicyDelete.json // this example is just showing the usage of "ServiceEndpointPolicies_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 @@ -47,7 +47,7 @@ public async Task Delete_DeleteServiceEndpointPolicy() [Ignore("Only validating compilation of examples")] public async Task Get_GetServiceEndPointPolicy() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ServiceEndpointPolicyGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/ServiceEndpointPolicyGet.json // this example is just showing the usage of "ServiceEndpointPolicies_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 @@ -77,7 +77,7 @@ public async Task Get_GetServiceEndPointPolicy() [Ignore("Only validating compilation of examples")] public async Task Update_UpdateServiceEndpointPolicyTags() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ServiceEndpointPolicyUpdateTags.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/ServiceEndpointPolicyUpdateTags.json // this example is just showing the usage of "ServiceEndpointPolicies_UpdateTags" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -115,7 +115,7 @@ public async Task Update_UpdateServiceEndpointPolicyTags() [Ignore("Only validating compilation of examples")] public async Task GetServiceEndpointPoliciesByServiceEndpointPolicy_ListAllServiceEndpointPolicy() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ServiceEndpointPolicyListAll.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/ServiceEndpointPolicyListAll.json // this example is just showing the usage of "ServiceEndpointPolicies_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_StaticCidrCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_StaticCidrCollection.cs new file mode 100644 index 000000000000..95ff58a3f547 --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_StaticCidrCollection.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 NUnit.Framework; + +namespace Azure.ResourceManager.Network.Samples +{ + public partial class Sample_StaticCidrCollection + { + [Test] + [Ignore("Only validating compilation of examples")] + public async Task GetAll_StaticCidrsList() + { + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/StaticCidrs_List.json + // this example is just showing the usage of "StaticCidrs_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 IpamPoolResource created on azure + // for more information of creating IpamPoolResource, please refer to the document of IpamPoolResource + string subscriptionId = "11111111-1111-1111-1111-111111111111"; + string resourceGroupName = "rg1"; + string networkManagerName = "TestNetworkManager"; + string poolName = "TestPool"; + ResourceIdentifier ipamPoolResourceId = IpamPoolResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, networkManagerName, poolName); + IpamPoolResource ipamPool = client.GetIpamPoolResource(ipamPoolResourceId); + + // get the collection of this StaticCidrResource + StaticCidrCollection collection = ipamPool.GetStaticCidrs(); + + // invoke the operation and iterate over the result + await foreach (StaticCidrResource item in collection.GetAllAsync()) + { + // the variable item is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + StaticCidrData 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 CreateOrUpdate_StaticCidrsCreate() + { + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/StaticCidrs_Create.json + // this example is just showing the usage of "StaticCidrs_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 IpamPoolResource created on azure + // for more information of creating IpamPoolResource, please refer to the document of IpamPoolResource + string subscriptionId = "11111111-1111-1111-1111-111111111111"; + string resourceGroupName = "rg1"; + string networkManagerName = "TestNetworkManager"; + string poolName = "TestPool"; + ResourceIdentifier ipamPoolResourceId = IpamPoolResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, networkManagerName, poolName); + IpamPoolResource ipamPool = client.GetIpamPoolResource(ipamPoolResourceId); + + // get the collection of this StaticCidrResource + StaticCidrCollection collection = ipamPool.GetStaticCidrs(); + + // invoke the operation + string staticCidrName = "TestStaticCidr"; + StaticCidrData data = new StaticCidrData(); + ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, staticCidrName, data); + StaticCidrResource 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 + StaticCidrData 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_StaticCidrsGet() + { + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/StaticCidrs_Get.json + // this example is just showing the usage of "StaticCidrs_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 IpamPoolResource created on azure + // for more information of creating IpamPoolResource, please refer to the document of IpamPoolResource + string subscriptionId = "11111111-1111-1111-1111-111111111111"; + string resourceGroupName = "rg1"; + string networkManagerName = "TestNetworkManager"; + string poolName = "TestPool"; + ResourceIdentifier ipamPoolResourceId = IpamPoolResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, networkManagerName, poolName); + IpamPoolResource ipamPool = client.GetIpamPoolResource(ipamPoolResourceId); + + // get the collection of this StaticCidrResource + StaticCidrCollection collection = ipamPool.GetStaticCidrs(); + + // invoke the operation + string staticCidrName = "TestStaticCidr"; + StaticCidrResource result = await collection.GetAsync(staticCidrName); + + // 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 + StaticCidrData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + [Test] + [Ignore("Only validating compilation of examples")] + public async Task Exists_StaticCidrsGet() + { + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/StaticCidrs_Get.json + // this example is just showing the usage of "StaticCidrs_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 IpamPoolResource created on azure + // for more information of creating IpamPoolResource, please refer to the document of IpamPoolResource + string subscriptionId = "11111111-1111-1111-1111-111111111111"; + string resourceGroupName = "rg1"; + string networkManagerName = "TestNetworkManager"; + string poolName = "TestPool"; + ResourceIdentifier ipamPoolResourceId = IpamPoolResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, networkManagerName, poolName); + IpamPoolResource ipamPool = client.GetIpamPoolResource(ipamPoolResourceId); + + // get the collection of this StaticCidrResource + StaticCidrCollection collection = ipamPool.GetStaticCidrs(); + + // invoke the operation + string staticCidrName = "TestStaticCidr"; + bool result = await collection.ExistsAsync(staticCidrName); + + Console.WriteLine($"Succeeded: {result}"); + } + + [Test] + [Ignore("Only validating compilation of examples")] + public async Task GetIfExists_StaticCidrsGet() + { + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/StaticCidrs_Get.json + // this example is just showing the usage of "StaticCidrs_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 IpamPoolResource created on azure + // for more information of creating IpamPoolResource, please refer to the document of IpamPoolResource + string subscriptionId = "11111111-1111-1111-1111-111111111111"; + string resourceGroupName = "rg1"; + string networkManagerName = "TestNetworkManager"; + string poolName = "TestPool"; + ResourceIdentifier ipamPoolResourceId = IpamPoolResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, networkManagerName, poolName); + IpamPoolResource ipamPool = client.GetIpamPoolResource(ipamPoolResourceId); + + // get the collection of this StaticCidrResource + StaticCidrCollection collection = ipamPool.GetStaticCidrs(); + + // invoke the operation + string staticCidrName = "TestStaticCidr"; + NullableResponse response = await collection.GetIfExistsAsync(staticCidrName); + StaticCidrResource 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 + StaticCidrData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + } + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_StaticCidrResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_StaticCidrResource.cs new file mode 100644 index 000000000000..d11489a62ddd --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_StaticCidrResource.cs @@ -0,0 +1,112 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Threading.Tasks; +using Azure.Core; +using Azure.Identity; +using NUnit.Framework; + +namespace Azure.ResourceManager.Network.Samples +{ + public partial class Sample_StaticCidrResource + { + [Test] + [Ignore("Only validating compilation of examples")] + public async Task Update_StaticCidrsCreate() + { + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/StaticCidrs_Create.json + // this example is just showing the usage of "StaticCidrs_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 StaticCidrResource created on azure + // for more information of creating StaticCidrResource, please refer to the document of StaticCidrResource + string subscriptionId = "11111111-1111-1111-1111-111111111111"; + string resourceGroupName = "rg1"; + string networkManagerName = "TestNetworkManager"; + string poolName = "TestPool"; + string staticCidrName = "TestStaticCidr"; + ResourceIdentifier staticCidrResourceId = StaticCidrResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, networkManagerName, poolName, staticCidrName); + StaticCidrResource staticCidr = client.GetStaticCidrResource(staticCidrResourceId); + + // invoke the operation + StaticCidrData data = new StaticCidrData(); + ArmOperation lro = await staticCidr.UpdateAsync(WaitUntil.Completed, data); + StaticCidrResource 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 + StaticCidrData 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_StaticCidrsGet() + { + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/StaticCidrs_Get.json + // this example is just showing the usage of "StaticCidrs_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 StaticCidrResource created on azure + // for more information of creating StaticCidrResource, please refer to the document of StaticCidrResource + string subscriptionId = "11111111-1111-1111-1111-111111111111"; + string resourceGroupName = "rg1"; + string networkManagerName = "TestNetworkManager"; + string poolName = "TestPool"; + string staticCidrName = "TestStaticCidr"; + ResourceIdentifier staticCidrResourceId = StaticCidrResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, networkManagerName, poolName, staticCidrName); + StaticCidrResource staticCidr = client.GetStaticCidrResource(staticCidrResourceId); + + // invoke the operation + StaticCidrResource result = await staticCidr.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 + StaticCidrData 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_StaticCidrsDelete() + { + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/StaticCidrs_Delete.json + // this example is just showing the usage of "StaticCidrs_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 StaticCidrResource created on azure + // for more information of creating StaticCidrResource, please refer to the document of StaticCidrResource + string subscriptionId = "11111111-1111-1111-1111-111111111111"; + string resourceGroupName = "rg1"; + string networkManagerName = "TestNetworkManager"; + string poolName = "TestPool"; + string staticCidrName = "TestStaticCidr"; + ResourceIdentifier staticCidrResourceId = StaticCidrResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, networkManagerName, poolName, staticCidrName); + StaticCidrResource staticCidr = client.GetStaticCidrResource(staticCidrResourceId); + + // invoke the operation + await staticCidr.DeleteAsync(WaitUntil.Completed); + + Console.WriteLine("Succeeded"); + } + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_SubnetCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_SubnetCollection.cs index 1578f751b12b..28f33dff39ea 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_SubnetCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_SubnetCollection.cs @@ -20,7 +20,7 @@ public partial class Sample_SubnetCollection [Ignore("Only validating compilation of examples")] public async Task Get_GetSubnet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/SubnetGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/SubnetGet.json // this example is just showing the usage of "Subnets_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -54,7 +54,7 @@ public async Task Get_GetSubnet() [Ignore("Only validating compilation of examples")] public async Task Exists_GetSubnet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/SubnetGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/SubnetGet.json // this example is just showing the usage of "Subnets_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 @@ -84,7 +84,7 @@ public async Task Exists_GetSubnet() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GetSubnet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/SubnetGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/SubnetGet.json // this example is just showing the usage of "Subnets_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -126,7 +126,7 @@ public async Task GetIfExists_GetSubnet() [Ignore("Only validating compilation of examples")] public async Task Get_GetSubnetWithADelegation() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/SubnetGetWithDelegation.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/SubnetGetWithDelegation.json // this example is just showing the usage of "Subnets_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 @@ -160,7 +160,7 @@ public async Task Get_GetSubnetWithADelegation() [Ignore("Only validating compilation of examples")] public async Task Exists_GetSubnetWithADelegation() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/SubnetGetWithDelegation.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/SubnetGetWithDelegation.json // this example is just showing the usage of "Subnets_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 @@ -190,7 +190,7 @@ public async Task Exists_GetSubnetWithADelegation() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GetSubnetWithADelegation() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/SubnetGetWithDelegation.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/SubnetGetWithDelegation.json // this example is just showing the usage of "Subnets_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 @@ -232,7 +232,7 @@ public async Task GetIfExists_GetSubnetWithADelegation() [Ignore("Only validating compilation of examples")] public async Task Get_GetSubnetWithSharingScope() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/SubnetGetWithSharingScope.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/SubnetGetWithSharingScope.json // this example is just showing the usage of "Subnets_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 @@ -266,7 +266,7 @@ public async Task Get_GetSubnetWithSharingScope() [Ignore("Only validating compilation of examples")] public async Task Exists_GetSubnetWithSharingScope() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/SubnetGetWithSharingScope.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/SubnetGetWithSharingScope.json // this example is just showing the usage of "Subnets_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 @@ -296,7 +296,7 @@ public async Task Exists_GetSubnetWithSharingScope() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GetSubnetWithSharingScope() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/SubnetGetWithSharingScope.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/SubnetGetWithSharingScope.json // this example is just showing the usage of "Subnets_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 @@ -338,7 +338,7 @@ public async Task GetIfExists_GetSubnetWithSharingScope() [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_CreateSubnet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/SubnetCreate.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/SubnetCreate.json // this example is just showing the usage of "Subnets_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 @@ -377,7 +377,7 @@ public async Task CreateOrUpdate_CreateSubnet() [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_CreateSubnetWithADelegation() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/SubnetCreateWithDelegation.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/SubnetCreateWithDelegation.json // this example is just showing the usage of "Subnets_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 @@ -416,7 +416,7 @@ public async Task CreateOrUpdate_CreateSubnetWithADelegation() [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_CreateSubnetWithServiceEndpoints() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/SubnetCreateServiceEndpoint.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/SubnetCreateServiceEndpoint.json // this example is just showing the usage of "Subnets_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 @@ -462,7 +462,7 @@ public async Task CreateOrUpdate_CreateSubnetWithServiceEndpoints() [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_CreateSubnetWithServiceEndpointsWithNetworkIdentifier() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/SubnetCreateServiceEndpointNetworkIdentifier.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/SubnetCreateServiceEndpointNetworkIdentifier.json // this example is just showing the usage of "Subnets_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 @@ -509,7 +509,7 @@ public async Task CreateOrUpdate_CreateSubnetWithServiceEndpointsWithNetworkIden [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_CreateSubnetWithSharingScope() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/SubnetCreateWithSharingScope.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/SubnetCreateWithSharingScope.json // this example is just showing the usage of "Subnets_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 @@ -548,7 +548,7 @@ public async Task CreateOrUpdate_CreateSubnetWithSharingScope() [Ignore("Only validating compilation of examples")] public async Task GetAll_ListSubnets() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/SubnetList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/SubnetList.json // this example is just showing the usage of "Subnets_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_SubnetResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_SubnetResource.cs index f8a0b4ddbe60..24ac1b1a90c9 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_SubnetResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_SubnetResource.cs @@ -20,7 +20,7 @@ public partial class Sample_SubnetResource [Ignore("Only validating compilation of examples")] public async Task Delete_DeleteSubnet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/SubnetDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/SubnetDelete.json // this example is just showing the usage of "Subnets_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 @@ -47,7 +47,7 @@ public async Task Delete_DeleteSubnet() [Ignore("Only validating compilation of examples")] public async Task Get_GetSubnet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/SubnetGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/SubnetGet.json // this example is just showing the usage of "Subnets_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 @@ -78,7 +78,7 @@ public async Task Get_GetSubnet() [Ignore("Only validating compilation of examples")] public async Task Get_GetSubnetWithADelegation() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/SubnetGetWithDelegation.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/SubnetGetWithDelegation.json // this example is just showing the usage of "Subnets_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 @@ -109,7 +109,7 @@ public async Task Get_GetSubnetWithADelegation() [Ignore("Only validating compilation of examples")] public async Task Get_GetSubnetWithSharingScope() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/SubnetGetWithSharingScope.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/SubnetGetWithSharingScope.json // this example is just showing the usage of "Subnets_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -140,7 +140,7 @@ public async Task Get_GetSubnetWithSharingScope() [Ignore("Only validating compilation of examples")] public async Task Update_CreateSubnet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/SubnetCreate.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/SubnetCreate.json // this example is just showing the usage of "Subnets_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -176,7 +176,7 @@ public async Task Update_CreateSubnet() [Ignore("Only validating compilation of examples")] public async Task Update_CreateSubnetWithADelegation() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/SubnetCreateWithDelegation.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/SubnetCreateWithDelegation.json // this example is just showing the usage of "Subnets_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 @@ -212,7 +212,7 @@ public async Task Update_CreateSubnetWithADelegation() [Ignore("Only validating compilation of examples")] public async Task Update_CreateSubnetWithServiceEndpoints() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/SubnetCreateServiceEndpoint.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/SubnetCreateServiceEndpoint.json // this example is just showing the usage of "Subnets_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 @@ -255,7 +255,7 @@ public async Task Update_CreateSubnetWithServiceEndpoints() [Ignore("Only validating compilation of examples")] public async Task Update_CreateSubnetWithServiceEndpointsWithNetworkIdentifier() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/SubnetCreateServiceEndpointNetworkIdentifier.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/SubnetCreateServiceEndpointNetworkIdentifier.json // this example is just showing the usage of "Subnets_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 @@ -299,7 +299,7 @@ public async Task Update_CreateSubnetWithServiceEndpointsWithNetworkIdentifier() [Ignore("Only validating compilation of examples")] public async Task Update_CreateSubnetWithSharingScope() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/SubnetCreateWithSharingScope.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/SubnetCreateWithSharingScope.json // this example is just showing the usage of "Subnets_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 @@ -335,7 +335,7 @@ public async Task Update_CreateSubnetWithSharingScope() [Ignore("Only validating compilation of examples")] public async Task PrepareNetworkPolicies_PrepareNetworkPolicies() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/SubnetPrepareNetworkPolicies.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/SubnetPrepareNetworkPolicies.json // this example is just showing the usage of "Subnets_PrepareNetworkPolicies" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -366,7 +366,7 @@ public async Task PrepareNetworkPolicies_PrepareNetworkPolicies() [Ignore("Only validating compilation of examples")] public async Task UnprepareNetworkPolicies_UnprepareNetworkPolicies() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/SubnetUnprepareNetworkPolicies.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/SubnetUnprepareNetworkPolicies.json // this example is just showing the usage of "Subnets_UnprepareNetworkPolicies" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -397,7 +397,7 @@ public async Task UnprepareNetworkPolicies_UnprepareNetworkPolicies() [Ignore("Only validating compilation of examples")] public async Task GetResourceNavigationLinks_GetResourceNavigationLinks() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualNetworkGetResourceNavigationLinks.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VirtualNetworkGetResourceNavigationLinks.json // this example is just showing the usage of "ResourceNavigationLinks_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 @@ -427,7 +427,7 @@ public async Task GetResourceNavigationLinks_GetResourceNavigationLinks() [Ignore("Only validating compilation of examples")] public async Task GetServiceAssociationLinks_GetServiceAssociationLinks() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualNetworkGetServiceAssociationLinks.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VirtualNetworkGetServiceAssociationLinks.json // this example is just showing the usage of "ServiceAssociationLinks_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_SubscriptionNetworkManagerConnectionCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_SubscriptionNetworkManagerConnectionCollection.cs index f7a763fc070d..ed8aeb382879 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_SubscriptionNetworkManagerConnectionCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_SubscriptionNetworkManagerConnectionCollection.cs @@ -20,7 +20,7 @@ public partial class Sample_SubscriptionNetworkManagerConnectionCollection [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_CreateOrUpdateSubscriptionNetworkManagerConnection() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerConnectionSubscriptionPut.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkManagerConnectionSubscriptionPut.json // this example is just showing the usage of "SubscriptionNetworkManagerConnections_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 @@ -57,7 +57,7 @@ public async Task CreateOrUpdate_CreateOrUpdateSubscriptionNetworkManagerConnect [Ignore("Only validating compilation of examples")] public async Task Get_GetSubscriptionNetworkManagerConnection() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerConnectionSubscriptionGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkManagerConnectionSubscriptionGet.json // this example is just showing the usage of "SubscriptionNetworkManagerConnections_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -89,7 +89,7 @@ public async Task Get_GetSubscriptionNetworkManagerConnection() [Ignore("Only validating compilation of examples")] public async Task Exists_GetSubscriptionNetworkManagerConnection() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerConnectionSubscriptionGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkManagerConnectionSubscriptionGet.json // this example is just showing the usage of "SubscriptionNetworkManagerConnections_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -117,7 +117,7 @@ public async Task Exists_GetSubscriptionNetworkManagerConnection() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GetSubscriptionNetworkManagerConnection() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerConnectionSubscriptionGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkManagerConnectionSubscriptionGet.json // this example is just showing the usage of "SubscriptionNetworkManagerConnections_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 @@ -157,7 +157,7 @@ public async Task GetIfExists_GetSubscriptionNetworkManagerConnection() [Ignore("Only validating compilation of examples")] public async Task GetAll_ListSubscriptionNetworkManagerConnection() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerConnectionSubscriptionList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkManagerConnectionSubscriptionList.json // this example is just showing the usage of "SubscriptionNetworkManagerConnections_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_SubscriptionNetworkManagerConnectionResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_SubscriptionNetworkManagerConnectionResource.cs index d9e885396a05..b773214fa697 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_SubscriptionNetworkManagerConnectionResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_SubscriptionNetworkManagerConnectionResource.cs @@ -19,7 +19,7 @@ public partial class Sample_SubscriptionNetworkManagerConnectionResource [Ignore("Only validating compilation of examples")] public async Task Update_CreateOrUpdateSubscriptionNetworkManagerConnection() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerConnectionSubscriptionPut.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkManagerConnectionSubscriptionPut.json // this example is just showing the usage of "SubscriptionNetworkManagerConnections_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 @@ -53,7 +53,7 @@ public async Task Update_CreateOrUpdateSubscriptionNetworkManagerConnection() [Ignore("Only validating compilation of examples")] public async Task Get_GetSubscriptionNetworkManagerConnection() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerConnectionSubscriptionGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkManagerConnectionSubscriptionGet.json // this example is just showing the usage of "SubscriptionNetworkManagerConnections_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -82,7 +82,7 @@ public async Task Get_GetSubscriptionNetworkManagerConnection() [Ignore("Only validating compilation of examples")] public async Task Delete_DeleteSubscriptionNetworkManagerConnection() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerConnectionSubscriptionDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkManagerConnectionSubscriptionDelete.json // this example is just showing the usage of "SubscriptionNetworkManagerConnections_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_SubscriptionResourceExtensions.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_SubscriptionResourceExtensions.cs index f8f02644b4ed..6d79ab818c46 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_SubscriptionResourceExtensions.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_SubscriptionResourceExtensions.cs @@ -21,7 +21,7 @@ public partial class Sample_SubscriptionResourceExtensions [Ignore("Only validating compilation of examples")] public async Task GetAvailableDelegations_GetAvailableDelegations() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/AvailableDelegationsSubscriptionGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/AvailableDelegationsSubscriptionGet.json // this example is just showing the usage of "AvailableDelegations_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 @@ -49,7 +49,7 @@ public async Task GetAvailableDelegations_GetAvailableDelegations() [Ignore("Only validating compilation of examples")] public async Task GetAvailableServiceAliases_GetAvailableServiceAliases() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/AvailableServiceAliasesList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/AvailableServiceAliasesList.json // this example is just showing the usage of "AvailableServiceAliases_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 @@ -77,7 +77,7 @@ public async Task GetAvailableServiceAliases_GetAvailableServiceAliases() [Ignore("Only validating compilation of examples")] public async Task GetAzureFirewallFqdnTags_ListAllAzureFirewallFQDNTagsForAGivenSubscription() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/AzureFirewallFqdnTagsListBySubscription.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/AzureFirewallFqdnTagsListBySubscription.json // this example is just showing the usage of "AzureFirewallFqdnTags_ListAll" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -104,7 +104,7 @@ public async Task GetAzureFirewallFqdnTags_ListAllAzureFirewallFQDNTagsForAGiven [Ignore("Only validating compilation of examples")] public async Task GetAvailableEndpointServices_EndpointServicesList() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/EndpointServicesList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/EndpointServicesList.json // this example is just showing the usage of "AvailableEndpointServices_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 @@ -132,7 +132,7 @@ public async Task GetAvailableEndpointServices_EndpointServicesList() [Ignore("Only validating compilation of examples")] public async Task GetExpressRouteServiceProviders_ListExpressRouteProviders() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ExpressRouteProviderList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/ExpressRouteProviderList.json // this example is just showing the usage of "ExpressRouteServiceProviders_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 @@ -159,7 +159,7 @@ public async Task GetExpressRouteServiceProviders_ListExpressRouteProviders() [Ignore("Only validating compilation of examples")] public async Task GetAvailablePrivateEndpointTypes_GetAvailablePrivateEndpointTypes() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/AvailablePrivateEndpointTypesGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/AvailablePrivateEndpointTypesGet.json // this example is just showing the usage of "AvailablePrivateEndpointTypes_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 @@ -187,7 +187,7 @@ public async Task GetAvailablePrivateEndpointTypes_GetAvailablePrivateEndpointTy [Ignore("Only validating compilation of examples")] public async Task CheckPrivateLinkServiceVisibilityPrivateLinkService_CheckPrivateLinkServiceVisibility() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/CheckPrivateLinkServiceVisibility.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/CheckPrivateLinkServiceVisibility.json // this example is just showing the usage of "PrivateLinkServices_CheckPrivateLinkServiceVisibility" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -217,7 +217,7 @@ public async Task CheckPrivateLinkServiceVisibilityPrivateLinkService_CheckPriva [Ignore("Only validating compilation of examples")] public async Task GetAutoApprovedPrivateLinkServicesPrivateLinkServices_GetListOfPrivateLinkServiceIdThatCanBeLinkedToAPrivateEndPointWithAutoApproved() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/AutoApprovedPrivateLinkServicesGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/AutoApprovedPrivateLinkServicesGet.json // this example is just showing the usage of "PrivateLinkServices_ListAutoApprovedPrivateLinkServices" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -245,7 +245,7 @@ public async Task GetAutoApprovedPrivateLinkServicesPrivateLinkServices_GetListO [Ignore("Only validating compilation of examples")] public async Task GetBgpServiceCommunities_ServiceCommunityList() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ServiceCommunityList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/ServiceCommunityList.json // this example is just showing the usage of "BgpServiceCommunities_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 @@ -272,7 +272,7 @@ public async Task GetBgpServiceCommunities_ServiceCommunityList() [Ignore("Only validating compilation of examples")] public async Task GetServiceTag_GetListOfServiceTags() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ServiceTagsList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/ServiceTagsList.json // this example is just showing the usage of "ServiceTags_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 @@ -297,7 +297,7 @@ public async Task GetServiceTag_GetListOfServiceTags() [Ignore("Only validating compilation of examples")] public async Task GetAllServiceTagInformation_GetListOfServiceTags() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ServiceTagInformationListResult.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/ServiceTagInformationListResult.json // this example is just showing the usage of "ServiceTagInformation_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 @@ -325,7 +325,7 @@ public async Task GetAllServiceTagInformation_GetListOfServiceTags() [Ignore("Only validating compilation of examples")] public async Task GetAllServiceTagInformation_GetListOfServiceTagsWithNoAddressPrefixes() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ServiceTagInformationListResultWithNoAddressPrefixes.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/ServiceTagInformationListResultWithNoAddressPrefixes.json // this example is just showing the usage of "ServiceTagInformation_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 @@ -354,7 +354,7 @@ public async Task GetAllServiceTagInformation_GetListOfServiceTagsWithNoAddressP [Ignore("Only validating compilation of examples")] public async Task GetAllServiceTagInformation_GetListOfServiceTagsWithTagName() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ServiceTagInformationListResultWithTagname.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/ServiceTagInformationListResultWithTagname.json // this example is just showing the usage of "ServiceTagInformation_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 @@ -383,7 +383,7 @@ public async Task GetAllServiceTagInformation_GetListOfServiceTagsWithTagName() [Ignore("Only validating compilation of examples")] public async Task GetUsages_ListUsages() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/UsageList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/UsageList.json // this example is just showing the usage of "Usages_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 @@ -411,7 +411,7 @@ public async Task GetUsages_ListUsages() [Ignore("Only validating compilation of examples")] public async Task GetUsages_ListUsagesSpacedLocation() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/UsageListSpacedLocation.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/UsageListSpacedLocation.json // this example is just showing the usage of "Usages_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VerifierWorkspaceCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VerifierWorkspaceCollection.cs new file mode 100644 index 000000000000..d20bb80fef7c --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VerifierWorkspaceCollection.cs @@ -0,0 +1,203 @@ +// 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.Network.Models; +using NUnit.Framework; + +namespace Azure.ResourceManager.Network.Samples +{ + public partial class Sample_VerifierWorkspaceCollection + { + [Test] + [Ignore("Only validating compilation of examples")] + public async Task GetAll_VerifierWorkspaceList() + { + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VerifierWorkspaceList.json + // this example is just showing the usage of "VerifierWorkspaces_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 NetworkManagerResource created on azure + // for more information of creating NetworkManagerResource, please refer to the document of NetworkManagerResource + string subscriptionId = "00000000-0000-0000-0000-000000000000"; + string resourceGroupName = "rg1"; + string networkManagerName = "testNetworkManager"; + ResourceIdentifier networkManagerResourceId = NetworkManagerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, networkManagerName); + NetworkManagerResource networkManager = client.GetNetworkManagerResource(networkManagerResourceId); + + // get the collection of this VerifierWorkspaceResource + VerifierWorkspaceCollection collection = networkManager.GetVerifierWorkspaces(); + + // invoke the operation and iterate over the result + await foreach (VerifierWorkspaceResource item in collection.GetAllAsync()) + { + // the variable item is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + VerifierWorkspaceData 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 Get_VerifierWorkspaceGet() + { + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VerifierWorkspaceGet.json + // this example is just showing the usage of "VerifierWorkspaces_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 NetworkManagerResource created on azure + // for more information of creating NetworkManagerResource, please refer to the document of NetworkManagerResource + string subscriptionId = "00000000-0000-0000-0000-000000000000"; + string resourceGroupName = "rg1"; + string networkManagerName = "testNetworkManager"; + ResourceIdentifier networkManagerResourceId = NetworkManagerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, networkManagerName); + NetworkManagerResource networkManager = client.GetNetworkManagerResource(networkManagerResourceId); + + // get the collection of this VerifierWorkspaceResource + VerifierWorkspaceCollection collection = networkManager.GetVerifierWorkspaces(); + + // invoke the operation + string workspaceName = "testWorkspace"; + VerifierWorkspaceResource result = await collection.GetAsync(workspaceName); + + // 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 + VerifierWorkspaceData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + [Test] + [Ignore("Only validating compilation of examples")] + public async Task Exists_VerifierWorkspaceGet() + { + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VerifierWorkspaceGet.json + // this example is just showing the usage of "VerifierWorkspaces_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 NetworkManagerResource created on azure + // for more information of creating NetworkManagerResource, please refer to the document of NetworkManagerResource + string subscriptionId = "00000000-0000-0000-0000-000000000000"; + string resourceGroupName = "rg1"; + string networkManagerName = "testNetworkManager"; + ResourceIdentifier networkManagerResourceId = NetworkManagerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, networkManagerName); + NetworkManagerResource networkManager = client.GetNetworkManagerResource(networkManagerResourceId); + + // get the collection of this VerifierWorkspaceResource + VerifierWorkspaceCollection collection = networkManager.GetVerifierWorkspaces(); + + // invoke the operation + string workspaceName = "testWorkspace"; + bool result = await collection.ExistsAsync(workspaceName); + + Console.WriteLine($"Succeeded: {result}"); + } + + [Test] + [Ignore("Only validating compilation of examples")] + public async Task GetIfExists_VerifierWorkspaceGet() + { + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VerifierWorkspaceGet.json + // this example is just showing the usage of "VerifierWorkspaces_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 NetworkManagerResource created on azure + // for more information of creating NetworkManagerResource, please refer to the document of NetworkManagerResource + string subscriptionId = "00000000-0000-0000-0000-000000000000"; + string resourceGroupName = "rg1"; + string networkManagerName = "testNetworkManager"; + ResourceIdentifier networkManagerResourceId = NetworkManagerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, networkManagerName); + NetworkManagerResource networkManager = client.GetNetworkManagerResource(networkManagerResourceId); + + // get the collection of this VerifierWorkspaceResource + VerifierWorkspaceCollection collection = networkManager.GetVerifierWorkspaces(); + + // invoke the operation + string workspaceName = "testWorkspace"; + NullableResponse response = await collection.GetIfExistsAsync(workspaceName); + VerifierWorkspaceResource 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 + VerifierWorkspaceData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + } + + [Test] + [Ignore("Only validating compilation of examples")] + public async Task CreateOrUpdate_VerifierWorkspaceCreate() + { + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VerifierWorkspacePut.json + // this example is just showing the usage of "VerifierWorkspaces_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 NetworkManagerResource created on azure + // for more information of creating NetworkManagerResource, please refer to the document of NetworkManagerResource + string subscriptionId = "00000000-0000-0000-0000-000000000000"; + string resourceGroupName = "rg1"; + string networkManagerName = "testNetworkManager"; + ResourceIdentifier networkManagerResourceId = NetworkManagerResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, networkManagerName); + NetworkManagerResource networkManager = client.GetNetworkManagerResource(networkManagerResourceId); + + // get the collection of this VerifierWorkspaceResource + VerifierWorkspaceCollection collection = networkManager.GetVerifierWorkspaces(); + + // invoke the operation + string workspaceName = "testWorkspace"; + VerifierWorkspaceData data = new VerifierWorkspaceData(new AzureLocation("eastus")) + { + Properties = new VerifierWorkspaceProperties() + { + Description = "A sample workspace", + }, + }; + ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, workspaceName, data); + VerifierWorkspaceResource 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 + VerifierWorkspaceData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VerifierWorkspaceResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VerifierWorkspaceResource.cs new file mode 100644 index 000000000000..f91af692caf3 --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VerifierWorkspaceResource.cs @@ -0,0 +1,109 @@ +// 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.Network.Models; +using NUnit.Framework; + +namespace Azure.ResourceManager.Network.Samples +{ + public partial class Sample_VerifierWorkspaceResource + { + [Test] + [Ignore("Only validating compilation of examples")] + public async Task Get_VerifierWorkspaceGet() + { + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VerifierWorkspaceGet.json + // this example is just showing the usage of "VerifierWorkspaces_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 VerifierWorkspaceResource created on azure + // for more information of creating VerifierWorkspaceResource, please refer to the document of VerifierWorkspaceResource + string subscriptionId = "00000000-0000-0000-0000-000000000000"; + string resourceGroupName = "rg1"; + string networkManagerName = "testNetworkManager"; + string workspaceName = "testWorkspace"; + ResourceIdentifier verifierWorkspaceResourceId = VerifierWorkspaceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, networkManagerName, workspaceName); + VerifierWorkspaceResource verifierWorkspace = client.GetVerifierWorkspaceResource(verifierWorkspaceResourceId); + + // invoke the operation + VerifierWorkspaceResource result = await verifierWorkspace.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 + VerifierWorkspaceData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + [Test] + [Ignore("Only validating compilation of examples")] + public async Task Update_VerifierWorkspacePatch() + { + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VerifierWorkspacePatch.json + // this example is just showing the usage of "VerifierWorkspaces_Update" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this VerifierWorkspaceResource created on azure + // for more information of creating VerifierWorkspaceResource, please refer to the document of VerifierWorkspaceResource + string subscriptionId = "00000000-0000-0000-0000-000000000000"; + string resourceGroupName = "rg1"; + string networkManagerName = "testNetworkManager"; + string workspaceName = "testWorkspace"; + ResourceIdentifier verifierWorkspaceResourceId = VerifierWorkspaceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, networkManagerName, workspaceName); + VerifierWorkspaceResource verifierWorkspace = client.GetVerifierWorkspaceResource(verifierWorkspaceResourceId); + + // invoke the operation + VerifierWorkspacePatch patch = new VerifierWorkspacePatch(); + VerifierWorkspaceResource result = await verifierWorkspace.UpdateAsync(patch); + + // the variable result is a resource, you could call other operations on this instance as well + // but just for demo, we get its data from this resource instance + VerifierWorkspaceData 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_VerifierWorkspaceDelete() + { + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VerifierWorkspaceDelete.json + // this example is just showing the usage of "VerifierWorkspaces_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 VerifierWorkspaceResource created on azure + // for more information of creating VerifierWorkspaceResource, please refer to the document of VerifierWorkspaceResource + string subscriptionId = "00000000-0000-0000-0000-000000000000"; + string resourceGroupName = "rg1"; + string networkManagerName = "testNetworkManager"; + string workspaceName = "testWorkspace"; + ResourceIdentifier verifierWorkspaceResourceId = VerifierWorkspaceResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, networkManagerName, workspaceName); + VerifierWorkspaceResource verifierWorkspace = client.GetVerifierWorkspaceResource(verifierWorkspaceResourceId); + + // invoke the operation + await verifierWorkspace.DeleteAsync(WaitUntil.Completed); + + Console.WriteLine("Succeeded"); + } + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualApplianceSiteCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualApplianceSiteCollection.cs index 212358faf1fe..003792d0754e 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualApplianceSiteCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualApplianceSiteCollection.cs @@ -20,7 +20,7 @@ public partial class Sample_VirtualApplianceSiteCollection [Ignore("Only validating compilation of examples")] public async Task Get_GetNetworkVirtualApplianceSite() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkVirtualApplianceSiteGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkVirtualApplianceSiteGet.json // this example is just showing the usage of "VirtualApplianceSites_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -54,7 +54,7 @@ public async Task Get_GetNetworkVirtualApplianceSite() [Ignore("Only validating compilation of examples")] public async Task Exists_GetNetworkVirtualApplianceSite() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkVirtualApplianceSiteGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkVirtualApplianceSiteGet.json // this example is just showing the usage of "VirtualApplianceSites_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 @@ -84,7 +84,7 @@ public async Task Exists_GetNetworkVirtualApplianceSite() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GetNetworkVirtualApplianceSite() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkVirtualApplianceSiteGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkVirtualApplianceSiteGet.json // this example is just showing the usage of "VirtualApplianceSites_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -126,7 +126,7 @@ public async Task GetIfExists_GetNetworkVirtualApplianceSite() [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_CreateNetworkVirtualApplianceSite() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkVirtualApplianceSitePut.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkVirtualApplianceSitePut.json // this example is just showing the usage of "VirtualApplianceSites_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -171,7 +171,7 @@ public async Task CreateOrUpdate_CreateNetworkVirtualApplianceSite() [Ignore("Only validating compilation of examples")] public async Task GetAll_ListAllNetworkVirtualApplianceSitesForAGivenNetworkVirtualAppliance() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkVirtualApplianceSiteList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkVirtualApplianceSiteList.json // this example is just showing the usage of "VirtualApplianceSites_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualApplianceSiteResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualApplianceSiteResource.cs index 332586fcfd72..a526a040fdfa 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualApplianceSiteResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualApplianceSiteResource.cs @@ -20,7 +20,7 @@ public partial class Sample_VirtualApplianceSiteResource [Ignore("Only validating compilation of examples")] public async Task Delete_DeleteNetworkVirtualApplianceSite() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkVirtualApplianceSiteDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkVirtualApplianceSiteDelete.json // this example is just showing the usage of "VirtualApplianceSites_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 @@ -47,7 +47,7 @@ public async Task Delete_DeleteNetworkVirtualApplianceSite() [Ignore("Only validating compilation of examples")] public async Task Get_GetNetworkVirtualApplianceSite() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkVirtualApplianceSiteGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkVirtualApplianceSiteGet.json // this example is just showing the usage of "VirtualApplianceSites_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 @@ -78,7 +78,7 @@ public async Task Get_GetNetworkVirtualApplianceSite() [Ignore("Only validating compilation of examples")] public async Task Update_CreateNetworkVirtualApplianceSite() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkVirtualApplianceSitePut.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkVirtualApplianceSitePut.json // this example is just showing the usage of "VirtualApplianceSites_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualHubCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualHubCollection.cs index 53f64b4ebcf1..4e468c383204 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualHubCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualHubCollection.cs @@ -20,7 +20,7 @@ public partial class Sample_VirtualHubCollection [Ignore("Only validating compilation of examples")] public async Task Get_VirtualHubGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualHubGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VirtualHubGet.json // this example is just showing the usage of "VirtualHubs_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -53,7 +53,7 @@ public async Task Get_VirtualHubGet() [Ignore("Only validating compilation of examples")] public async Task Exists_VirtualHubGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualHubGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VirtualHubGet.json // this example is just showing the usage of "VirtualHubs_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -82,7 +82,7 @@ public async Task Exists_VirtualHubGet() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_VirtualHubGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualHubGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VirtualHubGet.json // this example is just showing the usage of "VirtualHubs_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 @@ -123,7 +123,7 @@ public async Task GetIfExists_VirtualHubGet() [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_VirtualHubPut() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualHubPut.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VirtualHubPut.json // this example is just showing the usage of "VirtualHubs_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 @@ -168,7 +168,7 @@ public async Task CreateOrUpdate_VirtualHubPut() [Ignore("Only validating compilation of examples")] public async Task GetAll_VirtualHubListByResourceGroup() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualHubListByResourceGroup.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VirtualHubListByResourceGroup.json // this example is just showing the usage of "VirtualHubs_ListByResourceGroup" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualHubResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualHubResource.cs index e55ac52d7105..e6e2f3b36222 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualHubResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualHubResource.cs @@ -21,7 +21,7 @@ public partial class Sample_VirtualHubResource [Ignore("Only validating compilation of examples")] public async Task Get_VirtualHubGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualHubGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VirtualHubGet.json // this example is just showing the usage of "VirtualHubs_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 @@ -51,7 +51,7 @@ public async Task Get_VirtualHubGet() [Ignore("Only validating compilation of examples")] public async Task Update_VirtualHubUpdate() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualHubUpdateTags.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VirtualHubUpdateTags.json // this example is just showing the usage of "VirtualHubs_UpdateTags" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -89,7 +89,7 @@ public async Task Update_VirtualHubUpdate() [Ignore("Only validating compilation of examples")] public async Task Delete_VirtualHubDelete() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualHubDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VirtualHubDelete.json // this example is just showing the usage of "VirtualHubs_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 @@ -115,7 +115,7 @@ public async Task Delete_VirtualHubDelete() [Ignore("Only validating compilation of examples")] public async Task GetVirtualHubs_VirtualHubList() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualHubList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VirtualHubList.json // this example is just showing the usage of "VirtualHubs_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 @@ -146,7 +146,7 @@ public async Task GetVirtualHubs_VirtualHubList() [Ignore("Only validating compilation of examples")] public async Task GetVirtualHubEffectiveRoutes_EffectiveRoutesForAConnectionResource() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/EffectiveRoutesListForConnection.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/EffectiveRoutesListForConnection.json // this example is just showing the usage of "VirtualHubs_GetEffectiveVirtualHubRoutes" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -178,7 +178,7 @@ public async Task GetVirtualHubEffectiveRoutes_EffectiveRoutesForAConnectionReso [Ignore("Only validating compilation of examples")] public async Task GetVirtualHubEffectiveRoutes_EffectiveRoutesForARouteTableResource() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/EffectiveRoutesListForRouteTable.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/EffectiveRoutesListForRouteTable.json // this example is just showing the usage of "VirtualHubs_GetEffectiveVirtualHubRoutes" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -210,7 +210,7 @@ public async Task GetVirtualHubEffectiveRoutes_EffectiveRoutesForARouteTableReso [Ignore("Only validating compilation of examples")] public async Task GetVirtualHubEffectiveRoutes_EffectiveRoutesForTheVirtualHub() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/EffectiveRoutesListForVirtualHub.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/EffectiveRoutesListForVirtualHub.json // this example is just showing the usage of "VirtualHubs_GetEffectiveVirtualHubRoutes" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -238,7 +238,7 @@ public async Task GetVirtualHubEffectiveRoutes_EffectiveRoutesForTheVirtualHub() [Ignore("Only validating compilation of examples")] public async Task GetVirtualHubInboundRoutes_InboundRoutesForTheVirtualHubOnAParticularConnection() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/GetInboundRoutes.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/GetInboundRoutes.json // this example is just showing the usage of "VirtualHubs_GetInboundRoutes" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -270,7 +270,7 @@ public async Task GetVirtualHubInboundRoutes_InboundRoutesForTheVirtualHubOnAPar [Ignore("Only validating compilation of examples")] public async Task GetVirtualHubOutboundRoutes_OutboundRoutesForTheVirtualHubOnAParticularConnection() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/GetOutboundRoutes.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/GetOutboundRoutes.json // this example is just showing the usage of "VirtualHubs_GetOutboundRoutes" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details 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/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualHubRouteTableV2Collection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualHubRouteTableV2Collection.cs index 96176b16d141..04b5129976d5 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualHubRouteTableV2Collection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualHubRouteTableV2Collection.cs @@ -20,7 +20,7 @@ public partial class Sample_VirtualHubRouteTableV2Collection [Ignore("Only validating compilation of examples")] public async Task Get_VirtualHubVirtualHubRouteTableV2Get() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualHubRouteTableV2Get.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VirtualHubRouteTableV2Get.json // this example is just showing the usage of "VirtualHubRouteTableV2s_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -54,7 +54,7 @@ public async Task Get_VirtualHubVirtualHubRouteTableV2Get() [Ignore("Only validating compilation of examples")] public async Task Exists_VirtualHubVirtualHubRouteTableV2Get() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualHubRouteTableV2Get.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VirtualHubRouteTableV2Get.json // this example is just showing the usage of "VirtualHubRouteTableV2s_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 @@ -84,7 +84,7 @@ public async Task Exists_VirtualHubVirtualHubRouteTableV2Get() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_VirtualHubVirtualHubRouteTableV2Get() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualHubRouteTableV2Get.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VirtualHubRouteTableV2Get.json // this example is just showing the usage of "VirtualHubRouteTableV2s_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -126,7 +126,7 @@ public async Task GetIfExists_VirtualHubVirtualHubRouteTableV2Get() [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_VirtualHubRouteTableV2Put() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualHubRouteTableV2Put.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VirtualHubRouteTableV2Put.json // this example is just showing the usage of "VirtualHubRouteTableV2s_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 @@ -196,7 +196,7 @@ public async Task CreateOrUpdate_VirtualHubRouteTableV2Put() [Ignore("Only validating compilation of examples")] public async Task GetAll_VirtualHubRouteTableV2List() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualHubRouteTableV2List.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VirtualHubRouteTableV2List.json // this example is just showing the usage of "VirtualHubRouteTableV2s_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualHubRouteTableV2Resource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualHubRouteTableV2Resource.cs index 72f24ae12434..34e2f355b287 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualHubRouteTableV2Resource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualHubRouteTableV2Resource.cs @@ -20,7 +20,7 @@ public partial class Sample_VirtualHubRouteTableV2Resource [Ignore("Only validating compilation of examples")] public async Task Get_VirtualHubVirtualHubRouteTableV2Get() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualHubRouteTableV2Get.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VirtualHubRouteTableV2Get.json // this example is just showing the usage of "VirtualHubRouteTableV2s_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 @@ -51,7 +51,7 @@ public async Task Get_VirtualHubVirtualHubRouteTableV2Get() [Ignore("Only validating compilation of examples")] public async Task Update_VirtualHubRouteTableV2Put() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualHubRouteTableV2Put.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VirtualHubRouteTableV2Put.json // this example is just showing the usage of "VirtualHubRouteTableV2s_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 @@ -118,7 +118,7 @@ public async Task Update_VirtualHubRouteTableV2Put() [Ignore("Only validating compilation of examples")] public async Task Delete_VirtualHubRouteTableV2Delete() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualHubRouteTableV2Delete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VirtualHubRouteTableV2Delete.json // this example is just showing the usage of "VirtualHubRouteTableV2s_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualNetworkCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualNetworkCollection.cs index a58131c9ee59..cc9f1284ba57 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualNetworkCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualNetworkCollection.cs @@ -21,7 +21,7 @@ public partial class Sample_VirtualNetworkCollection [Ignore("Only validating compilation of examples")] public async Task Get_GetVirtualNetwork() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualNetworkGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VirtualNetworkGet.json // this example is just showing the usage of "VirtualNetworks_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -54,7 +54,7 @@ public async Task Get_GetVirtualNetwork() [Ignore("Only validating compilation of examples")] public async Task Exists_GetVirtualNetwork() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualNetworkGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VirtualNetworkGet.json // this example is just showing the usage of "VirtualNetworks_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -83,7 +83,7 @@ public async Task Exists_GetVirtualNetwork() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GetVirtualNetwork() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualNetworkGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VirtualNetworkGet.json // this example is just showing the usage of "VirtualNetworks_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 @@ -124,7 +124,7 @@ public async Task GetIfExists_GetVirtualNetwork() [Ignore("Only validating compilation of examples")] public async Task Get_GetVirtualNetworkWithADelegatedSubnet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualNetworkGetWithSubnetDelegation.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VirtualNetworkGetWithSubnetDelegation.json // this example is just showing the usage of "VirtualNetworks_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 @@ -157,7 +157,7 @@ public async Task Get_GetVirtualNetworkWithADelegatedSubnet() [Ignore("Only validating compilation of examples")] public async Task Exists_GetVirtualNetworkWithADelegatedSubnet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualNetworkGetWithSubnetDelegation.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VirtualNetworkGetWithSubnetDelegation.json // this example is just showing the usage of "VirtualNetworks_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -186,7 +186,7 @@ public async Task Exists_GetVirtualNetworkWithADelegatedSubnet() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GetVirtualNetworkWithADelegatedSubnet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualNetworkGetWithSubnetDelegation.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VirtualNetworkGetWithSubnetDelegation.json // this example is just showing the usage of "VirtualNetworks_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 @@ -227,7 +227,7 @@ public async Task GetIfExists_GetVirtualNetworkWithADelegatedSubnet() [Ignore("Only validating compilation of examples")] public async Task Get_GetVirtualNetworkWithServiceAssociationLinks() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualNetworkGetWithServiceAssociationLink.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VirtualNetworkGetWithServiceAssociationLink.json // this example is just showing the usage of "VirtualNetworks_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 @@ -260,7 +260,7 @@ public async Task Get_GetVirtualNetworkWithServiceAssociationLinks() [Ignore("Only validating compilation of examples")] public async Task Exists_GetVirtualNetworkWithServiceAssociationLinks() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualNetworkGetWithServiceAssociationLink.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VirtualNetworkGetWithServiceAssociationLink.json // this example is just showing the usage of "VirtualNetworks_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 @@ -289,7 +289,7 @@ public async Task Exists_GetVirtualNetworkWithServiceAssociationLinks() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GetVirtualNetworkWithServiceAssociationLinks() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualNetworkGetWithServiceAssociationLink.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VirtualNetworkGetWithServiceAssociationLink.json // this example is just showing the usage of "VirtualNetworks_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 @@ -330,7 +330,7 @@ public async Task GetIfExists_GetVirtualNetworkWithServiceAssociationLinks() [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_CreateVirtualNetwork() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualNetworkCreate.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VirtualNetworkCreate.json // this example is just showing the usage of "VirtualNetworks_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 @@ -352,10 +352,13 @@ public async Task CreateOrUpdate_CreateVirtualNetwork() string virtualNetworkName = "test-vnet"; VirtualNetworkData data = new VirtualNetworkData() { - AddressPrefixes = + AddressSpace = new AddressSpace() + { + AddressPrefixes = { "10.0.0.0/16" }, + }, FlowTimeoutInMinutes = 10, Location = new AzureLocation("eastus"), }; @@ -373,7 +376,7 @@ public async Task CreateOrUpdate_CreateVirtualNetwork() [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_CreateVirtualNetworkWithBgpCommunities() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualNetworkCreateWithBgpCommunities.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VirtualNetworkCreateWithBgpCommunities.json // this example is just showing the usage of "VirtualNetworks_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 @@ -395,10 +398,13 @@ public async Task CreateOrUpdate_CreateVirtualNetworkWithBgpCommunities() string virtualNetworkName = "test-vnet"; VirtualNetworkData data = new VirtualNetworkData() { - AddressPrefixes = + AddressSpace = new AddressSpace() + { + AddressPrefixes = { "10.0.0.0/16" }, + }, Subnets = { new SubnetData() @@ -424,7 +430,7 @@ public async Task CreateOrUpdate_CreateVirtualNetworkWithBgpCommunities() [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_CreateVirtualNetworkWithDelegatedSubnets() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualNetworkCreateSubnetWithDelegation.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VirtualNetworkCreateSubnetWithDelegation.json // this example is just showing the usage of "VirtualNetworks_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 @@ -446,10 +452,13 @@ public async Task CreateOrUpdate_CreateVirtualNetworkWithDelegatedSubnets() string virtualNetworkName = "test-vnet"; VirtualNetworkData data = new VirtualNetworkData() { - AddressPrefixes = + AddressSpace = new AddressSpace() + { + AddressPrefixes = { "10.0.0.0/16" }, + }, Subnets = { new SubnetData() @@ -482,7 +491,7 @@ public async Task CreateOrUpdate_CreateVirtualNetworkWithDelegatedSubnets() [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_CreateVirtualNetworkWithEncryption() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualNetworkCreateWithEncryption.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VirtualNetworkCreateWithEncryption.json // this example is just showing the usage of "VirtualNetworks_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 @@ -504,10 +513,13 @@ public async Task CreateOrUpdate_CreateVirtualNetworkWithEncryption() string virtualNetworkName = "test-vnet"; VirtualNetworkData data = new VirtualNetworkData() { - AddressPrefixes = + AddressSpace = new AddressSpace() + { + AddressPrefixes = { "10.0.0.0/16" }, + }, Subnets = { new SubnetData() @@ -532,11 +544,75 @@ public async Task CreateOrUpdate_CreateVirtualNetworkWithEncryption() Console.WriteLine($"Succeeded on id: {resourceData.Id}"); } + [Test] + [Ignore("Only validating compilation of examples")] + public async Task CreateOrUpdate_CreateVirtualNetworkWithIpamPool() + { + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VirtualNetworkCreateWithIpamPool.json + // this example is just showing the usage of "VirtualNetworks_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line + TokenCredential cred = new DefaultAzureCredential(); + // authenticate your client + ArmClient client = new ArmClient(cred); + + // this example assumes you already have this ResourceGroupResource created on azure + // for more information of creating ResourceGroupResource, please refer to the document of ResourceGroupResource + string subscriptionId = "subid"; + string resourceGroupName = "rg1"; + ResourceIdentifier resourceGroupResourceId = ResourceGroupResource.CreateResourceIdentifier(subscriptionId, resourceGroupName); + ResourceGroupResource resourceGroupResource = client.GetResourceGroupResource(resourceGroupResourceId); + + // get the collection of this VirtualNetworkResource + VirtualNetworkCollection collection = resourceGroupResource.GetVirtualNetworks(); + + // invoke the operation + string virtualNetworkName = "test-vnet"; + VirtualNetworkData data = new VirtualNetworkData() + { + AddressSpace = new AddressSpace() + { + IpamPoolPrefixAllocations = +{ +new IpamPoolPrefixAllocation() +{ +NumberOfIPAddresses = "65536", +Id = new ResourceIdentifier("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkManagers/nm1/ipamPools/testIpamPool"), +} +}, + }, + Subnets = +{ +new SubnetData() +{ +IpamPoolPrefixAllocations = +{ +new IpamPoolPrefixAllocation() +{ +NumberOfIPAddresses = "80", +Id = new ResourceIdentifier("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/networkManagers/nm1/ipamPools/testIpamPool"), +} +}, +Name = "test-1", +} +}, + Location = new AzureLocation("eastus"), + }; + ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, virtualNetworkName, data); + VirtualNetworkResource 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 + VirtualNetworkData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + [Test] [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_CreateVirtualNetworkWithServiceEndpoints() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualNetworkCreateServiceEndpoints.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VirtualNetworkCreateServiceEndpoints.json // this example is just showing the usage of "VirtualNetworks_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 @@ -558,10 +634,13 @@ public async Task CreateOrUpdate_CreateVirtualNetworkWithServiceEndpoints() string virtualNetworkName = "vnet1"; VirtualNetworkData data = new VirtualNetworkData() { - AddressPrefixes = + AddressSpace = new AddressSpace() + { + AddressPrefixes = { "10.0.0.0/16" }, + }, Subnets = { new SubnetData() @@ -593,7 +672,7 @@ public async Task CreateOrUpdate_CreateVirtualNetworkWithServiceEndpoints() [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_CreateVirtualNetworkWithServiceEndpointsAndServiceEndpointPolicy() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualNetworkCreateServiceEndpointPolicy.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VirtualNetworkCreateServiceEndpointPolicy.json // this example is just showing the usage of "VirtualNetworks_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 @@ -615,10 +694,13 @@ public async Task CreateOrUpdate_CreateVirtualNetworkWithServiceEndpointsAndServ string virtualNetworkName = "vnet1"; VirtualNetworkData data = new VirtualNetworkData() { - AddressPrefixes = + AddressSpace = new AddressSpace() + { + AddressPrefixes = { "10.0.0.0/16" }, + }, Subnets = { new SubnetData() @@ -657,7 +739,7 @@ public async Task CreateOrUpdate_CreateVirtualNetworkWithServiceEndpointsAndServ [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_CreateVirtualNetworkWithSubnet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualNetworkCreateSubnet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VirtualNetworkCreateSubnet.json // this example is just showing the usage of "VirtualNetworks_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 @@ -679,10 +761,13 @@ public async Task CreateOrUpdate_CreateVirtualNetworkWithSubnet() string virtualNetworkName = "test-vnet"; VirtualNetworkData data = new VirtualNetworkData() { - AddressPrefixes = + AddressSpace = new AddressSpace() + { + AddressPrefixes = { "10.0.0.0/16" }, + }, Subnets = { new SubnetData() @@ -707,7 +792,7 @@ public async Task CreateOrUpdate_CreateVirtualNetworkWithSubnet() [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_CreateVirtualNetworkWithSubnetContainingAddressPrefixes() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualNetworkCreateSubnetWithAddressPrefixes.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VirtualNetworkCreateSubnetWithAddressPrefixes.json // this example is just showing the usage of "VirtualNetworks_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 @@ -729,10 +814,13 @@ public async Task CreateOrUpdate_CreateVirtualNetworkWithSubnetContainingAddress string virtualNetworkName = "test-vnet"; VirtualNetworkData data = new VirtualNetworkData() { - AddressPrefixes = + AddressSpace = new AddressSpace() + { + AddressPrefixes = { "10.0.0.0/16" }, + }, Subnets = { new SubnetData() @@ -760,7 +848,7 @@ public async Task CreateOrUpdate_CreateVirtualNetworkWithSubnetContainingAddress [Ignore("Only validating compilation of examples")] public async Task GetAll_ListVirtualNetworksInResourceGroup() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualNetworkList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VirtualNetworkList.json // this example is just showing the usage of "VirtualNetworks_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualNetworkGatewayCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualNetworkGatewayCollection.cs index e627cf37a245..d24de3f6ef65 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualNetworkGatewayCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualNetworkGatewayCollection.cs @@ -21,7 +21,7 @@ public partial class Sample_VirtualNetworkGatewayCollection [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_UpdateVirtualNetworkGateway() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualNetworkGatewayUpdate.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VirtualNetworkGatewayUpdate.json // this example is just showing the usage of "VirtualNetworkGateways_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 @@ -90,10 +90,13 @@ public async Task CreateOrUpdate_UpdateVirtualNetworkGateway() BgpPeeringAddress = "10.0.1.30", PeerWeight = 0, }, - CustomRoutesAddressPrefixes = + CustomRoutes = new AddressSpace() + { + AddressPrefixes = { "101.168.0.6/32" }, + }, EnableDnsForwarding = true, NatRules = { @@ -160,7 +163,7 @@ public async Task CreateOrUpdate_UpdateVirtualNetworkGateway() [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_UpdateVirtualNetworkScalableGateway() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualNetworkScalableGatewayUpdate.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VirtualNetworkScalableGatewayUpdate.json // this example is just showing the usage of "VirtualNetworkGateways_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 @@ -269,7 +272,7 @@ public async Task CreateOrUpdate_UpdateVirtualNetworkScalableGateway() [Ignore("Only validating compilation of examples")] public async Task Get_GetVirtualNetworkGateway() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualNetworkGatewayGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VirtualNetworkGatewayGet.json // this example is just showing the usage of "VirtualNetworkGateways_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 @@ -302,7 +305,7 @@ public async Task Get_GetVirtualNetworkGateway() [Ignore("Only validating compilation of examples")] public async Task Exists_GetVirtualNetworkGateway() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualNetworkGatewayGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VirtualNetworkGatewayGet.json // this example is just showing the usage of "VirtualNetworkGateways_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 @@ -331,7 +334,7 @@ public async Task Exists_GetVirtualNetworkGateway() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GetVirtualNetworkGateway() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualNetworkGatewayGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VirtualNetworkGatewayGet.json // this example is just showing the usage of "VirtualNetworkGateways_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 @@ -372,7 +375,7 @@ public async Task GetIfExists_GetVirtualNetworkGateway() [Ignore("Only validating compilation of examples")] public async Task Get_GetVirtualNetworkScalableGateway() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualNetworkScalableGatewayGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VirtualNetworkScalableGatewayGet.json // this example is just showing the usage of "VirtualNetworkGateways_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 @@ -405,7 +408,7 @@ public async Task Get_GetVirtualNetworkScalableGateway() [Ignore("Only validating compilation of examples")] public async Task Exists_GetVirtualNetworkScalableGateway() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualNetworkScalableGatewayGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VirtualNetworkScalableGatewayGet.json // this example is just showing the usage of "VirtualNetworkGateways_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 @@ -434,7 +437,7 @@ public async Task Exists_GetVirtualNetworkScalableGateway() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GetVirtualNetworkScalableGateway() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualNetworkScalableGatewayGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VirtualNetworkScalableGatewayGet.json // this example is just showing the usage of "VirtualNetworkGateways_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 @@ -475,7 +478,7 @@ public async Task GetIfExists_GetVirtualNetworkScalableGateway() [Ignore("Only validating compilation of examples")] public async Task GetAll_ListVirtualNetworkGatewaysinResourceGroup() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualNetworkGatewayList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VirtualNetworkGatewayList.json // this example is just showing the usage of "VirtualNetworkGateways_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualNetworkGatewayConnectionCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualNetworkGatewayConnectionCollection.cs index 87f299bb8af8..6da5fef839ff 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualNetworkGatewayConnectionCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualNetworkGatewayConnectionCollection.cs @@ -22,7 +22,7 @@ public partial class Sample_VirtualNetworkGatewayConnectionCollection [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_CreateVirtualNetworkGatewayConnectionS2S() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualNetworkGatewayConnectionCreate.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VirtualNetworkGatewayConnectionCreate.json // this example is just showing the usage of "VirtualNetworkGatewayConnections_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 @@ -79,10 +79,13 @@ public async Task CreateOrUpdate_CreateVirtualNetworkGatewayConnectionS2S() { LocalNetworkGateway2 = new LocalNetworkGatewayData() { - LocalNetworkAddressPrefixes = + LocalNetworkAddressSpace = new AddressSpace() + { + AddressPrefixes = { "10.1.0.0/16" }, + }, GatewayIPAddress = "x.x.x.x", Id = new ResourceIdentifier("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/localNetworkGateways/localgw"), Location = new AzureLocation("centralus"), @@ -137,7 +140,7 @@ public async Task CreateOrUpdate_CreateVirtualNetworkGatewayConnectionS2S() [Ignore("Only validating compilation of examples")] public async Task Get_GetVirtualNetworkGatewayConnection() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualNetworkGatewayConnectionGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VirtualNetworkGatewayConnectionGet.json // this example is just showing the usage of "VirtualNetworkGatewayConnections_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 +173,7 @@ public async Task Get_GetVirtualNetworkGatewayConnection() [Ignore("Only validating compilation of examples")] public async Task Exists_GetVirtualNetworkGatewayConnection() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualNetworkGatewayConnectionGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VirtualNetworkGatewayConnectionGet.json // this example is just showing the usage of "VirtualNetworkGatewayConnections_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 @@ -199,7 +202,7 @@ public async Task Exists_GetVirtualNetworkGatewayConnection() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GetVirtualNetworkGatewayConnection() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualNetworkGatewayConnectionGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VirtualNetworkGatewayConnectionGet.json // this example is just showing the usage of "VirtualNetworkGatewayConnections_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -240,7 +243,7 @@ public async Task GetIfExists_GetVirtualNetworkGatewayConnection() [Ignore("Only validating compilation of examples")] public async Task GetAll_ListVirtualNetworkGatewayConnectionsinResourceGroup() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualNetworkGatewayConnectionsList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VirtualNetworkGatewayConnectionsList.json // this example is just showing the usage of "VirtualNetworkGatewayConnections_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualNetworkGatewayConnectionResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualNetworkGatewayConnectionResource.cs index 2abb320139a7..0e133ea99903 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualNetworkGatewayConnectionResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualNetworkGatewayConnectionResource.cs @@ -20,7 +20,7 @@ public partial class Sample_VirtualNetworkGatewayConnectionResource [Ignore("Only validating compilation of examples")] public async Task VpnDeviceConfigurationScript_GetVPNDeviceConfigurationScript() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualNetworkGatewayVpnDeviceConfigurationScript.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VirtualNetworkGatewayVpnDeviceConfigurationScript.json // this example is just showing the usage of "VirtualNetworkGateways_VpnDeviceConfigurationScript" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -52,7 +52,7 @@ public async Task VpnDeviceConfigurationScript_GetVPNDeviceConfigurationScript() [Ignore("Only validating compilation of examples")] public async Task Get_GetVirtualNetworkGatewayConnection() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualNetworkGatewayConnectionGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VirtualNetworkGatewayConnectionGet.json // this example is just showing the usage of "VirtualNetworkGatewayConnections_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -82,7 +82,7 @@ public async Task Get_GetVirtualNetworkGatewayConnection() [Ignore("Only validating compilation of examples")] public async Task Delete_DeleteVirtualNetworkGatewayConnection() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualNetworkGatewayConnectionDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VirtualNetworkGatewayConnectionDelete.json // this example is just showing the usage of "VirtualNetworkGatewayConnections_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -108,7 +108,7 @@ public async Task Delete_DeleteVirtualNetworkGatewayConnection() [Ignore("Only validating compilation of examples")] public async Task Update_UpdateVirtualNetworkGatewayConnectionTags() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualNetworkGatewayConnectionUpdateTags.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VirtualNetworkGatewayConnectionUpdateTags.json // this example is just showing the usage of "VirtualNetworkGatewayConnections_UpdateTags" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -147,7 +147,7 @@ public async Task Update_UpdateVirtualNetworkGatewayConnectionTags() [Ignore("Only validating compilation of examples")] public async Task SetSharedKey_SetVirtualNetworkGatewayConnectionSharedKey() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualNetworkGatewayConnectionSetSharedKey.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VirtualNetworkGatewayConnectionSetSharedKey.json // this example is just showing the usage of "VirtualNetworkGatewayConnections_SetSharedKey" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -175,7 +175,7 @@ public async Task SetSharedKey_SetVirtualNetworkGatewayConnectionSharedKey() [Ignore("Only validating compilation of examples")] public async Task GetSharedKey_GetVirtualNetworkGatewayConnectionSharedKey() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualNetworkGatewayConnectionGetSharedKey.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VirtualNetworkGatewayConnectionGetSharedKey.json // this example is just showing the usage of "VirtualNetworkGatewayConnections_GetSharedKey" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -201,7 +201,7 @@ public async Task GetSharedKey_GetVirtualNetworkGatewayConnectionSharedKey() [Ignore("Only validating compilation of examples")] public async Task ResetSharedKey_ResetVirtualNetworkGatewayConnectionSharedKey() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualNetworkGatewayConnectionResetSharedKey.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VirtualNetworkGatewayConnectionResetSharedKey.json // this example is just showing the usage of "VirtualNetworkGatewayConnections_ResetSharedKey" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -229,7 +229,7 @@ public async Task ResetSharedKey_ResetVirtualNetworkGatewayConnectionSharedKey() [Ignore("Only validating compilation of examples")] public async Task StartPacketCapture_StartPacketCaptureOnVirtualNetworkGatewayConnectionWithFilter() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualNetworkGatewayConnectionStartPacketCaptureFilterData.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VirtualNetworkGatewayConnectionStartPacketCaptureFilterData.json // this example is just showing the usage of "VirtualNetworkGatewayConnections_StartPacketCapture" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -260,7 +260,7 @@ public async Task StartPacketCapture_StartPacketCaptureOnVirtualNetworkGatewayCo [Ignore("Only validating compilation of examples")] public async Task StartPacketCapture_StartPacketCaptureOnVirtualNetworkGatewayConnectionWithoutFilter() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualNetworkGatewayConnectionStartPacketCapture.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VirtualNetworkGatewayConnectionStartPacketCapture.json // this example is just showing the usage of "VirtualNetworkGatewayConnections_StartPacketCapture" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -287,7 +287,7 @@ public async Task StartPacketCapture_StartPacketCaptureOnVirtualNetworkGatewayCo [Ignore("Only validating compilation of examples")] public async Task StopPacketCapture_StopPacketCaptureOnVirtualNetworkGatewayConnection() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualNetworkGatewayConnectionStopPacketCapture.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VirtualNetworkGatewayConnectionStopPacketCapture.json // this example is just showing the usage of "VirtualNetworkGatewayConnections_StopPacketCapture" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -318,7 +318,7 @@ public async Task StopPacketCapture_StopPacketCaptureOnVirtualNetworkGatewayConn [Ignore("Only validating compilation of examples")] public async Task GetIkeSas_GetVirtualNetworkGatewayConnectionIkeSa() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualNetworkGatewayConnectionGetIkeSas.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VirtualNetworkGatewayConnectionGetIkeSas.json // this example is just showing the usage of "VirtualNetworkGatewayConnections_GetIkeSas" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -345,7 +345,7 @@ public async Task GetIkeSas_GetVirtualNetworkGatewayConnectionIkeSa() [Ignore("Only validating compilation of examples")] public async Task ResetConnection_ResetVirtualNetworkGatewayConnection() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualNetworkGatewayConnectionReset.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VirtualNetworkGatewayConnectionReset.json // this example is just showing the usage of "VirtualNetworkGatewayConnections_ResetConnection" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details 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/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualNetworkGatewayNatRuleCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualNetworkGatewayNatRuleCollection.cs index e8496dc35bf0..b2d2d70c0e92 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualNetworkGatewayNatRuleCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualNetworkGatewayNatRuleCollection.cs @@ -20,7 +20,7 @@ public partial class Sample_VirtualNetworkGatewayNatRuleCollection [Ignore("Only validating compilation of examples")] public async Task Get_VirtualNetworkGatewayNatRuleGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualNetworkGatewayNatRuleGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VirtualNetworkGatewayNatRuleGet.json // this example is just showing the usage of "VirtualNetworkGatewayNatRules_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -54,7 +54,7 @@ public async Task Get_VirtualNetworkGatewayNatRuleGet() [Ignore("Only validating compilation of examples")] public async Task Exists_VirtualNetworkGatewayNatRuleGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualNetworkGatewayNatRuleGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VirtualNetworkGatewayNatRuleGet.json // this example is just showing the usage of "VirtualNetworkGatewayNatRules_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 @@ -84,7 +84,7 @@ public async Task Exists_VirtualNetworkGatewayNatRuleGet() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_VirtualNetworkGatewayNatRuleGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualNetworkGatewayNatRuleGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VirtualNetworkGatewayNatRuleGet.json // this example is just showing the usage of "VirtualNetworkGatewayNatRules_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -126,7 +126,7 @@ public async Task GetIfExists_VirtualNetworkGatewayNatRuleGet() [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_VirtualNetworkGatewayNatRulePut() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualNetworkGatewayNatRulePut.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VirtualNetworkGatewayNatRulePut.json // this example is just showing the usage of "VirtualNetworkGatewayNatRules_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 @@ -183,7 +183,7 @@ public async Task CreateOrUpdate_VirtualNetworkGatewayNatRulePut() [Ignore("Only validating compilation of examples")] public async Task GetAll_VirtualNetworkGatewayNatRuleList() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualNetworkGatewayNatRuleList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VirtualNetworkGatewayNatRuleList.json // this example is just showing the usage of "VirtualNetworkGatewayNatRules_ListByVirtualNetworkGateway" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details 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/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualNetworkGatewayNatRuleResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualNetworkGatewayNatRuleResource.cs index 7ee8c1a0e5ec..fd1a8e466447 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualNetworkGatewayNatRuleResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualNetworkGatewayNatRuleResource.cs @@ -20,7 +20,7 @@ public partial class Sample_VirtualNetworkGatewayNatRuleResource [Ignore("Only validating compilation of examples")] public async Task Get_VirtualNetworkGatewayNatRuleGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualNetworkGatewayNatRuleGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VirtualNetworkGatewayNatRuleGet.json // this example is just showing the usage of "VirtualNetworkGatewayNatRules_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 @@ -51,7 +51,7 @@ public async Task Get_VirtualNetworkGatewayNatRuleGet() [Ignore("Only validating compilation of examples")] public async Task Update_VirtualNetworkGatewayNatRulePut() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualNetworkGatewayNatRulePut.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VirtualNetworkGatewayNatRulePut.json // this example is just showing the usage of "VirtualNetworkGatewayNatRules_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 @@ -105,7 +105,7 @@ public async Task Update_VirtualNetworkGatewayNatRulePut() [Ignore("Only validating compilation of examples")] public async Task Delete_VirtualNetworkGatewayNatRuleDelete() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualNetworkGatewayNatRuleDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VirtualNetworkGatewayNatRuleDelete.json // this example is just showing the usage of "VirtualNetworkGatewayNatRules_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualNetworkGatewayResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualNetworkGatewayResource.cs index 5679247d6dec..a1a88e713160 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualNetworkGatewayResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualNetworkGatewayResource.cs @@ -6,6 +6,7 @@ #nullable disable using System; +using System.Collections.Generic; using System.Threading.Tasks; using Azure.Core; using Azure.Identity; @@ -20,7 +21,7 @@ public partial class Sample_VirtualNetworkGatewayResource [Ignore("Only validating compilation of examples")] public async Task Get_GetVirtualNetworkGateway() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualNetworkGatewayGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VirtualNetworkGatewayGet.json // this example is just showing the usage of "VirtualNetworkGateways_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 +51,7 @@ public async Task Get_GetVirtualNetworkGateway() [Ignore("Only validating compilation of examples")] public async Task Get_GetVirtualNetworkScalableGateway() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualNetworkScalableGatewayGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VirtualNetworkScalableGatewayGet.json // this example is just showing the usage of "VirtualNetworkGateways_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -80,7 +81,7 @@ public async Task Get_GetVirtualNetworkScalableGateway() [Ignore("Only validating compilation of examples")] public async Task Delete_DeleteVirtualNetworkGateway() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualNetworkGatewayDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VirtualNetworkGatewayDelete.json // this example is just showing the usage of "VirtualNetworkGateways_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 @@ -106,7 +107,7 @@ public async Task Delete_DeleteVirtualNetworkGateway() [Ignore("Only validating compilation of examples")] public async Task Update_UpdateVirtualNetworkGatewayTags() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualNetworkGatewayUpdateTags.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VirtualNetworkGatewayUpdateTags.json // this example is just showing the usage of "VirtualNetworkGateways_UpdateTags" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -145,7 +146,7 @@ public async Task Update_UpdateVirtualNetworkGatewayTags() [Ignore("Only validating compilation of examples")] public async Task GetConnections_VirtualNetworkGatewaysListConnections() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualNetworkGatewaysListConnections.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VirtualNetworkGatewaysListConnections.json // this example is just showing the usage of "VirtualNetworkGateways_ListConnections" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -174,7 +175,7 @@ public async Task GetConnections_VirtualNetworkGatewaysListConnections() [Ignore("Only validating compilation of examples")] public async Task Reset_ResetVirtualNetworkGateway() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualNetworkGatewayReset.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VirtualNetworkGatewayReset.json // this example is just showing the usage of "VirtualNetworkGateways_Reset" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -205,7 +206,7 @@ public async Task Reset_ResetVirtualNetworkGateway() [Ignore("Only validating compilation of examples")] public async Task ResetVpnClientSharedKey_ResetVpnClientSharedKey() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualNetworkGatewayResetVpnClientSharedKey.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VirtualNetworkGatewayResetVpnClientSharedKey.json // this example is just showing the usage of "VirtualNetworkGateways_ResetVpnClientSharedKey" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -231,7 +232,7 @@ public async Task ResetVpnClientSharedKey_ResetVpnClientSharedKey() [Ignore("Only validating compilation of examples")] public async Task GenerateVpnClientPackage_GenerateVPNClientPackage() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualNetworkGatewayGenerateVpnClientPackage.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VirtualNetworkGatewayGenerateVpnClientPackage.json // this example is just showing the usage of "VirtualNetworkGateways_Generatevpnclientpackage" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -259,7 +260,7 @@ public async Task GenerateVpnClientPackage_GenerateVPNClientPackage() [Ignore("Only validating compilation of examples")] public async Task GenerateVpnProfile_GenerateVirtualNetworkGatewayVPNProfile() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualNetworkGatewayGenerateVpnProfile.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VirtualNetworkGatewayGenerateVpnProfile.json // this example is just showing the usage of "VirtualNetworkGateways_GenerateVpnProfile" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -287,7 +288,7 @@ public async Task GenerateVpnProfile_GenerateVirtualNetworkGatewayVPNProfile() [Ignore("Only validating compilation of examples")] public async Task GetVpnProfilePackageUrl_GetVirtualNetworkGatewayVPNProfilePackageURL() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualNetworkGatewayGetVpnProfilePackageUrl.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VirtualNetworkGatewayGetVpnProfilePackageUrl.json // this example is just showing the usage of "VirtualNetworkGateways_GetVpnProfilePackageUrl" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -314,7 +315,7 @@ public async Task GetVpnProfilePackageUrl_GetVirtualNetworkGatewayVPNProfilePack [Ignore("Only validating compilation of examples")] public async Task GetBgpPeerStatus_GetVirtualNetworkGatewayBGPPeerStatus() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualNetworkGatewayGetBGPPeerStatus.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VirtualNetworkGatewayGetBGPPeerStatus.json // this example is just showing the usage of "VirtualNetworkGateways_GetBgpPeerStatus" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -341,7 +342,7 @@ public async Task GetBgpPeerStatus_GetVirtualNetworkGatewayBGPPeerStatus() [Ignore("Only validating compilation of examples")] public async Task SupportedVpnDevices_ListVirtualNetworkGatewaySupportedVPNDevices() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualNetworkGatewaySupportedVpnDevice.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VirtualNetworkGatewaySupportedVpnDevice.json // this example is just showing the usage of "VirtualNetworkGateways_SupportedVpnDevices" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -367,7 +368,7 @@ public async Task SupportedVpnDevices_ListVirtualNetworkGatewaySupportedVPNDevic [Ignore("Only validating compilation of examples")] public async Task GetLearnedRoutes_GetVirtualNetworkGatewayLearnedRoutes() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualNetworkGatewayLearnedRoutes.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VirtualNetworkGatewayLearnedRoutes.json // this example is just showing the usage of "VirtualNetworkGateways_GetLearnedRoutes" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -394,7 +395,7 @@ public async Task GetLearnedRoutes_GetVirtualNetworkGatewayLearnedRoutes() [Ignore("Only validating compilation of examples")] public async Task GetAdvertisedRoutes_GetVirtualNetworkGatewayAdvertisedRoutes() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualNetworkGatewayGetAdvertisedRoutes.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VirtualNetworkGatewayGetAdvertisedRoutes.json // this example is just showing the usage of "VirtualNetworkGateways_GetAdvertisedRoutes" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -422,7 +423,7 @@ public async Task GetAdvertisedRoutes_GetVirtualNetworkGatewayAdvertisedRoutes() [Ignore("Only validating compilation of examples")] public async Task SetVpnclientIPsecParameters_SetVirtualNetworkGatewayVpnClientIpsecParameters() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualNetworkGatewaySetVpnClientIpsecParameters.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VirtualNetworkGatewaySetVpnClientIpsecParameters.json // this example is just showing the usage of "VirtualNetworkGateways_SetVpnclientIPsecParameters" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -450,7 +451,7 @@ public async Task SetVpnclientIPsecParameters_SetVirtualNetworkGatewayVpnClientI [Ignore("Only validating compilation of examples")] public async Task GetVpnclientIPsecParameters_GetVirtualNetworkGatewayVpnClientIpsecParameters() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualNetworkGatewayGetVpnClientIpsecParameters.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VirtualNetworkGatewayGetVpnClientIpsecParameters.json // this example is just showing the usage of "VirtualNetworkGateways_GetVpnclientIPsecParameters" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -477,7 +478,7 @@ public async Task GetVpnclientIPsecParameters_GetVirtualNetworkGatewayVpnClientI [Ignore("Only validating compilation of examples")] public async Task StartPacketCapture_StartPacketCaptureOnVirtualNetworkGatewayWithFilter() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualNetworkGatewayStartPacketCaptureFilterData.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VirtualNetworkGatewayStartPacketCaptureFilterData.json // this example is just showing the usage of "VirtualNetworkGateways_StartPacketCapture" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -508,7 +509,7 @@ public async Task StartPacketCapture_StartPacketCaptureOnVirtualNetworkGatewayWi [Ignore("Only validating compilation of examples")] public async Task StartPacketCapture_StartPacketCaptureOnVirtualNetworkGatewayWithoutFilter() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualNetworkGatewayStartPacketCapture.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VirtualNetworkGatewayStartPacketCapture.json // this example is just showing the usage of "VirtualNetworkGateways_StartPacketCapture" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -535,7 +536,7 @@ public async Task StartPacketCapture_StartPacketCaptureOnVirtualNetworkGatewayWi [Ignore("Only validating compilation of examples")] public async Task StopPacketCapture_StopPacketCaptureOnVirtualNetworkGateway() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualNetworkGatewayStopPacketCapture.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VirtualNetworkGatewayStopPacketCapture.json // this example is just showing the usage of "VirtualNetworkGateways_StopPacketCapture" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -562,11 +563,143 @@ public async Task StopPacketCapture_StopPacketCaptureOnVirtualNetworkGateway() Console.WriteLine($"Succeeded: {result}"); } + [Test] + [Ignore("Only validating compilation of examples")] + public async Task GetFailoverAllTestDetails_VirtualNetworkGatewayGetFailoverAllTestsDetails() + { + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VirtualNetworkGatewayGetFailoverAllTestsDetails.json + // this example is just showing the usage of "VirtualNetworkGateways_GetFailoverAllTestDetails" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details 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 VirtualNetworkGatewayResource created on azure + // for more information of creating VirtualNetworkGatewayResource, please refer to the document of VirtualNetworkGatewayResource + string subscriptionId = "subid"; + string resourceGroupName = "rg1"; + string virtualNetworkGatewayName = "ergw"; + ResourceIdentifier virtualNetworkGatewayResourceId = VirtualNetworkGatewayResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, virtualNetworkGatewayName); + VirtualNetworkGatewayResource virtualNetworkGateway = client.GetVirtualNetworkGatewayResource(virtualNetworkGatewayResourceId); + + // invoke the operation + string type = "SingleSiteFailover"; + bool fetchLatest = true; + ArmOperation> lro = await virtualNetworkGateway.GetFailoverAllTestDetailsAsync(WaitUntil.Completed, type, fetchLatest); + IList result = lro.Value; + + Console.WriteLine($"Succeeded: {result}"); + } + + [Test] + [Ignore("Only validating compilation of examples")] + public async Task GetFailoverSingleTestDetails_VirtualNetworkGatewayGetFailoverSingleTestDetails() + { + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VirtualNetworkGatewayGetFailoverSingleTestDetails.json + // this example is just showing the usage of "VirtualNetworkGateways_GetFailoverSingleTestDetails" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details 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 VirtualNetworkGatewayResource created on azure + // for more information of creating VirtualNetworkGatewayResource, please refer to the document of VirtualNetworkGatewayResource + string subscriptionId = "subid"; + string resourceGroupName = "rg1"; + string virtualNetworkGatewayName = "ergw"; + ResourceIdentifier virtualNetworkGatewayResourceId = VirtualNetworkGatewayResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, virtualNetworkGatewayName); + VirtualNetworkGatewayResource virtualNetworkGateway = client.GetVirtualNetworkGatewayResource(virtualNetworkGatewayResourceId); + + // invoke the operation + string peeringLocation = "Vancouver"; + string failoverTestId = "fe458ae8-d2ae-4520-a104-44bc233bde7e"; + ArmOperation> lro = await virtualNetworkGateway.GetFailoverSingleTestDetailsAsync(WaitUntil.Completed, peeringLocation, failoverTestId); + IList result = lro.Value; + + Console.WriteLine($"Succeeded: {result}"); + } + + [Test] + [Ignore("Only validating compilation of examples")] + public async Task StartExpressRouteSiteFailoverSimulation_VirtualNetworkGatewayStartSiteFailoverSimulation() + { + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VirtualNetworkGatewayStartSiteFailoverSimulation.json + // this example is just showing the usage of "VirtualNetworkGateways_StartExpressRouteSiteFailoverSimulation" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details 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 VirtualNetworkGatewayResource created on azure + // for more information of creating VirtualNetworkGatewayResource, please refer to the document of VirtualNetworkGatewayResource + string subscriptionId = "subid"; + string resourceGroupName = "rg1"; + string virtualNetworkGatewayName = "ergw"; + ResourceIdentifier virtualNetworkGatewayResourceId = VirtualNetworkGatewayResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, virtualNetworkGatewayName); + VirtualNetworkGatewayResource virtualNetworkGateway = client.GetVirtualNetworkGatewayResource(virtualNetworkGatewayResourceId); + + // invoke the operation + string peeringLocation = "Vancouver"; + ArmOperation lro = await virtualNetworkGateway.StartExpressRouteSiteFailoverSimulationAsync(WaitUntil.Completed, peeringLocation); + string result = lro.Value; + + Console.WriteLine($"Succeeded: {result}"); + } + + [Test] + [Ignore("Only validating compilation of examples")] + public async Task StopExpressRouteSiteFailoverSimulation_VirtualNetworkGatewayStopSiteFailoverSimulation() + { + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VirtualNetworkGatewayStopSiteFailoverSimulation.json + // this example is just showing the usage of "VirtualNetworkGateways_StopExpressRouteSiteFailoverSimulation" operation, for the dependent resources, they will have to be created separately. + + // get your azure access token, for more details 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 VirtualNetworkGatewayResource created on azure + // for more information of creating VirtualNetworkGatewayResource, please refer to the document of VirtualNetworkGatewayResource + string subscriptionId = "subid"; + string resourceGroupName = "rg1"; + string virtualNetworkGatewayName = "ergw"; + ResourceIdentifier virtualNetworkGatewayResourceId = VirtualNetworkGatewayResource.CreateResourceIdentifier(subscriptionId, resourceGroupName, virtualNetworkGatewayName); + VirtualNetworkGatewayResource virtualNetworkGateway = client.GetVirtualNetworkGatewayResource(virtualNetworkGatewayResourceId); + + // invoke the operation + ExpressRouteFailoverStopApiContent content = new ExpressRouteFailoverStopApiContent() + { + PeeringLocation = "Vancouver", + WasSimulationSuccessful = true, + Details = +{ +new FailoverConnectionDetails() +{ +FailoverConnectionName = "conn1", +FailoverLocation = "Denver", +IsVerified = false, +},new FailoverConnectionDetails() +{ +FailoverConnectionName = "conn2", +FailoverLocation = "Amsterdam", +IsVerified = true, +} +}, + }; + ArmOperation lro = await virtualNetworkGateway.StopExpressRouteSiteFailoverSimulationAsync(WaitUntil.Completed, content); + string result = lro.Value; + + Console.WriteLine($"Succeeded: {result}"); + } + [Test] [Ignore("Only validating compilation of examples")] public async Task GetVpnclientConnectionHealth_GetVirtualNetworkGatewayVpnclientConnectionHealth() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualNetworkGatewayGetVpnclientConnectionHealth.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VirtualNetworkGatewayGetVpnclientConnectionHealth.json // this example is just showing the usage of "VirtualNetworkGateways_GetVpnclientConnectionHealth" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -593,7 +726,7 @@ public async Task GetVpnclientConnectionHealth_GetVirtualNetworkGatewayVpnclient [Ignore("Only validating compilation of examples")] public async Task DisconnectVirtualNetworkGatewayVpnConnections_DisconnectVpnConnectionsFromVirtualNetworkGateway() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualNetworkGatewaysDisconnectP2sVpnConnections.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VirtualNetworkGatewaysDisconnectP2sVpnConnections.json // this example is just showing the usage of "VirtualNetworkGateways_DisconnectVirtualNetworkGatewayVpnConnections" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details 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/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualNetworkPeeringCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualNetworkPeeringCollection.cs index cf1a87fa36ae..fd1ceb1ec627 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualNetworkPeeringCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualNetworkPeeringCollection.cs @@ -20,7 +20,7 @@ public partial class Sample_VirtualNetworkPeeringCollection [Ignore("Only validating compilation of examples")] public async Task Get_GetV6SubnetPeering() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualNetworkV6SubnetPeeringGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VirtualNetworkV6SubnetPeeringGet.json // this example is just showing the usage of "VirtualNetworkPeerings_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -54,7 +54,7 @@ public async Task Get_GetV6SubnetPeering() [Ignore("Only validating compilation of examples")] public async Task Exists_GetV6SubnetPeering() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualNetworkV6SubnetPeeringGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VirtualNetworkV6SubnetPeeringGet.json // this example is just showing the usage of "VirtualNetworkPeerings_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 @@ -84,7 +84,7 @@ public async Task Exists_GetV6SubnetPeering() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GetV6SubnetPeering() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualNetworkV6SubnetPeeringGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VirtualNetworkV6SubnetPeeringGet.json // this example is just showing the usage of "VirtualNetworkPeerings_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -126,7 +126,7 @@ public async Task GetIfExists_GetV6SubnetPeering() [Ignore("Only validating compilation of examples")] public async Task Get_GetPeering() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualNetworkPeeringGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VirtualNetworkPeeringGet.json // this example is just showing the usage of "VirtualNetworkPeerings_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 @@ -160,7 +160,7 @@ public async Task Get_GetPeering() [Ignore("Only validating compilation of examples")] public async Task Exists_GetPeering() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualNetworkPeeringGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VirtualNetworkPeeringGet.json // this example is just showing the usage of "VirtualNetworkPeerings_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 @@ -190,7 +190,7 @@ public async Task Exists_GetPeering() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GetPeering() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualNetworkPeeringGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VirtualNetworkPeeringGet.json // this example is just showing the usage of "VirtualNetworkPeerings_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 @@ -232,7 +232,7 @@ public async Task GetIfExists_GetPeering() [Ignore("Only validating compilation of examples")] public async Task Get_GetPeeringWithRemoteVirtualNetworkEncryption() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualNetworkPeeringGetWithRemoteVirtualNetworkEncryption.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VirtualNetworkPeeringGetWithRemoteVirtualNetworkEncryption.json // this example is just showing the usage of "VirtualNetworkPeerings_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 @@ -266,7 +266,7 @@ public async Task Get_GetPeeringWithRemoteVirtualNetworkEncryption() [Ignore("Only validating compilation of examples")] public async Task Exists_GetPeeringWithRemoteVirtualNetworkEncryption() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualNetworkPeeringGetWithRemoteVirtualNetworkEncryption.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VirtualNetworkPeeringGetWithRemoteVirtualNetworkEncryption.json // this example is just showing the usage of "VirtualNetworkPeerings_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 @@ -296,7 +296,7 @@ public async Task Exists_GetPeeringWithRemoteVirtualNetworkEncryption() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GetPeeringWithRemoteVirtualNetworkEncryption() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualNetworkPeeringGetWithRemoteVirtualNetworkEncryption.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VirtualNetworkPeeringGetWithRemoteVirtualNetworkEncryption.json // this example is just showing the usage of "VirtualNetworkPeerings_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 @@ -338,7 +338,7 @@ public async Task GetIfExists_GetPeeringWithRemoteVirtualNetworkEncryption() [Ignore("Only validating compilation of examples")] public async Task Get_GetSubnetPeering() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualNetworkSubnetPeeringGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VirtualNetworkSubnetPeeringGet.json // this example is just showing the usage of "VirtualNetworkPeerings_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 @@ -372,7 +372,7 @@ public async Task Get_GetSubnetPeering() [Ignore("Only validating compilation of examples")] public async Task Exists_GetSubnetPeering() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualNetworkSubnetPeeringGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VirtualNetworkSubnetPeeringGet.json // this example is just showing the usage of "VirtualNetworkPeerings_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 @@ -402,7 +402,7 @@ public async Task Exists_GetSubnetPeering() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GetSubnetPeering() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualNetworkSubnetPeeringGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VirtualNetworkSubnetPeeringGet.json // this example is just showing the usage of "VirtualNetworkPeerings_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 @@ -444,7 +444,7 @@ public async Task GetIfExists_GetSubnetPeering() [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_CreateV6SubnetPeering() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualNetworkV6SubnetPeeringCreate.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VirtualNetworkV6SubnetPeeringCreate.json // this example is just showing the usage of "VirtualNetworkPeerings_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 @@ -497,7 +497,7 @@ public async Task CreateOrUpdate_CreateV6SubnetPeering() [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_CreatePeering() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualNetworkPeeringCreate.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VirtualNetworkPeeringCreate.json // this example is just showing the usage of "VirtualNetworkPeerings_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 @@ -540,7 +540,7 @@ public async Task CreateOrUpdate_CreatePeering() [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_CreatePeeringWithRemoteVirtualNetworkEncryption() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualNetworkPeeringCreateWithRemoteVirtualNetworkEncryption.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VirtualNetworkPeeringCreateWithRemoteVirtualNetworkEncryption.json // this example is just showing the usage of "VirtualNetworkPeerings_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 @@ -583,7 +583,7 @@ public async Task CreateOrUpdate_CreatePeeringWithRemoteVirtualNetworkEncryption [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_CreateSubnetPeering() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualNetworkSubnetPeeringCreate.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VirtualNetworkSubnetPeeringCreate.json // this example is just showing the usage of "VirtualNetworkPeerings_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 @@ -636,7 +636,7 @@ public async Task CreateOrUpdate_CreateSubnetPeering() [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_SyncPeering() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualNetworkPeeringSync.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VirtualNetworkPeeringSync.json // this example is just showing the usage of "VirtualNetworkPeerings_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 @@ -680,7 +680,7 @@ public async Task CreateOrUpdate_SyncPeering() [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_SyncV6SubnetPeering() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualNetworkV6SubnetPeeringSync.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VirtualNetworkV6SubnetPeeringSync.json // this example is just showing the usage of "VirtualNetworkPeerings_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 @@ -726,7 +726,7 @@ public async Task CreateOrUpdate_SyncV6SubnetPeering() [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_SyncSubnetPeering() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualNetworkSubnetPeeringSync.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VirtualNetworkSubnetPeeringSync.json // this example is just showing the usage of "VirtualNetworkPeerings_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 @@ -772,7 +772,7 @@ public async Task CreateOrUpdate_SyncSubnetPeering() [Ignore("Only validating compilation of examples")] public async Task GetAll_ListPeerings() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualNetworkPeeringList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VirtualNetworkPeeringList.json // this example is just showing the usage of "VirtualNetworkPeerings_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 @@ -808,7 +808,7 @@ public async Task GetAll_ListPeerings() [Ignore("Only validating compilation of examples")] public async Task GetAll_ListPeeringsWithRemoteVirtualNetworkEncryption() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualNetworkPeeringListWithRemoteVirtualNetworkEncryption.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VirtualNetworkPeeringListWithRemoteVirtualNetworkEncryption.json // this example is just showing the usage of "VirtualNetworkPeerings_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualNetworkPeeringResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualNetworkPeeringResource.cs index 05e19eecf499..4e55cf2dc5d0 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualNetworkPeeringResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualNetworkPeeringResource.cs @@ -20,7 +20,7 @@ public partial class Sample_VirtualNetworkPeeringResource [Ignore("Only validating compilation of examples")] public async Task Delete_DeletePeering() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualNetworkPeeringDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VirtualNetworkPeeringDelete.json // this example is just showing the usage of "VirtualNetworkPeerings_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 @@ -47,7 +47,7 @@ public async Task Delete_DeletePeering() [Ignore("Only validating compilation of examples")] public async Task Get_GetV6SubnetPeering() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualNetworkV6SubnetPeeringGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VirtualNetworkV6SubnetPeeringGet.json // this example is just showing the usage of "VirtualNetworkPeerings_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 @@ -78,7 +78,7 @@ public async Task Get_GetV6SubnetPeering() [Ignore("Only validating compilation of examples")] public async Task Get_GetPeering() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualNetworkPeeringGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VirtualNetworkPeeringGet.json // this example is just showing the usage of "VirtualNetworkPeerings_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 @@ -109,7 +109,7 @@ public async Task Get_GetPeering() [Ignore("Only validating compilation of examples")] public async Task Get_GetPeeringWithRemoteVirtualNetworkEncryption() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualNetworkPeeringGetWithRemoteVirtualNetworkEncryption.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VirtualNetworkPeeringGetWithRemoteVirtualNetworkEncryption.json // this example is just showing the usage of "VirtualNetworkPeerings_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -140,7 +140,7 @@ public async Task Get_GetPeeringWithRemoteVirtualNetworkEncryption() [Ignore("Only validating compilation of examples")] public async Task Get_GetSubnetPeering() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualNetworkSubnetPeeringGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VirtualNetworkSubnetPeeringGet.json // this example is just showing the usage of "VirtualNetworkPeerings_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -171,7 +171,7 @@ public async Task Get_GetSubnetPeering() [Ignore("Only validating compilation of examples")] public async Task Update_CreateV6SubnetPeering() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualNetworkV6SubnetPeeringCreate.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VirtualNetworkV6SubnetPeeringCreate.json // this example is just showing the usage of "VirtualNetworkPeerings_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 @@ -221,7 +221,7 @@ public async Task Update_CreateV6SubnetPeering() [Ignore("Only validating compilation of examples")] public async Task Update_CreatePeering() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualNetworkPeeringCreate.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VirtualNetworkPeeringCreate.json // this example is just showing the usage of "VirtualNetworkPeerings_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 @@ -261,7 +261,7 @@ public async Task Update_CreatePeering() [Ignore("Only validating compilation of examples")] public async Task Update_CreatePeeringWithRemoteVirtualNetworkEncryption() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualNetworkPeeringCreateWithRemoteVirtualNetworkEncryption.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VirtualNetworkPeeringCreateWithRemoteVirtualNetworkEncryption.json // this example is just showing the usage of "VirtualNetworkPeerings_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 @@ -301,7 +301,7 @@ public async Task Update_CreatePeeringWithRemoteVirtualNetworkEncryption() [Ignore("Only validating compilation of examples")] public async Task Update_CreateSubnetPeering() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualNetworkSubnetPeeringCreate.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VirtualNetworkSubnetPeeringCreate.json // this example is just showing the usage of "VirtualNetworkPeerings_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 @@ -351,7 +351,7 @@ public async Task Update_CreateSubnetPeering() [Ignore("Only validating compilation of examples")] public async Task Update_SyncPeering() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualNetworkPeeringSync.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VirtualNetworkPeeringSync.json // this example is just showing the usage of "VirtualNetworkPeerings_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 @@ -392,7 +392,7 @@ public async Task Update_SyncPeering() [Ignore("Only validating compilation of examples")] public async Task Update_SyncV6SubnetPeering() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualNetworkV6SubnetPeeringSync.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VirtualNetworkV6SubnetPeeringSync.json // this example is just showing the usage of "VirtualNetworkPeerings_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 @@ -435,7 +435,7 @@ public async Task Update_SyncV6SubnetPeering() [Ignore("Only validating compilation of examples")] public async Task Update_SyncSubnetPeering() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualNetworkSubnetPeeringSync.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VirtualNetworkSubnetPeeringSync.json // this example is just showing the usage of "VirtualNetworkPeerings_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualNetworkResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualNetworkResource.cs index 488623691bd7..351e9bd757a7 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualNetworkResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualNetworkResource.cs @@ -21,7 +21,7 @@ public partial class Sample_VirtualNetworkResource [Ignore("Only validating compilation of examples")] public async Task GetNetworkManagerEffectiveConnectivityConfigurations_ListEffectiveConnectivityConfiguration() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerEffectiveConnectivityConfigurationsList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkManagerEffectiveConnectivityConfigurationsList.json // this example is just showing the usage of "ListNetworkManagerEffectiveConnectivityConfigurations" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -54,7 +54,7 @@ public async Task GetNetworkManagerEffectiveConnectivityConfigurations_ListEffec [Ignore("Only validating compilation of examples")] public async Task GetNetworkManagerEffectiveSecurityAdminRules_ListEffectiveSecurityAdminRules() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NetworkManagerEffectiveSecurityAdminRulesList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NetworkManagerEffectiveSecurityAdminRulesList.json // this example is just showing the usage of "ListNetworkManagerEffectiveSecurityAdminRules" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -87,7 +87,7 @@ public async Task GetNetworkManagerEffectiveSecurityAdminRules_ListEffectiveSecu [Ignore("Only validating compilation of examples")] public async Task Delete_DeleteVirtualNetwork() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualNetworkDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VirtualNetworkDelete.json // this example is just showing the usage of "VirtualNetworks_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 @@ -113,7 +113,7 @@ public async Task Delete_DeleteVirtualNetwork() [Ignore("Only validating compilation of examples")] public async Task Get_GetVirtualNetwork() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualNetworkGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VirtualNetworkGet.json // this example is just showing the usage of "VirtualNetworks_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 @@ -143,7 +143,7 @@ public async Task Get_GetVirtualNetwork() [Ignore("Only validating compilation of examples")] public async Task Get_GetVirtualNetworkWithADelegatedSubnet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualNetworkGetWithSubnetDelegation.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VirtualNetworkGetWithSubnetDelegation.json // this example is just showing the usage of "VirtualNetworks_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 @@ -173,7 +173,7 @@ public async Task Get_GetVirtualNetworkWithADelegatedSubnet() [Ignore("Only validating compilation of examples")] public async Task Get_GetVirtualNetworkWithServiceAssociationLinks() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualNetworkGetWithServiceAssociationLink.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VirtualNetworkGetWithServiceAssociationLink.json // this example is just showing the usage of "VirtualNetworks_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 @@ -203,7 +203,7 @@ public async Task Get_GetVirtualNetworkWithServiceAssociationLinks() [Ignore("Only validating compilation of examples")] public async Task Update_UpdateVirtualNetworkTags() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualNetworkUpdateTags.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VirtualNetworkUpdateTags.json // this example is just showing the usage of "VirtualNetworks_UpdateTags" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -241,7 +241,7 @@ public async Task Update_UpdateVirtualNetworkTags() [Ignore("Only validating compilation of examples")] public async Task GetVirtualNetworks_ListAllVirtualNetworks() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualNetworkListAll.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VirtualNetworkListAll.json // this example is just showing the usage of "VirtualNetworks_ListAll" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -272,7 +272,7 @@ public async Task GetVirtualNetworks_ListAllVirtualNetworks() [Ignore("Only validating compilation of examples")] public async Task CheckIPAddressAvailability_CheckIPAddressAvailability() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualNetworkCheckIPAddressAvailability.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VirtualNetworkCheckIPAddressAvailability.json // this example is just showing the usage of "VirtualNetworks_CheckIPAddressAvailability" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -299,7 +299,7 @@ public async Task CheckIPAddressAvailability_CheckIPAddressAvailability() [Ignore("Only validating compilation of examples")] public async Task GetUsage_VnetGetUsage() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualNetworkListUsage.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VirtualNetworkListUsage.json // this example is just showing the usage of "VirtualNetworks_ListUsage" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details 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/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualNetworkTapCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualNetworkTapCollection.cs index 8921ed73e32e..a2b5223d81ae 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualNetworkTapCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualNetworkTapCollection.cs @@ -20,7 +20,7 @@ public partial class Sample_VirtualNetworkTapCollection [Ignore("Only validating compilation of examples")] public async Task Get_GetVirtualNetworkTap() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualNetworkTapGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VirtualNetworkTapGet.json // this example is just showing the usage of "VirtualNetworkTaps_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -53,7 +53,7 @@ public async Task Get_GetVirtualNetworkTap() [Ignore("Only validating compilation of examples")] public async Task Exists_GetVirtualNetworkTap() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualNetworkTapGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VirtualNetworkTapGet.json // this example is just showing the usage of "VirtualNetworkTaps_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -82,7 +82,7 @@ public async Task Exists_GetVirtualNetworkTap() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GetVirtualNetworkTap() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualNetworkTapGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VirtualNetworkTapGet.json // this example is just showing the usage of "VirtualNetworkTaps_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 @@ -123,7 +123,7 @@ public async Task GetIfExists_GetVirtualNetworkTap() [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_CreateVirtualNetworkTap() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualNetworkTapCreate.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VirtualNetworkTapCreate.json // this example is just showing the usage of "VirtualNetworkTaps_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 @@ -165,7 +165,7 @@ public async Task CreateOrUpdate_CreateVirtualNetworkTap() [Ignore("Only validating compilation of examples")] public async Task GetAll_ListVirtualNetworkTapsInResourceGroup() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualNetworkTapList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VirtualNetworkTapList.json // this example is just showing the usage of "VirtualNetworkTaps_ListByResourceGroup" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualNetworkTapResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualNetworkTapResource.cs index 8b1613f72726..4f49e0bbcda3 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualNetworkTapResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualNetworkTapResource.cs @@ -21,7 +21,7 @@ public partial class Sample_VirtualNetworkTapResource [Ignore("Only validating compilation of examples")] public async Task Delete_DeleteVirtualNetworkTapResource() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualNetworkTapDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VirtualNetworkTapDelete.json // this example is just showing the usage of "VirtualNetworkTaps_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 @@ -47,7 +47,7 @@ public async Task Delete_DeleteVirtualNetworkTapResource() [Ignore("Only validating compilation of examples")] public async Task Get_GetVirtualNetworkTap() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualNetworkTapGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VirtualNetworkTapGet.json // this example is just showing the usage of "VirtualNetworkTaps_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 @@ -77,7 +77,7 @@ public async Task Get_GetVirtualNetworkTap() [Ignore("Only validating compilation of examples")] public async Task Update_UpdateVirtualNetworkTapTags() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualNetworkTapUpdateTags.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VirtualNetworkTapUpdateTags.json // this example is just showing the usage of "VirtualNetworkTaps_UpdateTags" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -115,7 +115,7 @@ public async Task Update_UpdateVirtualNetworkTapTags() [Ignore("Only validating compilation of examples")] public async Task GetVirtualNetworkTaps_ListAllVirtualNetworkTaps() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualNetworkTapListAll.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VirtualNetworkTapListAll.json // this example is just showing the usage of "VirtualNetworkTaps_ListAll" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details 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/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualRouterCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualRouterCollection.cs index dc751f0ee7b7..7228272c4252 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualRouterCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualRouterCollection.cs @@ -20,7 +20,7 @@ public partial class Sample_VirtualRouterCollection [Ignore("Only validating compilation of examples")] public async Task Get_GetVirtualRouter() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualRouterGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VirtualRouterGet.json // this example is just showing the usage of "VirtualRouters_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -53,7 +53,7 @@ public async Task Get_GetVirtualRouter() [Ignore("Only validating compilation of examples")] public async Task Exists_GetVirtualRouter() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualRouterGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VirtualRouterGet.json // this example is just showing the usage of "VirtualRouters_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -82,7 +82,7 @@ public async Task Exists_GetVirtualRouter() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GetVirtualRouter() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualRouterGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VirtualRouterGet.json // this example is just showing the usage of "VirtualRouters_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 @@ -123,7 +123,7 @@ public async Task GetIfExists_GetVirtualRouter() [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_CreateVirtualRouter() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualRouterPut.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VirtualRouterPut.json // this example is just showing the usage of "VirtualRouters_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 @@ -166,7 +166,7 @@ public async Task CreateOrUpdate_CreateVirtualRouter() [Ignore("Only validating compilation of examples")] public async Task GetAll_ListAllVirtualRouterForAGivenResourceGroup() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualRouterListByResourceGroup.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VirtualRouterListByResourceGroup.json // this example is just showing the usage of "VirtualRouters_ListByResourceGroup" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualRouterPeeringCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualRouterPeeringCollection.cs index a08bc88e8807..454d3f6f738f 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualRouterPeeringCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualRouterPeeringCollection.cs @@ -19,7 +19,7 @@ public partial class Sample_VirtualRouterPeeringCollection [Ignore("Only validating compilation of examples")] public async Task Get_GetVirtualRouterPeering() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualRouterPeeringGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VirtualRouterPeeringGet.json // this example is just showing the usage of "VirtualRouterPeerings_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -53,7 +53,7 @@ public async Task Get_GetVirtualRouterPeering() [Ignore("Only validating compilation of examples")] public async Task Exists_GetVirtualRouterPeering() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualRouterPeeringGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VirtualRouterPeeringGet.json // this example is just showing the usage of "VirtualRouterPeerings_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -83,7 +83,7 @@ public async Task Exists_GetVirtualRouterPeering() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GetVirtualRouterPeering() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualRouterPeeringGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VirtualRouterPeeringGet.json // this example is just showing the usage of "VirtualRouterPeerings_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -125,7 +125,7 @@ public async Task GetIfExists_GetVirtualRouterPeering() [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_CreateVirtualRouterPeering() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualRouterPeeringPut.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VirtualRouterPeeringPut.json // this example is just showing the usage of "VirtualRouterPeerings_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 @@ -165,7 +165,7 @@ public async Task CreateOrUpdate_CreateVirtualRouterPeering() [Ignore("Only validating compilation of examples")] public async Task GetAll_ListAllVirtualRouterPeeringsForAGivenVirtualRouter() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualRouterPeeringList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VirtualRouterPeeringList.json // this example is just showing the usage of "VirtualRouterPeerings_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualRouterPeeringResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualRouterPeeringResource.cs index 0e0c643e9e44..82d5567c68b1 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualRouterPeeringResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualRouterPeeringResource.cs @@ -19,7 +19,7 @@ public partial class Sample_VirtualRouterPeeringResource [Ignore("Only validating compilation of examples")] public async Task Delete_DeleteVirtualRouterPeering() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualRouterPeeringDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VirtualRouterPeeringDelete.json // this example is just showing the usage of "VirtualRouterPeerings_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 @@ -46,7 +46,7 @@ public async Task Delete_DeleteVirtualRouterPeering() [Ignore("Only validating compilation of examples")] public async Task Get_GetVirtualRouterPeering() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualRouterPeeringGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VirtualRouterPeeringGet.json // this example is just showing the usage of "VirtualRouterPeerings_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 @@ -77,7 +77,7 @@ public async Task Get_GetVirtualRouterPeering() [Ignore("Only validating compilation of examples")] public async Task Update_CreateVirtualRouterPeering() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualRouterPeeringPut.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VirtualRouterPeeringPut.json // this example is just showing the usage of "VirtualRouterPeerings_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualRouterResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualRouterResource.cs index 9f2c3e3ee70b..0ff051b6dcb2 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualRouterResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualRouterResource.cs @@ -20,7 +20,7 @@ public partial class Sample_VirtualRouterResource [Ignore("Only validating compilation of examples")] public async Task Delete_DeleteVirtualRouter() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualRouterDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VirtualRouterDelete.json // this example is just showing the usage of "VirtualRouters_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 @@ -46,7 +46,7 @@ public async Task Delete_DeleteVirtualRouter() [Ignore("Only validating compilation of examples")] public async Task Get_GetVirtualRouter() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualRouterGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VirtualRouterGet.json // this example is just showing the usage of "VirtualRouters_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -76,7 +76,7 @@ public async Task Get_GetVirtualRouter() [Ignore("Only validating compilation of examples")] public async Task Update_CreateVirtualRouter() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualRouterPut.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VirtualRouterPut.json // this example is just showing the usage of "VirtualRouters_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 @@ -116,7 +116,7 @@ public async Task Update_CreateVirtualRouter() [Ignore("Only validating compilation of examples")] public async Task GetVirtualRouters_ListAllVirtualRoutersForAGivenSubscription() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualRouterListBySubscription.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VirtualRouterListBySubscription.json // this example is just showing the usage of "VirtualRouters_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualWanCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualWanCollection.cs index b0cd2d83ab7e..6ec43f2508cd 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualWanCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualWanCollection.cs @@ -20,7 +20,7 @@ public partial class Sample_VirtualWanCollection [Ignore("Only validating compilation of examples")] public async Task Get_VirtualWANGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualWANGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VirtualWANGet.json // this example is just showing the usage of "VirtualWans_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -53,7 +53,7 @@ public async Task Get_VirtualWANGet() [Ignore("Only validating compilation of examples")] public async Task Exists_VirtualWANGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualWANGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VirtualWANGet.json // this example is just showing the usage of "VirtualWans_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -82,7 +82,7 @@ public async Task Exists_VirtualWANGet() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_VirtualWANGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualWANGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VirtualWANGet.json // this example is just showing the usage of "VirtualWans_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 @@ -123,7 +123,7 @@ public async Task GetIfExists_VirtualWANGet() [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_VirtualWANCreate() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualWANPut.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VirtualWANPut.json // this example is just showing the usage of "VirtualWans_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 @@ -167,7 +167,7 @@ public async Task CreateOrUpdate_VirtualWANCreate() [Ignore("Only validating compilation of examples")] public async Task GetAll_VirtualWANListByResourceGroup() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualWANListByResourceGroup.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VirtualWANListByResourceGroup.json // this example is just showing the usage of "VirtualWans_ListByResourceGroup" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualWanResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualWanResource.cs index ce0ade205dd3..b1f91676fd53 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualWanResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VirtualWanResource.cs @@ -21,7 +21,7 @@ public partial class Sample_VirtualWanResource [Ignore("Only validating compilation of examples")] public async Task SupportedSecurityProviders_SupportedSecurityProviders() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualWanSupportedSecurityProviders.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VirtualWanSupportedSecurityProviders.json // this example is just showing the usage of "SupportedSecurityProviders" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -47,7 +47,7 @@ public async Task SupportedSecurityProviders_SupportedSecurityProviders() [Ignore("Only validating compilation of examples")] public async Task GenerateVirtualWanVpnServerConfigurationVpnProfile_GenerateVirtualWanVpnServerConfigurationVpnProfile() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/GenerateVirtualWanVpnServerConfigurationVpnProfile.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/GenerateVirtualWanVpnServerConfigurationVpnProfile.json // this example is just showing the usage of "Generatevirtualwanvpnserverconfigurationvpnprofile" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -79,7 +79,7 @@ public async Task GenerateVirtualWanVpnServerConfigurationVpnProfile_GenerateVir [Ignore("Only validating compilation of examples")] public async Task Get_VirtualWANGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualWANGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VirtualWANGet.json // this example is just showing the usage of "VirtualWans_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 @@ -109,7 +109,7 @@ public async Task Get_VirtualWANGet() [Ignore("Only validating compilation of examples")] public async Task Update_VirtualWANUpdate() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualWANUpdateTags.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VirtualWANUpdateTags.json // this example is just showing the usage of "VirtualWans_UpdateTags" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -147,7 +147,7 @@ public async Task Update_VirtualWANUpdate() [Ignore("Only validating compilation of examples")] public async Task Delete_VirtualWANDelete() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualWANDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VirtualWANDelete.json // this example is just showing the usage of "VirtualWans_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 @@ -173,7 +173,7 @@ public async Task Delete_VirtualWANDelete() [Ignore("Only validating compilation of examples")] public async Task GetVirtualWans_VirtualWANList() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VirtualWANList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VirtualWANList.json // this example is just showing the usage of "VirtualWans_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 @@ -204,7 +204,7 @@ public async Task GetVirtualWans_VirtualWANList() [Ignore("Only validating compilation of examples")] public async Task DownloadVpnSitesConfiguration_VpnSitesConfigurationDownload() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VpnSitesConfigurationDownload.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VpnSitesConfigurationDownload.json // this example is just showing the usage of "VpnSitesConfiguration_Download" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -237,7 +237,7 @@ public async Task DownloadVpnSitesConfiguration_VpnSitesConfigurationDownload() [Ignore("Only validating compilation of examples")] public async Task GetVpnServerConfigurationsAssociatedWithVirtualWan_GetVirtualWanVpnServerConfigurations() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/GetVirtualWanVpnServerConfigurations.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/GetVirtualWanVpnServerConfigurations.json // this example is just showing the usage of "VpnServerConfigurationsAssociatedWithVirtualWan_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VpnConnectionCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VpnConnectionCollection.cs index 6555420d7423..f64f5df3f7a5 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VpnConnectionCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VpnConnectionCollection.cs @@ -21,7 +21,7 @@ public partial class Sample_VpnConnectionCollection [Ignore("Only validating compilation of examples")] public async Task Get_VpnConnectionGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VpnConnectionGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VpnConnectionGet.json // this example is just showing the usage of "VpnConnections_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -55,7 +55,7 @@ public async Task Get_VpnConnectionGet() [Ignore("Only validating compilation of examples")] public async Task Exists_VpnConnectionGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VpnConnectionGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VpnConnectionGet.json // this example is just showing the usage of "VpnConnections_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -85,7 +85,7 @@ public async Task Exists_VpnConnectionGet() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_VpnConnectionGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VpnConnectionGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VpnConnectionGet.json // this example is just showing the usage of "VpnConnections_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 @@ -127,7 +127,7 @@ public async Task GetIfExists_VpnConnectionGet() [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_VpnConnectionPut() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VpnConnectionPut.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VpnConnectionPut.json // this example is just showing the usage of "VpnConnections_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 @@ -208,7 +208,7 @@ public async Task CreateOrUpdate_VpnConnectionPut() [Ignore("Only validating compilation of examples")] public async Task GetAll_VpnConnectionList() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VpnConnectionList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VpnConnectionList.json // this example is just showing the usage of "VpnConnections_ListByVpnGateway" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details 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/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VpnConnectionResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VpnConnectionResource.cs index cc0944cc304a..8d1671850add 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VpnConnectionResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VpnConnectionResource.cs @@ -21,7 +21,7 @@ public partial class Sample_VpnConnectionResource [Ignore("Only validating compilation of examples")] public async Task Get_VpnConnectionGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VpnConnectionGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VpnConnectionGet.json // this example is just showing the usage of "VpnConnections_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 @@ -52,7 +52,7 @@ public async Task Get_VpnConnectionGet() [Ignore("Only validating compilation of examples")] public async Task Update_VpnConnectionPut() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VpnConnectionPut.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VpnConnectionPut.json // this example is just showing the usage of "VpnConnections_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 @@ -130,7 +130,7 @@ public async Task Update_VpnConnectionPut() [Ignore("Only validating compilation of examples")] public async Task Delete_VpnConnectionDelete() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VpnConnectionDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VpnConnectionDelete.json // this example is just showing the usage of "VpnConnections_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 @@ -157,7 +157,7 @@ public async Task Delete_VpnConnectionDelete() [Ignore("Only validating compilation of examples")] public async Task StartPacketCapture_StartPacketCaptureOnVpnConnectionWithFilter() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VpnConnectionStartPacketCaptureFilterData.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VpnConnectionStartPacketCaptureFilterData.json // this example is just showing the usage of "VpnConnections_StartPacketCapture" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -193,7 +193,7 @@ public async Task StartPacketCapture_StartPacketCaptureOnVpnConnectionWithFilter [Ignore("Only validating compilation of examples")] public async Task StartPacketCapture_StartPacketCaptureOnVpnConnectionWithoutFilter() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VpnConnectionStartPacketCapture.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VpnConnectionStartPacketCapture.json // this example is just showing the usage of "VpnConnections_StartPacketCapture" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -228,7 +228,7 @@ public async Task StartPacketCapture_StartPacketCaptureOnVpnConnectionWithoutFil [Ignore("Only validating compilation of examples")] public async Task StopPacketCapture_StartPacketCaptureOnVpnConnectionWithoutFilter() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VpnConnectionStopPacketCapture.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VpnConnectionStopPacketCapture.json // this example is just showing the usage of "VpnConnections_StopPacketCapture" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details 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/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VpnGatewayCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VpnGatewayCollection.cs index 36f5ef9901ec..c5f02045b30e 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VpnGatewayCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VpnGatewayCollection.cs @@ -22,7 +22,7 @@ public partial class Sample_VpnGatewayCollection [Ignore("Only validating compilation of examples")] public async Task Get_VpnGatewayGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VpnGatewayGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VpnGatewayGet.json // this example is just showing the usage of "VpnGateways_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -55,7 +55,7 @@ public async Task Get_VpnGatewayGet() [Ignore("Only validating compilation of examples")] public async Task Exists_VpnGatewayGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VpnGatewayGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VpnGatewayGet.json // this example is just showing the usage of "VpnGateways_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 @@ -84,7 +84,7 @@ public async Task Exists_VpnGatewayGet() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_VpnGatewayGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VpnGatewayGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VpnGatewayGet.json // this example is just showing the usage of "VpnGateways_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -125,7 +125,7 @@ public async Task GetIfExists_VpnGatewayGet() [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_VpnGatewayPut() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VpnGatewayPut.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VpnGatewayPut.json // this example is just showing the usage of "VpnGateways_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 @@ -243,7 +243,7 @@ public async Task CreateOrUpdate_VpnGatewayPut() [Ignore("Only validating compilation of examples")] public async Task GetAll_VpnGatewayListByResourceGroup() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VpnGatewayListByResourceGroup.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VpnGatewayListByResourceGroup.json // this example is just showing the usage of "VpnGateways_ListByResourceGroup" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VpnGatewayNatRuleCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VpnGatewayNatRuleCollection.cs index c3ea078e3d72..3a3d22054947 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VpnGatewayNatRuleCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VpnGatewayNatRuleCollection.cs @@ -20,7 +20,7 @@ public partial class Sample_VpnGatewayNatRuleCollection [Ignore("Only validating compilation of examples")] public async Task Get_NatRuleGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NatRuleGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NatRuleGet.json // this example is just showing the usage of "NatRules_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -54,7 +54,7 @@ public async Task Get_NatRuleGet() [Ignore("Only validating compilation of examples")] public async Task Exists_NatRuleGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NatRuleGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NatRuleGet.json // this example is just showing the usage of "NatRules_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 @@ -84,7 +84,7 @@ public async Task Exists_NatRuleGet() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_NatRuleGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NatRuleGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NatRuleGet.json // this example is just showing the usage of "NatRules_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -126,7 +126,7 @@ public async Task GetIfExists_NatRuleGet() [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_NatRulePut() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NatRulePut.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NatRulePut.json // this example is just showing the usage of "NatRules_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 @@ -181,7 +181,7 @@ public async Task CreateOrUpdate_NatRulePut() [Ignore("Only validating compilation of examples")] public async Task GetAll_NatRuleList() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NatRuleList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NatRuleList.json // this example is just showing the usage of "NatRules_ListByVpnGateway" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details 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/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VpnGatewayNatRuleResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VpnGatewayNatRuleResource.cs index f02bce4d0ca2..782c485cab49 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VpnGatewayNatRuleResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VpnGatewayNatRuleResource.cs @@ -20,7 +20,7 @@ public partial class Sample_VpnGatewayNatRuleResource [Ignore("Only validating compilation of examples")] public async Task Get_NatRuleGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NatRuleGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NatRuleGet.json // this example is just showing the usage of "NatRules_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 @@ -51,7 +51,7 @@ public async Task Get_NatRuleGet() [Ignore("Only validating compilation of examples")] public async Task Update_NatRulePut() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NatRulePut.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NatRulePut.json // this example is just showing the usage of "NatRules_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -103,7 +103,7 @@ public async Task Update_NatRulePut() [Ignore("Only validating compilation of examples")] public async Task Delete_NatRuleDelete() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/NatRuleDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/NatRuleDelete.json // this example is just showing the usage of "NatRules_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VpnGatewayResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VpnGatewayResource.cs index ff889e649c9f..96511be66371 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VpnGatewayResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VpnGatewayResource.cs @@ -21,7 +21,7 @@ public partial class Sample_VpnGatewayResource [Ignore("Only validating compilation of examples")] public async Task Get_VpnGatewayGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VpnGatewayGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VpnGatewayGet.json // this example is just showing the usage of "VpnGateways_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 @@ -51,7 +51,7 @@ public async Task Get_VpnGatewayGet() [Ignore("Only validating compilation of examples")] public async Task Update_VpnGatewayUpdate() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VpnGatewayUpdateTags.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VpnGatewayUpdateTags.json // this example is just showing the usage of "VpnGateways_UpdateTags" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -90,7 +90,7 @@ public async Task Update_VpnGatewayUpdate() [Ignore("Only validating compilation of examples")] public async Task Delete_VpnGatewayDelete() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VpnGatewayDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VpnGatewayDelete.json // this example is just showing the usage of "VpnGateways_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 @@ -116,7 +116,7 @@ public async Task Delete_VpnGatewayDelete() [Ignore("Only validating compilation of examples")] public async Task Reset_ResetVpnGateway() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VpnGatewayReset.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VpnGatewayReset.json // this example is just showing the usage of "VpnGateways_Reset" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -147,7 +147,7 @@ public async Task Reset_ResetVpnGateway() [Ignore("Only validating compilation of examples")] public async Task StartPacketCapture_StartPacketCaptureOnVpnGatewayWithFilter() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VpnGatewayStartPacketCaptureFilterData.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VpnGatewayStartPacketCaptureFilterData.json // this example is just showing the usage of "VpnGateways_StartPacketCapture" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -178,7 +178,7 @@ public async Task StartPacketCapture_StartPacketCaptureOnVpnGatewayWithFilter() [Ignore("Only validating compilation of examples")] public async Task StartPacketCapture_StartPacketCaptureOnVpnGatewayWithoutFilter() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VpnGatewayStartPacketCapture.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VpnGatewayStartPacketCapture.json // this example is just showing the usage of "VpnGateways_StartPacketCapture" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -205,7 +205,7 @@ public async Task StartPacketCapture_StartPacketCaptureOnVpnGatewayWithoutFilter [Ignore("Only validating compilation of examples")] public async Task StopPacketCapture_StopPacketCaptureOnVpnGateway() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VpnGatewayStopPacketCapture.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VpnGatewayStopPacketCapture.json // this example is just showing the usage of "VpnGateways_StopPacketCapture" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -236,7 +236,7 @@ public async Task StopPacketCapture_StopPacketCaptureOnVpnGateway() [Ignore("Only validating compilation of examples")] public async Task GetVpnGateways_VpnGatewayListBySubscription() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VpnGatewayList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VpnGatewayList.json // this example is just showing the usage of "VpnGateways_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VpnLinkConnectionSharedKeyResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VpnLinkConnectionSharedKeyResource.cs index 85c561e59797..97c42adefeff 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VpnLinkConnectionSharedKeyResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VpnLinkConnectionSharedKeyResource.cs @@ -20,7 +20,7 @@ public partial class Sample_VpnLinkConnectionSharedKeyResource [Ignore("Only validating compilation of examples")] public async Task Get_VpnSiteLinkConnectionDefaultSharedKeyGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VpnSiteLinkConnectionDefaultSharedKeyGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VpnSiteLinkConnectionDefaultSharedKeyGet.json // this example is just showing the usage of "VpnLinkConnections_GetDefaultSharedKey" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -52,7 +52,7 @@ public async Task Get_VpnSiteLinkConnectionDefaultSharedKeyGet() [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_VpnSiteLinkConnectionDefaultSharedKeyPut() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VpnSiteLinkConnectionDefaultSharedKeyPut.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VpnSiteLinkConnectionDefaultSharedKeyPut.json // this example is just showing the usage of "VpnLinkConnections_SetOrInitDefaultSharedKey" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -92,7 +92,7 @@ public async Task CreateOrUpdate_VpnSiteLinkConnectionDefaultSharedKeyPut() [Ignore("Only validating compilation of examples")] public async Task GetDefaultSharedKey_VpnSiteLinkConnectionDefaultSharedKeyList() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VpnSiteLinkConnectionDefaultSharedKeyList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VpnSiteLinkConnectionDefaultSharedKeyList.json // this example is just showing the usage of "VpnLinkConnections_ListDefaultSharedKey" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details 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/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VpnServerConfigurationCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VpnServerConfigurationCollection.cs index 6b19f5b0e6e7..096a6c2bbb38 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VpnServerConfigurationCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VpnServerConfigurationCollection.cs @@ -21,7 +21,7 @@ public partial class Sample_VpnServerConfigurationCollection [Ignore("Only validating compilation of examples")] public async Task Get_VpnServerConfigurationGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VpnServerConfigurationGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VpnServerConfigurationGet.json // this example is just showing the usage of "VpnServerConfigurations_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -54,7 +54,7 @@ public async Task Get_VpnServerConfigurationGet() [Ignore("Only validating compilation of examples")] public async Task Exists_VpnServerConfigurationGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VpnServerConfigurationGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VpnServerConfigurationGet.json // this example is just showing the usage of "VpnServerConfigurations_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -83,7 +83,7 @@ public async Task Exists_VpnServerConfigurationGet() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_VpnServerConfigurationGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VpnServerConfigurationGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VpnServerConfigurationGet.json // this example is just showing the usage of "VpnServerConfigurations_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 @@ -124,7 +124,7 @@ public async Task GetIfExists_VpnServerConfigurationGet() [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_VpnServerConfigurationCreate() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VpnServerConfigurationPut.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VpnServerConfigurationPut.json // this example is just showing the usage of "VpnServerConfigurations_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 @@ -248,7 +248,7 @@ public async Task CreateOrUpdate_VpnServerConfigurationCreate() [Ignore("Only validating compilation of examples")] public async Task GetAll_VpnServerConfigurationListByResourceGroup() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VpnServerConfigurationListByResourceGroup.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VpnServerConfigurationListByResourceGroup.json // this example is just showing the usage of "VpnServerConfigurations_ListByResourceGroup" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VpnServerConfigurationPolicyGroupCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VpnServerConfigurationPolicyGroupCollection.cs index d6842ff6b013..4bb4694665e1 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VpnServerConfigurationPolicyGroupCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VpnServerConfigurationPolicyGroupCollection.cs @@ -20,7 +20,7 @@ public partial class Sample_VpnServerConfigurationPolicyGroupCollection [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_ConfigurationPolicyGroupPut() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ConfigurationPolicyGroupPut.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/ConfigurationPolicyGroupPut.json // this example is just showing the usage of "ConfigurationPolicyGroups_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 @@ -74,7 +74,7 @@ public async Task CreateOrUpdate_ConfigurationPolicyGroupPut() [Ignore("Only validating compilation of examples")] public async Task Get_ConfigurationPolicyGroupGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ConfigurationPolicyGroupGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/ConfigurationPolicyGroupGet.json // this example is just showing the usage of "ConfigurationPolicyGroups_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -108,7 +108,7 @@ public async Task Get_ConfigurationPolicyGroupGet() [Ignore("Only validating compilation of examples")] public async Task Exists_ConfigurationPolicyGroupGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ConfigurationPolicyGroupGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/ConfigurationPolicyGroupGet.json // this example is just showing the usage of "ConfigurationPolicyGroups_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -138,7 +138,7 @@ public async Task Exists_ConfigurationPolicyGroupGet() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_ConfigurationPolicyGroupGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ConfigurationPolicyGroupGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/ConfigurationPolicyGroupGet.json // this example is just showing the usage of "ConfigurationPolicyGroups_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -180,7 +180,7 @@ public async Task GetIfExists_ConfigurationPolicyGroupGet() [Ignore("Only validating compilation of examples")] public async Task GetAll_ConfigurationPolicyGroupListByVpnServerConfiguration() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ConfigurationPolicyGroupListByVpnServerConfiguration.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/ConfigurationPolicyGroupListByVpnServerConfiguration.json // this example is just showing the usage of "configurationPolicyGroups_ListByVpnServerConfiguration" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details 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/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VpnServerConfigurationPolicyGroupResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VpnServerConfigurationPolicyGroupResource.cs index f0310936ba98..a80881070e02 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VpnServerConfigurationPolicyGroupResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VpnServerConfigurationPolicyGroupResource.cs @@ -20,7 +20,7 @@ public partial class Sample_VpnServerConfigurationPolicyGroupResource [Ignore("Only validating compilation of examples")] public async Task Update_ConfigurationPolicyGroupPut() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ConfigurationPolicyGroupPut.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/ConfigurationPolicyGroupPut.json // this example is just showing the usage of "ConfigurationPolicyGroups_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 @@ -71,7 +71,7 @@ public async Task Update_ConfigurationPolicyGroupPut() [Ignore("Only validating compilation of examples")] public async Task Delete_ConfigurationPolicyGroupDelete() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ConfigurationPolicyGroupDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/ConfigurationPolicyGroupDelete.json // this example is just showing the usage of "ConfigurationPolicyGroups_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 @@ -98,7 +98,7 @@ public async Task Delete_ConfigurationPolicyGroupDelete() [Ignore("Only validating compilation of examples")] public async Task Get_ConfigurationPolicyGroupGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/ConfigurationPolicyGroupGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/ConfigurationPolicyGroupGet.json // this example is just showing the usage of "ConfigurationPolicyGroups_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/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VpnServerConfigurationResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VpnServerConfigurationResource.cs index f8f97cceab92..30f493559343 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VpnServerConfigurationResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VpnServerConfigurationResource.cs @@ -21,7 +21,7 @@ public partial class Sample_VpnServerConfigurationResource [Ignore("Only validating compilation of examples")] public async Task Get_VpnServerConfigurationGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VpnServerConfigurationGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VpnServerConfigurationGet.json // this example is just showing the usage of "VpnServerConfigurations_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 @@ -51,7 +51,7 @@ public async Task Get_VpnServerConfigurationGet() [Ignore("Only validating compilation of examples")] public async Task Update_VpnServerConfigurationUpdate() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VpnServerConfigurationUpdateTags.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VpnServerConfigurationUpdateTags.json // this example is just showing the usage of "VpnServerConfigurations_UpdateTags" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -89,7 +89,7 @@ public async Task Update_VpnServerConfigurationUpdate() [Ignore("Only validating compilation of examples")] public async Task Delete_VpnServerConfigurationDelete() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VpnServerConfigurationDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VpnServerConfigurationDelete.json // this example is just showing the usage of "VpnServerConfigurations_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 @@ -115,7 +115,7 @@ public async Task Delete_VpnServerConfigurationDelete() [Ignore("Only validating compilation of examples")] public async Task GetVpnServerConfigurations_VpnServerConfigurationList() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VpnServerConfigurationList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VpnServerConfigurationList.json // this example is just showing the usage of "VpnServerConfigurations_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VpnSiteCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VpnSiteCollection.cs index 62a2da677eb4..4d1cf4e3fbae 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VpnSiteCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VpnSiteCollection.cs @@ -21,7 +21,7 @@ public partial class Sample_VpnSiteCollection [Ignore("Only validating compilation of examples")] public async Task Get_VpnSiteGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VpnSiteGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VpnSiteGet.json // this example is just showing the usage of "VpnSites_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -54,7 +54,7 @@ public async Task Get_VpnSiteGet() [Ignore("Only validating compilation of examples")] public async Task Exists_VpnSiteGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VpnSiteGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VpnSiteGet.json // this example is just showing the usage of "VpnSites_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -83,7 +83,7 @@ public async Task Exists_VpnSiteGet() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_VpnSiteGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VpnSiteGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VpnSiteGet.json // this example is just showing the usage of "VpnSites_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 @@ -124,7 +124,7 @@ public async Task GetIfExists_VpnSiteGet() [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_VpnSiteCreate() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VpnSitePut.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VpnSitePut.json // this example is just showing the usage of "VpnSites_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -147,10 +147,13 @@ public async Task CreateOrUpdate_VpnSiteCreate() VpnSiteData data = new VpnSiteData() { VirtualWanId = new ResourceIdentifier("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.Network/virtualWANs/wan1"), - AddressPrefixes = + AddressSpace = new AddressSpace() + { + AddressPrefixes = { "10.0.0.0/16" }, + }, IsSecuritySite = false, VpnSiteLinks = { @@ -197,7 +200,7 @@ public async Task CreateOrUpdate_VpnSiteCreate() [Ignore("Only validating compilation of examples")] public async Task GetAll_VpnSiteListByResourceGroup() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VpnSiteListByResourceGroup.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VpnSiteListByResourceGroup.json // this example is just showing the usage of "VpnSites_ListByResourceGroup" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VpnSiteLinkCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VpnSiteLinkCollection.cs index f6b02efd61d8..ec3f869336a0 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VpnSiteLinkCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VpnSiteLinkCollection.cs @@ -19,7 +19,7 @@ public partial class Sample_VpnSiteLinkCollection [Ignore("Only validating compilation of examples")] public async Task Get_VpnSiteGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VpnSiteLinkGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VpnSiteLinkGet.json // this example is just showing the usage of "VpnSiteLinks_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -53,7 +53,7 @@ public async Task Get_VpnSiteGet() [Ignore("Only validating compilation of examples")] public async Task Exists_VpnSiteGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VpnSiteLinkGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VpnSiteLinkGet.json // this example is just showing the usage of "VpnSiteLinks_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -83,7 +83,7 @@ public async Task Exists_VpnSiteGet() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_VpnSiteGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VpnSiteLinkGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VpnSiteLinkGet.json // this example is just showing the usage of "VpnSiteLinks_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -125,7 +125,7 @@ public async Task GetIfExists_VpnSiteGet() [Ignore("Only validating compilation of examples")] public async Task GetAll_VpnSiteLinkListByVpnSite() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VpnSiteLinkListByVpnSite.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VpnSiteLinkListByVpnSite.json // this example is just showing the usage of "VpnSiteLinks_ListByVpnSite" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details 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/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VpnSiteLinkConnectionCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VpnSiteLinkConnectionCollection.cs index f853ba007916..7628100413df 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VpnSiteLinkConnectionCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VpnSiteLinkConnectionCollection.cs @@ -19,7 +19,7 @@ public partial class Sample_VpnSiteLinkConnectionCollection [Ignore("Only validating compilation of examples")] public async Task GetAll_VpnSiteLinkConnectionList() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VpnSiteLinkConnectionList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VpnSiteLinkConnectionList.json // this example is just showing the usage of "VpnLinkConnections_ListByVpnConnection" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -56,7 +56,7 @@ public async Task GetAll_VpnSiteLinkConnectionList() [Ignore("Only validating compilation of examples")] public async Task Get_VpnSiteLinkConnectionGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VpnSiteLinkConnectionGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VpnSiteLinkConnectionGet.json // this example is just showing the usage of "VpnSiteLinkConnections_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -91,7 +91,7 @@ public async Task Get_VpnSiteLinkConnectionGet() [Ignore("Only validating compilation of examples")] public async Task Exists_VpnSiteLinkConnectionGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VpnSiteLinkConnectionGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VpnSiteLinkConnectionGet.json // this example is just showing the usage of "VpnSiteLinkConnections_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -122,7 +122,7 @@ public async Task Exists_VpnSiteLinkConnectionGet() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_VpnSiteLinkConnectionGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VpnSiteLinkConnectionGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VpnSiteLinkConnectionGet.json // this example is just showing the usage of "VpnSiteLinkConnections_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/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VpnSiteLinkConnectionResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VpnSiteLinkConnectionResource.cs index 242fad2ae91f..53f370c1ecb3 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VpnSiteLinkConnectionResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VpnSiteLinkConnectionResource.cs @@ -19,7 +19,7 @@ public partial class Sample_VpnSiteLinkConnectionResource [Ignore("Only validating compilation of examples")] public async Task ResetConnectionVpnLinkConnection_ResetVpnLinkConnection() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VpnSiteLinkConnectionReset.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VpnSiteLinkConnectionReset.json // this example is just showing the usage of "VpnLinkConnections_ResetConnection" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -47,7 +47,7 @@ public async Task ResetConnectionVpnLinkConnection_ResetVpnLinkConnection() [Ignore("Only validating compilation of examples")] public async Task GetIkeSasVpnLinkConnection_GetVpnLinkConnectionIkeSa() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VpnSiteLinkConnectionGetIkeSas.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VpnSiteLinkConnectionGetIkeSas.json // this example is just showing the usage of "VpnLinkConnections_GetIkeSas" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details 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 GetIkeSasVpnLinkConnection_GetVpnLinkConnectionIkeSa() [Ignore("Only validating compilation of examples")] public async Task Get_VpnSiteLinkConnectionGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VpnSiteLinkConnectionGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VpnSiteLinkConnectionGet.json // this example is just showing the usage of "VpnSiteLinkConnections_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/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VpnSiteLinkResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VpnSiteLinkResource.cs index 76aa6b5d4e1e..de4a0c731746 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VpnSiteLinkResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VpnSiteLinkResource.cs @@ -19,7 +19,7 @@ public partial class Sample_VpnSiteLinkResource [Ignore("Only validating compilation of examples")] public async Task Get_VpnSiteGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VpnSiteLinkGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VpnSiteLinkGet.json // this example is just showing the usage of "VpnSiteLinks_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/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VpnSiteResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VpnSiteResource.cs index 632581c84e66..308939def3dd 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VpnSiteResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_VpnSiteResource.cs @@ -21,7 +21,7 @@ public partial class Sample_VpnSiteResource [Ignore("Only validating compilation of examples")] public async Task Get_VpnSiteGet() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VpnSiteGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VpnSiteGet.json // this example is just showing the usage of "VpnSites_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 @@ -51,7 +51,7 @@ public async Task Get_VpnSiteGet() [Ignore("Only validating compilation of examples")] public async Task Update_VpnSiteUpdate() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VpnSiteUpdateTags.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VpnSiteUpdateTags.json // this example is just showing the usage of "VpnSites_UpdateTags" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -89,7 +89,7 @@ public async Task Update_VpnSiteUpdate() [Ignore("Only validating compilation of examples")] public async Task Delete_VpnSiteDelete() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VpnSiteDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VpnSiteDelete.json // this example is just showing the usage of "VpnSites_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 @@ -115,7 +115,7 @@ public async Task Delete_VpnSiteDelete() [Ignore("Only validating compilation of examples")] public async Task GetVpnSites_VpnSiteList() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/VpnSiteList.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/VpnSiteList.json // this example is just showing the usage of "VpnSites_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_WebApplicationFirewallPolicyCollection.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_WebApplicationFirewallPolicyCollection.cs index c44200b85065..cdb7266997a4 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_WebApplicationFirewallPolicyCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_WebApplicationFirewallPolicyCollection.cs @@ -21,7 +21,7 @@ public partial class Sample_WebApplicationFirewallPolicyCollection [Ignore("Only validating compilation of examples")] public async Task GetAll_ListsAllWAFPoliciesInAResourceGroup() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/WafListPolicies.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/WafListPolicies.json // this example is just showing the usage of "WebApplicationFirewallPolicies_List" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -56,7 +56,7 @@ public async Task GetAll_ListsAllWAFPoliciesInAResourceGroup() [Ignore("Only validating compilation of examples")] public async Task Get_GetsAWAFPolicyWithinAResourceGroup() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/WafPolicyGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/WafPolicyGet.json // this example is just showing the usage of "WebApplicationFirewallPolicies_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -89,7 +89,7 @@ public async Task Get_GetsAWAFPolicyWithinAResourceGroup() [Ignore("Only validating compilation of examples")] public async Task Exists_GetsAWAFPolicyWithinAResourceGroup() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/WafPolicyGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/WafPolicyGet.json // this example is just showing the usage of "WebApplicationFirewallPolicies_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 @@ -118,7 +118,7 @@ public async Task Exists_GetsAWAFPolicyWithinAResourceGroup() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GetsAWAFPolicyWithinAResourceGroup() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/WafPolicyGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/WafPolicyGet.json // this example is just showing the usage of "WebApplicationFirewallPolicies_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 @@ -159,7 +159,7 @@ public async Task GetIfExists_GetsAWAFPolicyWithinAResourceGroup() [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_CreatesOrUpdatesAWAFPolicyWithinAResourceGroup() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/WafPolicyCreateOrUpdate.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/WafPolicyCreateOrUpdate.json // this example is just showing the usage of "WebApplicationFirewallPolicies_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_WebApplicationFirewallPolicyResource.cs b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_WebApplicationFirewallPolicyResource.cs index 71620c10513d..94d5ce4cb4d5 100644 --- a/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_WebApplicationFirewallPolicyResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/samples/Generated/Samples/Sample_WebApplicationFirewallPolicyResource.cs @@ -21,7 +21,7 @@ public partial class Sample_WebApplicationFirewallPolicyResource [Ignore("Only validating compilation of examples")] public async Task GetWebApplicationFirewallPolicies_ListsAllWAFPoliciesInASubscription() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/WafListAllPolicies.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/WafListAllPolicies.json // this example is just showing the usage of "WebApplicationFirewallPolicies_ListAll" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -52,7 +52,7 @@ public async Task GetWebApplicationFirewallPolicies_ListsAllWAFPoliciesInASubscr [Ignore("Only validating compilation of examples")] public async Task Get_GetsAWAFPolicyWithinAResourceGroup() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/WafPolicyGet.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/WafPolicyGet.json // this example is just showing the usage of "WebApplicationFirewallPolicies_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -82,7 +82,7 @@ public async Task Get_GetsAWAFPolicyWithinAResourceGroup() [Ignore("Only validating compilation of examples")] public async Task Update_CreatesOrUpdatesAWAFPolicyWithinAResourceGroup() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/WafPolicyCreateOrUpdate.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/WafPolicyCreateOrUpdate.json // this example is just showing the usage of "WebApplicationFirewallPolicies_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 @@ -376,7 +376,7 @@ public async Task Update_CreatesOrUpdatesAWAFPolicyWithinAResourceGroup() [Ignore("Only validating compilation of examples")] public async Task Delete_DeletesAWAFPolicyWithinAResourceGroup() { - // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-03-01/examples/WafPolicyDelete.json + // Generated from example definition: specification/network/resource-manager/Microsoft.Network/stable/2024-05-01/examples/WafPolicyDelete.json // this example is just showing the usage of "WebApplicationFirewallPolicies_Delete" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/AdminRuleGroupCollection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/AdminRuleGroupCollection.cs index 69eed14ab177..cb5baddceba7 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/AdminRuleGroupCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/AdminRuleGroupCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -115,7 +115,7 @@ public virtual async Task> CreateOrUpdateAs /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -166,7 +166,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil wai /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -211,7 +211,7 @@ public virtual async Task> GetAsync(string rule /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -256,7 +256,7 @@ public virtual Response Get(string ruleCollectionName, C /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -288,7 +288,7 @@ public virtual AsyncPageable GetAllAsync(int? top = null /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -320,7 +320,7 @@ public virtual Pageable GetAll(int? top = null, string s /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -363,7 +363,7 @@ public virtual async Task> ExistsAsync(string ruleCollectionName, /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -406,7 +406,7 @@ public virtual Response Exists(string ruleCollectionName, CancellationToke /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -451,7 +451,7 @@ public virtual async Task> GetIfExistsA /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/AdminRuleGroupResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/AdminRuleGroupResource.cs index 5746913ba8c7..2c557d825e96 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/AdminRuleGroupResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/AdminRuleGroupResource.cs @@ -109,7 +109,7 @@ public virtual BaseAdminRuleCollection GetBaseAdminRules() /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -140,7 +140,7 @@ public virtual async Task> GetBaseAdminRuleAsync /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -171,7 +171,7 @@ public virtual Response GetBaseAdminRule(string ruleName, /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -211,7 +211,7 @@ public virtual async Task> GetAsync(Cancellatio /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -251,7 +251,7 @@ public virtual Response Get(CancellationToken cancellati /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -294,7 +294,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, bool? f /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -337,7 +337,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, bool? force = null, Canc /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -385,7 +385,7 @@ public virtual async Task> UpdateAsync(Wait /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/ApplicationGatewayCollection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/ApplicationGatewayCollection.cs index 0e7f593972b1..87b7818993bc 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/ApplicationGatewayCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/ApplicationGatewayCollection.cs @@ -65,7 +65,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -114,7 +114,7 @@ public virtual async Task> CreateOrUpda /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -163,7 +163,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -208,7 +208,7 @@ public virtual async Task> GetAsync(string /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -253,7 +253,7 @@ public virtual Response Get(string applicationGatewa /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -283,7 +283,7 @@ public virtual AsyncPageable GetAllAsync(Cancellatio /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -313,7 +313,7 @@ public virtual Pageable GetAll(CancellationToken can /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -356,7 +356,7 @@ public virtual async Task> ExistsAsync(string applicationGatewayN /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -399,7 +399,7 @@ public virtual Response Exists(string applicationGatewayName, Cancellation /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -444,7 +444,7 @@ public virtual async Task> GetIfExi /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/ApplicationGatewayPrivateEndpointConnectionCollection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/ApplicationGatewayPrivateEndpointConnectionCollection.cs index afe5584fd0ca..41aaac8ee035 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/ApplicationGatewayPrivateEndpointConnectionCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/ApplicationGatewayPrivateEndpointConnectionCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -113,7 +113,7 @@ public virtual async Task /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -162,7 +162,7 @@ public virtual ArmOperation /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -207,7 +207,7 @@ public virtual async Task /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -252,7 +252,7 @@ public virtual Response Get /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -282,7 +282,7 @@ public virtual AsyncPageable /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -312,7 +312,7 @@ public virtual Pageable Get /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -355,7 +355,7 @@ public virtual async Task> ExistsAsync(string connectionName, Can /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -398,7 +398,7 @@ public virtual Response Exists(string connectionName, CancellationToken ca /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -443,7 +443,7 @@ public virtual async Task /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/ApplicationGatewayPrivateEndpointConnectionResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/ApplicationGatewayPrivateEndpointConnectionResource.cs index 2b63b6bdfc2d..95ac12ba0007 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/ApplicationGatewayPrivateEndpointConnectionResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/ApplicationGatewayPrivateEndpointConnectionResource.cs @@ -101,7 +101,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -141,7 +141,7 @@ public virtual async Task /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -181,7 +181,7 @@ public virtual Response Get /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -223,7 +223,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -265,7 +265,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -311,7 +311,7 @@ public virtual async Task /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/ApplicationGatewayResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/ApplicationGatewayResource.cs index 0f4833e1455d..2e4134f3c570 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/ApplicationGatewayResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/ApplicationGatewayResource.cs @@ -115,7 +115,7 @@ public virtual ApplicationGatewayPrivateEndpointConnectionCollection GetApplicat /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -146,7 +146,7 @@ public virtual async Task /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -177,7 +177,7 @@ public virtual Response Get /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -217,7 +217,7 @@ public virtual async Task> GetAsync(Cancell /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -257,7 +257,7 @@ public virtual Response Get(CancellationToken cancel /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -299,7 +299,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -341,7 +341,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -383,7 +383,7 @@ public virtual async Task> UpdateAsync(Netw /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -425,7 +425,7 @@ public virtual Response Update(NetworkTagsObject net /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -467,7 +467,7 @@ public virtual async Task StartAsync(WaitUntil waitUntil, Cancella /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -509,7 +509,7 @@ public virtual ArmOperation Start(WaitUntil waitUntil, CancellationToken cancell /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -551,7 +551,7 @@ public virtual async Task StopAsync(WaitUntil waitUntil, Cancellat /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -593,7 +593,7 @@ public virtual ArmOperation Stop(WaitUntil waitUntil, CancellationToken cancella /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -636,7 +636,7 @@ public virtual async Task> Backend /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -679,7 +679,7 @@ public virtual ArmOperation BackendHealth(WaitU /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -726,7 +726,7 @@ public virtual async Task> /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -773,7 +773,7 @@ public virtual ArmOperation BackendHeal /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// @@ -799,7 +799,7 @@ public virtual AsyncPageable GetApplicati /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// @@ -825,7 +825,7 @@ public virtual Pageable GetApplicationGat /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -887,7 +887,7 @@ public virtual async Task> AddTagAsync(stri /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -949,7 +949,7 @@ public virtual Response AddTag(string key, string va /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -1006,7 +1006,7 @@ public virtual async Task> SetTagsAsync(IDi /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -1063,7 +1063,7 @@ public virtual Response SetTags(IDictionary /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -1123,7 +1123,7 @@ public virtual async Task> RemoveTagAsync(s /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/ApplicationGatewayWafDynamicManifestCollection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/ApplicationGatewayWafDynamicManifestCollection.cs index e37baabcc6ed..74717684078c 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/ApplicationGatewayWafDynamicManifestCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/ApplicationGatewayWafDynamicManifestCollection.cs @@ -73,7 +73,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -113,7 +113,7 @@ public virtual async Task /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -153,7 +153,7 @@ public virtual Response Get(Cancel /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -183,7 +183,7 @@ public virtual AsyncPageable GetAl /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -213,7 +213,7 @@ public virtual Pageable GetAll(Can /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -251,7 +251,7 @@ public virtual async Task> ExistsAsync(CancellationToken cancella /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -289,7 +289,7 @@ public virtual Response Exists(CancellationToken cancellationToken = defau /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -329,7 +329,7 @@ public virtual async Task /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/ApplicationGatewayWafDynamicManifestResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/ApplicationGatewayWafDynamicManifestResource.cs index ade25503ce60..46beb7e0791a 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/ApplicationGatewayWafDynamicManifestResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/ApplicationGatewayWafDynamicManifestResource.cs @@ -100,7 +100,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -140,7 +140,7 @@ public virtual async Task /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/ApplicationSecurityGroupCollection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/ApplicationSecurityGroupCollection.cs index d909cf067652..a162fda8b556 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/ApplicationSecurityGroupCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/ApplicationSecurityGroupCollection.cs @@ -65,7 +65,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -114,7 +114,7 @@ public virtual async Task> Create /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -163,7 +163,7 @@ public virtual ArmOperation CreateOrUpdate(Wai /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -208,7 +208,7 @@ public virtual async Task> GetAsync(s /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -253,7 +253,7 @@ public virtual Response Get(string application /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -283,7 +283,7 @@ public virtual AsyncPageable GetAllAsync(Cance /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -313,7 +313,7 @@ public virtual Pageable GetAll(CancellationTok /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -356,7 +356,7 @@ public virtual async Task> ExistsAsync(string applicationSecurity /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -399,7 +399,7 @@ public virtual Response Exists(string applicationSecurityGroupName, Cancel /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -444,7 +444,7 @@ public virtual async Task> Ge /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/ApplicationSecurityGroupResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/ApplicationSecurityGroupResource.cs index dd7448671534..facf413571d8 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/ApplicationSecurityGroupResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/ApplicationSecurityGroupResource.cs @@ -103,7 +103,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -143,7 +143,7 @@ public virtual async Task> GetAsync(C /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -183,7 +183,7 @@ public virtual Response Get(CancellationToken /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -225,7 +225,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -267,7 +267,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -309,7 +309,7 @@ public virtual async Task> UpdateAsyn /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -351,7 +351,7 @@ public virtual Response Update(NetworkTagsObje /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -413,7 +413,7 @@ public virtual async Task> AddTagAsyn /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -475,7 +475,7 @@ public virtual Response AddTag(string key, str /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -532,7 +532,7 @@ public virtual async Task> SetTagsAsy /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -589,7 +589,7 @@ public virtual Response SetTags(IDictionary /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -649,7 +649,7 @@ public virtual async Task> RemoveTagA /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/ArmNetworkModelFactory.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/ArmNetworkModelFactory.cs index dc998c8bbe9d..c390839e90ec 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/ArmNetworkModelFactory.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/ArmNetworkModelFactory.cs @@ -529,8 +529,9 @@ public static FrontendIPConfigurationData FrontendIPConfigurationData(ResourceId /// Application gateway IP configurations of virtual network resource. /// Set this property to Tenant to allow sharing subnet with other subscriptions in your AAD tenant. This property can only be set if defaultOutboundAccess is set to false, both properties can only be set if subnet is empty. /// Set this property to false to disable default outbound connectivity for all VMs in the subnet. This property can only be set at the time of subnet creation and cannot be updated for an existing subnet. + /// A list of IPAM Pools for allocating IP address prefixes. /// A new instance for mocking. - public static SubnetData SubnetData(ResourceIdentifier id = null, string name = null, ResourceType? resourceType = null, ETag? etag = null, string addressPrefix = null, IEnumerable addressPrefixes = null, NetworkSecurityGroupData networkSecurityGroup = null, RouteTableData routeTable = null, ResourceIdentifier natGatewayId = null, IEnumerable serviceEndpoints = null, IEnumerable serviceEndpointPolicies = null, IEnumerable privateEndpoints = null, IEnumerable ipConfigurations = null, IEnumerable ipConfigurationProfiles = null, IEnumerable ipAllocations = null, IEnumerable resourceNavigationLinks = null, IEnumerable serviceAssociationLinks = null, IEnumerable delegations = null, string purpose = null, NetworkProvisioningState? provisioningState = null, VirtualNetworkPrivateEndpointNetworkPolicy? privateEndpointNetworkPolicy = null, VirtualNetworkPrivateLinkServiceNetworkPolicy? privateLinkServiceNetworkPolicy = null, IEnumerable applicationGatewayIPConfigurations = null, SharingScope? sharingScope = null, bool? defaultOutboundAccess = null) + public static SubnetData SubnetData(ResourceIdentifier id = null, string name = null, ResourceType? resourceType = null, ETag? etag = null, string addressPrefix = null, IEnumerable addressPrefixes = null, NetworkSecurityGroupData networkSecurityGroup = null, RouteTableData routeTable = null, ResourceIdentifier natGatewayId = null, IEnumerable serviceEndpoints = null, IEnumerable serviceEndpointPolicies = null, IEnumerable privateEndpoints = null, IEnumerable ipConfigurations = null, IEnumerable ipConfigurationProfiles = null, IEnumerable ipAllocations = null, IEnumerable resourceNavigationLinks = null, IEnumerable serviceAssociationLinks = null, IEnumerable delegations = null, string purpose = null, NetworkProvisioningState? provisioningState = null, VirtualNetworkPrivateEndpointNetworkPolicy? privateEndpointNetworkPolicy = null, VirtualNetworkPrivateLinkServiceNetworkPolicy? privateLinkServiceNetworkPolicy = null, IEnumerable applicationGatewayIPConfigurations = null, SharingScope? sharingScope = null, bool? defaultOutboundAccess = null, IEnumerable ipamPoolPrefixAllocations = null) { addressPrefixes ??= new List(); serviceEndpoints ??= new List(); @@ -543,6 +544,7 @@ public static SubnetData SubnetData(ResourceIdentifier id = null, string name = serviceAssociationLinks ??= new List(); delegations ??= new List(); applicationGatewayIPConfigurations ??= new List(); + ipamPoolPrefixAllocations ??= new List(); return new SubnetData( id, @@ -570,7 +572,8 @@ public static SubnetData SubnetData(ResourceIdentifier id = null, string name = privateLinkServiceNetworkPolicy, applicationGatewayIPConfigurations?.ToList(), sharingScope, - defaultOutboundAccess); + defaultOutboundAccess, + ipamPoolPrefixAllocations?.ToList()); } /// Initializes a new instance of . @@ -734,6 +737,7 @@ public static NetworkTrackedResourceData NetworkTrackedResourceData(ResourceIden /// The MAC address of the network interface. /// Whether this is a primary network interface on a virtual machine. /// Whether the virtual machine this nic is attached to supports encryption. + /// Whether default outbound connectivity for nic was configured or not. /// If the network interface is configured for accelerated networking. Not applicable to VM sizes which require accelerated networking. /// Indicates whether to disable tcp state tracking. /// Indicates whether IP forwarding is enabled on this network interface. @@ -748,7 +752,7 @@ public static NetworkTrackedResourceData NetworkTrackedResourceData(ResourceIden /// Auxiliary mode of Network Interface resource. /// Auxiliary sku of Network Interface resource. /// A new instance for mocking. - public static NetworkInterfaceData NetworkInterfaceData(ResourceIdentifier id = null, string name = null, ResourceType? resourceType = null, AzureLocation? location = null, IDictionary tags = null, ExtendedLocation extendedLocation = null, ETag? etag = null, ResourceIdentifier virtualMachineId = null, NetworkSecurityGroupData networkSecurityGroup = null, PrivateEndpointData privateEndpoint = null, IEnumerable ipConfigurations = null, IEnumerable tapConfigurations = null, NetworkInterfaceDnsSettings dnsSettings = null, string macAddress = null, bool? primary = null, bool? vnetEncryptionSupported = null, bool? enableAcceleratedNetworking = null, bool? disableTcpStateTracking = null, bool? enableIPForwarding = null, IEnumerable hostedWorkloads = null, ResourceIdentifier dscpConfigurationId = null, Guid? resourceGuid = null, NetworkProvisioningState? provisioningState = null, string workloadType = null, NetworkInterfaceNicType? nicType = null, PrivateLinkServiceData privateLinkService = null, NetworkInterfaceMigrationPhase? migrationPhase = null, NetworkInterfaceAuxiliaryMode? auxiliaryMode = null, NetworkInterfaceAuxiliarySku? auxiliarySku = null) + public static NetworkInterfaceData NetworkInterfaceData(ResourceIdentifier id = null, string name = null, ResourceType? resourceType = null, AzureLocation? location = null, IDictionary tags = null, ExtendedLocation extendedLocation = null, ETag? etag = null, ResourceIdentifier virtualMachineId = null, NetworkSecurityGroupData networkSecurityGroup = null, PrivateEndpointData privateEndpoint = null, IEnumerable ipConfigurations = null, IEnumerable tapConfigurations = null, NetworkInterfaceDnsSettings dnsSettings = null, string macAddress = null, bool? primary = null, bool? vnetEncryptionSupported = null, bool? defaultOutboundConnectivityEnabled = null, bool? enableAcceleratedNetworking = null, bool? disableTcpStateTracking = null, bool? enableIPForwarding = null, IEnumerable hostedWorkloads = null, ResourceIdentifier dscpConfigurationId = null, Guid? resourceGuid = null, NetworkProvisioningState? provisioningState = null, string workloadType = null, NetworkInterfaceNicType? nicType = null, PrivateLinkServiceData privateLinkService = null, NetworkInterfaceMigrationPhase? migrationPhase = null, NetworkInterfaceAuxiliaryMode? auxiliaryMode = null, NetworkInterfaceAuxiliarySku? auxiliarySku = null) { tags ??= new Dictionary(); ipConfigurations ??= new List(); @@ -773,6 +777,7 @@ public static NetworkInterfaceData NetworkInterfaceData(ResourceIdentifier id = macAddress, primary, vnetEncryptionSupported, + defaultOutboundConnectivityEnabled, enableAcceleratedNetworking, disableTcpStateTracking, enableIPForwarding, @@ -1416,6 +1421,18 @@ public static ServiceDelegation ServiceDelegation(ResourceIdentifier id = null, provisioningState); } + /// Initializes a new instance of . + /// Number of IP addresses to allocate. + /// List of assigned IP address prefixes in the IpamPool of the associated resource. + /// Resource id of the associated Azure IpamPool resource. + /// A new instance for mocking. + public static IpamPoolPrefixAllocation IpamPoolPrefixAllocation(string numberOfIPAddresses = null, IEnumerable allocatedAddressPrefixes = null, ResourceIdentifier id = null) + { + allocatedAddressPrefixes ??= new List(); + + return new IpamPoolPrefixAllocation(numberOfIPAddresses, allocatedAddressPrefixes?.ToList(), id, serializedAdditionalRawData: null); + } + /// Initializes a new instance of . /// Resource ID. /// Resource name. @@ -2528,8 +2545,9 @@ public static AzureWebCategoryData AzureWebCategoryData(ResourceIdentifier id = /// Enable/Disable Tunneling feature of the Bastion Host resource. /// Enable/Disable Kerberos feature of the Bastion Host resource. /// Enable/Disable Session Recording feature of the Bastion Host resource. + /// Enable/Disable Private Only feature of the Bastion Host resource. /// A new instance for mocking. - public static BastionHostData BastionHostData(ResourceIdentifier id = null, string name = null, ResourceType? resourceType = null, AzureLocation? location = null, IDictionary tags = null, IEnumerable zones = null, ETag? etag = null, BastionHostSkuName? skuName = null, IEnumerable ipConfigurations = null, string dnsName = null, ResourceIdentifier virtualNetworkId = null, IEnumerable networkAclsIPRules = null, NetworkProvisioningState? provisioningState = null, int? scaleUnits = null, bool? disableCopyPaste = null, bool? enableFileCopy = null, bool? enableIPConnect = null, bool? enableShareableLink = null, bool? enableTunneling = null, bool? enableKerberos = null, bool? enableSessionRecording = null) + public static BastionHostData BastionHostData(ResourceIdentifier id = null, string name = null, ResourceType? resourceType = null, AzureLocation? location = null, IDictionary tags = null, IEnumerable zones = null, ETag? etag = null, BastionHostSkuName? skuName = null, IEnumerable ipConfigurations = null, string dnsName = null, ResourceIdentifier virtualNetworkId = null, IEnumerable networkAclsIPRules = null, NetworkProvisioningState? provisioningState = null, int? scaleUnits = null, bool? disableCopyPaste = null, bool? enableFileCopy = null, bool? enableIPConnect = null, bool? enableShareableLink = null, bool? enableTunneling = null, bool? enableKerberos = null, bool? enableSessionRecording = null, bool? enablePrivateOnlyBastion = null) { tags ??= new Dictionary(); zones ??= new List(); @@ -2558,7 +2576,8 @@ public static BastionHostData BastionHostData(ResourceIdentifier id = null, stri enableShareableLink, enableTunneling, enableKerberos, - enableSessionRecording); + enableSessionRecording, + enablePrivateOnlyBastion); } /// Initializes a new instance of . @@ -2567,7 +2586,7 @@ public static BastionHostData BastionHostData(ResourceIdentifier id = null, stri /// Resource type. /// A unique read-only string that changes whenever the resource is updated. /// Reference of the subnet resource. - /// Reference of the PublicIP resource. + /// Reference of the PublicIP resource. Null for private only bastion. /// The provisioning state of the bastion host IP configuration resource. /// Private IP allocation method. /// A new instance for mocking. @@ -3543,7 +3562,7 @@ public static IdpsSignatureListResult IdpsSignatureListResult(long? matchingReco /// The ID of the signature. /// The current mode enforced, 0 - Disabled, 1 - Alert, 2 -Deny. /// Describes the severity of signature: 1 - High, 2 - Medium, 3 - Low. - /// Describes in which direction signature is being enforced: 0 - OutBound, 1 - InBound, 2 - Any, 3 - Internal, 4 - InternalOutbound. + /// Describes in which direction signature is being enforced: 0 - OutBound, 1 - InBound, 2 - Any, 3 - Internal, 4 - InternalOutbound, 5 - InternalInbound. /// Describes the groups the signature belongs to. /// Describes what is the signature enforces. /// Describes the protocol the signatures is being enforced in. @@ -3646,6 +3665,167 @@ public static FirewallPolicyRuleCollectionGroupDraftData FirewallPolicyRuleColle ruleCollections?.ToList()); } + /// Initializes a new instance of . + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The tags. + /// The location. + /// Properties of IpamPool resource properties which are specific to the Pool resource. + /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts". + /// A new instance for mocking. + public static IpamPoolData IpamPoolData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, IpamPoolProperties properties = null, string commonResourceType = null) + { + tags ??= new Dictionary(); + + return new IpamPoolData( + id, + name, + resourceType, + systemData, + tags, + location, + properties, + commonResourceType, + serializedAdditionalRawData: null); + } + + /// Initializes a new instance of . + /// + /// String representing a friendly name for the resource. + /// List of IP address type for the IpamPool. + /// String representing parent IpamPool resource name. If empty the IpamPool will be a root pool. + /// List of IP address prefixes of the resource. + /// Provisioning states of a resource. + /// A new instance for mocking. + public static IpamPoolProperties IpamPoolProperties(string description = null, string displayName = null, IEnumerable ipAddressType = null, string parentPoolName = null, IEnumerable addressPrefixes = null, NetworkProvisioningState? provisioningState = null) + { + ipAddressType ??= new List(); + addressPrefixes ??= new List(); + + return new IpamPoolProperties( + description, + displayName, + ipAddressType?.ToList(), + parentPoolName, + addressPrefixes?.ToList(), + provisioningState, + serializedAdditionalRawData: null); + } + + /// Initializes a new instance of . + /// List of IP address prefixes of the resource. + /// List of IpamPool that are children of this IpamPool. + /// List of assigned IP address prefixes. + /// List of reserved IP address prefixes. These IP addresses could be reclaimed if not assigned in the given time. + /// List of available IP address prefixes. + /// Total number of IP addresses managed in the IpamPool. + /// Total number of assigned IP addresses in the IpamPool. + /// Total number of reserved IP addresses in the IpamPool. + /// Total number of available IP addresses in the IpamPool. + /// A new instance for mocking. + public static PoolUsage PoolUsage(IEnumerable addressPrefixes = null, IEnumerable childPools = null, IEnumerable allocatedAddressPrefixes = null, IEnumerable reservedAddressPrefixes = null, IEnumerable availableAddressPrefixes = null, string totalNumberOfIPAddresses = null, string numberOfAllocatedIPAddresses = null, string numberOfReservedIPAddresses = null, string numberOfAvailableIPAddresses = null) + { + addressPrefixes ??= new List(); + childPools ??= new List(); + allocatedAddressPrefixes ??= new List(); + reservedAddressPrefixes ??= new List(); + availableAddressPrefixes ??= new List(); + + return new PoolUsage( + addressPrefixes?.ToList(), + childPools?.ToList(), + allocatedAddressPrefixes?.ToList(), + reservedAddressPrefixes?.ToList(), + availableAddressPrefixes?.ToList(), + totalNumberOfIPAddresses, + numberOfAllocatedIPAddresses, + numberOfReservedIPAddresses, + numberOfAvailableIPAddresses, + serializedAdditionalRawData: null); + } + + /// Initializes a new instance of . + /// ResourceId of the Azure resource. + /// List of IP address prefixes of the resource. + /// A new instance for mocking. + public static ResourceBasics ResourceBasics(ResourceIdentifier resourceId = null, IEnumerable addressPrefixes = null) + { + addressPrefixes ??= new List(); + + return new ResourceBasics(resourceId, addressPrefixes?.ToList(), serializedAdditionalRawData: null); + } + + /// Initializes a new instance of . + /// Resource id of the associated Azure resource. + /// IpamPool id for which the resource is associated to. + /// + /// List of assigned IP address prefixes in the IpamPool of the associated resource. + /// List of reserved IP address prefixes in the IpamPool of the associated resource. + /// Total number of assigned IP addresses of the association. + /// Total number of reserved IP addresses of the association. + /// Creation time of the association. + /// Expire time for IP addresses reserved. + /// A new instance for mocking. + public static PoolAssociation PoolAssociation(ResourceIdentifier resourceId = null, ResourceIdentifier poolId = null, string description = null, IEnumerable addressPrefixes = null, IEnumerable reservedPrefixes = null, string totalNumberOfIPAddresses = null, string numberOfReservedIPAddresses = null, DateTimeOffset? createdOn = null, DateTimeOffset? reservationExpiresOn = null) + { + addressPrefixes ??= new List(); + reservedPrefixes ??= new List(); + + return new PoolAssociation( + resourceId, + poolId, + description, + addressPrefixes?.ToList(), + reservedPrefixes?.ToList(), + totalNumberOfIPAddresses, + numberOfReservedIPAddresses, + createdOn, + reservationExpiresOn, + serializedAdditionalRawData: null); + } + + /// Initializes a new instance of . + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// Properties of static CIDR resource. + /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts". + /// A new instance for mocking. + public static StaticCidrData StaticCidrData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, StaticCidrProperties properties = null, string commonResourceType = null) + { + return new StaticCidrData( + id, + name, + resourceType, + systemData, + properties, + commonResourceType, + serializedAdditionalRawData: null); + } + + /// Initializes a new instance of . + /// + /// Number of IP addresses to allocate for a static CIDR resource. The IP addresses will be assigned based on IpamPools available space. + /// List of IP address prefixes of the resource. + /// Total number of IP addresses allocated for the static CIDR resource. + /// Provisioning states of a resource. + /// A new instance for mocking. + public static StaticCidrProperties StaticCidrProperties(string description = null, string numberOfIPAddressesToAllocate = null, IEnumerable addressPrefixes = null, string totalNumberOfIPAddresses = null, NetworkProvisioningState? provisioningState = null) + { + addressPrefixes ??= new List(); + + return new StaticCidrProperties( + description, + numberOfIPAddressesToAllocate, + addressPrefixes?.ToList(), + totalNumberOfIPAddresses, + provisioningState, + serializedAdditionalRawData: null); + } + /// Initializes a new instance of . /// Resource ID. /// Resource name. @@ -3936,6 +4116,29 @@ public static InboundNatRulePortMapping InboundNatRulePortMapping(string inbound return new InboundNatRulePortMapping(inboundNatRuleName, protocol, frontendPort, backendPort, serializedAdditionalRawData: null); } + /// Initializes a new instance of . + /// Number of backend instances associated to the LB rule that are considered healthy. + /// Number of backend instances associated to the LB rule that are considered unhealthy. + /// Information about the health per rule of the backend addresses. + /// A new instance for mocking. + public static LoadBalancerHealthPerRule LoadBalancerHealthPerRule(int? up = null, int? down = null, IEnumerable loadBalancerBackendAddresses = null) + { + loadBalancerBackendAddresses ??= new List(); + + return new LoadBalancerHealthPerRule(up, down, loadBalancerBackendAddresses?.ToList(), serializedAdditionalRawData: null); + } + + /// Initializes a new instance of . + /// The IP address belonging to the backend address. + /// The id of the network interface ip configuration belonging to the backend address. + /// The current health of the backend instances that is associated to the LB rule. + /// The explanation of the State. + /// A new instance for mocking. + public static LoadBalancerHealthPerRulePerBackendAddress LoadBalancerHealthPerRulePerBackendAddress(string ipAddress = null, NetworkInterfaceIPConfigurationData networkInterfaceIPConfigurationId = null, string state = null, string reason = null) + { + return new LoadBalancerHealthPerRulePerBackendAddress(ipAddress, networkInterfaceIPConfigurationId, state, reason, serializedAdditionalRawData: null); + } + /// Initializes a new instance of . /// A list of pools migrated from Nic based to IP based pool. /// A new instance for mocking. @@ -4407,6 +4610,88 @@ public static NetworkGroupStaticMemberData NetworkGroupStaticMemberData(Resource serializedAdditionalRawData: null); } + /// Initializes a new instance of . + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// A description of the routing configuration. + /// The provisioning state of the resource. + /// Unique identifier for this resource. + /// A unique read-only string that changes whenever the resource is updated. + /// A new instance for mocking. + public static NetworkManagerRoutingConfigurationData NetworkManagerRoutingConfigurationData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string description = null, NetworkProvisioningState? provisioningState = null, Guid? resourceGuid = null, ETag? etag = null) + { + return new NetworkManagerRoutingConfigurationData( + id, + name, + resourceType, + systemData, + description, + provisioningState, + resourceGuid, + etag, + serializedAdditionalRawData: null); + } + + /// Initializes a new instance of . + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// A description of the routing rule collection. + /// The provisioning state of the resource. + /// Unique identifier for this resource. + /// Groups for configuration. + /// Determines whether BGP route propagation is enabled. Defaults to true. + /// A unique read-only string that changes whenever the resource is updated. + /// A new instance for mocking. + public static NetworkManagerRoutingRulesData NetworkManagerRoutingRulesData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string description = null, NetworkProvisioningState? provisioningState = null, Guid? resourceGuid = null, IEnumerable appliesTo = null, DisableBgpRoutePropagation? disableBgpRoutePropagation = null, ETag? etag = null) + { + appliesTo ??= new List(); + + return new NetworkManagerRoutingRulesData( + id, + name, + resourceType, + systemData, + description, + provisioningState, + resourceGuid, + appliesTo?.ToList(), + disableBgpRoutePropagation, + etag, + serializedAdditionalRawData: null); + } + + /// Initializes a new instance of . + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// A description for this rule. + /// The provisioning state of the resource. + /// Unique identifier for this resource. + /// Indicates the destination for this particular rule. + /// Indicates the next hop for this particular rule. + /// A unique read-only string that changes whenever the resource is updated. + /// A new instance for mocking. + public static NetworkManagerRoutingRuleData NetworkManagerRoutingRuleData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string description = null, NetworkProvisioningState? provisioningState = null, Guid? resourceGuid = null, RoutingRuleRouteDestination destination = null, RoutingRuleNextHop nextHop = null, ETag? etag = null) + { + return new NetworkManagerRoutingRuleData( + id, + name, + resourceType, + systemData, + description, + provisioningState, + resourceGuid, + destination, + nextHop, + etag, + serializedAdditionalRawData: null); + } + /// Initializes a new instance of . /// The id. /// The name. @@ -4440,11 +4725,12 @@ public static ScopeConnectionData ScopeConnectionData(ResourceIdentifier id = nu /// The systemData. /// A description of the security configuration. /// Enum list of network intent policy based services. + /// Determine update behavior for changes to network groups referenced within the rules in this configuration. /// The provisioning state of the resource. /// Unique identifier for this resource. /// A unique read-only string that changes whenever the resource is updated. /// A new instance for mocking. - public static SecurityAdminConfigurationData SecurityAdminConfigurationData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string description = null, IEnumerable applyOnNetworkIntentPolicyBasedServices = null, NetworkProvisioningState? provisioningState = null, Guid? resourceGuid = null, ETag? etag = null) + public static SecurityAdminConfigurationData SecurityAdminConfigurationData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string description = null, IEnumerable applyOnNetworkIntentPolicyBasedServices = null, AddressSpaceAggregationOption? networkGroupAddressSpaceAggregationOption = null, NetworkProvisioningState? provisioningState = null, Guid? resourceGuid = null, ETag? etag = null) { applyOnNetworkIntentPolicyBasedServices ??= new List(); @@ -4455,6 +4741,7 @@ public static SecurityAdminConfigurationData SecurityAdminConfigurationData(Reso systemData, description, applyOnNetworkIntentPolicyBasedServices?.ToList(), + networkGroupAddressSpaceAggregationOption, provisioningState, resourceGuid, etag, @@ -4602,88 +4889,6 @@ public static NetworkManagerSecurityUserRuleData NetworkManagerSecurityUserRuleD serializedAdditionalRawData: null); } - /// Initializes a new instance of . - /// The id. - /// The name. - /// The resourceType. - /// The systemData. - /// A description of the routing configuration. - /// The provisioning state of the resource. - /// Unique identifier for this resource. - /// A unique read-only string that changes whenever the resource is updated. - /// A new instance for mocking. - public static NetworkManagerRoutingConfigurationData NetworkManagerRoutingConfigurationData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string description = null, NetworkProvisioningState? provisioningState = null, Guid? resourceGuid = null, ETag? etag = null) - { - return new NetworkManagerRoutingConfigurationData( - id, - name, - resourceType, - systemData, - description, - provisioningState, - resourceGuid, - etag, - serializedAdditionalRawData: null); - } - - /// Initializes a new instance of . - /// The id. - /// The name. - /// The resourceType. - /// The systemData. - /// A description of the routing rule collection. - /// The provisioning state of the resource. - /// Unique identifier for this resource. - /// Groups for configuration. - /// Determines whether BGP route propagation is enabled. Defaults to true. - /// A unique read-only string that changes whenever the resource is updated. - /// A new instance for mocking. - public static NetworkManagerRoutingRulesData NetworkManagerRoutingRulesData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string description = null, NetworkProvisioningState? provisioningState = null, Guid? resourceGuid = null, IEnumerable appliesTo = null, DisableBgpRoutePropagation? disableBgpRoutePropagation = null, ETag? etag = null) - { - appliesTo ??= new List(); - - return new NetworkManagerRoutingRulesData( - id, - name, - resourceType, - systemData, - description, - provisioningState, - resourceGuid, - appliesTo?.ToList(), - disableBgpRoutePropagation, - etag, - serializedAdditionalRawData: null); - } - - /// Initializes a new instance of . - /// The id. - /// The name. - /// The resourceType. - /// The systemData. - /// A description for this rule. - /// The provisioning state of the resource. - /// Unique identifier for this resource. - /// Indicates the destination for this particular rule. - /// Indicates the next hop for this particular rule. - /// A unique read-only string that changes whenever the resource is updated. - /// A new instance for mocking. - public static NetworkManagerRoutingRuleData NetworkManagerRoutingRuleData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, string description = null, NetworkProvisioningState? provisioningState = null, Guid? resourceGuid = null, RoutingRuleRouteDestination destination = null, RoutingRuleNextHop nextHop = null, ETag? etag = null) - { - return new NetworkManagerRoutingRuleData( - id, - name, - resourceType, - systemData, - description, - provisioningState, - resourceGuid, - destination, - nextHop, - etag, - serializedAdditionalRawData: null); - } - /// Initializes a new instance of . /// Resource ID. /// Resource name. @@ -4778,6 +4983,103 @@ public static ContainerNetworkInterfaceIPConfiguration ContainerNetworkInterface return new ContainerNetworkInterfaceIPConfiguration(name, containerNetworkInterfaceIPConfigurationType, etag, provisioningState, serializedAdditionalRawData: null); } + /// Initializes a new instance of . + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// Represents the Reachability Analysis Intent properties. + /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts". + /// A new instance for mocking. + public static ReachabilityAnalysisIntentData ReachabilityAnalysisIntentData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, ReachabilityAnalysisIntentProperties properties = null, string commonResourceType = null) + { + return new ReachabilityAnalysisIntentData( + id, + name, + resourceType, + systemData, + properties, + commonResourceType, + serializedAdditionalRawData: null); + } + + /// Initializes a new instance of . + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// Represents the Reachability Analysis Run properties. + /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts". + /// A new instance for mocking. + public static ReachabilityAnalysisRunData ReachabilityAnalysisRunData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, ReachabilityAnalysisRunProperties properties = null, string commonResourceType = null) + { + return new ReachabilityAnalysisRunData( + id, + name, + resourceType, + systemData, + properties, + commonResourceType, + serializedAdditionalRawData: null); + } + + /// Initializes a new instance of . + /// + /// Id of the intent resource to run analysis on. + /// Intent information. + /// + /// + /// Provisioning states of a resource. + /// A new instance for mocking. + public static ReachabilityAnalysisRunProperties ReachabilityAnalysisRunProperties(string description = null, string intentId = null, IntentContent intentContent = null, string analysisResult = null, string errorMessage = null, NetworkProvisioningState? provisioningState = null) + { + return new ReachabilityAnalysisRunProperties( + description, + intentId, + intentContent, + analysisResult, + errorMessage, + provisioningState, + serializedAdditionalRawData: null); + } + + /// Initializes a new instance of . + /// + /// Source resource id of the intent. + /// Destination resource id of the intent. + /// IP traffic information. + /// A new instance for mocking. + public static IntentContent IntentContent(string description = null, ResourceIdentifier sourceResourceId = null, ResourceIdentifier destinationResourceId = null, IPTraffic ipTraffic = null) + { + return new IntentContent(description, sourceResourceId, destinationResourceId, ipTraffic, serializedAdditionalRawData: null); + } + + /// Initializes a new instance of . + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The tags. + /// The location. + /// Properties of Verifier Workspace resource. + /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts". + /// A new instance for mocking. + public static VerifierWorkspaceData VerifierWorkspaceData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, VerifierWorkspaceProperties properties = null, string commonResourceType = null) + { + tags ??= new Dictionary(); + + return new VerifierWorkspaceData( + id, + name, + resourceType, + systemData, + tags, + location, + properties, + commonResourceType, + serializedAdditionalRawData: null); + } + /// Initializes a new instance of . /// Resource ID. /// Resource name. @@ -4869,7 +5171,7 @@ public static VirtualApplianceNicProperties VirtualApplianceNicProperties(NicTyp /// Initializes a new instance of . /// The service name to which the NVA is delegated. - /// The current provisioning state. + /// Provisioning states of a resource. /// A new instance for mocking. public static VirtualApplianceDelegationProperties VirtualApplianceDelegationProperties(string serviceName = null, NetworkProvisioningState? provisioningState = null) { @@ -6043,7 +6345,7 @@ public static NetworkUsageName NetworkUsageName(string value = null, string loca /// Resource tags. /// The extended location of the virtual network. /// A unique read-only string that changes whenever the resource is updated. - /// The AddressSpace that contains an array of IP address ranges that can be used by subnets. + /// The AddressSpace that contains an array of IP address ranges that can be used by subnets. /// The dhcpOptions that contains an array of DNS servers available to VMs deployed in the virtual network. /// The FlowTimeout value (in minutes) for the Virtual Network. /// A list of subnets in a Virtual Network. @@ -6059,10 +6361,9 @@ public static NetworkUsageName NetworkUsageName(string value = null, string loca /// A collection of references to flow log resources. /// Private Endpoint VNet Policies. /// A new instance for mocking. - public static VirtualNetworkData VirtualNetworkData(ResourceIdentifier id = null, string name = null, ResourceType? resourceType = null, AzureLocation? location = null, IDictionary tags = null, ExtendedLocation extendedLocation = null, ETag? etag = null, IEnumerable addressPrefixes = null, IEnumerable dhcpOptionsDnsServers = null, int? flowTimeoutInMinutes = null, IEnumerable subnets = null, IEnumerable virtualNetworkPeerings = null, Guid? resourceGuid = null, NetworkProvisioningState? provisioningState = null, bool? enableDdosProtection = null, bool? enableVmProtection = null, ResourceIdentifier ddosProtectionPlanId = null, VirtualNetworkBgpCommunities bgpCommunities = null, VirtualNetworkEncryption encryption = null, IEnumerable ipAllocations = null, IEnumerable flowLogs = null, PrivateEndpointVnetPolicy? privateEndpointVnetPolicy = null) + public static VirtualNetworkData VirtualNetworkData(ResourceIdentifier id = null, string name = null, ResourceType? resourceType = null, AzureLocation? location = null, IDictionary tags = null, ExtendedLocation extendedLocation = null, ETag? etag = null, AddressSpace addressSpace = null, IEnumerable dhcpOptionsDnsServers = null, int? flowTimeoutInMinutes = null, IEnumerable subnets = null, IEnumerable virtualNetworkPeerings = null, Guid? resourceGuid = null, NetworkProvisioningState? provisioningState = null, bool? enableDdosProtection = null, bool? enableVmProtection = null, ResourceIdentifier ddosProtectionPlanId = null, VirtualNetworkBgpCommunities bgpCommunities = null, VirtualNetworkEncryption encryption = null, IEnumerable ipAllocations = null, IEnumerable flowLogs = null, PrivateEndpointVnetPolicy? privateEndpointVnetPolicy = null) { tags ??= new Dictionary(); - addressPrefixes ??= new List(); dhcpOptionsDnsServers ??= new List(); subnets ??= new List(); virtualNetworkPeerings ??= new List(); @@ -6078,7 +6379,7 @@ public static VirtualNetworkData VirtualNetworkData(ResourceIdentifier id = null serializedAdditionalRawData: null, extendedLocation, etag, - addressPrefixes != null ? new AddressSpace(addressPrefixes?.ToList(), serializedAdditionalRawData: null) : null, + addressSpace, dhcpOptionsDnsServers != null ? new DhcpOptions(dhcpOptionsDnsServers?.ToList(), serializedAdditionalRawData: null) : null, flowTimeoutInMinutes, subnets?.ToList(), @@ -6105,10 +6406,10 @@ public static VirtualNetworkData VirtualNetworkData(ResourceIdentifier id = null /// If gateway links can be used in remote virtual networking to link to this virtual network. /// If remote gateways can be used on this virtual network. If the flag is set to true, and allowGatewayTransit on remote peering is also true, virtual network will use gateways of remote virtual network for transit. Only one peering can have this flag set to true. This flag cannot be set if virtual network already has a gateway. /// The reference to the remote virtual network. The remote virtual network can be in the same or different region (preview). See here to register for the preview and learn more (https://docs.microsoft.com/en-us/azure/virtual-network/virtual-network-create-peering). - /// The local address space of the local virtual network that is peered. - /// The current local address space of the local virtual network that is peered. - /// The reference to the address space peered with the remote virtual network. - /// The reference to the current address space of the remote virtual network. + /// The local address space of the local virtual network that is peered. + /// The current local address space of the local virtual network that is peered. + /// The reference to the address space peered with the remote virtual network. + /// The reference to the current address space of the remote virtual network. /// The reference to the remote virtual network's Bgp Communities. /// The reference to the remote virtual network's encryption. /// The status of the virtual network peering. @@ -6121,12 +6422,8 @@ public static VirtualNetworkData VirtualNetworkData(ResourceIdentifier id = null /// List of local subnet names that are subnet peered with remote virtual network. /// List of remote subnet names from remote virtual network that are subnet peered. /// A new instance for mocking. - public static VirtualNetworkPeeringData VirtualNetworkPeeringData(ResourceIdentifier id = null, string name = null, ResourceType? resourceType = null, ETag? etag = null, bool? allowVirtualNetworkAccess = null, bool? allowForwardedTraffic = null, bool? allowGatewayTransit = null, bool? useRemoteGateways = null, ResourceIdentifier remoteVirtualNetworkId = null, IEnumerable localAddressPrefixes = null, IEnumerable localVirtualNetworkAddressPrefixes = null, IEnumerable remoteAddressPrefixes = null, IEnumerable remoteVirtualNetworkAddressPrefixes = null, VirtualNetworkBgpCommunities remoteBgpCommunities = null, VirtualNetworkEncryption remoteVirtualNetworkEncryption = null, VirtualNetworkPeeringState? peeringState = null, VirtualNetworkPeeringLevel? peeringSyncLevel = null, NetworkProvisioningState? provisioningState = null, bool? doNotVerifyRemoteGateways = null, Guid? resourceGuid = null, bool? areCompleteVnetsPeered = null, bool? enableOnlyIPv6Peering = null, IEnumerable localSubnetNames = null, IEnumerable remoteSubnetNames = null) + public static VirtualNetworkPeeringData VirtualNetworkPeeringData(ResourceIdentifier id = null, string name = null, ResourceType? resourceType = null, ETag? etag = null, bool? allowVirtualNetworkAccess = null, bool? allowForwardedTraffic = null, bool? allowGatewayTransit = null, bool? useRemoteGateways = null, ResourceIdentifier remoteVirtualNetworkId = null, AddressSpace localAddressSpace = null, AddressSpace localVirtualNetworkAddressSpace = null, AddressSpace remoteAddressSpace = null, AddressSpace remoteVirtualNetworkAddressSpace = null, VirtualNetworkBgpCommunities remoteBgpCommunities = null, VirtualNetworkEncryption remoteVirtualNetworkEncryption = null, VirtualNetworkPeeringState? peeringState = null, VirtualNetworkPeeringLevel? peeringSyncLevel = null, NetworkProvisioningState? provisioningState = null, bool? doNotVerifyRemoteGateways = null, Guid? resourceGuid = null, bool? areCompleteVnetsPeered = null, bool? enableOnlyIPv6Peering = null, IEnumerable localSubnetNames = null, IEnumerable remoteSubnetNames = null) { - localAddressPrefixes ??= new List(); - localVirtualNetworkAddressPrefixes ??= new List(); - remoteAddressPrefixes ??= new List(); - remoteVirtualNetworkAddressPrefixes ??= new List(); localSubnetNames ??= new List(); remoteSubnetNames ??= new List(); @@ -6141,10 +6438,10 @@ public static VirtualNetworkPeeringData VirtualNetworkPeeringData(ResourceIdenti allowGatewayTransit, useRemoteGateways, remoteVirtualNetworkId != null ? ResourceManagerModelFactory.WritableSubResource(remoteVirtualNetworkId) : null, - localAddressPrefixes != null ? new AddressSpace(localAddressPrefixes?.ToList(), serializedAdditionalRawData: null) : null, - localVirtualNetworkAddressPrefixes != null ? new AddressSpace(localVirtualNetworkAddressPrefixes?.ToList(), serializedAdditionalRawData: null) : null, - remoteAddressPrefixes != null ? new AddressSpace(remoteAddressPrefixes?.ToList(), serializedAdditionalRawData: null) : null, - remoteVirtualNetworkAddressPrefixes != null ? new AddressSpace(remoteVirtualNetworkAddressPrefixes?.ToList(), serializedAdditionalRawData: null) : null, + localAddressSpace, + localVirtualNetworkAddressSpace, + remoteAddressSpace, + remoteVirtualNetworkAddressSpace, remoteBgpCommunities, remoteVirtualNetworkEncryption, peeringState, @@ -6251,7 +6548,7 @@ public static VirtualNetworkUsageName VirtualNetworkUsageName(string localizedVa /// The reference to the VpnClientConfiguration resource which represents the P2S VpnClient configurations. /// The reference to the VirtualNetworkGatewayPolicyGroup resource which represents the available VirtualNetworkGatewayPolicyGroup for the gateway. /// Virtual network gateway's BGP speaker settings. - /// The reference to the address space resource which represents the custom routes address space specified by the customer for virtual network gateway and VpnClient. + /// The reference to the address space resource which represents the custom routes address space specified by the customer for virtual network gateway and VpnClient. /// The resource GUID property of the virtual network gateway resource. /// The provisioning state of the virtual network gateway resource. /// Whether dns forwarding is enabled or not. @@ -6264,12 +6561,11 @@ public static VirtualNetworkUsageName VirtualNetworkUsageName(string localizedVa /// Property to indicate if the Express Route Gateway serves traffic when there are multiple Express Route Gateways in the vnet. /// Property to indicate if the Express Route Gateway has resiliency model of MultiHomed or SingleHomed. /// A new instance for mocking. - public static VirtualNetworkGatewayData VirtualNetworkGatewayData(ResourceIdentifier id = null, string name = null, ResourceType? resourceType = null, AzureLocation? location = null, IDictionary tags = null, ExtendedLocation extendedLocation = null, ETag? etag = null, ManagedServiceIdentity identity = null, VirtualNetworkGatewayAutoScaleBounds autoScaleBounds = null, IEnumerable ipConfigurations = null, VirtualNetworkGatewayType? gatewayType = null, VpnType? vpnType = null, VpnGatewayGeneration? vpnGatewayGeneration = null, bool? enableBgp = null, bool? enablePrivateIPAddress = null, bool? active = null, bool? disableIPSecReplayProtection = null, ResourceIdentifier gatewayDefaultSiteId = null, VirtualNetworkGatewaySku sku = null, VpnClientConfiguration vpnClientConfiguration = null, IEnumerable virtualNetworkGatewayPolicyGroups = null, BgpSettings bgpSettings = null, IEnumerable customRoutesAddressPrefixes = null, Guid? resourceGuid = null, NetworkProvisioningState? provisioningState = null, bool? enableDnsForwarding = null, string inboundDnsForwardingEndpoint = null, ResourceIdentifier vNetExtendedLocationResourceId = null, IEnumerable natRules = null, bool? enableBgpRouteTranslationForNat = null, bool? allowVirtualWanTraffic = null, bool? allowRemoteVnetTraffic = null, ExpressRouteGatewayAdminState? adminState = null, ExpressRouteGatewayResiliencyModel? resiliencyModel = null) + public static VirtualNetworkGatewayData VirtualNetworkGatewayData(ResourceIdentifier id = null, string name = null, ResourceType? resourceType = null, AzureLocation? location = null, IDictionary tags = null, ExtendedLocation extendedLocation = null, ETag? etag = null, ManagedServiceIdentity identity = null, VirtualNetworkGatewayAutoScaleBounds autoScaleBounds = null, IEnumerable ipConfigurations = null, VirtualNetworkGatewayType? gatewayType = null, VpnType? vpnType = null, VpnGatewayGeneration? vpnGatewayGeneration = null, bool? enableBgp = null, bool? enablePrivateIPAddress = null, bool? active = null, bool? disableIPSecReplayProtection = null, ResourceIdentifier gatewayDefaultSiteId = null, VirtualNetworkGatewaySku sku = null, VpnClientConfiguration vpnClientConfiguration = null, IEnumerable virtualNetworkGatewayPolicyGroups = null, BgpSettings bgpSettings = null, AddressSpace customRoutes = null, Guid? resourceGuid = null, NetworkProvisioningState? provisioningState = null, bool? enableDnsForwarding = null, string inboundDnsForwardingEndpoint = null, ResourceIdentifier vNetExtendedLocationResourceId = null, IEnumerable natRules = null, bool? enableBgpRouteTranslationForNat = null, bool? allowVirtualWanTraffic = null, bool? allowRemoteVnetTraffic = null, ExpressRouteGatewayAdminState? adminState = null, ExpressRouteGatewayResiliencyModel? resiliencyModel = null) { tags ??= new Dictionary(); ipConfigurations ??= new List(); virtualNetworkGatewayPolicyGroups ??= new List(); - customRoutesAddressPrefixes ??= new List(); natRules ??= new List(); return new VirtualNetworkGatewayData( @@ -6296,7 +6592,7 @@ public static VirtualNetworkGatewayData VirtualNetworkGatewayData(ResourceIdenti vpnClientConfiguration, virtualNetworkGatewayPolicyGroups?.ToList(), bgpSettings, - customRoutesAddressPrefixes != null ? new AddressSpace(customRoutesAddressPrefixes?.ToList(), serializedAdditionalRawData: null) : null, + customRoutes, resourceGuid, provisioningState, enableDnsForwarding, @@ -6391,13 +6687,12 @@ public static VpnClientRevokedCertificate VpnClientRevokedCertificate(ResourceId /// Resource name. /// Resource type. /// A unique read-only string that changes whenever the resource is updated. - /// The reference to the address space resource which represents Address space for P2S VpnClient. + /// The reference to the address space resource which represents Address space for P2S VpnClient. /// List of references to virtualNetworkGatewayPolicyGroups. /// The provisioning state of the VngClientConnectionConfiguration resource. /// A new instance for mocking. - public static VngClientConnectionConfiguration VngClientConnectionConfiguration(ResourceIdentifier id = null, string name = null, ResourceType? resourceType = null, ETag? etag = null, IEnumerable vpnClientAddressPrefixes = null, IEnumerable virtualNetworkGatewayPolicyGroups = null, NetworkProvisioningState? provisioningState = null) + public static VngClientConnectionConfiguration VngClientConnectionConfiguration(ResourceIdentifier id = null, string name = null, ResourceType? resourceType = null, ETag? etag = null, AddressSpace vpnClientAddressPool = null, IEnumerable virtualNetworkGatewayPolicyGroups = null, NetworkProvisioningState? provisioningState = null) { - vpnClientAddressPrefixes ??= new List(); virtualNetworkGatewayPolicyGroups ??= new List(); return new VngClientConnectionConfiguration( @@ -6406,7 +6701,7 @@ public static VngClientConnectionConfiguration VngClientConnectionConfiguration( resourceType, serializedAdditionalRawData: null, etag, - vpnClientAddressPrefixes != null ? new AddressSpace(vpnClientAddressPrefixes?.ToList(), serializedAdditionalRawData: null) : null, + vpnClientAddressPool, virtualNetworkGatewayPolicyGroups?.ToList(), provisioningState); } @@ -6642,6 +6937,97 @@ public static GatewayRoute GatewayRoute(string localAddress = null, string netwo serializedAdditionalRawData: null); } + /// Initializes a new instance of . + /// Peering location of the test. + /// All circuits in the peering location. + /// The current status of the test. + /// Time when the test was started. + /// Time when the test was completed. + /// All connections to the circuits in the peering location. + /// The unique GUID associated with the test. + /// The type of failover test. + /// A list of all issues with the test. + /// A new instance for mocking. + public static ExpressRouteFailoverTestDetails ExpressRouteFailoverTestDetails(string peeringLocation = null, IEnumerable circuits = null, FailoverTestStatus? status = null, DateTimeOffset? startOn = null, DateTimeOffset? endOn = null, IEnumerable connections = null, Guid? testGuid = null, FailoverTestType? testType = null, IEnumerable issues = null) + { + circuits ??= new List(); + connections ??= new List(); + issues ??= new List(); + + return new ExpressRouteFailoverTestDetails( + peeringLocation, + circuits?.ToList(), + status, + startOn, + endOn, + connections?.ToList(), + testGuid, + testType, + issues?.ToList(), + serializedAdditionalRawData: null); + } + + /// Initializes a new instance of . + /// NRP Resource URI of the circuit. + /// Circuit Name. + /// Connection name associated with the circuit. + /// A new instance for mocking. + public static ExpressRouteFailoverCircuitResourceDetails ExpressRouteFailoverCircuitResourceDetails(Uri nrpResourceUri = null, string name = null, string connectionName = null) + { + return new ExpressRouteFailoverCircuitResourceDetails(nrpResourceUri, name, connectionName, serializedAdditionalRawData: null); + } + + /// Initializes a new instance of . + /// NRP Resource URI of the connection. + /// Connection Name. + /// The current status of the connection. + /// Time when the connection was last updated. + /// A new instance for mocking. + public static ExpressRouteFailoverConnectionResourceDetails ExpressRouteFailoverConnectionResourceDetails(Uri nrpResourceUri = null, string name = null, FailoverConnectionStatus? status = null, DateTimeOffset? lastUpdatedOn = null) + { + return new ExpressRouteFailoverConnectionResourceDetails(nrpResourceUri, name, status, lastUpdatedOn, serializedAdditionalRawData: null); + } + + /// Initializes a new instance of . + /// Peering location of the test. + /// The current status of the test. + /// Time when the test was started. + /// Time when the test was completed. + /// List of routes received from this peering as well as some other peering location. + /// List of al the routes that were received only from this peering location. + /// Whether the failover simulation was successful or not. + /// List of all the failover connections for this peering location. + /// A new instance for mocking. + public static ExpressRouteFailoverSingleTestDetails ExpressRouteFailoverSingleTestDetails(string peeringLocation = null, FailoverTestStatusForSingleTest? status = null, string startTimeUtc = null, string endTimeUtc = null, IEnumerable redundantRoutes = null, IEnumerable nonRedundantRoutes = null, bool? wasSimulationSuccessful = null, IEnumerable failoverConnectionDetails = null) + { + redundantRoutes ??= new List(); + nonRedundantRoutes ??= new List(); + failoverConnectionDetails ??= new List(); + + return new ExpressRouteFailoverSingleTestDetails( + peeringLocation, + status, + startTimeUtc, + endTimeUtc, + redundantRoutes?.ToList(), + nonRedundantRoutes?.ToList(), + wasSimulationSuccessful, + failoverConnectionDetails?.ToList(), + serializedAdditionalRawData: null); + } + + /// Initializes a new instance of . + /// A list of all the peering locations for the redundant routes. + /// A list of all the redundant routes in the peering locations. + /// A new instance for mocking. + public static ExpressRouteFailoverRedundantRoute ExpressRouteFailoverRedundantRoute(IEnumerable peeringLocations = null, IEnumerable routes = null) + { + peeringLocations ??= new List(); + routes ??= new List(); + + return new ExpressRouteFailoverRedundantRoute(peeringLocations?.ToList(), routes?.ToList(), serializedAdditionalRawData: null); + } + /// Initializes a new instance of . /// Resource ID. /// Resource name. @@ -6731,17 +7117,16 @@ public static VirtualNetworkGatewayConnectionData VirtualNetworkGatewayConnectio /// Resource location. /// Resource tags. /// A unique read-only string that changes whenever the resource is updated. - /// Local network site address space. + /// Local network site address space. /// IP address of local network gateway. /// FQDN of local network gateway. /// Local network gateway's BGP speaker settings. /// The resource GUID property of the local network gateway resource. /// The provisioning state of the local network gateway resource. /// A new instance for mocking. - public static LocalNetworkGatewayData LocalNetworkGatewayData(ResourceIdentifier id = null, string name = null, ResourceType? resourceType = null, AzureLocation? location = null, IDictionary tags = null, ETag? etag = null, IEnumerable localNetworkAddressPrefixes = null, string gatewayIPAddress = null, string fqdn = null, BgpSettings bgpSettings = null, Guid? resourceGuid = null, NetworkProvisioningState? provisioningState = null) + public static LocalNetworkGatewayData LocalNetworkGatewayData(ResourceIdentifier id = null, string name = null, ResourceType? resourceType = null, AzureLocation? location = null, IDictionary tags = null, ETag? etag = null, AddressSpace localNetworkAddressSpace = null, string gatewayIPAddress = null, string fqdn = null, BgpSettings bgpSettings = null, Guid? resourceGuid = null, NetworkProvisioningState? provisioningState = null) { tags ??= new Dictionary(); - localNetworkAddressPrefixes ??= new List(); return new LocalNetworkGatewayData( id, @@ -6751,7 +7136,7 @@ public static LocalNetworkGatewayData LocalNetworkGatewayData(ResourceIdentifier tags, serializedAdditionalRawData: null, etag, - localNetworkAddressPrefixes != null ? new AddressSpace(localNetworkAddressPrefixes?.ToList(), serializedAdditionalRawData: null) : null, + localNetworkAddressSpace, gatewayIPAddress, fqdn, bgpSettings, @@ -6910,17 +7295,16 @@ public static VirtualWanData VirtualWanData(ResourceIdentifier id = null, string /// The device properties. /// The ip-address for the vpn-site. /// The key for vpn-site that can be used for connections. - /// The AddressSpace that contains an array of IP address ranges. + /// The AddressSpace that contains an array of IP address ranges. /// The set of bgp properties. /// The provisioning state of the VPN site resource. /// IsSecuritySite flag. /// List of all vpn site links. /// Office365 Policy. /// A new instance for mocking. - public static VpnSiteData VpnSiteData(ResourceIdentifier id = null, string name = null, ResourceType? resourceType = null, AzureLocation? location = null, IDictionary tags = null, ETag? etag = null, ResourceIdentifier virtualWanId = null, DeviceProperties deviceProperties = null, string ipAddress = null, string siteKey = null, IEnumerable addressPrefixes = null, BgpSettings bgpProperties = null, NetworkProvisioningState? provisioningState = null, bool? isSecuritySite = null, IEnumerable vpnSiteLinks = null, O365BreakOutCategoryPolicies o365BreakOutCategories = null) + public static VpnSiteData VpnSiteData(ResourceIdentifier id = null, string name = null, ResourceType? resourceType = null, AzureLocation? location = null, IDictionary tags = null, ETag? etag = null, ResourceIdentifier virtualWanId = null, DeviceProperties deviceProperties = null, string ipAddress = null, string siteKey = null, AddressSpace addressSpace = null, BgpSettings bgpProperties = null, NetworkProvisioningState? provisioningState = null, bool? isSecuritySite = null, IEnumerable vpnSiteLinks = null, O365BreakOutCategoryPolicies o365BreakOutCategories = null) { tags ??= new Dictionary(); - addressPrefixes ??= new List(); vpnSiteLinks ??= new List(); return new VpnSiteData( @@ -6935,7 +7319,7 @@ public static VpnSiteData VpnSiteData(ResourceIdentifier id = null, string name deviceProperties, ipAddress, siteKey, - addressPrefixes != null ? new AddressSpace(addressPrefixes?.ToList(), serializedAdditionalRawData: null) : null, + addressSpace, bgpProperties, provisioningState, isSecuritySite, @@ -7105,16 +7489,15 @@ public static P2SVpnGatewayData P2SVpnGatewayData(ResourceIdentifier id = null, /// Resource name. /// Resource type. /// A unique read-only string that changes whenever the resource is updated. - /// The reference to the address space resource which represents Address space for P2S VpnClient. + /// The reference to the address space resource which represents Address space for P2S VpnClient. /// The Routing Configuration indicating the associated and propagated route tables on this connection. /// Flag indicating whether the enable internet security flag is turned on for the P2S Connections or not. /// List of Configuration Policy Groups that this P2SConnectionConfiguration is attached to. /// List of previous Configuration Policy Groups that this P2SConnectionConfiguration was attached to. /// The provisioning state of the P2SConnectionConfiguration resource. /// A new instance for mocking. - public static P2SConnectionConfiguration P2SConnectionConfiguration(ResourceIdentifier id = null, string name = null, ResourceType? resourceType = null, ETag? etag = null, IEnumerable vpnClientAddressPrefixes = null, RoutingConfiguration routingConfiguration = null, bool? enableInternetSecurity = null, IEnumerable configurationPolicyGroupAssociations = null, IEnumerable previousConfigurationPolicyGroupAssociations = null, NetworkProvisioningState? provisioningState = null) + public static P2SConnectionConfiguration P2SConnectionConfiguration(ResourceIdentifier id = null, string name = null, ResourceType? resourceType = null, ETag? etag = null, AddressSpace vpnClientAddressPool = null, RoutingConfiguration routingConfiguration = null, bool? enableInternetSecurity = null, IEnumerable configurationPolicyGroupAssociations = null, IEnumerable previousConfigurationPolicyGroupAssociations = null, NetworkProvisioningState? provisioningState = null) { - vpnClientAddressPrefixes ??= new List(); configurationPolicyGroupAssociations ??= new List(); previousConfigurationPolicyGroupAssociations ??= new List(); @@ -7124,7 +7507,7 @@ public static P2SConnectionConfiguration P2SConnectionConfiguration(ResourceIden resourceType, serializedAdditionalRawData: null, etag, - vpnClientAddressPrefixes != null ? new AddressSpace(vpnClientAddressPrefixes?.ToList(), serializedAdditionalRawData: null) : null, + vpnClientAddressPool, routingConfiguration, enableInternetSecurity, configurationPolicyGroupAssociations?.ToList(), @@ -8252,6 +8635,122 @@ public static NetworkDefaultAdminRule NetworkDefaultAdminRule(ResourceIdentifier resourceGuid); } + /// Initializes a new instance of . + /// Resource ID. + /// Resource name. + /// Resource type. + /// A unique read-only string that changes whenever the resource is updated. + /// The address prefix for the subnet. + /// List of address prefixes for the subnet. + /// The reference to the NetworkSecurityGroup resource. + /// The reference to the RouteTable resource. + /// Nat gateway associated with this subnet. + /// An array of service endpoints. + /// An array of service endpoint policies. + /// An array of references to private endpoints. + /// An array of references to the network interface IP configurations using subnet. + /// Array of IP configuration profiles which reference this subnet. + /// Array of IpAllocation which reference this subnet. + /// An array of references to the external resources using subnet. + /// An array of references to services injecting into this subnet. + /// An array of references to the delegations on the subnet. + /// A read-only string identifying the intention of use for this subnet based on delegations and other user-defined properties. + /// The provisioning state of the subnet resource. + /// Enable or Disable apply network policies on private end point in the subnet. + /// Enable or Disable apply network policies on private link service in the subnet. + /// Application gateway IP configurations of virtual network resource. + /// Set this property to Tenant to allow sharing subnet with other subscriptions in your AAD tenant. This property can only be set if defaultOutboundAccess is set to false, both properties can only be set if subnet is empty. + /// Set this property to false to disable default outbound connectivity for all VMs in the subnet. This property can only be set at the time of subnet creation and cannot be updated for an existing subnet. + /// A new instance for mocking. + [EditorBrowsable(EditorBrowsableState.Never)] + public static SubnetData SubnetData(ResourceIdentifier id, string name, ResourceType? resourceType, ETag? etag, string addressPrefix, IEnumerable addressPrefixes, NetworkSecurityGroupData networkSecurityGroup, RouteTableData routeTable, ResourceIdentifier natGatewayId, IEnumerable serviceEndpoints, IEnumerable serviceEndpointPolicies, IEnumerable privateEndpoints, IEnumerable ipConfigurations, IEnumerable ipConfigurationProfiles, IEnumerable ipAllocations, IEnumerable resourceNavigationLinks, IEnumerable serviceAssociationLinks, IEnumerable delegations, string purpose, NetworkProvisioningState? provisioningState, VirtualNetworkPrivateEndpointNetworkPolicy? privateEndpointNetworkPolicy, VirtualNetworkPrivateLinkServiceNetworkPolicy? privateLinkServiceNetworkPolicy, IEnumerable applicationGatewayIPConfigurations, SharingScope? sharingScope, bool? defaultOutboundAccess) + { + return SubnetData(id: id, name: name, resourceType: resourceType, etag: etag, addressPrefix: addressPrefix, addressPrefixes: addressPrefixes, networkSecurityGroup: networkSecurityGroup, routeTable: routeTable, natGatewayId: natGatewayId, serviceEndpoints: serviceEndpoints, serviceEndpointPolicies: serviceEndpointPolicies, privateEndpoints: privateEndpoints, ipConfigurations: ipConfigurations, ipConfigurationProfiles: ipConfigurationProfiles, ipAllocations: ipAllocations, resourceNavigationLinks: resourceNavigationLinks, serviceAssociationLinks: serviceAssociationLinks, delegations: delegations, purpose: purpose, provisioningState: provisioningState, privateEndpointNetworkPolicy: privateEndpointNetworkPolicy, privateLinkServiceNetworkPolicy: privateLinkServiceNetworkPolicy, applicationGatewayIPConfigurations: applicationGatewayIPConfigurations, sharingScope: sharingScope, defaultOutboundAccess: defaultOutboundAccess, ipamPoolPrefixAllocations: default); + } + + /// Initializes a new instance of . + /// Resource ID. + /// Resource name. + /// Resource type. + /// Resource location. + /// Resource tags. + /// The extended location of the network interface. + /// A unique read-only string that changes whenever the resource is updated. + /// The reference to a virtual machine. + /// The reference to the NetworkSecurityGroup resource. + /// A reference to the private endpoint to which the network interface is linked. + /// A list of IPConfigurations of the network interface. + /// A list of TapConfigurations of the network interface. + /// The DNS settings in network interface. + /// The MAC address of the network interface. + /// Whether this is a primary network interface on a virtual machine. + /// Whether the virtual machine this nic is attached to supports encryption. + /// If the network interface is configured for accelerated networking. Not applicable to VM sizes which require accelerated networking. + /// Indicates whether to disable tcp state tracking. + /// Indicates whether IP forwarding is enabled on this network interface. + /// A list of references to linked BareMetal resources. + /// A reference to the dscp configuration to which the network interface is linked. + /// The resource GUID property of the network interface resource. + /// The provisioning state of the network interface resource. + /// WorkloadType of the NetworkInterface for BareMetal resources. + /// Type of Network Interface resource. + /// Privatelinkservice of the network interface resource. + /// Migration phase of Network Interface resource. + /// Auxiliary mode of Network Interface resource. + /// Auxiliary sku of Network Interface resource. + /// A new instance for mocking. + [EditorBrowsable(EditorBrowsableState.Never)] + public static NetworkInterfaceData NetworkInterfaceData(ResourceIdentifier id, string name, ResourceType? resourceType, AzureLocation? location, IDictionary tags, ExtendedLocation extendedLocation, ETag? etag, ResourceIdentifier virtualMachineId, NetworkSecurityGroupData networkSecurityGroup, PrivateEndpointData privateEndpoint, IEnumerable ipConfigurations, IEnumerable tapConfigurations, NetworkInterfaceDnsSettings dnsSettings, string macAddress, bool? primary, bool? vnetEncryptionSupported, bool? enableAcceleratedNetworking, bool? disableTcpStateTracking, bool? enableIPForwarding, IEnumerable hostedWorkloads, ResourceIdentifier dscpConfigurationId, Guid? resourceGuid, NetworkProvisioningState? provisioningState, string workloadType, NetworkInterfaceNicType? nicType, PrivateLinkServiceData privateLinkService, NetworkInterfaceMigrationPhase? migrationPhase, NetworkInterfaceAuxiliaryMode? auxiliaryMode, NetworkInterfaceAuxiliarySku? auxiliarySku) + { + return NetworkInterfaceData(id: id, name: name, resourceType: resourceType, location: location, tags: tags, extendedLocation: extendedLocation, etag: etag, virtualMachineId: virtualMachineId, networkSecurityGroup: networkSecurityGroup, privateEndpoint: privateEndpoint, ipConfigurations: ipConfigurations, tapConfigurations: tapConfigurations, dnsSettings: dnsSettings, macAddress: macAddress, primary: primary, vnetEncryptionSupported: vnetEncryptionSupported, defaultOutboundConnectivityEnabled: default, enableAcceleratedNetworking: enableAcceleratedNetworking, disableTcpStateTracking: disableTcpStateTracking, enableIPForwarding: enableIPForwarding, hostedWorkloads: hostedWorkloads, dscpConfigurationId: dscpConfigurationId, resourceGuid: resourceGuid, provisioningState: provisioningState, workloadType: workloadType, nicType: nicType, privateLinkService: privateLinkService, migrationPhase: migrationPhase, auxiliaryMode: auxiliaryMode, auxiliarySku: auxiliarySku); + } + + /// Initializes a new instance of . + /// Resource ID. + /// Resource name. + /// Resource type. + /// Resource location. + /// Resource tags. + /// A list of availability zones denoting where the resource needs to come from. + /// A unique read-only string that changes whenever the resource is updated. + /// The sku of this Bastion Host. + /// IP configuration of the Bastion Host resource. + /// FQDN for the endpoint on which bastion host is accessible. + /// Reference to an existing virtual network required for Developer Bastion Host only. + /// + /// The provisioning state of the bastion host resource. + /// The scale units for the Bastion Host resource. + /// Enable/Disable Copy/Paste feature of the Bastion Host resource. + /// Enable/Disable File Copy feature of the Bastion Host resource. + /// Enable/Disable IP Connect feature of the Bastion Host resource. + /// Enable/Disable Shareable Link of the Bastion Host resource. + /// Enable/Disable Tunneling feature of the Bastion Host resource. + /// Enable/Disable Kerberos feature of the Bastion Host resource. + /// Enable/Disable Session Recording feature of the Bastion Host resource. + /// A new instance for mocking. + [EditorBrowsable(EditorBrowsableState.Never)] + public static BastionHostData BastionHostData(ResourceIdentifier id, string name, ResourceType? resourceType, AzureLocation? location, IDictionary tags, IEnumerable zones, ETag? etag, BastionHostSkuName? skuName, IEnumerable ipConfigurations, string dnsName, ResourceIdentifier virtualNetworkId, IEnumerable networkAclsIPRules, NetworkProvisioningState? provisioningState, int? scaleUnits, bool? disableCopyPaste, bool? enableFileCopy, bool? enableIPConnect, bool? enableShareableLink, bool? enableTunneling, bool? enableKerberos, bool? enableSessionRecording) + { + return BastionHostData(id: id, name: name, resourceType: resourceType, location: location, tags: tags, zones: zones, etag: etag, skuName: skuName, ipConfigurations: ipConfigurations, dnsName: dnsName, virtualNetworkId: virtualNetworkId, networkAclsIPRules: networkAclsIPRules, provisioningState: provisioningState, scaleUnits: scaleUnits, disableCopyPaste: disableCopyPaste, enableFileCopy: enableFileCopy, enableIPConnect: enableIPConnect, enableShareableLink: enableShareableLink, enableTunneling: enableTunneling, enableKerberos: enableKerberos, enableSessionRecording: enableSessionRecording, enablePrivateOnlyBastion: default); + } + + /// Initializes a new instance of . + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// A description of the security configuration. + /// Enum list of network intent policy based services. + /// The provisioning state of the resource. + /// Unique identifier for this resource. + /// A unique read-only string that changes whenever the resource is updated. + /// A new instance for mocking. + [EditorBrowsable(EditorBrowsableState.Never)] + public static SecurityAdminConfigurationData SecurityAdminConfigurationData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, string description, IEnumerable applyOnNetworkIntentPolicyBasedServices, NetworkProvisioningState? provisioningState, Guid? resourceGuid, ETag? etag) + { + return SecurityAdminConfigurationData(id: id, name: name, resourceType: resourceType, systemData: systemData, description: description, applyOnNetworkIntentPolicyBasedServices: applyOnNetworkIntentPolicyBasedServices, networkGroupAddressSpaceAggregationOption: default, provisioningState: provisioningState, resourceGuid: resourceGuid, etag: etag); + } + /// Initializes a new instance of . /// Resource ID. /// Resource name. @@ -8363,7 +8862,7 @@ public static AzureFirewallData AzureFirewallData(ResourceIdentifier id, string [EditorBrowsable(EditorBrowsableState.Never)] public static BastionHostData BastionHostData(ResourceIdentifier id, string name, ResourceType? resourceType, AzureLocation? location, IDictionary tags, IEnumerable zones, ETag? etag, BastionHostSkuName? skuName, IEnumerable ipConfigurations, string dnsName, ResourceIdentifier virtualNetworkId, IEnumerable networkAclsIPRules, NetworkProvisioningState? provisioningState, int? scaleUnits, bool? disableCopyPaste, bool? enableFileCopy, bool? enableIPConnect, bool? enableShareableLink, bool? enableTunneling, bool? enableKerberos) { - return BastionHostData(id: id, name: name, resourceType: resourceType, location: location, tags: tags, zones: zones, etag: etag, skuName: skuName, ipConfigurations: ipConfigurations, dnsName: dnsName, virtualNetworkId: virtualNetworkId, networkAclsIPRules: networkAclsIPRules, provisioningState: provisioningState, scaleUnits: scaleUnits, disableCopyPaste: disableCopyPaste, enableFileCopy: enableFileCopy, enableIPConnect: enableIPConnect, enableShareableLink: enableShareableLink, enableTunneling: enableTunneling, enableKerberos: enableKerberos, enableSessionRecording: default); + return BastionHostData(id: id, name: name, resourceType: resourceType, location: location, tags: tags, zones: zones, etag: etag, skuName: skuName, ipConfigurations: ipConfigurations, dnsName: dnsName, virtualNetworkId: virtualNetworkId, networkAclsIPRules: networkAclsIPRules, provisioningState: provisioningState, scaleUnits: scaleUnits, disableCopyPaste: disableCopyPaste, enableFileCopy: enableFileCopy, enableIPConnect: enableIPConnect, enableShareableLink: enableShareableLink, enableTunneling: enableTunneling, enableKerberos: enableKerberos, enableSessionRecording: default, enablePrivateOnlyBastion: default); } /// Initializes a new instance of . @@ -8429,75 +8928,6 @@ public static NetworkGroupData NetworkGroupData(ResourceIdentifier id, string na return NetworkGroupData(id: id, name: name, resourceType: resourceType, systemData: systemData, description: description, memberType: default, provisioningState: provisioningState, resourceGuid: resourceGuid, etag: etag); } - /// Initializes a new instance of . - /// Resource ID. - /// Resource name. - /// Resource type. - /// Resource location. - /// Resource tags. - /// The extended location of the virtual network. - /// A unique read-only string that changes whenever the resource is updated. - /// The AddressSpace that contains an array of IP address ranges that can be used by subnets. - /// The dhcpOptions that contains an array of DNS servers available to VMs deployed in the virtual network. - /// The FlowTimeout value (in minutes) for the Virtual Network. - /// A list of subnets in a Virtual Network. - /// A list of peerings in a Virtual Network. - /// The resourceGuid property of the Virtual Network resource. - /// The provisioning state of the virtual network resource. - /// Indicates if DDoS protection is enabled for all the protected resources in the virtual network. It requires a DDoS protection plan associated with the resource. - /// Indicates if VM protection is enabled for all the subnets in the virtual network. - /// The DDoS protection plan associated with the virtual network. - /// Bgp Communities sent over ExpressRoute with each route corresponding to a prefix in this VNET. - /// Indicates if encryption is enabled on virtual network and if VM without encryption is allowed in encrypted VNet. - /// Array of IpAllocation which reference this VNET. - /// A collection of references to flow log resources. - /// A new instance for mocking. - [EditorBrowsable(EditorBrowsableState.Never)] - public static VirtualNetworkData VirtualNetworkData(ResourceIdentifier id, string name, ResourceType? resourceType, AzureLocation? location, IDictionary tags, ExtendedLocation extendedLocation, ETag? etag, IEnumerable addressPrefixes, IEnumerable dhcpOptionsDnsServers, int? flowTimeoutInMinutes, IEnumerable subnets, IEnumerable virtualNetworkPeerings, Guid? resourceGuid, NetworkProvisioningState? provisioningState, bool? enableDdosProtection, bool? enableVmProtection, ResourceIdentifier ddosProtectionPlanId, VirtualNetworkBgpCommunities bgpCommunities, VirtualNetworkEncryption encryption, IEnumerable ipAllocations, IEnumerable flowLogs) - { - return VirtualNetworkData(id: id, name: name, resourceType: resourceType, location: location, tags: tags, extendedLocation: extendedLocation, etag: etag, addressPrefixes: addressPrefixes, dhcpOptionsDnsServers: dhcpOptionsDnsServers, flowTimeoutInMinutes: flowTimeoutInMinutes, subnets: subnets, virtualNetworkPeerings: virtualNetworkPeerings, resourceGuid: resourceGuid, provisioningState: provisioningState, enableDdosProtection: enableDdosProtection, enableVmProtection: enableVmProtection, ddosProtectionPlanId: ddosProtectionPlanId, bgpCommunities: bgpCommunities, encryption: encryption, ipAllocations: ipAllocations, flowLogs: flowLogs, privateEndpointVnetPolicy: default); - } - - /// Initializes a new instance of . - /// Resource ID. - /// Resource name. - /// Resource type. - /// Resource location. - /// Resource tags. - /// The extended location of type local virtual network gateway. - /// A unique read-only string that changes whenever the resource is updated. - /// Autoscale configuration for virutal network gateway. - /// IP configurations for virtual network gateway. - /// The type of this virtual network gateway. - /// The type of this virtual network gateway. - /// The generation for this VirtualNetworkGateway. Must be None if gatewayType is not VPN. - /// Whether BGP is enabled for this virtual network gateway or not. - /// Whether private IP needs to be enabled on this gateway for connections or not. - /// ActiveActive flag. - /// disableIPSecReplayProtection flag. - /// The reference to the LocalNetworkGateway resource which represents local network site having default routes. Assign Null value in case of removing existing default site setting. - /// The reference to the VirtualNetworkGatewaySku resource which represents the SKU selected for Virtual network gateway. - /// The reference to the VpnClientConfiguration resource which represents the P2S VpnClient configurations. - /// The reference to the VirtualNetworkGatewayPolicyGroup resource which represents the available VirtualNetworkGatewayPolicyGroup for the gateway. - /// Virtual network gateway's BGP speaker settings. - /// The reference to the address space resource which represents the custom routes address space specified by the customer for virtual network gateway and VpnClient. - /// The resource GUID property of the virtual network gateway resource. - /// The provisioning state of the virtual network gateway resource. - /// Whether dns forwarding is enabled or not. - /// The IP address allocated by the gateway to which dns requests can be sent. - /// Customer vnet resource id. VirtualNetworkGateway of type local gateway is associated with the customer vnet. - /// NatRules for virtual network gateway. - /// EnableBgpRouteTranslationForNat flag. - /// Configures this gateway to accept traffic from remote Virtual WAN networks. - /// Configure this gateway to accept traffic from other Azure Virtual Networks. This configuration does not support connectivity to Azure Virtual WAN. - /// Property to indicate if the Express Route Gateway serves traffic when there are multiple Express Route Gateways in the vnet. - /// A new instance for mocking. - [EditorBrowsable(EditorBrowsableState.Never)] - public static VirtualNetworkGatewayData VirtualNetworkGatewayData(ResourceIdentifier id, string name, ResourceType? resourceType, AzureLocation? location, IDictionary tags, ExtendedLocation extendedLocation, ETag? etag, VirtualNetworkGatewayAutoScaleBounds autoScaleBounds, IEnumerable ipConfigurations, VirtualNetworkGatewayType? gatewayType, VpnType? vpnType, VpnGatewayGeneration? vpnGatewayGeneration, bool? enableBgp, bool? enablePrivateIPAddress, bool? active, bool? disableIPSecReplayProtection, ResourceIdentifier gatewayDefaultSiteId, VirtualNetworkGatewaySku sku, VpnClientConfiguration vpnClientConfiguration, IEnumerable virtualNetworkGatewayPolicyGroups, BgpSettings bgpSettings, IEnumerable customRoutesAddressPrefixes, Guid? resourceGuid, NetworkProvisioningState? provisioningState, bool? enableDnsForwarding, string inboundDnsForwardingEndpoint, ResourceIdentifier vNetExtendedLocationResourceId, IEnumerable natRules, bool? enableBgpRouteTranslationForNat, bool? allowVirtualWanTraffic, bool? allowRemoteVnetTraffic, ExpressRouteGatewayAdminState? adminState) - { - return VirtualNetworkGatewayData(id: id, name: name, resourceType: resourceType, location: location, tags: tags, extendedLocation: extendedLocation, etag: etag, identity: default, autoScaleBounds: autoScaleBounds, ipConfigurations: ipConfigurations, gatewayType: gatewayType, vpnType: vpnType, vpnGatewayGeneration: vpnGatewayGeneration, enableBgp: enableBgp, enablePrivateIPAddress: enablePrivateIPAddress, active: active, disableIPSecReplayProtection: disableIPSecReplayProtection, gatewayDefaultSiteId: gatewayDefaultSiteId, sku: sku, vpnClientConfiguration: vpnClientConfiguration, virtualNetworkGatewayPolicyGroups: virtualNetworkGatewayPolicyGroups, bgpSettings: bgpSettings, customRoutesAddressPrefixes: customRoutesAddressPrefixes, resourceGuid: resourceGuid, provisioningState: provisioningState, enableDnsForwarding: enableDnsForwarding, inboundDnsForwardingEndpoint: inboundDnsForwardingEndpoint, vNetExtendedLocationResourceId: vNetExtendedLocationResourceId, natRules: natRules, enableBgpRouteTranslationForNat: enableBgpRouteTranslationForNat, allowVirtualWanTraffic: allowVirtualWanTraffic, allowRemoteVnetTraffic: allowRemoteVnetTraffic, adminState: adminState, resiliencyModel: default); - } - /// Initializes a new instance of . /// Resource ID. /// Resource name. @@ -8575,7 +9005,7 @@ public static NetworkInterfaceIPConfigurationData NetworkInterfaceIPConfiguratio [EditorBrowsable(EditorBrowsableState.Never)] public static SubnetData SubnetData(ResourceIdentifier id, string name, ResourceType? resourceType, ETag? etag, string addressPrefix, IEnumerable addressPrefixes, NetworkSecurityGroupData networkSecurityGroup, RouteTableData routeTable, ResourceIdentifier natGatewayId, IEnumerable serviceEndpoints, IEnumerable serviceEndpointPolicies, IEnumerable privateEndpoints, IEnumerable ipConfigurations, IEnumerable ipConfigurationProfiles, IEnumerable ipAllocations, IEnumerable resourceNavigationLinks, IEnumerable serviceAssociationLinks, IEnumerable delegations, string purpose, NetworkProvisioningState? provisioningState, VirtualNetworkPrivateEndpointNetworkPolicy? privateEndpointNetworkPolicy, VirtualNetworkPrivateLinkServiceNetworkPolicy? privateLinkServiceNetworkPolicy, IEnumerable applicationGatewayIPConfigurations, bool? defaultOutboundAccess) { - return SubnetData(id: id, name: name, resourceType: resourceType, etag: etag, addressPrefix: addressPrefix, addressPrefixes: addressPrefixes, networkSecurityGroup: networkSecurityGroup, routeTable: routeTable, natGatewayId: natGatewayId, serviceEndpoints: serviceEndpoints, serviceEndpointPolicies: serviceEndpointPolicies, privateEndpoints: privateEndpoints, ipConfigurations: ipConfigurations, ipConfigurationProfiles: ipConfigurationProfiles, ipAllocations: ipAllocations, resourceNavigationLinks: resourceNavigationLinks, serviceAssociationLinks: serviceAssociationLinks, delegations: delegations, purpose: purpose, provisioningState: provisioningState, privateEndpointNetworkPolicy: privateEndpointNetworkPolicy, privateLinkServiceNetworkPolicy: privateLinkServiceNetworkPolicy, applicationGatewayIPConfigurations: applicationGatewayIPConfigurations, sharingScope: default, defaultOutboundAccess: defaultOutboundAccess); + return SubnetData(id: id, name: name, resourceType: resourceType, etag: etag, addressPrefix: addressPrefix, addressPrefixes: addressPrefixes, networkSecurityGroup: networkSecurityGroup, routeTable: routeTable, natGatewayId: natGatewayId, serviceEndpoints: serviceEndpoints, serviceEndpointPolicies: serviceEndpointPolicies, privateEndpoints: privateEndpoints, ipConfigurations: ipConfigurations, ipConfigurationProfiles: ipConfigurationProfiles, ipAllocations: ipAllocations, resourceNavigationLinks: resourceNavigationLinks, serviceAssociationLinks: serviceAssociationLinks, delegations: delegations, purpose: purpose, provisioningState: provisioningState, privateEndpointNetworkPolicy: privateEndpointNetworkPolicy, privateLinkServiceNetworkPolicy: privateLinkServiceNetworkPolicy, applicationGatewayIPConfigurations: applicationGatewayIPConfigurations, sharingScope: default, defaultOutboundAccess: defaultOutboundAccess, ipamPoolPrefixAllocations: default); } /// Initializes a new instance of . @@ -8692,32 +9122,6 @@ public static PacketCaptureData PacketCaptureData(ResourceIdentifier id, string return PacketCaptureData(id: id, name: name, resourceType: resourceType, systemData: systemData, etag: etag, target: target, scope: scope, targetType: targetType, bytesToCapturePerPacket: bytesToCapturePerPacket, totalBytesPerSession: totalBytesPerSession, timeLimitInSeconds: timeLimitInSeconds, storageLocation: storageLocation, filters: filters, isContinuousCapture: default, captureSettings: default, provisioningState: provisioningState); } - /// Initializes a new instance of . - /// Resource ID. - /// Resource name. - /// Resource type. - /// A unique read-only string that changes whenever the resource is updated. - /// Whether the VMs in the local virtual network space would be able to access the VMs in remote virtual network space. - /// Whether the forwarded traffic from the VMs in the local virtual network will be allowed/disallowed in remote virtual network. - /// If gateway links can be used in remote virtual networking to link to this virtual network. - /// If remote gateways can be used on this virtual network. If the flag is set to true, and allowGatewayTransit on remote peering is also true, virtual network will use gateways of remote virtual network for transit. Only one peering can have this flag set to true. This flag cannot be set if virtual network already has a gateway. - /// The reference to the remote virtual network. The remote virtual network can be in the same or different region (preview). See here to register for the preview and learn more (https://docs.microsoft.com/en-us/azure/virtual-network/virtual-network-create-peering). - /// The reference to the address space peered with the remote virtual network. - /// The reference to the current address space of the remote virtual network. - /// The reference to the remote virtual network's Bgp Communities. - /// The reference to the remote virtual network's encryption. - /// The status of the virtual network peering. - /// The peering sync status of the virtual network peering. - /// The provisioning state of the virtual network peering resource. - /// If we need to verify the provisioning state of the remote gateway. - /// The resourceGuid property of the Virtual Network peering resource. - /// A new instance for mocking. - [EditorBrowsable(EditorBrowsableState.Never)] - public static VirtualNetworkPeeringData VirtualNetworkPeeringData(ResourceIdentifier id, string name, ResourceType? resourceType, ETag? etag, bool? allowVirtualNetworkAccess, bool? allowForwardedTraffic, bool? allowGatewayTransit, bool? useRemoteGateways, ResourceIdentifier remoteVirtualNetworkId, IEnumerable remoteAddressPrefixes, IEnumerable remoteVirtualNetworkAddressPrefixes, VirtualNetworkBgpCommunities remoteBgpCommunities, VirtualNetworkEncryption remoteVirtualNetworkEncryption, VirtualNetworkPeeringState? peeringState, VirtualNetworkPeeringLevel? peeringSyncLevel, NetworkProvisioningState? provisioningState, bool? doNotVerifyRemoteGateways, Guid? resourceGuid) - { - return VirtualNetworkPeeringData(id: id, name: name, resourceType: resourceType, etag: etag, allowVirtualNetworkAccess: allowVirtualNetworkAccess, allowForwardedTraffic: allowForwardedTraffic, allowGatewayTransit: allowGatewayTransit, useRemoteGateways: useRemoteGateways, remoteVirtualNetworkId: remoteVirtualNetworkId, localAddressPrefixes: default, localVirtualNetworkAddressPrefixes: default, remoteAddressPrefixes: remoteAddressPrefixes, remoteVirtualNetworkAddressPrefixes: remoteVirtualNetworkAddressPrefixes, remoteBgpCommunities: remoteBgpCommunities, remoteVirtualNetworkEncryption: remoteVirtualNetworkEncryption, peeringState: peeringState, peeringSyncLevel: peeringSyncLevel, provisioningState: provisioningState, doNotVerifyRemoteGateways: doNotVerifyRemoteGateways, resourceGuid: resourceGuid, areCompleteVnetsPeered: default, enableOnlyIPv6Peering: default, localSubnetNames: default, remoteSubnetNames: default); - } - /// Initializes a new instance of . /// Resource ID. /// Resource name. diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/AzureFirewallCollection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/AzureFirewallCollection.cs index 73b886b6fd28..ea6751eea615 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/AzureFirewallCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/AzureFirewallCollection.cs @@ -65,7 +65,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -114,7 +114,7 @@ public virtual async Task> CreateOrUpdateAsy /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -163,7 +163,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil wait /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -208,7 +208,7 @@ public virtual async Task> GetAsync(string azure /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -253,7 +253,7 @@ public virtual Response Get(string azureFirewallName, Can /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -283,7 +283,7 @@ public virtual AsyncPageable GetAllAsync(CancellationToke /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -313,7 +313,7 @@ public virtual Pageable GetAll(CancellationToken cancella /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -356,7 +356,7 @@ public virtual async Task> ExistsAsync(string azureFirewallName, /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -399,7 +399,7 @@ public virtual Response Exists(string azureFirewallName, CancellationToken /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -444,7 +444,7 @@ public virtual async Task> GetIfExistsAs /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/AzureFirewallResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/AzureFirewallResource.cs index 6458f5616752..6bba82e8885d 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/AzureFirewallResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/AzureFirewallResource.cs @@ -103,7 +103,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -143,7 +143,7 @@ public virtual async Task> GetAsync(Cancellation /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -183,7 +183,7 @@ public virtual Response Get(CancellationToken cancellatio /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -225,7 +225,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -267,7 +267,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -313,7 +313,7 @@ public virtual async Task> UpdateAsync(WaitU /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -359,7 +359,7 @@ public virtual ArmOperation Update(WaitUntil waitUntil, N /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -401,7 +401,7 @@ public virtual async Task> GetLearnedP /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -443,7 +443,7 @@ public virtual ArmOperation GetLearnedPrefixes(Wait /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -489,7 +489,7 @@ public virtual async Task PacketCaptureAsync(WaitUntil waitUntil, /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -535,7 +535,7 @@ public virtual ArmOperation PacketCapture(WaitUntil waitUntil, FirewallPacketCap /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -597,7 +597,7 @@ public virtual async Task> AddTagAsync(string ke /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -659,7 +659,7 @@ public virtual Response AddTag(string key, string value, /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -716,7 +716,7 @@ public virtual async Task> SetTagsAsync(IDiction /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -773,7 +773,7 @@ public virtual Response SetTags(IDictionary /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -833,7 +833,7 @@ public virtual async Task> RemoveTagAsync(string /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/AzureWebCategoryCollection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/AzureWebCategoryCollection.cs index fd6207abedac..f9c719c47a89 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/AzureWebCategoryCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/AzureWebCategoryCollection.cs @@ -65,7 +65,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -111,7 +111,7 @@ public virtual async Task> GetAsync(string na /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -157,7 +157,7 @@ public virtual Response Get(string name, string expand /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -187,7 +187,7 @@ public virtual AsyncPageable GetAllAsync(CancellationT /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -217,7 +217,7 @@ public virtual Pageable GetAll(CancellationToken cance /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -261,7 +261,7 @@ public virtual async Task> ExistsAsync(string name, string expand /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -305,7 +305,7 @@ public virtual Response Exists(string name, string expand = null, Cancella /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -351,7 +351,7 @@ public virtual async Task> GetIfExist /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/AzureWebCategoryResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/AzureWebCategoryResource.cs index ae3f5a8504c3..114ee7affe29 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/AzureWebCategoryResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/AzureWebCategoryResource.cs @@ -100,7 +100,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -141,7 +141,7 @@ public virtual async Task> GetAsync(string ex /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/BackendAddressPoolCollection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/BackendAddressPoolCollection.cs index 05499818ee07..e3bc5a705fd1 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/BackendAddressPoolCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/BackendAddressPoolCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -113,7 +113,7 @@ public virtual async Task> CreateOrUpda /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -162,7 +162,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -207,7 +207,7 @@ public virtual async Task> GetAsync(string /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -252,7 +252,7 @@ public virtual Response Get(string backendAddressPoo /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -282,7 +282,7 @@ public virtual AsyncPageable GetAllAsync(Cancellatio /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -312,7 +312,7 @@ public virtual Pageable GetAll(CancellationToken can /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -355,7 +355,7 @@ public virtual async Task> ExistsAsync(string backendAddressPoolN /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -398,7 +398,7 @@ public virtual Response Exists(string backendAddressPoolName, Cancellation /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -443,7 +443,7 @@ public virtual async Task> GetIfExi /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/BackendAddressPoolResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/BackendAddressPoolResource.cs index 7c156017bee4..a57eb04dc61b 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/BackendAddressPoolResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/BackendAddressPoolResource.cs @@ -107,7 +107,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -147,7 +147,7 @@ public virtual async Task> GetAsync(Cancell /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -187,7 +187,7 @@ public virtual Response Get(CancellationToken cancel /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -229,7 +229,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -271,7 +271,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -317,7 +317,7 @@ public virtual async Task> UpdateAsync( /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -363,7 +363,7 @@ public virtual ArmOperation Update(WaitUntil waitUnt /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -409,7 +409,7 @@ public virtual async Task /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/BaseAdminRuleCollection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/BaseAdminRuleCollection.cs index 346679452415..5a46eb4baa5e 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/BaseAdminRuleCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/BaseAdminRuleCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -115,7 +115,7 @@ public virtual async Task> CreateOrUpdateAsy /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -166,7 +166,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil wait /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -211,7 +211,7 @@ public virtual async Task> GetAsync(string ruleN /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -256,7 +256,7 @@ public virtual Response Get(string ruleName, Cancellation /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -288,7 +288,7 @@ public virtual AsyncPageable GetAllAsync(int? top = null, /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -320,7 +320,7 @@ public virtual Pageable GetAll(int? top = null, string sk /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -363,7 +363,7 @@ public virtual async Task> ExistsAsync(string ruleName, Cancellat /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -406,7 +406,7 @@ public virtual Response Exists(string ruleName, CancellationToken cancella /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -451,7 +451,7 @@ public virtual async Task> GetIfExistsAs /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/BaseAdminRuleResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/BaseAdminRuleResource.cs index dab20354abaa..f0d622096947 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/BaseAdminRuleResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/BaseAdminRuleResource.cs @@ -103,7 +103,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -143,7 +143,7 @@ public virtual async Task> GetAsync(Cancellation /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -183,7 +183,7 @@ public virtual Response Get(CancellationToken cancellatio /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -226,7 +226,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, bool? f /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -269,7 +269,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, bool? force = null, Canc /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -317,7 +317,7 @@ public virtual async Task> UpdateAsync(WaitU /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/BastionHostCollection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/BastionHostCollection.cs index 0f7e0f0e30a8..83356d708e0f 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/BastionHostCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/BastionHostCollection.cs @@ -65,7 +65,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -114,7 +114,7 @@ public virtual async Task> CreateOrUpdateAsync /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -163,7 +163,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil waitUn /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -208,7 +208,7 @@ public virtual async Task> GetAsync(string bastion /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -253,7 +253,7 @@ public virtual Response Get(string bastionHostName, Cancell /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -283,7 +283,7 @@ public virtual AsyncPageable GetAllAsync(CancellationToken /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -313,7 +313,7 @@ public virtual Pageable GetAll(CancellationToken cancellati /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -356,7 +356,7 @@ public virtual async Task> ExistsAsync(string bastionHostName, Ca /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -399,7 +399,7 @@ public virtual Response Exists(string bastionHostName, CancellationToken c /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -444,7 +444,7 @@ public virtual async Task> GetIfExistsAsyn /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/BastionHostData.Serialization.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/BastionHostData.Serialization.cs index a073c9f3051f..6bad51329abc 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/BastionHostData.Serialization.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/BastionHostData.Serialization.cs @@ -129,6 +129,11 @@ protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWri writer.WritePropertyName("enableSessionRecording"u8); writer.WriteBooleanValue(EnableSessionRecording.Value); } + if (Optional.IsDefined(EnablePrivateOnlyBastion)) + { + writer.WritePropertyName("enablePrivateOnlyBastion"u8); + writer.WriteBooleanValue(EnablePrivateOnlyBastion.Value); + } writer.WriteEndObject(); } @@ -173,6 +178,7 @@ internal static BastionHostData DeserializeBastionHostData(JsonElement element, bool? enableTunneling = default; bool? enableKerberos = default; bool? enableSessionRecording = default; + bool? enablePrivateOnlyBastion = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) @@ -382,6 +388,15 @@ internal static BastionHostData DeserializeBastionHostData(JsonElement element, enableSessionRecording = property0.Value.GetBoolean(); continue; } + if (property0.NameEquals("enablePrivateOnlyBastion"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + enablePrivateOnlyBastion = property0.Value.GetBoolean(); + continue; + } } continue; } @@ -413,7 +428,8 @@ internal static BastionHostData DeserializeBastionHostData(JsonElement element, enableShareableLink, enableTunneling, enableKerberos, - enableSessionRecording); + enableSessionRecording, + enablePrivateOnlyBastion); } BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/BastionHostData.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/BastionHostData.cs index 3f979536e172..ea16f6a9e53a 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/BastionHostData.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/BastionHostData.cs @@ -49,7 +49,8 @@ public BastionHostData() /// Enable/Disable Tunneling feature of the Bastion Host resource. /// Enable/Disable Kerberos feature of the Bastion Host resource. /// Enable/Disable Session Recording feature of the Bastion Host resource. - internal BastionHostData(ResourceIdentifier id, string name, ResourceType? resourceType, AzureLocation? location, IDictionary tags, IDictionary serializedAdditionalRawData, IList zones, ETag? etag, NetworkSku sku, IList ipConfigurations, string dnsName, WritableSubResource virtualNetwork, BastionHostPropertiesFormatNetworkAcls networkAcls, NetworkProvisioningState? provisioningState, int? scaleUnits, bool? disableCopyPaste, bool? enableFileCopy, bool? enableIPConnect, bool? enableShareableLink, bool? enableTunneling, bool? enableKerberos, bool? enableSessionRecording) : base(id, name, resourceType, location, tags, serializedAdditionalRawData) + /// Enable/Disable Private Only feature of the Bastion Host resource. + internal BastionHostData(ResourceIdentifier id, string name, ResourceType? resourceType, AzureLocation? location, IDictionary tags, IDictionary serializedAdditionalRawData, IList zones, ETag? etag, NetworkSku sku, IList ipConfigurations, string dnsName, WritableSubResource virtualNetwork, BastionHostPropertiesFormatNetworkAcls networkAcls, NetworkProvisioningState? provisioningState, int? scaleUnits, bool? disableCopyPaste, bool? enableFileCopy, bool? enableIPConnect, bool? enableShareableLink, bool? enableTunneling, bool? enableKerberos, bool? enableSessionRecording, bool? enablePrivateOnlyBastion) : base(id, name, resourceType, location, tags, serializedAdditionalRawData) { Zones = zones; ETag = etag; @@ -67,6 +68,7 @@ internal BastionHostData(ResourceIdentifier id, string name, ResourceType? resou EnableTunneling = enableTunneling; EnableKerberos = enableKerberos; EnableSessionRecording = enableSessionRecording; + EnablePrivateOnlyBastion = enablePrivateOnlyBastion; } /// A list of availability zones denoting where the resource needs to come from. @@ -136,5 +138,7 @@ public IList NetworkAclsIPRules public bool? EnableKerberos { get; set; } /// Enable/Disable Session Recording feature of the Bastion Host resource. public bool? EnableSessionRecording { get; set; } + /// Enable/Disable Private Only feature of the Bastion Host resource. + public bool? EnablePrivateOnlyBastion { get; set; } } } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/BastionHostResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/BastionHostResource.cs index 7e9174f07193..0284f552b5ed 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/BastionHostResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/BastionHostResource.cs @@ -108,7 +108,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -148,7 +148,7 @@ public virtual async Task> GetAsync(CancellationTo /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -188,7 +188,7 @@ public virtual Response Get(CancellationToken cancellationT /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -230,7 +230,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -272,7 +272,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -318,7 +318,7 @@ public virtual async Task> UpdateAsync(WaitUnt /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -364,7 +364,7 @@ public virtual ArmOperation Update(WaitUntil waitUntil, Net /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -410,7 +410,7 @@ public virtual async Task DeleteBastionShareableLinkByTokenAsync(W /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -456,7 +456,7 @@ public virtual ArmOperation DeleteBastionShareableLinkByToken(WaitUntil waitUnti /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -518,7 +518,7 @@ public virtual async Task> AddTagAsync(string key, /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -580,7 +580,7 @@ public virtual Response AddTag(string key, string value, Ca /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -637,7 +637,7 @@ public virtual async Task> SetTagsAsync(IDictionar /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -694,7 +694,7 @@ public virtual Response SetTags(IDictionary /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -754,7 +754,7 @@ public virtual async Task> RemoveTagAsync(string k /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/BgpConnectionCollection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/BgpConnectionCollection.cs index 8fc3121f92e9..531965823fbe 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/BgpConnectionCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/BgpConnectionCollection.cs @@ -69,7 +69,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -118,7 +118,7 @@ public virtual async Task> CreateOrUpdateAsy /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -167,7 +167,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil wait /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -212,7 +212,7 @@ public virtual async Task> GetAsync(string conne /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -257,7 +257,7 @@ public virtual Response Get(string connectionName, Cancel /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -287,7 +287,7 @@ public virtual AsyncPageable GetAllAsync(CancellationToke /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -317,7 +317,7 @@ public virtual Pageable GetAll(CancellationToken cancella /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -360,7 +360,7 @@ public virtual async Task> ExistsAsync(string connectionName, Can /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -403,7 +403,7 @@ public virtual Response Exists(string connectionName, CancellationToken ca /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -448,7 +448,7 @@ public virtual async Task> GetIfExistsAs /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/BgpConnectionResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/BgpConnectionResource.cs index 08c433d2e7b3..0b745dc7821c 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/BgpConnectionResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/BgpConnectionResource.cs @@ -108,7 +108,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -148,7 +148,7 @@ public virtual async Task> GetAsync(Cancellation /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -188,7 +188,7 @@ public virtual Response Get(CancellationToken cancellatio /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -230,7 +230,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -272,7 +272,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -318,7 +318,7 @@ public virtual async Task> UpdateAsync(WaitU /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -364,7 +364,7 @@ public virtual ArmOperation Update(WaitUntil waitUntil, B /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -406,7 +406,7 @@ public virtual async Task>>> G /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -448,7 +448,7 @@ public virtual ArmOperation>> GetVirtualHub /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -490,7 +490,7 @@ public virtual async Task>>> G /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/CloudServiceSwapCollection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/CloudServiceSwapCollection.cs index 13b41396039b..e24918cf19ef 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/CloudServiceSwapCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/CloudServiceSwapCollection.cs @@ -70,7 +70,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -116,7 +116,7 @@ public virtual async Task CreateOrUpdateAsync(WaitUntil waitUntil, /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -162,7 +162,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, CloudServiceSwap /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -202,7 +202,7 @@ public virtual async Task> GetAsync(Cancellat /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -242,7 +242,7 @@ public virtual Response Get(CancellationToken cancella /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -271,7 +271,7 @@ public virtual AsyncPageable GetAllAsync(CancellationT /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -300,7 +300,7 @@ public virtual Pageable GetAll(CancellationToken cance /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -338,7 +338,7 @@ public virtual async Task> ExistsAsync(CancellationToken cancella /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -376,7 +376,7 @@ public virtual Response Exists(CancellationToken cancellationToken = defau /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -416,7 +416,7 @@ public virtual async Task> GetIfExist /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/CloudServiceSwapResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/CloudServiceSwapResource.cs index 2fa34bffe9b4..4b77a62af1a5 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/CloudServiceSwapResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/CloudServiceSwapResource.cs @@ -101,7 +101,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -141,7 +141,7 @@ public virtual async Task> GetAsync(Cancellat /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -181,7 +181,7 @@ public virtual Response Get(CancellationToken cancella /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -227,7 +227,7 @@ public virtual async Task UpdateAsync(WaitUntil waitUntil, CloudSe /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/ConnectionMonitorCollection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/ConnectionMonitorCollection.cs index f641dddfc331..1d798fb98483 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/ConnectionMonitorCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/ConnectionMonitorCollection.cs @@ -65,7 +65,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -115,7 +115,7 @@ public virtual async Task> CreateOrUpdat /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -165,7 +165,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -210,7 +210,7 @@ public virtual async Task> GetAsync(string c /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -255,7 +255,7 @@ public virtual Response Get(string connectionMonitorN /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -284,7 +284,7 @@ public virtual AsyncPageable GetAllAsync(Cancellation /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -313,7 +313,7 @@ public virtual Pageable GetAll(CancellationToken canc /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -356,7 +356,7 @@ public virtual async Task> ExistsAsync(string connectionMonitorNa /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -399,7 +399,7 @@ public virtual Response Exists(string connectionMonitorName, CancellationT /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -444,7 +444,7 @@ public virtual async Task> GetIfExis /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/ConnectionMonitorResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/ConnectionMonitorResource.cs index 58768690b0b2..4ecede63f1d3 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/ConnectionMonitorResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/ConnectionMonitorResource.cs @@ -103,7 +103,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -143,7 +143,7 @@ public virtual async Task> GetAsync(Cancella /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -183,7 +183,7 @@ public virtual Response Get(CancellationToken cancell /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -225,7 +225,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -267,7 +267,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -309,7 +309,7 @@ public virtual async Task> UpdateAsync(Netwo /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -351,7 +351,7 @@ public virtual Response Update(NetworkTagsObject netw /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -393,7 +393,7 @@ public virtual async Task StopAsync(WaitUntil waitUntil, Cancellat /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -435,7 +435,7 @@ public virtual ArmOperation Stop(WaitUntil waitUntil, CancellationToken cancella /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -477,7 +477,7 @@ public virtual async Task StartAsync(WaitUntil waitUntil, Cancella /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -519,7 +519,7 @@ public virtual ArmOperation Start(WaitUntil waitUntil, CancellationToken cancell /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -561,7 +561,7 @@ public virtual async Task> QueryAsync /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -603,7 +603,7 @@ public virtual ArmOperation Query(WaitUntil waitUn /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -665,7 +665,7 @@ public virtual async Task> AddTagAsync(strin /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -727,7 +727,7 @@ public virtual Response AddTag(string key, string val /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -784,7 +784,7 @@ public virtual async Task> SetTagsAsync(IDic /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -841,7 +841,7 @@ public virtual Response SetTags(IDictionary /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -901,7 +901,7 @@ public virtual async Task> RemoveTagAsync(st /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/ConnectivityConfigurationCollection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/ConnectivityConfigurationCollection.cs index 2316d060d222..6d019f2825fc 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/ConnectivityConfigurationCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/ConnectivityConfigurationCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -115,7 +115,7 @@ public virtual async Task> Creat /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -166,7 +166,7 @@ public virtual ArmOperation CreateOrUpdate(Wa /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -211,7 +211,7 @@ public virtual async Task> GetAsync( /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -256,7 +256,7 @@ public virtual Response Get(string configurat /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -288,7 +288,7 @@ public virtual AsyncPageable GetAllAsync(int? /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -320,7 +320,7 @@ public virtual Pageable GetAll(int? top = nul /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -363,7 +363,7 @@ public virtual async Task> ExistsAsync(string configurationName, /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -406,7 +406,7 @@ public virtual Response Exists(string configurationName, CancellationToken /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -451,7 +451,7 @@ public virtual async Task> G /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/ConnectivityConfigurationResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/ConnectivityConfigurationResource.cs index 9cb0f05f63ad..3e36a7c1da32 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/ConnectivityConfigurationResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/ConnectivityConfigurationResource.cs @@ -101,7 +101,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -141,7 +141,7 @@ public virtual async Task> GetAsync( /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -181,7 +181,7 @@ public virtual Response Get(CancellationToken /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -224,7 +224,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, bool? f /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -267,7 +267,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, bool? force = null, Canc /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -315,7 +315,7 @@ public virtual async Task> Updat /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/CustomIPPrefixCollection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/CustomIPPrefixCollection.cs index e8fa9bdcb46b..565b0226c244 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/CustomIPPrefixCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/CustomIPPrefixCollection.cs @@ -65,7 +65,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -114,7 +114,7 @@ public virtual async Task> CreateOrUpdateAs /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -163,7 +163,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil wai /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -209,7 +209,7 @@ public virtual async Task> GetAsync(string cust /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -255,7 +255,7 @@ public virtual Response Get(string customIPPrefixName, s /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -285,7 +285,7 @@ public virtual AsyncPageable GetAllAsync(CancellationTok /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -315,7 +315,7 @@ public virtual Pageable GetAll(CancellationToken cancell /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -359,7 +359,7 @@ public virtual async Task> ExistsAsync(string customIPPrefixName, /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -403,7 +403,7 @@ public virtual Response Exists(string customIPPrefixName, string expand = /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -449,7 +449,7 @@ public virtual async Task> GetIfExistsA /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/CustomIPPrefixResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/CustomIPPrefixResource.cs index dd5b58c31550..a5c1a75514f6 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/CustomIPPrefixResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/CustomIPPrefixResource.cs @@ -103,7 +103,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -144,7 +144,7 @@ public virtual async Task> GetAsync(string expa /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -185,7 +185,7 @@ public virtual Response Get(string expand = null, Cancel /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -227,7 +227,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -269,7 +269,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -311,7 +311,7 @@ public virtual async Task> UpdateAsync(NetworkT /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -353,7 +353,7 @@ public virtual Response Update(NetworkTagsObject network /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -415,7 +415,7 @@ public virtual async Task> AddTagAsync(string k /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -477,7 +477,7 @@ public virtual Response AddTag(string key, string value, /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -534,7 +534,7 @@ public virtual async Task> SetTagsAsync(IDictio /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -591,7 +591,7 @@ public virtual Response SetTags(IDictionary /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -651,7 +651,7 @@ public virtual async Task> RemoveTagAsync(strin /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/DdosCustomPolicyCollection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/DdosCustomPolicyCollection.cs index 2ca243c80832..fdd47c1dea94 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/DdosCustomPolicyCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/DdosCustomPolicyCollection.cs @@ -62,7 +62,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -111,7 +111,7 @@ public virtual async Task> CreateOrUpdate /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -160,7 +160,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil w /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -205,7 +205,7 @@ public virtual async Task> GetAsync(string dd /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -250,7 +250,7 @@ public virtual Response Get(string ddosCustomPolicyNam /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -293,7 +293,7 @@ public virtual async Task> ExistsAsync(string ddosCustomPolicyNam /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -336,7 +336,7 @@ public virtual Response Exists(string ddosCustomPolicyName, CancellationTo /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -381,7 +381,7 @@ public virtual async Task> GetIfExist /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/DdosCustomPolicyResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/DdosCustomPolicyResource.cs index 6fcdb1f252e4..09d4b2343530 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/DdosCustomPolicyResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/DdosCustomPolicyResource.cs @@ -103,7 +103,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -143,7 +143,7 @@ public virtual async Task> GetAsync(Cancellat /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -183,7 +183,7 @@ public virtual Response Get(CancellationToken cancella /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -225,7 +225,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -267,7 +267,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -309,7 +309,7 @@ public virtual async Task> UpdateAsync(Networ /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -351,7 +351,7 @@ public virtual Response Update(NetworkTagsObject netwo /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -413,7 +413,7 @@ public virtual async Task> AddTagAsync(string /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -475,7 +475,7 @@ public virtual Response AddTag(string key, string valu /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -532,7 +532,7 @@ public virtual async Task> SetTagsAsync(IDict /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -589,7 +589,7 @@ public virtual Response SetTags(IDictionary /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -649,7 +649,7 @@ public virtual async Task> RemoveTagAsync(str /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/DdosProtectionPlanCollection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/DdosProtectionPlanCollection.cs index beccfe5173e8..7c426e686fd4 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/DdosProtectionPlanCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/DdosProtectionPlanCollection.cs @@ -65,7 +65,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -114,7 +114,7 @@ public virtual async Task> CreateOrUpda /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -163,7 +163,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -208,7 +208,7 @@ public virtual async Task> GetAsync(string /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -253,7 +253,7 @@ public virtual Response Get(string ddosProtectionPla /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -283,7 +283,7 @@ public virtual AsyncPageable GetAllAsync(Cancellatio /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -313,7 +313,7 @@ public virtual Pageable GetAll(CancellationToken can /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -356,7 +356,7 @@ public virtual async Task> ExistsAsync(string ddosProtectionPlanN /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -399,7 +399,7 @@ public virtual Response Exists(string ddosProtectionPlanName, Cancellation /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -444,7 +444,7 @@ public virtual async Task> GetIfExi /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/DdosProtectionPlanResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/DdosProtectionPlanResource.cs index 75fb0b0e0518..13fd1fd84e46 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/DdosProtectionPlanResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/DdosProtectionPlanResource.cs @@ -103,7 +103,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -143,7 +143,7 @@ public virtual async Task> GetAsync(Cancell /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -183,7 +183,7 @@ public virtual Response Get(CancellationToken cancel /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -225,7 +225,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -267,7 +267,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -309,7 +309,7 @@ public virtual async Task> UpdateAsync(Netw /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -351,7 +351,7 @@ public virtual Response Update(NetworkTagsObject net /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -413,7 +413,7 @@ public virtual async Task> AddTagAsync(stri /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -475,7 +475,7 @@ public virtual Response AddTag(string key, string va /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -532,7 +532,7 @@ public virtual async Task> SetTagsAsync(IDi /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -589,7 +589,7 @@ public virtual Response SetTags(IDictionary /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -649,7 +649,7 @@ public virtual async Task> RemoveTagAsync(s /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/DefaultSecurityRuleCollection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/DefaultSecurityRuleCollection.cs index 8eec2cb3f34c..7346663dc451 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/DefaultSecurityRuleCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/DefaultSecurityRuleCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -109,7 +109,7 @@ public virtual async Task> GetAsync(string /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -154,7 +154,7 @@ public virtual Response Get(string defaultSecurityR /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -184,7 +184,7 @@ public virtual AsyncPageable GetAllAsync(Cancellati /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -214,7 +214,7 @@ public virtual Pageable GetAll(CancellationToken ca /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -257,7 +257,7 @@ public virtual async Task> ExistsAsync(string defaultSecurityRule /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -300,7 +300,7 @@ public virtual Response Exists(string defaultSecurityRuleName, Cancellatio /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -345,7 +345,7 @@ public virtual async Task> GetIfEx /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/DefaultSecurityRuleResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/DefaultSecurityRuleResource.cs index f1cfda7fde19..c7635a89b2c5 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/DefaultSecurityRuleResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/DefaultSecurityRuleResource.cs @@ -101,7 +101,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -141,7 +141,7 @@ public virtual async Task> GetAsync(Cancel /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/DscpConfigurationCollection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/DscpConfigurationCollection.cs index 65fc7dce49a6..109c5ed7bb08 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/DscpConfigurationCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/DscpConfigurationCollection.cs @@ -65,7 +65,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -114,7 +114,7 @@ public virtual async Task> CreateOrUpdat /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -163,7 +163,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -208,7 +208,7 @@ public virtual async Task> GetAsync(string d /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -253,7 +253,7 @@ public virtual Response Get(string dscpConfigurationN /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -283,7 +283,7 @@ public virtual AsyncPageable GetAllAsync(Cancellation /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -313,7 +313,7 @@ public virtual Pageable GetAll(CancellationToken canc /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -356,7 +356,7 @@ public virtual async Task> ExistsAsync(string dscpConfigurationNa /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -399,7 +399,7 @@ public virtual Response Exists(string dscpConfigurationName, CancellationT /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -444,7 +444,7 @@ public virtual async Task> GetIfExis /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/DscpConfigurationResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/DscpConfigurationResource.cs index 4ee1a93cf628..05489604df3b 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/DscpConfigurationResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/DscpConfigurationResource.cs @@ -102,7 +102,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -142,7 +142,7 @@ public virtual async Task> GetAsync(Cancella /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -182,7 +182,7 @@ public virtual Response Get(CancellationToken cancell /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -224,7 +224,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -266,7 +266,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -312,7 +312,7 @@ public virtual async Task> UpdateAsync(W /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -358,7 +358,7 @@ public virtual ArmOperation Update(WaitUntil waitUnti /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -415,7 +415,7 @@ public virtual async Task> AddTagAsync(strin /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -472,7 +472,7 @@ public virtual Response AddTag(string key, string val /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -528,7 +528,7 @@ public virtual async Task> SetTagsAsync(IDic /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -584,7 +584,7 @@ public virtual Response SetTags(IDictionary /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -639,7 +639,7 @@ public virtual async Task> RemoveTagAsync(st /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteCircuitAuthorizationCollection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteCircuitAuthorizationCollection.cs index 4a5916844979..3530d17c2080 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteCircuitAuthorizationCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteCircuitAuthorizationCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -113,7 +113,7 @@ public virtual async Task /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -162,7 +162,7 @@ public virtual ArmOperation CreateOrUp /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -207,7 +207,7 @@ public virtual async Task> Ge /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -252,7 +252,7 @@ public virtual Response Get(string aut /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -282,7 +282,7 @@ public virtual AsyncPageable GetAllAsy /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -312,7 +312,7 @@ public virtual Pageable GetAll(Cancell /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -355,7 +355,7 @@ public virtual async Task> ExistsAsync(string authorizationName, /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -398,7 +398,7 @@ public virtual Response Exists(string authorizationName, CancellationToken /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -443,7 +443,7 @@ public virtual async Task /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteCircuitAuthorizationResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteCircuitAuthorizationResource.cs index 5e8d61bab9a6..a32e2da4e935 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteCircuitAuthorizationResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteCircuitAuthorizationResource.cs @@ -101,7 +101,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -141,7 +141,7 @@ public virtual async Task> Ge /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -181,7 +181,7 @@ public virtual Response Get(Cancellati /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -223,7 +223,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -265,7 +265,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -311,7 +311,7 @@ public virtual async Task /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteCircuitCollection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteCircuitCollection.cs index 276ca4d402e7..da97b0d992c4 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteCircuitCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteCircuitCollection.cs @@ -65,7 +65,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -114,7 +114,7 @@ public virtual async Task> CreateOrUpd /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -163,7 +163,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUnti /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -208,7 +208,7 @@ public virtual async Task> GetAsync(string /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -253,7 +253,7 @@ public virtual Response Get(string circuitName, Can /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -283,7 +283,7 @@ public virtual AsyncPageable GetAllAsync(Cancellati /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -313,7 +313,7 @@ public virtual Pageable GetAll(CancellationToken ca /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -356,7 +356,7 @@ public virtual async Task> ExistsAsync(string circuitName, Cancel /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -399,7 +399,7 @@ public virtual Response Exists(string circuitName, CancellationToken cance /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -444,7 +444,7 @@ public virtual async Task> GetIfEx /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteCircuitConnectionCollection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteCircuitConnectionCollection.cs index 590e543e9b5a..1ebf8740f805 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteCircuitConnectionCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteCircuitConnectionCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -113,7 +113,7 @@ public virtual async Task> C /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -162,7 +162,7 @@ public virtual ArmOperation CreateOrUpdat /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -207,7 +207,7 @@ public virtual async Task> GetAs /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -252,7 +252,7 @@ public virtual Response Get(string connec /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -282,7 +282,7 @@ public virtual AsyncPageable GetAllAsync( /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -312,7 +312,7 @@ public virtual Pageable GetAll(Cancellati /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -355,7 +355,7 @@ public virtual async Task> ExistsAsync(string connectionName, Can /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -398,7 +398,7 @@ public virtual Response Exists(string connectionName, CancellationToken ca /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -443,7 +443,7 @@ public virtual async Task /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteCircuitConnectionResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteCircuitConnectionResource.cs index 311174623891..732acee9ea51 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteCircuitConnectionResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteCircuitConnectionResource.cs @@ -102,7 +102,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -142,7 +142,7 @@ public virtual async Task> GetAs /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -182,7 +182,7 @@ public virtual Response Get(CancellationT /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -224,7 +224,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -266,7 +266,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -312,7 +312,7 @@ public virtual async Task> U /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteCircuitPeeringCollection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteCircuitPeeringCollection.cs index ecdfe42a5214..b77dab532b69 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteCircuitPeeringCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteCircuitPeeringCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -113,7 +113,7 @@ public virtual async Task> Crea /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -162,7 +162,7 @@ public virtual ArmOperation CreateOrUpdate(W /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -207,7 +207,7 @@ public virtual async Task> GetAsync /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -252,7 +252,7 @@ public virtual Response Get(string peeringNa /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -282,7 +282,7 @@ public virtual AsyncPageable GetAllAsync(Can /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -312,7 +312,7 @@ public virtual Pageable GetAll(CancellationT /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -355,7 +355,7 @@ public virtual async Task> ExistsAsync(string peeringName, Cancel /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -398,7 +398,7 @@ public virtual Response Exists(string peeringName, CancellationToken cance /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -443,7 +443,7 @@ public virtual async Task> /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteCircuitPeeringResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteCircuitPeeringResource.cs index 758166546791..28f6f162ad9c 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteCircuitPeeringResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteCircuitPeeringResource.cs @@ -114,7 +114,7 @@ public virtual ExpressRouteCircuitConnectionCollection GetExpressRouteCircuitCon /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -145,7 +145,7 @@ public virtual async Task> GetEx /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -183,7 +183,7 @@ public virtual PeerExpressRouteCircuitConnectionCollection GetPeerExpressRouteCi /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -214,7 +214,7 @@ public virtual async Task> G /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -245,7 +245,7 @@ public virtual Response GetPeerExpres /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -285,7 +285,7 @@ public virtual async Task> GetAsync /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -325,7 +325,7 @@ public virtual Response Get(CancellationToke /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -367,7 +367,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -409,7 +409,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -455,7 +455,7 @@ public virtual async Task> Upda /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -501,7 +501,7 @@ public virtual ArmOperation Update(WaitUntil /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -548,7 +548,7 @@ public virtual async Task> /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -595,7 +595,7 @@ public virtual ArmOperation GetArpTableE /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -642,7 +642,7 @@ public virtual async Task /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -689,7 +689,7 @@ public virtual ArmOperation GetRoutes /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -736,7 +736,7 @@ public virtual async Task /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -783,7 +783,7 @@ public virtual ArmOperation Ge /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -821,7 +821,7 @@ public virtual async Task> GetPeeringStatsExp /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteCircuitResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteCircuitResource.cs index c80da4ff1940..b7d6dbcf430a 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteCircuitResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteCircuitResource.cs @@ -110,7 +110,7 @@ public virtual ExpressRouteCircuitAuthorizationCollection GetExpressRouteCircuit /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -141,7 +141,7 @@ public virtual async Task> Ge /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -179,7 +179,7 @@ public virtual ExpressRouteCircuitPeeringCollection GetExpressRouteCircuitPeerin /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -210,7 +210,7 @@ public virtual async Task> GetExpre /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -241,7 +241,7 @@ public virtual Response GetExpressRouteCircu /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -281,7 +281,7 @@ public virtual async Task> GetAsync(Cancel /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -321,7 +321,7 @@ public virtual Response Get(CancellationToken cance /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -363,7 +363,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -405,7 +405,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -447,7 +447,7 @@ public virtual async Task> UpdateAsync(Net /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -489,7 +489,7 @@ public virtual Response Update(NetworkTagsObject ne /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -527,7 +527,7 @@ public virtual async Task> GetStatsAsync(Canc /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -565,7 +565,7 @@ public virtual Response GetStats(CancellationToken can /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -627,7 +627,7 @@ public virtual async Task> AddTagAsync(str /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -689,7 +689,7 @@ public virtual Response AddTag(string key, string v /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -746,7 +746,7 @@ public virtual async Task> SetTagsAsync(ID /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -803,7 +803,7 @@ public virtual Response SetTags(IDictionary /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -863,7 +863,7 @@ public virtual async Task> RemoveTagAsync( /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteConnectionCollection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteConnectionCollection.cs index 0bba13780e7d..86f8ceca42a8 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteConnectionCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteConnectionCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -113,7 +113,7 @@ public virtual async Task> CreateOr /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -162,7 +162,7 @@ public virtual ArmOperation CreateOrUpdate(WaitU /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -207,7 +207,7 @@ public virtual async Task> GetAsync(str /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -252,7 +252,7 @@ public virtual Response Get(string connectionNam /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -281,7 +281,7 @@ public virtual AsyncPageable GetAllAsync(Cancell /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -310,7 +310,7 @@ public virtual Pageable GetAll(CancellationToken /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -353,7 +353,7 @@ public virtual async Task> ExistsAsync(string connectionName, Can /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -396,7 +396,7 @@ public virtual Response Exists(string connectionName, CancellationToken ca /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -441,7 +441,7 @@ public virtual async Task> GetI /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteConnectionResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteConnectionResource.cs index 2f6bcec4930c..b5a23d867410 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteConnectionResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteConnectionResource.cs @@ -101,7 +101,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -141,7 +141,7 @@ public virtual async Task> GetAsync(Can /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -181,7 +181,7 @@ public virtual Response Get(CancellationToken ca /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -223,7 +223,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -265,7 +265,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -311,7 +311,7 @@ public virtual async Task> UpdateAs /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteCrossConnectionCollection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteCrossConnectionCollection.cs index f412f6a0e5a1..2a6f17818c15 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteCrossConnectionCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteCrossConnectionCollection.cs @@ -65,7 +65,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -114,7 +114,7 @@ public virtual async Task> Cre /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -163,7 +163,7 @@ public virtual ArmOperation CreateOrUpdate( /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -208,7 +208,7 @@ public virtual async Task> GetAsyn /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -253,7 +253,7 @@ public virtual Response Get(string crossCon /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -283,7 +283,7 @@ public virtual AsyncPageable GetAllAsync(Ca /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -313,7 +313,7 @@ public virtual Pageable GetAll(Cancellation /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -356,7 +356,7 @@ public virtual async Task> ExistsAsync(string crossConnectionName /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -399,7 +399,7 @@ public virtual Response Exists(string crossConnectionName, CancellationTok /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -444,7 +444,7 @@ public virtual async Task> /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteCrossConnectionPeeringCollection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteCrossConnectionPeeringCollection.cs index f92f5755b040..f33db833f950 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteCrossConnectionPeeringCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteCrossConnectionPeeringCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -113,7 +113,7 @@ public virtual async Task /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -162,7 +162,7 @@ public virtual ArmOperation CreateOr /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -207,7 +207,7 @@ public virtual async Task> /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -252,7 +252,7 @@ public virtual Response Get(string p /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -282,7 +282,7 @@ public virtual AsyncPageable GetAllA /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -312,7 +312,7 @@ public virtual Pageable GetAll(Cance /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -355,7 +355,7 @@ public virtual async Task> ExistsAsync(string peeringName, Cancel /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -398,7 +398,7 @@ public virtual Response Exists(string peeringName, CancellationToken cance /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -443,7 +443,7 @@ public virtual async Task /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteCrossConnectionPeeringResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteCrossConnectionPeeringResource.cs index 4c6406670e29..f525c8a24d10 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteCrossConnectionPeeringResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteCrossConnectionPeeringResource.cs @@ -107,7 +107,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -147,7 +147,7 @@ public virtual async Task> /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -187,7 +187,7 @@ public virtual Response Get(Cancella /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -229,7 +229,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -271,7 +271,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -317,7 +317,7 @@ public virtual async Task /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -363,7 +363,7 @@ public virtual ArmOperation Update(W /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -410,7 +410,7 @@ public virtual async Task> /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -457,7 +457,7 @@ public virtual ArmOperation GetArpTableE /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -504,7 +504,7 @@ public virtual async Task /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -551,7 +551,7 @@ public virtual ArmOperation /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -598,7 +598,7 @@ public virtual async Task /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteCrossConnectionResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteCrossConnectionResource.cs index ff070286cf66..b67f5430239a 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteCrossConnectionResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteCrossConnectionResource.cs @@ -110,7 +110,7 @@ public virtual ExpressRouteCrossConnectionPeeringCollection GetExpressRouteCross /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -141,7 +141,7 @@ public virtual async Task> /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -172,7 +172,7 @@ public virtual Response GetExpressRo /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -212,7 +212,7 @@ public virtual async Task> GetAsyn /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -252,7 +252,7 @@ public virtual Response Get(CancellationTok /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -294,7 +294,7 @@ public virtual async Task> UpdateA /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -336,7 +336,7 @@ public virtual Response Update(NetworkTagsO /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -398,7 +398,7 @@ public virtual async Task> AddTagA /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -460,7 +460,7 @@ public virtual Response AddTag(string key, /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -517,7 +517,7 @@ public virtual async Task> SetTags /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -574,7 +574,7 @@ public virtual Response SetTags(IDictionary /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -634,7 +634,7 @@ public virtual async Task> RemoveT /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteGatewayCollection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteGatewayCollection.cs index e65e4dc001d4..f47ae8890da8 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteGatewayCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteGatewayCollection.cs @@ -65,7 +65,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -114,7 +114,7 @@ public virtual async Task> CreateOrUpd /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -163,7 +163,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUnti /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -208,7 +208,7 @@ public virtual async Task> GetAsync(string /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -253,7 +253,7 @@ public virtual Response Get(string expressRouteGate /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -282,7 +282,7 @@ public virtual AsyncPageable GetAllAsync(Cancellati /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -311,7 +311,7 @@ public virtual Pageable GetAll(CancellationToken ca /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -354,7 +354,7 @@ public virtual async Task> ExistsAsync(string expressRouteGateway /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -397,7 +397,7 @@ public virtual Response Exists(string expressRouteGatewayName, Cancellatio /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -442,7 +442,7 @@ public virtual async Task> GetIfEx /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteGatewayResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteGatewayResource.cs index 64a54e3efb4d..4b8dff70f5b5 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteGatewayResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteGatewayResource.cs @@ -110,7 +110,7 @@ public virtual ExpressRouteConnectionCollection GetExpressRouteConnections() /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -141,7 +141,7 @@ public virtual async Task> GetExpressRo /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -172,7 +172,7 @@ public virtual Response GetExpressRouteConnectio /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -212,7 +212,7 @@ public virtual async Task> GetAsync(Cancel /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -252,7 +252,7 @@ public virtual Response Get(CancellationToken cance /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -294,7 +294,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -336,7 +336,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -382,7 +382,7 @@ public virtual async Task> UpdateAsync /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -428,7 +428,7 @@ public virtual ArmOperation Update(WaitUntil waitUn /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -490,7 +490,7 @@ public virtual async Task> AddTagAsync(str /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -552,7 +552,7 @@ public virtual Response AddTag(string key, string v /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -609,7 +609,7 @@ public virtual async Task> SetTagsAsync(ID /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -666,7 +666,7 @@ public virtual Response SetTags(IDictionary /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -726,7 +726,7 @@ public virtual async Task> RemoveTagAsync( /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteLinkCollection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteLinkCollection.cs index ca46c66bc3dc..9f1d733035f6 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteLinkCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteLinkCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -109,7 +109,7 @@ public virtual async Task> GetAsync(string li /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -154,7 +154,7 @@ public virtual Response Get(string linkName, Cancellat /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -184,7 +184,7 @@ public virtual AsyncPageable GetAllAsync(CancellationT /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -214,7 +214,7 @@ public virtual Pageable GetAll(CancellationToken cance /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -257,7 +257,7 @@ public virtual async Task> ExistsAsync(string linkName, Cancellat /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -300,7 +300,7 @@ public virtual Response Exists(string linkName, CancellationToken cancella /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -345,7 +345,7 @@ public virtual async Task> GetIfExist /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteLinkResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteLinkResource.cs index ce1d5d833c69..71e71e6b6778 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteLinkResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteLinkResource.cs @@ -101,7 +101,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -141,7 +141,7 @@ public virtual async Task> GetAsync(Cancellat /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRoutePortAuthorizationCollection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRoutePortAuthorizationCollection.cs index a67f3eee1a19..b851b38fdf72 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRoutePortAuthorizationCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRoutePortAuthorizationCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -113,7 +113,7 @@ public virtual async Task> C /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -162,7 +162,7 @@ public virtual ArmOperation CreateOrUpdat /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -207,7 +207,7 @@ public virtual async Task> GetAs /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -252,7 +252,7 @@ public virtual Response Get(string author /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -282,7 +282,7 @@ public virtual AsyncPageable GetAllAsync( /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -312,7 +312,7 @@ public virtual Pageable GetAll(Cancellati /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -355,7 +355,7 @@ public virtual async Task> ExistsAsync(string authorizationName, /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -398,7 +398,7 @@ public virtual Response Exists(string authorizationName, CancellationToken /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -443,7 +443,7 @@ public virtual async Task /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRoutePortAuthorizationResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRoutePortAuthorizationResource.cs index 338054f838b0..eeb9f38f0124 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRoutePortAuthorizationResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRoutePortAuthorizationResource.cs @@ -101,7 +101,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -141,7 +141,7 @@ public virtual async Task> GetAs /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -181,7 +181,7 @@ public virtual Response Get(CancellationT /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -223,7 +223,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -265,7 +265,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -311,7 +311,7 @@ public virtual async Task> U /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRoutePortCollection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRoutePortCollection.cs index 4be08758dd7d..b9aa49d7112c 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRoutePortCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRoutePortCollection.cs @@ -65,7 +65,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -114,7 +114,7 @@ public virtual async Task> CreateOrUpdate /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -163,7 +163,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil w /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -208,7 +208,7 @@ public virtual async Task> GetAsync(string ex /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -253,7 +253,7 @@ public virtual Response Get(string expressRoutePortNam /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -283,7 +283,7 @@ public virtual AsyncPageable GetAllAsync(CancellationT /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -313,7 +313,7 @@ public virtual Pageable GetAll(CancellationToken cance /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -356,7 +356,7 @@ public virtual async Task> ExistsAsync(string expressRoutePortNam /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -399,7 +399,7 @@ public virtual Response Exists(string expressRoutePortName, CancellationTo /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -444,7 +444,7 @@ public virtual async Task> GetIfExist /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRoutePortResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRoutePortResource.cs index bc9d2dd1e9b9..22d8a4ad2412 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRoutePortResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRoutePortResource.cs @@ -110,7 +110,7 @@ public virtual ExpressRouteLinkCollection GetExpressRouteLinks() /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -141,7 +141,7 @@ public virtual async Task> GetExpressRouteLin /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -179,7 +179,7 @@ public virtual ExpressRoutePortAuthorizationCollection GetExpressRoutePortAuthor /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -210,7 +210,7 @@ public virtual async Task> GetEx /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -241,7 +241,7 @@ public virtual Response GetExpressRoutePo /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -281,7 +281,7 @@ public virtual async Task> GetAsync(Cancellat /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -321,7 +321,7 @@ public virtual Response Get(CancellationToken cancella /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -363,7 +363,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -405,7 +405,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -447,7 +447,7 @@ public virtual async Task> UpdateAsync(Networ /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -489,7 +489,7 @@ public virtual Response Update(NetworkTagsObject netwo /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -531,7 +531,7 @@ public virtual async Task> Generate /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -573,7 +573,7 @@ public virtual Response GenerateLoa(Generate /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -635,7 +635,7 @@ public virtual async Task> AddTagAsync(string /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -697,7 +697,7 @@ public virtual Response AddTag(string key, string valu /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -754,7 +754,7 @@ public virtual async Task> SetTagsAsync(IDict /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -811,7 +811,7 @@ public virtual Response SetTags(IDictionary /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -871,7 +871,7 @@ public virtual async Task> RemoveTagAsync(str /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRoutePortsLocationCollection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRoutePortsLocationCollection.cs index ad31923823e5..06de57c00b65 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRoutePortsLocationCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRoutePortsLocationCollection.cs @@ -65,7 +65,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -110,7 +110,7 @@ public virtual async Task> GetAsync( /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -155,7 +155,7 @@ public virtual Response Get(string locationNa /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -185,7 +185,7 @@ public virtual AsyncPageable GetAllAsync(Canc /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -215,7 +215,7 @@ public virtual Pageable GetAll(CancellationTo /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -258,7 +258,7 @@ public virtual async Task> ExistsAsync(string locationName, Cance /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -301,7 +301,7 @@ public virtual Response Exists(string locationName, CancellationToken canc /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -346,7 +346,7 @@ public virtual async Task> G /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRoutePortsLocationResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRoutePortsLocationResource.cs index 7aea3e3007d3..46594557c7b0 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRoutePortsLocationResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRoutePortsLocationResource.cs @@ -100,7 +100,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -140,7 +140,7 @@ public virtual async Task> GetAsync( /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteProviderPortCollection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteProviderPortCollection.cs index 562f58b6db35..683b7ff70f38 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteProviderPortCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteProviderPortCollection.cs @@ -70,7 +70,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -115,7 +115,7 @@ public virtual async Task> GetAsync(s /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -160,7 +160,7 @@ public virtual Response Get(string providerpor /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -190,7 +190,7 @@ public virtual AsyncPageable GetAllAsync(strin /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -220,7 +220,7 @@ public virtual Pageable GetAll(string filter = /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -263,7 +263,7 @@ public virtual async Task> ExistsAsync(string providerport, Cance /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -306,7 +306,7 @@ public virtual Response Exists(string providerport, CancellationToken canc /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -351,7 +351,7 @@ public virtual async Task> Ge /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteProviderPortResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteProviderPortResource.cs index 464de3408968..7876f448d8af 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteProviderPortResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/ExpressRouteProviderPortResource.cs @@ -100,7 +100,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -140,7 +140,7 @@ public virtual async Task> GetAsync(C /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Extensions/MockableNetworkArmClient.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Extensions/MockableNetworkArmClient.cs index eb97db51d67f..810a4d7a2d91 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Extensions/MockableNetworkArmClient.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Extensions/MockableNetworkArmClient.cs @@ -382,6 +382,30 @@ public virtual FirewallPolicyRuleCollectionGroupDraftResource GetFirewallPolicyR return new FirewallPolicyRuleCollectionGroupDraftResource(Client, id); } + /// + /// Gets an object representing an along with the instance operations that can be performed on it but with no data. + /// You can use to create an from its components. + /// + /// The resource ID of the resource to get. + /// Returns a object. + public virtual IpamPoolResource GetIpamPoolResource(ResourceIdentifier id) + { + IpamPoolResource.ValidateResourceId(id); + return new IpamPoolResource(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 StaticCidrResource GetStaticCidrResource(ResourceIdentifier id) + { + StaticCidrResource.ValidateResourceId(id); + return new StaticCidrResource(Client, id); + } + /// /// Gets an object representing an along with the instance operations that can be performed on it but with no data. /// You can use to create an from its components. @@ -610,6 +634,42 @@ public virtual NetworkGroupStaticMemberResource GetNetworkGroupStaticMemberResou return new NetworkGroupStaticMemberResource(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 NetworkManagerRoutingConfigurationResource GetNetworkManagerRoutingConfigurationResource(ResourceIdentifier id) + { + NetworkManagerRoutingConfigurationResource.ValidateResourceId(id); + return new NetworkManagerRoutingConfigurationResource(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 NetworkManagerRoutingRulesResource GetNetworkManagerRoutingRulesResource(ResourceIdentifier id) + { + NetworkManagerRoutingRulesResource.ValidateResourceId(id); + return new NetworkManagerRoutingRulesResource(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 NetworkManagerRoutingRuleResource GetNetworkManagerRoutingRuleResource(ResourceIdentifier id) + { + NetworkManagerRoutingRuleResource.ValidateResourceId(id); + return new NetworkManagerRoutingRuleResource(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. @@ -694,42 +754,6 @@ public virtual NetworkManagerSecurityUserRuleResource GetNetworkManagerSecurityU return new NetworkManagerSecurityUserRuleResource(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 NetworkManagerRoutingConfigurationResource GetNetworkManagerRoutingConfigurationResource(ResourceIdentifier id) - { - NetworkManagerRoutingConfigurationResource.ValidateResourceId(id); - return new NetworkManagerRoutingConfigurationResource(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 NetworkManagerRoutingRulesResource GetNetworkManagerRoutingRulesResource(ResourceIdentifier id) - { - NetworkManagerRoutingRulesResource.ValidateResourceId(id); - return new NetworkManagerRoutingRulesResource(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 NetworkManagerRoutingRuleResource GetNetworkManagerRoutingRuleResource(ResourceIdentifier id) - { - NetworkManagerRoutingRuleResource.ValidateResourceId(id); - return new NetworkManagerRoutingRuleResource(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. @@ -778,6 +802,42 @@ public virtual DefaultSecurityRuleResource GetDefaultSecurityRuleResource(Resour return new DefaultSecurityRuleResource(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 ReachabilityAnalysisIntentResource GetReachabilityAnalysisIntentResource(ResourceIdentifier id) + { + ReachabilityAnalysisIntentResource.ValidateResourceId(id); + return new ReachabilityAnalysisIntentResource(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 ReachabilityAnalysisRunResource GetReachabilityAnalysisRunResource(ResourceIdentifier id) + { + ReachabilityAnalysisRunResource.ValidateResourceId(id); + return new ReachabilityAnalysisRunResource(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 VerifierWorkspaceResource GetVerifierWorkspaceResource(ResourceIdentifier id) + { + VerifierWorkspaceResource.ValidateResourceId(id); + return new VerifierWorkspaceResource(Client, id); + } + /// /// Gets an object representing a along with the instance operations that can be performed on it but with no data. /// You can use to create a from its components. diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Extensions/MockableNetworkManagementGroupResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Extensions/MockableNetworkManagementGroupResource.cs index aa96e9096326..972206e10428 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Extensions/MockableNetworkManagementGroupResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Extensions/MockableNetworkManagementGroupResource.cs @@ -53,7 +53,7 @@ public virtual ManagementGroupNetworkManagerConnectionCollection GetManagementGr /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -84,7 +84,7 @@ public virtual async Task /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Extensions/MockableNetworkResourceGroupResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Extensions/MockableNetworkResourceGroupResource.cs index 0467e9f0e527..07374533a9bc 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Extensions/MockableNetworkResourceGroupResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Extensions/MockableNetworkResourceGroupResource.cs @@ -74,7 +74,7 @@ public virtual ApplicationGatewayCollection GetApplicationGateways() /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -105,7 +105,7 @@ public virtual async Task> GetApplicationGa /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -143,7 +143,7 @@ public virtual ApplicationSecurityGroupCollection GetApplicationSecurityGroups() /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -174,7 +174,7 @@ public virtual async Task> GetApplica /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -212,7 +212,7 @@ public virtual AzureFirewallCollection GetAzureFirewalls() /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -243,7 +243,7 @@ public virtual async Task> GetAzureFirewallAsync /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -281,7 +281,7 @@ public virtual BastionHostCollection GetBastionHosts() /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -312,7 +312,7 @@ public virtual async Task> GetBastionHostAsync(str /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -353,7 +353,7 @@ public virtual CloudServiceSwapCollection GetCloudServiceSwaps(string resourceNa /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -384,7 +384,7 @@ public virtual async Task> GetCloudServiceSwa /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -422,7 +422,7 @@ public virtual CustomIPPrefixCollection GetCustomIPPrefixes() /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -454,7 +454,7 @@ public virtual async Task> GetCustomIPPrefixAsy /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -493,7 +493,7 @@ public virtual DdosCustomPolicyCollection GetDdosCustomPolicies() /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -524,7 +524,7 @@ public virtual async Task> GetDdosCustomPolic /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -562,7 +562,7 @@ public virtual DdosProtectionPlanCollection GetDdosProtectionPlans() /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -593,7 +593,7 @@ public virtual async Task> GetDdosProtectio /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -631,7 +631,7 @@ public virtual DscpConfigurationCollection GetDscpConfigurations() /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -662,7 +662,7 @@ public virtual async Task> GetDscpConfigurat /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -700,7 +700,7 @@ public virtual ExpressRouteCircuitCollection GetExpressRouteCircuits() /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -731,7 +731,7 @@ public virtual async Task> GetExpressRoute /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -769,7 +769,7 @@ public virtual ExpressRouteCrossConnectionCollection GetExpressRouteCrossConnect /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -800,7 +800,7 @@ public virtual async Task> GetExpr /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -838,7 +838,7 @@ public virtual ExpressRoutePortCollection GetExpressRoutePorts() /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -869,7 +869,7 @@ public virtual async Task> GetExpressRoutePor /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -907,7 +907,7 @@ public virtual FirewallPolicyCollection GetFirewallPolicies() /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -939,7 +939,7 @@ public virtual async Task> GetFirewallPolicyAsy /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -978,7 +978,7 @@ public virtual IPAllocationCollection GetIPAllocations() /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -1010,7 +1010,7 @@ public virtual async Task> GetIPAllocationAsync(s /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -1049,7 +1049,7 @@ public virtual IPGroupCollection GetIPGroups() /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -1081,7 +1081,7 @@ public virtual async Task> GetIPGroupAsync(string ipGr /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -1120,7 +1120,7 @@ public virtual LoadBalancerCollection GetLoadBalancers() /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -1152,7 +1152,7 @@ public virtual async Task> GetLoadBalancerAsync(s /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -1191,7 +1191,7 @@ public virtual NatGatewayCollection GetNatGateways() /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -1223,7 +1223,7 @@ public virtual async Task> GetNatGatewayAsync(strin /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -1262,7 +1262,7 @@ public virtual NetworkInterfaceCollection GetNetworkInterfaces() /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -1294,7 +1294,7 @@ public virtual async Task> GetNetworkInterfac /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -1333,7 +1333,7 @@ public virtual NetworkManagerCollection GetNetworkManagers() /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -1364,7 +1364,7 @@ public virtual async Task> GetNetworkManagerAsy /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -1402,7 +1402,7 @@ public virtual NetworkProfileCollection GetNetworkProfiles() /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -1434,7 +1434,7 @@ public virtual async Task> GetNetworkProfileAsy /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -1473,7 +1473,7 @@ public virtual NetworkSecurityGroupCollection GetNetworkSecurityGroups() /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -1505,7 +1505,7 @@ public virtual async Task> GetNetworkSecu /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -1544,7 +1544,7 @@ public virtual NetworkVirtualApplianceCollection GetNetworkVirtualAppliances() /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -1576,7 +1576,7 @@ public virtual async Task> GetNetworkV /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -1615,7 +1615,7 @@ public virtual NetworkWatcherCollection GetNetworkWatchers() /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -1646,7 +1646,7 @@ public virtual async Task> GetNetworkWatcherAsy /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -1684,7 +1684,7 @@ public virtual PrivateEndpointCollection GetPrivateEndpoints() /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -1716,7 +1716,7 @@ public virtual async Task> GetPrivateEndpointA /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -1755,7 +1755,7 @@ public virtual PrivateLinkServiceCollection GetPrivateLinkServices() /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -1787,7 +1787,7 @@ public virtual async Task> GetPrivateLinkSe /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -1826,7 +1826,7 @@ public virtual PublicIPAddressCollection GetPublicIPAddresses() /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -1858,7 +1858,7 @@ public virtual async Task> GetPublicIPAddressA /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -1897,7 +1897,7 @@ public virtual PublicIPPrefixCollection GetPublicIPPrefixes() /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -1929,7 +1929,7 @@ public virtual async Task> GetPublicIPPrefixAsy /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -1968,7 +1968,7 @@ public virtual RouteFilterCollection GetRouteFilters() /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -2000,7 +2000,7 @@ public virtual async Task> GetRouteFilterAsync(str /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -2039,7 +2039,7 @@ public virtual RouteTableCollection GetRouteTables() /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -2071,7 +2071,7 @@ public virtual async Task> GetRouteTableAsync(strin /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -2110,7 +2110,7 @@ public virtual SecurityPartnerProviderCollection GetSecurityPartnerProviders() /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -2141,7 +2141,7 @@ public virtual async Task> GetSecurity /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -2179,7 +2179,7 @@ public virtual ServiceEndpointPolicyCollection GetServiceEndpointPolicies() /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -2211,7 +2211,7 @@ public virtual async Task> GetServiceEnd /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -2250,7 +2250,7 @@ public virtual VirtualNetworkCollection GetVirtualNetworks() /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -2282,7 +2282,7 @@ public virtual async Task> GetVirtualNetworkAsy /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -2321,7 +2321,7 @@ public virtual VirtualNetworkGatewayCollection GetVirtualNetworkGateways() /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -2352,7 +2352,7 @@ public virtual async Task> GetVirtualNet /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -2390,7 +2390,7 @@ public virtual VirtualNetworkGatewayConnectionCollection GetVirtualNetworkGatewa /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -2421,7 +2421,7 @@ public virtual async Task> Get /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -2459,7 +2459,7 @@ public virtual LocalNetworkGatewayCollection GetLocalNetworkGateways() /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -2490,7 +2490,7 @@ public virtual async Task> GetLocalNetwork /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -2528,7 +2528,7 @@ public virtual VirtualNetworkTapCollection GetVirtualNetworkTaps() /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -2559,7 +2559,7 @@ public virtual async Task> GetVirtualNetwork /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -2597,7 +2597,7 @@ public virtual VirtualRouterCollection GetVirtualRouters() /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -2629,7 +2629,7 @@ public virtual async Task> GetVirtualRouterAsync /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -2668,7 +2668,7 @@ public virtual VirtualWanCollection GetVirtualWans() /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -2699,7 +2699,7 @@ public virtual async Task> GetVirtualWanAsync(strin /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -2737,7 +2737,7 @@ public virtual VpnSiteCollection GetVpnSites() /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -2768,7 +2768,7 @@ public virtual async Task> GetVpnSiteAsync(string vpnS /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -2806,7 +2806,7 @@ public virtual VpnServerConfigurationCollection GetVpnServerConfigurations() /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -2837,7 +2837,7 @@ public virtual async Task> GetVpnServer /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -2875,7 +2875,7 @@ public virtual VirtualHubCollection GetVirtualHubs() /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -2906,7 +2906,7 @@ public virtual async Task> GetVirtualHubAsync(strin /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -2944,7 +2944,7 @@ public virtual VpnGatewayCollection GetVpnGateways() /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -2975,7 +2975,7 @@ public virtual async Task> GetVpnGatewayAsync(strin /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -3013,7 +3013,7 @@ public virtual P2SVpnGatewayCollection GetP2SVpnGateways() /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -3044,7 +3044,7 @@ public virtual async Task> GetP2SVpnGatewayAsync /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -3082,7 +3082,7 @@ public virtual ExpressRouteGatewayCollection GetExpressRouteGateways() /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -3113,7 +3113,7 @@ public virtual async Task> GetExpressRoute /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -3151,7 +3151,7 @@ public virtual WebApplicationFirewallPolicyCollection GetWebApplicationFirewallP /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -3182,7 +3182,7 @@ public virtual async Task> GetWeb /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -3213,7 +3213,7 @@ public virtual Response GetWebApplicationF /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// @@ -3240,7 +3240,7 @@ public virtual AsyncPageable GetAvailableResourceGroupDeleg /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// @@ -3267,7 +3267,7 @@ public virtual Pageable GetAvailableResourceGroupDelegation /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// @@ -3294,7 +3294,7 @@ public virtual AsyncPageable GetAvailableServiceAliasesBy /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// @@ -3321,7 +3321,7 @@ public virtual Pageable GetAvailableServiceAliasesByResou /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// @@ -3348,7 +3348,7 @@ public virtual AsyncPageable GetAvailablePrivateEn /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// @@ -3375,7 +3375,7 @@ public virtual Pageable GetAvailablePrivateEndpoin /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// @@ -3418,7 +3418,7 @@ public virtual async Task> CheckPriva /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// @@ -3461,7 +3461,7 @@ public virtual ArmOperation CheckPrivateLinkServic /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// @@ -3488,7 +3488,7 @@ public virtual AsyncPageable GetAutoApprovedPriv /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Extensions/MockableNetworkSubscriptionResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Extensions/MockableNetworkSubscriptionResource.cs index 646d65f12cb2..93e571a9400c 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Extensions/MockableNetworkSubscriptionResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Extensions/MockableNetworkSubscriptionResource.cs @@ -267,7 +267,7 @@ public virtual ApplicationGatewayWafDynamicManifestCollection GetApplicationGate /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -296,7 +296,7 @@ public virtual async Task /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -332,7 +332,7 @@ public virtual AzureWebCategoryCollection GetAzureWebCategories() /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -364,7 +364,7 @@ public virtual async Task> GetAzureWebCategor /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -403,7 +403,7 @@ public virtual ExpressRouteProviderPortCollection GetExpressRouteProviderPorts() /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -434,7 +434,7 @@ public virtual async Task> GetExpress /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -472,7 +472,7 @@ public virtual ExpressRoutePortsLocationCollection GetExpressRoutePortsLocations /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -503,7 +503,7 @@ public virtual async Task> GetExpres /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -541,7 +541,7 @@ public virtual SubscriptionNetworkManagerConnectionCollection GetSubscriptionNet /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -572,7 +572,7 @@ public virtual async Task /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -610,7 +610,7 @@ public virtual NetworkVirtualApplianceSkuCollection GetNetworkVirtualApplianceSk /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -641,7 +641,7 @@ public virtual async Task> GetNetwo /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -672,7 +672,7 @@ public virtual Response GetNetworkVirtualApp /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -702,7 +702,7 @@ public virtual AsyncPageable GetApplicationGatewaysA /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -732,7 +732,7 @@ public virtual Pageable GetApplicationGateways(Cance /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -761,7 +761,7 @@ public virtual AsyncPageable GetAvailableServerVariablesApplicationGatew /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -790,7 +790,7 @@ public virtual Pageable GetAvailableServerVariablesApplicationGateways(C /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -819,7 +819,7 @@ public virtual AsyncPageable GetAvailableRequestHeadersApplicationGatewa /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -848,7 +848,7 @@ public virtual Pageable GetAvailableRequestHeadersApplicationGateways(Ca /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -877,7 +877,7 @@ public virtual AsyncPageable GetAvailableResponseHeadersApplicationGatew /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -906,7 +906,7 @@ public virtual Pageable GetAvailableResponseHeadersApplicationGateways(C /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -935,7 +935,7 @@ public virtual AsyncPageable GetAppGatewayAva /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -964,7 +964,7 @@ public virtual Pageable GetAppGatewayAvailabl /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -1002,7 +1002,7 @@ public virtual async Task> G /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -1040,7 +1040,7 @@ public virtual Response GetApplicatio /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -1070,7 +1070,7 @@ public virtual AsyncPageable GetApplicati /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -1100,7 +1100,7 @@ public virtual Pageable GetApplicationGat /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -1143,7 +1143,7 @@ public virtual async Task> GetAp /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -1186,7 +1186,7 @@ public virtual Response GetApplicationGat /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -1216,7 +1216,7 @@ public virtual AsyncPageable GetApplicationSec /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -1246,7 +1246,7 @@ public virtual Pageable GetApplicationSecurity /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// @@ -1273,7 +1273,7 @@ public virtual AsyncPageable GetAvailableDelegationsAsync(A /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// @@ -1300,7 +1300,7 @@ public virtual Pageable GetAvailableDelegations(AzureLocati /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// @@ -1327,7 +1327,7 @@ public virtual AsyncPageable GetAvailableServiceAliasesAs /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// @@ -1354,7 +1354,7 @@ public virtual Pageable GetAvailableServiceAliases(AzureL /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -1384,7 +1384,7 @@ public virtual AsyncPageable GetAzureFirewallsAsync(Cance /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -1414,7 +1414,7 @@ public virtual Pageable GetAzureFirewalls(CancellationTok /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// @@ -1440,7 +1440,7 @@ public virtual AsyncPageable GetAzureFirewallFqdnTagsAsync /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// @@ -1466,7 +1466,7 @@ public virtual Pageable GetAzureFirewallFqdnTags(Cancellat /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -1496,7 +1496,7 @@ public virtual AsyncPageable GetBastionHostsAsync(Cancellat /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -1526,7 +1526,7 @@ public virtual Pageable GetBastionHosts(CancellationToken c /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -1569,7 +1569,7 @@ public virtual async Task> CheckDnsNameAvail /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -1612,7 +1612,7 @@ public virtual Response CheckDnsNameAvailability(Azur /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -1642,7 +1642,7 @@ public virtual AsyncPageable GetCustomIPPrefixesAsync(Ca /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -1672,7 +1672,7 @@ public virtual Pageable GetCustomIPPrefixes(Cancellation /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -1702,7 +1702,7 @@ public virtual AsyncPageable GetDdosProtectionPlansA /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -1732,7 +1732,7 @@ public virtual Pageable GetDdosProtectionPlans(Cance /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -1762,7 +1762,7 @@ public virtual AsyncPageable GetDscpConfigurationsAsy /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -1792,7 +1792,7 @@ public virtual Pageable GetDscpConfigurations(Cancell /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// @@ -1819,7 +1819,7 @@ public virtual AsyncPageable GetAvailableEndpointServices /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// @@ -1846,7 +1846,7 @@ public virtual Pageable GetAvailableEndpointServices(Azur /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -1876,7 +1876,7 @@ public virtual AsyncPageable GetExpressRouteCircuit /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -1906,7 +1906,7 @@ public virtual Pageable GetExpressRouteCircuits(Can /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// @@ -1932,7 +1932,7 @@ public virtual AsyncPageable GetExpressRouteService /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// @@ -1958,7 +1958,7 @@ public virtual Pageable GetExpressRouteServiceProvi /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -1989,7 +1989,7 @@ public virtual AsyncPageable GetExpressRout /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -2020,7 +2020,7 @@ public virtual Pageable GetExpressRouteCros /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -2050,7 +2050,7 @@ public virtual AsyncPageable GetExpressRoutePortsAsync /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -2080,7 +2080,7 @@ public virtual Pageable GetExpressRoutePorts(Cancellat /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -2110,7 +2110,7 @@ public virtual AsyncPageable GetFirewallPoliciesAsync(Ca /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -2140,7 +2140,7 @@ public virtual Pageable GetFirewallPolicies(Cancellation /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -2170,7 +2170,7 @@ public virtual AsyncPageable GetIPAllocationsAsync(Cancell /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -2200,7 +2200,7 @@ public virtual Pageable GetIPAllocations(CancellationToken /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -2230,7 +2230,7 @@ public virtual AsyncPageable GetIPGroupsAsync(CancellationToken /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -2260,7 +2260,7 @@ public virtual Pageable GetIPGroups(CancellationToken cancellat /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -2290,7 +2290,7 @@ public virtual AsyncPageable GetLoadBalancersAsync(Cancell /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -2320,7 +2320,7 @@ public virtual Pageable GetLoadBalancers(CancellationToken /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -2367,7 +2367,7 @@ public virtual async Task SwapPublicIPAddressesLoadBalancerAsync(W /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -2414,7 +2414,7 @@ public virtual ArmOperation SwapPublicIPAddressesLoadBalancer(WaitUntil waitUnti /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -2444,7 +2444,7 @@ public virtual AsyncPageable GetNatGatewaysAsync(Cancellatio /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -2474,7 +2474,7 @@ public virtual Pageable GetNatGateways(CancellationToken can /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -2504,7 +2504,7 @@ public virtual AsyncPageable GetNetworkInterfacesAsync /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -2534,7 +2534,7 @@ public virtual Pageable GetNetworkInterfaces(Cancellat /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -2566,7 +2566,7 @@ public virtual AsyncPageable GetNetworkManagersAsync(int /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -2598,7 +2598,7 @@ public virtual Pageable GetNetworkManagers(int? top = nu /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -2628,7 +2628,7 @@ public virtual AsyncPageable GetNetworkProfilesAsync(Can /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -2658,7 +2658,7 @@ public virtual Pageable GetNetworkProfiles(CancellationT /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -2688,7 +2688,7 @@ public virtual AsyncPageable GetNetworkSecurityGro /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -2718,7 +2718,7 @@ public virtual Pageable GetNetworkSecurityGroups(C /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -2748,7 +2748,7 @@ public virtual AsyncPageable GetNetworkVirtualA /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -2778,7 +2778,7 @@ public virtual Pageable GetNetworkVirtualApplia /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -2807,7 +2807,7 @@ public virtual AsyncPageable GetNetworkWatchersAsync(Can /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -2836,7 +2836,7 @@ public virtual Pageable GetNetworkWatchers(CancellationT /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -2866,7 +2866,7 @@ public virtual AsyncPageable GetPrivateEndpointsAsync(C /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -2896,7 +2896,7 @@ public virtual Pageable GetPrivateEndpoints(Cancellatio /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// @@ -2923,7 +2923,7 @@ public virtual AsyncPageable GetAvailablePrivateEn /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// @@ -2950,7 +2950,7 @@ public virtual Pageable GetAvailablePrivateEndpoin /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -2980,7 +2980,7 @@ public virtual AsyncPageable GetPrivateLinkServicesA /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -3010,7 +3010,7 @@ public virtual Pageable GetPrivateLinkServices(Cance /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// @@ -3053,7 +3053,7 @@ public virtual async Task> CheckPriva /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// @@ -3096,7 +3096,7 @@ public virtual ArmOperation CheckPrivateLinkServic /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// @@ -3123,7 +3123,7 @@ public virtual AsyncPageable GetAutoApprovedPriv /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// @@ -3150,7 +3150,7 @@ public virtual Pageable GetAutoApprovedPrivateLi /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -3180,7 +3180,7 @@ public virtual AsyncPageable GetPublicIPAddressesAsync( /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -3210,7 +3210,7 @@ public virtual Pageable GetPublicIPAddresses(Cancellati /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -3240,7 +3240,7 @@ public virtual AsyncPageable GetPublicIPPrefixesAsync(Ca /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -3270,7 +3270,7 @@ public virtual Pageable GetPublicIPPrefixes(Cancellation /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -3300,7 +3300,7 @@ public virtual AsyncPageable GetRouteFiltersAsync(Cancellat /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -3330,7 +3330,7 @@ public virtual Pageable GetRouteFilters(CancellationToken c /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -3360,7 +3360,7 @@ public virtual AsyncPageable GetRouteTablesAsync(Cancellatio /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -3390,7 +3390,7 @@ public virtual Pageable GetRouteTables(CancellationToken can /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -3420,7 +3420,7 @@ public virtual AsyncPageable GetSecurityPartner /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -3450,7 +3450,7 @@ public virtual Pageable GetSecurityPartnerProvi /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// @@ -3476,7 +3476,7 @@ public virtual AsyncPageable GetBgpServiceCommunitiesAsync( /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// @@ -3502,7 +3502,7 @@ public virtual Pageable GetBgpServiceCommunities(Cancellati /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -3532,7 +3532,7 @@ public virtual AsyncPageable GetServiceEndpointPo /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -3562,7 +3562,7 @@ public virtual Pageable GetServiceEndpointPolicie /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// @@ -3597,7 +3597,7 @@ public virtual async Task> GetServiceTagAsync(Az /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// @@ -3632,7 +3632,7 @@ public virtual Response GetServiceTag(AzureLocation locat /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// @@ -3661,7 +3661,7 @@ public virtual AsyncPageable GetAllServiceTagInformationA /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// @@ -3690,7 +3690,7 @@ public virtual Pageable GetAllServiceTagInformation(Azure /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// @@ -3717,7 +3717,7 @@ public virtual AsyncPageable GetUsagesAsync(AzureLocation location /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// @@ -3744,7 +3744,7 @@ public virtual Pageable GetUsages(AzureLocation location, Cancella /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -3774,7 +3774,7 @@ public virtual AsyncPageable GetVirtualNetworksAsync(Can /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -3804,7 +3804,7 @@ public virtual Pageable GetVirtualNetworks(CancellationT /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -3834,7 +3834,7 @@ public virtual AsyncPageable GetVirtualNetworkTapsAsy /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -3864,7 +3864,7 @@ public virtual Pageable GetVirtualNetworkTaps(Cancell /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -3894,7 +3894,7 @@ public virtual AsyncPageable GetVirtualRoutersAsync(Cance /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -3924,7 +3924,7 @@ public virtual Pageable GetVirtualRouters(CancellationTok /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -3954,7 +3954,7 @@ public virtual AsyncPageable GetVirtualWansAsync(Cancellatio /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -3984,7 +3984,7 @@ public virtual Pageable GetVirtualWans(CancellationToken can /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -4014,7 +4014,7 @@ public virtual AsyncPageable GetVpnSitesAsync(CancellationToken /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -4044,7 +4044,7 @@ public virtual Pageable GetVpnSites(CancellationToken cancellat /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -4074,7 +4074,7 @@ public virtual AsyncPageable GetVpnServerConfigu /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -4104,7 +4104,7 @@ public virtual Pageable GetVpnServerConfiguratio /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -4134,7 +4134,7 @@ public virtual AsyncPageable GetVirtualHubsAsync(Cancellatio /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -4164,7 +4164,7 @@ public virtual Pageable GetVirtualHubs(CancellationToken can /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -4194,7 +4194,7 @@ public virtual AsyncPageable GetVpnGatewaysAsync(Cancellatio /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -4224,7 +4224,7 @@ public virtual Pageable GetVpnGateways(CancellationToken can /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -4254,7 +4254,7 @@ public virtual AsyncPageable GetP2SVpnGatewaysAsync(Cance /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -4284,7 +4284,7 @@ public virtual Pageable GetP2SVpnGateways(CancellationTok /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -4313,7 +4313,7 @@ public virtual AsyncPageable GetExpressRouteGateway /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -4342,7 +4342,7 @@ public virtual Pageable GetExpressRouteGateways(Can /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -4372,7 +4372,7 @@ public virtual AsyncPageable GetWebApplica /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Extensions/NetworkExtensions.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Extensions/NetworkExtensions.cs index cbc8e28cdd4a..d5e7cba1b59a 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Extensions/NetworkExtensions.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Extensions/NetworkExtensions.cs @@ -590,6 +590,44 @@ public static FirewallPolicyRuleCollectionGroupDraftResource GetFirewallPolicyRu return GetMockableNetworkArmClient(client).GetFirewallPolicyRuleCollectionGroupDraftResource(id); } + /// + /// Gets an object representing an along with the instance operations that can be performed on it but with no data. + /// You can use to create an from its components. + /// + /// Mocking + /// To mock this method, please mock instead. + /// + /// + /// The instance the method will execute against. + /// The resource ID of the resource to get. + /// is null. + /// Returns a object. + public static IpamPoolResource GetIpamPoolResource(this ArmClient client, ResourceIdentifier id) + { + Argument.AssertNotNull(client, nameof(client)); + + return GetMockableNetworkArmClient(client).GetIpamPoolResource(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 StaticCidrResource GetStaticCidrResource(this ArmClient client, ResourceIdentifier id) + { + Argument.AssertNotNull(client, nameof(client)); + + return GetMockableNetworkArmClient(client).GetStaticCidrResource(id); + } + /// /// Gets an object representing an along with the instance operations that can be performed on it but with no data. /// You can use to create an from its components. @@ -951,6 +989,63 @@ public static NetworkGroupStaticMemberResource GetNetworkGroupStaticMemberResour return GetMockableNetworkArmClient(client).GetNetworkGroupStaticMemberResource(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 NetworkManagerRoutingConfigurationResource GetNetworkManagerRoutingConfigurationResource(this ArmClient client, ResourceIdentifier id) + { + Argument.AssertNotNull(client, nameof(client)); + + return GetMockableNetworkArmClient(client).GetNetworkManagerRoutingConfigurationResource(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 NetworkManagerRoutingRulesResource GetNetworkManagerRoutingRulesResource(this ArmClient client, ResourceIdentifier id) + { + Argument.AssertNotNull(client, nameof(client)); + + return GetMockableNetworkArmClient(client).GetNetworkManagerRoutingRulesResource(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 NetworkManagerRoutingRuleResource GetNetworkManagerRoutingRuleResource(this ArmClient client, ResourceIdentifier id) + { + Argument.AssertNotNull(client, nameof(client)); + + return GetMockableNetworkArmClient(client).GetNetworkManagerRoutingRuleResource(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. @@ -1085,136 +1180,136 @@ public static NetworkManagerSecurityUserRuleResource GetNetworkManagerSecurityUs } /// - /// Gets an object representing a along with the instance operations that can be performed on it but with no data. - /// You can use to create a from its components. + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. /// /// Mocking - /// To mock this method, please mock instead. + /// To mock this method, please mock instead. /// /// /// The instance the method will execute against. /// The resource ID of the resource to get. /// is null. - /// Returns a object. - public static NetworkManagerRoutingConfigurationResource GetNetworkManagerRoutingConfigurationResource(this ArmClient client, ResourceIdentifier id) + /// Returns a object. + public static NetworkProfileResource GetNetworkProfileResource(this ArmClient client, ResourceIdentifier id) { Argument.AssertNotNull(client, nameof(client)); - return GetMockableNetworkArmClient(client).GetNetworkManagerRoutingConfigurationResource(id); + return GetMockableNetworkArmClient(client).GetNetworkProfileResource(id); } /// - /// Gets an object representing a along with the instance operations that can be performed on it but with no data. - /// You can use to create a from its components. + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. /// /// Mocking - /// To mock this method, please mock instead. + /// To mock this method, please mock instead. /// /// /// The instance the method will execute against. /// The resource ID of the resource to get. /// is null. - /// Returns a object. - public static NetworkManagerRoutingRulesResource GetNetworkManagerRoutingRulesResource(this ArmClient client, ResourceIdentifier id) + /// Returns a object. + public static NetworkSecurityGroupResource GetNetworkSecurityGroupResource(this ArmClient client, ResourceIdentifier id) { Argument.AssertNotNull(client, nameof(client)); - return GetMockableNetworkArmClient(client).GetNetworkManagerRoutingRulesResource(id); + return GetMockableNetworkArmClient(client).GetNetworkSecurityGroupResource(id); } /// - /// Gets an object representing a along with the instance operations that can be performed on it but with no data. - /// You can use to create a from its components. + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. /// /// Mocking - /// To mock this method, please mock instead. + /// To mock this method, please mock instead. /// /// /// The instance the method will execute against. /// The resource ID of the resource to get. /// is null. - /// Returns a object. - public static NetworkManagerRoutingRuleResource GetNetworkManagerRoutingRuleResource(this ArmClient client, ResourceIdentifier id) + /// Returns a object. + public static SecurityRuleResource GetSecurityRuleResource(this ArmClient client, ResourceIdentifier id) { Argument.AssertNotNull(client, nameof(client)); - return GetMockableNetworkArmClient(client).GetNetworkManagerRoutingRuleResource(id); + return GetMockableNetworkArmClient(client).GetSecurityRuleResource(id); } /// - /// Gets an object representing a along with the instance operations that can be performed on it but with no data. - /// You can use to create a from its components. + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. /// /// Mocking - /// To mock this method, please mock instead. + /// To mock this method, please mock instead. /// /// /// The instance the method will execute against. /// The resource ID of the resource to get. /// is null. - /// Returns a object. - public static NetworkProfileResource GetNetworkProfileResource(this ArmClient client, ResourceIdentifier id) + /// Returns a object. + public static DefaultSecurityRuleResource GetDefaultSecurityRuleResource(this ArmClient client, ResourceIdentifier id) { Argument.AssertNotNull(client, nameof(client)); - return GetMockableNetworkArmClient(client).GetNetworkProfileResource(id); + return GetMockableNetworkArmClient(client).GetDefaultSecurityRuleResource(id); } /// - /// Gets an object representing a along with the instance operations that can be performed on it but with no data. - /// You can use to create a from its components. + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. /// /// Mocking - /// To mock this method, please mock instead. + /// To mock this method, please mock instead. /// /// /// The instance the method will execute against. /// The resource ID of the resource to get. /// is null. - /// Returns a object. - public static NetworkSecurityGroupResource GetNetworkSecurityGroupResource(this ArmClient client, ResourceIdentifier id) + /// Returns a object. + public static ReachabilityAnalysisIntentResource GetReachabilityAnalysisIntentResource(this ArmClient client, ResourceIdentifier id) { Argument.AssertNotNull(client, nameof(client)); - return GetMockableNetworkArmClient(client).GetNetworkSecurityGroupResource(id); + return GetMockableNetworkArmClient(client).GetReachabilityAnalysisIntentResource(id); } /// - /// Gets an object representing a along with the instance operations that can be performed on it but with no data. - /// You can use to create a from its components. + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. /// /// Mocking - /// To mock this method, please mock instead. + /// To mock this method, please mock instead. /// /// /// The instance the method will execute against. /// The resource ID of the resource to get. /// is null. - /// Returns a object. - public static SecurityRuleResource GetSecurityRuleResource(this ArmClient client, ResourceIdentifier id) + /// Returns a object. + public static ReachabilityAnalysisRunResource GetReachabilityAnalysisRunResource(this ArmClient client, ResourceIdentifier id) { Argument.AssertNotNull(client, nameof(client)); - return GetMockableNetworkArmClient(client).GetSecurityRuleResource(id); + return GetMockableNetworkArmClient(client).GetReachabilityAnalysisRunResource(id); } /// - /// Gets an object representing a along with the instance operations that can be performed on it but with no data. - /// You can use to create a from its components. + /// Gets an object representing a along with the instance operations that can be performed on it but with no data. + /// You can use to create a from its components. /// /// Mocking - /// To mock this method, please mock instead. + /// To mock this method, please mock instead. /// /// /// The instance the method will execute against. /// The resource ID of the resource to get. /// is null. - /// Returns a object. - public static DefaultSecurityRuleResource GetDefaultSecurityRuleResource(this ArmClient client, ResourceIdentifier id) + /// Returns a object. + public static VerifierWorkspaceResource GetVerifierWorkspaceResource(this ArmClient client, ResourceIdentifier id) { Argument.AssertNotNull(client, nameof(client)); - return GetMockableNetworkArmClient(client).GetDefaultSecurityRuleResource(id); + return GetMockableNetworkArmClient(client).GetVerifierWorkspaceResource(id); } /// @@ -2311,7 +2406,7 @@ public static ManagementGroupNetworkManagerConnectionCollection GetManagementGro /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -2349,7 +2444,7 @@ public static async Task /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -2404,7 +2499,7 @@ public static ApplicationGatewayCollection GetApplicationGateways(this ResourceG /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -2442,7 +2537,7 @@ public static async Task> GetApplicationGat /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -2497,7 +2592,7 @@ public static ApplicationSecurityGroupCollection GetApplicationSecurityGroups(th /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -2535,7 +2630,7 @@ public static async Task> GetApplicat /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -2590,7 +2685,7 @@ public static AzureFirewallCollection GetAzureFirewalls(this ResourceGroupResour /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -2628,7 +2723,7 @@ public static async Task> GetAzureFirewallAsync( /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -2683,7 +2778,7 @@ public static BastionHostCollection GetBastionHosts(this ResourceGroupResource r /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -2721,7 +2816,7 @@ public static async Task> GetBastionHostAsync(this /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -2778,7 +2873,7 @@ public static CloudServiceSwapCollection GetCloudServiceSwaps(this ResourceGroup /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -2816,7 +2911,7 @@ public static async Task> GetCloudServiceSwap /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -2871,7 +2966,7 @@ public static CustomIPPrefixCollection GetCustomIPPrefixes(this ResourceGroupRes /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -2910,7 +3005,7 @@ public static async Task> GetCustomIPPrefixAsyn /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -2966,7 +3061,7 @@ public static DdosCustomPolicyCollection GetDdosCustomPolicies(this ResourceGrou /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -3004,7 +3099,7 @@ public static async Task> GetDdosCustomPolicy /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -3059,7 +3154,7 @@ public static DdosProtectionPlanCollection GetDdosProtectionPlans(this ResourceG /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -3097,7 +3192,7 @@ public static async Task> GetDdosProtection /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -3152,7 +3247,7 @@ public static DscpConfigurationCollection GetDscpConfigurations(this ResourceGro /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -3190,7 +3285,7 @@ public static async Task> GetDscpConfigurati /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -3245,7 +3340,7 @@ public static ExpressRouteCircuitCollection GetExpressRouteCircuits(this Resourc /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -3283,7 +3378,7 @@ public static async Task> GetExpressRouteC /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -3338,7 +3433,7 @@ public static ExpressRouteCrossConnectionCollection GetExpressRouteCrossConnecti /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -3376,7 +3471,7 @@ public static async Task> GetExpre /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -3431,7 +3526,7 @@ public static ExpressRoutePortCollection GetExpressRoutePorts(this ResourceGroup /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -3469,7 +3564,7 @@ public static async Task> GetExpressRoutePort /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -3524,7 +3619,7 @@ public static FirewallPolicyCollection GetFirewallPolicies(this ResourceGroupRes /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -3563,7 +3658,7 @@ public static async Task> GetFirewallPolicyAsyn /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -3619,7 +3714,7 @@ public static IPAllocationCollection GetIPAllocations(this ResourceGroupResource /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -3658,7 +3753,7 @@ public static async Task> GetIPAllocationAsync(th /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -3714,7 +3809,7 @@ public static IPGroupCollection GetIPGroups(this ResourceGroupResource resourceG /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -3753,7 +3848,7 @@ public static async Task> GetIPGroupAsync(this Resourc /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -3809,7 +3904,7 @@ public static LoadBalancerCollection GetLoadBalancers(this ResourceGroupResource /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -3848,7 +3943,7 @@ public static async Task> GetLoadBalancerAsync(th /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -3904,7 +3999,7 @@ public static NatGatewayCollection GetNatGateways(this ResourceGroupResource res /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -3943,7 +4038,7 @@ public static async Task> GetNatGatewayAsync(this R /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -3999,7 +4094,7 @@ public static NetworkInterfaceCollection GetNetworkInterfaces(this ResourceGroup /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -4038,7 +4133,7 @@ public static async Task> GetNetworkInterface /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -4094,7 +4189,7 @@ public static NetworkManagerCollection GetNetworkManagers(this ResourceGroupReso /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -4132,7 +4227,7 @@ public static async Task> GetNetworkManagerAsyn /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -4187,7 +4282,7 @@ public static NetworkProfileCollection GetNetworkProfiles(this ResourceGroupReso /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -4226,7 +4321,7 @@ public static async Task> GetNetworkProfileAsyn /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -4282,7 +4377,7 @@ public static NetworkSecurityGroupCollection GetNetworkSecurityGroups(this Resou /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -4321,7 +4416,7 @@ public static async Task> GetNetworkSecur /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -4377,7 +4472,7 @@ public static NetworkVirtualApplianceCollection GetNetworkVirtualAppliances(this /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -4416,7 +4511,7 @@ public static async Task> GetNetworkVi /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -4472,7 +4567,7 @@ public static NetworkWatcherCollection GetNetworkWatchers(this ResourceGroupReso /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -4510,7 +4605,7 @@ public static async Task> GetNetworkWatcherAsyn /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -4565,7 +4660,7 @@ public static PrivateEndpointCollection GetPrivateEndpoints(this ResourceGroupRe /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -4604,7 +4699,7 @@ public static async Task> GetPrivateEndpointAs /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -4660,7 +4755,7 @@ public static PrivateLinkServiceCollection GetPrivateLinkServices(this ResourceG /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -4699,7 +4794,7 @@ public static async Task> GetPrivateLinkSer /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -4755,7 +4850,7 @@ public static PublicIPAddressCollection GetPublicIPAddresses(this ResourceGroupR /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -4794,7 +4889,7 @@ public static async Task> GetPublicIPAddressAs /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -4850,7 +4945,7 @@ public static PublicIPPrefixCollection GetPublicIPPrefixes(this ResourceGroupRes /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -4889,7 +4984,7 @@ public static async Task> GetPublicIPPrefixAsyn /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -4945,7 +5040,7 @@ public static RouteFilterCollection GetRouteFilters(this ResourceGroupResource r /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -4984,7 +5079,7 @@ public static async Task> GetRouteFilterAsync(this /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -5040,7 +5135,7 @@ public static RouteTableCollection GetRouteTables(this ResourceGroupResource res /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -5079,7 +5174,7 @@ public static async Task> GetRouteTableAsync(this R /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -5135,7 +5230,7 @@ public static SecurityPartnerProviderCollection GetSecurityPartnerProviders(this /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -5173,7 +5268,7 @@ public static async Task> GetSecurityP /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -5228,7 +5323,7 @@ public static ServiceEndpointPolicyCollection GetServiceEndpointPolicies(this Re /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -5267,7 +5362,7 @@ public static async Task> GetServiceEndp /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -5323,7 +5418,7 @@ public static VirtualNetworkCollection GetVirtualNetworks(this ResourceGroupReso /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -5362,7 +5457,7 @@ public static async Task> GetVirtualNetworkAsyn /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -5418,7 +5513,7 @@ public static VirtualNetworkGatewayCollection GetVirtualNetworkGateways(this Res /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -5456,7 +5551,7 @@ public static async Task> GetVirtualNetw /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -5511,7 +5606,7 @@ public static VirtualNetworkGatewayConnectionCollection GetVirtualNetworkGateway /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -5549,7 +5644,7 @@ public static async Task> GetV /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -5604,7 +5699,7 @@ public static LocalNetworkGatewayCollection GetLocalNetworkGateways(this Resourc /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -5642,7 +5737,7 @@ public static async Task> GetLocalNetworkG /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -5697,7 +5792,7 @@ public static VirtualNetworkTapCollection GetVirtualNetworkTaps(this ResourceGro /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -5735,7 +5830,7 @@ public static async Task> GetVirtualNetworkT /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -5790,7 +5885,7 @@ public static VirtualRouterCollection GetVirtualRouters(this ResourceGroupResour /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -5829,7 +5924,7 @@ public static async Task> GetVirtualRouterAsync( /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -5885,7 +5980,7 @@ public static VirtualWanCollection GetVirtualWans(this ResourceGroupResource res /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -5923,7 +6018,7 @@ public static async Task> GetVirtualWanAsync(this R /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -5978,7 +6073,7 @@ public static VpnSiteCollection GetVpnSites(this ResourceGroupResource resourceG /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -6016,7 +6111,7 @@ public static async Task> GetVpnSiteAsync(this Resourc /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -6071,7 +6166,7 @@ public static VpnServerConfigurationCollection GetVpnServerConfigurations(this R /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -6109,7 +6204,7 @@ public static async Task> GetVpnServerC /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -6164,7 +6259,7 @@ public static VirtualHubCollection GetVirtualHubs(this ResourceGroupResource res /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -6202,7 +6297,7 @@ public static async Task> GetVirtualHubAsync(this R /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -6257,7 +6352,7 @@ public static VpnGatewayCollection GetVpnGateways(this ResourceGroupResource res /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -6295,7 +6390,7 @@ public static async Task> GetVpnGatewayAsync(this R /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -6350,7 +6445,7 @@ public static P2SVpnGatewayCollection GetP2SVpnGateways(this ResourceGroupResour /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -6388,7 +6483,7 @@ public static async Task> GetP2SVpnGatewayAsync( /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -6443,7 +6538,7 @@ public static ExpressRouteGatewayCollection GetExpressRouteGateways(this Resourc /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -6481,7 +6576,7 @@ public static async Task> GetExpressRouteG /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -6536,7 +6631,7 @@ public static WebApplicationFirewallPolicyCollection GetWebApplicationFirewallPo /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -6574,7 +6669,7 @@ public static async Task> GetWebA /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -6612,7 +6707,7 @@ public static Response GetWebApplicationFi /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// @@ -6645,7 +6740,7 @@ public static AsyncPageable GetAvailableResourceGroupDelega /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// @@ -6678,7 +6773,7 @@ public static Pageable GetAvailableResourceGroupDelegations /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// @@ -6711,7 +6806,7 @@ public static AsyncPageable GetAvailableServiceAliasesByR /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// @@ -6744,7 +6839,7 @@ public static Pageable GetAvailableServiceAliasesByResour /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// @@ -6777,7 +6872,7 @@ public static AsyncPageable GetAvailablePrivateEnd /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// @@ -6810,7 +6905,7 @@ public static Pageable GetAvailablePrivateEndpoint /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// @@ -6844,7 +6939,7 @@ public static async Task> CheckPrivat /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// @@ -6878,7 +6973,7 @@ public static ArmOperation CheckPrivateLinkService /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// @@ -6911,7 +7006,7 @@ public static AsyncPageable GetAutoApprovedPriva /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// @@ -6962,7 +7057,7 @@ public static ApplicationGatewayWafDynamicManifestCollection GetApplicationGatew /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -6999,7 +7094,7 @@ public static async Task> /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -7053,7 +7148,7 @@ public static AzureWebCategoryCollection GetAzureWebCategories(this Subscription /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -7092,7 +7187,7 @@ public static async Task> GetAzureWebCategory /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -7148,7 +7243,7 @@ public static ExpressRouteProviderPortCollection GetExpressRouteProviderPorts(th /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -7186,7 +7281,7 @@ public static async Task> GetExpressR /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -7241,7 +7336,7 @@ public static ExpressRoutePortsLocationCollection GetExpressRoutePortsLocations( /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -7279,7 +7374,7 @@ public static async Task> GetExpress /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -7334,7 +7429,7 @@ public static SubscriptionNetworkManagerConnectionCollection GetSubscriptionNetw /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -7372,7 +7467,7 @@ public static async Task> /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -7427,7 +7522,7 @@ public static NetworkVirtualApplianceSkuCollection GetNetworkVirtualApplianceSku /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -7465,7 +7560,7 @@ public static async Task> GetNetwor /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -7503,7 +7598,7 @@ public static Response GetNetworkVirtualAppl /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -7539,7 +7634,7 @@ public static AsyncPageable GetApplicationGatewaysAs /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -7575,7 +7670,7 @@ public static Pageable GetApplicationGateways(this S /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -7611,7 +7706,7 @@ public static AsyncPageable GetAvailableServerVariablesApplicationGatewa /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -7647,7 +7742,7 @@ public static Pageable GetAvailableServerVariablesApplicationGateways(th /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -7683,7 +7778,7 @@ public static AsyncPageable GetAvailableRequestHeadersApplicationGateway /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -7719,7 +7814,7 @@ public static Pageable GetAvailableRequestHeadersApplicationGateways(thi /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -7755,7 +7850,7 @@ public static AsyncPageable GetAvailableResponseHeadersApplicationGatewa /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -7791,7 +7886,7 @@ public static Pageable GetAvailableResponseHeadersApplicationGateways(th /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -7827,7 +7922,7 @@ public static AsyncPageable GetAppGatewayAvai /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -7863,7 +7958,7 @@ public static Pageable GetAppGatewayAvailable /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -7898,7 +7993,7 @@ public static async Task> Ge /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -7933,7 +8028,7 @@ public static Response GetApplication /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -7969,7 +8064,7 @@ public static AsyncPageable GetApplicatio /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -8005,7 +8100,7 @@ public static Pageable GetApplicationGate /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -8042,7 +8137,7 @@ public static async Task> GetApp /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -8079,7 +8174,7 @@ public static Response GetApplicationGate /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -8115,7 +8210,7 @@ public static AsyncPageable GetApplicationSecu /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -8151,7 +8246,7 @@ public static Pageable GetApplicationSecurityG /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// @@ -8184,7 +8279,7 @@ public static AsyncPageable GetAvailableDelegationsAsync(th /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// @@ -8217,7 +8312,7 @@ public static Pageable GetAvailableDelegations(this Subscri /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// @@ -8250,7 +8345,7 @@ public static AsyncPageable GetAvailableServiceAliasesAsy /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// @@ -8283,7 +8378,7 @@ public static Pageable GetAvailableServiceAliases(this Su /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -8319,7 +8414,7 @@ public static AsyncPageable GetAzureFirewallsAsync(this S /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -8355,7 +8450,7 @@ public static Pageable GetAzureFirewalls(this Subscriptio /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// @@ -8387,7 +8482,7 @@ public static AsyncPageable GetAzureFirewallFqdnTagsAsync( /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// @@ -8419,7 +8514,7 @@ public static Pageable GetAzureFirewallFqdnTags(this Subsc /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -8455,7 +8550,7 @@ public static AsyncPageable GetBastionHostsAsync(this Subsc /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -8491,7 +8586,7 @@ public static Pageable GetBastionHosts(this SubscriptionRes /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -8528,7 +8623,7 @@ public static async Task> CheckDnsNameAvaila /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -8565,7 +8660,7 @@ public static Response CheckDnsNameAvailability(this /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -8601,7 +8696,7 @@ public static AsyncPageable GetCustomIPPrefixesAsync(thi /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -8637,7 +8732,7 @@ public static Pageable GetCustomIPPrefixes(this Subscrip /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -8673,7 +8768,7 @@ public static AsyncPageable GetDdosProtectionPlansAs /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -8709,7 +8804,7 @@ public static Pageable GetDdosProtectionPlans(this S /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -8745,7 +8840,7 @@ public static AsyncPageable GetDscpConfigurationsAsyn /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -8781,7 +8876,7 @@ public static Pageable GetDscpConfigurations(this Sub /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// @@ -8814,7 +8909,7 @@ public static AsyncPageable GetAvailableEndpointServicesA /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// @@ -8847,7 +8942,7 @@ public static Pageable GetAvailableEndpointServices(this /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -8883,7 +8978,7 @@ public static AsyncPageable GetExpressRouteCircuits /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -8919,7 +9014,7 @@ public static Pageable GetExpressRouteCircuits(this /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// @@ -8951,7 +9046,7 @@ public static AsyncPageable GetExpressRouteServiceP /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// @@ -8983,7 +9078,7 @@ public static Pageable GetExpressRouteServiceProvid /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -9020,7 +9115,7 @@ public static AsyncPageable GetExpressRoute /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -9057,7 +9152,7 @@ public static Pageable GetExpressRouteCross /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -9093,7 +9188,7 @@ public static AsyncPageable GetExpressRoutePortsAsync( /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -9129,7 +9224,7 @@ public static Pageable GetExpressRoutePorts(this Subsc /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -9165,7 +9260,7 @@ public static AsyncPageable GetFirewallPoliciesAsync(thi /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -9201,7 +9296,7 @@ public static Pageable GetFirewallPolicies(this Subscrip /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -9237,7 +9332,7 @@ public static AsyncPageable GetIPAllocationsAsync(this Sub /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -9273,7 +9368,7 @@ public static Pageable GetIPAllocations(this SubscriptionR /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -9309,7 +9404,7 @@ public static AsyncPageable GetIPGroupsAsync(this SubscriptionR /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -9345,7 +9440,7 @@ public static Pageable GetIPGroups(this SubscriptionResource su /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -9381,7 +9476,7 @@ public static AsyncPageable GetLoadBalancersAsync(this Sub /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -9417,7 +9512,7 @@ public static Pageable GetLoadBalancers(this SubscriptionR /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -9455,7 +9550,7 @@ public static async Task SwapPublicIPAddressesLoadBalancerAsync(th /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -9493,7 +9588,7 @@ public static ArmOperation SwapPublicIPAddressesLoadBalancer(this SubscriptionRe /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -9529,7 +9624,7 @@ public static AsyncPageable GetNatGatewaysAsync(this Subscri /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -9565,7 +9660,7 @@ public static Pageable GetNatGateways(this SubscriptionResou /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -9601,7 +9696,7 @@ public static AsyncPageable GetNetworkInterfacesAsync( /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -9637,7 +9732,7 @@ public static Pageable GetNetworkInterfaces(this Subsc /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -9675,7 +9770,7 @@ public static AsyncPageable GetNetworkManagersAsync(this /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -9713,7 +9808,7 @@ public static Pageable GetNetworkManagers(this Subscript /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -9749,7 +9844,7 @@ public static AsyncPageable GetNetworkProfilesAsync(this /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -9785,7 +9880,7 @@ public static Pageable GetNetworkProfiles(this Subscript /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -9821,7 +9916,7 @@ public static AsyncPageable GetNetworkSecurityGrou /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -9857,7 +9952,7 @@ public static Pageable GetNetworkSecurityGroups(th /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -9893,7 +9988,7 @@ public static AsyncPageable GetNetworkVirtualAp /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -9929,7 +10024,7 @@ public static Pageable GetNetworkVirtualApplian /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -9965,7 +10060,7 @@ public static AsyncPageable GetNetworkWatchersAsync(this /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -10001,7 +10096,7 @@ public static Pageable GetNetworkWatchers(this Subscript /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -10037,7 +10132,7 @@ public static AsyncPageable GetPrivateEndpointsAsync(th /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -10073,7 +10168,7 @@ public static Pageable GetPrivateEndpoints(this Subscri /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// @@ -10106,7 +10201,7 @@ public static AsyncPageable GetAvailablePrivateEnd /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// @@ -10139,7 +10234,7 @@ public static Pageable GetAvailablePrivateEndpoint /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -10175,7 +10270,7 @@ public static AsyncPageable GetPrivateLinkServicesAs /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -10211,7 +10306,7 @@ public static Pageable GetPrivateLinkServices(this S /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// @@ -10245,7 +10340,7 @@ public static async Task> CheckPrivat /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// @@ -10279,7 +10374,7 @@ public static ArmOperation CheckPrivateLinkService /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// @@ -10312,7 +10407,7 @@ public static AsyncPageable GetAutoApprovedPriva /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// @@ -10345,7 +10440,7 @@ public static Pageable GetAutoApprovedPrivateLin /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -10381,7 +10476,7 @@ public static AsyncPageable GetPublicIPAddressesAsync(t /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -10417,7 +10512,7 @@ public static Pageable GetPublicIPAddresses(this Subscr /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -10453,7 +10548,7 @@ public static AsyncPageable GetPublicIPPrefixesAsync(thi /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -10489,7 +10584,7 @@ public static Pageable GetPublicIPPrefixes(this Subscrip /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -10525,7 +10620,7 @@ public static AsyncPageable GetRouteFiltersAsync(this Subsc /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -10561,7 +10656,7 @@ public static Pageable GetRouteFilters(this SubscriptionRes /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -10597,7 +10692,7 @@ public static AsyncPageable GetRouteTablesAsync(this Subscri /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -10633,7 +10728,7 @@ public static Pageable GetRouteTables(this SubscriptionResou /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -10669,7 +10764,7 @@ public static AsyncPageable GetSecurityPartnerP /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -10705,7 +10800,7 @@ public static Pageable GetSecurityPartnerProvid /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// @@ -10737,7 +10832,7 @@ public static AsyncPageable GetBgpServiceCommunitiesAsync(t /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// @@ -10769,7 +10864,7 @@ public static Pageable GetBgpServiceCommunities(this Subscr /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -10805,7 +10900,7 @@ public static AsyncPageable GetServiceEndpointPol /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -10841,7 +10936,7 @@ public static Pageable GetServiceEndpointPolicies /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// @@ -10873,7 +10968,7 @@ public static async Task> GetServiceTagAsync(thi /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// @@ -10905,7 +11000,7 @@ public static Response GetServiceTag(this SubscriptionRes /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// @@ -10940,7 +11035,7 @@ public static AsyncPageable GetAllServiceTagInformationAs /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// @@ -10975,7 +11070,7 @@ public static Pageable GetAllServiceTagInformation(this S /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// @@ -11008,7 +11103,7 @@ public static AsyncPageable GetUsagesAsync(this SubscriptionResour /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// @@ -11041,7 +11136,7 @@ public static Pageable GetUsages(this SubscriptionResource subscri /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -11077,7 +11172,7 @@ public static AsyncPageable GetVirtualNetworksAsync(this /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -11113,7 +11208,7 @@ public static Pageable GetVirtualNetworks(this Subscript /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -11149,7 +11244,7 @@ public static AsyncPageable GetVirtualNetworkTapsAsyn /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -11185,7 +11280,7 @@ public static Pageable GetVirtualNetworkTaps(this Sub /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -11221,7 +11316,7 @@ public static AsyncPageable GetVirtualRoutersAsync(this S /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -11257,7 +11352,7 @@ public static Pageable GetVirtualRouters(this Subscriptio /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -11293,7 +11388,7 @@ public static AsyncPageable GetVirtualWansAsync(this Subscri /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -11329,7 +11424,7 @@ public static Pageable GetVirtualWans(this SubscriptionResou /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -11365,7 +11460,7 @@ public static AsyncPageable GetVpnSitesAsync(this SubscriptionR /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -11401,7 +11496,7 @@ public static Pageable GetVpnSites(this SubscriptionResource su /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -11437,7 +11532,7 @@ public static AsyncPageable GetVpnServerConfigur /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -11473,7 +11568,7 @@ public static Pageable GetVpnServerConfiguration /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -11509,7 +11604,7 @@ public static AsyncPageable GetVirtualHubsAsync(this Subscri /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -11545,7 +11640,7 @@ public static Pageable GetVirtualHubs(this SubscriptionResou /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -11581,7 +11676,7 @@ public static AsyncPageable GetVpnGatewaysAsync(this Subscri /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -11617,7 +11712,7 @@ public static Pageable GetVpnGateways(this SubscriptionResou /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -11653,7 +11748,7 @@ public static AsyncPageable GetP2SVpnGatewaysAsync(this S /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -11689,7 +11784,7 @@ public static Pageable GetP2SVpnGateways(this Subscriptio /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -11725,7 +11820,7 @@ public static AsyncPageable GetExpressRouteGateways /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -11761,7 +11856,7 @@ public static Pageable GetExpressRouteGateways(this /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -11797,7 +11892,7 @@ public static AsyncPageable GetWebApplicat /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/FirewallPolicyCollection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/FirewallPolicyCollection.cs index acf1f05eba25..e71c83f46558 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/FirewallPolicyCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/FirewallPolicyCollection.cs @@ -65,7 +65,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -114,7 +114,7 @@ public virtual async Task> CreateOrUpdateAs /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -163,7 +163,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil wai /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -209,7 +209,7 @@ public virtual async Task> GetAsync(string fire /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -255,7 +255,7 @@ public virtual Response Get(string firewallPolicyName, s /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -285,7 +285,7 @@ public virtual AsyncPageable GetAllAsync(CancellationTok /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -315,7 +315,7 @@ public virtual Pageable GetAll(CancellationToken cancell /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -359,7 +359,7 @@ public virtual async Task> ExistsAsync(string firewallPolicyName, /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -403,7 +403,7 @@ public virtual Response Exists(string firewallPolicyName, string expand = /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -449,7 +449,7 @@ public virtual async Task> GetIfExistsA /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/FirewallPolicyDraftResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/FirewallPolicyDraftResource.cs index 81ac3605f5eb..8543813b0f77 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/FirewallPolicyDraftResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/FirewallPolicyDraftResource.cs @@ -101,7 +101,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -141,7 +141,7 @@ public virtual async Task> GetAsync(Cancel /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -181,7 +181,7 @@ public virtual Response Get(CancellationToken cance /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -225,7 +225,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -269,7 +269,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -317,7 +317,7 @@ public virtual async Task> CreateOrUpd /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -365,7 +365,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUnti /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -422,7 +422,7 @@ public virtual async Task> AddTagAsync(str /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -479,7 +479,7 @@ public virtual Response AddTag(string key, string v /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -535,7 +535,7 @@ public virtual async Task> SetTagsAsync(ID /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -591,7 +591,7 @@ public virtual Response SetTags(IDictionary /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -646,7 +646,7 @@ public virtual async Task> RemoveTagAsync( /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/FirewallPolicyResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/FirewallPolicyResource.cs index bb29d57f64cd..941beab8a15f 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/FirewallPolicyResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/FirewallPolicyResource.cs @@ -122,7 +122,7 @@ public virtual FirewallPolicyRuleCollectionGroupCollection GetFirewallPolicyRule /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -153,7 +153,7 @@ public virtual async Task> G /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -198,7 +198,7 @@ public virtual FirewallPolicyDraftResource GetFirewallPolicyDraft() /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -239,7 +239,7 @@ public virtual async Task> GetAsync(string expa /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -280,7 +280,7 @@ public virtual Response Get(string expand = null, Cancel /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -322,7 +322,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -364,7 +364,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -406,7 +406,7 @@ public virtual async Task> UpdateAsync(NetworkT /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -448,7 +448,7 @@ public virtual Response Update(NetworkTagsObject network /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// @@ -486,7 +486,7 @@ public virtual async Task> GetFirewallPolicyId /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// @@ -524,7 +524,7 @@ public virtual Response GetFirewallPolicyIdpsSignature( /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// @@ -562,7 +562,7 @@ public virtual async Task> GetFir /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// @@ -600,7 +600,7 @@ public virtual Response GetFirewallPolicyI /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// @@ -638,7 +638,7 @@ public virtual async Task DeployFirewallPolicyDeploymentAsync(Wait /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// @@ -676,7 +676,7 @@ public virtual ArmOperation DeployFirewallPolicyDeployment(WaitUntil waitUntil, /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -738,7 +738,7 @@ public virtual async Task> AddTagAsync(string k /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -800,7 +800,7 @@ public virtual Response AddTag(string key, string value, /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -857,7 +857,7 @@ public virtual async Task> SetTagsAsync(IDictio /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -914,7 +914,7 @@ public virtual Response SetTags(IDictionary /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -974,7 +974,7 @@ public virtual async Task> RemoveTagAsync(strin /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/FirewallPolicyRuleCollectionGroupCollection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/FirewallPolicyRuleCollectionGroupCollection.cs index ea87944f3557..c8436712ad0e 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/FirewallPolicyRuleCollectionGroupCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/FirewallPolicyRuleCollectionGroupCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -113,7 +113,7 @@ public virtual async Task /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -162,7 +162,7 @@ public virtual ArmOperation CreateOrU /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -207,7 +207,7 @@ public virtual async Task> G /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -252,7 +252,7 @@ public virtual Response Get(string ru /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -282,7 +282,7 @@ public virtual AsyncPageable GetAllAs /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -312,7 +312,7 @@ public virtual Pageable GetAll(Cancel /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -355,7 +355,7 @@ public virtual async Task> ExistsAsync(string ruleCollectionGroup /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -398,7 +398,7 @@ public virtual Response Exists(string ruleCollectionGroupName, Cancellatio /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -443,7 +443,7 @@ public virtual async Task /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/FirewallPolicyRuleCollectionGroupDraftResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/FirewallPolicyRuleCollectionGroupDraftResource.cs index d223b4e0900d..9a797942351c 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/FirewallPolicyRuleCollectionGroupDraftResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/FirewallPolicyRuleCollectionGroupDraftResource.cs @@ -101,7 +101,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -141,7 +141,7 @@ public virtual async Task /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -181,7 +181,7 @@ public virtual Response Get(Canc /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -225,7 +225,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -269,7 +269,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -317,7 +317,7 @@ public virtual async Task /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/FirewallPolicyRuleCollectionGroupResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/FirewallPolicyRuleCollectionGroupResource.cs index 4ef369cc9888..78d8e068cbbc 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/FirewallPolicyRuleCollectionGroupResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/FirewallPolicyRuleCollectionGroupResource.cs @@ -108,7 +108,7 @@ public virtual FirewallPolicyRuleCollectionGroupDraftResource GetFirewallPolicyR /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -148,7 +148,7 @@ public virtual async Task> G /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -188,7 +188,7 @@ public virtual Response Get(Cancellat /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -230,7 +230,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -272,7 +272,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -318,7 +318,7 @@ public virtual async Task /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/FlowLogCollection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/FlowLogCollection.cs index 4f2621ef5149..aac14e68dba5 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/FlowLogCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/FlowLogCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -113,7 +113,7 @@ public virtual async Task> CreateOrUpdateAsync(Wai /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -162,7 +162,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -207,7 +207,7 @@ public virtual async Task> GetAsync(string flowLogName /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -252,7 +252,7 @@ public virtual Response Get(string flowLogName, CancellationTok /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -282,7 +282,7 @@ public virtual AsyncPageable GetAllAsync(CancellationToken canc /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -312,7 +312,7 @@ public virtual Pageable GetAll(CancellationToken cancellationTo /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -355,7 +355,7 @@ public virtual async Task> ExistsAsync(string flowLogName, Cancel /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -398,7 +398,7 @@ public virtual Response Exists(string flowLogName, CancellationToken cance /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -443,7 +443,7 @@ public virtual async Task> GetIfExistsAsync(st /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/FlowLogResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/FlowLogResource.cs index b18728b0aab6..a8df16941983 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/FlowLogResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/FlowLogResource.cs @@ -103,7 +103,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -143,7 +143,7 @@ public virtual async Task> GetAsync(CancellationToken /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -183,7 +183,7 @@ public virtual Response Get(CancellationToken cancellationToken /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -225,7 +225,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -267,7 +267,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -309,7 +309,7 @@ public virtual async Task> UpdateAsync(NetworkTagsObje /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -351,7 +351,7 @@ public virtual Response Update(NetworkTagsObject networkTagsObj /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -413,7 +413,7 @@ public virtual async Task> AddTagAsync(string key, str /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -475,7 +475,7 @@ public virtual Response AddTag(string key, string value, Cancel /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -532,7 +532,7 @@ public virtual async Task> SetTagsAsync(IDictionary /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -589,7 +589,7 @@ public virtual Response SetTags(IDictionary tag /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -649,7 +649,7 @@ public virtual async Task> RemoveTagAsync(string key, /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/FrontendIPConfigurationCollection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/FrontendIPConfigurationCollection.cs index 6e9961c75635..c99e53e3b3d5 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/FrontendIPConfigurationCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/FrontendIPConfigurationCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -109,7 +109,7 @@ public virtual async Task> GetAsync(st /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -154,7 +154,7 @@ public virtual Response Get(string frontendIPCo /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -184,7 +184,7 @@ public virtual AsyncPageable GetAllAsync(Cancel /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -214,7 +214,7 @@ public virtual Pageable GetAll(CancellationToke /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -257,7 +257,7 @@ public virtual async Task> ExistsAsync(string frontendIPConfigura /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -300,7 +300,7 @@ public virtual Response Exists(string frontendIPConfigurationName, Cancell /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -345,7 +345,7 @@ public virtual async Task> Get /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/FrontendIPConfigurationResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/FrontendIPConfigurationResource.cs index aaaa8b9e94c2..87de8f257456 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/FrontendIPConfigurationResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/FrontendIPConfigurationResource.cs @@ -101,7 +101,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -141,7 +141,7 @@ public virtual async Task> GetAsync(Ca /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/HubIPConfigurationCollection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/HubIPConfigurationCollection.cs index 648ed33e08a2..39318fe57611 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/HubIPConfigurationCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/HubIPConfigurationCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -113,7 +113,7 @@ public virtual async Task> CreateOrUpda /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -162,7 +162,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -207,7 +207,7 @@ public virtual async Task> GetAsync(string /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -252,7 +252,7 @@ public virtual Response Get(string ipConfigName, Can /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -282,7 +282,7 @@ public virtual AsyncPageable GetAllAsync(Cancellatio /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -312,7 +312,7 @@ public virtual Pageable GetAll(CancellationToken can /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -355,7 +355,7 @@ public virtual async Task> ExistsAsync(string ipConfigName, Cance /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -398,7 +398,7 @@ public virtual Response Exists(string ipConfigName, CancellationToken canc /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -443,7 +443,7 @@ public virtual async Task> GetIfExi /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/HubIPConfigurationResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/HubIPConfigurationResource.cs index 6a31e652cdcf..7877e43b4ad9 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/HubIPConfigurationResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/HubIPConfigurationResource.cs @@ -101,7 +101,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -141,7 +141,7 @@ public virtual async Task> GetAsync(Cancell /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -181,7 +181,7 @@ public virtual Response Get(CancellationToken cancel /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -223,7 +223,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -265,7 +265,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -311,7 +311,7 @@ public virtual async Task> UpdateAsync( /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/HubRouteTableCollection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/HubRouteTableCollection.cs index 6a0876f26230..48e37c690c0d 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/HubRouteTableCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/HubRouteTableCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -113,7 +113,7 @@ public virtual async Task> CreateOrUpdateAsy /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -162,7 +162,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil wait /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -207,7 +207,7 @@ public virtual async Task> GetAsync(string route /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -252,7 +252,7 @@ public virtual Response Get(string routeTableName, Cancel /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -282,7 +282,7 @@ public virtual AsyncPageable GetAllAsync(CancellationToke /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -312,7 +312,7 @@ public virtual Pageable GetAll(CancellationToken cancella /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -355,7 +355,7 @@ public virtual async Task> ExistsAsync(string routeTableName, Can /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -398,7 +398,7 @@ public virtual Response Exists(string routeTableName, CancellationToken ca /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -443,7 +443,7 @@ public virtual async Task> GetIfExistsAs /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/HubRouteTableResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/HubRouteTableResource.cs index 5ce2ff3c2be4..a1da23dd7a82 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/HubRouteTableResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/HubRouteTableResource.cs @@ -101,7 +101,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -141,7 +141,7 @@ public virtual async Task> GetAsync(Cancellation /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -181,7 +181,7 @@ public virtual Response Get(CancellationToken cancellatio /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -223,7 +223,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -265,7 +265,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -311,7 +311,7 @@ public virtual async Task> UpdateAsync(WaitU /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/HubVirtualNetworkConnectionCollection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/HubVirtualNetworkConnectionCollection.cs index ca95d7277be0..adc814e0e3b4 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/HubVirtualNetworkConnectionCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/HubVirtualNetworkConnectionCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -113,7 +113,7 @@ public virtual async Task> Cre /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -162,7 +162,7 @@ public virtual ArmOperation CreateOrUpdate( /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -207,7 +207,7 @@ public virtual async Task> GetAsyn /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -252,7 +252,7 @@ public virtual Response Get(string connecti /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -282,7 +282,7 @@ public virtual AsyncPageable GetAllAsync(Ca /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -312,7 +312,7 @@ public virtual Pageable GetAll(Cancellation /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -355,7 +355,7 @@ public virtual async Task> ExistsAsync(string connectionName, Can /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -398,7 +398,7 @@ public virtual Response Exists(string connectionName, CancellationToken ca /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -443,7 +443,7 @@ public virtual async Task> /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/HubVirtualNetworkConnectionResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/HubVirtualNetworkConnectionResource.cs index 7c8e724c413a..4bb23abdaf56 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/HubVirtualNetworkConnectionResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/HubVirtualNetworkConnectionResource.cs @@ -101,7 +101,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -141,7 +141,7 @@ public virtual async Task> GetAsyn /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -181,7 +181,7 @@ public virtual Response Get(CancellationTok /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -223,7 +223,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -265,7 +265,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -311,7 +311,7 @@ public virtual async Task> Upd /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/IPAllocationCollection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/IPAllocationCollection.cs index 381a08906f2d..ae177812bf00 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/IPAllocationCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/IPAllocationCollection.cs @@ -65,7 +65,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -114,7 +114,7 @@ public virtual async Task> CreateOrUpdateAsyn /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -163,7 +163,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil waitU /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -209,7 +209,7 @@ public virtual async Task> GetAsync(string ipAllo /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -255,7 +255,7 @@ public virtual Response Get(string ipAllocationName, strin /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -285,7 +285,7 @@ public virtual AsyncPageable GetAllAsync(CancellationToken /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -315,7 +315,7 @@ public virtual Pageable GetAll(CancellationToken cancellat /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -359,7 +359,7 @@ public virtual async Task> ExistsAsync(string ipAllocationName, s /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -403,7 +403,7 @@ public virtual Response Exists(string ipAllocationName, string expand = nu /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -449,7 +449,7 @@ public virtual async Task> GetIfExistsAsy /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/IPAllocationResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/IPAllocationResource.cs index 3d45697562b3..ae703ba13547 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/IPAllocationResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/IPAllocationResource.cs @@ -103,7 +103,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -144,7 +144,7 @@ public virtual async Task> GetAsync(string expand /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -185,7 +185,7 @@ public virtual Response Get(string expand = null, Cancella /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -227,7 +227,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -269,7 +269,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -311,7 +311,7 @@ public virtual async Task> UpdateAsync(NetworkTag /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -353,7 +353,7 @@ public virtual Response Update(NetworkTagsObject networkTa /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -415,7 +415,7 @@ public virtual async Task> AddTagAsync(string key /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -477,7 +477,7 @@ public virtual Response AddTag(string key, string value, C /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -534,7 +534,7 @@ public virtual async Task> SetTagsAsync(IDictiona /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -591,7 +591,7 @@ public virtual Response SetTags(IDictionary /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -651,7 +651,7 @@ public virtual async Task> RemoveTagAsync(string /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/IPGroupCollection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/IPGroupCollection.cs index 81b8a022960f..7930007a6467 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/IPGroupCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/IPGroupCollection.cs @@ -65,7 +65,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -114,7 +114,7 @@ public virtual async Task> CreateOrUpdateAsync(Wai /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -163,7 +163,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -209,7 +209,7 @@ public virtual async Task> GetAsync(string ipGroupsNam /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -255,7 +255,7 @@ public virtual Response Get(string ipGroupsName, string expand /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -285,7 +285,7 @@ public virtual AsyncPageable GetAllAsync(CancellationToken canc /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -315,7 +315,7 @@ public virtual Pageable GetAll(CancellationToken cancellationTo /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -359,7 +359,7 @@ public virtual async Task> ExistsAsync(string ipGroupsName, strin /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -403,7 +403,7 @@ public virtual Response Exists(string ipGroupsName, string expand = null, /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -449,7 +449,7 @@ public virtual async Task> GetIfExistsAsync(st /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/IPGroupResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/IPGroupResource.cs index a374bf2d5b3f..cb8c3cb766b9 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/IPGroupResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/IPGroupResource.cs @@ -103,7 +103,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -144,7 +144,7 @@ public virtual async Task> GetAsync(string expand = nu /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -185,7 +185,7 @@ public virtual Response Get(string expand = null, CancellationT /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -227,7 +227,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -269,7 +269,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -311,7 +311,7 @@ public virtual async Task> UpdateAsync(NetworkTagsObje /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -353,7 +353,7 @@ public virtual Response Update(NetworkTagsObject networkTagsObj /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -415,7 +415,7 @@ public virtual async Task> AddTagAsync(string key, str /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -477,7 +477,7 @@ public virtual Response AddTag(string key, string value, Cancel /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -534,7 +534,7 @@ public virtual async Task> SetTagsAsync(IDictionary /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -591,7 +591,7 @@ public virtual Response SetTags(IDictionary tag /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -651,7 +651,7 @@ public virtual async Task> RemoveTagAsync(string key, /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/InboundNatRuleCollection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/InboundNatRuleCollection.cs index c24b5dae0eef..d73a9815dc3f 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/InboundNatRuleCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/InboundNatRuleCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -113,7 +113,7 @@ public virtual async Task> CreateOrUpdateAs /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -162,7 +162,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil wai /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -208,7 +208,7 @@ public virtual async Task> GetAsync(string inbo /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -254,7 +254,7 @@ public virtual Response Get(string inboundNatRuleName, s /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -284,7 +284,7 @@ public virtual AsyncPageable GetAllAsync(CancellationTok /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -314,7 +314,7 @@ public virtual Pageable GetAll(CancellationToken cancell /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -358,7 +358,7 @@ public virtual async Task> ExistsAsync(string inboundNatRuleName, /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -402,7 +402,7 @@ public virtual Response Exists(string inboundNatRuleName, string expand = /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -448,7 +448,7 @@ public virtual async Task> GetIfExistsA /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/InboundNatRuleResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/InboundNatRuleResource.cs index 9f13172cdfc1..59d683533a30 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/InboundNatRuleResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/InboundNatRuleResource.cs @@ -101,7 +101,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -142,7 +142,7 @@ public virtual async Task> GetAsync(string expa /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -183,7 +183,7 @@ public virtual Response Get(string expand = null, Cancel /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -225,7 +225,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -267,7 +267,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -313,7 +313,7 @@ public virtual async Task> UpdateAsync(Wait /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/InboundSecurityRuleCollection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/InboundSecurityRuleCollection.cs index ed3074ec30f3..f9c8c584293e 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/InboundSecurityRuleCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/InboundSecurityRuleCollection.cs @@ -61,7 +61,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -110,7 +110,7 @@ public virtual async Task> CreateOrUpd /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -159,7 +159,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUnti /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -204,7 +204,7 @@ public virtual async Task> GetAsync(string /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -249,7 +249,7 @@ public virtual Response Get(string ruleCollectionNa /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -292,7 +292,7 @@ public virtual async Task> ExistsAsync(string ruleCollectionName, /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -335,7 +335,7 @@ public virtual Response Exists(string ruleCollectionName, CancellationToke /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -380,7 +380,7 @@ public virtual async Task> GetIfEx /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/InboundSecurityRuleResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/InboundSecurityRuleResource.cs index 28d679f2ff21..45397d6633e6 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/InboundSecurityRuleResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/InboundSecurityRuleResource.cs @@ -101,7 +101,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -141,7 +141,7 @@ public virtual async Task> GetAsync(Cancel /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -181,7 +181,7 @@ public virtual Response Get(CancellationToken cance /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -227,7 +227,7 @@ public virtual async Task> UpdateAsync /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/IpamPoolCollection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/IpamPoolCollection.cs new file mode 100644 index 000000000000..7fa94687dbda --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/IpamPoolCollection.cs @@ -0,0 +1,503 @@ +// 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.Network +{ + /// + /// A class representing a collection of and their operations. + /// Each in the collection will belong to the same instance of . + /// To get an instance call the GetIpamPools method from an instance of . + /// + public partial class IpamPoolCollection : ArmCollection, IEnumerable, IAsyncEnumerable + { + private readonly ClientDiagnostics _ipamPoolClientDiagnostics; + private readonly IpamPoolsRestOperations _ipamPoolRestClient; + + /// Initializes a new instance of the class for mocking. + protected IpamPoolCollection() + { + } + + /// 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 IpamPoolCollection(ArmClient client, ResourceIdentifier id) : base(client, id) + { + _ipamPoolClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Network", IpamPoolResource.ResourceType.Namespace, Diagnostics); + TryGetApiVersion(IpamPoolResource.ResourceType, out string ipamPoolApiVersion); + _ipamPoolRestClient = new IpamPoolsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, ipamPoolApiVersion); +#if DEBUG + ValidateResourceId(Id); +#endif + } + + internal static void ValidateResourceId(ResourceIdentifier id) + { + if (id.ResourceType != NetworkManagerResource.ResourceType) + throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, NetworkManagerResource.ResourceType), nameof(id)); + } + + /// + /// Creates/Updates the Pool resource. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/ipamPools/{poolName} + /// + /// + /// Operation Id + /// IpamPools_Create + /// + /// + /// Default Api Version + /// 2024-05-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. + /// IP Address Manager Pool resource name. + /// Pool resource object to create/update. + /// 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 poolName, IpamPoolData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(poolName, nameof(poolName)); + Argument.AssertNotNull(data, nameof(data)); + + using var scope = _ipamPoolClientDiagnostics.CreateScope("IpamPoolCollection.CreateOrUpdate"); + scope.Start(); + try + { + var response = await _ipamPoolRestClient.CreateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, poolName, data, cancellationToken).ConfigureAwait(false); + var operation = new NetworkArmOperation(new IpamPoolOperationSource(Client), _ipamPoolClientDiagnostics, Pipeline, _ipamPoolRestClient.CreateCreateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, poolName, data).Request, response, OperationFinalStateVia.AzureAsyncOperation); + if (waitUntil == WaitUntil.Completed) + await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Creates/Updates the Pool resource. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/ipamPools/{poolName} + /// + /// + /// Operation Id + /// IpamPools_Create + /// + /// + /// Default Api Version + /// 2024-05-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. + /// IP Address Manager Pool resource name. + /// Pool resource object to create/update. + /// 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 poolName, IpamPoolData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(poolName, nameof(poolName)); + Argument.AssertNotNull(data, nameof(data)); + + using var scope = _ipamPoolClientDiagnostics.CreateScope("IpamPoolCollection.CreateOrUpdate"); + scope.Start(); + try + { + var response = _ipamPoolRestClient.Create(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, poolName, data, cancellationToken); + var operation = new NetworkArmOperation(new IpamPoolOperationSource(Client), _ipamPoolClientDiagnostics, Pipeline, _ipamPoolRestClient.CreateCreateRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, poolName, data).Request, response, OperationFinalStateVia.AzureAsyncOperation); + if (waitUntil == WaitUntil.Completed) + operation.WaitForCompletion(cancellationToken); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Gets the specific Pool resource. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/ipamPools/{poolName} + /// + /// + /// Operation Id + /// IpamPools_Get + /// + /// + /// Default Api Version + /// 2024-05-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// Pool resource 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 poolName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(poolName, nameof(poolName)); + + using var scope = _ipamPoolClientDiagnostics.CreateScope("IpamPoolCollection.Get"); + scope.Start(); + try + { + var response = await _ipamPoolRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, poolName, cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw new RequestFailedException(response.GetRawResponse()); + return Response.FromValue(new IpamPoolResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Gets the specific Pool resource. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/ipamPools/{poolName} + /// + /// + /// Operation Id + /// IpamPools_Get + /// + /// + /// Default Api Version + /// 2024-05-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// Pool resource name. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual Response Get(string poolName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(poolName, nameof(poolName)); + + using var scope = _ipamPoolClientDiagnostics.CreateScope("IpamPoolCollection.Get"); + scope.Start(); + try + { + var response = _ipamPoolRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, poolName, cancellationToken); + if (response.Value == null) + throw new RequestFailedException(response.GetRawResponse()); + return Response.FromValue(new IpamPoolResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Gets list of Pool resources at Network Manager level. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/ipamPools + /// + /// + /// Operation Id + /// IpamPools_List + /// + /// + /// Default Api Version + /// 2024-05-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// Optional skip token. + /// Optional num entries to skip. + /// Optional num entries to show. + /// Optional key by which to sort. + /// Optional sort value for pagination. + /// The cancellation token to use. + /// An async collection of that may take multiple service requests to iterate over. + public virtual AsyncPageable GetAllAsync(string skipToken = null, int? skip = null, int? top = null, string sortKey = null, string sortValue = null, CancellationToken cancellationToken = default) + { + HttpMessage FirstPageRequest(int? pageSizeHint) => _ipamPoolRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, skipToken, skip, top, sortKey, sortValue); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _ipamPoolRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name, skipToken, skip, top, sortKey, sortValue); + return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new IpamPoolResource(Client, IpamPoolData.DeserializeIpamPoolData(e)), _ipamPoolClientDiagnostics, Pipeline, "IpamPoolCollection.GetAll", "value", "nextLink", cancellationToken); + } + + /// + /// Gets list of Pool resources at Network Manager level. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/ipamPools + /// + /// + /// Operation Id + /// IpamPools_List + /// + /// + /// Default Api Version + /// 2024-05-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// Optional skip token. + /// Optional num entries to skip. + /// Optional num entries to show. + /// Optional key by which to sort. + /// Optional sort value for pagination. + /// The cancellation token to use. + /// A collection of that may take multiple service requests to iterate over. + public virtual Pageable GetAll(string skipToken = null, int? skip = null, int? top = null, string sortKey = null, string sortValue = null, CancellationToken cancellationToken = default) + { + HttpMessage FirstPageRequest(int? pageSizeHint) => _ipamPoolRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, skipToken, skip, top, sortKey, sortValue); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _ipamPoolRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name, skipToken, skip, top, sortKey, sortValue); + return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new IpamPoolResource(Client, IpamPoolData.DeserializeIpamPoolData(e)), _ipamPoolClientDiagnostics, Pipeline, "IpamPoolCollection.GetAll", "value", "nextLink", cancellationToken); + } + + /// + /// Checks to see if the resource exists in azure. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/ipamPools/{poolName} + /// + /// + /// Operation Id + /// IpamPools_Get + /// + /// + /// Default Api Version + /// 2024-05-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// Pool resource 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 poolName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(poolName, nameof(poolName)); + + using var scope = _ipamPoolClientDiagnostics.CreateScope("IpamPoolCollection.Exists"); + scope.Start(); + try + { + var response = await _ipamPoolRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, poolName, 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.Network/networkManagers/{networkManagerName}/ipamPools/{poolName} + /// + /// + /// Operation Id + /// IpamPools_Get + /// + /// + /// Default Api Version + /// 2024-05-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// Pool resource name. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual Response Exists(string poolName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(poolName, nameof(poolName)); + + using var scope = _ipamPoolClientDiagnostics.CreateScope("IpamPoolCollection.Exists"); + scope.Start(); + try + { + var response = _ipamPoolRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, poolName, 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.Network/networkManagers/{networkManagerName}/ipamPools/{poolName} + /// + /// + /// Operation Id + /// IpamPools_Get + /// + /// + /// Default Api Version + /// 2024-05-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// Pool resource 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 poolName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(poolName, nameof(poolName)); + + using var scope = _ipamPoolClientDiagnostics.CreateScope("IpamPoolCollection.GetIfExists"); + scope.Start(); + try + { + var response = await _ipamPoolRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, poolName, cancellationToken: cancellationToken).ConfigureAwait(false); + if (response.Value == null) + return new NoValueResponse(response.GetRawResponse()); + return Response.FromValue(new IpamPoolResource(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.Network/networkManagers/{networkManagerName}/ipamPools/{poolName} + /// + /// + /// Operation Id + /// IpamPools_Get + /// + /// + /// Default Api Version + /// 2024-05-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// Pool resource name. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual NullableResponse GetIfExists(string poolName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(poolName, nameof(poolName)); + + using var scope = _ipamPoolClientDiagnostics.CreateScope("IpamPoolCollection.GetIfExists"); + scope.Start(); + try + { + var response = _ipamPoolRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, poolName, cancellationToken: cancellationToken); + if (response.Value == null) + return new NoValueResponse(response.GetRawResponse()); + return Response.FromValue(new IpamPoolResource(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/network/Azure.ResourceManager.Network/src/Generated/IpamPoolData.Serialization.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/IpamPoolData.Serialization.cs new file mode 100644 index 000000000000..dd92eba3808c --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/IpamPoolData.Serialization.cs @@ -0,0 +1,183 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; +using Azure.ResourceManager.Models; +using Azure.ResourceManager.Network.Models; + +namespace Azure.ResourceManager.Network +{ + public partial class IpamPoolData : 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(IpamPoolData)} does not support writing '{format}' format."); + } + + base.JsonModelWriteCore(writer, options); + writer.WritePropertyName("properties"u8); + writer.WriteObjectValue(Properties, options); + if (options.Format != "W" && Optional.IsDefined(CommonResourceType)) + { + writer.WritePropertyName("type"u8); + writer.WriteStringValue(CommonResourceType); + } + } + + IpamPoolData 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(IpamPoolData)} does not support reading '{format}' format."); + } + + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeIpamPoolData(document.RootElement, options); + } + + internal static IpamPoolData DeserializeIpamPoolData(JsonElement element, ModelReaderWriterOptions options = null) + { + options ??= ModelSerializationExtensions.WireOptions; + + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + IpamPoolProperties properties = default; + string type = default; + IDictionary tags = default; + AzureLocation location = default; + ResourceIdentifier id = default; + string name = default; + ResourceType type0 = default; + SystemData systemData = default; + IDictionary serializedAdditionalRawData = default; + Dictionary rawDataDictionary = new Dictionary(); + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("properties"u8)) + { + properties = IpamPoolProperties.DeserializeIpamPoolProperties(property.Value, options); + continue; + } + if (property.NameEquals("type"u8)) + { + type = property.Value.GetString(); + continue; + } + if (property.NameEquals("tags"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + Dictionary dictionary = new Dictionary(); + foreach (var property0 in property.Value.EnumerateObject()) + { + dictionary.Add(property0.Name, property0.Value.GetString()); + } + tags = dictionary; + continue; + } + if (property.NameEquals("location"u8)) + { + location = new AzureLocation(property.Value.GetString()); + continue; + } + if (property.NameEquals("id"u8)) + { + id = new ResourceIdentifier(property.Value.GetString()); + continue; + } + if (property.NameEquals("name"u8)) + { + name = property.Value.GetString(); + continue; + } + if (property.NameEquals("type"u8)) + { + type0 = new ResourceType(property.Value.GetString()); + continue; + } + if (property.NameEquals("systemData"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + systemData = JsonSerializer.Deserialize(property.Value.GetRawText()); + continue; + } + if (options.Format != "W") + { + rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + } + } + serializedAdditionalRawData = rawDataDictionary; + return new IpamPoolData( + id, + name, + type0, + systemData, + tags ?? new ChangeTrackingDictionary(), + location, + properties, + type, + 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(IpamPoolData)} does not support writing '{options.Format}' format."); + } + } + + IpamPoolData 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 DeserializeIpamPoolData(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(IpamPoolData)} does not support reading '{options.Format}' format."); + } + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/IpamPoolData.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/IpamPoolData.cs new file mode 100644 index 000000000000..6ed38229d289 --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/IpamPoolData.cs @@ -0,0 +1,92 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using Azure.Core; +using Azure.ResourceManager.Models; +using Azure.ResourceManager.Network.Models; + +namespace Azure.ResourceManager.Network +{ + /// + /// A class representing the IpamPool data model. + /// Instance of Pool resource. + /// + public partial class IpamPoolData : TrackedResourceData + { + /// + /// Keeps track of any properties unknown to the library. + /// + /// To assign an object to the value of this property use . + /// + /// + /// To assign an already formatted json string to this property use . + /// + /// + /// Examples: + /// + /// + /// BinaryData.FromObjectAsJson("foo") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromString("\"foo\"") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromObjectAsJson(new { key = "value" }) + /// Creates a payload of { "key": "value" }. + /// + /// + /// BinaryData.FromString("{\"key\": \"value\"}") + /// Creates a payload of { "key": "value" }. + /// + /// + /// + /// + private IDictionary _serializedAdditionalRawData; + + /// Initializes a new instance of . + /// The location. + /// Properties of IpamPool resource properties which are specific to the Pool resource. + /// is null. + public IpamPoolData(AzureLocation location, IpamPoolProperties properties) : base(location) + { + Argument.AssertNotNull(properties, nameof(properties)); + + Properties = properties; + } + + /// Initializes a new instance of . + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The tags. + /// The location. + /// Properties of IpamPool resource properties which are specific to the Pool resource. + /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts". + /// Keeps track of any properties unknown to the library. + internal IpamPoolData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, IpamPoolProperties properties, string commonResourceType, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData, tags, location) + { + Properties = properties; + CommonResourceType = commonResourceType; + _serializedAdditionalRawData = serializedAdditionalRawData; + } + + /// Initializes a new instance of for deserialization. + internal IpamPoolData() + { + } + + /// Properties of IpamPool resource properties which are specific to the Pool resource. + public IpamPoolProperties Properties { get; set; } + /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts". + public string CommonResourceType { get; } + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/IpamPoolResource.Serialization.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/IpamPoolResource.Serialization.cs new file mode 100644 index 000000000000..08cd5903efae --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/IpamPoolResource.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.Network +{ + public partial class IpamPoolResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) => ((IJsonModel)Data).Write(writer, options); + + IpamPoolData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => ((IJsonModel)Data).Create(ref reader, options); + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => ModelReaderWriter.Write(Data, options); + + IpamPoolData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => ModelReaderWriter.Read(data, options); + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => ((IPersistableModel)Data).GetFormatFromOptions(options); + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/IpamPoolResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/IpamPoolResource.cs new file mode 100644 index 000000000000..57845a254f3f --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/IpamPoolResource.cs @@ -0,0 +1,905 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using System.Globalization; +using System.Threading; +using System.Threading.Tasks; +using Autorest.CSharp.Core; +using Azure.Core; +using Azure.Core.Pipeline; +using Azure.ResourceManager.Network.Models; + +namespace Azure.ResourceManager.Network +{ + /// + /// A Class representing an IpamPool along with the instance operations that can be performed on it. + /// If you have a you can construct an + /// from an instance of using the GetIpamPoolResource method. + /// Otherwise you can get one from its parent resource using the GetIpamPool method. + /// + public partial class IpamPoolResource : ArmResource + { + /// Generate the resource identifier of a instance. + /// The subscriptionId. + /// The resourceGroupName. + /// The networkManagerName. + /// The poolName. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string networkManagerName, string poolName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/ipamPools/{poolName}"; + return new ResourceIdentifier(resourceId); + } + + private readonly ClientDiagnostics _ipamPoolClientDiagnostics; + private readonly IpamPoolsRestOperations _ipamPoolRestClient; + private readonly IpamPoolData _data; + + /// Gets the resource type for the operations. + public static readonly ResourceType ResourceType = "Microsoft.Network/networkManagers/ipamPools"; + + /// Initializes a new instance of the class for mocking. + protected IpamPoolResource() + { + } + + /// Initializes a new instance of the class. + /// The client parameters to use in these operations. + /// The resource that is the target of operations. + internal IpamPoolResource(ArmClient client, IpamPoolData 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 IpamPoolResource(ArmClient client, ResourceIdentifier id) : base(client, id) + { + _ipamPoolClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Network", ResourceType.Namespace, Diagnostics); + TryGetApiVersion(ResourceType, out string ipamPoolApiVersion); + _ipamPoolRestClient = new IpamPoolsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, ipamPoolApiVersion); +#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 IpamPoolData Data + { + get + { + if (!HasData) + throw new InvalidOperationException("The current instance does not have data, you must call Get first."); + return _data; + } + } + + internal static void ValidateResourceId(ResourceIdentifier id) + { + if (id.ResourceType != ResourceType) + throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, ResourceType), nameof(id)); + } + + /// Gets a collection of StaticCidrResources in the IpamPool. + /// An object representing collection of StaticCidrResources and their operations over a StaticCidrResource. + public virtual StaticCidrCollection GetStaticCidrs() + { + return GetCachedClient(client => new StaticCidrCollection(client, Id)); + } + + /// + /// Gets the specific Static CIDR resource. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/ipamPools/{poolName}/staticCidrs/{staticCidrName} + /// + /// + /// Operation Id + /// StaticCidrs_Get + /// + /// + /// Default Api Version + /// 2024-05-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// StaticCidr resource name to retrieve. + /// The cancellation token to use. + /// is null. + /// is an empty string, and was expected to be non-empty. + [ForwardsClientCalls] + public virtual async Task> GetStaticCidrAsync(string staticCidrName, CancellationToken cancellationToken = default) + { + return await GetStaticCidrs().GetAsync(staticCidrName, cancellationToken).ConfigureAwait(false); + } + + /// + /// Gets the specific Static CIDR resource. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/ipamPools/{poolName}/staticCidrs/{staticCidrName} + /// + /// + /// Operation Id + /// StaticCidrs_Get + /// + /// + /// Default Api Version + /// 2024-05-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// StaticCidr resource name to retrieve. + /// The cancellation token to use. + /// is null. + /// is an empty string, and was expected to be non-empty. + [ForwardsClientCalls] + public virtual Response GetStaticCidr(string staticCidrName, CancellationToken cancellationToken = default) + { + return GetStaticCidrs().Get(staticCidrName, cancellationToken); + } + + /// + /// Gets the specific Pool resource. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/ipamPools/{poolName} + /// + /// + /// Operation Id + /// IpamPools_Get + /// + /// + /// Default Api Version + /// 2024-05-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// The cancellation token to use. + public virtual async Task> GetAsync(CancellationToken cancellationToken = default) + { + using var scope = _ipamPoolClientDiagnostics.CreateScope("IpamPoolResource.Get"); + scope.Start(); + try + { + var response = await _ipamPoolRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw new RequestFailedException(response.GetRawResponse()); + return Response.FromValue(new IpamPoolResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Gets the specific Pool resource. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/ipamPools/{poolName} + /// + /// + /// Operation Id + /// IpamPools_Get + /// + /// + /// Default Api Version + /// 2024-05-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// The cancellation token to use. + public virtual Response Get(CancellationToken cancellationToken = default) + { + using var scope = _ipamPoolClientDiagnostics.CreateScope("IpamPoolResource.Get"); + scope.Start(); + try + { + var response = _ipamPoolRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); + if (response.Value == null) + throw new RequestFailedException(response.GetRawResponse()); + return Response.FromValue(new IpamPoolResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Delete the Pool resource. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/ipamPools/{poolName} + /// + /// + /// Operation Id + /// IpamPools_Delete + /// + /// + /// Default Api Version + /// 2024-05-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 = _ipamPoolClientDiagnostics.CreateScope("IpamPoolResource.Delete"); + scope.Start(); + try + { + var response = await _ipamPoolRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + var operation = new NetworkArmOperation(_ipamPoolClientDiagnostics, Pipeline, _ipamPoolRestClient.CreateDeleteRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name).Request, response, OperationFinalStateVia.Location); + if (waitUntil == WaitUntil.Completed) + await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Delete the Pool resource. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/ipamPools/{poolName} + /// + /// + /// Operation Id + /// IpamPools_Delete + /// + /// + /// Default Api Version + /// 2024-05-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 = _ipamPoolClientDiagnostics.CreateScope("IpamPoolResource.Delete"); + scope.Start(); + try + { + var response = _ipamPoolRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); + var operation = new NetworkArmOperation(_ipamPoolClientDiagnostics, Pipeline, _ipamPoolRestClient.CreateDeleteRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name).Request, response, OperationFinalStateVia.Location); + if (waitUntil == WaitUntil.Completed) + operation.WaitForCompletionResponse(cancellationToken); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Updates the specific Pool resource. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/ipamPools/{poolName} + /// + /// + /// Operation Id + /// IpamPools_Update + /// + /// + /// Default Api Version + /// 2024-05-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// Pool resource object to update partially. + /// The cancellation token to use. + /// is null. + public virtual async Task> UpdateAsync(IpamPoolPatch patch, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(patch, nameof(patch)); + + using var scope = _ipamPoolClientDiagnostics.CreateScope("IpamPoolResource.Update"); + scope.Start(); + try + { + var response = await _ipamPoolRestClient.UpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, patch, cancellationToken).ConfigureAwait(false); + return Response.FromValue(new IpamPoolResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Updates the specific Pool resource. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/ipamPools/{poolName} + /// + /// + /// Operation Id + /// IpamPools_Update + /// + /// + /// Default Api Version + /// 2024-05-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// Pool resource object to update partially. + /// The cancellation token to use. + /// is null. + public virtual Response Update(IpamPoolPatch patch, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(patch, nameof(patch)); + + using var scope = _ipamPoolClientDiagnostics.CreateScope("IpamPoolResource.Update"); + scope.Start(); + try + { + var response = _ipamPoolRestClient.Update(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, patch, cancellationToken); + return Response.FromValue(new IpamPoolResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Get the Pool Usage. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/ipamPools/{poolName}/getPoolUsage + /// + /// + /// Operation Id + /// IpamPools_GetPoolUsage + /// + /// + /// Default Api Version + /// 2024-05-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// The cancellation token to use. + public virtual async Task> GetPoolUsageAsync(CancellationToken cancellationToken = default) + { + using var scope = _ipamPoolClientDiagnostics.CreateScope("IpamPoolResource.GetPoolUsage"); + scope.Start(); + try + { + var response = await _ipamPoolRestClient.GetPoolUsageAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + return response; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Get the Pool Usage. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/ipamPools/{poolName}/getPoolUsage + /// + /// + /// Operation Id + /// IpamPools_GetPoolUsage + /// + /// + /// Default Api Version + /// 2024-05-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// The cancellation token to use. + public virtual Response GetPoolUsage(CancellationToken cancellationToken = default) + { + using var scope = _ipamPoolClientDiagnostics.CreateScope("IpamPoolResource.GetPoolUsage"); + scope.Start(); + try + { + var response = _ipamPoolRestClient.GetPoolUsage(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); + return response; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// List Associated Resource in the Pool. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/ipamPools/{poolName}/listAssociatedResources + /// + /// + /// Operation Id + /// IpamPools_ListAssociatedResources + /// + /// + /// Default Api Version + /// 2024-05-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// The cancellation token to use. + /// An async collection of that may take multiple service requests to iterate over. + public virtual AsyncPageable GetAssociatedResourcesAsync(CancellationToken cancellationToken = default) + { + HttpMessage FirstPageRequest(int? pageSizeHint) => _ipamPoolRestClient.CreateListAssociatedResourcesRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _ipamPoolRestClient.CreateListAssociatedResourcesNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => PoolAssociation.DeserializePoolAssociation(e), _ipamPoolClientDiagnostics, Pipeline, "IpamPoolResource.GetAssociatedResources", "value", "nextLink", cancellationToken); + } + + /// + /// List Associated Resource in the Pool. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/ipamPools/{poolName}/listAssociatedResources + /// + /// + /// Operation Id + /// IpamPools_ListAssociatedResources + /// + /// + /// Default Api Version + /// 2024-05-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// The cancellation token to use. + /// A collection of that may take multiple service requests to iterate over. + public virtual Pageable GetAssociatedResources(CancellationToken cancellationToken = default) + { + HttpMessage FirstPageRequest(int? pageSizeHint) => _ipamPoolRestClient.CreateListAssociatedResourcesRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _ipamPoolRestClient.CreateListAssociatedResourcesNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name); + return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => PoolAssociation.DeserializePoolAssociation(e), _ipamPoolClientDiagnostics, Pipeline, "IpamPoolResource.GetAssociatedResources", "value", "nextLink", cancellationToken); + } + + /// + /// Add a tag to the current resource. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/ipamPools/{poolName} + /// + /// + /// Operation Id + /// IpamPools_Get + /// + /// + /// Default Api Version + /// 2024-05-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// The key for the tag. + /// The value for the tag. + /// The cancellation token to use. + /// or is null. + public virtual async Task> AddTagAsync(string key, string value, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(key, nameof(key)); + Argument.AssertNotNull(value, nameof(value)); + + using var scope = _ipamPoolClientDiagnostics.CreateScope("IpamPoolResource.AddTag"); + scope.Start(); + try + { + if (await CanUseTagResourceAsync(cancellationToken: cancellationToken).ConfigureAwait(false)) + { + var originalTags = await GetTagResource().GetAsync(cancellationToken).ConfigureAwait(false); + originalTags.Value.Data.TagValues[key] = value; + await GetTagResource().CreateOrUpdateAsync(WaitUntil.Completed, originalTags.Value.Data, cancellationToken: cancellationToken).ConfigureAwait(false); + var originalResponse = await _ipamPoolRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + return Response.FromValue(new IpamPoolResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); + } + else + { + var current = (await GetAsync(cancellationToken: cancellationToken).ConfigureAwait(false)).Value.Data; + var patch = new IpamPoolPatch(); + foreach (var tag in current.Tags) + { + patch.Tags.Add(tag); + } + patch.Tags[key] = value; + var result = await UpdateAsync(patch, cancellationToken: cancellationToken).ConfigureAwait(false); + return result; + } + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Add a tag to the current resource. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/ipamPools/{poolName} + /// + /// + /// Operation Id + /// IpamPools_Get + /// + /// + /// Default Api Version + /// 2024-05-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// The key for the tag. + /// The value for the tag. + /// The cancellation token to use. + /// or is null. + public virtual Response AddTag(string key, string value, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(key, nameof(key)); + Argument.AssertNotNull(value, nameof(value)); + + using var scope = _ipamPoolClientDiagnostics.CreateScope("IpamPoolResource.AddTag"); + scope.Start(); + try + { + if (CanUseTagResource(cancellationToken: cancellationToken)) + { + var originalTags = GetTagResource().Get(cancellationToken); + originalTags.Value.Data.TagValues[key] = value; + GetTagResource().CreateOrUpdate(WaitUntil.Completed, originalTags.Value.Data, cancellationToken: cancellationToken); + var originalResponse = _ipamPoolRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); + return Response.FromValue(new IpamPoolResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); + } + else + { + var current = Get(cancellationToken: cancellationToken).Value.Data; + var patch = new IpamPoolPatch(); + foreach (var tag in current.Tags) + { + patch.Tags.Add(tag); + } + patch.Tags[key] = value; + var result = Update(patch, cancellationToken: cancellationToken); + return result; + } + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Replace the tags on the resource with the given set. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/ipamPools/{poolName} + /// + /// + /// Operation Id + /// IpamPools_Get + /// + /// + /// Default Api Version + /// 2024-05-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// The set of tags to use as replacement. + /// The cancellation token to use. + /// is null. + public virtual async Task> SetTagsAsync(IDictionary tags, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(tags, nameof(tags)); + + using var scope = _ipamPoolClientDiagnostics.CreateScope("IpamPoolResource.SetTags"); + scope.Start(); + try + { + if (await CanUseTagResourceAsync(cancellationToken: cancellationToken).ConfigureAwait(false)) + { + await GetTagResource().DeleteAsync(WaitUntil.Completed, cancellationToken: cancellationToken).ConfigureAwait(false); + var originalTags = await GetTagResource().GetAsync(cancellationToken).ConfigureAwait(false); + originalTags.Value.Data.TagValues.ReplaceWith(tags); + await GetTagResource().CreateOrUpdateAsync(WaitUntil.Completed, originalTags.Value.Data, cancellationToken: cancellationToken).ConfigureAwait(false); + var originalResponse = await _ipamPoolRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + return Response.FromValue(new IpamPoolResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); + } + else + { + var current = (await GetAsync(cancellationToken: cancellationToken).ConfigureAwait(false)).Value.Data; + var patch = new IpamPoolPatch(); + patch.Tags.ReplaceWith(tags); + var result = await UpdateAsync(patch, cancellationToken: cancellationToken).ConfigureAwait(false); + return result; + } + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Replace the tags on the resource with the given set. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/ipamPools/{poolName} + /// + /// + /// Operation Id + /// IpamPools_Get + /// + /// + /// Default Api Version + /// 2024-05-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// The set of tags to use as replacement. + /// The cancellation token to use. + /// is null. + public virtual Response SetTags(IDictionary tags, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(tags, nameof(tags)); + + using var scope = _ipamPoolClientDiagnostics.CreateScope("IpamPoolResource.SetTags"); + scope.Start(); + try + { + if (CanUseTagResource(cancellationToken: cancellationToken)) + { + GetTagResource().Delete(WaitUntil.Completed, cancellationToken: cancellationToken); + var originalTags = GetTagResource().Get(cancellationToken); + originalTags.Value.Data.TagValues.ReplaceWith(tags); + GetTagResource().CreateOrUpdate(WaitUntil.Completed, originalTags.Value.Data, cancellationToken: cancellationToken); + var originalResponse = _ipamPoolRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); + return Response.FromValue(new IpamPoolResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); + } + else + { + var current = Get(cancellationToken: cancellationToken).Value.Data; + var patch = new IpamPoolPatch(); + patch.Tags.ReplaceWith(tags); + var result = Update(patch, cancellationToken: cancellationToken); + return result; + } + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Removes a tag by key from the resource. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/ipamPools/{poolName} + /// + /// + /// Operation Id + /// IpamPools_Get + /// + /// + /// Default Api Version + /// 2024-05-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// The key for the tag. + /// The cancellation token to use. + /// is null. + public virtual async Task> RemoveTagAsync(string key, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(key, nameof(key)); + + using var scope = _ipamPoolClientDiagnostics.CreateScope("IpamPoolResource.RemoveTag"); + scope.Start(); + try + { + if (await CanUseTagResourceAsync(cancellationToken: cancellationToken).ConfigureAwait(false)) + { + var originalTags = await GetTagResource().GetAsync(cancellationToken).ConfigureAwait(false); + originalTags.Value.Data.TagValues.Remove(key); + await GetTagResource().CreateOrUpdateAsync(WaitUntil.Completed, originalTags.Value.Data, cancellationToken: cancellationToken).ConfigureAwait(false); + var originalResponse = await _ipamPoolRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + return Response.FromValue(new IpamPoolResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); + } + else + { + var current = (await GetAsync(cancellationToken: cancellationToken).ConfigureAwait(false)).Value.Data; + var patch = new IpamPoolPatch(); + foreach (var tag in current.Tags) + { + patch.Tags.Add(tag); + } + patch.Tags.Remove(key); + var result = await UpdateAsync(patch, cancellationToken: cancellationToken).ConfigureAwait(false); + return result; + } + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Removes a tag by key from the resource. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/ipamPools/{poolName} + /// + /// + /// Operation Id + /// IpamPools_Get + /// + /// + /// Default Api Version + /// 2024-05-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// The key for the tag. + /// The cancellation token to use. + /// is null. + public virtual Response RemoveTag(string key, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(key, nameof(key)); + + using var scope = _ipamPoolClientDiagnostics.CreateScope("IpamPoolResource.RemoveTag"); + scope.Start(); + try + { + if (CanUseTagResource(cancellationToken: cancellationToken)) + { + var originalTags = GetTagResource().Get(cancellationToken); + originalTags.Value.Data.TagValues.Remove(key); + GetTagResource().CreateOrUpdate(WaitUntil.Completed, originalTags.Value.Data, cancellationToken: cancellationToken); + var originalResponse = _ipamPoolRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); + return Response.FromValue(new IpamPoolResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); + } + else + { + var current = Get(cancellationToken: cancellationToken).Value.Data; + var patch = new IpamPoolPatch(); + foreach (var tag in current.Tags) + { + patch.Tags.Add(tag); + } + patch.Tags.Remove(key); + var result = Update(patch, cancellationToken: cancellationToken); + return result; + } + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/LoadBalancerCollection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/LoadBalancerCollection.cs index 50cfec1a2eca..35db6b3be485 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/LoadBalancerCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/LoadBalancerCollection.cs @@ -65,7 +65,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -114,7 +114,7 @@ public virtual async Task> CreateOrUpdateAsyn /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -163,7 +163,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil waitU /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -209,7 +209,7 @@ public virtual async Task> GetAsync(string loadBa /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -255,7 +255,7 @@ public virtual Response Get(string loadBalancerName, strin /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -285,7 +285,7 @@ public virtual AsyncPageable GetAllAsync(CancellationToken /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -315,7 +315,7 @@ public virtual Pageable GetAll(CancellationToken cancellat /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -359,7 +359,7 @@ public virtual async Task> ExistsAsync(string loadBalancerName, s /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -403,7 +403,7 @@ public virtual Response Exists(string loadBalancerName, string expand = nu /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -449,7 +449,7 @@ public virtual async Task> GetIfExistsAsy /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/LoadBalancerResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/LoadBalancerResource.cs index a24c08f29f2f..18df52275173 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/LoadBalancerResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/LoadBalancerResource.cs @@ -115,7 +115,7 @@ public virtual BackendAddressPoolCollection GetBackendAddressPools() /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -146,7 +146,7 @@ public virtual async Task> GetBackendAddres /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -184,7 +184,7 @@ public virtual FrontendIPConfigurationCollection GetFrontendIPConfigurations() /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -215,7 +215,7 @@ public virtual async Task> GetFrontend /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -253,7 +253,7 @@ public virtual InboundNatRuleCollection GetInboundNatRules() /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -285,7 +285,7 @@ public virtual async Task> GetInboundNatRuleAsy /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -324,7 +324,7 @@ public virtual LoadBalancingRuleCollection GetLoadBalancingRules() /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -355,7 +355,7 @@ public virtual async Task> GetLoadBalancingR /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -393,7 +393,7 @@ public virtual OutboundRuleCollection GetOutboundRules() /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -424,7 +424,7 @@ public virtual async Task> GetOutboundRuleAsync(s /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -462,7 +462,7 @@ public virtual ProbeCollection GetProbes() /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -493,7 +493,7 @@ public virtual async Task> GetProbeAsync(string probeNam /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -524,7 +524,7 @@ public virtual Response GetProbe(string probeName, CancellationTo /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -565,7 +565,7 @@ public virtual async Task> GetAsync(string expand /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -606,7 +606,7 @@ public virtual Response Get(string expand = null, Cancella /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -648,7 +648,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -690,7 +690,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -732,7 +732,7 @@ public virtual async Task> UpdateAsync(NetworkTag /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -774,7 +774,7 @@ public virtual Response Update(NetworkTagsObject networkTa /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -813,7 +813,7 @@ public virtual async Task> MigrateT /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -852,7 +852,7 @@ public virtual Response MigrateToIPBased(Mig /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// @@ -878,7 +878,7 @@ public virtual AsyncPageable GetLoadBalancerNetworkInt /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// @@ -904,7 +904,7 @@ public virtual Pageable GetLoadBalancerNetworkInterfac /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -966,7 +966,7 @@ public virtual async Task> AddTagAsync(string key /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -1028,7 +1028,7 @@ public virtual Response AddTag(string key, string value, C /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -1085,7 +1085,7 @@ public virtual async Task> SetTagsAsync(IDictiona /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -1142,7 +1142,7 @@ public virtual Response SetTags(IDictionary /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -1202,7 +1202,7 @@ public virtual async Task> RemoveTagAsync(string /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/LoadBalancingRuleCollection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/LoadBalancingRuleCollection.cs index f3a5419f9d34..9decf6bc39cb 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/LoadBalancingRuleCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/LoadBalancingRuleCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -109,7 +109,7 @@ public virtual async Task> GetAsync(string l /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -154,7 +154,7 @@ public virtual Response Get(string loadBalancingRuleN /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -184,7 +184,7 @@ public virtual AsyncPageable GetAllAsync(Cancellation /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -214,7 +214,7 @@ public virtual Pageable GetAll(CancellationToken canc /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -257,7 +257,7 @@ public virtual async Task> ExistsAsync(string loadBalancingRuleNa /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -300,7 +300,7 @@ public virtual Response Exists(string loadBalancingRuleName, CancellationT /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -345,7 +345,7 @@ public virtual async Task> GetIfExis /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/LoadBalancingRuleResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/LoadBalancingRuleResource.cs index ed0ad76cba0d..e1cf341a3aae 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/LoadBalancingRuleResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/LoadBalancingRuleResource.cs @@ -11,6 +11,7 @@ using System.Threading.Tasks; using Azure.Core; using Azure.Core.Pipeline; +using Azure.ResourceManager.Network.Models; namespace Azure.ResourceManager.Network { @@ -101,7 +102,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -141,7 +142,7 @@ public virtual async Task> GetAsync(Cancella /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -167,5 +168,89 @@ public virtual Response Get(CancellationToken cancell throw; } } + + /// + /// Get health details of a load balancing rule. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/loadBalancingRules/{loadBalancingRuleName}/health + /// + /// + /// Operation Id + /// LoadBalancerLoadBalancingRules_Health + /// + /// + /// Default Api Version + /// 2024-05-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> HealthAsync(WaitUntil waitUntil, CancellationToken cancellationToken = default) + { + using var scope = _loadBalancingRuleLoadBalancerLoadBalancingRulesClientDiagnostics.CreateScope("LoadBalancingRuleResource.Health"); + scope.Start(); + try + { + var response = await _loadBalancingRuleLoadBalancerLoadBalancingRulesRestClient.HealthAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + var operation = new NetworkArmOperation(new LoadBalancerHealthPerRuleOperationSource(), _loadBalancingRuleLoadBalancerLoadBalancingRulesClientDiagnostics, Pipeline, _loadBalancingRuleLoadBalancerLoadBalancingRulesRestClient.CreateHealthRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name).Request, response, OperationFinalStateVia.Location); + if (waitUntil == WaitUntil.Completed) + await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Get health details of a load balancing rule. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{groupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/loadBalancingRules/{loadBalancingRuleName}/health + /// + /// + /// Operation Id + /// LoadBalancerLoadBalancingRules_Health + /// + /// + /// Default Api Version + /// 2024-05-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 Health(WaitUntil waitUntil, CancellationToken cancellationToken = default) + { + using var scope = _loadBalancingRuleLoadBalancerLoadBalancingRulesClientDiagnostics.CreateScope("LoadBalancingRuleResource.Health"); + scope.Start(); + try + { + var response = _loadBalancingRuleLoadBalancerLoadBalancingRulesRestClient.Health(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); + var operation = new NetworkArmOperation(new LoadBalancerHealthPerRuleOperationSource(), _loadBalancingRuleLoadBalancerLoadBalancingRulesClientDiagnostics, Pipeline, _loadBalancingRuleLoadBalancerLoadBalancingRulesRestClient.CreateHealthRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name).Request, response, OperationFinalStateVia.Location); + if (waitUntil == WaitUntil.Completed) + operation.WaitForCompletion(cancellationToken); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } } } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/LocalNetworkGatewayCollection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/LocalNetworkGatewayCollection.cs index 8235c9cb11c5..75642563fb0e 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/LocalNetworkGatewayCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/LocalNetworkGatewayCollection.cs @@ -65,7 +65,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -114,7 +114,7 @@ public virtual async Task> CreateOrUpd /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -163,7 +163,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUnti /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -208,7 +208,7 @@ public virtual async Task> GetAsync(string /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -253,7 +253,7 @@ public virtual Response Get(string localNetworkGate /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -283,7 +283,7 @@ public virtual AsyncPageable GetAllAsync(Cancellati /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -313,7 +313,7 @@ public virtual Pageable GetAll(CancellationToken ca /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -356,7 +356,7 @@ public virtual async Task> ExistsAsync(string localNetworkGateway /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -399,7 +399,7 @@ public virtual Response Exists(string localNetworkGatewayName, Cancellatio /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -444,7 +444,7 @@ public virtual async Task> GetIfEx /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/LocalNetworkGatewayData.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/LocalNetworkGatewayData.cs index c2b80837ce1a..41fad3c00ac4 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/LocalNetworkGatewayData.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/LocalNetworkGatewayData.cs @@ -51,18 +51,7 @@ internal LocalNetworkGatewayData(ResourceIdentifier id, string name, ResourceTyp /// A unique read-only string that changes whenever the resource is updated. public ETag? ETag { get; } /// Local network site address space. - internal AddressSpace LocalNetworkAddressSpace { get; set; } - /// A list of address blocks reserved for this virtual network in CIDR notation. - public IList LocalNetworkAddressPrefixes - { - get - { - if (LocalNetworkAddressSpace is null) - LocalNetworkAddressSpace = new AddressSpace(); - return LocalNetworkAddressSpace.AddressPrefixes; - } - } - + public AddressSpace LocalNetworkAddressSpace { get; set; } /// IP address of local network gateway. public string GatewayIPAddress { get; set; } /// FQDN of local network gateway. diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/LocalNetworkGatewayResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/LocalNetworkGatewayResource.cs index 0597b92bdda0..75526e767998 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/LocalNetworkGatewayResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/LocalNetworkGatewayResource.cs @@ -103,7 +103,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -143,7 +143,7 @@ public virtual async Task> GetAsync(Cancel /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -183,7 +183,7 @@ public virtual Response Get(CancellationToken cance /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -225,7 +225,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -267,7 +267,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -309,7 +309,7 @@ public virtual async Task> UpdateAsync(Net /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -351,7 +351,7 @@ public virtual Response Update(NetworkTagsObject ne /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -413,7 +413,7 @@ public virtual async Task> AddTagAsync(str /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -475,7 +475,7 @@ public virtual Response AddTag(string key, string v /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -532,7 +532,7 @@ public virtual async Task> SetTagsAsync(ID /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -589,7 +589,7 @@ public virtual Response SetTags(IDictionary /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -649,7 +649,7 @@ public virtual async Task> RemoveTagAsync( /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/LongRunningOperation/IListOperationSource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/LongRunningOperation/IListOperationSource.cs new file mode 100644 index 000000000000..d936296baba2 --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/LongRunningOperation/IListOperationSource.cs @@ -0,0 +1,41 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using System.Text.Json; +using System.Threading; +using System.Threading.Tasks; +using Azure.Core; +using Azure.ResourceManager.Network.Models; + +namespace Azure.ResourceManager.Network +{ + internal class IListOperationSource : IOperationSource> + { + IList IOperationSource>.CreateResult(Response response, CancellationToken cancellationToken) + { + using var document = JsonDocument.Parse(response.ContentStream); + List array = new List(); + foreach (var item in document.RootElement.EnumerateArray()) + { + array.Add(ExpressRouteFailoverSingleTestDetails.DeserializeExpressRouteFailoverSingleTestDetails(item)); + } + return array; + } + + async ValueTask> IOperationSource>.CreateResultAsync(Response response, CancellationToken cancellationToken) + { + using var document = await JsonDocument.ParseAsync(response.ContentStream, default, cancellationToken).ConfigureAwait(false); + List array = new List(); + foreach (var item in document.RootElement.EnumerateArray()) + { + array.Add(ExpressRouteFailoverSingleTestDetails.DeserializeExpressRouteFailoverSingleTestDetails(item)); + } + return array; + } + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/LongRunningOperation/IpamPoolOperationSource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/LongRunningOperation/IpamPoolOperationSource.cs new file mode 100644 index 000000000000..2c6375745640 --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/LongRunningOperation/IpamPoolOperationSource.cs @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using System.Threading; +using System.Threading.Tasks; +using Azure.Core; + +namespace Azure.ResourceManager.Network +{ + internal class IpamPoolOperationSource : IOperationSource + { + private readonly ArmClient _client; + + internal IpamPoolOperationSource(ArmClient client) + { + _client = client; + } + + IpamPoolResource IOperationSource.CreateResult(Response response, CancellationToken cancellationToken) + { + using var document = JsonDocument.Parse(response.ContentStream); + var data = IpamPoolData.DeserializeIpamPoolData(document.RootElement); + return new IpamPoolResource(_client, data); + } + + async ValueTask IOperationSource.CreateResultAsync(Response response, CancellationToken cancellationToken) + { + using var document = await JsonDocument.ParseAsync(response.ContentStream, default, cancellationToken).ConfigureAwait(false); + var data = IpamPoolData.DeserializeIpamPoolData(document.RootElement); + return new IpamPoolResource(_client, data); + } + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/LongRunningOperation/LoadBalancerHealthPerRuleOperationSource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/LongRunningOperation/LoadBalancerHealthPerRuleOperationSource.cs new file mode 100644 index 000000000000..a405108a0287 --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/LongRunningOperation/LoadBalancerHealthPerRuleOperationSource.cs @@ -0,0 +1,30 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Text.Json; +using System.Threading; +using System.Threading.Tasks; +using Azure.Core; +using Azure.ResourceManager.Network.Models; + +namespace Azure.ResourceManager.Network +{ + internal class LoadBalancerHealthPerRuleOperationSource : IOperationSource + { + LoadBalancerHealthPerRule IOperationSource.CreateResult(Response response, CancellationToken cancellationToken) + { + using var document = JsonDocument.Parse(response.ContentStream); + return LoadBalancerHealthPerRule.DeserializeLoadBalancerHealthPerRule(document.RootElement); + } + + async ValueTask IOperationSource.CreateResultAsync(Response response, CancellationToken cancellationToken) + { + using var document = await JsonDocument.ParseAsync(response.ContentStream, default, cancellationToken).ConfigureAwait(false); + return LoadBalancerHealthPerRule.DeserializeLoadBalancerHealthPerRule(document.RootElement); + } + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/ManagementGroupNetworkManagerConnectionCollection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/ManagementGroupNetworkManagerConnectionCollection.cs index a3624fa9b705..1c519cbba9b4 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/ManagementGroupNetworkManagerConnectionCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/ManagementGroupNetworkManagerConnectionCollection.cs @@ -65,7 +65,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -116,7 +116,7 @@ public virtual async Task /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -167,7 +167,7 @@ public virtual ArmOperation Cre /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -212,7 +212,7 @@ public virtual async Task /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -257,7 +257,7 @@ public virtual Response Get(str /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -289,7 +289,7 @@ public virtual AsyncPageable Ge /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -321,7 +321,7 @@ public virtual Pageable GetAll( /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -364,7 +364,7 @@ public virtual async Task> ExistsAsync(string networkManagerConne /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -407,7 +407,7 @@ public virtual Response Exists(string networkManagerConnectionName, Cancel /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -452,7 +452,7 @@ public virtual async Task /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/ManagementGroupNetworkManagerConnectionResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/ManagementGroupNetworkManagerConnectionResource.cs index 131a26636f31..1c5ef1a3bc7b 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/ManagementGroupNetworkManagerConnectionResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/ManagementGroupNetworkManagerConnectionResource.cs @@ -100,7 +100,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -140,7 +140,7 @@ public virtual async Task /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -180,7 +180,7 @@ public virtual Response Get(Can /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -224,7 +224,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -268,7 +268,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -316,7 +316,7 @@ public virtual async Task /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/AddressPrefixType.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/AddressPrefixType.cs index 39bfbc0ccbda..da368b0d5e9e 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/AddressPrefixType.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/AddressPrefixType.cs @@ -24,11 +24,14 @@ public AddressPrefixType(string value) private const string IPPrefixValue = "IPPrefix"; private const string ServiceTagValue = "ServiceTag"; + private const string NetworkGroupValue = "NetworkGroup"; /// IPPrefix. public static AddressPrefixType IPPrefix { get; } = new AddressPrefixType(IPPrefixValue); /// ServiceTag. public static AddressPrefixType ServiceTag { get; } = new AddressPrefixType(ServiceTagValue); + /// NetworkGroup. + public static AddressPrefixType NetworkGroup { get; } = new AddressPrefixType(NetworkGroupValue); /// Determines if two values are the same. public static bool operator ==(AddressPrefixType left, AddressPrefixType right) => left.Equals(right); /// Determines if two values are not the same. diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/AddressSpace.Serialization.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/AddressSpace.Serialization.cs index 8271292be0f9..6a264cc4292f 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/AddressSpace.Serialization.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/AddressSpace.Serialization.cs @@ -13,7 +13,7 @@ namespace Azure.ResourceManager.Network.Models { - internal partial class AddressSpace : IUtf8JsonSerializable, IJsonModel + public partial class AddressSpace : IUtf8JsonSerializable, IJsonModel { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); @@ -44,6 +44,16 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit } writer.WriteEndArray(); } + if (Optional.IsCollectionDefined(IpamPoolPrefixAllocations)) + { + writer.WritePropertyName("ipamPoolPrefixAllocations"u8); + writer.WriteStartArray(); + foreach (var item in IpamPoolPrefixAllocations) + { + writer.WriteObjectValue(item, options); + } + writer.WriteEndArray(); + } if (options.Format != "W" && _serializedAdditionalRawData != null) { foreach (var item in _serializedAdditionalRawData) @@ -82,6 +92,7 @@ internal static AddressSpace DeserializeAddressSpace(JsonElement element, ModelR return null; } IList addressPrefixes = default; + IList ipamPoolPrefixAllocations = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) @@ -100,13 +111,27 @@ internal static AddressSpace DeserializeAddressSpace(JsonElement element, ModelR addressPrefixes = array; continue; } + if (property.NameEquals("ipamPoolPrefixAllocations"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(IpamPoolPrefixAllocation.DeserializeIpamPoolPrefixAllocation(item, options)); + } + ipamPoolPrefixAllocations = array; + continue; + } if (options.Format != "W") { rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); } } serializedAdditionalRawData = rawDataDictionary; - return new AddressSpace(addressPrefixes ?? new ChangeTrackingList(), serializedAdditionalRawData); + return new AddressSpace(addressPrefixes ?? new ChangeTrackingList(), ipamPoolPrefixAllocations ?? new ChangeTrackingList(), serializedAdditionalRawData); } BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/AddressSpace.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/AddressSpace.cs index c7e43cc656ed..f6e290bdd19d 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/AddressSpace.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/AddressSpace.cs @@ -11,7 +11,7 @@ namespace Azure.ResourceManager.Network.Models { /// AddressSpace contains an array of IP address ranges that can be used by subnets of the virtual network. - internal partial class AddressSpace + public partial class AddressSpace { /// /// Keeps track of any properties unknown to the library. @@ -49,18 +49,23 @@ internal partial class AddressSpace public AddressSpace() { AddressPrefixes = new ChangeTrackingList(); + IpamPoolPrefixAllocations = new ChangeTrackingList(); } /// Initializes a new instance of . /// A list of address blocks reserved for this virtual network in CIDR notation. + /// A list of IPAM Pools allocating IP address prefixes. /// Keeps track of any properties unknown to the library. - internal AddressSpace(IList addressPrefixes, IDictionary serializedAdditionalRawData) + internal AddressSpace(IList addressPrefixes, IList ipamPoolPrefixAllocations, IDictionary serializedAdditionalRawData) { AddressPrefixes = addressPrefixes; + IpamPoolPrefixAllocations = ipamPoolPrefixAllocations; _serializedAdditionalRawData = serializedAdditionalRawData; } /// A list of address blocks reserved for this virtual network in CIDR notation. public IList AddressPrefixes { get; } + /// A list of IPAM Pools allocating IP address prefixes. + public IList IpamPoolPrefixAllocations { get; } } } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/AddressSpaceAggregationOption.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/AddressSpaceAggregationOption.cs new file mode 100644 index 000000000000..499f6659bc79 --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/AddressSpaceAggregationOption.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.Network.Models +{ + /// Option indicating the update behavior of a resource's address prefixes referenced within a network manager configuration. + public readonly partial struct AddressSpaceAggregationOption : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public AddressSpaceAggregationOption(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string NoneValue = "None"; + private const string ManualValue = "Manual"; + + /// None. + public static AddressSpaceAggregationOption None { get; } = new AddressSpaceAggregationOption(NoneValue); + /// Manual. + public static AddressSpaceAggregationOption Manual { get; } = new AddressSpaceAggregationOption(ManualValue); + /// Determines if two values are the same. + public static bool operator ==(AddressSpaceAggregationOption left, AddressSpaceAggregationOption right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(AddressSpaceAggregationOption left, AddressSpaceAggregationOption right) => !left.Equals(right); + /// Converts a to a . + public static implicit operator AddressSpaceAggregationOption(string value) => new AddressSpaceAggregationOption(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is AddressSpaceAggregationOption other && Equals(other); + /// + public bool Equals(AddressSpaceAggregationOption 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/network/Azure.ResourceManager.Network/src/Generated/Models/BastionHostIPConfiguration.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/BastionHostIPConfiguration.cs index ac155ef81ddc..6120b4965c8a 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/BastionHostIPConfiguration.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/BastionHostIPConfiguration.cs @@ -27,7 +27,7 @@ public BastionHostIPConfiguration() /// Keeps track of any properties unknown to the library. /// A unique read-only string that changes whenever the resource is updated. /// Reference of the subnet resource. - /// Reference of the PublicIP resource. + /// Reference of the PublicIP resource. Null for private only bastion. /// The provisioning state of the bastion host IP configuration resource. /// Private IP allocation method. internal BastionHostIPConfiguration(ResourceIdentifier id, string name, ResourceType? resourceType, IDictionary serializedAdditionalRawData, ETag? etag, WritableSubResource subnet, WritableSubResource publicIPAddress, NetworkProvisioningState? provisioningState, NetworkIPAllocationMethod? privateIPAllocationMethod) : base(id, name, resourceType, serializedAdditionalRawData) @@ -55,7 +55,7 @@ public ResourceIdentifier SubnetId } } - /// Reference of the PublicIP resource. + /// Reference of the PublicIP resource. Null for private only bastion. internal WritableSubResource PublicIPAddress { get; set; } /// Gets or sets Id. public ResourceIdentifier PublicIPAddressId diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ExpressRouteFailoverCircuitResourceDetails.Serialization.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ExpressRouteFailoverCircuitResourceDetails.Serialization.cs new file mode 100644 index 000000000000..be188ae57a33 --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ExpressRouteFailoverCircuitResourceDetails.Serialization.cs @@ -0,0 +1,155 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.Network.Models +{ + public partial class ExpressRouteFailoverCircuitResourceDetails : 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(ExpressRouteFailoverCircuitResourceDetails)} does not support writing '{format}' format."); + } + + if (Optional.IsDefined(NrpResourceUri)) + { + writer.WritePropertyName("nrpResourceUri"u8); + writer.WriteStringValue(NrpResourceUri.AbsoluteUri); + } + if (Optional.IsDefined(Name)) + { + writer.WritePropertyName("name"u8); + writer.WriteStringValue(Name); + } + if (Optional.IsDefined(ConnectionName)) + { + writer.WritePropertyName("connectionName"u8); + writer.WriteStringValue(ConnectionName); + } + 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 + } + } + } + + ExpressRouteFailoverCircuitResourceDetails 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(ExpressRouteFailoverCircuitResourceDetails)} does not support reading '{format}' format."); + } + + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeExpressRouteFailoverCircuitResourceDetails(document.RootElement, options); + } + + internal static ExpressRouteFailoverCircuitResourceDetails DeserializeExpressRouteFailoverCircuitResourceDetails(JsonElement element, ModelReaderWriterOptions options = null) + { + options ??= ModelSerializationExtensions.WireOptions; + + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Uri nrpResourceUri = default; + string name = default; + string connectionName = default; + IDictionary serializedAdditionalRawData = default; + Dictionary rawDataDictionary = new Dictionary(); + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("nrpResourceUri"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + nrpResourceUri = new Uri(property.Value.GetString()); + continue; + } + if (property.NameEquals("name"u8)) + { + name = property.Value.GetString(); + continue; + } + if (property.NameEquals("connectionName"u8)) + { + connectionName = property.Value.GetString(); + continue; + } + if (options.Format != "W") + { + rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + } + } + serializedAdditionalRawData = rawDataDictionary; + return new ExpressRouteFailoverCircuitResourceDetails(nrpResourceUri, name, connectionName, 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(ExpressRouteFailoverCircuitResourceDetails)} does not support writing '{options.Format}' format."); + } + } + + ExpressRouteFailoverCircuitResourceDetails 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 DeserializeExpressRouteFailoverCircuitResourceDetails(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(ExpressRouteFailoverCircuitResourceDetails)} does not support reading '{options.Format}' format."); + } + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ExpressRouteFailoverCircuitResourceDetails.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ExpressRouteFailoverCircuitResourceDetails.cs new file mode 100644 index 000000000000..72f72ec9d607 --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ExpressRouteFailoverCircuitResourceDetails.cs @@ -0,0 +1,73 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; + +namespace Azure.ResourceManager.Network.Models +{ + /// The ExpressRouteFailoverCircuitResourceDetails. + public partial class ExpressRouteFailoverCircuitResourceDetails + { + /// + /// Keeps track of any properties unknown to the library. + /// + /// To assign an object to the value of this property use . + /// + /// + /// To assign an already formatted json string to this property use . + /// + /// + /// Examples: + /// + /// + /// BinaryData.FromObjectAsJson("foo") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromString("\"foo\"") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromObjectAsJson(new { key = "value" }) + /// Creates a payload of { "key": "value" }. + /// + /// + /// BinaryData.FromString("{\"key\": \"value\"}") + /// Creates a payload of { "key": "value" }. + /// + /// + /// + /// + private IDictionary _serializedAdditionalRawData; + + /// Initializes a new instance of . + internal ExpressRouteFailoverCircuitResourceDetails() + { + } + + /// Initializes a new instance of . + /// NRP Resource URI of the circuit. + /// Circuit Name. + /// Connection name associated with the circuit. + /// Keeps track of any properties unknown to the library. + internal ExpressRouteFailoverCircuitResourceDetails(Uri nrpResourceUri, string name, string connectionName, IDictionary serializedAdditionalRawData) + { + NrpResourceUri = nrpResourceUri; + Name = name; + ConnectionName = connectionName; + _serializedAdditionalRawData = serializedAdditionalRawData; + } + + /// NRP Resource URI of the circuit. + public Uri NrpResourceUri { get; } + /// Circuit Name. + public string Name { get; } + /// Connection name associated with the circuit. + public string ConnectionName { get; } + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ExpressRouteFailoverConnectionResourceDetails.Serialization.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ExpressRouteFailoverConnectionResourceDetails.Serialization.cs new file mode 100644 index 000000000000..b320fe4169e2 --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ExpressRouteFailoverConnectionResourceDetails.Serialization.cs @@ -0,0 +1,174 @@ +// 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.Network.Models +{ + public partial class ExpressRouteFailoverConnectionResourceDetails : 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(ExpressRouteFailoverConnectionResourceDetails)} does not support writing '{format}' format."); + } + + if (Optional.IsDefined(NrpResourceUri)) + { + writer.WritePropertyName("nrpResourceUri"u8); + writer.WriteStringValue(NrpResourceUri.AbsoluteUri); + } + if (Optional.IsDefined(Name)) + { + writer.WritePropertyName("name"u8); + writer.WriteStringValue(Name); + } + if (Optional.IsDefined(Status)) + { + writer.WritePropertyName("status"u8); + writer.WriteStringValue(Status.Value.ToString()); + } + if (Optional.IsDefined(LastUpdatedOn)) + { + writer.WritePropertyName("lastUpdatedTime"u8); + writer.WriteStringValue(LastUpdatedOn.Value, "O"); + } + if (options.Format != "W" && _serializedAdditionalRawData != null) + { + foreach (var item in _serializedAdditionalRawData) + { + writer.WritePropertyName(item.Key); +#if NET6_0_OR_GREATER + writer.WriteRawValue(item.Value); +#else + using (JsonDocument document = JsonDocument.Parse(item.Value)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } + } + } + + ExpressRouteFailoverConnectionResourceDetails 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(ExpressRouteFailoverConnectionResourceDetails)} does not support reading '{format}' format."); + } + + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeExpressRouteFailoverConnectionResourceDetails(document.RootElement, options); + } + + internal static ExpressRouteFailoverConnectionResourceDetails DeserializeExpressRouteFailoverConnectionResourceDetails(JsonElement element, ModelReaderWriterOptions options = null) + { + options ??= ModelSerializationExtensions.WireOptions; + + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + Uri nrpResourceUri = default; + string name = default; + FailoverConnectionStatus? status = default; + DateTimeOffset? lastUpdatedTime = default; + IDictionary serializedAdditionalRawData = default; + Dictionary rawDataDictionary = new Dictionary(); + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("nrpResourceUri"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + nrpResourceUri = new Uri(property.Value.GetString()); + continue; + } + if (property.NameEquals("name"u8)) + { + name = property.Value.GetString(); + continue; + } + if (property.NameEquals("status"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + status = new FailoverConnectionStatus(property.Value.GetString()); + continue; + } + if (property.NameEquals("lastUpdatedTime"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + lastUpdatedTime = property.Value.GetDateTimeOffset("O"); + continue; + } + if (options.Format != "W") + { + rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + } + } + serializedAdditionalRawData = rawDataDictionary; + return new ExpressRouteFailoverConnectionResourceDetails(nrpResourceUri, name, status, lastUpdatedTime, 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(ExpressRouteFailoverConnectionResourceDetails)} does not support writing '{options.Format}' format."); + } + } + + ExpressRouteFailoverConnectionResourceDetails 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 DeserializeExpressRouteFailoverConnectionResourceDetails(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(ExpressRouteFailoverConnectionResourceDetails)} does not support reading '{options.Format}' format."); + } + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ExpressRouteFailoverConnectionResourceDetails.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ExpressRouteFailoverConnectionResourceDetails.cs new file mode 100644 index 000000000000..37325b78d986 --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ExpressRouteFailoverConnectionResourceDetails.cs @@ -0,0 +1,77 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; + +namespace Azure.ResourceManager.Network.Models +{ + /// The ExpressRouteFailoverConnectionResourceDetails. + public partial class ExpressRouteFailoverConnectionResourceDetails + { + /// + /// Keeps track of any properties unknown to the library. + /// + /// To assign an object to the value of this property use . + /// + /// + /// To assign an already formatted json string to this property use . + /// + /// + /// Examples: + /// + /// + /// BinaryData.FromObjectAsJson("foo") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromString("\"foo\"") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromObjectAsJson(new { key = "value" }) + /// Creates a payload of { "key": "value" }. + /// + /// + /// BinaryData.FromString("{\"key\": \"value\"}") + /// Creates a payload of { "key": "value" }. + /// + /// + /// + /// + private IDictionary _serializedAdditionalRawData; + + /// Initializes a new instance of . + internal ExpressRouteFailoverConnectionResourceDetails() + { + } + + /// Initializes a new instance of . + /// NRP Resource URI of the connection. + /// Connection Name. + /// The current status of the connection. + /// Time when the connection was last updated. + /// Keeps track of any properties unknown to the library. + internal ExpressRouteFailoverConnectionResourceDetails(Uri nrpResourceUri, string name, FailoverConnectionStatus? status, DateTimeOffset? lastUpdatedOn, IDictionary serializedAdditionalRawData) + { + NrpResourceUri = nrpResourceUri; + Name = name; + Status = status; + LastUpdatedOn = lastUpdatedOn; + _serializedAdditionalRawData = serializedAdditionalRawData; + } + + /// NRP Resource URI of the connection. + public Uri NrpResourceUri { get; } + /// Connection Name. + public string Name { get; } + /// The current status of the connection. + public FailoverConnectionStatus? Status { get; } + /// Time when the connection was last updated. + public DateTimeOffset? LastUpdatedOn { get; } + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ExpressRouteFailoverRedundantRoute.Serialization.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ExpressRouteFailoverRedundantRoute.Serialization.cs new file mode 100644 index 000000000000..0152659fc42a --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ExpressRouteFailoverRedundantRoute.Serialization.cs @@ -0,0 +1,168 @@ +// 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.Network.Models +{ + public partial class ExpressRouteFailoverRedundantRoute : 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(ExpressRouteFailoverRedundantRoute)} does not support writing '{format}' format."); + } + + if (Optional.IsCollectionDefined(PeeringLocations)) + { + writer.WritePropertyName("peeringLocations"u8); + writer.WriteStartArray(); + foreach (var item in PeeringLocations) + { + writer.WriteStringValue(item); + } + writer.WriteEndArray(); + } + if (Optional.IsCollectionDefined(Routes)) + { + writer.WritePropertyName("routes"u8); + writer.WriteStartArray(); + foreach (var item in Routes) + { + writer.WriteStringValue(item); + } + writer.WriteEndArray(); + } + if (options.Format != "W" && _serializedAdditionalRawData != null) + { + foreach (var item in _serializedAdditionalRawData) + { + writer.WritePropertyName(item.Key); +#if NET6_0_OR_GREATER + writer.WriteRawValue(item.Value); +#else + using (JsonDocument document = JsonDocument.Parse(item.Value)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } + } + } + + ExpressRouteFailoverRedundantRoute 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(ExpressRouteFailoverRedundantRoute)} does not support reading '{format}' format."); + } + + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeExpressRouteFailoverRedundantRoute(document.RootElement, options); + } + + internal static ExpressRouteFailoverRedundantRoute DeserializeExpressRouteFailoverRedundantRoute(JsonElement element, ModelReaderWriterOptions options = null) + { + options ??= ModelSerializationExtensions.WireOptions; + + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + IReadOnlyList peeringLocations = default; + IReadOnlyList routes = default; + IDictionary serializedAdditionalRawData = default; + Dictionary rawDataDictionary = new Dictionary(); + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("peeringLocations"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(item.GetString()); + } + peeringLocations = array; + continue; + } + if (property.NameEquals("routes"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(item.GetString()); + } + routes = array; + continue; + } + if (options.Format != "W") + { + rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + } + } + serializedAdditionalRawData = rawDataDictionary; + return new ExpressRouteFailoverRedundantRoute(peeringLocations ?? new ChangeTrackingList(), routes ?? new ChangeTrackingList(), serializedAdditionalRawData); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + return ModelReaderWriter.Write(this, options); + default: + throw new FormatException($"The model {nameof(ExpressRouteFailoverRedundantRoute)} does not support writing '{options.Format}' format."); + } + } + + ExpressRouteFailoverRedundantRoute 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 DeserializeExpressRouteFailoverRedundantRoute(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(ExpressRouteFailoverRedundantRoute)} does not support reading '{options.Format}' format."); + } + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ExpressRouteFailoverRedundantRoute.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ExpressRouteFailoverRedundantRoute.cs new file mode 100644 index 000000000000..cebff9112450 --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ExpressRouteFailoverRedundantRoute.cs @@ -0,0 +1,71 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; + +namespace Azure.ResourceManager.Network.Models +{ + /// The ExpressRouteFailoverRedundantRoute. + public partial class ExpressRouteFailoverRedundantRoute + { + /// + /// Keeps track of any properties unknown to the library. + /// + /// To assign an object to the value of this property use . + /// + /// + /// To assign an already formatted json string to this property use . + /// + /// + /// Examples: + /// + /// + /// BinaryData.FromObjectAsJson("foo") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromString("\"foo\"") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromObjectAsJson(new { key = "value" }) + /// Creates a payload of { "key": "value" }. + /// + /// + /// BinaryData.FromString("{\"key\": \"value\"}") + /// Creates a payload of { "key": "value" }. + /// + /// + /// + /// + private IDictionary _serializedAdditionalRawData; + + /// Initializes a new instance of . + internal ExpressRouteFailoverRedundantRoute() + { + PeeringLocations = new ChangeTrackingList(); + Routes = new ChangeTrackingList(); + } + + /// Initializes a new instance of . + /// A list of all the peering locations for the redundant routes. + /// A list of all the redundant routes in the peering locations. + /// Keeps track of any properties unknown to the library. + internal ExpressRouteFailoverRedundantRoute(IReadOnlyList peeringLocations, IReadOnlyList routes, IDictionary serializedAdditionalRawData) + { + PeeringLocations = peeringLocations; + Routes = routes; + _serializedAdditionalRawData = serializedAdditionalRawData; + } + + /// A list of all the peering locations for the redundant routes. + public IReadOnlyList PeeringLocations { get; } + /// A list of all the redundant routes in the peering locations. + public IReadOnlyList Routes { get; } + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ExpressRouteFailoverSingleTestDetails.Serialization.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ExpressRouteFailoverSingleTestDetails.Serialization.cs new file mode 100644 index 000000000000..b9aa2eaee8a5 --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ExpressRouteFailoverSingleTestDetails.Serialization.cs @@ -0,0 +1,265 @@ +// 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.Network.Models +{ + public partial class ExpressRouteFailoverSingleTestDetails : 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(ExpressRouteFailoverSingleTestDetails)} does not support writing '{format}' format."); + } + + if (Optional.IsDefined(PeeringLocation)) + { + writer.WritePropertyName("peeringLocation"u8); + writer.WriteStringValue(PeeringLocation); + } + if (Optional.IsDefined(Status)) + { + writer.WritePropertyName("status"u8); + writer.WriteStringValue(Status.Value.ToString()); + } + if (Optional.IsDefined(StartTimeUtc)) + { + writer.WritePropertyName("startTimeUtc"u8); + writer.WriteStringValue(StartTimeUtc); + } + if (Optional.IsDefined(EndTimeUtc)) + { + writer.WritePropertyName("endTimeUtc"u8); + writer.WriteStringValue(EndTimeUtc); + } + if (Optional.IsCollectionDefined(RedundantRoutes)) + { + writer.WritePropertyName("redundantRoutes"u8); + writer.WriteStartArray(); + foreach (var item in RedundantRoutes) + { + writer.WriteObjectValue(item, options); + } + writer.WriteEndArray(); + } + if (Optional.IsCollectionDefined(NonRedundantRoutes)) + { + writer.WritePropertyName("nonRedundantRoutes"u8); + writer.WriteStartArray(); + foreach (var item in NonRedundantRoutes) + { + writer.WriteStringValue(item); + } + writer.WriteEndArray(); + } + if (Optional.IsDefined(WasSimulationSuccessful)) + { + writer.WritePropertyName("wasSimulationSuccessful"u8); + writer.WriteBooleanValue(WasSimulationSuccessful.Value); + } + if (Optional.IsCollectionDefined(FailoverConnectionDetails)) + { + writer.WritePropertyName("failoverConnectionDetails"u8); + writer.WriteStartArray(); + foreach (var item in FailoverConnectionDetails) + { + writer.WriteObjectValue(item, options); + } + writer.WriteEndArray(); + } + if (options.Format != "W" && _serializedAdditionalRawData != null) + { + foreach (var item in _serializedAdditionalRawData) + { + writer.WritePropertyName(item.Key); +#if NET6_0_OR_GREATER + writer.WriteRawValue(item.Value); +#else + using (JsonDocument document = JsonDocument.Parse(item.Value)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } + } + } + + ExpressRouteFailoverSingleTestDetails 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(ExpressRouteFailoverSingleTestDetails)} does not support reading '{format}' format."); + } + + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeExpressRouteFailoverSingleTestDetails(document.RootElement, options); + } + + internal static ExpressRouteFailoverSingleTestDetails DeserializeExpressRouteFailoverSingleTestDetails(JsonElement element, ModelReaderWriterOptions options = null) + { + options ??= ModelSerializationExtensions.WireOptions; + + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + string peeringLocation = default; + FailoverTestStatusForSingleTest? status = default; + string startTimeUtc = default; + string endTimeUtc = default; + IReadOnlyList redundantRoutes = default; + IReadOnlyList nonRedundantRoutes = default; + bool? wasSimulationSuccessful = default; + IReadOnlyList failoverConnectionDetails = default; + IDictionary serializedAdditionalRawData = default; + Dictionary rawDataDictionary = new Dictionary(); + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("peeringLocation"u8)) + { + peeringLocation = property.Value.GetString(); + continue; + } + if (property.NameEquals("status"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + status = new FailoverTestStatusForSingleTest(property.Value.GetString()); + continue; + } + if (property.NameEquals("startTimeUtc"u8)) + { + startTimeUtc = property.Value.GetString(); + continue; + } + if (property.NameEquals("endTimeUtc"u8)) + { + endTimeUtc = property.Value.GetString(); + continue; + } + if (property.NameEquals("redundantRoutes"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(ExpressRouteFailoverRedundantRoute.DeserializeExpressRouteFailoverRedundantRoute(item, options)); + } + redundantRoutes = array; + continue; + } + if (property.NameEquals("nonRedundantRoutes"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(item.GetString()); + } + nonRedundantRoutes = array; + continue; + } + if (property.NameEquals("wasSimulationSuccessful"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + wasSimulationSuccessful = property.Value.GetBoolean(); + continue; + } + if (property.NameEquals("failoverConnectionDetails"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(Models.FailoverConnectionDetails.DeserializeFailoverConnectionDetails(item, options)); + } + failoverConnectionDetails = array; + continue; + } + if (options.Format != "W") + { + rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + } + } + serializedAdditionalRawData = rawDataDictionary; + return new ExpressRouteFailoverSingleTestDetails( + peeringLocation, + status, + startTimeUtc, + endTimeUtc, + redundantRoutes ?? new ChangeTrackingList(), + nonRedundantRoutes ?? new ChangeTrackingList(), + wasSimulationSuccessful, + failoverConnectionDetails ?? new ChangeTrackingList(), + serializedAdditionalRawData); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + return ModelReaderWriter.Write(this, options); + default: + throw new FormatException($"The model {nameof(ExpressRouteFailoverSingleTestDetails)} does not support writing '{options.Format}' format."); + } + } + + ExpressRouteFailoverSingleTestDetails 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 DeserializeExpressRouteFailoverSingleTestDetails(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(ExpressRouteFailoverSingleTestDetails)} does not support reading '{options.Format}' format."); + } + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ExpressRouteFailoverSingleTestDetails.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ExpressRouteFailoverSingleTestDetails.cs new file mode 100644 index 000000000000..8ccbddcb1816 --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ExpressRouteFailoverSingleTestDetails.cs @@ -0,0 +1,96 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; + +namespace Azure.ResourceManager.Network.Models +{ + /// ExpressRoute failover single test details. + public partial class ExpressRouteFailoverSingleTestDetails + { + /// + /// Keeps track of any properties unknown to the library. + /// + /// To assign an object to the value of this property use . + /// + /// + /// To assign an already formatted json string to this property use . + /// + /// + /// Examples: + /// + /// + /// BinaryData.FromObjectAsJson("foo") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromString("\"foo\"") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromObjectAsJson(new { key = "value" }) + /// Creates a payload of { "key": "value" }. + /// + /// + /// BinaryData.FromString("{\"key\": \"value\"}") + /// Creates a payload of { "key": "value" }. + /// + /// + /// + /// + private IDictionary _serializedAdditionalRawData; + + /// Initializes a new instance of . + internal ExpressRouteFailoverSingleTestDetails() + { + RedundantRoutes = new ChangeTrackingList(); + NonRedundantRoutes = new ChangeTrackingList(); + FailoverConnectionDetails = new ChangeTrackingList(); + } + + /// Initializes a new instance of . + /// Peering location of the test. + /// The current status of the test. + /// Time when the test was started. + /// Time when the test was completed. + /// List of routes received from this peering as well as some other peering location. + /// List of al the routes that were received only from this peering location. + /// Whether the failover simulation was successful or not. + /// List of all the failover connections for this peering location. + /// Keeps track of any properties unknown to the library. + internal ExpressRouteFailoverSingleTestDetails(string peeringLocation, FailoverTestStatusForSingleTest? status, string startTimeUtc, string endTimeUtc, IReadOnlyList redundantRoutes, IReadOnlyList nonRedundantRoutes, bool? wasSimulationSuccessful, IReadOnlyList failoverConnectionDetails, IDictionary serializedAdditionalRawData) + { + PeeringLocation = peeringLocation; + Status = status; + StartTimeUtc = startTimeUtc; + EndTimeUtc = endTimeUtc; + RedundantRoutes = redundantRoutes; + NonRedundantRoutes = nonRedundantRoutes; + WasSimulationSuccessful = wasSimulationSuccessful; + FailoverConnectionDetails = failoverConnectionDetails; + _serializedAdditionalRawData = serializedAdditionalRawData; + } + + /// Peering location of the test. + public string PeeringLocation { get; } + /// The current status of the test. + public FailoverTestStatusForSingleTest? Status { get; } + /// Time when the test was started. + public string StartTimeUtc { get; } + /// Time when the test was completed. + public string EndTimeUtc { get; } + /// List of routes received from this peering as well as some other peering location. + public IReadOnlyList RedundantRoutes { get; } + /// List of al the routes that were received only from this peering location. + public IReadOnlyList NonRedundantRoutes { get; } + /// Whether the failover simulation was successful or not. + public bool? WasSimulationSuccessful { get; } + /// List of all the failover connections for this peering location. + public IReadOnlyList FailoverConnectionDetails { get; } + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ExpressRouteFailoverStopApiContent.Serialization.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ExpressRouteFailoverStopApiContent.Serialization.cs new file mode 100644 index 000000000000..b0e18f5ca9b2 --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ExpressRouteFailoverStopApiContent.Serialization.cs @@ -0,0 +1,169 @@ +// 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.Network.Models +{ + public partial class ExpressRouteFailoverStopApiContent : 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(ExpressRouteFailoverStopApiContent)} does not support writing '{format}' format."); + } + + if (Optional.IsDefined(PeeringLocation)) + { + writer.WritePropertyName("peeringLocation"u8); + writer.WriteStringValue(PeeringLocation); + } + if (Optional.IsDefined(WasSimulationSuccessful)) + { + writer.WritePropertyName("wasSimulationSuccessful"u8); + writer.WriteBooleanValue(WasSimulationSuccessful.Value); + } + if (Optional.IsCollectionDefined(Details)) + { + writer.WritePropertyName("details"u8); + writer.WriteStartArray(); + foreach (var item in Details) + { + writer.WriteObjectValue(item, options); + } + writer.WriteEndArray(); + } + if (options.Format != "W" && _serializedAdditionalRawData != null) + { + foreach (var item in _serializedAdditionalRawData) + { + writer.WritePropertyName(item.Key); +#if NET6_0_OR_GREATER + writer.WriteRawValue(item.Value); +#else + using (JsonDocument document = JsonDocument.Parse(item.Value)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } + } + } + + ExpressRouteFailoverStopApiContent 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(ExpressRouteFailoverStopApiContent)} does not support reading '{format}' format."); + } + + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeExpressRouteFailoverStopApiContent(document.RootElement, options); + } + + internal static ExpressRouteFailoverStopApiContent DeserializeExpressRouteFailoverStopApiContent(JsonElement element, ModelReaderWriterOptions options = null) + { + options ??= ModelSerializationExtensions.WireOptions; + + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + string peeringLocation = default; + bool? wasSimulationSuccessful = default; + IList details = default; + IDictionary serializedAdditionalRawData = default; + Dictionary rawDataDictionary = new Dictionary(); + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("peeringLocation"u8)) + { + peeringLocation = property.Value.GetString(); + continue; + } + if (property.NameEquals("wasSimulationSuccessful"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + wasSimulationSuccessful = property.Value.GetBoolean(); + continue; + } + if (property.NameEquals("details"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(FailoverConnectionDetails.DeserializeFailoverConnectionDetails(item, options)); + } + details = array; + continue; + } + if (options.Format != "W") + { + rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + } + } + serializedAdditionalRawData = rawDataDictionary; + return new ExpressRouteFailoverStopApiContent(peeringLocation, wasSimulationSuccessful, details ?? new ChangeTrackingList(), serializedAdditionalRawData); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + return ModelReaderWriter.Write(this, options); + default: + throw new FormatException($"The model {nameof(ExpressRouteFailoverStopApiContent)} does not support writing '{options.Format}' format."); + } + } + + ExpressRouteFailoverStopApiContent 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 DeserializeExpressRouteFailoverStopApiContent(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(ExpressRouteFailoverStopApiContent)} does not support reading '{options.Format}' format."); + } + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ExpressRouteFailoverStopApiContent.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ExpressRouteFailoverStopApiContent.cs new file mode 100644 index 000000000000..7cb7f3f663a2 --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ExpressRouteFailoverStopApiContent.cs @@ -0,0 +1,74 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; + +namespace Azure.ResourceManager.Network.Models +{ + /// Start packet capture parameters on virtual network gateway. + public partial class ExpressRouteFailoverStopApiContent + { + /// + /// 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 ExpressRouteFailoverStopApiContent() + { + Details = new ChangeTrackingList(); + } + + /// Initializes a new instance of . + /// Peering location of the test. + /// Whether the failover simulation was successful or not. + /// List of all the failover connections for this peering location. + /// Keeps track of any properties unknown to the library. + internal ExpressRouteFailoverStopApiContent(string peeringLocation, bool? wasSimulationSuccessful, IList details, IDictionary serializedAdditionalRawData) + { + PeeringLocation = peeringLocation; + WasSimulationSuccessful = wasSimulationSuccessful; + Details = details; + _serializedAdditionalRawData = serializedAdditionalRawData; + } + + /// Peering location of the test. + public string PeeringLocation { get; set; } + /// Whether the failover simulation was successful or not. + public bool? WasSimulationSuccessful { get; set; } + /// List of all the failover connections for this peering location. + public IList Details { get; } + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ExpressRouteFailoverTestDetails.Serialization.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ExpressRouteFailoverTestDetails.Serialization.cs new file mode 100644 index 000000000000..d927fb8ba22c --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ExpressRouteFailoverTestDetails.Serialization.cs @@ -0,0 +1,289 @@ +// 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.Network.Models +{ + public partial class ExpressRouteFailoverTestDetails : 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(ExpressRouteFailoverTestDetails)} does not support writing '{format}' format."); + } + + if (Optional.IsDefined(PeeringLocation)) + { + writer.WritePropertyName("peeringLocation"u8); + writer.WriteStringValue(PeeringLocation); + } + if (Optional.IsCollectionDefined(Circuits)) + { + writer.WritePropertyName("circuits"u8); + writer.WriteStartArray(); + foreach (var item in Circuits) + { + writer.WriteObjectValue(item, options); + } + writer.WriteEndArray(); + } + if (Optional.IsDefined(Status)) + { + writer.WritePropertyName("status"u8); + writer.WriteStringValue(Status.Value.ToString()); + } + if (Optional.IsDefined(StartOn)) + { + writer.WritePropertyName("startTime"u8); + writer.WriteStringValue(StartOn.Value, "O"); + } + if (Optional.IsDefined(EndOn)) + { + writer.WritePropertyName("endTime"u8); + writer.WriteStringValue(EndOn.Value, "O"); + } + if (Optional.IsCollectionDefined(Connections)) + { + writer.WritePropertyName("connections"u8); + writer.WriteStartArray(); + foreach (var item in Connections) + { + writer.WriteObjectValue(item, options); + } + writer.WriteEndArray(); + } + if (Optional.IsDefined(TestGuid)) + { + writer.WritePropertyName("testGuid"u8); + writer.WriteStringValue(TestGuid.Value); + } + if (Optional.IsDefined(TestType)) + { + writer.WritePropertyName("testType"u8); + writer.WriteStringValue(TestType.Value.ToString()); + } + if (Optional.IsCollectionDefined(Issues)) + { + writer.WritePropertyName("issues"u8); + writer.WriteStartArray(); + foreach (var item in Issues) + { + writer.WriteStringValue(item); + } + writer.WriteEndArray(); + } + if (options.Format != "W" && _serializedAdditionalRawData != null) + { + foreach (var item in _serializedAdditionalRawData) + { + writer.WritePropertyName(item.Key); +#if NET6_0_OR_GREATER + writer.WriteRawValue(item.Value); +#else + using (JsonDocument document = JsonDocument.Parse(item.Value)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } + } + } + + ExpressRouteFailoverTestDetails 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(ExpressRouteFailoverTestDetails)} does not support reading '{format}' format."); + } + + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeExpressRouteFailoverTestDetails(document.RootElement, options); + } + + internal static ExpressRouteFailoverTestDetails DeserializeExpressRouteFailoverTestDetails(JsonElement element, ModelReaderWriterOptions options = null) + { + options ??= ModelSerializationExtensions.WireOptions; + + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + string peeringLocation = default; + IReadOnlyList circuits = default; + FailoverTestStatus? status = default; + DateTimeOffset? startTime = default; + DateTimeOffset? endTime = default; + IReadOnlyList connections = default; + Guid? testGuid = default; + FailoverTestType? testType = default; + IReadOnlyList issues = default; + IDictionary serializedAdditionalRawData = default; + Dictionary rawDataDictionary = new Dictionary(); + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("peeringLocation"u8)) + { + peeringLocation = property.Value.GetString(); + continue; + } + if (property.NameEquals("circuits"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(ExpressRouteFailoverCircuitResourceDetails.DeserializeExpressRouteFailoverCircuitResourceDetails(item, options)); + } + circuits = array; + continue; + } + if (property.NameEquals("status"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + status = new FailoverTestStatus(property.Value.GetString()); + continue; + } + if (property.NameEquals("startTime"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + startTime = property.Value.GetDateTimeOffset("O"); + continue; + } + if (property.NameEquals("endTime"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + endTime = property.Value.GetDateTimeOffset("O"); + continue; + } + if (property.NameEquals("connections"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(ExpressRouteFailoverConnectionResourceDetails.DeserializeExpressRouteFailoverConnectionResourceDetails(item, options)); + } + connections = array; + continue; + } + if (property.NameEquals("testGuid"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + testGuid = property.Value.GetGuid(); + continue; + } + if (property.NameEquals("testType"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + testType = new FailoverTestType(property.Value.GetString()); + continue; + } + if (property.NameEquals("issues"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(item.GetString()); + } + issues = array; + continue; + } + if (options.Format != "W") + { + rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + } + } + serializedAdditionalRawData = rawDataDictionary; + return new ExpressRouteFailoverTestDetails( + peeringLocation, + circuits ?? new ChangeTrackingList(), + status, + startTime, + endTime, + connections ?? new ChangeTrackingList(), + testGuid, + testType, + issues ?? new ChangeTrackingList(), + serializedAdditionalRawData); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + return ModelReaderWriter.Write(this, options); + default: + throw new FormatException($"The model {nameof(ExpressRouteFailoverTestDetails)} does not support writing '{options.Format}' format."); + } + } + + ExpressRouteFailoverTestDetails 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 DeserializeExpressRouteFailoverTestDetails(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(ExpressRouteFailoverTestDetails)} does not support reading '{options.Format}' format."); + } + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ExpressRouteFailoverTestDetails.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ExpressRouteFailoverTestDetails.cs new file mode 100644 index 000000000000..39482c919e58 --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ExpressRouteFailoverTestDetails.cs @@ -0,0 +1,100 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; + +namespace Azure.ResourceManager.Network.Models +{ + /// ExpressRoute failover test details. + public partial class ExpressRouteFailoverTestDetails + { + /// + /// Keeps track of any properties unknown to the library. + /// + /// To assign an object to the value of this property use . + /// + /// + /// To assign an already formatted json string to this property use . + /// + /// + /// Examples: + /// + /// + /// BinaryData.FromObjectAsJson("foo") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromString("\"foo\"") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromObjectAsJson(new { key = "value" }) + /// Creates a payload of { "key": "value" }. + /// + /// + /// BinaryData.FromString("{\"key\": \"value\"}") + /// Creates a payload of { "key": "value" }. + /// + /// + /// + /// + private IDictionary _serializedAdditionalRawData; + + /// Initializes a new instance of . + internal ExpressRouteFailoverTestDetails() + { + Circuits = new ChangeTrackingList(); + Connections = new ChangeTrackingList(); + Issues = new ChangeTrackingList(); + } + + /// Initializes a new instance of . + /// Peering location of the test. + /// All circuits in the peering location. + /// The current status of the test. + /// Time when the test was started. + /// Time when the test was completed. + /// All connections to the circuits in the peering location. + /// The unique GUID associated with the test. + /// The type of failover test. + /// A list of all issues with the test. + /// Keeps track of any properties unknown to the library. + internal ExpressRouteFailoverTestDetails(string peeringLocation, IReadOnlyList circuits, FailoverTestStatus? status, DateTimeOffset? startOn, DateTimeOffset? endOn, IReadOnlyList connections, Guid? testGuid, FailoverTestType? testType, IReadOnlyList issues, IDictionary serializedAdditionalRawData) + { + PeeringLocation = peeringLocation; + Circuits = circuits; + Status = status; + StartOn = startOn; + EndOn = endOn; + Connections = connections; + TestGuid = testGuid; + TestType = testType; + Issues = issues; + _serializedAdditionalRawData = serializedAdditionalRawData; + } + + /// Peering location of the test. + public string PeeringLocation { get; } + /// All circuits in the peering location. + public IReadOnlyList Circuits { get; } + /// The current status of the test. + public FailoverTestStatus? Status { get; } + /// Time when the test was started. + public DateTimeOffset? StartOn { get; } + /// Time when the test was completed. + public DateTimeOffset? EndOn { get; } + /// All connections to the circuits in the peering location. + public IReadOnlyList Connections { get; } + /// The unique GUID associated with the test. + public Guid? TestGuid { get; } + /// The type of failover test. + public FailoverTestType? TestType { get; } + /// A list of all issues with the test. + public IReadOnlyList Issues { get; } + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/FailoverConnectionDetails.Serialization.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/FailoverConnectionDetails.Serialization.cs new file mode 100644 index 000000000000..845e33c86fbe --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/FailoverConnectionDetails.Serialization.cs @@ -0,0 +1,155 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.Network.Models +{ + public partial class FailoverConnectionDetails : 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(FailoverConnectionDetails)} does not support writing '{format}' format."); + } + + if (Optional.IsDefined(FailoverConnectionName)) + { + writer.WritePropertyName("failoverConnectionName"u8); + writer.WriteStringValue(FailoverConnectionName); + } + if (Optional.IsDefined(FailoverLocation)) + { + writer.WritePropertyName("failoverLocation"u8); + writer.WriteStringValue(FailoverLocation); + } + if (Optional.IsDefined(IsVerified)) + { + writer.WritePropertyName("isVerified"u8); + writer.WriteBooleanValue(IsVerified.Value); + } + if (options.Format != "W" && _serializedAdditionalRawData != null) + { + foreach (var item in _serializedAdditionalRawData) + { + writer.WritePropertyName(item.Key); +#if NET6_0_OR_GREATER + writer.WriteRawValue(item.Value); +#else + using (JsonDocument document = JsonDocument.Parse(item.Value)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } + } + } + + FailoverConnectionDetails 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(FailoverConnectionDetails)} does not support reading '{format}' format."); + } + + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeFailoverConnectionDetails(document.RootElement, options); + } + + internal static FailoverConnectionDetails DeserializeFailoverConnectionDetails(JsonElement element, ModelReaderWriterOptions options = null) + { + options ??= ModelSerializationExtensions.WireOptions; + + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + string failoverConnectionName = default; + string failoverLocation = default; + bool? isVerified = default; + IDictionary serializedAdditionalRawData = default; + Dictionary rawDataDictionary = new Dictionary(); + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("failoverConnectionName"u8)) + { + failoverConnectionName = property.Value.GetString(); + continue; + } + if (property.NameEquals("failoverLocation"u8)) + { + failoverLocation = property.Value.GetString(); + continue; + } + if (property.NameEquals("isVerified"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + isVerified = property.Value.GetBoolean(); + continue; + } + if (options.Format != "W") + { + rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + } + } + serializedAdditionalRawData = rawDataDictionary; + return new FailoverConnectionDetails(failoverConnectionName, failoverLocation, isVerified, 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(FailoverConnectionDetails)} does not support writing '{options.Format}' format."); + } + } + + FailoverConnectionDetails 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 DeserializeFailoverConnectionDetails(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(FailoverConnectionDetails)} does not support reading '{options.Format}' format."); + } + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/FailoverConnectionDetails.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/FailoverConnectionDetails.cs new file mode 100644 index 000000000000..09496b6c77da --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/FailoverConnectionDetails.cs @@ -0,0 +1,73 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; + +namespace Azure.ResourceManager.Network.Models +{ + /// The FailoverConnectionDetails. + public partial class FailoverConnectionDetails + { + /// + /// 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 FailoverConnectionDetails() + { + } + + /// Initializes a new instance of . + /// Name of the failover connection. + /// Location of the failover connection. + /// Whether the customer was able to establish connectivity through this failover connection or not. + /// Keeps track of any properties unknown to the library. + internal FailoverConnectionDetails(string failoverConnectionName, string failoverLocation, bool? isVerified, IDictionary serializedAdditionalRawData) + { + FailoverConnectionName = failoverConnectionName; + FailoverLocation = failoverLocation; + IsVerified = isVerified; + _serializedAdditionalRawData = serializedAdditionalRawData; + } + + /// Name of the failover connection. + public string FailoverConnectionName { get; set; } + /// Location of the failover connection. + public string FailoverLocation { get; set; } + /// Whether the customer was able to establish connectivity through this failover connection or not. + public bool? IsVerified { get; set; } + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/FailoverConnectionStatus.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/FailoverConnectionStatus.cs new file mode 100644 index 000000000000..b2737a3e1823 --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/FailoverConnectionStatus.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.Network.Models +{ + /// The current status of the connection. + public readonly partial struct FailoverConnectionStatus : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public FailoverConnectionStatus(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string ConnectedValue = "Connected"; + private const string DisconnectedValue = "Disconnected"; + + /// Connected. + public static FailoverConnectionStatus Connected { get; } = new FailoverConnectionStatus(ConnectedValue); + /// Disconnected. + public static FailoverConnectionStatus Disconnected { get; } = new FailoverConnectionStatus(DisconnectedValue); + /// Determines if two values are the same. + public static bool operator ==(FailoverConnectionStatus left, FailoverConnectionStatus right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(FailoverConnectionStatus left, FailoverConnectionStatus right) => !left.Equals(right); + /// Converts a to a . + public static implicit operator FailoverConnectionStatus(string value) => new FailoverConnectionStatus(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is FailoverConnectionStatus other && Equals(other); + /// + public bool Equals(FailoverConnectionStatus 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/network/Azure.ResourceManager.Network/src/Generated/Models/FailoverTestStatus.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/FailoverTestStatus.cs new file mode 100644 index 000000000000..58627d2026a6 --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/FailoverTestStatus.cs @@ -0,0 +1,72 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.Network.Models +{ + /// The current status of the test. + public readonly partial struct FailoverTestStatus : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public FailoverTestStatus(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string NotStartedValue = "NotStarted"; + private const string StartingValue = "Starting"; + private const string RunningValue = "Running"; + private const string StartFailedValue = "StartFailed"; + private const string StoppingValue = "Stopping"; + private const string CompletedValue = "Completed"; + private const string StopFailedValue = "StopFailed"; + private const string InvalidValue = "Invalid"; + private const string ExpiredValue = "Expired"; + + /// NotStarted. + public static FailoverTestStatus NotStarted { get; } = new FailoverTestStatus(NotStartedValue); + /// Starting. + public static FailoverTestStatus Starting { get; } = new FailoverTestStatus(StartingValue); + /// Running. + public static FailoverTestStatus Running { get; } = new FailoverTestStatus(RunningValue); + /// StartFailed. + public static FailoverTestStatus StartFailed { get; } = new FailoverTestStatus(StartFailedValue); + /// Stopping. + public static FailoverTestStatus Stopping { get; } = new FailoverTestStatus(StoppingValue); + /// Completed. + public static FailoverTestStatus Completed { get; } = new FailoverTestStatus(CompletedValue); + /// StopFailed. + public static FailoverTestStatus StopFailed { get; } = new FailoverTestStatus(StopFailedValue); + /// Invalid. + public static FailoverTestStatus Invalid { get; } = new FailoverTestStatus(InvalidValue); + /// Expired. + public static FailoverTestStatus Expired { get; } = new FailoverTestStatus(ExpiredValue); + /// Determines if two values are the same. + public static bool operator ==(FailoverTestStatus left, FailoverTestStatus right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(FailoverTestStatus left, FailoverTestStatus right) => !left.Equals(right); + /// Converts a to a . + public static implicit operator FailoverTestStatus(string value) => new FailoverTestStatus(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is FailoverTestStatus other && Equals(other); + /// + public bool Equals(FailoverTestStatus 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/network/Azure.ResourceManager.Network/src/Generated/Models/FailoverTestStatusForSingleTest.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/FailoverTestStatusForSingleTest.cs new file mode 100644 index 000000000000..1015695dd6de --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/FailoverTestStatusForSingleTest.cs @@ -0,0 +1,72 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.Network.Models +{ + /// The current status of the test. + public readonly partial struct FailoverTestStatusForSingleTest : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public FailoverTestStatusForSingleTest(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string NotStartedValue = "NotStarted"; + private const string StartingValue = "Starting"; + private const string RunningValue = "Running"; + private const string StartFailedValue = "StartFailed"; + private const string StoppingValue = "Stopping"; + private const string CompletedValue = "Completed"; + private const string StopFailedValue = "StopFailed"; + private const string InvalidValue = "Invalid"; + private const string ExpiredValue = "Expired"; + + /// NotStarted. + public static FailoverTestStatusForSingleTest NotStarted { get; } = new FailoverTestStatusForSingleTest(NotStartedValue); + /// Starting. + public static FailoverTestStatusForSingleTest Starting { get; } = new FailoverTestStatusForSingleTest(StartingValue); + /// Running. + public static FailoverTestStatusForSingleTest Running { get; } = new FailoverTestStatusForSingleTest(RunningValue); + /// StartFailed. + public static FailoverTestStatusForSingleTest StartFailed { get; } = new FailoverTestStatusForSingleTest(StartFailedValue); + /// Stopping. + public static FailoverTestStatusForSingleTest Stopping { get; } = new FailoverTestStatusForSingleTest(StoppingValue); + /// Completed. + public static FailoverTestStatusForSingleTest Completed { get; } = new FailoverTestStatusForSingleTest(CompletedValue); + /// StopFailed. + public static FailoverTestStatusForSingleTest StopFailed { get; } = new FailoverTestStatusForSingleTest(StopFailedValue); + /// Invalid. + public static FailoverTestStatusForSingleTest Invalid { get; } = new FailoverTestStatusForSingleTest(InvalidValue); + /// Expired. + public static FailoverTestStatusForSingleTest Expired { get; } = new FailoverTestStatusForSingleTest(ExpiredValue); + /// Determines if two values are the same. + public static bool operator ==(FailoverTestStatusForSingleTest left, FailoverTestStatusForSingleTest right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(FailoverTestStatusForSingleTest left, FailoverTestStatusForSingleTest right) => !left.Equals(right); + /// Converts a to a . + public static implicit operator FailoverTestStatusForSingleTest(string value) => new FailoverTestStatusForSingleTest(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is FailoverTestStatusForSingleTest other && Equals(other); + /// + public bool Equals(FailoverTestStatusForSingleTest 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/network/Azure.ResourceManager.Network/src/Generated/Models/FailoverTestType.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/FailoverTestType.cs new file mode 100644 index 000000000000..638086dad87f --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/FailoverTestType.cs @@ -0,0 +1,54 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.Network.Models +{ + /// The type of failover test. + public readonly partial struct FailoverTestType : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public FailoverTestType(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string SingleSiteFailoverValue = "SingleSiteFailover"; + private const string MultiSiteFailoverValue = "MultiSiteFailover"; + private const string AllValue = "All"; + + /// SingleSiteFailover. + public static FailoverTestType SingleSiteFailover { get; } = new FailoverTestType(SingleSiteFailoverValue); + /// MultiSiteFailover. + public static FailoverTestType MultiSiteFailover { get; } = new FailoverTestType(MultiSiteFailoverValue); + /// All. + public static FailoverTestType All { get; } = new FailoverTestType(AllValue); + /// Determines if two values are the same. + public static bool operator ==(FailoverTestType left, FailoverTestType right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(FailoverTestType left, FailoverTestType right) => !left.Equals(right); + /// Converts a to a . + public static implicit operator FailoverTestType(string value) => new FailoverTestType(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is FailoverTestType other && Equals(other); + /// + public bool Equals(FailoverTestType 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/network/Azure.ResourceManager.Network/src/Generated/Models/FirewallPolicyIdpsSignatureDirection.Serialization.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/FirewallPolicyIdpsSignatureDirection.Serialization.cs index f22ad9dbb1a4..ead9ea7faccc 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/FirewallPolicyIdpsSignatureDirection.Serialization.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/FirewallPolicyIdpsSignatureDirection.Serialization.cs @@ -18,6 +18,7 @@ public static FirewallPolicyIdpsSignatureDirection ToFirewallPolicyIdpsSignature if (value == 2) return FirewallPolicyIdpsSignatureDirection.Two; if (value == 3) return FirewallPolicyIdpsSignatureDirection.Three; if (value == 4) return FirewallPolicyIdpsSignatureDirection.Four; + if (value == 5) return FirewallPolicyIdpsSignatureDirection.Five; throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown FirewallPolicyIdpsSignatureDirection value."); } } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/FirewallPolicyIdpsSignatureDirection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/FirewallPolicyIdpsSignatureDirection.cs index 623109673983..bb38bbd1a914 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/FirewallPolicyIdpsSignatureDirection.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/FirewallPolicyIdpsSignatureDirection.cs @@ -7,7 +7,7 @@ namespace Azure.ResourceManager.Network.Models { - /// Describes in which direction signature is being enforced: 0 - OutBound, 1 - InBound, 2 - Any, 3 - Internal, 4 - InternalOutbound. + /// Describes in which direction signature is being enforced: 0 - OutBound, 1 - InBound, 2 - Any, 3 - Internal, 4 - InternalOutbound, 5 - InternalInbound. public enum FirewallPolicyIdpsSignatureDirection { /// 0. @@ -19,6 +19,8 @@ public enum FirewallPolicyIdpsSignatureDirection /// 3. Three = 3, /// 4. - Four = 4 + Four = 4, + /// 5. + Five = 5 } } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/IPTraffic.Serialization.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/IPTraffic.Serialization.cs new file mode 100644 index 000000000000..16c60ee290ec --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/IPTraffic.Serialization.cs @@ -0,0 +1,214 @@ +// 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.Network.Models +{ + public partial class IPTraffic : 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(IPTraffic)} does not support writing '{format}' format."); + } + + writer.WritePropertyName("sourceIps"u8); + writer.WriteStartArray(); + foreach (var item in SourceIPs) + { + writer.WriteStringValue(item); + } + writer.WriteEndArray(); + writer.WritePropertyName("destinationIps"u8); + writer.WriteStartArray(); + foreach (var item in DestinationIPs) + { + writer.WriteStringValue(item); + } + writer.WriteEndArray(); + writer.WritePropertyName("sourcePorts"u8); + writer.WriteStartArray(); + foreach (var item in SourcePorts) + { + writer.WriteStringValue(item); + } + writer.WriteEndArray(); + writer.WritePropertyName("destinationPorts"u8); + writer.WriteStartArray(); + foreach (var item in DestinationPorts) + { + writer.WriteStringValue(item); + } + writer.WriteEndArray(); + writer.WritePropertyName("protocols"u8); + writer.WriteStartArray(); + foreach (var item in Protocols) + { + writer.WriteStringValue(item.ToString()); + } + writer.WriteEndArray(); + if (options.Format != "W" && _serializedAdditionalRawData != null) + { + foreach (var item in _serializedAdditionalRawData) + { + writer.WritePropertyName(item.Key); +#if NET6_0_OR_GREATER + writer.WriteRawValue(item.Value); +#else + using (JsonDocument document = JsonDocument.Parse(item.Value)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } + } + } + + IPTraffic 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(IPTraffic)} does not support reading '{format}' format."); + } + + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeIPTraffic(document.RootElement, options); + } + + internal static IPTraffic DeserializeIPTraffic(JsonElement element, ModelReaderWriterOptions options = null) + { + options ??= ModelSerializationExtensions.WireOptions; + + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + IList sourceIPs = default; + IList destinationIPs = default; + IList sourcePorts = default; + IList destinationPorts = default; + IList protocols = default; + IDictionary serializedAdditionalRawData = default; + Dictionary rawDataDictionary = new Dictionary(); + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("sourceIps"u8)) + { + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(item.GetString()); + } + sourceIPs = array; + continue; + } + if (property.NameEquals("destinationIps"u8)) + { + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(item.GetString()); + } + destinationIPs = array; + continue; + } + if (property.NameEquals("sourcePorts"u8)) + { + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(item.GetString()); + } + sourcePorts = array; + continue; + } + if (property.NameEquals("destinationPorts"u8)) + { + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(item.GetString()); + } + destinationPorts = array; + continue; + } + if (property.NameEquals("protocols"u8)) + { + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(new NetworkProtocol(item.GetString())); + } + protocols = array; + continue; + } + if (options.Format != "W") + { + rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + } + } + serializedAdditionalRawData = rawDataDictionary; + return new IPTraffic( + sourceIPs, + destinationIPs, + sourcePorts, + destinationPorts, + protocols, + 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(IPTraffic)} does not support writing '{options.Format}' format."); + } + } + + IPTraffic 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 DeserializeIPTraffic(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(IPTraffic)} does not support reading '{options.Format}' format."); + } + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/IPTraffic.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/IPTraffic.cs new file mode 100644 index 000000000000..972513f7b59b --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/IPTraffic.cs @@ -0,0 +1,104 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.ResourceManager.Network.Models +{ + /// IP traffic information. + public partial class IPTraffic + { + /// + /// 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 . + /// List of source IP addresses of the traffic.. + /// List of destination IP addresses of the traffic.. + /// The source ports of the traffic. + /// The destination ports of the traffic. + /// + /// , , , or is null. + public IPTraffic(IEnumerable sourceIPs, IEnumerable destinationIPs, IEnumerable sourcePorts, IEnumerable destinationPorts, IEnumerable protocols) + { + Argument.AssertNotNull(sourceIPs, nameof(sourceIPs)); + Argument.AssertNotNull(destinationIPs, nameof(destinationIPs)); + Argument.AssertNotNull(sourcePorts, nameof(sourcePorts)); + Argument.AssertNotNull(destinationPorts, nameof(destinationPorts)); + Argument.AssertNotNull(protocols, nameof(protocols)); + + SourceIPs = sourceIPs.ToList(); + DestinationIPs = destinationIPs.ToList(); + SourcePorts = sourcePorts.ToList(); + DestinationPorts = destinationPorts.ToList(); + Protocols = protocols.ToList(); + } + + /// Initializes a new instance of . + /// List of source IP addresses of the traffic.. + /// List of destination IP addresses of the traffic.. + /// The source ports of the traffic. + /// The destination ports of the traffic. + /// + /// Keeps track of any properties unknown to the library. + internal IPTraffic(IList sourceIPs, IList destinationIPs, IList sourcePorts, IList destinationPorts, IList protocols, IDictionary serializedAdditionalRawData) + { + SourceIPs = sourceIPs; + DestinationIPs = destinationIPs; + SourcePorts = sourcePorts; + DestinationPorts = destinationPorts; + Protocols = protocols; + _serializedAdditionalRawData = serializedAdditionalRawData; + } + + /// Initializes a new instance of for deserialization. + internal IPTraffic() + { + } + + /// List of source IP addresses of the traffic.. + public IList SourceIPs { get; } + /// List of destination IP addresses of the traffic.. + public IList DestinationIPs { get; } + /// The source ports of the traffic. + public IList SourcePorts { get; } + /// The destination ports of the traffic. + public IList DestinationPorts { get; } + /// Gets the protocols. + public IList Protocols { get; } + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/IPType.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/IPType.cs new file mode 100644 index 000000000000..60cd456545b1 --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/IPType.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.Network.Models +{ + /// Enumeration to indicate the IP type. + public readonly partial struct IPType : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public IPType(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string IPv4Value = "IPv4"; + private const string IPv6Value = "IPv6"; + + /// IPv4. + public static IPType IPv4 { get; } = new IPType(IPv4Value); + /// IPv6. + public static IPType IPv6 { get; } = new IPType(IPv6Value); + /// Determines if two values are the same. + public static bool operator ==(IPType left, IPType right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(IPType left, IPType right) => !left.Equals(right); + /// Converts a to a . + public static implicit operator IPType(string value) => new IPType(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is IPType other && Equals(other); + /// + public bool Equals(IPType 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/network/Azure.ResourceManager.Network/src/Generated/Models/IdpsSignatureResult.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/IdpsSignatureResult.cs index 39f43239f17d..1ed6e025a4d8 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/IdpsSignatureResult.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/IdpsSignatureResult.cs @@ -56,7 +56,7 @@ internal IdpsSignatureResult() /// The ID of the signature. /// The current mode enforced, 0 - Disabled, 1 - Alert, 2 -Deny. /// Describes the severity of signature: 1 - High, 2 - Medium, 3 - Low. - /// Describes in which direction signature is being enforced: 0 - OutBound, 1 - InBound, 2 - Any, 3 - Internal, 4 - InternalOutbound. + /// Describes in which direction signature is being enforced: 0 - OutBound, 1 - InBound, 2 - Any, 3 - Internal, 4 - InternalOutbound, 5 - InternalInbound. /// Describes the groups the signature belongs to. /// Describes what is the signature enforces. /// Describes the protocol the signatures is being enforced in. @@ -87,7 +87,7 @@ internal IdpsSignatureResult(int? signatureId, FirewallPolicyIdpsSignatureMode? public FirewallPolicyIdpsSignatureMode? Mode { get; } /// Describes the severity of signature: 1 - High, 2 - Medium, 3 - Low. public FirewallPolicyIdpsSignatureSeverity? Severity { get; } - /// Describes in which direction signature is being enforced: 0 - OutBound, 1 - InBound, 2 - Any, 3 - Internal, 4 - InternalOutbound. + /// Describes in which direction signature is being enforced: 0 - OutBound, 1 - InBound, 2 - Any, 3 - Internal, 4 - InternalOutbound, 5 - InternalInbound. public FirewallPolicyIdpsSignatureDirection? Direction { get; } /// Describes the groups the signature belongs to. public string Group { get; } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/IntentContent.Serialization.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/IntentContent.Serialization.cs new file mode 100644 index 000000000000..6c8667527a75 --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/IntentContent.Serialization.cs @@ -0,0 +1,153 @@ +// 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.Network.Models +{ + public partial class IntentContent : 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(IntentContent)} does not support writing '{format}' format."); + } + + if (Optional.IsDefined(Description)) + { + writer.WritePropertyName("description"u8); + writer.WriteStringValue(Description); + } + writer.WritePropertyName("sourceResourceId"u8); + writer.WriteStringValue(SourceResourceId); + writer.WritePropertyName("destinationResourceId"u8); + writer.WriteStringValue(DestinationResourceId); + writer.WritePropertyName("ipTraffic"u8); + writer.WriteObjectValue(IPTraffic, options); + 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 + } + } + } + + IntentContent 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(IntentContent)} does not support reading '{format}' format."); + } + + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeIntentContent(document.RootElement, options); + } + + internal static IntentContent DeserializeIntentContent(JsonElement element, ModelReaderWriterOptions options = null) + { + options ??= ModelSerializationExtensions.WireOptions; + + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + string description = default; + ResourceIdentifier sourceResourceId = default; + ResourceIdentifier destinationResourceId = default; + IPTraffic ipTraffic = default; + IDictionary serializedAdditionalRawData = default; + Dictionary rawDataDictionary = new Dictionary(); + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("description"u8)) + { + description = property.Value.GetString(); + continue; + } + if (property.NameEquals("sourceResourceId"u8)) + { + sourceResourceId = new ResourceIdentifier(property.Value.GetString()); + continue; + } + if (property.NameEquals("destinationResourceId"u8)) + { + destinationResourceId = new ResourceIdentifier(property.Value.GetString()); + continue; + } + if (property.NameEquals("ipTraffic"u8)) + { + ipTraffic = IPTraffic.DeserializeIPTraffic(property.Value, options); + continue; + } + if (options.Format != "W") + { + rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + } + } + serializedAdditionalRawData = rawDataDictionary; + return new IntentContent(description, sourceResourceId, destinationResourceId, ipTraffic, 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(IntentContent)} does not support writing '{options.Format}' format."); + } + } + + IntentContent 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 DeserializeIntentContent(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(IntentContent)} does not support reading '{options.Format}' format."); + } + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/IntentContent.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/IntentContent.cs new file mode 100644 index 000000000000..c29ec8cdc4ed --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/IntentContent.cs @@ -0,0 +1,94 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using Azure.Core; + +namespace Azure.ResourceManager.Network.Models +{ + /// Intent information. + public partial class IntentContent + { + /// + /// 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 . + /// Source resource id of the intent. + /// Destination resource id of the intent. + /// IP traffic information. + /// , or is null. + internal IntentContent(ResourceIdentifier sourceResourceId, ResourceIdentifier destinationResourceId, IPTraffic ipTraffic) + { + Argument.AssertNotNull(sourceResourceId, nameof(sourceResourceId)); + Argument.AssertNotNull(destinationResourceId, nameof(destinationResourceId)); + Argument.AssertNotNull(ipTraffic, nameof(ipTraffic)); + + SourceResourceId = sourceResourceId; + DestinationResourceId = destinationResourceId; + IPTraffic = ipTraffic; + } + + /// Initializes a new instance of . + /// + /// Source resource id of the intent. + /// Destination resource id of the intent. + /// IP traffic information. + /// Keeps track of any properties unknown to the library. + internal IntentContent(string description, ResourceIdentifier sourceResourceId, ResourceIdentifier destinationResourceId, IPTraffic ipTraffic, IDictionary serializedAdditionalRawData) + { + Description = description; + SourceResourceId = sourceResourceId; + DestinationResourceId = destinationResourceId; + IPTraffic = ipTraffic; + _serializedAdditionalRawData = serializedAdditionalRawData; + } + + /// Initializes a new instance of for deserialization. + internal IntentContent() + { + } + + /// Gets the description. + public string Description { get; } + /// Source resource id of the intent. + public ResourceIdentifier SourceResourceId { get; } + /// Destination resource id of the intent. + public ResourceIdentifier DestinationResourceId { get; } + /// IP traffic information. + public IPTraffic IPTraffic { get; } + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/IpamPoolList.Serialization.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/IpamPoolList.Serialization.cs new file mode 100644 index 000000000000..2cf681306a27 --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/IpamPoolList.Serialization.cs @@ -0,0 +1,154 @@ +// 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.Network.Models +{ + internal partial class IpamPoolList : 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(IpamPoolList)} does not support writing '{format}' format."); + } + + if (Optional.IsCollectionDefined(Value)) + { + writer.WritePropertyName("value"u8); + writer.WriteStartArray(); + foreach (var item in Value) + { + writer.WriteObjectValue(item, options); + } + writer.WriteEndArray(); + } + if (Optional.IsDefined(NextLink)) + { + writer.WritePropertyName("nextLink"u8); + writer.WriteStringValue(NextLink); + } + if (options.Format != "W" && _serializedAdditionalRawData != null) + { + foreach (var item in _serializedAdditionalRawData) + { + writer.WritePropertyName(item.Key); +#if NET6_0_OR_GREATER + writer.WriteRawValue(item.Value); +#else + using (JsonDocument document = JsonDocument.Parse(item.Value)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } + } + } + + IpamPoolList 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(IpamPoolList)} does not support reading '{format}' format."); + } + + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeIpamPoolList(document.RootElement, options); + } + + internal static IpamPoolList DeserializeIpamPoolList(JsonElement element, ModelReaderWriterOptions options = null) + { + options ??= ModelSerializationExtensions.WireOptions; + + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + IReadOnlyList value = default; + string nextLink = default; + IDictionary serializedAdditionalRawData = default; + Dictionary rawDataDictionary = new Dictionary(); + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("value"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(IpamPoolData.DeserializeIpamPoolData(item, options)); + } + value = array; + continue; + } + if (property.NameEquals("nextLink"u8)) + { + nextLink = property.Value.GetString(); + continue; + } + if (options.Format != "W") + { + rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + } + } + serializedAdditionalRawData = rawDataDictionary; + return new IpamPoolList(value ?? new ChangeTrackingList(), nextLink, serializedAdditionalRawData); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + return ModelReaderWriter.Write(this, options); + default: + throw new FormatException($"The model {nameof(IpamPoolList)} does not support writing '{options.Format}' format."); + } + } + + IpamPoolList 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 DeserializeIpamPoolList(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(IpamPoolList)} does not support reading '{options.Format}' format."); + } + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/IpamPoolList.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/IpamPoolList.cs new file mode 100644 index 000000000000..fef623b3df8c --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/IpamPoolList.cs @@ -0,0 +1,70 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; + +namespace Azure.ResourceManager.Network.Models +{ + /// List of IpamPool. + internal partial class IpamPoolList + { + /// + /// Keeps track of any properties unknown to the library. + /// + /// To assign an object to the value of this property use . + /// + /// + /// To assign an already formatted json string to this property use . + /// + /// + /// Examples: + /// + /// + /// BinaryData.FromObjectAsJson("foo") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromString("\"foo\"") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromObjectAsJson(new { key = "value" }) + /// Creates a payload of { "key": "value" }. + /// + /// + /// BinaryData.FromString("{\"key\": \"value\"}") + /// Creates a payload of { "key": "value" }. + /// + /// + /// + /// + private IDictionary _serializedAdditionalRawData; + + /// Initializes a new instance of . + internal IpamPoolList() + { + Value = new ChangeTrackingList(); + } + + /// Initializes a new instance of . + /// + /// The link used to get the next page of operations. + /// Keeps track of any properties unknown to the library. + internal IpamPoolList(IReadOnlyList value, string nextLink, IDictionary serializedAdditionalRawData) + { + Value = value; + NextLink = nextLink; + _serializedAdditionalRawData = serializedAdditionalRawData; + } + + /// Gets the value. + public IReadOnlyList Value { get; } + /// The link used to get the next page of operations. + public string NextLink { get; } + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/IpamPoolPatch.Serialization.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/IpamPoolPatch.Serialization.cs new file mode 100644 index 000000000000..6d04dc9442b1 --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/IpamPoolPatch.Serialization.cs @@ -0,0 +1,159 @@ +// 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.Network.Models +{ + public partial class IpamPoolPatch : 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(IpamPoolPatch)} does not support writing '{format}' format."); + } + + if (Optional.IsCollectionDefined(Tags)) + { + writer.WritePropertyName("tags"u8); + writer.WriteStartObject(); + foreach (var item in Tags) + { + writer.WritePropertyName(item.Key); + writer.WriteStringValue(item.Value); + } + writer.WriteEndObject(); + } + if (Optional.IsDefined(Properties)) + { + writer.WritePropertyName("properties"u8); + writer.WriteObjectValue(Properties, options); + } + 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 + } + } + } + + IpamPoolPatch 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(IpamPoolPatch)} does not support reading '{format}' format."); + } + + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeIpamPoolPatch(document.RootElement, options); + } + + internal static IpamPoolPatch DeserializeIpamPoolPatch(JsonElement element, ModelReaderWriterOptions options = null) + { + options ??= ModelSerializationExtensions.WireOptions; + + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + IDictionary tags = default; + IpamPoolUpdateProperties properties = default; + IDictionary serializedAdditionalRawData = default; + Dictionary rawDataDictionary = new Dictionary(); + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("tags"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + Dictionary dictionary = new Dictionary(); + foreach (var property0 in property.Value.EnumerateObject()) + { + dictionary.Add(property0.Name, property0.Value.GetString()); + } + tags = dictionary; + continue; + } + if (property.NameEquals("properties"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + properties = IpamPoolUpdateProperties.DeserializeIpamPoolUpdateProperties(property.Value, options); + continue; + } + if (options.Format != "W") + { + rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + } + } + serializedAdditionalRawData = rawDataDictionary; + return new IpamPoolPatch(tags ?? new ChangeTrackingDictionary(), properties, serializedAdditionalRawData); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + return ModelReaderWriter.Write(this, options); + default: + throw new FormatException($"The model {nameof(IpamPoolPatch)} does not support writing '{options.Format}' format."); + } + } + + IpamPoolPatch 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 DeserializeIpamPoolPatch(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(IpamPoolPatch)} does not support reading '{options.Format}' format."); + } + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/IpamPoolPatch.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/IpamPoolPatch.cs new file mode 100644 index 000000000000..1a59ec63e99b --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/IpamPoolPatch.cs @@ -0,0 +1,70 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; + +namespace Azure.ResourceManager.Network.Models +{ + /// Represents the IpamPool update API request interface. + public partial class IpamPoolPatch + { + /// + /// 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 IpamPoolPatch() + { + Tags = new ChangeTrackingDictionary(); + } + + /// Initializes a new instance of . + /// Dictionary of <string>. + /// Represents the IpamPool update properties. + /// Keeps track of any properties unknown to the library. + internal IpamPoolPatch(IDictionary tags, IpamPoolUpdateProperties properties, IDictionary serializedAdditionalRawData) + { + Tags = tags; + Properties = properties; + _serializedAdditionalRawData = serializedAdditionalRawData; + } + + /// Dictionary of <string>. + public IDictionary Tags { get; } + /// Represents the IpamPool update properties. + public IpamPoolUpdateProperties Properties { get; set; } + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/IpamPoolPrefixAllocation.Serialization.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/IpamPoolPrefixAllocation.Serialization.cs new file mode 100644 index 000000000000..a5ef8d528bf3 --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/IpamPoolPrefixAllocation.Serialization.cs @@ -0,0 +1,184 @@ +// 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.Network.Models +{ + public partial class IpamPoolPrefixAllocation : 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(IpamPoolPrefixAllocation)} does not support writing '{format}' format."); + } + + if (Optional.IsDefined(NumberOfIPAddresses)) + { + writer.WritePropertyName("numberOfIpAddresses"u8); + writer.WriteStringValue(NumberOfIPAddresses); + } + if (options.Format != "W" && Optional.IsCollectionDefined(AllocatedAddressPrefixes)) + { + writer.WritePropertyName("allocatedAddressPrefixes"u8); + writer.WriteStartArray(); + foreach (var item in AllocatedAddressPrefixes) + { + writer.WriteStringValue(item); + } + writer.WriteEndArray(); + } + writer.WritePropertyName("pool"u8); + writer.WriteStartObject(); + if (Optional.IsDefined(Id)) + { + writer.WritePropertyName("id"u8); + writer.WriteStringValue(Id); + } + writer.WriteEndObject(); + if (options.Format != "W" && _serializedAdditionalRawData != null) + { + foreach (var item in _serializedAdditionalRawData) + { + writer.WritePropertyName(item.Key); +#if NET6_0_OR_GREATER + writer.WriteRawValue(item.Value); +#else + using (JsonDocument document = JsonDocument.Parse(item.Value)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } + } + } + + IpamPoolPrefixAllocation 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(IpamPoolPrefixAllocation)} does not support reading '{format}' format."); + } + + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeIpamPoolPrefixAllocation(document.RootElement, options); + } + + internal static IpamPoolPrefixAllocation DeserializeIpamPoolPrefixAllocation(JsonElement element, ModelReaderWriterOptions options = null) + { + options ??= ModelSerializationExtensions.WireOptions; + + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + string numberOfIPAddresses = default; + IReadOnlyList allocatedAddressPrefixes = default; + ResourceIdentifier id = default; + IDictionary serializedAdditionalRawData = default; + Dictionary rawDataDictionary = new Dictionary(); + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("numberOfIpAddresses"u8)) + { + numberOfIPAddresses = property.Value.GetString(); + continue; + } + if (property.NameEquals("allocatedAddressPrefixes"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(item.GetString()); + } + allocatedAddressPrefixes = array; + continue; + } + if (property.NameEquals("pool"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + foreach (var property0 in property.Value.EnumerateObject()) + { + if (property0.NameEquals("id"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + id = new ResourceIdentifier(property0.Value.GetString()); + continue; + } + } + continue; + } + if (options.Format != "W") + { + rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + } + } + serializedAdditionalRawData = rawDataDictionary; + return new IpamPoolPrefixAllocation(numberOfIPAddresses, allocatedAddressPrefixes ?? new ChangeTrackingList(), id, 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(IpamPoolPrefixAllocation)} does not support writing '{options.Format}' format."); + } + } + + IpamPoolPrefixAllocation 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 DeserializeIpamPoolPrefixAllocation(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(IpamPoolPrefixAllocation)} does not support reading '{options.Format}' format."); + } + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/IpamPoolPrefixAllocation.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/IpamPoolPrefixAllocation.cs new file mode 100644 index 000000000000..c3b06079ef8f --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/IpamPoolPrefixAllocation.cs @@ -0,0 +1,75 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using Azure.Core; + +namespace Azure.ResourceManager.Network.Models +{ + /// IpamPool prefix allocation reference. + public partial class IpamPoolPrefixAllocation + { + /// + /// 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 IpamPoolPrefixAllocation() + { + AllocatedAddressPrefixes = new ChangeTrackingList(); + } + + /// Initializes a new instance of . + /// Number of IP addresses to allocate. + /// List of assigned IP address prefixes in the IpamPool of the associated resource. + /// Resource id of the associated Azure IpamPool resource. + /// Keeps track of any properties unknown to the library. + internal IpamPoolPrefixAllocation(string numberOfIPAddresses, IReadOnlyList allocatedAddressPrefixes, ResourceIdentifier id, IDictionary serializedAdditionalRawData) + { + NumberOfIPAddresses = numberOfIPAddresses; + AllocatedAddressPrefixes = allocatedAddressPrefixes; + Id = id; + _serializedAdditionalRawData = serializedAdditionalRawData; + } + + /// Number of IP addresses to allocate. + public string NumberOfIPAddresses { get; set; } + /// List of assigned IP address prefixes in the IpamPool of the associated resource. + public IReadOnlyList AllocatedAddressPrefixes { get; } + /// Resource id of the associated Azure IpamPool resource. + public ResourceIdentifier Id { get; set; } + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/IpamPoolProperties.Serialization.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/IpamPoolProperties.Serialization.cs new file mode 100644 index 000000000000..8e1a87be522d --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/IpamPoolProperties.Serialization.cs @@ -0,0 +1,216 @@ +// 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.Network.Models +{ + public partial class IpamPoolProperties : 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(IpamPoolProperties)} does not support writing '{format}' format."); + } + + if (Optional.IsDefined(Description)) + { + writer.WritePropertyName("description"u8); + writer.WriteStringValue(Description); + } + if (Optional.IsDefined(DisplayName)) + { + writer.WritePropertyName("displayName"u8); + writer.WriteStringValue(DisplayName); + } + if (options.Format != "W" && Optional.IsCollectionDefined(IPAddressType)) + { + writer.WritePropertyName("ipAddressType"u8); + writer.WriteStartArray(); + foreach (var item in IPAddressType) + { + writer.WriteStringValue(item.ToString()); + } + writer.WriteEndArray(); + } + if (Optional.IsDefined(ParentPoolName)) + { + writer.WritePropertyName("parentPoolName"u8); + writer.WriteStringValue(ParentPoolName); + } + writer.WritePropertyName("addressPrefixes"u8); + writer.WriteStartArray(); + foreach (var item in AddressPrefixes) + { + writer.WriteStringValue(item); + } + writer.WriteEndArray(); + if (Optional.IsDefined(ProvisioningState)) + { + writer.WritePropertyName("provisioningState"u8); + writer.WriteStringValue(ProvisioningState.Value.ToString()); + } + if (options.Format != "W" && _serializedAdditionalRawData != null) + { + foreach (var item in _serializedAdditionalRawData) + { + writer.WritePropertyName(item.Key); +#if NET6_0_OR_GREATER + writer.WriteRawValue(item.Value); +#else + using (JsonDocument document = JsonDocument.Parse(item.Value)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } + } + } + + IpamPoolProperties 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(IpamPoolProperties)} does not support reading '{format}' format."); + } + + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeIpamPoolProperties(document.RootElement, options); + } + + internal static IpamPoolProperties DeserializeIpamPoolProperties(JsonElement element, ModelReaderWriterOptions options = null) + { + options ??= ModelSerializationExtensions.WireOptions; + + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + string description = default; + string displayName = default; + IReadOnlyList ipAddressType = default; + string parentPoolName = default; + IList addressPrefixes = default; + NetworkProvisioningState? provisioningState = default; + IDictionary serializedAdditionalRawData = default; + Dictionary rawDataDictionary = new Dictionary(); + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("description"u8)) + { + description = property.Value.GetString(); + continue; + } + if (property.NameEquals("displayName"u8)) + { + displayName = property.Value.GetString(); + continue; + } + if (property.NameEquals("ipAddressType"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(new IPType(item.GetString())); + } + ipAddressType = array; + continue; + } + if (property.NameEquals("parentPoolName"u8)) + { + parentPoolName = property.Value.GetString(); + continue; + } + if (property.NameEquals("addressPrefixes"u8)) + { + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(item.GetString()); + } + addressPrefixes = array; + continue; + } + if (property.NameEquals("provisioningState"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + provisioningState = new NetworkProvisioningState(property.Value.GetString()); + continue; + } + if (options.Format != "W") + { + rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + } + } + serializedAdditionalRawData = rawDataDictionary; + return new IpamPoolProperties( + description, + displayName, + ipAddressType ?? new ChangeTrackingList(), + parentPoolName, + addressPrefixes, + provisioningState, + serializedAdditionalRawData); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + return ModelReaderWriter.Write(this, options); + default: + throw new FormatException($"The model {nameof(IpamPoolProperties)} does not support writing '{options.Format}' format."); + } + } + + IpamPoolProperties 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 DeserializeIpamPoolProperties(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(IpamPoolProperties)} does not support reading '{options.Format}' format."); + } + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/IpamPoolProperties.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/IpamPoolProperties.cs new file mode 100644 index 000000000000..7310eb62bfe2 --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/IpamPoolProperties.cs @@ -0,0 +1,97 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using System.Linq; + +namespace Azure.ResourceManager.Network.Models +{ + /// Properties of IpamPool resource properties which are specific to the Pool resource. + public partial class IpamPoolProperties + { + /// + /// 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 . + /// List of IP address prefixes of the resource. + /// is null. + public IpamPoolProperties(IEnumerable addressPrefixes) + { + Argument.AssertNotNull(addressPrefixes, nameof(addressPrefixes)); + + IPAddressType = new ChangeTrackingList(); + AddressPrefixes = addressPrefixes.ToList(); + } + + /// Initializes a new instance of . + /// + /// String representing a friendly name for the resource. + /// List of IP address type for the IpamPool. + /// String representing parent IpamPool resource name. If empty the IpamPool will be a root pool. + /// List of IP address prefixes of the resource. + /// Provisioning states of a resource. + /// Keeps track of any properties unknown to the library. + internal IpamPoolProperties(string description, string displayName, IReadOnlyList ipAddressType, string parentPoolName, IList addressPrefixes, NetworkProvisioningState? provisioningState, IDictionary serializedAdditionalRawData) + { + Description = description; + DisplayName = displayName; + IPAddressType = ipAddressType; + ParentPoolName = parentPoolName; + AddressPrefixes = addressPrefixes; + ProvisioningState = provisioningState; + _serializedAdditionalRawData = serializedAdditionalRawData; + } + + /// Initializes a new instance of for deserialization. + internal IpamPoolProperties() + { + } + + /// Gets or sets the description. + public string Description { get; set; } + /// String representing a friendly name for the resource. + public string DisplayName { get; set; } + /// List of IP address type for the IpamPool. + public IReadOnlyList IPAddressType { get; } + /// String representing parent IpamPool resource name. If empty the IpamPool will be a root pool. + public string ParentPoolName { get; set; } + /// List of IP address prefixes of the resource. + public IList AddressPrefixes { get; } + /// Provisioning states of a resource. + public NetworkProvisioningState? ProvisioningState { get; set; } + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/IpamPoolUpdateProperties.Serialization.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/IpamPoolUpdateProperties.Serialization.cs new file mode 100644 index 000000000000..a7a9a4974840 --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/IpamPoolUpdateProperties.Serialization.cs @@ -0,0 +1,140 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.Network.Models +{ + public partial class IpamPoolUpdateProperties : 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(IpamPoolUpdateProperties)} does not support writing '{format}' format."); + } + + if (Optional.IsDefined(Description)) + { + writer.WritePropertyName("description"u8); + writer.WriteStringValue(Description); + } + if (Optional.IsDefined(DisplayName)) + { + writer.WritePropertyName("displayName"u8); + writer.WriteStringValue(DisplayName); + } + 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 + } + } + } + + IpamPoolUpdateProperties 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(IpamPoolUpdateProperties)} does not support reading '{format}' format."); + } + + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeIpamPoolUpdateProperties(document.RootElement, options); + } + + internal static IpamPoolUpdateProperties DeserializeIpamPoolUpdateProperties(JsonElement element, ModelReaderWriterOptions options = null) + { + options ??= ModelSerializationExtensions.WireOptions; + + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + string description = default; + string displayName = default; + IDictionary serializedAdditionalRawData = default; + Dictionary rawDataDictionary = new Dictionary(); + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("description"u8)) + { + description = property.Value.GetString(); + continue; + } + if (property.NameEquals("displayName"u8)) + { + displayName = property.Value.GetString(); + continue; + } + if (options.Format != "W") + { + rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + } + } + serializedAdditionalRawData = rawDataDictionary; + return new IpamPoolUpdateProperties(description, displayName, 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(IpamPoolUpdateProperties)} does not support writing '{options.Format}' format."); + } + } + + IpamPoolUpdateProperties 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 DeserializeIpamPoolUpdateProperties(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(IpamPoolUpdateProperties)} does not support reading '{options.Format}' format."); + } + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/IpamPoolUpdateProperties.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/IpamPoolUpdateProperties.cs new file mode 100644 index 000000000000..a3d6c4e1452c --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/IpamPoolUpdateProperties.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.Network.Models +{ + /// Represents the IpamPool update properties. + public partial class IpamPoolUpdateProperties + { + /// + /// 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 IpamPoolUpdateProperties() + { + } + + /// Initializes a new instance of . + /// + /// String representing a friendly name for the resource. + /// Keeps track of any properties unknown to the library. + internal IpamPoolUpdateProperties(string description, string displayName, IDictionary serializedAdditionalRawData) + { + Description = description; + DisplayName = displayName; + _serializedAdditionalRawData = serializedAdditionalRawData; + } + + /// Gets or sets the description. + public string Description { get; set; } + /// String representing a friendly name for the resource. + public string DisplayName { get; set; } + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/LoadBalancerHealthPerRule.Serialization.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/LoadBalancerHealthPerRule.Serialization.cs new file mode 100644 index 000000000000..b192229c559f --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/LoadBalancerHealthPerRule.Serialization.cs @@ -0,0 +1,173 @@ +// 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.Network.Models +{ + public partial class LoadBalancerHealthPerRule : 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(LoadBalancerHealthPerRule)} does not support writing '{format}' format."); + } + + if (Optional.IsDefined(Up)) + { + writer.WritePropertyName("up"u8); + writer.WriteNumberValue(Up.Value); + } + if (Optional.IsDefined(Down)) + { + writer.WritePropertyName("down"u8); + writer.WriteNumberValue(Down.Value); + } + if (Optional.IsCollectionDefined(LoadBalancerBackendAddresses)) + { + writer.WritePropertyName("loadBalancerBackendAddresses"u8); + writer.WriteStartArray(); + foreach (var item in LoadBalancerBackendAddresses) + { + writer.WriteObjectValue(item, options); + } + writer.WriteEndArray(); + } + if (options.Format != "W" && _serializedAdditionalRawData != null) + { + foreach (var item in _serializedAdditionalRawData) + { + writer.WritePropertyName(item.Key); +#if NET6_0_OR_GREATER + writer.WriteRawValue(item.Value); +#else + using (JsonDocument document = JsonDocument.Parse(item.Value)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } + } + } + + LoadBalancerHealthPerRule 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(LoadBalancerHealthPerRule)} does not support reading '{format}' format."); + } + + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeLoadBalancerHealthPerRule(document.RootElement, options); + } + + internal static LoadBalancerHealthPerRule DeserializeLoadBalancerHealthPerRule(JsonElement element, ModelReaderWriterOptions options = null) + { + options ??= ModelSerializationExtensions.WireOptions; + + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + int? up = default; + int? down = default; + IReadOnlyList loadBalancerBackendAddresses = default; + IDictionary serializedAdditionalRawData = default; + Dictionary rawDataDictionary = new Dictionary(); + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("up"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + up = property.Value.GetInt32(); + continue; + } + if (property.NameEquals("down"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + down = property.Value.GetInt32(); + continue; + } + if (property.NameEquals("loadBalancerBackendAddresses"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(LoadBalancerHealthPerRulePerBackendAddress.DeserializeLoadBalancerHealthPerRulePerBackendAddress(item, options)); + } + loadBalancerBackendAddresses = array; + continue; + } + if (options.Format != "W") + { + rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + } + } + serializedAdditionalRawData = rawDataDictionary; + return new LoadBalancerHealthPerRule(up, down, loadBalancerBackendAddresses ?? new ChangeTrackingList(), serializedAdditionalRawData); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + return ModelReaderWriter.Write(this, options); + default: + throw new FormatException($"The model {nameof(LoadBalancerHealthPerRule)} does not support writing '{options.Format}' format."); + } + } + + LoadBalancerHealthPerRule 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 DeserializeLoadBalancerHealthPerRule(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(LoadBalancerHealthPerRule)} does not support reading '{options.Format}' format."); + } + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/LoadBalancerHealthPerRule.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/LoadBalancerHealthPerRule.cs new file mode 100644 index 000000000000..fe26edc5ceae --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/LoadBalancerHealthPerRule.cs @@ -0,0 +1,74 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; + +namespace Azure.ResourceManager.Network.Models +{ + /// The response for a Health API. + public partial class LoadBalancerHealthPerRule + { + /// + /// Keeps track of any properties unknown to the library. + /// + /// To assign an object to the value of this property use . + /// + /// + /// To assign an already formatted json string to this property use . + /// + /// + /// Examples: + /// + /// + /// BinaryData.FromObjectAsJson("foo") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromString("\"foo\"") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromObjectAsJson(new { key = "value" }) + /// Creates a payload of { "key": "value" }. + /// + /// + /// BinaryData.FromString("{\"key\": \"value\"}") + /// Creates a payload of { "key": "value" }. + /// + /// + /// + /// + private IDictionary _serializedAdditionalRawData; + + /// Initializes a new instance of . + internal LoadBalancerHealthPerRule() + { + LoadBalancerBackendAddresses = new ChangeTrackingList(); + } + + /// Initializes a new instance of . + /// Number of backend instances associated to the LB rule that are considered healthy. + /// Number of backend instances associated to the LB rule that are considered unhealthy. + /// Information about the health per rule of the backend addresses. + /// Keeps track of any properties unknown to the library. + internal LoadBalancerHealthPerRule(int? up, int? down, IReadOnlyList loadBalancerBackendAddresses, IDictionary serializedAdditionalRawData) + { + Up = up; + Down = down; + LoadBalancerBackendAddresses = loadBalancerBackendAddresses; + _serializedAdditionalRawData = serializedAdditionalRawData; + } + + /// Number of backend instances associated to the LB rule that are considered healthy. + public int? Up { get; } + /// Number of backend instances associated to the LB rule that are considered unhealthy. + public int? Down { get; } + /// Information about the health per rule of the backend addresses. + public IReadOnlyList LoadBalancerBackendAddresses { get; } + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/LoadBalancerHealthPerRulePerBackendAddress.Serialization.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/LoadBalancerHealthPerRulePerBackendAddress.Serialization.cs new file mode 100644 index 000000000000..5285c7c67268 --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/LoadBalancerHealthPerRulePerBackendAddress.Serialization.cs @@ -0,0 +1,166 @@ +// 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.Network.Models +{ + public partial class LoadBalancerHealthPerRulePerBackendAddress : 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(LoadBalancerHealthPerRulePerBackendAddress)} does not support writing '{format}' format."); + } + + if (Optional.IsDefined(IPAddress)) + { + writer.WritePropertyName("ipAddress"u8); + writer.WriteStringValue(IPAddress); + } + if (Optional.IsDefined(NetworkInterfaceIPConfigurationId)) + { + writer.WritePropertyName("networkInterfaceIPConfigurationId"u8); + writer.WriteObjectValue(NetworkInterfaceIPConfigurationId, options); + } + if (Optional.IsDefined(State)) + { + writer.WritePropertyName("state"u8); + writer.WriteStringValue(State); + } + if (Optional.IsDefined(Reason)) + { + writer.WritePropertyName("reason"u8); + writer.WriteStringValue(Reason); + } + 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 + } + } + } + + LoadBalancerHealthPerRulePerBackendAddress 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(LoadBalancerHealthPerRulePerBackendAddress)} does not support reading '{format}' format."); + } + + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeLoadBalancerHealthPerRulePerBackendAddress(document.RootElement, options); + } + + internal static LoadBalancerHealthPerRulePerBackendAddress DeserializeLoadBalancerHealthPerRulePerBackendAddress(JsonElement element, ModelReaderWriterOptions options = null) + { + options ??= ModelSerializationExtensions.WireOptions; + + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + string ipAddress = default; + NetworkInterfaceIPConfigurationData networkInterfaceIPConfigurationId = default; + string state = default; + string reason = default; + IDictionary serializedAdditionalRawData = default; + Dictionary rawDataDictionary = new Dictionary(); + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("ipAddress"u8)) + { + ipAddress = property.Value.GetString(); + continue; + } + if (property.NameEquals("networkInterfaceIPConfigurationId"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + networkInterfaceIPConfigurationId = NetworkInterfaceIPConfigurationData.DeserializeNetworkInterfaceIPConfigurationData(property.Value, options); + continue; + } + if (property.NameEquals("state"u8)) + { + state = property.Value.GetString(); + continue; + } + if (property.NameEquals("reason"u8)) + { + reason = property.Value.GetString(); + continue; + } + if (options.Format != "W") + { + rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + } + } + serializedAdditionalRawData = rawDataDictionary; + return new LoadBalancerHealthPerRulePerBackendAddress(ipAddress, networkInterfaceIPConfigurationId, state, reason, 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(LoadBalancerHealthPerRulePerBackendAddress)} does not support writing '{options.Format}' format."); + } + } + + LoadBalancerHealthPerRulePerBackendAddress 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 DeserializeLoadBalancerHealthPerRulePerBackendAddress(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(LoadBalancerHealthPerRulePerBackendAddress)} does not support reading '{options.Format}' format."); + } + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/LoadBalancerHealthPerRulePerBackendAddress.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/LoadBalancerHealthPerRulePerBackendAddress.cs new file mode 100644 index 000000000000..59c954bc4491 --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/LoadBalancerHealthPerRulePerBackendAddress.cs @@ -0,0 +1,77 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; + +namespace Azure.ResourceManager.Network.Models +{ + /// The information about health per rule per backend address. + public partial class LoadBalancerHealthPerRulePerBackendAddress + { + /// + /// Keeps track of any properties unknown to the library. + /// + /// To assign an object to the value of this property use . + /// + /// + /// To assign an already formatted json string to this property use . + /// + /// + /// Examples: + /// + /// + /// BinaryData.FromObjectAsJson("foo") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromString("\"foo\"") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromObjectAsJson(new { key = "value" }) + /// Creates a payload of { "key": "value" }. + /// + /// + /// BinaryData.FromString("{\"key\": \"value\"}") + /// Creates a payload of { "key": "value" }. + /// + /// + /// + /// + private IDictionary _serializedAdditionalRawData; + + /// Initializes a new instance of . + internal LoadBalancerHealthPerRulePerBackendAddress() + { + } + + /// Initializes a new instance of . + /// The IP address belonging to the backend address. + /// The id of the network interface ip configuration belonging to the backend address. + /// The current health of the backend instances that is associated to the LB rule. + /// The explanation of the State. + /// Keeps track of any properties unknown to the library. + internal LoadBalancerHealthPerRulePerBackendAddress(string ipAddress, NetworkInterfaceIPConfigurationData networkInterfaceIPConfigurationId, string state, string reason, IDictionary serializedAdditionalRawData) + { + IPAddress = ipAddress; + NetworkInterfaceIPConfigurationId = networkInterfaceIPConfigurationId; + State = state; + Reason = reason; + _serializedAdditionalRawData = serializedAdditionalRawData; + } + + /// The IP address belonging to the backend address. + public string IPAddress { get; } + /// The id of the network interface ip configuration belonging to the backend address. + public NetworkInterfaceIPConfigurationData NetworkInterfaceIPConfigurationId { get; } + /// The current health of the backend instances that is associated to the LB rule. + public string State { get; } + /// The explanation of the State. + public string Reason { get; } + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/NetworkProtocol.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/NetworkProtocol.cs new file mode 100644 index 000000000000..5c96d985abd9 --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/NetworkProtocol.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.Network.Models +{ + /// Network Protocol. + public readonly partial struct NetworkProtocol : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public NetworkProtocol(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string AnyValue = "Any"; + private const string TcpValue = "TCP"; + private const string UdpValue = "UDP"; + private const string IcmpValue = "ICMP"; + + /// Any. + public static NetworkProtocol Any { get; } = new NetworkProtocol(AnyValue); + /// TCP. + public static NetworkProtocol Tcp { get; } = new NetworkProtocol(TcpValue); + /// UDP. + public static NetworkProtocol Udp { get; } = new NetworkProtocol(UdpValue); + /// ICMP. + public static NetworkProtocol Icmp { get; } = new NetworkProtocol(IcmpValue); + /// Determines if two values are the same. + public static bool operator ==(NetworkProtocol left, NetworkProtocol right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(NetworkProtocol left, NetworkProtocol right) => !left.Equals(right); + /// Converts a to a . + public static implicit operator NetworkProtocol(string value) => new NetworkProtocol(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is NetworkProtocol other && Equals(other); + /// + public bool Equals(NetworkProtocol 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/network/Azure.ResourceManager.Network/src/Generated/Models/NetworkProvisioningState.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/NetworkProvisioningState.cs index fc0be63d7d79..e5900b6ad542 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/NetworkProvisioningState.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/NetworkProvisioningState.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.Network.Models { - /// The current provisioning state. + /// Provisioning states of a resource. public readonly partial struct NetworkProvisioningState : IEquatable { private readonly string _value; @@ -22,19 +22,25 @@ public NetworkProvisioningState(string value) _value = value ?? throw new ArgumentNullException(nameof(value)); } + private const string FailedValue = "Failed"; private const string SucceededValue = "Succeeded"; + private const string CanceledValue = "Canceled"; + private const string CreatingValue = "Creating"; private const string UpdatingValue = "Updating"; private const string DeletingValue = "Deleting"; - private const string FailedValue = "Failed"; + /// Failed. + public static NetworkProvisioningState Failed { get; } = new NetworkProvisioningState(FailedValue); /// Succeeded. public static NetworkProvisioningState Succeeded { get; } = new NetworkProvisioningState(SucceededValue); + /// Canceled. + public static NetworkProvisioningState Canceled { get; } = new NetworkProvisioningState(CanceledValue); + /// Creating. + public static NetworkProvisioningState Creating { get; } = new NetworkProvisioningState(CreatingValue); /// Updating. public static NetworkProvisioningState Updating { get; } = new NetworkProvisioningState(UpdatingValue); /// Deleting. public static NetworkProvisioningState Deleting { get; } = new NetworkProvisioningState(DeletingValue); - /// Failed. - public static NetworkProvisioningState Failed { get; } = new NetworkProvisioningState(FailedValue); /// Determines if two values are the same. public static bool operator ==(NetworkProvisioningState left, NetworkProvisioningState right) => left.Equals(right); /// Determines if two values are not the same. diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/P2SConnectionConfiguration.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/P2SConnectionConfiguration.cs index 2f78722fc523..a719376d0789 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/P2SConnectionConfiguration.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/P2SConnectionConfiguration.cs @@ -48,18 +48,7 @@ internal P2SConnectionConfiguration(ResourceIdentifier id, string name, Resource /// A unique read-only string that changes whenever the resource is updated. public ETag? ETag { get; } /// The reference to the address space resource which represents Address space for P2S VpnClient. - internal AddressSpace VpnClientAddressPool { get; set; } - /// A list of address blocks reserved for this virtual network in CIDR notation. - public IList VpnClientAddressPrefixes - { - get - { - if (VpnClientAddressPool is null) - VpnClientAddressPool = new AddressSpace(); - return VpnClientAddressPool.AddressPrefixes; - } - } - + public AddressSpace VpnClientAddressPool { get; set; } /// The Routing Configuration indicating the associated and propagated route tables on this connection. public RoutingConfiguration RoutingConfiguration { get; set; } /// Flag indicating whether the enable internet security flag is turned on for the P2S Connections or not. diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/PoolAssociation.Serialization.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/PoolAssociation.Serialization.cs new file mode 100644 index 000000000000..019e37c6034d --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/PoolAssociation.Serialization.cs @@ -0,0 +1,264 @@ +// 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.Network.Models +{ + public partial class PoolAssociation : 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(PoolAssociation)} does not support writing '{format}' format."); + } + + writer.WritePropertyName("resourceId"u8); + writer.WriteStringValue(ResourceId); + if (Optional.IsDefined(PoolId)) + { + writer.WritePropertyName("poolId"u8); + writer.WriteStringValue(PoolId); + } + if (Optional.IsDefined(Description)) + { + writer.WritePropertyName("description"u8); + writer.WriteStringValue(Description); + } + if (options.Format != "W" && Optional.IsCollectionDefined(AddressPrefixes)) + { + writer.WritePropertyName("addressPrefixes"u8); + writer.WriteStartArray(); + foreach (var item in AddressPrefixes) + { + writer.WriteStringValue(item); + } + writer.WriteEndArray(); + } + if (options.Format != "W" && Optional.IsCollectionDefined(ReservedPrefixes)) + { + writer.WritePropertyName("reservedPrefixes"u8); + writer.WriteStartArray(); + foreach (var item in ReservedPrefixes) + { + writer.WriteStringValue(item); + } + writer.WriteEndArray(); + } + if (options.Format != "W" && Optional.IsDefined(TotalNumberOfIPAddresses)) + { + writer.WritePropertyName("totalNumberOfIPAddresses"u8); + writer.WriteStringValue(TotalNumberOfIPAddresses); + } + if (options.Format != "W" && Optional.IsDefined(NumberOfReservedIPAddresses)) + { + writer.WritePropertyName("numberOfReservedIPAddresses"u8); + writer.WriteStringValue(NumberOfReservedIPAddresses); + } + if (options.Format != "W" && Optional.IsDefined(CreatedOn)) + { + writer.WritePropertyName("createdAt"u8); + writer.WriteStringValue(CreatedOn.Value, "O"); + } + if (options.Format != "W" && Optional.IsDefined(ReservationExpiresOn)) + { + writer.WritePropertyName("reservationExpiresAt"u8); + writer.WriteStringValue(ReservationExpiresOn.Value, "O"); + } + if (options.Format != "W" && _serializedAdditionalRawData != null) + { + foreach (var item in _serializedAdditionalRawData) + { + writer.WritePropertyName(item.Key); +#if NET6_0_OR_GREATER + writer.WriteRawValue(item.Value); +#else + using (JsonDocument document = JsonDocument.Parse(item.Value)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } + } + } + + PoolAssociation 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(PoolAssociation)} does not support reading '{format}' format."); + } + + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializePoolAssociation(document.RootElement, options); + } + + internal static PoolAssociation DeserializePoolAssociation(JsonElement element, ModelReaderWriterOptions options = null) + { + options ??= ModelSerializationExtensions.WireOptions; + + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + ResourceIdentifier resourceId = default; + ResourceIdentifier poolId = default; + string description = default; + IReadOnlyList addressPrefixes = default; + IReadOnlyList reservedPrefixes = default; + string totalNumberOfIPAddresses = default; + string numberOfReservedIPAddresses = default; + DateTimeOffset? createdAt = default; + DateTimeOffset? reservationExpiresAt = default; + IDictionary serializedAdditionalRawData = default; + Dictionary rawDataDictionary = new Dictionary(); + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("resourceId"u8)) + { + resourceId = new ResourceIdentifier(property.Value.GetString()); + continue; + } + if (property.NameEquals("poolId"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + poolId = new ResourceIdentifier(property.Value.GetString()); + continue; + } + if (property.NameEquals("description"u8)) + { + description = property.Value.GetString(); + continue; + } + if (property.NameEquals("addressPrefixes"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(item.GetString()); + } + addressPrefixes = array; + continue; + } + if (property.NameEquals("reservedPrefixes"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(item.GetString()); + } + reservedPrefixes = array; + continue; + } + if (property.NameEquals("totalNumberOfIPAddresses"u8)) + { + totalNumberOfIPAddresses = property.Value.GetString(); + continue; + } + if (property.NameEquals("numberOfReservedIPAddresses"u8)) + { + numberOfReservedIPAddresses = property.Value.GetString(); + continue; + } + if (property.NameEquals("createdAt"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + createdAt = property.Value.GetDateTimeOffset("O"); + continue; + } + if (property.NameEquals("reservationExpiresAt"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + reservationExpiresAt = property.Value.GetDateTimeOffset("O"); + continue; + } + if (options.Format != "W") + { + rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + } + } + serializedAdditionalRawData = rawDataDictionary; + return new PoolAssociation( + resourceId, + poolId, + description, + addressPrefixes ?? new ChangeTrackingList(), + reservedPrefixes ?? new ChangeTrackingList(), + totalNumberOfIPAddresses, + numberOfReservedIPAddresses, + createdAt, + reservationExpiresAt, + 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(PoolAssociation)} does not support writing '{options.Format}' format."); + } + } + + PoolAssociation 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 DeserializePoolAssociation(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(PoolAssociation)} does not support reading '{options.Format}' format."); + } + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/PoolAssociation.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/PoolAssociation.cs new file mode 100644 index 000000000000..7bbedc83db94 --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/PoolAssociation.cs @@ -0,0 +1,110 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using Azure.Core; + +namespace Azure.ResourceManager.Network.Models +{ + /// IpamPool association information. + public partial class PoolAssociation + { + /// + /// 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 . + /// Resource id of the associated Azure resource. + /// is null. + internal PoolAssociation(ResourceIdentifier resourceId) + { + Argument.AssertNotNull(resourceId, nameof(resourceId)); + + ResourceId = resourceId; + AddressPrefixes = new ChangeTrackingList(); + ReservedPrefixes = new ChangeTrackingList(); + } + + /// Initializes a new instance of . + /// Resource id of the associated Azure resource. + /// IpamPool id for which the resource is associated to. + /// + /// List of assigned IP address prefixes in the IpamPool of the associated resource. + /// List of reserved IP address prefixes in the IpamPool of the associated resource. + /// Total number of assigned IP addresses of the association. + /// Total number of reserved IP addresses of the association. + /// Creation time of the association. + /// Expire time for IP addresses reserved. + /// Keeps track of any properties unknown to the library. + internal PoolAssociation(ResourceIdentifier resourceId, ResourceIdentifier poolId, string description, IReadOnlyList addressPrefixes, IReadOnlyList reservedPrefixes, string totalNumberOfIPAddresses, string numberOfReservedIPAddresses, DateTimeOffset? createdOn, DateTimeOffset? reservationExpiresOn, IDictionary serializedAdditionalRawData) + { + ResourceId = resourceId; + PoolId = poolId; + Description = description; + AddressPrefixes = addressPrefixes; + ReservedPrefixes = reservedPrefixes; + TotalNumberOfIPAddresses = totalNumberOfIPAddresses; + NumberOfReservedIPAddresses = numberOfReservedIPAddresses; + CreatedOn = createdOn; + ReservationExpiresOn = reservationExpiresOn; + _serializedAdditionalRawData = serializedAdditionalRawData; + } + + /// Initializes a new instance of for deserialization. + internal PoolAssociation() + { + } + + /// Resource id of the associated Azure resource. + public ResourceIdentifier ResourceId { get; } + /// IpamPool id for which the resource is associated to. + public ResourceIdentifier PoolId { get; } + /// Gets the description. + public string Description { get; } + /// List of assigned IP address prefixes in the IpamPool of the associated resource. + public IReadOnlyList AddressPrefixes { get; } + /// List of reserved IP address prefixes in the IpamPool of the associated resource. + public IReadOnlyList ReservedPrefixes { get; } + /// Total number of assigned IP addresses of the association. + public string TotalNumberOfIPAddresses { get; } + /// Total number of reserved IP addresses of the association. + public string NumberOfReservedIPAddresses { get; } + /// Creation time of the association. + public DateTimeOffset? CreatedOn { get; } + /// Expire time for IP addresses reserved. + public DateTimeOffset? ReservationExpiresOn { get; } + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/PoolAssociationList.Serialization.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/PoolAssociationList.Serialization.cs new file mode 100644 index 000000000000..77a54c348de4 --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/PoolAssociationList.Serialization.cs @@ -0,0 +1,154 @@ +// 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.Network.Models +{ + internal partial class PoolAssociationList : 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(PoolAssociationList)} does not support writing '{format}' format."); + } + + if (Optional.IsCollectionDefined(Value)) + { + writer.WritePropertyName("value"u8); + writer.WriteStartArray(); + foreach (var item in Value) + { + writer.WriteObjectValue(item, options); + } + writer.WriteEndArray(); + } + if (Optional.IsDefined(NextLink)) + { + writer.WritePropertyName("nextLink"u8); + writer.WriteStringValue(NextLink); + } + if (options.Format != "W" && _serializedAdditionalRawData != null) + { + foreach (var item in _serializedAdditionalRawData) + { + writer.WritePropertyName(item.Key); +#if NET6_0_OR_GREATER + writer.WriteRawValue(item.Value); +#else + using (JsonDocument document = JsonDocument.Parse(item.Value)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } + } + } + + PoolAssociationList 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(PoolAssociationList)} does not support reading '{format}' format."); + } + + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializePoolAssociationList(document.RootElement, options); + } + + internal static PoolAssociationList DeserializePoolAssociationList(JsonElement element, ModelReaderWriterOptions options = null) + { + options ??= ModelSerializationExtensions.WireOptions; + + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + IReadOnlyList value = default; + string nextLink = default; + IDictionary serializedAdditionalRawData = default; + Dictionary rawDataDictionary = new Dictionary(); + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("value"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(PoolAssociation.DeserializePoolAssociation(item, options)); + } + value = array; + continue; + } + if (property.NameEquals("nextLink"u8)) + { + nextLink = property.Value.GetString(); + continue; + } + if (options.Format != "W") + { + rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + } + } + serializedAdditionalRawData = rawDataDictionary; + return new PoolAssociationList(value ?? new ChangeTrackingList(), nextLink, serializedAdditionalRawData); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + return ModelReaderWriter.Write(this, options); + default: + throw new FormatException($"The model {nameof(PoolAssociationList)} does not support writing '{options.Format}' format."); + } + } + + PoolAssociationList 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 DeserializePoolAssociationList(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(PoolAssociationList)} does not support reading '{options.Format}' format."); + } + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/PoolAssociationList.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/PoolAssociationList.cs new file mode 100644 index 000000000000..858b720c7892 --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/PoolAssociationList.cs @@ -0,0 +1,70 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; + +namespace Azure.ResourceManager.Network.Models +{ + /// List of PoolAssociation. + internal partial class PoolAssociationList + { + /// + /// Keeps track of any properties unknown to the library. + /// + /// To assign an object to the value of this property use . + /// + /// + /// To assign an already formatted json string to this property use . + /// + /// + /// Examples: + /// + /// + /// BinaryData.FromObjectAsJson("foo") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromString("\"foo\"") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromObjectAsJson(new { key = "value" }) + /// Creates a payload of { "key": "value" }. + /// + /// + /// BinaryData.FromString("{\"key\": \"value\"}") + /// Creates a payload of { "key": "value" }. + /// + /// + /// + /// + private IDictionary _serializedAdditionalRawData; + + /// Initializes a new instance of . + internal PoolAssociationList() + { + Value = new ChangeTrackingList(); + } + + /// Initializes a new instance of . + /// + /// The link used to get the next page of operations. + /// Keeps track of any properties unknown to the library. + internal PoolAssociationList(IReadOnlyList value, string nextLink, IDictionary serializedAdditionalRawData) + { + Value = value; + NextLink = nextLink; + _serializedAdditionalRawData = serializedAdditionalRawData; + } + + /// Gets the value. + public IReadOnlyList Value { get; } + /// The link used to get the next page of operations. + public string NextLink { get; } + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/PoolUsage.Serialization.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/PoolUsage.Serialization.cs new file mode 100644 index 000000000000..1337a8983afc --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/PoolUsage.Serialization.cs @@ -0,0 +1,297 @@ +// 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.Network.Models +{ + public partial class PoolUsage : 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(PoolUsage)} does not support writing '{format}' format."); + } + + if (options.Format != "W" && Optional.IsCollectionDefined(AddressPrefixes)) + { + writer.WritePropertyName("addressPrefixes"u8); + writer.WriteStartArray(); + foreach (var item in AddressPrefixes) + { + writer.WriteStringValue(item); + } + writer.WriteEndArray(); + } + if (options.Format != "W" && Optional.IsCollectionDefined(ChildPools)) + { + writer.WritePropertyName("childPools"u8); + writer.WriteStartArray(); + foreach (var item in ChildPools) + { + writer.WriteObjectValue(item, options); + } + writer.WriteEndArray(); + } + if (options.Format != "W" && Optional.IsCollectionDefined(AllocatedAddressPrefixes)) + { + writer.WritePropertyName("allocatedAddressPrefixes"u8); + writer.WriteStartArray(); + foreach (var item in AllocatedAddressPrefixes) + { + writer.WriteStringValue(item); + } + writer.WriteEndArray(); + } + if (options.Format != "W" && Optional.IsCollectionDefined(ReservedAddressPrefixes)) + { + writer.WritePropertyName("reservedAddressPrefixes"u8); + writer.WriteStartArray(); + foreach (var item in ReservedAddressPrefixes) + { + writer.WriteStringValue(item); + } + writer.WriteEndArray(); + } + if (options.Format != "W" && Optional.IsCollectionDefined(AvailableAddressPrefixes)) + { + writer.WritePropertyName("availableAddressPrefixes"u8); + writer.WriteStartArray(); + foreach (var item in AvailableAddressPrefixes) + { + writer.WriteStringValue(item); + } + writer.WriteEndArray(); + } + if (options.Format != "W" && Optional.IsDefined(TotalNumberOfIPAddresses)) + { + writer.WritePropertyName("totalNumberOfIPAddresses"u8); + writer.WriteStringValue(TotalNumberOfIPAddresses); + } + if (options.Format != "W" && Optional.IsDefined(NumberOfAllocatedIPAddresses)) + { + writer.WritePropertyName("numberOfAllocatedIPAddresses"u8); + writer.WriteStringValue(NumberOfAllocatedIPAddresses); + } + if (options.Format != "W" && Optional.IsDefined(NumberOfReservedIPAddresses)) + { + writer.WritePropertyName("numberOfReservedIPAddresses"u8); + writer.WriteStringValue(NumberOfReservedIPAddresses); + } + if (options.Format != "W" && Optional.IsDefined(NumberOfAvailableIPAddresses)) + { + writer.WritePropertyName("numberOfAvailableIPAddresses"u8); + writer.WriteStringValue(NumberOfAvailableIPAddresses); + } + 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 + } + } + } + + PoolUsage 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(PoolUsage)} does not support reading '{format}' format."); + } + + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializePoolUsage(document.RootElement, options); + } + + internal static PoolUsage DeserializePoolUsage(JsonElement element, ModelReaderWriterOptions options = null) + { + options ??= ModelSerializationExtensions.WireOptions; + + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + IReadOnlyList addressPrefixes = default; + IReadOnlyList childPools = default; + IReadOnlyList allocatedAddressPrefixes = default; + IReadOnlyList reservedAddressPrefixes = default; + IReadOnlyList availableAddressPrefixes = default; + string totalNumberOfIPAddresses = default; + string numberOfAllocatedIPAddresses = default; + string numberOfReservedIPAddresses = default; + string numberOfAvailableIPAddresses = default; + IDictionary serializedAdditionalRawData = default; + Dictionary rawDataDictionary = new Dictionary(); + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("addressPrefixes"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(item.GetString()); + } + addressPrefixes = array; + continue; + } + if (property.NameEquals("childPools"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(ResourceBasics.DeserializeResourceBasics(item, options)); + } + childPools = array; + continue; + } + if (property.NameEquals("allocatedAddressPrefixes"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(item.GetString()); + } + allocatedAddressPrefixes = array; + continue; + } + if (property.NameEquals("reservedAddressPrefixes"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(item.GetString()); + } + reservedAddressPrefixes = array; + continue; + } + if (property.NameEquals("availableAddressPrefixes"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(item.GetString()); + } + availableAddressPrefixes = array; + continue; + } + if (property.NameEquals("totalNumberOfIPAddresses"u8)) + { + totalNumberOfIPAddresses = property.Value.GetString(); + continue; + } + if (property.NameEquals("numberOfAllocatedIPAddresses"u8)) + { + numberOfAllocatedIPAddresses = property.Value.GetString(); + continue; + } + if (property.NameEquals("numberOfReservedIPAddresses"u8)) + { + numberOfReservedIPAddresses = property.Value.GetString(); + continue; + } + if (property.NameEquals("numberOfAvailableIPAddresses"u8)) + { + numberOfAvailableIPAddresses = property.Value.GetString(); + continue; + } + if (options.Format != "W") + { + rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + } + } + serializedAdditionalRawData = rawDataDictionary; + return new PoolUsage( + addressPrefixes ?? new ChangeTrackingList(), + childPools ?? new ChangeTrackingList(), + allocatedAddressPrefixes ?? new ChangeTrackingList(), + reservedAddressPrefixes ?? new ChangeTrackingList(), + availableAddressPrefixes ?? new ChangeTrackingList(), + totalNumberOfIPAddresses, + numberOfAllocatedIPAddresses, + numberOfReservedIPAddresses, + numberOfAvailableIPAddresses, + 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(PoolUsage)} does not support writing '{options.Format}' format."); + } + } + + PoolUsage 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 DeserializePoolUsage(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(PoolUsage)} does not support reading '{options.Format}' format."); + } + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/PoolUsage.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/PoolUsage.cs new file mode 100644 index 000000000000..abc79a6a8527 --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/PoolUsage.cs @@ -0,0 +1,102 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; + +namespace Azure.ResourceManager.Network.Models +{ + /// IpamPool usage information. + public partial class PoolUsage + { + /// + /// Keeps track of any properties unknown to the library. + /// + /// To assign an object to the value of this property use . + /// + /// + /// To assign an already formatted json string to this property use . + /// + /// + /// Examples: + /// + /// + /// BinaryData.FromObjectAsJson("foo") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromString("\"foo\"") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromObjectAsJson(new { key = "value" }) + /// Creates a payload of { "key": "value" }. + /// + /// + /// BinaryData.FromString("{\"key\": \"value\"}") + /// Creates a payload of { "key": "value" }. + /// + /// + /// + /// + private IDictionary _serializedAdditionalRawData; + + /// Initializes a new instance of . + internal PoolUsage() + { + AddressPrefixes = new ChangeTrackingList(); + ChildPools = new ChangeTrackingList(); + AllocatedAddressPrefixes = new ChangeTrackingList(); + ReservedAddressPrefixes = new ChangeTrackingList(); + AvailableAddressPrefixes = new ChangeTrackingList(); + } + + /// Initializes a new instance of . + /// List of IP address prefixes of the resource. + /// List of IpamPool that are children of this IpamPool. + /// List of assigned IP address prefixes. + /// List of reserved IP address prefixes. These IP addresses could be reclaimed if not assigned in the given time. + /// List of available IP address prefixes. + /// Total number of IP addresses managed in the IpamPool. + /// Total number of assigned IP addresses in the IpamPool. + /// Total number of reserved IP addresses in the IpamPool. + /// Total number of available IP addresses in the IpamPool. + /// Keeps track of any properties unknown to the library. + internal PoolUsage(IReadOnlyList addressPrefixes, IReadOnlyList childPools, IReadOnlyList allocatedAddressPrefixes, IReadOnlyList reservedAddressPrefixes, IReadOnlyList availableAddressPrefixes, string totalNumberOfIPAddresses, string numberOfAllocatedIPAddresses, string numberOfReservedIPAddresses, string numberOfAvailableIPAddresses, IDictionary serializedAdditionalRawData) + { + AddressPrefixes = addressPrefixes; + ChildPools = childPools; + AllocatedAddressPrefixes = allocatedAddressPrefixes; + ReservedAddressPrefixes = reservedAddressPrefixes; + AvailableAddressPrefixes = availableAddressPrefixes; + TotalNumberOfIPAddresses = totalNumberOfIPAddresses; + NumberOfAllocatedIPAddresses = numberOfAllocatedIPAddresses; + NumberOfReservedIPAddresses = numberOfReservedIPAddresses; + NumberOfAvailableIPAddresses = numberOfAvailableIPAddresses; + _serializedAdditionalRawData = serializedAdditionalRawData; + } + + /// List of IP address prefixes of the resource. + public IReadOnlyList AddressPrefixes { get; } + /// List of IpamPool that are children of this IpamPool. + public IReadOnlyList ChildPools { get; } + /// List of assigned IP address prefixes. + public IReadOnlyList AllocatedAddressPrefixes { get; } + /// List of reserved IP address prefixes. These IP addresses could be reclaimed if not assigned in the given time. + public IReadOnlyList ReservedAddressPrefixes { get; } + /// List of available IP address prefixes. + public IReadOnlyList AvailableAddressPrefixes { get; } + /// Total number of IP addresses managed in the IpamPool. + public string TotalNumberOfIPAddresses { get; } + /// Total number of assigned IP addresses in the IpamPool. + public string NumberOfAllocatedIPAddresses { get; } + /// Total number of reserved IP addresses in the IpamPool. + public string NumberOfReservedIPAddresses { get; } + /// Total number of available IP addresses in the IpamPool. + public string NumberOfAvailableIPAddresses { get; } + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ReachabilityAnalysisIntentListResult.Serialization.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ReachabilityAnalysisIntentListResult.Serialization.cs new file mode 100644 index 000000000000..c6fe88e675b7 --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ReachabilityAnalysisIntentListResult.Serialization.cs @@ -0,0 +1,154 @@ +// 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.Network.Models +{ + internal partial class ReachabilityAnalysisIntentListResult : 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(ReachabilityAnalysisIntentListResult)} does not support writing '{format}' format."); + } + + if (Optional.IsCollectionDefined(Value)) + { + writer.WritePropertyName("value"u8); + writer.WriteStartArray(); + foreach (var item in Value) + { + writer.WriteObjectValue(item, options); + } + writer.WriteEndArray(); + } + if (Optional.IsDefined(NextLink)) + { + writer.WritePropertyName("nextLink"u8); + writer.WriteStringValue(NextLink); + } + if (options.Format != "W" && _serializedAdditionalRawData != null) + { + foreach (var item in _serializedAdditionalRawData) + { + writer.WritePropertyName(item.Key); +#if NET6_0_OR_GREATER + writer.WriteRawValue(item.Value); +#else + using (JsonDocument document = JsonDocument.Parse(item.Value)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } + } + } + + ReachabilityAnalysisIntentListResult 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(ReachabilityAnalysisIntentListResult)} does not support reading '{format}' format."); + } + + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeReachabilityAnalysisIntentListResult(document.RootElement, options); + } + + internal static ReachabilityAnalysisIntentListResult DeserializeReachabilityAnalysisIntentListResult(JsonElement element, ModelReaderWriterOptions options = null) + { + options ??= ModelSerializationExtensions.WireOptions; + + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + IReadOnlyList value = default; + string nextLink = default; + IDictionary serializedAdditionalRawData = default; + Dictionary rawDataDictionary = new Dictionary(); + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("value"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(ReachabilityAnalysisIntentData.DeserializeReachabilityAnalysisIntentData(item, options)); + } + value = array; + continue; + } + if (property.NameEquals("nextLink"u8)) + { + nextLink = property.Value.GetString(); + continue; + } + if (options.Format != "W") + { + rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + } + } + serializedAdditionalRawData = rawDataDictionary; + return new ReachabilityAnalysisIntentListResult(value ?? new ChangeTrackingList(), nextLink, serializedAdditionalRawData); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + return ModelReaderWriter.Write(this, options); + default: + throw new FormatException($"The model {nameof(ReachabilityAnalysisIntentListResult)} does not support writing '{options.Format}' format."); + } + } + + ReachabilityAnalysisIntentListResult 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 DeserializeReachabilityAnalysisIntentListResult(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(ReachabilityAnalysisIntentListResult)} does not support reading '{options.Format}' format."); + } + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ReachabilityAnalysisIntentListResult.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ReachabilityAnalysisIntentListResult.cs new file mode 100644 index 000000000000..fdcc8832fbf6 --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ReachabilityAnalysisIntentListResult.cs @@ -0,0 +1,70 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; + +namespace Azure.ResourceManager.Network.Models +{ + /// A list of Reachability Analysis Intents. + internal partial class ReachabilityAnalysisIntentListResult + { + /// + /// Keeps track of any properties unknown to the library. + /// + /// To assign an object to the value of this property use . + /// + /// + /// To assign an already formatted json string to this property use . + /// + /// + /// Examples: + /// + /// + /// BinaryData.FromObjectAsJson("foo") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromString("\"foo\"") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromObjectAsJson(new { key = "value" }) + /// Creates a payload of { "key": "value" }. + /// + /// + /// BinaryData.FromString("{\"key\": \"value\"}") + /// Creates a payload of { "key": "value" }. + /// + /// + /// + /// + private IDictionary _serializedAdditionalRawData; + + /// Initializes a new instance of . + internal ReachabilityAnalysisIntentListResult() + { + Value = new ChangeTrackingList(); + } + + /// Initializes a new instance of . + /// Gets a page of Reachability Analysis Intents. + /// Gets the URL to get the next page of results. + /// Keeps track of any properties unknown to the library. + internal ReachabilityAnalysisIntentListResult(IReadOnlyList value, string nextLink, IDictionary serializedAdditionalRawData) + { + Value = value; + NextLink = nextLink; + _serializedAdditionalRawData = serializedAdditionalRawData; + } + + /// Gets a page of Reachability Analysis Intents. + public IReadOnlyList Value { get; } + /// Gets the URL to get the next page of results. + public string NextLink { get; } + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ReachabilityAnalysisIntentProperties.Serialization.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ReachabilityAnalysisIntentProperties.Serialization.cs new file mode 100644 index 000000000000..45ec951bae0e --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ReachabilityAnalysisIntentProperties.Serialization.cs @@ -0,0 +1,174 @@ +// 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.Network.Models +{ + public partial class ReachabilityAnalysisIntentProperties : 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(ReachabilityAnalysisIntentProperties)} does not support writing '{format}' format."); + } + + if (Optional.IsDefined(ProvisioningState)) + { + writer.WritePropertyName("provisioningState"u8); + writer.WriteStringValue(ProvisioningState.Value.ToString()); + } + if (Optional.IsDefined(Description)) + { + writer.WritePropertyName("description"u8); + writer.WriteStringValue(Description); + } + writer.WritePropertyName("sourceResourceId"u8); + writer.WriteStringValue(SourceResourceId); + writer.WritePropertyName("destinationResourceId"u8); + writer.WriteStringValue(DestinationResourceId); + writer.WritePropertyName("ipTraffic"u8); + writer.WriteObjectValue(IPTraffic, options); + 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 + } + } + } + + ReachabilityAnalysisIntentProperties 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(ReachabilityAnalysisIntentProperties)} does not support reading '{format}' format."); + } + + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeReachabilityAnalysisIntentProperties(document.RootElement, options); + } + + internal static ReachabilityAnalysisIntentProperties DeserializeReachabilityAnalysisIntentProperties(JsonElement element, ModelReaderWriterOptions options = null) + { + options ??= ModelSerializationExtensions.WireOptions; + + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + NetworkProvisioningState? provisioningState = default; + string description = default; + ResourceIdentifier sourceResourceId = default; + ResourceIdentifier destinationResourceId = default; + IPTraffic ipTraffic = default; + IDictionary serializedAdditionalRawData = default; + Dictionary rawDataDictionary = new Dictionary(); + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("provisioningState"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + provisioningState = new NetworkProvisioningState(property.Value.GetString()); + continue; + } + if (property.NameEquals("description"u8)) + { + description = property.Value.GetString(); + continue; + } + if (property.NameEquals("sourceResourceId"u8)) + { + sourceResourceId = new ResourceIdentifier(property.Value.GetString()); + continue; + } + if (property.NameEquals("destinationResourceId"u8)) + { + destinationResourceId = new ResourceIdentifier(property.Value.GetString()); + continue; + } + if (property.NameEquals("ipTraffic"u8)) + { + ipTraffic = IPTraffic.DeserializeIPTraffic(property.Value, options); + continue; + } + if (options.Format != "W") + { + rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + } + } + serializedAdditionalRawData = rawDataDictionary; + return new ReachabilityAnalysisIntentProperties( + provisioningState, + description, + sourceResourceId, + destinationResourceId, + ipTraffic, + 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(ReachabilityAnalysisIntentProperties)} does not support writing '{options.Format}' format."); + } + } + + ReachabilityAnalysisIntentProperties 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 DeserializeReachabilityAnalysisIntentProperties(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(ReachabilityAnalysisIntentProperties)} does not support reading '{options.Format}' format."); + } + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ReachabilityAnalysisIntentProperties.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ReachabilityAnalysisIntentProperties.cs new file mode 100644 index 000000000000..4fb9427da266 --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ReachabilityAnalysisIntentProperties.cs @@ -0,0 +1,98 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using Azure.Core; + +namespace Azure.ResourceManager.Network.Models +{ + /// Represents the Reachability Analysis Intent properties. + public partial class ReachabilityAnalysisIntentProperties + { + /// + /// 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 . + /// Source resource id to verify the reachability path of. + /// Destination resource id to verify the reachability path of. + /// IP traffic information. + /// , or is null. + public ReachabilityAnalysisIntentProperties(ResourceIdentifier sourceResourceId, ResourceIdentifier destinationResourceId, IPTraffic ipTraffic) + { + Argument.AssertNotNull(sourceResourceId, nameof(sourceResourceId)); + Argument.AssertNotNull(destinationResourceId, nameof(destinationResourceId)); + Argument.AssertNotNull(ipTraffic, nameof(ipTraffic)); + + SourceResourceId = sourceResourceId; + DestinationResourceId = destinationResourceId; + IPTraffic = ipTraffic; + } + + /// Initializes a new instance of . + /// Provisioning states of a resource. + /// + /// Source resource id to verify the reachability path of. + /// Destination resource id to verify the reachability path of. + /// IP traffic information. + /// Keeps track of any properties unknown to the library. + internal ReachabilityAnalysisIntentProperties(NetworkProvisioningState? provisioningState, string description, ResourceIdentifier sourceResourceId, ResourceIdentifier destinationResourceId, IPTraffic ipTraffic, IDictionary serializedAdditionalRawData) + { + ProvisioningState = provisioningState; + Description = description; + SourceResourceId = sourceResourceId; + DestinationResourceId = destinationResourceId; + IPTraffic = ipTraffic; + _serializedAdditionalRawData = serializedAdditionalRawData; + } + + /// Initializes a new instance of for deserialization. + internal ReachabilityAnalysisIntentProperties() + { + } + + /// Provisioning states of a resource. + public NetworkProvisioningState? ProvisioningState { get; set; } + /// Gets or sets the description. + public string Description { get; set; } + /// Source resource id to verify the reachability path of. + public ResourceIdentifier SourceResourceId { get; set; } + /// Destination resource id to verify the reachability path of. + public ResourceIdentifier DestinationResourceId { get; set; } + /// IP traffic information. + public IPTraffic IPTraffic { get; set; } + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ReachabilityAnalysisRunListResult.Serialization.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ReachabilityAnalysisRunListResult.Serialization.cs new file mode 100644 index 000000000000..bca730ee7dbd --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ReachabilityAnalysisRunListResult.Serialization.cs @@ -0,0 +1,154 @@ +// 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.Network.Models +{ + internal partial class ReachabilityAnalysisRunListResult : 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(ReachabilityAnalysisRunListResult)} does not support writing '{format}' format."); + } + + if (Optional.IsCollectionDefined(Value)) + { + writer.WritePropertyName("value"u8); + writer.WriteStartArray(); + foreach (var item in Value) + { + writer.WriteObjectValue(item, options); + } + writer.WriteEndArray(); + } + if (Optional.IsDefined(NextLink)) + { + writer.WritePropertyName("nextLink"u8); + writer.WriteStringValue(NextLink); + } + if (options.Format != "W" && _serializedAdditionalRawData != null) + { + foreach (var item in _serializedAdditionalRawData) + { + writer.WritePropertyName(item.Key); +#if NET6_0_OR_GREATER + writer.WriteRawValue(item.Value); +#else + using (JsonDocument document = JsonDocument.Parse(item.Value)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } + } + } + + ReachabilityAnalysisRunListResult 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(ReachabilityAnalysisRunListResult)} does not support reading '{format}' format."); + } + + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeReachabilityAnalysisRunListResult(document.RootElement, options); + } + + internal static ReachabilityAnalysisRunListResult DeserializeReachabilityAnalysisRunListResult(JsonElement element, ModelReaderWriterOptions options = null) + { + options ??= ModelSerializationExtensions.WireOptions; + + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + IReadOnlyList value = default; + string nextLink = default; + IDictionary serializedAdditionalRawData = default; + Dictionary rawDataDictionary = new Dictionary(); + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("value"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(ReachabilityAnalysisRunData.DeserializeReachabilityAnalysisRunData(item, options)); + } + value = array; + continue; + } + if (property.NameEquals("nextLink"u8)) + { + nextLink = property.Value.GetString(); + continue; + } + if (options.Format != "W") + { + rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + } + } + serializedAdditionalRawData = rawDataDictionary; + return new ReachabilityAnalysisRunListResult(value ?? new ChangeTrackingList(), nextLink, serializedAdditionalRawData); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + return ModelReaderWriter.Write(this, options); + default: + throw new FormatException($"The model {nameof(ReachabilityAnalysisRunListResult)} does not support writing '{options.Format}' format."); + } + } + + ReachabilityAnalysisRunListResult 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 DeserializeReachabilityAnalysisRunListResult(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(ReachabilityAnalysisRunListResult)} does not support reading '{options.Format}' format."); + } + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ReachabilityAnalysisRunListResult.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ReachabilityAnalysisRunListResult.cs new file mode 100644 index 000000000000..dd778282bfef --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ReachabilityAnalysisRunListResult.cs @@ -0,0 +1,70 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; + +namespace Azure.ResourceManager.Network.Models +{ + /// A list of Reachability Analysis Run. + internal partial class ReachabilityAnalysisRunListResult + { + /// + /// Keeps track of any properties unknown to the library. + /// + /// To assign an object to the value of this property use . + /// + /// + /// To assign an already formatted json string to this property use . + /// + /// + /// Examples: + /// + /// + /// BinaryData.FromObjectAsJson("foo") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromString("\"foo\"") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromObjectAsJson(new { key = "value" }) + /// Creates a payload of { "key": "value" }. + /// + /// + /// BinaryData.FromString("{\"key\": \"value\"}") + /// Creates a payload of { "key": "value" }. + /// + /// + /// + /// + private IDictionary _serializedAdditionalRawData; + + /// Initializes a new instance of . + internal ReachabilityAnalysisRunListResult() + { + Value = new ChangeTrackingList(); + } + + /// Initializes a new instance of . + /// Gets a page of Reachability Analysis Runs. + /// Gets the URL to get the next page of results. + /// Keeps track of any properties unknown to the library. + internal ReachabilityAnalysisRunListResult(IReadOnlyList value, string nextLink, IDictionary serializedAdditionalRawData) + { + Value = value; + NextLink = nextLink; + _serializedAdditionalRawData = serializedAdditionalRawData; + } + + /// Gets a page of Reachability Analysis Runs. + public IReadOnlyList Value { get; } + /// Gets the URL to get the next page of results. + public string NextLink { get; } + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ReachabilityAnalysisRunProperties.Serialization.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ReachabilityAnalysisRunProperties.Serialization.cs new file mode 100644 index 000000000000..90d255f76955 --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ReachabilityAnalysisRunProperties.Serialization.cs @@ -0,0 +1,196 @@ +// 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.Network.Models +{ + public partial class ReachabilityAnalysisRunProperties : 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(ReachabilityAnalysisRunProperties)} does not support writing '{format}' format."); + } + + if (Optional.IsDefined(Description)) + { + writer.WritePropertyName("description"u8); + writer.WriteStringValue(Description); + } + writer.WritePropertyName("intentId"u8); + writer.WriteStringValue(IntentId); + if (options.Format != "W" && Optional.IsDefined(IntentContent)) + { + writer.WritePropertyName("intentContent"u8); + writer.WriteObjectValue(IntentContent, options); + } + if (options.Format != "W" && Optional.IsDefined(AnalysisResult)) + { + writer.WritePropertyName("analysisResult"u8); + writer.WriteStringValue(AnalysisResult); + } + if (options.Format != "W" && Optional.IsDefined(ErrorMessage)) + { + writer.WritePropertyName("errorMessage"u8); + writer.WriteStringValue(ErrorMessage); + } + if (Optional.IsDefined(ProvisioningState)) + { + writer.WritePropertyName("provisioningState"u8); + writer.WriteStringValue(ProvisioningState.Value.ToString()); + } + if (options.Format != "W" && _serializedAdditionalRawData != null) + { + foreach (var item in _serializedAdditionalRawData) + { + writer.WritePropertyName(item.Key); +#if NET6_0_OR_GREATER + writer.WriteRawValue(item.Value); +#else + using (JsonDocument document = JsonDocument.Parse(item.Value)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } + } + } + + ReachabilityAnalysisRunProperties 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(ReachabilityAnalysisRunProperties)} does not support reading '{format}' format."); + } + + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeReachabilityAnalysisRunProperties(document.RootElement, options); + } + + internal static ReachabilityAnalysisRunProperties DeserializeReachabilityAnalysisRunProperties(JsonElement element, ModelReaderWriterOptions options = null) + { + options ??= ModelSerializationExtensions.WireOptions; + + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + string description = default; + string intentId = default; + IntentContent intentContent = default; + string analysisResult = default; + string errorMessage = default; + NetworkProvisioningState? provisioningState = default; + IDictionary serializedAdditionalRawData = default; + Dictionary rawDataDictionary = new Dictionary(); + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("description"u8)) + { + description = property.Value.GetString(); + continue; + } + if (property.NameEquals("intentId"u8)) + { + intentId = property.Value.GetString(); + continue; + } + if (property.NameEquals("intentContent"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + intentContent = IntentContent.DeserializeIntentContent(property.Value, options); + continue; + } + if (property.NameEquals("analysisResult"u8)) + { + analysisResult = property.Value.GetString(); + continue; + } + if (property.NameEquals("errorMessage"u8)) + { + errorMessage = property.Value.GetString(); + continue; + } + if (property.NameEquals("provisioningState"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + provisioningState = new NetworkProvisioningState(property.Value.GetString()); + continue; + } + if (options.Format != "W") + { + rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + } + } + serializedAdditionalRawData = rawDataDictionary; + return new ReachabilityAnalysisRunProperties( + description, + intentId, + intentContent, + analysisResult, + errorMessage, + provisioningState, + serializedAdditionalRawData); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + return ModelReaderWriter.Write(this, options); + default: + throw new FormatException($"The model {nameof(ReachabilityAnalysisRunProperties)} does not support writing '{options.Format}' format."); + } + } + + ReachabilityAnalysisRunProperties 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 DeserializeReachabilityAnalysisRunProperties(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(ReachabilityAnalysisRunProperties)} does not support reading '{options.Format}' format."); + } + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ReachabilityAnalysisRunProperties.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ReachabilityAnalysisRunProperties.cs new file mode 100644 index 000000000000..b6c9a3a2a8af --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ReachabilityAnalysisRunProperties.cs @@ -0,0 +1,95 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; + +namespace Azure.ResourceManager.Network.Models +{ + /// Represents the Reachability Analysis Run properties. + public partial class ReachabilityAnalysisRunProperties + { + /// + /// 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 . + /// Id of the intent resource to run analysis on. + /// is null. + public ReachabilityAnalysisRunProperties(string intentId) + { + Argument.AssertNotNull(intentId, nameof(intentId)); + + IntentId = intentId; + } + + /// Initializes a new instance of . + /// + /// Id of the intent resource to run analysis on. + /// Intent information. + /// + /// + /// Provisioning states of a resource. + /// Keeps track of any properties unknown to the library. + internal ReachabilityAnalysisRunProperties(string description, string intentId, IntentContent intentContent, string analysisResult, string errorMessage, NetworkProvisioningState? provisioningState, IDictionary serializedAdditionalRawData) + { + Description = description; + IntentId = intentId; + IntentContent = intentContent; + AnalysisResult = analysisResult; + ErrorMessage = errorMessage; + ProvisioningState = provisioningState; + _serializedAdditionalRawData = serializedAdditionalRawData; + } + + /// Initializes a new instance of for deserialization. + internal ReachabilityAnalysisRunProperties() + { + } + + /// Gets or sets the description. + public string Description { get; set; } + /// Id of the intent resource to run analysis on. + public string IntentId { get; set; } + /// Intent information. + public IntentContent IntentContent { get; } + /// Gets the analysis result. + public string AnalysisResult { get; } + /// Gets the error message. + public string ErrorMessage { get; } + /// Provisioning states of a resource. + public NetworkProvisioningState? ProvisioningState { get; set; } + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ResourceBasics.Serialization.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ResourceBasics.Serialization.cs new file mode 100644 index 000000000000..1b94452a5fd2 --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ResourceBasics.Serialization.cs @@ -0,0 +1,158 @@ +// 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.Network.Models +{ + public partial class ResourceBasics : 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(ResourceBasics)} does not support writing '{format}' format."); + } + + if (Optional.IsDefined(ResourceId)) + { + writer.WritePropertyName("resourceId"u8); + writer.WriteStringValue(ResourceId); + } + if (Optional.IsCollectionDefined(AddressPrefixes)) + { + writer.WritePropertyName("addressPrefixes"u8); + writer.WriteStartArray(); + foreach (var item in AddressPrefixes) + { + writer.WriteStringValue(item); + } + writer.WriteEndArray(); + } + if (options.Format != "W" && _serializedAdditionalRawData != null) + { + foreach (var item in _serializedAdditionalRawData) + { + writer.WritePropertyName(item.Key); +#if NET6_0_OR_GREATER + writer.WriteRawValue(item.Value); +#else + using (JsonDocument document = JsonDocument.Parse(item.Value)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } + } + } + + ResourceBasics 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(ResourceBasics)} does not support reading '{format}' format."); + } + + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeResourceBasics(document.RootElement, options); + } + + internal static ResourceBasics DeserializeResourceBasics(JsonElement element, ModelReaderWriterOptions options = null) + { + options ??= ModelSerializationExtensions.WireOptions; + + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + ResourceIdentifier resourceId = default; + IReadOnlyList addressPrefixes = default; + IDictionary serializedAdditionalRawData = default; + Dictionary rawDataDictionary = new Dictionary(); + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("resourceId"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + resourceId = new ResourceIdentifier(property.Value.GetString()); + continue; + } + if (property.NameEquals("addressPrefixes"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(item.GetString()); + } + addressPrefixes = array; + continue; + } + if (options.Format != "W") + { + rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + } + } + serializedAdditionalRawData = rawDataDictionary; + return new ResourceBasics(resourceId, addressPrefixes ?? new ChangeTrackingList(), serializedAdditionalRawData); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + return ModelReaderWriter.Write(this, options); + default: + throw new FormatException($"The model {nameof(ResourceBasics)} does not support writing '{options.Format}' format."); + } + } + + ResourceBasics 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 DeserializeResourceBasics(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(ResourceBasics)} does not support reading '{options.Format}' format."); + } + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ResourceBasics.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ResourceBasics.cs new file mode 100644 index 000000000000..bd5b4b5c6fb2 --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/ResourceBasics.cs @@ -0,0 +1,71 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using Azure.Core; + +namespace Azure.ResourceManager.Network.Models +{ + /// Representation of basic resource information. + public partial class ResourceBasics + { + /// + /// Keeps track of any properties unknown to the library. + /// + /// To assign an object to the value of this property use . + /// + /// + /// To assign an already formatted json string to this property use . + /// + /// + /// Examples: + /// + /// + /// BinaryData.FromObjectAsJson("foo") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromString("\"foo\"") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromObjectAsJson(new { key = "value" }) + /// Creates a payload of { "key": "value" }. + /// + /// + /// BinaryData.FromString("{\"key\": \"value\"}") + /// Creates a payload of { "key": "value" }. + /// + /// + /// + /// + private IDictionary _serializedAdditionalRawData; + + /// Initializes a new instance of . + internal ResourceBasics() + { + AddressPrefixes = new ChangeTrackingList(); + } + + /// Initializes a new instance of . + /// ResourceId of the Azure resource. + /// List of IP address prefixes of the resource. + /// Keeps track of any properties unknown to the library. + internal ResourceBasics(ResourceIdentifier resourceId, IReadOnlyList addressPrefixes, IDictionary serializedAdditionalRawData) + { + ResourceId = resourceId; + AddressPrefixes = addressPrefixes; + _serializedAdditionalRawData = serializedAdditionalRawData; + } + + /// ResourceId of the Azure resource. + public ResourceIdentifier ResourceId { get; } + /// List of IP address prefixes of the resource. + public IReadOnlyList AddressPrefixes { get; } + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/StaticCidrList.Serialization.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/StaticCidrList.Serialization.cs new file mode 100644 index 000000000000..a920ff7e06c9 --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/StaticCidrList.Serialization.cs @@ -0,0 +1,154 @@ +// 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.Network.Models +{ + internal partial class StaticCidrList : 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(StaticCidrList)} does not support writing '{format}' format."); + } + + if (Optional.IsCollectionDefined(Value)) + { + writer.WritePropertyName("value"u8); + writer.WriteStartArray(); + foreach (var item in Value) + { + writer.WriteObjectValue(item, options); + } + writer.WriteEndArray(); + } + if (Optional.IsDefined(NextLink)) + { + writer.WritePropertyName("nextLink"u8); + writer.WriteStringValue(NextLink); + } + if (options.Format != "W" && _serializedAdditionalRawData != null) + { + foreach (var item in _serializedAdditionalRawData) + { + writer.WritePropertyName(item.Key); +#if NET6_0_OR_GREATER + writer.WriteRawValue(item.Value); +#else + using (JsonDocument document = JsonDocument.Parse(item.Value)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } + } + } + + StaticCidrList 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(StaticCidrList)} does not support reading '{format}' format."); + } + + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeStaticCidrList(document.RootElement, options); + } + + internal static StaticCidrList DeserializeStaticCidrList(JsonElement element, ModelReaderWriterOptions options = null) + { + options ??= ModelSerializationExtensions.WireOptions; + + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + IReadOnlyList value = default; + string nextLink = default; + IDictionary serializedAdditionalRawData = default; + Dictionary rawDataDictionary = new Dictionary(); + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("value"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(StaticCidrData.DeserializeStaticCidrData(item, options)); + } + value = array; + continue; + } + if (property.NameEquals("nextLink"u8)) + { + nextLink = property.Value.GetString(); + continue; + } + if (options.Format != "W") + { + rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + } + } + serializedAdditionalRawData = rawDataDictionary; + return new StaticCidrList(value ?? new ChangeTrackingList(), nextLink, serializedAdditionalRawData); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + return ModelReaderWriter.Write(this, options); + default: + throw new FormatException($"The model {nameof(StaticCidrList)} does not support writing '{options.Format}' format."); + } + } + + StaticCidrList 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 DeserializeStaticCidrList(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(StaticCidrList)} does not support reading '{options.Format}' format."); + } + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/StaticCidrList.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/StaticCidrList.cs new file mode 100644 index 000000000000..f5aff6a420c8 --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/StaticCidrList.cs @@ -0,0 +1,70 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; + +namespace Azure.ResourceManager.Network.Models +{ + /// List of StaticCidr. + internal partial class StaticCidrList + { + /// + /// Keeps track of any properties unknown to the library. + /// + /// To assign an object to the value of this property use . + /// + /// + /// To assign an already formatted json string to this property use . + /// + /// + /// Examples: + /// + /// + /// BinaryData.FromObjectAsJson("foo") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromString("\"foo\"") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromObjectAsJson(new { key = "value" }) + /// Creates a payload of { "key": "value" }. + /// + /// + /// BinaryData.FromString("{\"key\": \"value\"}") + /// Creates a payload of { "key": "value" }. + /// + /// + /// + /// + private IDictionary _serializedAdditionalRawData; + + /// Initializes a new instance of . + internal StaticCidrList() + { + Value = new ChangeTrackingList(); + } + + /// Initializes a new instance of . + /// + /// The link used to get the next page of operations. + /// Keeps track of any properties unknown to the library. + internal StaticCidrList(IReadOnlyList value, string nextLink, IDictionary serializedAdditionalRawData) + { + Value = value; + NextLink = nextLink; + _serializedAdditionalRawData = serializedAdditionalRawData; + } + + /// Gets the value. + public IReadOnlyList Value { get; } + /// The link used to get the next page of operations. + public string NextLink { get; } + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/StaticCidrProperties.Serialization.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/StaticCidrProperties.Serialization.cs new file mode 100644 index 000000000000..247af41e664c --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/StaticCidrProperties.Serialization.cs @@ -0,0 +1,197 @@ +// 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.Network.Models +{ + public partial class StaticCidrProperties : 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(StaticCidrProperties)} does not support writing '{format}' format."); + } + + if (Optional.IsDefined(Description)) + { + writer.WritePropertyName("description"u8); + writer.WriteStringValue(Description); + } + if (Optional.IsDefined(NumberOfIPAddressesToAllocate)) + { + writer.WritePropertyName("numberOfIPAddressesToAllocate"u8); + writer.WriteStringValue(NumberOfIPAddressesToAllocate); + } + if (Optional.IsCollectionDefined(AddressPrefixes)) + { + writer.WritePropertyName("addressPrefixes"u8); + writer.WriteStartArray(); + foreach (var item in AddressPrefixes) + { + writer.WriteStringValue(item); + } + writer.WriteEndArray(); + } + if (options.Format != "W" && Optional.IsDefined(TotalNumberOfIPAddresses)) + { + writer.WritePropertyName("totalNumberOfIPAddresses"u8); + writer.WriteStringValue(TotalNumberOfIPAddresses); + } + if (Optional.IsDefined(ProvisioningState)) + { + writer.WritePropertyName("provisioningState"u8); + writer.WriteStringValue(ProvisioningState.Value.ToString()); + } + if (options.Format != "W" && _serializedAdditionalRawData != null) + { + foreach (var item in _serializedAdditionalRawData) + { + writer.WritePropertyName(item.Key); +#if NET6_0_OR_GREATER + writer.WriteRawValue(item.Value); +#else + using (JsonDocument document = JsonDocument.Parse(item.Value)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } + } + } + + StaticCidrProperties 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(StaticCidrProperties)} does not support reading '{format}' format."); + } + + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeStaticCidrProperties(document.RootElement, options); + } + + internal static StaticCidrProperties DeserializeStaticCidrProperties(JsonElement element, ModelReaderWriterOptions options = null) + { + options ??= ModelSerializationExtensions.WireOptions; + + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + string description = default; + string numberOfIPAddressesToAllocate = default; + IList addressPrefixes = default; + string totalNumberOfIPAddresses = default; + NetworkProvisioningState? provisioningState = default; + IDictionary serializedAdditionalRawData = default; + Dictionary rawDataDictionary = new Dictionary(); + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("description"u8)) + { + description = property.Value.GetString(); + continue; + } + if (property.NameEquals("numberOfIPAddressesToAllocate"u8)) + { + numberOfIPAddressesToAllocate = property.Value.GetString(); + continue; + } + if (property.NameEquals("addressPrefixes"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(item.GetString()); + } + addressPrefixes = array; + continue; + } + if (property.NameEquals("totalNumberOfIPAddresses"u8)) + { + totalNumberOfIPAddresses = property.Value.GetString(); + continue; + } + if (property.NameEquals("provisioningState"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + provisioningState = new NetworkProvisioningState(property.Value.GetString()); + continue; + } + if (options.Format != "W") + { + rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + } + } + serializedAdditionalRawData = rawDataDictionary; + return new StaticCidrProperties( + description, + numberOfIPAddressesToAllocate, + addressPrefixes ?? new ChangeTrackingList(), + totalNumberOfIPAddresses, + provisioningState, + serializedAdditionalRawData); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + return ModelReaderWriter.Write(this, options); + default: + throw new FormatException($"The model {nameof(StaticCidrProperties)} does not support writing '{options.Format}' format."); + } + } + + StaticCidrProperties 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 DeserializeStaticCidrProperties(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(StaticCidrProperties)} does not support reading '{options.Format}' format."); + } + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/StaticCidrProperties.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/StaticCidrProperties.cs new file mode 100644 index 000000000000..9614d823e972 --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/StaticCidrProperties.cs @@ -0,0 +1,82 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; + +namespace Azure.ResourceManager.Network.Models +{ + /// Properties of static CIDR resource. + public partial class StaticCidrProperties + { + /// + /// 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 StaticCidrProperties() + { + AddressPrefixes = new ChangeTrackingList(); + } + + /// Initializes a new instance of . + /// + /// Number of IP addresses to allocate for a static CIDR resource. The IP addresses will be assigned based on IpamPools available space. + /// List of IP address prefixes of the resource. + /// Total number of IP addresses allocated for the static CIDR resource. + /// Provisioning states of a resource. + /// Keeps track of any properties unknown to the library. + internal StaticCidrProperties(string description, string numberOfIPAddressesToAllocate, IList addressPrefixes, string totalNumberOfIPAddresses, NetworkProvisioningState? provisioningState, IDictionary serializedAdditionalRawData) + { + Description = description; + NumberOfIPAddressesToAllocate = numberOfIPAddressesToAllocate; + AddressPrefixes = addressPrefixes; + TotalNumberOfIPAddresses = totalNumberOfIPAddresses; + ProvisioningState = provisioningState; + _serializedAdditionalRawData = serializedAdditionalRawData; + } + + /// Gets or sets the description. + public string Description { get; set; } + /// Number of IP addresses to allocate for a static CIDR resource. The IP addresses will be assigned based on IpamPools available space. + public string NumberOfIPAddressesToAllocate { get; set; } + /// List of IP address prefixes of the resource. + public IList AddressPrefixes { get; } + /// Total number of IP addresses allocated for the static CIDR resource. + public string TotalNumberOfIPAddresses { get; } + /// Provisioning states of a resource. + public NetworkProvisioningState? ProvisioningState { get; set; } + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/VerifierWorkspaceListResult.Serialization.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/VerifierWorkspaceListResult.Serialization.cs new file mode 100644 index 000000000000..ce7d822d2819 --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/VerifierWorkspaceListResult.Serialization.cs @@ -0,0 +1,154 @@ +// 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.Network.Models +{ + internal partial class VerifierWorkspaceListResult : 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(VerifierWorkspaceListResult)} does not support writing '{format}' format."); + } + + if (Optional.IsCollectionDefined(Value)) + { + writer.WritePropertyName("value"u8); + writer.WriteStartArray(); + foreach (var item in Value) + { + writer.WriteObjectValue(item, options); + } + writer.WriteEndArray(); + } + if (Optional.IsDefined(NextLink)) + { + writer.WritePropertyName("nextLink"u8); + writer.WriteStringValue(NextLink); + } + if (options.Format != "W" && _serializedAdditionalRawData != null) + { + foreach (var item in _serializedAdditionalRawData) + { + writer.WritePropertyName(item.Key); +#if NET6_0_OR_GREATER + writer.WriteRawValue(item.Value); +#else + using (JsonDocument document = JsonDocument.Parse(item.Value)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } + } + } + + VerifierWorkspaceListResult 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(VerifierWorkspaceListResult)} does not support reading '{format}' format."); + } + + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeVerifierWorkspaceListResult(document.RootElement, options); + } + + internal static VerifierWorkspaceListResult DeserializeVerifierWorkspaceListResult(JsonElement element, ModelReaderWriterOptions options = null) + { + options ??= ModelSerializationExtensions.WireOptions; + + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + IReadOnlyList value = default; + string nextLink = default; + IDictionary serializedAdditionalRawData = default; + Dictionary rawDataDictionary = new Dictionary(); + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("value"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(VerifierWorkspaceData.DeserializeVerifierWorkspaceData(item, options)); + } + value = array; + continue; + } + if (property.NameEquals("nextLink"u8)) + { + nextLink = property.Value.GetString(); + continue; + } + if (options.Format != "W") + { + rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + } + } + serializedAdditionalRawData = rawDataDictionary; + return new VerifierWorkspaceListResult(value ?? new ChangeTrackingList(), nextLink, serializedAdditionalRawData); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + return ModelReaderWriter.Write(this, options); + default: + throw new FormatException($"The model {nameof(VerifierWorkspaceListResult)} does not support writing '{options.Format}' format."); + } + } + + VerifierWorkspaceListResult 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 DeserializeVerifierWorkspaceListResult(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(VerifierWorkspaceListResult)} does not support reading '{options.Format}' format."); + } + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/VerifierWorkspaceListResult.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/VerifierWorkspaceListResult.cs new file mode 100644 index 000000000000..5e3ee8d9c405 --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/VerifierWorkspaceListResult.cs @@ -0,0 +1,70 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; + +namespace Azure.ResourceManager.Network.Models +{ + /// A list of Verifier Workspace. + internal partial class VerifierWorkspaceListResult + { + /// + /// Keeps track of any properties unknown to the library. + /// + /// To assign an object to the value of this property use . + /// + /// + /// To assign an already formatted json string to this property use . + /// + /// + /// Examples: + /// + /// + /// BinaryData.FromObjectAsJson("foo") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromString("\"foo\"") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromObjectAsJson(new { key = "value" }) + /// Creates a payload of { "key": "value" }. + /// + /// + /// BinaryData.FromString("{\"key\": \"value\"}") + /// Creates a payload of { "key": "value" }. + /// + /// + /// + /// + private IDictionary _serializedAdditionalRawData; + + /// Initializes a new instance of . + internal VerifierWorkspaceListResult() + { + Value = new ChangeTrackingList(); + } + + /// Initializes a new instance of . + /// Gets a page of Verifier Workspaces. + /// Gets the URL to get the next page of results. + /// Keeps track of any properties unknown to the library. + internal VerifierWorkspaceListResult(IReadOnlyList value, string nextLink, IDictionary serializedAdditionalRawData) + { + Value = value; + NextLink = nextLink; + _serializedAdditionalRawData = serializedAdditionalRawData; + } + + /// Gets a page of Verifier Workspaces. + public IReadOnlyList Value { get; } + /// Gets the URL to get the next page of results. + public string NextLink { get; } + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/VerifierWorkspacePatch.Serialization.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/VerifierWorkspacePatch.Serialization.cs new file mode 100644 index 000000000000..82861da22181 --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/VerifierWorkspacePatch.Serialization.cs @@ -0,0 +1,159 @@ +// 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.Network.Models +{ + public partial class VerifierWorkspacePatch : 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(VerifierWorkspacePatch)} does not support writing '{format}' format."); + } + + if (Optional.IsCollectionDefined(Tags)) + { + writer.WritePropertyName("tags"u8); + writer.WriteStartObject(); + foreach (var item in Tags) + { + writer.WritePropertyName(item.Key); + writer.WriteStringValue(item.Value); + } + writer.WriteEndObject(); + } + if (Optional.IsDefined(Properties)) + { + writer.WritePropertyName("properties"u8); + writer.WriteObjectValue(Properties, options); + } + 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 + } + } + } + + VerifierWorkspacePatch 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(VerifierWorkspacePatch)} does not support reading '{format}' format."); + } + + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeVerifierWorkspacePatch(document.RootElement, options); + } + + internal static VerifierWorkspacePatch DeserializeVerifierWorkspacePatch(JsonElement element, ModelReaderWriterOptions options = null) + { + options ??= ModelSerializationExtensions.WireOptions; + + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + IDictionary tags = default; + VerifierWorkspaceUpdateProperties properties = default; + IDictionary serializedAdditionalRawData = default; + Dictionary rawDataDictionary = new Dictionary(); + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("tags"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + Dictionary dictionary = new Dictionary(); + foreach (var property0 in property.Value.EnumerateObject()) + { + dictionary.Add(property0.Name, property0.Value.GetString()); + } + tags = dictionary; + continue; + } + if (property.NameEquals("properties"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + properties = VerifierWorkspaceUpdateProperties.DeserializeVerifierWorkspaceUpdateProperties(property.Value, options); + continue; + } + if (options.Format != "W") + { + rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + } + } + serializedAdditionalRawData = rawDataDictionary; + return new VerifierWorkspacePatch(tags ?? new ChangeTrackingDictionary(), properties, serializedAdditionalRawData); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + return ModelReaderWriter.Write(this, options); + default: + throw new FormatException($"The model {nameof(VerifierWorkspacePatch)} does not support writing '{options.Format}' format."); + } + } + + VerifierWorkspacePatch 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 DeserializeVerifierWorkspacePatch(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(VerifierWorkspacePatch)} does not support reading '{options.Format}' format."); + } + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/VerifierWorkspacePatch.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/VerifierWorkspacePatch.cs new file mode 100644 index 000000000000..9d4309d0932b --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/VerifierWorkspacePatch.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.Network.Models +{ + /// Represents the VerifierWorkspace update API request interface. + public partial class VerifierWorkspacePatch + { + /// + /// 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 VerifierWorkspacePatch() + { + Tags = new ChangeTrackingDictionary(); + } + + /// Initializes a new instance of . + /// Dictionary of <string>. + /// Represents the VerifierWorkspace update properties. + /// Keeps track of any properties unknown to the library. + internal VerifierWorkspacePatch(IDictionary tags, VerifierWorkspaceUpdateProperties properties, IDictionary serializedAdditionalRawData) + { + Tags = tags; + Properties = properties; + _serializedAdditionalRawData = serializedAdditionalRawData; + } + + /// Dictionary of <string>. + public IDictionary Tags { get; } + /// Represents the VerifierWorkspace update properties. + internal VerifierWorkspaceUpdateProperties Properties { get; set; } + /// Gets or sets the verifier workspace update description. + public string VerifierWorkspaceUpdateDescription + { + get => Properties is null ? default : Properties.Description; + set + { + if (Properties is null) + Properties = new VerifierWorkspaceUpdateProperties(); + Properties.Description = value; + } + } + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/VerifierWorkspaceProperties.Serialization.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/VerifierWorkspaceProperties.Serialization.cs new file mode 100644 index 000000000000..6f318394e68e --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/VerifierWorkspaceProperties.Serialization.cs @@ -0,0 +1,144 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.Network.Models +{ + public partial class VerifierWorkspaceProperties : 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(VerifierWorkspaceProperties)} does not support writing '{format}' format."); + } + + if (Optional.IsDefined(Description)) + { + writer.WritePropertyName("description"u8); + writer.WriteStringValue(Description); + } + if (Optional.IsDefined(ProvisioningState)) + { + writer.WritePropertyName("provisioningState"u8); + writer.WriteStringValue(ProvisioningState.Value.ToString()); + } + if (options.Format != "W" && _serializedAdditionalRawData != null) + { + foreach (var item in _serializedAdditionalRawData) + { + writer.WritePropertyName(item.Key); +#if NET6_0_OR_GREATER + writer.WriteRawValue(item.Value); +#else + using (JsonDocument document = JsonDocument.Parse(item.Value)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } + } + } + + VerifierWorkspaceProperties 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(VerifierWorkspaceProperties)} does not support reading '{format}' format."); + } + + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeVerifierWorkspaceProperties(document.RootElement, options); + } + + internal static VerifierWorkspaceProperties DeserializeVerifierWorkspaceProperties(JsonElement element, ModelReaderWriterOptions options = null) + { + options ??= ModelSerializationExtensions.WireOptions; + + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + string description = default; + NetworkProvisioningState? provisioningState = default; + IDictionary serializedAdditionalRawData = default; + Dictionary rawDataDictionary = new Dictionary(); + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("description"u8)) + { + description = property.Value.GetString(); + continue; + } + if (property.NameEquals("provisioningState"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + provisioningState = new NetworkProvisioningState(property.Value.GetString()); + continue; + } + if (options.Format != "W") + { + rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + } + } + serializedAdditionalRawData = rawDataDictionary; + return new VerifierWorkspaceProperties(description, provisioningState, serializedAdditionalRawData); + } + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + { + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + + switch (format) + { + case "J": + return ModelReaderWriter.Write(this, options); + default: + throw new FormatException($"The model {nameof(VerifierWorkspaceProperties)} does not support writing '{options.Format}' format."); + } + } + + VerifierWorkspaceProperties 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 DeserializeVerifierWorkspaceProperties(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(VerifierWorkspaceProperties)} does not support reading '{options.Format}' format."); + } + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/VerifierWorkspaceProperties.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/VerifierWorkspaceProperties.cs new file mode 100644 index 000000000000..38426b94ca00 --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/VerifierWorkspaceProperties.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.Network.Models +{ + /// Properties of Verifier Workspace resource. + public partial class VerifierWorkspaceProperties + { + /// + /// 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 VerifierWorkspaceProperties() + { + } + + /// Initializes a new instance of . + /// + /// Provisioning states of a resource. + /// Keeps track of any properties unknown to the library. + internal VerifierWorkspaceProperties(string description, NetworkProvisioningState? provisioningState, IDictionary serializedAdditionalRawData) + { + Description = description; + ProvisioningState = provisioningState; + _serializedAdditionalRawData = serializedAdditionalRawData; + } + + /// Gets or sets the description. + public string Description { get; set; } + /// Provisioning states of a resource. + public NetworkProvisioningState? ProvisioningState { get; set; } + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/VerifierWorkspaceUpdateProperties.Serialization.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/VerifierWorkspaceUpdateProperties.Serialization.cs new file mode 100644 index 000000000000..616418f38f2b --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/VerifierWorkspaceUpdateProperties.Serialization.cs @@ -0,0 +1,129 @@ +// 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.Network.Models +{ + internal partial class VerifierWorkspaceUpdateProperties : 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(VerifierWorkspaceUpdateProperties)} does not support writing '{format}' format."); + } + + if (Optional.IsDefined(Description)) + { + writer.WritePropertyName("description"u8); + writer.WriteStringValue(Description); + } + 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 + } + } + } + + VerifierWorkspaceUpdateProperties 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(VerifierWorkspaceUpdateProperties)} does not support reading '{format}' format."); + } + + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeVerifierWorkspaceUpdateProperties(document.RootElement, options); + } + + internal static VerifierWorkspaceUpdateProperties DeserializeVerifierWorkspaceUpdateProperties(JsonElement element, ModelReaderWriterOptions options = null) + { + options ??= ModelSerializationExtensions.WireOptions; + + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + string description = default; + IDictionary serializedAdditionalRawData = default; + Dictionary rawDataDictionary = new Dictionary(); + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("description"u8)) + { + description = property.Value.GetString(); + continue; + } + if (options.Format != "W") + { + rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + } + } + serializedAdditionalRawData = rawDataDictionary; + return new VerifierWorkspaceUpdateProperties(description, 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(VerifierWorkspaceUpdateProperties)} does not support writing '{options.Format}' format."); + } + } + + VerifierWorkspaceUpdateProperties 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 DeserializeVerifierWorkspaceUpdateProperties(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(VerifierWorkspaceUpdateProperties)} does not support reading '{options.Format}' format."); + } + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/VerifierWorkspaceUpdateProperties.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/VerifierWorkspaceUpdateProperties.cs new file mode 100644 index 000000000000..f23316396bcf --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/VerifierWorkspaceUpdateProperties.cs @@ -0,0 +1,65 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; + +namespace Azure.ResourceManager.Network.Models +{ + /// Represents the VerifierWorkspace update properties. + internal partial class VerifierWorkspaceUpdateProperties + { + /// + /// 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 VerifierWorkspaceUpdateProperties() + { + } + + /// Initializes a new instance of . + /// + /// Keeps track of any properties unknown to the library. + internal VerifierWorkspaceUpdateProperties(string description, IDictionary serializedAdditionalRawData) + { + Description = description; + _serializedAdditionalRawData = serializedAdditionalRawData; + } + + /// Gets or sets the description. + public string Description { get; set; } + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/VirtualApplianceDelegationProperties.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/VirtualApplianceDelegationProperties.cs index 6044bfad3ba0..34c52d2fd2ee 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/VirtualApplianceDelegationProperties.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/VirtualApplianceDelegationProperties.cs @@ -52,7 +52,7 @@ public VirtualApplianceDelegationProperties() /// Initializes a new instance of . /// The service name to which the NVA is delegated. - /// The current provisioning state. + /// Provisioning states of a resource. /// Keeps track of any properties unknown to the library. internal VirtualApplianceDelegationProperties(string serviceName, NetworkProvisioningState? provisioningState, IDictionary serializedAdditionalRawData) { @@ -63,7 +63,7 @@ internal VirtualApplianceDelegationProperties(string serviceName, NetworkProvisi /// The service name to which the NVA is delegated. public string ServiceName { get; set; } - /// The current provisioning state. + /// Provisioning states of a resource. public NetworkProvisioningState? ProvisioningState { get; } } } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/VngClientConnectionConfiguration.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/VngClientConnectionConfiguration.cs index 2cd26ef12f62..7f27e6b8e67c 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/VngClientConnectionConfiguration.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/VngClientConnectionConfiguration.cs @@ -41,18 +41,7 @@ internal VngClientConnectionConfiguration(ResourceIdentifier id, string name, Re /// A unique read-only string that changes whenever the resource is updated. public ETag? ETag { get; } /// The reference to the address space resource which represents Address space for P2S VpnClient. - internal AddressSpace VpnClientAddressPool { get; set; } - /// A list of address blocks reserved for this virtual network in CIDR notation. - public IList VpnClientAddressPrefixes - { - get - { - if (VpnClientAddressPool is null) - VpnClientAddressPool = new AddressSpace(); - return VpnClientAddressPool.AddressPrefixes; - } - } - + public AddressSpace VpnClientAddressPool { get; set; } /// List of references to virtualNetworkGatewayPolicyGroups. public IList VirtualNetworkGatewayPolicyGroups { get; } /// The provisioning state of the VngClientConnectionConfiguration resource. diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/VpnClientConfiguration.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/VpnClientConfiguration.cs index 78e7c7951e7f..b03018e842ed 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/VpnClientConfiguration.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/Models/VpnClientConfiguration.cs @@ -91,18 +91,7 @@ internal VpnClientConfiguration(AddressSpace vpnClientAddressPool, IList The reference to the address space resource which represents Address space for P2S VpnClient. - internal AddressSpace VpnClientAddressPool { get; set; } - /// A list of address blocks reserved for this virtual network in CIDR notation. - public IList VpnClientAddressPrefixes - { - get - { - if (VpnClientAddressPool is null) - VpnClientAddressPool = new AddressSpace(); - return VpnClientAddressPool.AddressPrefixes; - } - } - + public AddressSpace VpnClientAddressPool { get; set; } /// VpnClientRootCertificate for virtual network gateway. public IList VpnClientRootCertificates { get; } /// VpnClientRevokedCertificate for Virtual network gateway. diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/NatGatewayCollection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/NatGatewayCollection.cs index e96262cd4654..541849a019d0 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/NatGatewayCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/NatGatewayCollection.cs @@ -65,7 +65,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -114,7 +114,7 @@ public virtual async Task> CreateOrUpdateAsync( /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -163,7 +163,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil waitUnt /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -209,7 +209,7 @@ public virtual async Task> GetAsync(string natGatew /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -255,7 +255,7 @@ public virtual Response Get(string natGatewayName, string ex /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -285,7 +285,7 @@ public virtual AsyncPageable GetAllAsync(CancellationToken c /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -315,7 +315,7 @@ public virtual Pageable GetAll(CancellationToken cancellatio /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -359,7 +359,7 @@ public virtual async Task> ExistsAsync(string natGatewayName, str /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -403,7 +403,7 @@ public virtual Response Exists(string natGatewayName, string expand = null /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -449,7 +449,7 @@ public virtual async Task> GetIfExistsAsync /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/NatGatewayResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/NatGatewayResource.cs index 0efc19b4989b..9db8e6d6a455 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/NatGatewayResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/NatGatewayResource.cs @@ -103,7 +103,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -144,7 +144,7 @@ public virtual async Task> GetAsync(string expand = /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -185,7 +185,7 @@ public virtual Response Get(string expand = null, Cancellati /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -227,7 +227,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -269,7 +269,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -311,7 +311,7 @@ public virtual async Task> UpdateAsync(NetworkTagsO /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -353,7 +353,7 @@ public virtual Response Update(NetworkTagsObject networkTags /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -415,7 +415,7 @@ public virtual async Task> AddTagAsync(string key, /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -477,7 +477,7 @@ public virtual Response AddTag(string key, string value, Can /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -534,7 +534,7 @@ public virtual async Task> SetTagsAsync(IDictionary /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -591,7 +591,7 @@ public virtual Response SetTags(IDictionary /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -651,7 +651,7 @@ public virtual async Task> RemoveTagAsync(string ke /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkGroupCollection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkGroupCollection.cs index 442a325be63c..e50855eddd59 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkGroupCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkGroupCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -116,7 +116,7 @@ public virtual async Task> CreateOrUpdateAsyn /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -168,7 +168,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil waitU /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -213,7 +213,7 @@ public virtual async Task> GetAsync(string networ /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -258,7 +258,7 @@ public virtual Response Get(string networkGroupName, Cance /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -290,7 +290,7 @@ public virtual AsyncPageable GetAllAsync(int? top = null, /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -322,7 +322,7 @@ public virtual Pageable GetAll(int? top = null, string ski /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -365,7 +365,7 @@ public virtual async Task> ExistsAsync(string networkGroupName, C /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -408,7 +408,7 @@ public virtual Response Exists(string networkGroupName, CancellationToken /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -453,7 +453,7 @@ public virtual async Task> GetIfExistsAsy /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkGroupResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkGroupResource.cs index 1c8438aeab5a..ad7235d0d5bc 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkGroupResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkGroupResource.cs @@ -108,7 +108,7 @@ public virtual NetworkGroupStaticMemberCollection GetNetworkGroupStaticMembers() /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -139,7 +139,7 @@ public virtual async Task> GetNetwork /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -170,7 +170,7 @@ public virtual Response GetNetworkGroupStaticM /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -210,7 +210,7 @@ public virtual async Task> GetAsync(CancellationT /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -250,7 +250,7 @@ public virtual Response Get(CancellationToken cancellation /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -293,7 +293,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, bool? f /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -336,7 +336,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, bool? force = null, Canc /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -385,7 +385,7 @@ public virtual async Task> UpdateAsync(WaitUn /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkGroupStaticMemberCollection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkGroupStaticMemberCollection.cs index c6bb0f8fce91..aec0993e74f0 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkGroupStaticMemberCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkGroupStaticMemberCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -115,7 +115,7 @@ public virtual async Task> Create /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -166,7 +166,7 @@ public virtual ArmOperation CreateOrUpdate(Wai /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -211,7 +211,7 @@ public virtual async Task> GetAsync(s /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -256,7 +256,7 @@ public virtual Response Get(string staticMembe /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -288,7 +288,7 @@ public virtual AsyncPageable GetAllAsync(int? /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -320,7 +320,7 @@ public virtual Pageable GetAll(int? top = null /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -363,7 +363,7 @@ public virtual async Task> ExistsAsync(string staticMemberName, C /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -406,7 +406,7 @@ public virtual Response Exists(string staticMemberName, CancellationToken /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -451,7 +451,7 @@ public virtual async Task> Ge /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkGroupStaticMemberResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkGroupStaticMemberResource.cs index 1f6be3a1684c..356873311804 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkGroupStaticMemberResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkGroupStaticMemberResource.cs @@ -102,7 +102,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -142,7 +142,7 @@ public virtual async Task> GetAsync(C /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -182,7 +182,7 @@ public virtual Response Get(CancellationToken /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -226,7 +226,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -270,7 +270,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -318,7 +318,7 @@ public virtual async Task> Update /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkInterfaceCollection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkInterfaceCollection.cs index 64deea28b54b..6c2b4a239d66 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkInterfaceCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkInterfaceCollection.cs @@ -65,7 +65,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -114,7 +114,7 @@ public virtual async Task> CreateOrUpdate /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -163,7 +163,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil w /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -209,7 +209,7 @@ public virtual async Task> GetAsync(string ne /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -255,7 +255,7 @@ public virtual Response Get(string networkInterfaceNam /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -285,7 +285,7 @@ public virtual AsyncPageable GetAllAsync(CancellationT /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -315,7 +315,7 @@ public virtual Pageable GetAll(CancellationToken cance /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -359,7 +359,7 @@ public virtual async Task> ExistsAsync(string networkInterfaceNam /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -403,7 +403,7 @@ public virtual Response Exists(string networkInterfaceName, string expand /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -449,7 +449,7 @@ public virtual async Task> GetIfExist /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkInterfaceData.Serialization.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkInterfaceData.Serialization.cs index 022e89974521..89c41fefe2ba 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkInterfaceData.Serialization.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkInterfaceData.Serialization.cs @@ -104,6 +104,11 @@ protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWri writer.WritePropertyName("vnetEncryptionSupported"u8); writer.WriteBooleanValue(VnetEncryptionSupported.Value); } + if (options.Format != "W" && Optional.IsDefined(DefaultOutboundConnectivityEnabled)) + { + writer.WritePropertyName("defaultOutboundConnectivityEnabled"u8); + writer.WriteBooleanValue(DefaultOutboundConnectivityEnabled.Value); + } if (Optional.IsDefined(EnableAcceleratedNetworking)) { writer.WritePropertyName("enableAcceleratedNetworking"u8); @@ -213,6 +218,7 @@ internal static NetworkInterfaceData DeserializeNetworkInterfaceData(JsonElement string macAddress = default; bool? primary = default; bool? vnetEncryptionSupported = default; + bool? defaultOutboundConnectivityEnabled = default; bool? enableAcceleratedNetworking = default; bool? disableTcpStateTracking = default; bool? enableIPForwarding = default; @@ -390,6 +396,15 @@ internal static NetworkInterfaceData DeserializeNetworkInterfaceData(JsonElement vnetEncryptionSupported = property0.Value.GetBoolean(); continue; } + if (property0.NameEquals("defaultOutboundConnectivityEnabled"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + defaultOutboundConnectivityEnabled = property0.Value.GetBoolean(); + continue; + } if (property0.NameEquals("enableAcceleratedNetworking"u8)) { if (property0.Value.ValueKind == JsonValueKind.Null) @@ -535,6 +550,7 @@ internal static NetworkInterfaceData DeserializeNetworkInterfaceData(JsonElement macAddress, primary, vnetEncryptionSupported, + defaultOutboundConnectivityEnabled, enableAcceleratedNetworking, disableTcpStateTracking, enableIPForwarding, diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkInterfaceData.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkInterfaceData.cs index f7bd915f8ab3..43282f4a2176 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkInterfaceData.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkInterfaceData.cs @@ -45,6 +45,7 @@ public NetworkInterfaceData() /// The MAC address of the network interface. /// Whether this is a primary network interface on a virtual machine. /// Whether the virtual machine this nic is attached to supports encryption. + /// Whether default outbound connectivity for nic was configured or not. /// If the network interface is configured for accelerated networking. Not applicable to VM sizes which require accelerated networking. /// Indicates whether to disable tcp state tracking. /// Indicates whether IP forwarding is enabled on this network interface. @@ -58,7 +59,7 @@ public NetworkInterfaceData() /// Migration phase of Network Interface resource. /// Auxiliary mode of Network Interface resource. /// Auxiliary sku of Network Interface resource. - internal NetworkInterfaceData(ResourceIdentifier id, string name, ResourceType? resourceType, AzureLocation? location, IDictionary tags, IDictionary serializedAdditionalRawData, ExtendedLocation extendedLocation, ETag? etag, WritableSubResource virtualMachine, NetworkSecurityGroupData networkSecurityGroup, PrivateEndpointData privateEndpoint, IList ipConfigurations, IReadOnlyList tapConfigurations, NetworkInterfaceDnsSettings dnsSettings, string macAddress, bool? primary, bool? vnetEncryptionSupported, bool? enableAcceleratedNetworking, bool? disableTcpStateTracking, bool? enableIPForwarding, IReadOnlyList hostedWorkloads, WritableSubResource dscpConfiguration, Guid? resourceGuid, NetworkProvisioningState? provisioningState, string workloadType, NetworkInterfaceNicType? nicType, PrivateLinkServiceData privateLinkService, NetworkInterfaceMigrationPhase? migrationPhase, NetworkInterfaceAuxiliaryMode? auxiliaryMode, NetworkInterfaceAuxiliarySku? auxiliarySku) : base(id, name, resourceType, location, tags, serializedAdditionalRawData) + internal NetworkInterfaceData(ResourceIdentifier id, string name, ResourceType? resourceType, AzureLocation? location, IDictionary tags, IDictionary serializedAdditionalRawData, ExtendedLocation extendedLocation, ETag? etag, WritableSubResource virtualMachine, NetworkSecurityGroupData networkSecurityGroup, PrivateEndpointData privateEndpoint, IList ipConfigurations, IReadOnlyList tapConfigurations, NetworkInterfaceDnsSettings dnsSettings, string macAddress, bool? primary, bool? vnetEncryptionSupported, bool? defaultOutboundConnectivityEnabled, bool? enableAcceleratedNetworking, bool? disableTcpStateTracking, bool? enableIPForwarding, IReadOnlyList hostedWorkloads, WritableSubResource dscpConfiguration, Guid? resourceGuid, NetworkProvisioningState? provisioningState, string workloadType, NetworkInterfaceNicType? nicType, PrivateLinkServiceData privateLinkService, NetworkInterfaceMigrationPhase? migrationPhase, NetworkInterfaceAuxiliaryMode? auxiliaryMode, NetworkInterfaceAuxiliarySku? auxiliarySku) : base(id, name, resourceType, location, tags, serializedAdditionalRawData) { ExtendedLocation = extendedLocation; ETag = etag; @@ -71,6 +72,7 @@ internal NetworkInterfaceData(ResourceIdentifier id, string name, ResourceType? MacAddress = macAddress; Primary = primary; VnetEncryptionSupported = vnetEncryptionSupported; + DefaultOutboundConnectivityEnabled = defaultOutboundConnectivityEnabled; EnableAcceleratedNetworking = enableAcceleratedNetworking; DisableTcpStateTracking = disableTcpStateTracking; EnableIPForwarding = enableIPForwarding; @@ -114,6 +116,8 @@ public ResourceIdentifier VirtualMachineId public bool? Primary { get; } /// Whether the virtual machine this nic is attached to supports encryption. public bool? VnetEncryptionSupported { get; } + /// Whether default outbound connectivity for nic was configured or not. + public bool? DefaultOutboundConnectivityEnabled { get; } /// If the network interface is configured for accelerated networking. Not applicable to VM sizes which require accelerated networking. public bool? EnableAcceleratedNetworking { get; set; } /// Indicates whether to disable tcp state tracking. diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkInterfaceIPConfigurationCollection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkInterfaceIPConfigurationCollection.cs index 741596b6053a..1e5f80031f6a 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkInterfaceIPConfigurationCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkInterfaceIPConfigurationCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -109,7 +109,7 @@ public virtual async Task> Get /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -154,7 +154,7 @@ public virtual Response Get(string ipCo /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -184,7 +184,7 @@ public virtual AsyncPageable GetAllAsyn /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -214,7 +214,7 @@ public virtual Pageable GetAll(Cancella /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -257,7 +257,7 @@ public virtual async Task> ExistsAsync(string ipConfigurationName /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -300,7 +300,7 @@ public virtual Response Exists(string ipConfigurationName, CancellationTok /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -345,7 +345,7 @@ public virtual async Task /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkInterfaceIPConfigurationResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkInterfaceIPConfigurationResource.cs index 8d89f89e1b71..242a759f186c 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkInterfaceIPConfigurationResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkInterfaceIPConfigurationResource.cs @@ -101,7 +101,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -141,7 +141,7 @@ public virtual async Task> Get /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkInterfaceResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkInterfaceResource.cs index e4efbf253a66..64895f134a8a 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkInterfaceResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkInterfaceResource.cs @@ -115,7 +115,7 @@ public virtual NetworkInterfaceIPConfigurationCollection GetNetworkInterfaceIPCo /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -146,7 +146,7 @@ public virtual async Task> Get /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -184,7 +184,7 @@ public virtual NetworkInterfaceTapConfigurationCollection GetNetworkInterfaceTap /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -215,7 +215,7 @@ public virtual async Task> Ge /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -246,7 +246,7 @@ public virtual Response GetNetworkInte /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -287,7 +287,7 @@ public virtual async Task> GetAsync(string ex /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -328,7 +328,7 @@ public virtual Response Get(string expand = null, Canc /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -370,7 +370,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -412,7 +412,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -454,7 +454,7 @@ public virtual async Task> UpdateAsync(Networ /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -496,7 +496,7 @@ public virtual Response Update(NetworkTagsObject netwo /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -538,7 +538,7 @@ public virtual async Task> GetEffectiveRo /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -580,7 +580,7 @@ public virtual ArmOperation GetEffectiveRouteTable(Wai /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -622,7 +622,7 @@ public virtual async Task> /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -664,7 +664,7 @@ public virtual ArmOperation GetEffectiv /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// @@ -690,7 +690,7 @@ public virtual AsyncPageable GetNetworkInterfaceLoadBalanc /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// @@ -716,7 +716,7 @@ public virtual Pageable GetNetworkInterfaceLoadBalancers(C /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -778,7 +778,7 @@ public virtual async Task> AddTagAsync(string /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -840,7 +840,7 @@ public virtual Response AddTag(string key, string valu /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -897,7 +897,7 @@ public virtual async Task> SetTagsAsync(IDict /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -954,7 +954,7 @@ public virtual Response SetTags(IDictionary /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -1014,7 +1014,7 @@ public virtual async Task> RemoveTagAsync(str /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkInterfaceTapConfigurationCollection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkInterfaceTapConfigurationCollection.cs index ec2d6551851f..e210ea9d05ce 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkInterfaceTapConfigurationCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkInterfaceTapConfigurationCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -113,7 +113,7 @@ public virtual async Task /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -162,7 +162,7 @@ public virtual ArmOperation CreateOrUp /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -207,7 +207,7 @@ public virtual async Task> Ge /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -252,7 +252,7 @@ public virtual Response Get(string tap /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -282,7 +282,7 @@ public virtual AsyncPageable GetAllAsy /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -312,7 +312,7 @@ public virtual Pageable GetAll(Cancell /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -355,7 +355,7 @@ public virtual async Task> ExistsAsync(string tapConfigurationNam /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -398,7 +398,7 @@ public virtual Response Exists(string tapConfigurationName, CancellationTo /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -443,7 +443,7 @@ public virtual async Task /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkInterfaceTapConfigurationResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkInterfaceTapConfigurationResource.cs index 81055533e9cf..43caa7d846e1 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkInterfaceTapConfigurationResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkInterfaceTapConfigurationResource.cs @@ -101,7 +101,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -141,7 +141,7 @@ public virtual async Task> Ge /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -181,7 +181,7 @@ public virtual Response Get(Cancellati /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -223,7 +223,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -265,7 +265,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -311,7 +311,7 @@ public virtual async Task /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkManagerCollection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkManagerCollection.cs index 5f93822d19f2..deb566497638 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkManagerCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkManagerCollection.cs @@ -65,7 +65,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -116,7 +116,7 @@ public virtual async Task> CreateOrUpdateAs /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -167,7 +167,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil wai /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -212,7 +212,7 @@ public virtual async Task> GetAsync(string netw /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -257,7 +257,7 @@ public virtual Response Get(string networkManagerName, C /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -289,7 +289,7 @@ public virtual AsyncPageable GetAllAsync(int? top = null /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -321,7 +321,7 @@ public virtual Pageable GetAll(int? top = null, string s /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -364,7 +364,7 @@ public virtual async Task> ExistsAsync(string networkManagerName, /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -407,7 +407,7 @@ public virtual Response Exists(string networkManagerName, CancellationToke /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -452,7 +452,7 @@ public virtual async Task> GetIfExistsA /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkManagerResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkManagerResource.cs index b0337b7c045f..99d8ffbee907 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkManagerResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkManagerResource.cs @@ -104,6 +104,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 IpamPoolResources in the NetworkManager. + /// An object representing collection of IpamPoolResources and their operations over a IpamPoolResource. + public virtual IpamPoolCollection GetIpamPools() + { + return GetCachedClient(client => new IpamPoolCollection(client, Id)); + } + + /// + /// Gets the specific Pool resource. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/ipamPools/{poolName} + /// + /// + /// Operation Id + /// IpamPools_Get + /// + /// + /// Default Api Version + /// 2024-05-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// Pool resource name. + /// The cancellation token to use. + /// is null. + /// is an empty string, and was expected to be non-empty. + [ForwardsClientCalls] + public virtual async Task> GetIpamPoolAsync(string poolName, CancellationToken cancellationToken = default) + { + return await GetIpamPools().GetAsync(poolName, cancellationToken).ConfigureAwait(false); + } + + /// + /// Gets the specific Pool resource. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/ipamPools/{poolName} + /// + /// + /// Operation Id + /// IpamPools_Get + /// + /// + /// Default Api Version + /// 2024-05-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// Pool resource name. + /// The cancellation token to use. + /// is null. + /// is an empty string, and was expected to be non-empty. + [ForwardsClientCalls] + public virtual Response GetIpamPool(string poolName, CancellationToken cancellationToken = default) + { + return GetIpamPools().Get(poolName, cancellationToken); + } + /// Gets a collection of ConnectivityConfigurationResources in the NetworkManager. /// An object representing collection of ConnectivityConfigurationResources and their operations over a ConnectivityConfigurationResource. public virtual ConnectivityConfigurationCollection GetConnectivityConfigurations() @@ -124,7 +193,7 @@ public virtual ConnectivityConfigurationCollection GetConnectivityConfigurations /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -155,7 +224,7 @@ public virtual async Task> GetConnec /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -193,7 +262,7 @@ public virtual NetworkGroupCollection GetNetworkGroups() /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -224,7 +293,7 @@ public virtual async Task> GetNetworkGroupAsync(s /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -242,6 +311,75 @@ public virtual Response GetNetworkGroup(string networkGrou return GetNetworkGroups().Get(networkGroupName, cancellationToken); } + /// Gets a collection of NetworkManagerRoutingConfigurationResources in the NetworkManager. + /// An object representing collection of NetworkManagerRoutingConfigurationResources and their operations over a NetworkManagerRoutingConfigurationResource. + public virtual NetworkManagerRoutingConfigurationCollection GetNetworkManagerRoutingConfigurations() + { + return GetCachedClient(client => new NetworkManagerRoutingConfigurationCollection(client, Id)); + } + + /// + /// Retrieves a network manager routing configuration. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/routingConfigurations/{configurationName} + /// + /// + /// Operation Id + /// NetworkManagerRoutingConfigurations_Get + /// + /// + /// Default Api Version + /// 2024-05-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// The name of the network manager Routing Configuration. + /// The cancellation token to use. + /// is null. + /// is an empty string, and was expected to be non-empty. + [ForwardsClientCalls] + public virtual async Task> GetNetworkManagerRoutingConfigurationAsync(string configurationName, CancellationToken cancellationToken = default) + { + return await GetNetworkManagerRoutingConfigurations().GetAsync(configurationName, cancellationToken).ConfigureAwait(false); + } + + /// + /// Retrieves a network manager routing configuration. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/routingConfigurations/{configurationName} + /// + /// + /// Operation Id + /// NetworkManagerRoutingConfigurations_Get + /// + /// + /// Default Api Version + /// 2024-05-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// The name of the network manager Routing Configuration. + /// The cancellation token to use. + /// is null. + /// is an empty string, and was expected to be non-empty. + [ForwardsClientCalls] + public virtual Response GetNetworkManagerRoutingConfiguration(string configurationName, CancellationToken cancellationToken = default) + { + return GetNetworkManagerRoutingConfigurations().Get(configurationName, cancellationToken); + } + /// Gets a collection of ScopeConnectionResources in the NetworkManager. /// An object representing collection of ScopeConnectionResources and their operations over a ScopeConnectionResource. public virtual ScopeConnectionCollection GetScopeConnections() @@ -262,7 +400,7 @@ public virtual ScopeConnectionCollection GetScopeConnections() /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -293,7 +431,7 @@ public virtual async Task> GetScopeConnectionA /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -331,7 +469,7 @@ public virtual SecurityAdminConfigurationCollection GetSecurityAdminConfiguratio /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -362,7 +500,7 @@ public virtual async Task> GetSecur /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -400,7 +538,7 @@ public virtual NetworkManagerSecurityUserConfigurationCollection GetNetworkManag /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -431,7 +569,7 @@ public virtual async Task /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -449,73 +587,73 @@ public virtual Response GetNetw return GetNetworkManagerSecurityUserConfigurations().Get(configurationName, cancellationToken); } - /// Gets a collection of NetworkManagerRoutingConfigurationResources in the NetworkManager. - /// An object representing collection of NetworkManagerRoutingConfigurationResources and their operations over a NetworkManagerRoutingConfigurationResource. - public virtual NetworkManagerRoutingConfigurationCollection GetNetworkManagerRoutingConfigurations() + /// Gets a collection of VerifierWorkspaceResources in the NetworkManager. + /// An object representing collection of VerifierWorkspaceResources and their operations over a VerifierWorkspaceResource. + public virtual VerifierWorkspaceCollection GetVerifierWorkspaces() { - return GetCachedClient(client => new NetworkManagerRoutingConfigurationCollection(client, Id)); + return GetCachedClient(client => new VerifierWorkspaceCollection(client, Id)); } /// - /// Retrieves a network manager routing configuration. + /// Gets Verifier Workspace. /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/routingConfigurations/{configurationName} + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/verifierWorkspaces/{workspaceName} /// /// /// Operation Id - /// NetworkManagerRoutingConfigurations_Get + /// VerifierWorkspaces_Get /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource - /// + /// /// /// /// - /// The name of the network manager Routing Configuration. + /// Workspace name. /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. + /// is null. + /// is an empty string, and was expected to be non-empty. [ForwardsClientCalls] - public virtual async Task> GetNetworkManagerRoutingConfigurationAsync(string configurationName, CancellationToken cancellationToken = default) + public virtual async Task> GetVerifierWorkspaceAsync(string workspaceName, CancellationToken cancellationToken = default) { - return await GetNetworkManagerRoutingConfigurations().GetAsync(configurationName, cancellationToken).ConfigureAwait(false); + return await GetVerifierWorkspaces().GetAsync(workspaceName, cancellationToken).ConfigureAwait(false); } /// - /// Retrieves a network manager routing configuration. + /// Gets Verifier Workspace. /// /// /// Request Path - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/routingConfigurations/{configurationName} + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/verifierWorkspaces/{workspaceName} /// /// /// Operation Id - /// NetworkManagerRoutingConfigurations_Get + /// VerifierWorkspaces_Get /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource - /// + /// /// /// /// - /// The name of the network manager Routing Configuration. + /// Workspace name. /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. + /// is null. + /// is an empty string, and was expected to be non-empty. [ForwardsClientCalls] - public virtual Response GetNetworkManagerRoutingConfiguration(string configurationName, CancellationToken cancellationToken = default) + public virtual Response GetVerifierWorkspace(string workspaceName, CancellationToken cancellationToken = default) { - return GetNetworkManagerRoutingConfigurations().Get(configurationName, cancellationToken); + return GetVerifierWorkspaces().Get(workspaceName, cancellationToken); } /// @@ -531,7 +669,7 @@ public virtual Response GetNetworkMa /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -571,7 +709,7 @@ public virtual async Task> GetAsync(Cancellatio /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -611,7 +749,7 @@ public virtual Response Get(CancellationToken cancellati /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -654,7 +792,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, bool? f /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -697,7 +835,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, bool? force = null, Canc /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -739,7 +877,7 @@ public virtual async Task> UpdateAsync(NetworkM /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -781,7 +919,7 @@ public virtual Response Update(NetworkManagerPatch patch /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -815,7 +953,7 @@ public virtual AsyncPageable GetActiveConnectiv /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -849,7 +987,7 @@ public virtual Pageable GetActiveConnectivityCo /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -883,7 +1021,7 @@ public virtual AsyncPageable GetActiveSecurityAdmin /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -917,7 +1055,7 @@ public virtual Pageable GetActiveSecurityAdminRules /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// @@ -959,7 +1097,7 @@ public virtual async Task> PostNetworkManager /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// @@ -1001,7 +1139,7 @@ public virtual ArmOperation PostNetworkManagerCommit(WaitU /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// @@ -1031,7 +1169,7 @@ public virtual AsyncPageable GetNetworkManagerDe /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// @@ -1061,7 +1199,7 @@ public virtual Pageable GetNetworkManagerDeploym /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -1123,7 +1261,7 @@ public virtual async Task> AddTagAsync(string k /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -1185,7 +1323,7 @@ public virtual Response AddTag(string key, string value, /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -1242,7 +1380,7 @@ public virtual async Task> SetTagsAsync(IDictio /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -1299,7 +1437,7 @@ public virtual Response SetTags(IDictionary /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -1359,7 +1497,7 @@ public virtual async Task> RemoveTagAsync(strin /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkManagerRoutingConfigurationCollection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkManagerRoutingConfigurationCollection.cs index c5f59827506b..3d140a110c8c 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkManagerRoutingConfigurationCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkManagerRoutingConfigurationCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -115,7 +115,7 @@ public virtual async Task /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -166,7 +166,7 @@ public virtual ArmOperation CreateOr /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -211,7 +211,7 @@ public virtual async Task> /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -256,7 +256,7 @@ public virtual Response Get(string c /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -288,7 +288,7 @@ public virtual AsyncPageable GetAllA /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -320,7 +320,7 @@ public virtual Pageable GetAll(int? /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -363,7 +363,7 @@ public virtual async Task> ExistsAsync(string configurationName, /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -406,7 +406,7 @@ public virtual Response Exists(string configurationName, CancellationToken /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -451,7 +451,7 @@ public virtual async Task /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkManagerRoutingConfigurationResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkManagerRoutingConfigurationResource.cs index 75a9f619b0c8..74d1bd2bcdbb 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkManagerRoutingConfigurationResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkManagerRoutingConfigurationResource.cs @@ -108,7 +108,7 @@ public virtual NetworkManagerRoutingRulesCollection GetAllNetworkManagerRoutingR /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -139,7 +139,7 @@ public virtual async Task> GetNetwo /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -170,7 +170,7 @@ public virtual Response GetNetworkManagerRou /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -210,7 +210,7 @@ public virtual async Task> /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -250,7 +250,7 @@ public virtual Response Get(Cancella /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -293,7 +293,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, bool? f /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -336,7 +336,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, bool? force = null, Canc /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -384,7 +384,7 @@ public virtual async Task /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkManagerRoutingRuleCollection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkManagerRoutingRuleCollection.cs index aa88d9c358c3..8bb4ff8f603b 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkManagerRoutingRuleCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkManagerRoutingRuleCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -115,7 +115,7 @@ public virtual async Task> Creat /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -166,7 +166,7 @@ public virtual ArmOperation CreateOrUpdate(Wa /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -211,7 +211,7 @@ public virtual async Task> GetAsync( /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -256,7 +256,7 @@ public virtual Response Get(string ruleName, /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -288,7 +288,7 @@ public virtual AsyncPageable GetAllAsync(int? /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -320,7 +320,7 @@ public virtual Pageable GetAll(int? top = nul /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -363,7 +363,7 @@ public virtual async Task> ExistsAsync(string ruleName, Cancellat /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -406,7 +406,7 @@ public virtual Response Exists(string ruleName, CancellationToken cancella /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -451,7 +451,7 @@ public virtual async Task> G /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkManagerRoutingRuleResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkManagerRoutingRuleResource.cs index 3a18fad3da80..a58df02489c3 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkManagerRoutingRuleResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkManagerRoutingRuleResource.cs @@ -103,7 +103,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -143,7 +143,7 @@ public virtual async Task> GetAsync( /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -183,7 +183,7 @@ public virtual Response Get(CancellationToken /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -226,7 +226,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, bool? f /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -269,7 +269,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, bool? force = null, Canc /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -317,7 +317,7 @@ public virtual async Task> Updat /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkManagerRoutingRulesCollection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkManagerRoutingRulesCollection.cs index a09e7f01288e..9aebf4dc95a3 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkManagerRoutingRulesCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkManagerRoutingRulesCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -115,7 +115,7 @@ public virtual async Task> Crea /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -166,7 +166,7 @@ public virtual ArmOperation CreateOrUpdate(W /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -211,7 +211,7 @@ public virtual async Task> GetAsync /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -256,7 +256,7 @@ public virtual Response Get(string ruleColle /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -288,7 +288,7 @@ public virtual AsyncPageable GetAllAsync(int /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -320,7 +320,7 @@ public virtual Pageable GetAll(int? top = nu /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -363,7 +363,7 @@ public virtual async Task> ExistsAsync(string ruleCollectionName, /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -406,7 +406,7 @@ public virtual Response Exists(string ruleCollectionName, CancellationToke /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -451,7 +451,7 @@ public virtual async Task> /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkManagerRoutingRulesResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkManagerRoutingRulesResource.cs index f07508cb4bff..0f104c6ba0cc 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkManagerRoutingRulesResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkManagerRoutingRulesResource.cs @@ -109,7 +109,7 @@ public virtual NetworkManagerRoutingRuleCollection GetNetworkManagerRoutingRules /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -140,7 +140,7 @@ public virtual async Task> GetNetwor /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -171,7 +171,7 @@ public virtual Response GetNetworkManagerRout /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -211,7 +211,7 @@ public virtual async Task> GetAsync /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -251,7 +251,7 @@ public virtual Response Get(CancellationToke /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -294,7 +294,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, bool? f /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -337,7 +337,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, bool? force = null, Canc /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -385,7 +385,7 @@ public virtual async Task> Upda /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkManagerSecurityUserConfigurationCollection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkManagerSecurityUserConfigurationCollection.cs index 789b8af953c5..114b9b329c19 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkManagerSecurityUserConfigurationCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkManagerSecurityUserConfigurationCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -115,7 +115,7 @@ public virtual async Task /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -166,7 +166,7 @@ public virtual ArmOperation Cre /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -211,7 +211,7 @@ public virtual async Task /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -256,7 +256,7 @@ public virtual Response Get(str /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -288,7 +288,7 @@ public virtual AsyncPageable Ge /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -320,7 +320,7 @@ public virtual Pageable GetAll( /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -363,7 +363,7 @@ public virtual async Task> ExistsAsync(string configurationName, /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -406,7 +406,7 @@ public virtual Response Exists(string configurationName, CancellationToken /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -451,7 +451,7 @@ public virtual async Task /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkManagerSecurityUserConfigurationResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkManagerSecurityUserConfigurationResource.cs index 09c6a5ddfa7e..d25dae214a14 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkManagerSecurityUserConfigurationResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkManagerSecurityUserConfigurationResource.cs @@ -108,7 +108,7 @@ public virtual NetworkManagerSecurityUserRulesCollection GetAllNetworkManagerSec /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -139,7 +139,7 @@ public virtual async Task> Get /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -170,7 +170,7 @@ public virtual Response GetNetworkManag /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -210,7 +210,7 @@ public virtual async Task /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -250,7 +250,7 @@ public virtual Response Get(Can /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -293,7 +293,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, bool? f /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -336,7 +336,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, bool? force = null, Canc /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -384,7 +384,7 @@ public virtual async Task /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkManagerSecurityUserRuleCollection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkManagerSecurityUserRuleCollection.cs index 02e57bc12ff1..1870132485d7 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkManagerSecurityUserRuleCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkManagerSecurityUserRuleCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -115,7 +115,7 @@ public virtual async Task> /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -166,7 +166,7 @@ public virtual ArmOperation CreateOrUpda /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -211,7 +211,7 @@ public virtual async Task> GetA /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -256,7 +256,7 @@ public virtual Response Get(string ruleN /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -288,7 +288,7 @@ public virtual AsyncPageable GetAllAsync /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -320,7 +320,7 @@ public virtual Pageable GetAll(int? top /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -363,7 +363,7 @@ public virtual async Task> ExistsAsync(string ruleName, Cancellat /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -406,7 +406,7 @@ public virtual Response Exists(string ruleName, CancellationToken cancella /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -451,7 +451,7 @@ public virtual async Task /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkManagerSecurityUserRuleResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkManagerSecurityUserRuleResource.cs index e44b453f2db3..59fc36780dc6 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkManagerSecurityUserRuleResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkManagerSecurityUserRuleResource.cs @@ -103,7 +103,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -143,7 +143,7 @@ public virtual async Task> GetA /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -183,7 +183,7 @@ public virtual Response Get(Cancellation /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -226,7 +226,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, bool? f /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -269,7 +269,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, bool? force = null, Canc /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -317,7 +317,7 @@ public virtual async Task> /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkManagerSecurityUserRulesCollection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkManagerSecurityUserRulesCollection.cs index e8822e491fe6..129ae2ba142e 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkManagerSecurityUserRulesCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkManagerSecurityUserRulesCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -115,7 +115,7 @@ public virtual async Task> /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -166,7 +166,7 @@ public virtual ArmOperation CreateOrUpd /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -211,7 +211,7 @@ public virtual async Task> Get /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -256,7 +256,7 @@ public virtual Response Get(string rule /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -288,7 +288,7 @@ public virtual AsyncPageable GetAllAsyn /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -320,7 +320,7 @@ public virtual Pageable GetAll(int? top /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -363,7 +363,7 @@ public virtual async Task> ExistsAsync(string ruleCollectionName, /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -406,7 +406,7 @@ public virtual Response Exists(string ruleCollectionName, CancellationToke /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -451,7 +451,7 @@ public virtual async Task /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkManagerSecurityUserRulesResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkManagerSecurityUserRulesResource.cs index 31349781129a..5b199dba1c15 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkManagerSecurityUserRulesResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkManagerSecurityUserRulesResource.cs @@ -109,7 +109,7 @@ public virtual NetworkManagerSecurityUserRuleCollection GetNetworkManagerSecurit /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -140,7 +140,7 @@ public virtual async Task> GetN /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -171,7 +171,7 @@ public virtual Response GetNetworkManage /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -211,7 +211,7 @@ public virtual async Task> Get /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -251,7 +251,7 @@ public virtual Response Get(Cancellatio /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -294,7 +294,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, bool? f /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -337,7 +337,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, bool? force = null, Canc /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -385,7 +385,7 @@ public virtual async Task> /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkPrivateEndpointConnectionCollection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkPrivateEndpointConnectionCollection.cs index 1b15bc541545..efe8b2db594f 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkPrivateEndpointConnectionCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkPrivateEndpointConnectionCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -115,7 +115,7 @@ public virtual async Task /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -166,7 +166,7 @@ public virtual ArmOperation CreateOrUp /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -212,7 +212,7 @@ public virtual async Task> Ge /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -258,7 +258,7 @@ public virtual Response Get(string peC /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -288,7 +288,7 @@ public virtual AsyncPageable GetAllAsy /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -318,7 +318,7 @@ public virtual Pageable GetAll(Cancell /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -362,7 +362,7 @@ public virtual async Task> ExistsAsync(string peConnectionName, s /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -406,7 +406,7 @@ public virtual Response Exists(string peConnectionName, string expand = nu /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -452,7 +452,7 @@ public virtual async Task /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkPrivateEndpointConnectionResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkPrivateEndpointConnectionResource.cs index d532ba4fff83..7c445ec28d9d 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkPrivateEndpointConnectionResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkPrivateEndpointConnectionResource.cs @@ -101,7 +101,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -142,7 +142,7 @@ public virtual async Task> Ge /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -183,7 +183,7 @@ public virtual Response Get(string exp /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -225,7 +225,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -267,7 +267,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -315,7 +315,7 @@ public virtual async Task /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkProfileCollection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkProfileCollection.cs index 742a1ccc0501..9fc085f269a6 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkProfileCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkProfileCollection.cs @@ -65,7 +65,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -116,7 +116,7 @@ public virtual async Task> CreateOrUpdateAs /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -167,7 +167,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil wai /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -213,7 +213,7 @@ public virtual async Task> GetAsync(string netw /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -259,7 +259,7 @@ public virtual Response Get(string networkProfileName, s /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -289,7 +289,7 @@ public virtual AsyncPageable GetAllAsync(CancellationTok /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -319,7 +319,7 @@ public virtual Pageable GetAll(CancellationToken cancell /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -363,7 +363,7 @@ public virtual async Task> ExistsAsync(string networkProfileName, /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -407,7 +407,7 @@ public virtual Response Exists(string networkProfileName, string expand = /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -453,7 +453,7 @@ public virtual async Task> GetIfExistsA /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkProfileResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkProfileResource.cs index 59702fdb4fba..17fe60382e3c 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkProfileResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkProfileResource.cs @@ -103,7 +103,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -144,7 +144,7 @@ public virtual async Task> GetAsync(string expa /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -185,7 +185,7 @@ public virtual Response Get(string expand = null, Cancel /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -227,7 +227,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -269,7 +269,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -311,7 +311,7 @@ public virtual async Task> UpdateAsync(NetworkT /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -353,7 +353,7 @@ public virtual Response Update(NetworkTagsObject network /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -415,7 +415,7 @@ public virtual async Task> AddTagAsync(string k /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -477,7 +477,7 @@ public virtual Response AddTag(string key, string value, /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -534,7 +534,7 @@ public virtual async Task> SetTagsAsync(IDictio /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -591,7 +591,7 @@ public virtual Response SetTags(IDictionary /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -651,7 +651,7 @@ public virtual async Task> RemoveTagAsync(strin /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkSecurityGroupCollection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkSecurityGroupCollection.cs index 12b6b03f9c40..cef5da644948 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkSecurityGroupCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkSecurityGroupCollection.cs @@ -65,7 +65,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -114,7 +114,7 @@ public virtual async Task> CreateOrUp /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -163,7 +163,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUnt /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -209,7 +209,7 @@ public virtual async Task> GetAsync(strin /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -255,7 +255,7 @@ public virtual Response Get(string networkSecurity /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -285,7 +285,7 @@ public virtual AsyncPageable GetAllAsync(Cancellat /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -315,7 +315,7 @@ public virtual Pageable GetAll(CancellationToken c /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -359,7 +359,7 @@ public virtual async Task> ExistsAsync(string networkSecurityGrou /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -403,7 +403,7 @@ public virtual Response Exists(string networkSecurityGroupName, string exp /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -449,7 +449,7 @@ public virtual async Task> GetIfE /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkSecurityGroupResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkSecurityGroupResource.cs index f4a3f2863b8c..7b1019301d79 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkSecurityGroupResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkSecurityGroupResource.cs @@ -110,7 +110,7 @@ public virtual SecurityRuleCollection GetSecurityRules() /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -141,7 +141,7 @@ public virtual async Task> GetSecurityRuleAsync(s /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -179,7 +179,7 @@ public virtual DefaultSecurityRuleCollection GetDefaultSecurityRules() /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -210,7 +210,7 @@ public virtual async Task> GetDefaultSecur /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -241,7 +241,7 @@ public virtual Response GetDefaultSecurityRule(stri /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -282,7 +282,7 @@ public virtual async Task> GetAsync(strin /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -323,7 +323,7 @@ public virtual Response Get(string expand = null, /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -365,7 +365,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -407,7 +407,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -449,7 +449,7 @@ public virtual async Task> UpdateAsync(Ne /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -491,7 +491,7 @@ public virtual Response Update(NetworkTagsObject n /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -553,7 +553,7 @@ public virtual async Task> AddTagAsync(st /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -615,7 +615,7 @@ public virtual Response AddTag(string key, string /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -672,7 +672,7 @@ public virtual async Task> SetTagsAsync(I /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -729,7 +729,7 @@ public virtual Response SetTags(IDictionary /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -789,7 +789,7 @@ public virtual async Task> RemoveTagAsync /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkVirtualApplianceCollection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkVirtualApplianceCollection.cs index a53faeaaec80..c7096d6b0c56 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkVirtualApplianceCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkVirtualApplianceCollection.cs @@ -65,7 +65,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -114,7 +114,7 @@ public virtual async Task> CreateO /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -163,7 +163,7 @@ public virtual ArmOperation CreateOrUpdate(Wait /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -209,7 +209,7 @@ public virtual async Task> GetAsync(st /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -255,7 +255,7 @@ public virtual Response Get(string networkVirtu /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -285,7 +285,7 @@ public virtual AsyncPageable GetAllAsync(Cancel /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -315,7 +315,7 @@ public virtual Pageable GetAll(CancellationToke /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -359,7 +359,7 @@ public virtual async Task> ExistsAsync(string networkVirtualAppli /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -403,7 +403,7 @@ public virtual Response Exists(string networkVirtualApplianceName, string /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -449,7 +449,7 @@ public virtual async Task> Get /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkVirtualApplianceConnectionCollection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkVirtualApplianceConnectionCollection.cs index 1eed01f23882..e32e4c286b4b 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkVirtualApplianceConnectionCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkVirtualApplianceConnectionCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -113,7 +113,7 @@ public virtual async Task /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -162,7 +162,7 @@ public virtual ArmOperation CreateOrU /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -207,7 +207,7 @@ public virtual async Task> G /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -252,7 +252,7 @@ public virtual Response Get(string co /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -282,7 +282,7 @@ public virtual AsyncPageable GetAllAs /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -312,7 +312,7 @@ public virtual Pageable GetAll(Cancel /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -355,7 +355,7 @@ public virtual async Task> ExistsAsync(string connectionName, Can /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -398,7 +398,7 @@ public virtual Response Exists(string connectionName, CancellationToken ca /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -443,7 +443,7 @@ public virtual async Task /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkVirtualApplianceConnectionResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkVirtualApplianceConnectionResource.cs index 2db1beb14b9a..00a95cc58420 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkVirtualApplianceConnectionResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkVirtualApplianceConnectionResource.cs @@ -101,7 +101,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -141,7 +141,7 @@ public virtual async Task> G /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -181,7 +181,7 @@ public virtual Response Get(Cancellat /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -223,7 +223,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -265,7 +265,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -311,7 +311,7 @@ public virtual async Task /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkVirtualApplianceResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkVirtualApplianceResource.cs index af15e93f0246..48d29ac11daa 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkVirtualApplianceResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkVirtualApplianceResource.cs @@ -110,7 +110,7 @@ public virtual VirtualApplianceSiteCollection GetVirtualApplianceSites() /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -141,7 +141,7 @@ public virtual async Task> GetVirtualAppl /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -179,7 +179,7 @@ public virtual InboundSecurityRuleCollection GetInboundSecurityRules() /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -210,7 +210,7 @@ public virtual async Task> GetInboundSecur /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -248,7 +248,7 @@ public virtual NetworkVirtualApplianceConnectionCollection GetNetworkVirtualAppl /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -279,7 +279,7 @@ public virtual async Task> G /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -310,7 +310,7 @@ public virtual Response GetNetworkVir /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -351,7 +351,7 @@ public virtual async Task> GetAsync(st /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -392,7 +392,7 @@ public virtual Response Get(string expand = nul /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -434,7 +434,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -476,7 +476,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -518,7 +518,7 @@ public virtual async Task> UpdateAsync /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -560,7 +560,7 @@ public virtual Response Update(NetworkTagsObjec /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -603,7 +603,7 @@ public virtual async Task> Rest /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -646,7 +646,7 @@ public virtual ArmOperation Restart(WaitUnti /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -708,7 +708,7 @@ public virtual async Task> AddTagAsync /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -770,7 +770,7 @@ public virtual Response AddTag(string key, stri /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -827,7 +827,7 @@ public virtual async Task> SetTagsAsyn /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -884,7 +884,7 @@ public virtual Response SetTags(IDictionary /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -944,7 +944,7 @@ public virtual async Task> RemoveTagAs /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkVirtualApplianceSkuCollection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkVirtualApplianceSkuCollection.cs index c5bfaa6f37b8..0d667862add1 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkVirtualApplianceSkuCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkVirtualApplianceSkuCollection.cs @@ -65,7 +65,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -110,7 +110,7 @@ public virtual async Task> GetAsync /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -155,7 +155,7 @@ public virtual Response Get(string skuName, /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -185,7 +185,7 @@ public virtual AsyncPageable GetAllAsync(Can /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -215,7 +215,7 @@ public virtual Pageable GetAll(CancellationT /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -258,7 +258,7 @@ public virtual async Task> ExistsAsync(string skuName, Cancellati /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -301,7 +301,7 @@ public virtual Response Exists(string skuName, CancellationToken cancellat /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -346,7 +346,7 @@ public virtual async Task> /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkVirtualApplianceSkuResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkVirtualApplianceSkuResource.cs index 70e9315ab9dd..cdf0f6557aac 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkVirtualApplianceSkuResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkVirtualApplianceSkuResource.cs @@ -100,7 +100,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -140,7 +140,7 @@ public virtual async Task> GetAsync /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkWatcherCollection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkWatcherCollection.cs index b05f1015ff8b..51e0752967bd 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkWatcherCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkWatcherCollection.cs @@ -65,7 +65,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -116,7 +116,7 @@ public virtual async Task> CreateOrUpdateAs /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -167,7 +167,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil wai /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -212,7 +212,7 @@ public virtual async Task> GetAsync(string netw /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -257,7 +257,7 @@ public virtual Response Get(string networkWatcherName, C /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -286,7 +286,7 @@ public virtual AsyncPageable GetAllAsync(CancellationTok /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -315,7 +315,7 @@ public virtual Pageable GetAll(CancellationToken cancell /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -358,7 +358,7 @@ public virtual async Task> ExistsAsync(string networkWatcherName, /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -401,7 +401,7 @@ public virtual Response Exists(string networkWatcherName, CancellationToke /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -446,7 +446,7 @@ public virtual async Task> GetIfExistsA /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkWatcherResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkWatcherResource.cs index 80e4bcca9e37..c4e8f98eda75 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkWatcherResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/NetworkWatcherResource.cs @@ -110,7 +110,7 @@ public virtual PacketCaptureCollection GetPacketCaptures() /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -141,7 +141,7 @@ public virtual async Task> GetPacketCaptureAsync /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -179,7 +179,7 @@ public virtual ConnectionMonitorCollection GetConnectionMonitors() /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -210,7 +210,7 @@ public virtual async Task> GetConnectionMoni /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -248,7 +248,7 @@ public virtual FlowLogCollection GetFlowLogs() /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -279,7 +279,7 @@ public virtual async Task> GetFlowLogAsync(string flow /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -310,7 +310,7 @@ public virtual Response GetFlowLog(string flowLogName, Cancella /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -350,7 +350,7 @@ public virtual async Task> GetAsync(Cancellatio /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -390,7 +390,7 @@ public virtual Response Get(CancellationToken cancellati /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -432,7 +432,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -474,7 +474,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -516,7 +516,7 @@ public virtual async Task> UpdateAsync(NetworkT /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -558,7 +558,7 @@ public virtual Response Update(NetworkTagsObject network /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -600,7 +600,7 @@ public virtual async Task> GetTopologyAsync(TopologyCo /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -642,7 +642,7 @@ public virtual Response GetTopology(TopologyContent content, Ca /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -688,7 +688,7 @@ public virtual async Task> VerifyIPFlowAs /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -734,7 +734,7 @@ public virtual ArmOperation VerifyIPFlow(WaitUntil wai /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -780,7 +780,7 @@ public virtual async Task> GetNextHopAsync(WaitUntil /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -826,7 +826,7 @@ public virtual ArmOperation GetNextHop(WaitUntil waitUntil, NextH /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -872,7 +872,7 @@ public virtual async Task> GetVmSecurityRu /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -918,7 +918,7 @@ public virtual ArmOperation GetVmSecurityRules(WaitUnti /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -964,7 +964,7 @@ public virtual async Task> GetTroubleshootin /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -1010,7 +1010,7 @@ public virtual ArmOperation GetTroubleshooting(WaitUntil /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -1056,7 +1056,7 @@ public virtual async Task> GetTroubleshootin /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -1102,7 +1102,7 @@ public virtual ArmOperation GetTroubleshootingResult(Wait /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -1148,7 +1148,7 @@ public virtual async Task> SetFlowLogConfigurat /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -1194,7 +1194,7 @@ public virtual ArmOperation SetFlowLogConfiguration(WaitUnti /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -1240,7 +1240,7 @@ public virtual async Task> GetFlowLogStatusAsyn /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -1286,7 +1286,7 @@ public virtual ArmOperation GetFlowLogStatus(WaitUntil waitU /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -1332,7 +1332,7 @@ public virtual async Task> CheckConnectivi /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -1378,7 +1378,7 @@ public virtual ArmOperation CheckConnectivity(WaitUntil /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -1424,7 +1424,7 @@ public virtual async Task> GetAzureReachab /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -1470,7 +1470,7 @@ public virtual ArmOperation GetAzureReachabilityReport( /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -1516,7 +1516,7 @@ public virtual async Task> GetAvailableProv /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -1562,7 +1562,7 @@ public virtual ArmOperation GetAvailableProviders(WaitUn /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -1608,7 +1608,7 @@ public virtual async Task> /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -1654,7 +1654,7 @@ public virtual ArmOperation GetNetworkCo /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -1716,7 +1716,7 @@ public virtual async Task> AddTagAsync(string k /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -1778,7 +1778,7 @@ public virtual Response AddTag(string key, string value, /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -1835,7 +1835,7 @@ public virtual async Task> SetTagsAsync(IDictio /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -1892,7 +1892,7 @@ public virtual Response SetTags(IDictionary /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -1952,7 +1952,7 @@ public virtual async Task> RemoveTagAsync(strin /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/OutboundRuleCollection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/OutboundRuleCollection.cs index cd6700161cae..40527dacfedb 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/OutboundRuleCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/OutboundRuleCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -109,7 +109,7 @@ public virtual async Task> GetAsync(string outbou /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -154,7 +154,7 @@ public virtual Response Get(string outboundRuleName, Cance /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -184,7 +184,7 @@ public virtual AsyncPageable GetAllAsync(CancellationToken /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -214,7 +214,7 @@ public virtual Pageable GetAll(CancellationToken cancellat /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -257,7 +257,7 @@ public virtual async Task> ExistsAsync(string outboundRuleName, C /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -300,7 +300,7 @@ public virtual Response Exists(string outboundRuleName, CancellationToken /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -345,7 +345,7 @@ public virtual async Task> GetIfExistsAsy /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/OutboundRuleResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/OutboundRuleResource.cs index 5610fa328cbc..4e8cb83f09ae 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/OutboundRuleResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/OutboundRuleResource.cs @@ -101,7 +101,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -141,7 +141,7 @@ public virtual async Task> GetAsync(CancellationT /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/P2SVpnGatewayCollection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/P2SVpnGatewayCollection.cs index c7d703f0806d..28cde58f5616 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/P2SVpnGatewayCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/P2SVpnGatewayCollection.cs @@ -65,7 +65,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -114,7 +114,7 @@ public virtual async Task> CreateOrUpdateAsy /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -163,7 +163,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil wait /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -208,7 +208,7 @@ public virtual async Task> GetAsync(string gatew /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -253,7 +253,7 @@ public virtual Response Get(string gatewayName, Cancellat /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -283,7 +283,7 @@ public virtual AsyncPageable GetAllAsync(CancellationToke /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -313,7 +313,7 @@ public virtual Pageable GetAll(CancellationToken cancella /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -356,7 +356,7 @@ public virtual async Task> ExistsAsync(string gatewayName, Cancel /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -399,7 +399,7 @@ public virtual Response Exists(string gatewayName, CancellationToken cance /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -444,7 +444,7 @@ public virtual async Task> GetIfExistsAs /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/P2SVpnGatewayResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/P2SVpnGatewayResource.cs index 993bb281ac1f..964c0833db5f 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/P2SVpnGatewayResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/P2SVpnGatewayResource.cs @@ -103,7 +103,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -143,7 +143,7 @@ public virtual async Task> GetAsync(Cancellation /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -183,7 +183,7 @@ public virtual Response Get(CancellationToken cancellatio /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -225,7 +225,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -267,7 +267,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -313,7 +313,7 @@ public virtual async Task> UpdateAsync(WaitU /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -359,7 +359,7 @@ public virtual ArmOperation Update(WaitUntil waitUntil, N /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -401,7 +401,7 @@ public virtual async Task> ResetAsync(WaitUn /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -443,7 +443,7 @@ public virtual ArmOperation Reset(WaitUntil waitUntil, Ca /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -489,7 +489,7 @@ public virtual async Task> GenerateVpnProfileAs /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -535,7 +535,7 @@ public virtual ArmOperation GenerateVpnProfile(WaitUntil wai /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -577,7 +577,7 @@ public virtual async Task> GetP2SVpnConnecti /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -619,7 +619,7 @@ public virtual ArmOperation GetP2SVpnConnectionHealth(Wai /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -665,7 +665,7 @@ public virtual async Task> GetP2SVpnConnect /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -711,7 +711,7 @@ public virtual ArmOperation GetP2SVpnConnectionHealthDet /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -757,7 +757,7 @@ public virtual async Task DisconnectP2SVpnConnectionsAsync(WaitUnt /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -803,7 +803,7 @@ public virtual ArmOperation DisconnectP2SVpnConnections(WaitUntil waitUntil, P2S /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -865,7 +865,7 @@ public virtual async Task> AddTagAsync(string ke /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -927,7 +927,7 @@ public virtual Response AddTag(string key, string value, /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -984,7 +984,7 @@ public virtual async Task> SetTagsAsync(IDiction /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -1041,7 +1041,7 @@ public virtual Response SetTags(IDictionary /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -1101,7 +1101,7 @@ public virtual async Task> RemoveTagAsync(string /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/PacketCaptureCollection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/PacketCaptureCollection.cs index 5f72243224ec..b4658a015915 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/PacketCaptureCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/PacketCaptureCollection.cs @@ -65,7 +65,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -114,7 +114,7 @@ public virtual async Task> CreateOrUpdateAsy /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -163,7 +163,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil wait /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -208,7 +208,7 @@ public virtual async Task> GetAsync(string packe /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -253,7 +253,7 @@ public virtual Response Get(string packetCaptureName, Can /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -282,7 +282,7 @@ public virtual AsyncPageable GetAllAsync(CancellationToke /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -311,7 +311,7 @@ public virtual Pageable GetAll(CancellationToken cancella /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -354,7 +354,7 @@ public virtual async Task> ExistsAsync(string packetCaptureName, /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -397,7 +397,7 @@ public virtual Response Exists(string packetCaptureName, CancellationToken /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -442,7 +442,7 @@ public virtual async Task> GetIfExistsAs /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/PacketCaptureResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/PacketCaptureResource.cs index c90231225cdc..51188d63da36 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/PacketCaptureResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/PacketCaptureResource.cs @@ -102,7 +102,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -142,7 +142,7 @@ public virtual async Task> GetAsync(Cancellation /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -182,7 +182,7 @@ public virtual Response Get(CancellationToken cancellatio /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -224,7 +224,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -266,7 +266,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -312,7 +312,7 @@ public virtual async Task> UpdateAsync(WaitU /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -358,7 +358,7 @@ public virtual ArmOperation Update(WaitUntil waitUntil, P /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -400,7 +400,7 @@ public virtual async Task StopAsync(WaitUntil waitUntil, Cancellat /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -442,7 +442,7 @@ public virtual ArmOperation Stop(WaitUntil waitUntil, CancellationToken cancella /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -484,7 +484,7 @@ public virtual async Task> GetStatu /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/PeerExpressRouteCircuitConnectionCollection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/PeerExpressRouteCircuitConnectionCollection.cs index c96368c4d460..9dc9c3785607 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/PeerExpressRouteCircuitConnectionCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/PeerExpressRouteCircuitConnectionCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -109,7 +109,7 @@ public virtual async Task> G /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -154,7 +154,7 @@ public virtual Response Get(string co /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -184,7 +184,7 @@ public virtual AsyncPageable GetAllAs /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -214,7 +214,7 @@ public virtual Pageable GetAll(Cancel /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -257,7 +257,7 @@ public virtual async Task> ExistsAsync(string connectionName, Can /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -300,7 +300,7 @@ public virtual Response Exists(string connectionName, CancellationToken ca /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -345,7 +345,7 @@ public virtual async Task /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/PeerExpressRouteCircuitConnectionResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/PeerExpressRouteCircuitConnectionResource.cs index b54ae7905244..0d2fa34557bd 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/PeerExpressRouteCircuitConnectionResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/PeerExpressRouteCircuitConnectionResource.cs @@ -102,7 +102,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -142,7 +142,7 @@ public virtual async Task> G /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/PolicySignaturesOverridesForIdpsResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/PolicySignaturesOverridesForIdpsResource.cs index 0f96e936532c..dee663836255 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/PolicySignaturesOverridesForIdpsResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/PolicySignaturesOverridesForIdpsResource.cs @@ -100,7 +100,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -140,7 +140,7 @@ public virtual async Task> Ge /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -180,7 +180,7 @@ public virtual Response Get(Cancellati /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -222,7 +222,7 @@ public virtual async Task> Up /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -264,7 +264,7 @@ public virtual Response Update(PolicyS /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -312,7 +312,7 @@ public virtual async Task /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/PrivateDnsZoneGroupCollection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/PrivateDnsZoneGroupCollection.cs index 77b728e5561e..6ec9e0da5a4c 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/PrivateDnsZoneGroupCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/PrivateDnsZoneGroupCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -113,7 +113,7 @@ public virtual async Task> CreateOrUpd /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -162,7 +162,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUnti /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -207,7 +207,7 @@ public virtual async Task> GetAsync(string /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -252,7 +252,7 @@ public virtual Response Get(string privateDnsZoneGr /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -282,7 +282,7 @@ public virtual AsyncPageable GetAllAsync(Cancellati /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -312,7 +312,7 @@ public virtual Pageable GetAll(CancellationToken ca /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -355,7 +355,7 @@ public virtual async Task> ExistsAsync(string privateDnsZoneGroup /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -398,7 +398,7 @@ public virtual Response Exists(string privateDnsZoneGroupName, Cancellatio /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -443,7 +443,7 @@ public virtual async Task> GetIfEx /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/PrivateDnsZoneGroupResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/PrivateDnsZoneGroupResource.cs index 0350cc737107..5cdb8a7015f5 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/PrivateDnsZoneGroupResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/PrivateDnsZoneGroupResource.cs @@ -101,7 +101,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -141,7 +141,7 @@ public virtual async Task> GetAsync(Cancel /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -181,7 +181,7 @@ public virtual Response Get(CancellationToken cance /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -223,7 +223,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -265,7 +265,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -311,7 +311,7 @@ public virtual async Task> UpdateAsync /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/PrivateEndpointCollection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/PrivateEndpointCollection.cs index 5605a612ece5..1f2c9c157e1a 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/PrivateEndpointCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/PrivateEndpointCollection.cs @@ -65,7 +65,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -114,7 +114,7 @@ public virtual async Task> CreateOrUpdateA /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -163,7 +163,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil wa /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -209,7 +209,7 @@ public virtual async Task> GetAsync(string pri /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -255,7 +255,7 @@ public virtual Response Get(string privateEndpointName, /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -285,7 +285,7 @@ public virtual AsyncPageable GetAllAsync(CancellationTo /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -315,7 +315,7 @@ public virtual Pageable GetAll(CancellationToken cancel /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -359,7 +359,7 @@ public virtual async Task> ExistsAsync(string privateEndpointName /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -403,7 +403,7 @@ public virtual Response Exists(string privateEndpointName, string expand = /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -449,7 +449,7 @@ public virtual async Task> GetIfExists /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/PrivateEndpointResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/PrivateEndpointResource.cs index d299e62d7a35..f5541466b5d4 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/PrivateEndpointResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/PrivateEndpointResource.cs @@ -109,7 +109,7 @@ public virtual PrivateDnsZoneGroupCollection GetPrivateDnsZoneGroups() /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -140,7 +140,7 @@ public virtual async Task> GetPrivateDnsZo /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -171,7 +171,7 @@ public virtual Response GetPrivateDnsZoneGroup(stri /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -212,7 +212,7 @@ public virtual async Task> GetAsync(string exp /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -253,7 +253,7 @@ public virtual Response Get(string expand = null, Cance /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -295,7 +295,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -337,7 +337,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -383,7 +383,7 @@ public virtual async Task> UpdateAsync(Wai /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -429,7 +429,7 @@ public virtual ArmOperation Update(WaitUntil waitUntil, /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -486,7 +486,7 @@ public virtual async Task> AddTagAsync(string /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -543,7 +543,7 @@ public virtual Response AddTag(string key, string value /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -599,7 +599,7 @@ public virtual async Task> SetTagsAsync(IDicti /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -655,7 +655,7 @@ public virtual Response SetTags(IDictionary /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -710,7 +710,7 @@ public virtual async Task> RemoveTagAsync(stri /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/PrivateLinkServiceCollection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/PrivateLinkServiceCollection.cs index 999f04f77615..3516ba17916d 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/PrivateLinkServiceCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/PrivateLinkServiceCollection.cs @@ -65,7 +65,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -114,7 +114,7 @@ public virtual async Task> CreateOrUpda /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -163,7 +163,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -209,7 +209,7 @@ public virtual async Task> GetAsync(string /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -255,7 +255,7 @@ public virtual Response Get(string serviceName, stri /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -285,7 +285,7 @@ public virtual AsyncPageable GetAllAsync(Cancellatio /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -315,7 +315,7 @@ public virtual Pageable GetAll(CancellationToken can /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -359,7 +359,7 @@ public virtual async Task> ExistsAsync(string serviceName, string /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -403,7 +403,7 @@ public virtual Response Exists(string serviceName, string expand = null, C /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -449,7 +449,7 @@ public virtual async Task> GetIfExi /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/PrivateLinkServiceResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/PrivateLinkServiceResource.cs index 940959f6d0d4..c6cd766b0505 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/PrivateLinkServiceResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/PrivateLinkServiceResource.cs @@ -109,7 +109,7 @@ public virtual NetworkPrivateEndpointConnectionCollection GetNetworkPrivateEndpo /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -141,7 +141,7 @@ public virtual async Task> Ge /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -173,7 +173,7 @@ public virtual Response GetNetworkPriv /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -214,7 +214,7 @@ public virtual async Task> GetAsync(string /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -255,7 +255,7 @@ public virtual Response Get(string expand = null, Ca /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -297,7 +297,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -339,7 +339,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -385,7 +385,7 @@ public virtual async Task> UpdateAsync( /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -431,7 +431,7 @@ public virtual ArmOperation Update(WaitUntil waitUnt /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -488,7 +488,7 @@ public virtual async Task> AddTagAsync(stri /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -545,7 +545,7 @@ public virtual Response AddTag(string key, string va /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -601,7 +601,7 @@ public virtual async Task> SetTagsAsync(IDi /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -657,7 +657,7 @@ public virtual Response SetTags(IDictionary /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -712,7 +712,7 @@ public virtual async Task> RemoveTagAsync(s /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/ProbeCollection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/ProbeCollection.cs index 19427ae7ced0..5f1dedb5fc8d 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/ProbeCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/ProbeCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -109,7 +109,7 @@ public virtual async Task> GetAsync(string probeName, Ca /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -154,7 +154,7 @@ public virtual Response Get(string probeName, CancellationToken c /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -184,7 +184,7 @@ public virtual AsyncPageable GetAllAsync(CancellationToken cancel /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -214,7 +214,7 @@ public virtual Pageable GetAll(CancellationToken cancellationToke /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -257,7 +257,7 @@ public virtual async Task> ExistsAsync(string probeName, Cancella /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -300,7 +300,7 @@ public virtual Response Exists(string probeName, CancellationToken cancell /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -345,7 +345,7 @@ public virtual async Task> GetIfExistsAsync(stri /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/ProbeResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/ProbeResource.cs index cfaaad94bba0..bee7b504c05f 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/ProbeResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/ProbeResource.cs @@ -101,7 +101,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -141,7 +141,7 @@ public virtual async Task> GetAsync(CancellationToken ca /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/PublicIPAddressCollection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/PublicIPAddressCollection.cs index f021433969fe..86e0da5a9258 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/PublicIPAddressCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/PublicIPAddressCollection.cs @@ -65,7 +65,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -114,7 +114,7 @@ public virtual async Task> CreateOrUpdateA /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -163,7 +163,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil wa /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -209,7 +209,7 @@ public virtual async Task> GetAsync(string pub /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -255,7 +255,7 @@ public virtual Response Get(string publicIPAddressName, /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -285,7 +285,7 @@ public virtual AsyncPageable GetAllAsync(CancellationTo /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -315,7 +315,7 @@ public virtual Pageable GetAll(CancellationToken cancel /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -359,7 +359,7 @@ public virtual async Task> ExistsAsync(string publicIPAddressName /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -403,7 +403,7 @@ public virtual Response Exists(string publicIPAddressName, string expand = /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -449,7 +449,7 @@ public virtual async Task> GetIfExists /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/PublicIPAddressResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/PublicIPAddressResource.cs index a6e2addddde0..b7be04a8b737 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/PublicIPAddressResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/PublicIPAddressResource.cs @@ -103,7 +103,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -144,7 +144,7 @@ public virtual async Task> GetAsync(string exp /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -185,7 +185,7 @@ public virtual Response Get(string expand = null, Cance /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -227,7 +227,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -269,7 +269,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -311,7 +311,7 @@ public virtual async Task> UpdateAsync(Network /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -353,7 +353,7 @@ public virtual Response Update(NetworkTagsObject networ /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -395,7 +395,7 @@ public virtual async Task> Ddos /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -437,7 +437,7 @@ public virtual ArmOperation DdosProtectionSt /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -499,7 +499,7 @@ public virtual async Task> AddTagAsync(string /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -561,7 +561,7 @@ public virtual Response AddTag(string key, string value /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -618,7 +618,7 @@ public virtual async Task> SetTagsAsync(IDicti /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -675,7 +675,7 @@ public virtual Response SetTags(IDictionary /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -735,7 +735,7 @@ public virtual async Task> RemoveTagAsync(stri /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/PublicIPPrefixCollection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/PublicIPPrefixCollection.cs index b3f2c69b0da4..adc69b9d92fa 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/PublicIPPrefixCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/PublicIPPrefixCollection.cs @@ -65,7 +65,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -114,7 +114,7 @@ public virtual async Task> CreateOrUpdateAs /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -163,7 +163,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil wai /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -209,7 +209,7 @@ public virtual async Task> GetAsync(string publ /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -255,7 +255,7 @@ public virtual Response Get(string publicIPPrefixName, s /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -285,7 +285,7 @@ public virtual AsyncPageable GetAllAsync(CancellationTok /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -315,7 +315,7 @@ public virtual Pageable GetAll(CancellationToken cancell /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -359,7 +359,7 @@ public virtual async Task> ExistsAsync(string publicIPPrefixName, /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -403,7 +403,7 @@ public virtual Response Exists(string publicIPPrefixName, string expand = /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -449,7 +449,7 @@ public virtual async Task> GetIfExistsA /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/PublicIPPrefixResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/PublicIPPrefixResource.cs index 36c617ef60aa..103cd8c8e4c0 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/PublicIPPrefixResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/PublicIPPrefixResource.cs @@ -103,7 +103,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -144,7 +144,7 @@ public virtual async Task> GetAsync(string expa /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -185,7 +185,7 @@ public virtual Response Get(string expand = null, Cancel /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -227,7 +227,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -269,7 +269,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -311,7 +311,7 @@ public virtual async Task> UpdateAsync(NetworkT /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -353,7 +353,7 @@ public virtual Response Update(NetworkTagsObject network /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -415,7 +415,7 @@ public virtual async Task> AddTagAsync(string k /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -477,7 +477,7 @@ public virtual Response AddTag(string key, string value, /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -534,7 +534,7 @@ public virtual async Task> SetTagsAsync(IDictio /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -591,7 +591,7 @@ public virtual Response SetTags(IDictionary /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -651,7 +651,7 @@ public virtual async Task> RemoveTagAsync(strin /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/ReachabilityAnalysisIntentCollection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/ReachabilityAnalysisIntentCollection.cs new file mode 100644 index 000000000000..287fe57e925f --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/ReachabilityAnalysisIntentCollection.cs @@ -0,0 +1,507 @@ +// 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.Network +{ + /// + /// 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 GetReachabilityAnalysisIntents method from an instance of . + /// + public partial class ReachabilityAnalysisIntentCollection : ArmCollection, IEnumerable, IAsyncEnumerable + { + private readonly ClientDiagnostics _reachabilityAnalysisIntentClientDiagnostics; + private readonly ReachabilityAnalysisIntentsRestOperations _reachabilityAnalysisIntentRestClient; + + /// Initializes a new instance of the class for mocking. + protected ReachabilityAnalysisIntentCollection() + { + } + + /// 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 ReachabilityAnalysisIntentCollection(ArmClient client, ResourceIdentifier id) : base(client, id) + { + _reachabilityAnalysisIntentClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Network", ReachabilityAnalysisIntentResource.ResourceType.Namespace, Diagnostics); + TryGetApiVersion(ReachabilityAnalysisIntentResource.ResourceType, out string reachabilityAnalysisIntentApiVersion); + _reachabilityAnalysisIntentRestClient = new ReachabilityAnalysisIntentsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, reachabilityAnalysisIntentApiVersion); +#if DEBUG + ValidateResourceId(Id); +#endif + } + + internal static void ValidateResourceId(ResourceIdentifier id) + { + if (id.ResourceType != VerifierWorkspaceResource.ResourceType) + throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, VerifierWorkspaceResource.ResourceType), nameof(id)); + } + + /// + /// Creates Reachability Analysis Intent. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/verifierWorkspaces/{workspaceName}/reachabilityAnalysisIntents/{reachabilityAnalysisIntentName} + /// + /// + /// Operation Id + /// ReachabilityAnalysisIntents_Create + /// + /// + /// Default Api Version + /// 2024-05-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. + /// Reachability Analysis Intent name. + /// Reachability Analysis Intent object to create/update. + /// 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 reachabilityAnalysisIntentName, ReachabilityAnalysisIntentData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(reachabilityAnalysisIntentName, nameof(reachabilityAnalysisIntentName)); + Argument.AssertNotNull(data, nameof(data)); + + using var scope = _reachabilityAnalysisIntentClientDiagnostics.CreateScope("ReachabilityAnalysisIntentCollection.CreateOrUpdate"); + scope.Start(); + try + { + var response = await _reachabilityAnalysisIntentRestClient.CreateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, reachabilityAnalysisIntentName, data, cancellationToken).ConfigureAwait(false); + var uri = _reachabilityAnalysisIntentRestClient.CreateCreateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, reachabilityAnalysisIntentName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), "None", null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new NetworkArmOperation(Response.FromValue(new ReachabilityAnalysisIntentResource(Client, response), response.GetRawResponse()), rehydrationToken); + if (waitUntil == WaitUntil.Completed) + await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Creates Reachability Analysis Intent. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/verifierWorkspaces/{workspaceName}/reachabilityAnalysisIntents/{reachabilityAnalysisIntentName} + /// + /// + /// Operation Id + /// ReachabilityAnalysisIntents_Create + /// + /// + /// Default Api Version + /// 2024-05-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. + /// Reachability Analysis Intent name. + /// Reachability Analysis Intent object to create/update. + /// 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 reachabilityAnalysisIntentName, ReachabilityAnalysisIntentData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(reachabilityAnalysisIntentName, nameof(reachabilityAnalysisIntentName)); + Argument.AssertNotNull(data, nameof(data)); + + using var scope = _reachabilityAnalysisIntentClientDiagnostics.CreateScope("ReachabilityAnalysisIntentCollection.CreateOrUpdate"); + scope.Start(); + try + { + var response = _reachabilityAnalysisIntentRestClient.Create(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, reachabilityAnalysisIntentName, data, cancellationToken); + var uri = _reachabilityAnalysisIntentRestClient.CreateCreateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, reachabilityAnalysisIntentName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), "None", null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new NetworkArmOperation(Response.FromValue(new ReachabilityAnalysisIntentResource(Client, response), response.GetRawResponse()), rehydrationToken); + if (waitUntil == WaitUntil.Completed) + operation.WaitForCompletion(cancellationToken); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Get the Reachability Analysis Intent. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/verifierWorkspaces/{workspaceName}/reachabilityAnalysisIntents/{reachabilityAnalysisIntentName} + /// + /// + /// Operation Id + /// ReachabilityAnalysisIntents_Get + /// + /// + /// Default Api Version + /// 2024-05-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// Reachability Analysis Intent 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 reachabilityAnalysisIntentName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(reachabilityAnalysisIntentName, nameof(reachabilityAnalysisIntentName)); + + using var scope = _reachabilityAnalysisIntentClientDiagnostics.CreateScope("ReachabilityAnalysisIntentCollection.Get"); + scope.Start(); + try + { + var response = await _reachabilityAnalysisIntentRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, reachabilityAnalysisIntentName, cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw new RequestFailedException(response.GetRawResponse()); + return Response.FromValue(new ReachabilityAnalysisIntentResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Get the Reachability Analysis Intent. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/verifierWorkspaces/{workspaceName}/reachabilityAnalysisIntents/{reachabilityAnalysisIntentName} + /// + /// + /// Operation Id + /// ReachabilityAnalysisIntents_Get + /// + /// + /// Default Api Version + /// 2024-05-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// Reachability Analysis Intent name. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual Response Get(string reachabilityAnalysisIntentName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(reachabilityAnalysisIntentName, nameof(reachabilityAnalysisIntentName)); + + using var scope = _reachabilityAnalysisIntentClientDiagnostics.CreateScope("ReachabilityAnalysisIntentCollection.Get"); + scope.Start(); + try + { + var response = _reachabilityAnalysisIntentRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, reachabilityAnalysisIntentName, cancellationToken); + if (response.Value == null) + throw new RequestFailedException(response.GetRawResponse()); + return Response.FromValue(new ReachabilityAnalysisIntentResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Gets list of Reachability Analysis Intents . + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/verifierWorkspaces/{workspaceName}/reachabilityAnalysisIntents + /// + /// + /// Operation Id + /// ReachabilityAnalysisIntents_List + /// + /// + /// Default Api Version + /// 2024-05-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// Optional skip token. + /// Optional num entries to skip. + /// Optional num entries to show. + /// Optional key by which to sort. + /// Optional sort value for pagination. + /// The cancellation token to use. + /// An async collection of that may take multiple service requests to iterate over. + public virtual AsyncPageable GetAllAsync(string skipToken = null, int? skip = null, int? top = null, string sortKey = null, string sortValue = null, CancellationToken cancellationToken = default) + { + HttpMessage FirstPageRequest(int? pageSizeHint) => _reachabilityAnalysisIntentRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, skipToken, skip, top, sortKey, sortValue); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _reachabilityAnalysisIntentRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, skipToken, skip, top, sortKey, sortValue); + return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new ReachabilityAnalysisIntentResource(Client, ReachabilityAnalysisIntentData.DeserializeReachabilityAnalysisIntentData(e)), _reachabilityAnalysisIntentClientDiagnostics, Pipeline, "ReachabilityAnalysisIntentCollection.GetAll", "value", "nextLink", cancellationToken); + } + + /// + /// Gets list of Reachability Analysis Intents . + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/verifierWorkspaces/{workspaceName}/reachabilityAnalysisIntents + /// + /// + /// Operation Id + /// ReachabilityAnalysisIntents_List + /// + /// + /// Default Api Version + /// 2024-05-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// Optional skip token. + /// Optional num entries to skip. + /// Optional num entries to show. + /// Optional key by which to sort. + /// Optional sort value for pagination. + /// The cancellation token to use. + /// A collection of that may take multiple service requests to iterate over. + public virtual Pageable GetAll(string skipToken = null, int? skip = null, int? top = null, string sortKey = null, string sortValue = null, CancellationToken cancellationToken = default) + { + HttpMessage FirstPageRequest(int? pageSizeHint) => _reachabilityAnalysisIntentRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, skipToken, skip, top, sortKey, sortValue); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _reachabilityAnalysisIntentRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, skipToken, skip, top, sortKey, sortValue); + return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new ReachabilityAnalysisIntentResource(Client, ReachabilityAnalysisIntentData.DeserializeReachabilityAnalysisIntentData(e)), _reachabilityAnalysisIntentClientDiagnostics, Pipeline, "ReachabilityAnalysisIntentCollection.GetAll", "value", "nextLink", cancellationToken); + } + + /// + /// Checks to see if the resource exists in azure. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/verifierWorkspaces/{workspaceName}/reachabilityAnalysisIntents/{reachabilityAnalysisIntentName} + /// + /// + /// Operation Id + /// ReachabilityAnalysisIntents_Get + /// + /// + /// Default Api Version + /// 2024-05-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// Reachability Analysis Intent 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 reachabilityAnalysisIntentName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(reachabilityAnalysisIntentName, nameof(reachabilityAnalysisIntentName)); + + using var scope = _reachabilityAnalysisIntentClientDiagnostics.CreateScope("ReachabilityAnalysisIntentCollection.Exists"); + scope.Start(); + try + { + var response = await _reachabilityAnalysisIntentRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, reachabilityAnalysisIntentName, 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.Network/networkManagers/{networkManagerName}/verifierWorkspaces/{workspaceName}/reachabilityAnalysisIntents/{reachabilityAnalysisIntentName} + /// + /// + /// Operation Id + /// ReachabilityAnalysisIntents_Get + /// + /// + /// Default Api Version + /// 2024-05-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// Reachability Analysis Intent name. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual Response Exists(string reachabilityAnalysisIntentName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(reachabilityAnalysisIntentName, nameof(reachabilityAnalysisIntentName)); + + using var scope = _reachabilityAnalysisIntentClientDiagnostics.CreateScope("ReachabilityAnalysisIntentCollection.Exists"); + scope.Start(); + try + { + var response = _reachabilityAnalysisIntentRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, reachabilityAnalysisIntentName, 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.Network/networkManagers/{networkManagerName}/verifierWorkspaces/{workspaceName}/reachabilityAnalysisIntents/{reachabilityAnalysisIntentName} + /// + /// + /// Operation Id + /// ReachabilityAnalysisIntents_Get + /// + /// + /// Default Api Version + /// 2024-05-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// Reachability Analysis Intent 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 reachabilityAnalysisIntentName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(reachabilityAnalysisIntentName, nameof(reachabilityAnalysisIntentName)); + + using var scope = _reachabilityAnalysisIntentClientDiagnostics.CreateScope("ReachabilityAnalysisIntentCollection.GetIfExists"); + scope.Start(); + try + { + var response = await _reachabilityAnalysisIntentRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, reachabilityAnalysisIntentName, cancellationToken: cancellationToken).ConfigureAwait(false); + if (response.Value == null) + return new NoValueResponse(response.GetRawResponse()); + return Response.FromValue(new ReachabilityAnalysisIntentResource(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.Network/networkManagers/{networkManagerName}/verifierWorkspaces/{workspaceName}/reachabilityAnalysisIntents/{reachabilityAnalysisIntentName} + /// + /// + /// Operation Id + /// ReachabilityAnalysisIntents_Get + /// + /// + /// Default Api Version + /// 2024-05-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// Reachability Analysis Intent name. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual NullableResponse GetIfExists(string reachabilityAnalysisIntentName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(reachabilityAnalysisIntentName, nameof(reachabilityAnalysisIntentName)); + + using var scope = _reachabilityAnalysisIntentClientDiagnostics.CreateScope("ReachabilityAnalysisIntentCollection.GetIfExists"); + scope.Start(); + try + { + var response = _reachabilityAnalysisIntentRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, reachabilityAnalysisIntentName, cancellationToken: cancellationToken); + if (response.Value == null) + return new NoValueResponse(response.GetRawResponse()); + return Response.FromValue(new ReachabilityAnalysisIntentResource(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/network/Azure.ResourceManager.Network/src/Generated/ReachabilityAnalysisIntentData.Serialization.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/ReachabilityAnalysisIntentData.Serialization.cs new file mode 100644 index 000000000000..f7da049e2255 --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/ReachabilityAnalysisIntentData.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; +using Azure.ResourceManager.Models; +using Azure.ResourceManager.Network.Models; + +namespace Azure.ResourceManager.Network +{ + public partial class ReachabilityAnalysisIntentData : 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(ReachabilityAnalysisIntentData)} does not support writing '{format}' format."); + } + + base.JsonModelWriteCore(writer, options); + writer.WritePropertyName("properties"u8); + writer.WriteObjectValue(Properties, options); + if (options.Format != "W" && Optional.IsDefined(CommonResourceType)) + { + writer.WritePropertyName("type"u8); + writer.WriteStringValue(CommonResourceType); + } + } + + ReachabilityAnalysisIntentData 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(ReachabilityAnalysisIntentData)} does not support reading '{format}' format."); + } + + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeReachabilityAnalysisIntentData(document.RootElement, options); + } + + internal static ReachabilityAnalysisIntentData DeserializeReachabilityAnalysisIntentData(JsonElement element, ModelReaderWriterOptions options = null) + { + options ??= ModelSerializationExtensions.WireOptions; + + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + ReachabilityAnalysisIntentProperties properties = default; + string type = default; + ResourceIdentifier id = default; + string name = default; + ResourceType type0 = default; + SystemData systemData = default; + IDictionary serializedAdditionalRawData = default; + Dictionary rawDataDictionary = new Dictionary(); + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("properties"u8)) + { + properties = ReachabilityAnalysisIntentProperties.DeserializeReachabilityAnalysisIntentProperties(property.Value, options); + continue; + } + if (property.NameEquals("type"u8)) + { + type = property.Value.GetString(); + continue; + } + if (property.NameEquals("id"u8)) + { + id = new ResourceIdentifier(property.Value.GetString()); + continue; + } + if (property.NameEquals("name"u8)) + { + name = property.Value.GetString(); + continue; + } + if (property.NameEquals("type"u8)) + { + type0 = new ResourceType(property.Value.GetString()); + continue; + } + if (property.NameEquals("systemData"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + systemData = JsonSerializer.Deserialize(property.Value.GetRawText()); + continue; + } + if (options.Format != "W") + { + rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + } + } + serializedAdditionalRawData = rawDataDictionary; + return new ReachabilityAnalysisIntentData( + id, + name, + type0, + systemData, + properties, + type, + 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(ReachabilityAnalysisIntentData)} does not support writing '{options.Format}' format."); + } + } + + ReachabilityAnalysisIntentData 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 DeserializeReachabilityAnalysisIntentData(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(ReachabilityAnalysisIntentData)} does not support reading '{options.Format}' format."); + } + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/ReachabilityAnalysisIntentData.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/ReachabilityAnalysisIntentData.cs new file mode 100644 index 000000000000..7e69cce9ea83 --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/ReachabilityAnalysisIntentData.cs @@ -0,0 +1,89 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using Azure.Core; +using Azure.ResourceManager.Models; +using Azure.ResourceManager.Network.Models; + +namespace Azure.ResourceManager.Network +{ + /// + /// A class representing the ReachabilityAnalysisIntent data model. + /// Configuration information or intent on which to do the analysis on. + /// + public partial class ReachabilityAnalysisIntentData : 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 . + /// Represents the Reachability Analysis Intent properties. + /// is null. + public ReachabilityAnalysisIntentData(ReachabilityAnalysisIntentProperties properties) + { + Argument.AssertNotNull(properties, nameof(properties)); + + Properties = properties; + } + + /// Initializes a new instance of . + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// Represents the Reachability Analysis Intent properties. + /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts". + /// Keeps track of any properties unknown to the library. + internal ReachabilityAnalysisIntentData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, ReachabilityAnalysisIntentProperties properties, string commonResourceType, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData) + { + Properties = properties; + CommonResourceType = commonResourceType; + _serializedAdditionalRawData = serializedAdditionalRawData; + } + + /// Initializes a new instance of for deserialization. + internal ReachabilityAnalysisIntentData() + { + } + + /// Represents the Reachability Analysis Intent properties. + public ReachabilityAnalysisIntentProperties Properties { get; set; } + /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts". + public string CommonResourceType { get; } + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/ReachabilityAnalysisIntentResource.Serialization.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/ReachabilityAnalysisIntentResource.Serialization.cs new file mode 100644 index 000000000000..2d43b0cd5646 --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/ReachabilityAnalysisIntentResource.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.Network +{ + public partial class ReachabilityAnalysisIntentResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) => ((IJsonModel)Data).Write(writer, options); + + ReachabilityAnalysisIntentData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => ((IJsonModel)Data).Create(ref reader, options); + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => ModelReaderWriter.Write(Data, options); + + ReachabilityAnalysisIntentData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => ModelReaderWriter.Read(data, options); + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => ((IPersistableModel)Data).GetFormatFromOptions(options); + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/ReachabilityAnalysisIntentResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/ReachabilityAnalysisIntentResource.cs new file mode 100644 index 000000000000..fa717b12a40d --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/ReachabilityAnalysisIntentResource.cs @@ -0,0 +1,356 @@ +// 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.Network +{ + /// + /// A Class representing a ReachabilityAnalysisIntent 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 GetReachabilityAnalysisIntentResource method. + /// Otherwise you can get one from its parent resource using the GetReachabilityAnalysisIntent method. + /// + public partial class ReachabilityAnalysisIntentResource : ArmResource + { + /// Generate the resource identifier of a instance. + /// The subscriptionId. + /// The resourceGroupName. + /// The networkManagerName. + /// The workspaceName. + /// The reachabilityAnalysisIntentName. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string networkManagerName, string workspaceName, string reachabilityAnalysisIntentName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/verifierWorkspaces/{workspaceName}/reachabilityAnalysisIntents/{reachabilityAnalysisIntentName}"; + return new ResourceIdentifier(resourceId); + } + + private readonly ClientDiagnostics _reachabilityAnalysisIntentClientDiagnostics; + private readonly ReachabilityAnalysisIntentsRestOperations _reachabilityAnalysisIntentRestClient; + private readonly ReachabilityAnalysisIntentData _data; + + /// Gets the resource type for the operations. + public static readonly ResourceType ResourceType = "Microsoft.Network/networkManagers/verifierWorkspaces/reachabilityAnalysisIntents"; + + /// Initializes a new instance of the class for mocking. + protected ReachabilityAnalysisIntentResource() + { + } + + /// Initializes a new instance of the class. + /// The client parameters to use in these operations. + /// The resource that is the target of operations. + internal ReachabilityAnalysisIntentResource(ArmClient client, ReachabilityAnalysisIntentData 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 ReachabilityAnalysisIntentResource(ArmClient client, ResourceIdentifier id) : base(client, id) + { + _reachabilityAnalysisIntentClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Network", ResourceType.Namespace, Diagnostics); + TryGetApiVersion(ResourceType, out string reachabilityAnalysisIntentApiVersion); + _reachabilityAnalysisIntentRestClient = new ReachabilityAnalysisIntentsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, reachabilityAnalysisIntentApiVersion); +#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 ReachabilityAnalysisIntentData 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 the Reachability Analysis Intent. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/verifierWorkspaces/{workspaceName}/reachabilityAnalysisIntents/{reachabilityAnalysisIntentName} + /// + /// + /// Operation Id + /// ReachabilityAnalysisIntents_Get + /// + /// + /// Default Api Version + /// 2024-05-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// The cancellation token to use. + public virtual async Task> GetAsync(CancellationToken cancellationToken = default) + { + using var scope = _reachabilityAnalysisIntentClientDiagnostics.CreateScope("ReachabilityAnalysisIntentResource.Get"); + scope.Start(); + try + { + var response = await _reachabilityAnalysisIntentRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw new RequestFailedException(response.GetRawResponse()); + return Response.FromValue(new ReachabilityAnalysisIntentResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Get the Reachability Analysis Intent. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/verifierWorkspaces/{workspaceName}/reachabilityAnalysisIntents/{reachabilityAnalysisIntentName} + /// + /// + /// Operation Id + /// ReachabilityAnalysisIntents_Get + /// + /// + /// Default Api Version + /// 2024-05-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// The cancellation token to use. + public virtual Response Get(CancellationToken cancellationToken = default) + { + using var scope = _reachabilityAnalysisIntentClientDiagnostics.CreateScope("ReachabilityAnalysisIntentResource.Get"); + scope.Start(); + try + { + var response = _reachabilityAnalysisIntentRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken); + if (response.Value == null) + throw new RequestFailedException(response.GetRawResponse()); + return Response.FromValue(new ReachabilityAnalysisIntentResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Deletes Reachability Analysis Intent. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/verifierWorkspaces/{workspaceName}/reachabilityAnalysisIntents/{reachabilityAnalysisIntentName} + /// + /// + /// Operation Id + /// ReachabilityAnalysisIntents_Delete + /// + /// + /// Default Api Version + /// 2024-05-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 = _reachabilityAnalysisIntentClientDiagnostics.CreateScope("ReachabilityAnalysisIntentResource.Delete"); + scope.Start(); + try + { + var response = await _reachabilityAnalysisIntentRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + var uri = _reachabilityAnalysisIntentRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), "None", null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new NetworkArmOperation(response, rehydrationToken); + if (waitUntil == WaitUntil.Completed) + await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Deletes Reachability Analysis Intent. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/verifierWorkspaces/{workspaceName}/reachabilityAnalysisIntents/{reachabilityAnalysisIntentName} + /// + /// + /// Operation Id + /// ReachabilityAnalysisIntents_Delete + /// + /// + /// Default Api Version + /// 2024-05-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 = _reachabilityAnalysisIntentClientDiagnostics.CreateScope("ReachabilityAnalysisIntentResource.Delete"); + scope.Start(); + try + { + var response = _reachabilityAnalysisIntentRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken); + var uri = _reachabilityAnalysisIntentRestClient.CreateDeleteRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Delete, uri.ToUri(), uri.ToString(), "None", null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new NetworkArmOperation(response, rehydrationToken); + if (waitUntil == WaitUntil.Completed) + operation.WaitForCompletionResponse(cancellationToken); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Creates Reachability Analysis Intent. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/verifierWorkspaces/{workspaceName}/reachabilityAnalysisIntents/{reachabilityAnalysisIntentName} + /// + /// + /// Operation Id + /// ReachabilityAnalysisIntents_Create + /// + /// + /// Default Api Version + /// 2024-05-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. + /// Reachability Analysis Intent object to create/update. + /// The cancellation token to use. + /// is null. + public virtual async Task> UpdateAsync(WaitUntil waitUntil, ReachabilityAnalysisIntentData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(data, nameof(data)); + + using var scope = _reachabilityAnalysisIntentClientDiagnostics.CreateScope("ReachabilityAnalysisIntentResource.Update"); + scope.Start(); + try + { + var response = await _reachabilityAnalysisIntentRestClient.CreateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); + var uri = _reachabilityAnalysisIntentRestClient.CreateCreateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, 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 NetworkArmOperation(Response.FromValue(new ReachabilityAnalysisIntentResource(Client, response), response.GetRawResponse()), rehydrationToken); + if (waitUntil == WaitUntil.Completed) + await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Creates Reachability Analysis Intent. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/verifierWorkspaces/{workspaceName}/reachabilityAnalysisIntents/{reachabilityAnalysisIntentName} + /// + /// + /// Operation Id + /// ReachabilityAnalysisIntents_Create + /// + /// + /// Default Api Version + /// 2024-05-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. + /// Reachability Analysis Intent object to create/update. + /// The cancellation token to use. + /// is null. + public virtual ArmOperation Update(WaitUntil waitUntil, ReachabilityAnalysisIntentData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(data, nameof(data)); + + using var scope = _reachabilityAnalysisIntentClientDiagnostics.CreateScope("ReachabilityAnalysisIntentResource.Update"); + scope.Start(); + try + { + var response = _reachabilityAnalysisIntentRestClient.Create(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, cancellationToken); + var uri = _reachabilityAnalysisIntentRestClient.CreateCreateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, 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 NetworkArmOperation(Response.FromValue(new ReachabilityAnalysisIntentResource(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/network/Azure.ResourceManager.Network/src/Generated/ReachabilityAnalysisRunCollection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/ReachabilityAnalysisRunCollection.cs new file mode 100644 index 000000000000..a5c1291a56f0 --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/ReachabilityAnalysisRunCollection.cs @@ -0,0 +1,507 @@ +// 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.Network +{ + /// + /// 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 GetReachabilityAnalysisRuns method from an instance of . + /// + public partial class ReachabilityAnalysisRunCollection : ArmCollection, IEnumerable, IAsyncEnumerable + { + private readonly ClientDiagnostics _reachabilityAnalysisRunClientDiagnostics; + private readonly ReachabilityAnalysisRunsRestOperations _reachabilityAnalysisRunRestClient; + + /// Initializes a new instance of the class for mocking. + protected ReachabilityAnalysisRunCollection() + { + } + + /// 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 ReachabilityAnalysisRunCollection(ArmClient client, ResourceIdentifier id) : base(client, id) + { + _reachabilityAnalysisRunClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Network", ReachabilityAnalysisRunResource.ResourceType.Namespace, Diagnostics); + TryGetApiVersion(ReachabilityAnalysisRunResource.ResourceType, out string reachabilityAnalysisRunApiVersion); + _reachabilityAnalysisRunRestClient = new ReachabilityAnalysisRunsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, reachabilityAnalysisRunApiVersion); +#if DEBUG + ValidateResourceId(Id); +#endif + } + + internal static void ValidateResourceId(ResourceIdentifier id) + { + if (id.ResourceType != VerifierWorkspaceResource.ResourceType) + throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, VerifierWorkspaceResource.ResourceType), nameof(id)); + } + + /// + /// Creates Reachability Analysis Runs. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/verifierWorkspaces/{workspaceName}/reachabilityAnalysisRuns/{reachabilityAnalysisRunName} + /// + /// + /// Operation Id + /// ReachabilityAnalysisRuns_Create + /// + /// + /// Default Api Version + /// 2024-05-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. + /// Reachability Analysis Run name. + /// Analysis Run resource object to create/update. + /// 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 reachabilityAnalysisRunName, ReachabilityAnalysisRunData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(reachabilityAnalysisRunName, nameof(reachabilityAnalysisRunName)); + Argument.AssertNotNull(data, nameof(data)); + + using var scope = _reachabilityAnalysisRunClientDiagnostics.CreateScope("ReachabilityAnalysisRunCollection.CreateOrUpdate"); + scope.Start(); + try + { + var response = await _reachabilityAnalysisRunRestClient.CreateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, reachabilityAnalysisRunName, data, cancellationToken).ConfigureAwait(false); + var uri = _reachabilityAnalysisRunRestClient.CreateCreateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, reachabilityAnalysisRunName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), "None", null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new NetworkArmOperation(Response.FromValue(new ReachabilityAnalysisRunResource(Client, response), response.GetRawResponse()), rehydrationToken); + if (waitUntil == WaitUntil.Completed) + await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Creates Reachability Analysis Runs. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/verifierWorkspaces/{workspaceName}/reachabilityAnalysisRuns/{reachabilityAnalysisRunName} + /// + /// + /// Operation Id + /// ReachabilityAnalysisRuns_Create + /// + /// + /// Default Api Version + /// 2024-05-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. + /// Reachability Analysis Run name. + /// Analysis Run resource object to create/update. + /// 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 reachabilityAnalysisRunName, ReachabilityAnalysisRunData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(reachabilityAnalysisRunName, nameof(reachabilityAnalysisRunName)); + Argument.AssertNotNull(data, nameof(data)); + + using var scope = _reachabilityAnalysisRunClientDiagnostics.CreateScope("ReachabilityAnalysisRunCollection.CreateOrUpdate"); + scope.Start(); + try + { + var response = _reachabilityAnalysisRunRestClient.Create(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, reachabilityAnalysisRunName, data, cancellationToken); + var uri = _reachabilityAnalysisRunRestClient.CreateCreateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, reachabilityAnalysisRunName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), "None", null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new NetworkArmOperation(Response.FromValue(new ReachabilityAnalysisRunResource(Client, response), response.GetRawResponse()), rehydrationToken); + if (waitUntil == WaitUntil.Completed) + operation.WaitForCompletion(cancellationToken); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Gets Reachability Analysis Run. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/verifierWorkspaces/{workspaceName}/reachabilityAnalysisRuns/{reachabilityAnalysisRunName} + /// + /// + /// Operation Id + /// ReachabilityAnalysisRuns_Get + /// + /// + /// Default Api Version + /// 2024-05-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// Reachability Analysis Run 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 reachabilityAnalysisRunName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(reachabilityAnalysisRunName, nameof(reachabilityAnalysisRunName)); + + using var scope = _reachabilityAnalysisRunClientDiagnostics.CreateScope("ReachabilityAnalysisRunCollection.Get"); + scope.Start(); + try + { + var response = await _reachabilityAnalysisRunRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, reachabilityAnalysisRunName, cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw new RequestFailedException(response.GetRawResponse()); + return Response.FromValue(new ReachabilityAnalysisRunResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Gets Reachability Analysis Run. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/verifierWorkspaces/{workspaceName}/reachabilityAnalysisRuns/{reachabilityAnalysisRunName} + /// + /// + /// Operation Id + /// ReachabilityAnalysisRuns_Get + /// + /// + /// Default Api Version + /// 2024-05-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// Reachability Analysis Run name. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual Response Get(string reachabilityAnalysisRunName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(reachabilityAnalysisRunName, nameof(reachabilityAnalysisRunName)); + + using var scope = _reachabilityAnalysisRunClientDiagnostics.CreateScope("ReachabilityAnalysisRunCollection.Get"); + scope.Start(); + try + { + var response = _reachabilityAnalysisRunRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, reachabilityAnalysisRunName, cancellationToken); + if (response.Value == null) + throw new RequestFailedException(response.GetRawResponse()); + return Response.FromValue(new ReachabilityAnalysisRunResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Gets list of Reachability Analysis Runs. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/verifierWorkspaces/{workspaceName}/reachabilityAnalysisRuns + /// + /// + /// Operation Id + /// ReachabilityAnalysisRuns_List + /// + /// + /// Default Api Version + /// 2024-05-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// Optional skip token. + /// Optional num entries to skip. + /// Optional num entries to show. + /// Optional key by which to sort. + /// Optional sort value for pagination. + /// The cancellation token to use. + /// An async collection of that may take multiple service requests to iterate over. + public virtual AsyncPageable GetAllAsync(string skipToken = null, int? skip = null, int? top = null, string sortKey = null, string sortValue = null, CancellationToken cancellationToken = default) + { + HttpMessage FirstPageRequest(int? pageSizeHint) => _reachabilityAnalysisRunRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, skipToken, skip, top, sortKey, sortValue); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _reachabilityAnalysisRunRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, skipToken, skip, top, sortKey, sortValue); + return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new ReachabilityAnalysisRunResource(Client, ReachabilityAnalysisRunData.DeserializeReachabilityAnalysisRunData(e)), _reachabilityAnalysisRunClientDiagnostics, Pipeline, "ReachabilityAnalysisRunCollection.GetAll", "value", "nextLink", cancellationToken); + } + + /// + /// Gets list of Reachability Analysis Runs. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/verifierWorkspaces/{workspaceName}/reachabilityAnalysisRuns + /// + /// + /// Operation Id + /// ReachabilityAnalysisRuns_List + /// + /// + /// Default Api Version + /// 2024-05-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// Optional skip token. + /// Optional num entries to skip. + /// Optional num entries to show. + /// Optional key by which to sort. + /// Optional sort value for pagination. + /// The cancellation token to use. + /// A collection of that may take multiple service requests to iterate over. + public virtual Pageable GetAll(string skipToken = null, int? skip = null, int? top = null, string sortKey = null, string sortValue = null, CancellationToken cancellationToken = default) + { + HttpMessage FirstPageRequest(int? pageSizeHint) => _reachabilityAnalysisRunRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, skipToken, skip, top, sortKey, sortValue); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _reachabilityAnalysisRunRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, skipToken, skip, top, sortKey, sortValue); + return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new ReachabilityAnalysisRunResource(Client, ReachabilityAnalysisRunData.DeserializeReachabilityAnalysisRunData(e)), _reachabilityAnalysisRunClientDiagnostics, Pipeline, "ReachabilityAnalysisRunCollection.GetAll", "value", "nextLink", cancellationToken); + } + + /// + /// Checks to see if the resource exists in azure. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/verifierWorkspaces/{workspaceName}/reachabilityAnalysisRuns/{reachabilityAnalysisRunName} + /// + /// + /// Operation Id + /// ReachabilityAnalysisRuns_Get + /// + /// + /// Default Api Version + /// 2024-05-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// Reachability Analysis Run 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 reachabilityAnalysisRunName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(reachabilityAnalysisRunName, nameof(reachabilityAnalysisRunName)); + + using var scope = _reachabilityAnalysisRunClientDiagnostics.CreateScope("ReachabilityAnalysisRunCollection.Exists"); + scope.Start(); + try + { + var response = await _reachabilityAnalysisRunRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, reachabilityAnalysisRunName, 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.Network/networkManagers/{networkManagerName}/verifierWorkspaces/{workspaceName}/reachabilityAnalysisRuns/{reachabilityAnalysisRunName} + /// + /// + /// Operation Id + /// ReachabilityAnalysisRuns_Get + /// + /// + /// Default Api Version + /// 2024-05-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// Reachability Analysis Run name. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual Response Exists(string reachabilityAnalysisRunName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(reachabilityAnalysisRunName, nameof(reachabilityAnalysisRunName)); + + using var scope = _reachabilityAnalysisRunClientDiagnostics.CreateScope("ReachabilityAnalysisRunCollection.Exists"); + scope.Start(); + try + { + var response = _reachabilityAnalysisRunRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, reachabilityAnalysisRunName, 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.Network/networkManagers/{networkManagerName}/verifierWorkspaces/{workspaceName}/reachabilityAnalysisRuns/{reachabilityAnalysisRunName} + /// + /// + /// Operation Id + /// ReachabilityAnalysisRuns_Get + /// + /// + /// Default Api Version + /// 2024-05-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// Reachability Analysis Run 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 reachabilityAnalysisRunName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(reachabilityAnalysisRunName, nameof(reachabilityAnalysisRunName)); + + using var scope = _reachabilityAnalysisRunClientDiagnostics.CreateScope("ReachabilityAnalysisRunCollection.GetIfExists"); + scope.Start(); + try + { + var response = await _reachabilityAnalysisRunRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, reachabilityAnalysisRunName, cancellationToken: cancellationToken).ConfigureAwait(false); + if (response.Value == null) + return new NoValueResponse(response.GetRawResponse()); + return Response.FromValue(new ReachabilityAnalysisRunResource(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.Network/networkManagers/{networkManagerName}/verifierWorkspaces/{workspaceName}/reachabilityAnalysisRuns/{reachabilityAnalysisRunName} + /// + /// + /// Operation Id + /// ReachabilityAnalysisRuns_Get + /// + /// + /// Default Api Version + /// 2024-05-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// Reachability Analysis Run name. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual NullableResponse GetIfExists(string reachabilityAnalysisRunName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(reachabilityAnalysisRunName, nameof(reachabilityAnalysisRunName)); + + using var scope = _reachabilityAnalysisRunClientDiagnostics.CreateScope("ReachabilityAnalysisRunCollection.GetIfExists"); + scope.Start(); + try + { + var response = _reachabilityAnalysisRunRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, reachabilityAnalysisRunName, cancellationToken: cancellationToken); + if (response.Value == null) + return new NoValueResponse(response.GetRawResponse()); + return Response.FromValue(new ReachabilityAnalysisRunResource(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/network/Azure.ResourceManager.Network/src/Generated/ReachabilityAnalysisRunData.Serialization.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/ReachabilityAnalysisRunData.Serialization.cs new file mode 100644 index 000000000000..2ae571a6c9a1 --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/ReachabilityAnalysisRunData.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; +using Azure.ResourceManager.Models; +using Azure.ResourceManager.Network.Models; + +namespace Azure.ResourceManager.Network +{ + public partial class ReachabilityAnalysisRunData : 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(ReachabilityAnalysisRunData)} does not support writing '{format}' format."); + } + + base.JsonModelWriteCore(writer, options); + writer.WritePropertyName("properties"u8); + writer.WriteObjectValue(Properties, options); + if (options.Format != "W" && Optional.IsDefined(CommonResourceType)) + { + writer.WritePropertyName("type"u8); + writer.WriteStringValue(CommonResourceType); + } + } + + ReachabilityAnalysisRunData 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(ReachabilityAnalysisRunData)} does not support reading '{format}' format."); + } + + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeReachabilityAnalysisRunData(document.RootElement, options); + } + + internal static ReachabilityAnalysisRunData DeserializeReachabilityAnalysisRunData(JsonElement element, ModelReaderWriterOptions options = null) + { + options ??= ModelSerializationExtensions.WireOptions; + + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + ReachabilityAnalysisRunProperties properties = default; + string type = default; + ResourceIdentifier id = default; + string name = default; + ResourceType type0 = default; + SystemData systemData = default; + IDictionary serializedAdditionalRawData = default; + Dictionary rawDataDictionary = new Dictionary(); + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("properties"u8)) + { + properties = ReachabilityAnalysisRunProperties.DeserializeReachabilityAnalysisRunProperties(property.Value, options); + continue; + } + if (property.NameEquals("type"u8)) + { + type = property.Value.GetString(); + continue; + } + if (property.NameEquals("id"u8)) + { + id = new ResourceIdentifier(property.Value.GetString()); + continue; + } + if (property.NameEquals("name"u8)) + { + name = property.Value.GetString(); + continue; + } + if (property.NameEquals("type"u8)) + { + type0 = new ResourceType(property.Value.GetString()); + continue; + } + if (property.NameEquals("systemData"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + systemData = JsonSerializer.Deserialize(property.Value.GetRawText()); + continue; + } + if (options.Format != "W") + { + rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + } + } + serializedAdditionalRawData = rawDataDictionary; + return new ReachabilityAnalysisRunData( + id, + name, + type0, + systemData, + properties, + type, + 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(ReachabilityAnalysisRunData)} does not support writing '{options.Format}' format."); + } + } + + ReachabilityAnalysisRunData 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 DeserializeReachabilityAnalysisRunData(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(ReachabilityAnalysisRunData)} does not support reading '{options.Format}' format."); + } + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/ReachabilityAnalysisRunData.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/ReachabilityAnalysisRunData.cs new file mode 100644 index 000000000000..f97593399c6d --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/ReachabilityAnalysisRunData.cs @@ -0,0 +1,89 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using Azure.Core; +using Azure.ResourceManager.Models; +using Azure.ResourceManager.Network.Models; + +namespace Azure.ResourceManager.Network +{ + /// + /// A class representing the ReachabilityAnalysisRun data model. + /// Configuration information for analysis run. + /// + public partial class ReachabilityAnalysisRunData : 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 . + /// Represents the Reachability Analysis Run properties. + /// is null. + public ReachabilityAnalysisRunData(ReachabilityAnalysisRunProperties properties) + { + Argument.AssertNotNull(properties, nameof(properties)); + + Properties = properties; + } + + /// Initializes a new instance of . + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// Represents the Reachability Analysis Run properties. + /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts". + /// Keeps track of any properties unknown to the library. + internal ReachabilityAnalysisRunData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, ReachabilityAnalysisRunProperties properties, string commonResourceType, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData) + { + Properties = properties; + CommonResourceType = commonResourceType; + _serializedAdditionalRawData = serializedAdditionalRawData; + } + + /// Initializes a new instance of for deserialization. + internal ReachabilityAnalysisRunData() + { + } + + /// Represents the Reachability Analysis Run properties. + public ReachabilityAnalysisRunProperties Properties { get; set; } + /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts". + public string CommonResourceType { get; } + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/ReachabilityAnalysisRunResource.Serialization.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/ReachabilityAnalysisRunResource.Serialization.cs new file mode 100644 index 000000000000..fbedf3810285 --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/ReachabilityAnalysisRunResource.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.Network +{ + public partial class ReachabilityAnalysisRunResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) => ((IJsonModel)Data).Write(writer, options); + + ReachabilityAnalysisRunData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => ((IJsonModel)Data).Create(ref reader, options); + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => ModelReaderWriter.Write(Data, options); + + ReachabilityAnalysisRunData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => ModelReaderWriter.Read(data, options); + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => ((IPersistableModel)Data).GetFormatFromOptions(options); + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/ReachabilityAnalysisRunResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/ReachabilityAnalysisRunResource.cs new file mode 100644 index 000000000000..f84e6838b3e7 --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/ReachabilityAnalysisRunResource.cs @@ -0,0 +1,352 @@ +// 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.Network +{ + /// + /// A Class representing a ReachabilityAnalysisRun 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 GetReachabilityAnalysisRunResource method. + /// Otherwise you can get one from its parent resource using the GetReachabilityAnalysisRun method. + /// + public partial class ReachabilityAnalysisRunResource : ArmResource + { + /// Generate the resource identifier of a instance. + /// The subscriptionId. + /// The resourceGroupName. + /// The networkManagerName. + /// The workspaceName. + /// The reachabilityAnalysisRunName. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string networkManagerName, string workspaceName, string reachabilityAnalysisRunName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/verifierWorkspaces/{workspaceName}/reachabilityAnalysisRuns/{reachabilityAnalysisRunName}"; + return new ResourceIdentifier(resourceId); + } + + private readonly ClientDiagnostics _reachabilityAnalysisRunClientDiagnostics; + private readonly ReachabilityAnalysisRunsRestOperations _reachabilityAnalysisRunRestClient; + private readonly ReachabilityAnalysisRunData _data; + + /// Gets the resource type for the operations. + public static readonly ResourceType ResourceType = "Microsoft.Network/networkManagers/verifierWorkspaces/reachabilityAnalysisRuns"; + + /// Initializes a new instance of the class for mocking. + protected ReachabilityAnalysisRunResource() + { + } + + /// Initializes a new instance of the class. + /// The client parameters to use in these operations. + /// The resource that is the target of operations. + internal ReachabilityAnalysisRunResource(ArmClient client, ReachabilityAnalysisRunData 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 ReachabilityAnalysisRunResource(ArmClient client, ResourceIdentifier id) : base(client, id) + { + _reachabilityAnalysisRunClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Network", ResourceType.Namespace, Diagnostics); + TryGetApiVersion(ResourceType, out string reachabilityAnalysisRunApiVersion); + _reachabilityAnalysisRunRestClient = new ReachabilityAnalysisRunsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, reachabilityAnalysisRunApiVersion); +#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 ReachabilityAnalysisRunData Data + { + get + { + if (!HasData) + throw new InvalidOperationException("The current instance does not have data, you must call Get first."); + return _data; + } + } + + internal static void ValidateResourceId(ResourceIdentifier id) + { + if (id.ResourceType != ResourceType) + throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, ResourceType), nameof(id)); + } + + /// + /// Gets Reachability Analysis Run. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/verifierWorkspaces/{workspaceName}/reachabilityAnalysisRuns/{reachabilityAnalysisRunName} + /// + /// + /// Operation Id + /// ReachabilityAnalysisRuns_Get + /// + /// + /// Default Api Version + /// 2024-05-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// The cancellation token to use. + public virtual async Task> GetAsync(CancellationToken cancellationToken = default) + { + using var scope = _reachabilityAnalysisRunClientDiagnostics.CreateScope("ReachabilityAnalysisRunResource.Get"); + scope.Start(); + try + { + var response = await _reachabilityAnalysisRunRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw new RequestFailedException(response.GetRawResponse()); + return Response.FromValue(new ReachabilityAnalysisRunResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Gets Reachability Analysis Run. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/verifierWorkspaces/{workspaceName}/reachabilityAnalysisRuns/{reachabilityAnalysisRunName} + /// + /// + /// Operation Id + /// ReachabilityAnalysisRuns_Get + /// + /// + /// Default Api Version + /// 2024-05-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// The cancellation token to use. + public virtual Response Get(CancellationToken cancellationToken = default) + { + using var scope = _reachabilityAnalysisRunClientDiagnostics.CreateScope("ReachabilityAnalysisRunResource.Get"); + scope.Start(); + try + { + var response = _reachabilityAnalysisRunRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken); + if (response.Value == null) + throw new RequestFailedException(response.GetRawResponse()); + return Response.FromValue(new ReachabilityAnalysisRunResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Deletes Reachability Analysis Run. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/verifierWorkspaces/{workspaceName}/reachabilityAnalysisRuns/{reachabilityAnalysisRunName} + /// + /// + /// Operation Id + /// ReachabilityAnalysisRuns_Delete + /// + /// + /// Default Api Version + /// 2024-05-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 = _reachabilityAnalysisRunClientDiagnostics.CreateScope("ReachabilityAnalysisRunResource.Delete"); + scope.Start(); + try + { + var response = await _reachabilityAnalysisRunRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + var operation = new NetworkArmOperation(_reachabilityAnalysisRunClientDiagnostics, Pipeline, _reachabilityAnalysisRunRestClient.CreateDeleteRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name).Request, response, OperationFinalStateVia.Location); + if (waitUntil == WaitUntil.Completed) + await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Deletes Reachability Analysis Run. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/verifierWorkspaces/{workspaceName}/reachabilityAnalysisRuns/{reachabilityAnalysisRunName} + /// + /// + /// Operation Id + /// ReachabilityAnalysisRuns_Delete + /// + /// + /// Default Api Version + /// 2024-05-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 = _reachabilityAnalysisRunClientDiagnostics.CreateScope("ReachabilityAnalysisRunResource.Delete"); + scope.Start(); + try + { + var response = _reachabilityAnalysisRunRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken); + var operation = new NetworkArmOperation(_reachabilityAnalysisRunClientDiagnostics, Pipeline, _reachabilityAnalysisRunRestClient.CreateDeleteRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name).Request, response, OperationFinalStateVia.Location); + if (waitUntil == WaitUntil.Completed) + operation.WaitForCompletionResponse(cancellationToken); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Creates Reachability Analysis Runs. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/verifierWorkspaces/{workspaceName}/reachabilityAnalysisRuns/{reachabilityAnalysisRunName} + /// + /// + /// Operation Id + /// ReachabilityAnalysisRuns_Create + /// + /// + /// Default Api Version + /// 2024-05-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. + /// Analysis Run resource object to create/update. + /// The cancellation token to use. + /// is null. + public virtual async Task> UpdateAsync(WaitUntil waitUntil, ReachabilityAnalysisRunData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(data, nameof(data)); + + using var scope = _reachabilityAnalysisRunClientDiagnostics.CreateScope("ReachabilityAnalysisRunResource.Update"); + scope.Start(); + try + { + var response = await _reachabilityAnalysisRunRestClient.CreateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); + var uri = _reachabilityAnalysisRunRestClient.CreateCreateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, 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 NetworkArmOperation(Response.FromValue(new ReachabilityAnalysisRunResource(Client, response), response.GetRawResponse()), rehydrationToken); + if (waitUntil == WaitUntil.Completed) + await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Creates Reachability Analysis Runs. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/verifierWorkspaces/{workspaceName}/reachabilityAnalysisRuns/{reachabilityAnalysisRunName} + /// + /// + /// Operation Id + /// ReachabilityAnalysisRuns_Create + /// + /// + /// Default Api Version + /// 2024-05-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. + /// Analysis Run resource object to create/update. + /// The cancellation token to use. + /// is null. + public virtual ArmOperation Update(WaitUntil waitUntil, ReachabilityAnalysisRunData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(data, nameof(data)); + + using var scope = _reachabilityAnalysisRunClientDiagnostics.CreateScope("ReachabilityAnalysisRunResource.Update"); + scope.Start(); + try + { + var response = _reachabilityAnalysisRunRestClient.Create(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, cancellationToken); + var uri = _reachabilityAnalysisRunRestClient.CreateCreateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, 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 NetworkArmOperation(Response.FromValue(new ReachabilityAnalysisRunResource(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/network/Azure.ResourceManager.Network/src/Generated/RestOperations/AdminRuleCollectionsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/AdminRuleCollectionsRestOperations.cs index 06e959d52be3..00ca13011cfb 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/AdminRuleCollectionsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/AdminRuleCollectionsRestOperations.cs @@ -32,7 +32,7 @@ public AdminRuleCollectionsRestOperations(HttpPipeline pipeline, string applicat { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2024-03-01"; + _apiVersion = apiVersion ?? "2024-05-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/AdminRulesRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/AdminRulesRestOperations.cs index 59e99a971200..db30ed188963 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/AdminRulesRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/AdminRulesRestOperations.cs @@ -32,7 +32,7 @@ public AdminRulesRestOperations(HttpPipeline pipeline, string applicationId, Uri { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2024-03-01"; + _apiVersion = apiVersion ?? "2024-05-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ApplicationGatewayPrivateEndpointConnectionsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ApplicationGatewayPrivateEndpointConnectionsRestOperations.cs index 5e14535d1717..fa8f48a38ba5 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ApplicationGatewayPrivateEndpointConnectionsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ApplicationGatewayPrivateEndpointConnectionsRestOperations.cs @@ -32,7 +32,7 @@ public ApplicationGatewayPrivateEndpointConnectionsRestOperations(HttpPipeline p { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2024-03-01"; + _apiVersion = apiVersion ?? "2024-05-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ApplicationGatewayPrivateLinkResourcesRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ApplicationGatewayPrivateLinkResourcesRestOperations.cs index 909e45f2d218..1d271cafcd62 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ApplicationGatewayPrivateLinkResourcesRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ApplicationGatewayPrivateLinkResourcesRestOperations.cs @@ -32,7 +32,7 @@ public ApplicationGatewayPrivateLinkResourcesRestOperations(HttpPipeline pipelin { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2024-03-01"; + _apiVersion = apiVersion ?? "2024-05-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ApplicationGatewayWafDynamicManifestsDefaultRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ApplicationGatewayWafDynamicManifestsDefaultRestOperations.cs index 24424f01a912..a64ca7da5f91 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ApplicationGatewayWafDynamicManifestsDefaultRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ApplicationGatewayWafDynamicManifestsDefaultRestOperations.cs @@ -31,7 +31,7 @@ public ApplicationGatewayWafDynamicManifestsDefaultRestOperations(HttpPipeline p { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2024-03-01"; + _apiVersion = apiVersion ?? "2024-05-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ApplicationGatewayWafDynamicManifestsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ApplicationGatewayWafDynamicManifestsRestOperations.cs index e8f6e37640b4..f3582364c1b6 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ApplicationGatewayWafDynamicManifestsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ApplicationGatewayWafDynamicManifestsRestOperations.cs @@ -32,7 +32,7 @@ public ApplicationGatewayWafDynamicManifestsRestOperations(HttpPipeline pipeline { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2024-03-01"; + _apiVersion = apiVersion ?? "2024-05-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ApplicationGatewaysRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ApplicationGatewaysRestOperations.cs index a4e64b02f7ac..fa2cdbd8752e 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ApplicationGatewaysRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ApplicationGatewaysRestOperations.cs @@ -33,7 +33,7 @@ public ApplicationGatewaysRestOperations(HttpPipeline pipeline, string applicati { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2024-03-01"; + _apiVersion = apiVersion ?? "2024-05-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ApplicationSecurityGroupsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ApplicationSecurityGroupsRestOperations.cs index 7125b76b9f15..871a889e6ee1 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ApplicationSecurityGroupsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ApplicationSecurityGroupsRestOperations.cs @@ -32,7 +32,7 @@ public ApplicationSecurityGroupsRestOperations(HttpPipeline pipeline, string app { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2024-03-01"; + _apiVersion = apiVersion ?? "2024-05-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/AvailableDelegationsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/AvailableDelegationsRestOperations.cs index 4d1d5869dd0f..06395e2fe8a9 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/AvailableDelegationsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/AvailableDelegationsRestOperations.cs @@ -32,7 +32,7 @@ public AvailableDelegationsRestOperations(HttpPipeline pipeline, string applicat { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2024-03-01"; + _apiVersion = apiVersion ?? "2024-05-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/AvailableEndpointServicesRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/AvailableEndpointServicesRestOperations.cs index 48a0ee0beb52..045d0875fce2 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/AvailableEndpointServicesRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/AvailableEndpointServicesRestOperations.cs @@ -32,7 +32,7 @@ public AvailableEndpointServicesRestOperations(HttpPipeline pipeline, string app { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2024-03-01"; + _apiVersion = apiVersion ?? "2024-05-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/AvailablePrivateEndpointTypesRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/AvailablePrivateEndpointTypesRestOperations.cs index 04c2d2f306c2..e7dc8fb14602 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/AvailablePrivateEndpointTypesRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/AvailablePrivateEndpointTypesRestOperations.cs @@ -32,7 +32,7 @@ public AvailablePrivateEndpointTypesRestOperations(HttpPipeline pipeline, string { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2024-03-01"; + _apiVersion = apiVersion ?? "2024-05-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/AvailableResourceGroupDelegationsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/AvailableResourceGroupDelegationsRestOperations.cs index 2b887875d56f..13fbda12d04c 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/AvailableResourceGroupDelegationsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/AvailableResourceGroupDelegationsRestOperations.cs @@ -32,7 +32,7 @@ public AvailableResourceGroupDelegationsRestOperations(HttpPipeline pipeline, st { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2024-03-01"; + _apiVersion = apiVersion ?? "2024-05-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/AvailableServiceAliasesRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/AvailableServiceAliasesRestOperations.cs index d0521e31c2e2..f320c73fe5e5 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/AvailableServiceAliasesRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/AvailableServiceAliasesRestOperations.cs @@ -32,7 +32,7 @@ public AvailableServiceAliasesRestOperations(HttpPipeline pipeline, string appli { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2024-03-01"; + _apiVersion = apiVersion ?? "2024-05-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/AzureFirewallFqdnTagsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/AzureFirewallFqdnTagsRestOperations.cs index 32924426952b..a52674482ec5 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/AzureFirewallFqdnTagsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/AzureFirewallFqdnTagsRestOperations.cs @@ -32,7 +32,7 @@ public AzureFirewallFqdnTagsRestOperations(HttpPipeline pipeline, string applica { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2024-03-01"; + _apiVersion = apiVersion ?? "2024-05-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/AzureFirewallsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/AzureFirewallsRestOperations.cs index 26e48ed22bee..ac1d71a0befa 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/AzureFirewallsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/AzureFirewallsRestOperations.cs @@ -32,7 +32,7 @@ public AzureFirewallsRestOperations(HttpPipeline pipeline, string applicationId, { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2024-03-01"; + _apiVersion = apiVersion ?? "2024-05-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/BastionHostsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/BastionHostsRestOperations.cs index 0afb83d1df60..4071c165099a 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/BastionHostsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/BastionHostsRestOperations.cs @@ -32,7 +32,7 @@ public BastionHostsRestOperations(HttpPipeline pipeline, string applicationId, U { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2024-03-01"; + _apiVersion = apiVersion ?? "2024-05-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/BgpServiceCommunitiesRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/BgpServiceCommunitiesRestOperations.cs index 3af6bb36aed4..6aed68fee3ea 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/BgpServiceCommunitiesRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/BgpServiceCommunitiesRestOperations.cs @@ -32,7 +32,7 @@ public BgpServiceCommunitiesRestOperations(HttpPipeline pipeline, string applica { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2024-03-01"; + _apiVersion = apiVersion ?? "2024-05-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ConfigurationPolicyGroupsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ConfigurationPolicyGroupsRestOperations.cs index c29480ab830c..df59a9e58273 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ConfigurationPolicyGroupsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ConfigurationPolicyGroupsRestOperations.cs @@ -32,7 +32,7 @@ public ConfigurationPolicyGroupsRestOperations(HttpPipeline pipeline, string app { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2024-03-01"; + _apiVersion = apiVersion ?? "2024-05-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ConnectionMonitorsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ConnectionMonitorsRestOperations.cs index 4a8244cd1bc7..ffde56177a2c 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ConnectionMonitorsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ConnectionMonitorsRestOperations.cs @@ -32,7 +32,7 @@ public ConnectionMonitorsRestOperations(HttpPipeline pipeline, string applicatio { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2024-03-01"; + _apiVersion = apiVersion ?? "2024-05-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ConnectivityConfigurationsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ConnectivityConfigurationsRestOperations.cs index 13ec071709cd..8ee929c7a3d6 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ConnectivityConfigurationsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ConnectivityConfigurationsRestOperations.cs @@ -32,7 +32,7 @@ public ConnectivityConfigurationsRestOperations(HttpPipeline pipeline, string ap { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2024-03-01"; + _apiVersion = apiVersion ?? "2024-05-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/CustomIPPrefixesRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/CustomIPPrefixesRestOperations.cs index 6faca32bc07f..b153593e1ade 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/CustomIPPrefixesRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/CustomIPPrefixesRestOperations.cs @@ -32,7 +32,7 @@ public CustomIPPrefixesRestOperations(HttpPipeline pipeline, string applicationI { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2024-03-01"; + _apiVersion = apiVersion ?? "2024-05-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/DdosCustomPoliciesRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/DdosCustomPoliciesRestOperations.cs index d1917fcb31ab..783010ec97b0 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/DdosCustomPoliciesRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/DdosCustomPoliciesRestOperations.cs @@ -32,7 +32,7 @@ public DdosCustomPoliciesRestOperations(HttpPipeline pipeline, string applicatio { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2024-03-01"; + _apiVersion = apiVersion ?? "2024-05-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/DdosProtectionPlansRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/DdosProtectionPlansRestOperations.cs index d8cba00df144..4400b2f0099b 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/DdosProtectionPlansRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/DdosProtectionPlansRestOperations.cs @@ -32,7 +32,7 @@ public DdosProtectionPlansRestOperations(HttpPipeline pipeline, string applicati { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2024-03-01"; + _apiVersion = apiVersion ?? "2024-05-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/DefaultSecurityRulesRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/DefaultSecurityRulesRestOperations.cs index c46141cffab1..20bd0e499868 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/DefaultSecurityRulesRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/DefaultSecurityRulesRestOperations.cs @@ -32,7 +32,7 @@ public DefaultSecurityRulesRestOperations(HttpPipeline pipeline, string applicat { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2024-03-01"; + _apiVersion = apiVersion ?? "2024-05-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/DscpConfigurationRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/DscpConfigurationRestOperations.cs index 0e839adb6d21..53cd64268da3 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/DscpConfigurationRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/DscpConfigurationRestOperations.cs @@ -32,7 +32,7 @@ public DscpConfigurationRestOperations(HttpPipeline pipeline, string application { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2024-03-01"; + _apiVersion = apiVersion ?? "2024-05-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRouteCircuitAuthorizationsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRouteCircuitAuthorizationsRestOperations.cs index b5467a13015d..ceb4083530ca 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRouteCircuitAuthorizationsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRouteCircuitAuthorizationsRestOperations.cs @@ -32,7 +32,7 @@ public ExpressRouteCircuitAuthorizationsRestOperations(HttpPipeline pipeline, st { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2024-03-01"; + _apiVersion = apiVersion ?? "2024-05-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRouteCircuitConnectionsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRouteCircuitConnectionsRestOperations.cs index 2d28620d3742..04052d3b1ee4 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRouteCircuitConnectionsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRouteCircuitConnectionsRestOperations.cs @@ -32,7 +32,7 @@ public ExpressRouteCircuitConnectionsRestOperations(HttpPipeline pipeline, strin { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2024-03-01"; + _apiVersion = apiVersion ?? "2024-05-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRouteCircuitPeeringsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRouteCircuitPeeringsRestOperations.cs index f8258aaec0b2..6d194f229135 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRouteCircuitPeeringsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRouteCircuitPeeringsRestOperations.cs @@ -32,7 +32,7 @@ public ExpressRouteCircuitPeeringsRestOperations(HttpPipeline pipeline, string a { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2024-03-01"; + _apiVersion = apiVersion ?? "2024-05-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRouteCircuitsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRouteCircuitsRestOperations.cs index 5cc05d211dd6..f5010dc4094d 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRouteCircuitsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRouteCircuitsRestOperations.cs @@ -32,7 +32,7 @@ public ExpressRouteCircuitsRestOperations(HttpPipeline pipeline, string applicat { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2024-03-01"; + _apiVersion = apiVersion ?? "2024-05-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRouteConnectionsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRouteConnectionsRestOperations.cs index 9d6e67c7189a..f2c97bb81de8 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRouteConnectionsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRouteConnectionsRestOperations.cs @@ -32,7 +32,7 @@ public ExpressRouteConnectionsRestOperations(HttpPipeline pipeline, string appli { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2024-03-01"; + _apiVersion = apiVersion ?? "2024-05-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRouteCrossConnectionPeeringsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRouteCrossConnectionPeeringsRestOperations.cs index 1fb9bf3817a0..2c4ceccb1afe 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRouteCrossConnectionPeeringsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRouteCrossConnectionPeeringsRestOperations.cs @@ -32,7 +32,7 @@ public ExpressRouteCrossConnectionPeeringsRestOperations(HttpPipeline pipeline, { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2024-03-01"; + _apiVersion = apiVersion ?? "2024-05-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRouteCrossConnectionsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRouteCrossConnectionsRestOperations.cs index b8d800c56dd2..74c9a0b2bcca 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRouteCrossConnectionsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRouteCrossConnectionsRestOperations.cs @@ -32,7 +32,7 @@ public ExpressRouteCrossConnectionsRestOperations(HttpPipeline pipeline, string { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2024-03-01"; + _apiVersion = apiVersion ?? "2024-05-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRouteGatewaysRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRouteGatewaysRestOperations.cs index d039e0cfcc6e..efee0cedbace 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRouteGatewaysRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRouteGatewaysRestOperations.cs @@ -32,7 +32,7 @@ public ExpressRouteGatewaysRestOperations(HttpPipeline pipeline, string applicat { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2024-03-01"; + _apiVersion = apiVersion ?? "2024-05-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRouteLinksRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRouteLinksRestOperations.cs index 4eaa554786fd..2299f1a2eb14 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRouteLinksRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRouteLinksRestOperations.cs @@ -32,7 +32,7 @@ public ExpressRouteLinksRestOperations(HttpPipeline pipeline, string application { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2024-03-01"; + _apiVersion = apiVersion ?? "2024-05-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRoutePortAuthorizationsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRoutePortAuthorizationsRestOperations.cs index 0c07398d13b2..0d29b9113a0e 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRoutePortAuthorizationsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRoutePortAuthorizationsRestOperations.cs @@ -32,7 +32,7 @@ public ExpressRoutePortAuthorizationsRestOperations(HttpPipeline pipeline, strin { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2024-03-01"; + _apiVersion = apiVersion ?? "2024-05-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRoutePortsLocationsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRoutePortsLocationsRestOperations.cs index 8c1b096ec52c..f40b0ca2083d 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRoutePortsLocationsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRoutePortsLocationsRestOperations.cs @@ -32,7 +32,7 @@ public ExpressRoutePortsLocationsRestOperations(HttpPipeline pipeline, string ap { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2024-03-01"; + _apiVersion = apiVersion ?? "2024-05-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRoutePortsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRoutePortsRestOperations.cs index 342a8f4cdcb4..93e4f2e5bee3 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRoutePortsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRoutePortsRestOperations.cs @@ -32,7 +32,7 @@ public ExpressRoutePortsRestOperations(HttpPipeline pipeline, string application { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2024-03-01"; + _apiVersion = apiVersion ?? "2024-05-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRouteProviderPortsLocationRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRouteProviderPortsLocationRestOperations.cs index 72015cd076db..870253b7aea3 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRouteProviderPortsLocationRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRouteProviderPortsLocationRestOperations.cs @@ -32,7 +32,7 @@ public ExpressRouteProviderPortsLocationRestOperations(HttpPipeline pipeline, st { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2024-03-01"; + _apiVersion = apiVersion ?? "2024-05-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRouteServiceProvidersRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRouteServiceProvidersRestOperations.cs index 577b60784534..62e15e545d99 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRouteServiceProvidersRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ExpressRouteServiceProvidersRestOperations.cs @@ -32,7 +32,7 @@ public ExpressRouteServiceProvidersRestOperations(HttpPipeline pipeline, string { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2024-03-01"; + _apiVersion = apiVersion ?? "2024-05-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/FirewallPoliciesRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/FirewallPoliciesRestOperations.cs index c255aa4eaf94..2baaede7d548 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/FirewallPoliciesRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/FirewallPoliciesRestOperations.cs @@ -32,7 +32,7 @@ public FirewallPoliciesRestOperations(HttpPipeline pipeline, string applicationI { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2024-03-01"; + _apiVersion = apiVersion ?? "2024-05-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/FirewallPolicyDeploymentsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/FirewallPolicyDeploymentsRestOperations.cs index d636740e677a..b7fbc1cba2ce 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/FirewallPolicyDeploymentsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/FirewallPolicyDeploymentsRestOperations.cs @@ -30,7 +30,7 @@ public FirewallPolicyDeploymentsRestOperations(HttpPipeline pipeline, string app { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2024-03-01"; + _apiVersion = apiVersion ?? "2024-05-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/FirewallPolicyDraftsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/FirewallPolicyDraftsRestOperations.cs index a7ed97ce39f3..2be8c4958121 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/FirewallPolicyDraftsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/FirewallPolicyDraftsRestOperations.cs @@ -31,7 +31,7 @@ public FirewallPolicyDraftsRestOperations(HttpPipeline pipeline, string applicat { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2024-03-01"; + _apiVersion = apiVersion ?? "2024-05-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/FirewallPolicyIdpsSignaturesFilterValuesRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/FirewallPolicyIdpsSignaturesFilterValuesRestOperations.cs index f310eaa59c50..bd159257b16d 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/FirewallPolicyIdpsSignaturesFilterValuesRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/FirewallPolicyIdpsSignaturesFilterValuesRestOperations.cs @@ -32,7 +32,7 @@ public FirewallPolicyIdpsSignaturesFilterValuesRestOperations(HttpPipeline pipel { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2024-03-01"; + _apiVersion = apiVersion ?? "2024-05-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/FirewallPolicyIdpsSignaturesOverridesRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/FirewallPolicyIdpsSignaturesOverridesRestOperations.cs index 8ee1bf32895c..7acb8009f4f6 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/FirewallPolicyIdpsSignaturesOverridesRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/FirewallPolicyIdpsSignaturesOverridesRestOperations.cs @@ -32,7 +32,7 @@ public FirewallPolicyIdpsSignaturesOverridesRestOperations(HttpPipeline pipeline { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2024-03-01"; + _apiVersion = apiVersion ?? "2024-05-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/FirewallPolicyIdpsSignaturesRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/FirewallPolicyIdpsSignaturesRestOperations.cs index c84e47bb37d8..01e1338bb21e 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/FirewallPolicyIdpsSignaturesRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/FirewallPolicyIdpsSignaturesRestOperations.cs @@ -32,7 +32,7 @@ public FirewallPolicyIdpsSignaturesRestOperations(HttpPipeline pipeline, string { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2024-03-01"; + _apiVersion = apiVersion ?? "2024-05-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/FirewallPolicyRuleCollectionGroupDraftsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/FirewallPolicyRuleCollectionGroupDraftsRestOperations.cs index 13458659a97a..9ab04e953b0f 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/FirewallPolicyRuleCollectionGroupDraftsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/FirewallPolicyRuleCollectionGroupDraftsRestOperations.cs @@ -31,7 +31,7 @@ public FirewallPolicyRuleCollectionGroupDraftsRestOperations(HttpPipeline pipeli { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2024-03-01"; + _apiVersion = apiVersion ?? "2024-05-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/FirewallPolicyRuleCollectionGroupsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/FirewallPolicyRuleCollectionGroupsRestOperations.cs index 21df9576c301..e1b4a6442390 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/FirewallPolicyRuleCollectionGroupsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/FirewallPolicyRuleCollectionGroupsRestOperations.cs @@ -32,7 +32,7 @@ public FirewallPolicyRuleCollectionGroupsRestOperations(HttpPipeline pipeline, s { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2024-03-01"; + _apiVersion = apiVersion ?? "2024-05-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/FlowLogsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/FlowLogsRestOperations.cs index 49c3135703c8..e191250358e7 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/FlowLogsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/FlowLogsRestOperations.cs @@ -32,7 +32,7 @@ public FlowLogsRestOperations(HttpPipeline pipeline, string applicationId, Uri e { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2024-03-01"; + _apiVersion = apiVersion ?? "2024-05-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/HubRouteTablesRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/HubRouteTablesRestOperations.cs index 4475167bf3fe..e8a8b0210902 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/HubRouteTablesRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/HubRouteTablesRestOperations.cs @@ -32,7 +32,7 @@ public HubRouteTablesRestOperations(HttpPipeline pipeline, string applicationId, { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2024-03-01"; + _apiVersion = apiVersion ?? "2024-05-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/HubVirtualNetworkConnectionsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/HubVirtualNetworkConnectionsRestOperations.cs index a0b3ee76d879..ca739be8b48a 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/HubVirtualNetworkConnectionsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/HubVirtualNetworkConnectionsRestOperations.cs @@ -32,7 +32,7 @@ public HubVirtualNetworkConnectionsRestOperations(HttpPipeline pipeline, string { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2024-03-01"; + _apiVersion = apiVersion ?? "2024-05-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/InboundNatRulesRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/InboundNatRulesRestOperations.cs index bd8bef4ea0ff..d6c2b01957c9 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/InboundNatRulesRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/InboundNatRulesRestOperations.cs @@ -32,7 +32,7 @@ public InboundNatRulesRestOperations(HttpPipeline pipeline, string applicationId { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2024-03-01"; + _apiVersion = apiVersion ?? "2024-05-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/InboundSecurityRuleRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/InboundSecurityRuleRestOperations.cs index 3ba59c407f81..96c695093094 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/InboundSecurityRuleRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/InboundSecurityRuleRestOperations.cs @@ -31,7 +31,7 @@ public InboundSecurityRuleRestOperations(HttpPipeline pipeline, string applicati { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2024-03-01"; + _apiVersion = apiVersion ?? "2024-05-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/IpAllocationsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/IpAllocationsRestOperations.cs index 7e2e5c5d5c28..8d7b0d656eff 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/IpAllocationsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/IpAllocationsRestOperations.cs @@ -32,7 +32,7 @@ public IpAllocationsRestOperations(HttpPipeline pipeline, string applicationId, { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2024-03-01"; + _apiVersion = apiVersion ?? "2024-05-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/IpGroupsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/IpGroupsRestOperations.cs index 6b4fc5912be0..cf5c8f181f3c 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/IpGroupsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/IpGroupsRestOperations.cs @@ -32,7 +32,7 @@ public IpGroupsRestOperations(HttpPipeline pipeline, string applicationId, Uri e { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2024-03-01"; + _apiVersion = apiVersion ?? "2024-05-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/IpamPoolsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/IpamPoolsRestOperations.cs new file mode 100644 index 000000000000..bcb106753d82 --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/IpamPoolsRestOperations.cs @@ -0,0 +1,973 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Text.Json; +using System.Threading; +using System.Threading.Tasks; +using Azure.Core; +using Azure.Core.Pipeline; +using Azure.ResourceManager.Network.Models; + +namespace Azure.ResourceManager.Network +{ + internal partial class IpamPoolsRestOperations + { + private readonly TelemetryDetails _userAgent; + private readonly HttpPipeline _pipeline; + private readonly Uri _endpoint; + private readonly string _apiVersion; + + /// Initializes a new instance of IpamPoolsRestOperations. + /// The HTTP pipeline for sending and receiving REST requests and responses. + /// The application id to use for user agent. + /// server parameter. + /// Api Version. + /// , or is null. + public IpamPoolsRestOperations(HttpPipeline pipeline, string applicationId, Uri endpoint, string apiVersion = default) + { + _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); + _endpoint = endpoint ?? throw new ArgumentNullException(nameof(endpoint)); + _apiVersion = apiVersion ?? "2024-05-01"; + _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); + } + + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string networkManagerName, string skipToken, int? skip, int? top, string sortKey, string sortValue) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Network/networkManagers/", false); + uri.AppendPath(networkManagerName, true); + uri.AppendPath("/ipamPools", false); + if (skipToken != null) + { + uri.AppendQuery("skipToken", skipToken, true); + } + if (skip != null) + { + uri.AppendQuery("skip", skip.Value, true); + } + if (top != null) + { + uri.AppendQuery("top", top.Value, true); + } + if (sortKey != null) + { + uri.AppendQuery("sortKey", sortKey, true); + } + if (sortValue != null) + { + uri.AppendQuery("sortValue", sortValue, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string networkManagerName, string skipToken, int? skip, int? top, string sortKey, string sortValue) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Network/networkManagers/", false); + uri.AppendPath(networkManagerName, true); + uri.AppendPath("/ipamPools", false); + if (skipToken != null) + { + uri.AppendQuery("skipToken", skipToken, true); + } + if (skip != null) + { + uri.AppendQuery("skip", skip.Value, true); + } + if (top != null) + { + uri.AppendQuery("top", top.Value, true); + } + if (sortKey != null) + { + uri.AppendQuery("sortKey", sortKey, true); + } + if (sortValue != null) + { + uri.AppendQuery("sortValue", sortValue, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// Gets list of Pool resources at Network Manager level. + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + /// The name of the resource group. + /// The name of the network manager. + /// Optional skip token. + /// Optional num entries to skip. + /// Optional num entries to show. + /// Optional key by which to sort. + /// Optional sort value for pagination. + /// The cancellation token to use. + /// , or is null. + /// , or is an empty string, and was expected to be non-empty. + public async Task> ListAsync(string subscriptionId, string resourceGroupName, string networkManagerName, string skipToken = null, int? skip = null, int? top = null, string sortKey = null, string sortValue = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(networkManagerName, nameof(networkManagerName)); + + using var message = CreateListRequest(subscriptionId, resourceGroupName, networkManagerName, skipToken, skip, top, sortKey, sortValue); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + IpamPoolList value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = IpamPoolList.DeserializeIpamPoolList(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + /// Gets list of Pool resources at Network Manager level. + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + /// The name of the resource group. + /// The name of the network manager. + /// Optional skip token. + /// Optional num entries to skip. + /// Optional num entries to show. + /// Optional key by which to sort. + /// Optional sort value for pagination. + /// The cancellation token to use. + /// , or is null. + /// , or is an empty string, and was expected to be non-empty. + public Response List(string subscriptionId, string resourceGroupName, string networkManagerName, string skipToken = null, int? skip = null, int? top = null, string sortKey = null, string sortValue = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(networkManagerName, nameof(networkManagerName)); + + using var message = CreateListRequest(subscriptionId, resourceGroupName, networkManagerName, skipToken, skip, top, sortKey, sortValue); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + IpamPoolList value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = IpamPoolList.DeserializeIpamPoolList(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + internal RequestUriBuilder CreateCreateRequestUri(string subscriptionId, string resourceGroupName, string networkManagerName, string poolName, IpamPoolData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Network/networkManagers/", false); + uri.AppendPath(networkManagerName, true); + uri.AppendPath("/ipamPools/", false); + uri.AppendPath(poolName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + + internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceGroupName, string networkManagerName, string poolName, IpamPoolData data) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Put; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Network/networkManagers/", false); + uri.AppendPath(networkManagerName, true); + uri.AppendPath("/ipamPools/", false); + uri.AppendPath(poolName, true); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + request.Headers.Add("Content-Type", "application/json"); + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(data, ModelSerializationExtensions.WireOptions); + request.Content = content; + _userAgent.Apply(message); + return message; + } + + /// Creates/Updates the Pool resource. + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + /// The name of the resource group. + /// The name of the network manager. + /// IP Address Manager Pool resource name. + /// Pool resource object to create/update. + /// The cancellation token to use. + /// , , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public async Task CreateAsync(string subscriptionId, string resourceGroupName, string networkManagerName, string poolName, IpamPoolData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(networkManagerName, nameof(networkManagerName)); + Argument.AssertNotNullOrEmpty(poolName, nameof(poolName)); + Argument.AssertNotNull(data, nameof(data)); + + using var message = CreateCreateRequest(subscriptionId, resourceGroupName, networkManagerName, poolName, data); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + case 201: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + + /// Creates/Updates the Pool resource. + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + /// The name of the resource group. + /// The name of the network manager. + /// IP Address Manager Pool resource name. + /// Pool resource object to create/update. + /// The cancellation token to use. + /// , , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public Response Create(string subscriptionId, string resourceGroupName, string networkManagerName, string poolName, IpamPoolData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(networkManagerName, nameof(networkManagerName)); + Argument.AssertNotNullOrEmpty(poolName, nameof(poolName)); + Argument.AssertNotNull(data, nameof(data)); + + using var message = CreateCreateRequest(subscriptionId, resourceGroupName, networkManagerName, poolName, data); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + case 201: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string networkManagerName, string poolName, IpamPoolPatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Network/networkManagers/", false); + uri.AppendPath(networkManagerName, true); + uri.AppendPath("/ipamPools/", false); + uri.AppendPath(poolName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string networkManagerName, string poolName, IpamPoolPatch patch) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Patch; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Network/networkManagers/", false); + uri.AppendPath(networkManagerName, true); + uri.AppendPath("/ipamPools/", false); + uri.AppendPath(poolName, true); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + request.Headers.Add("Content-Type", "application/json"); + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(patch, ModelSerializationExtensions.WireOptions); + request.Content = content; + _userAgent.Apply(message); + return message; + } + + /// Updates the specific Pool resource. + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + /// The name of the resource group. + /// The name of the network manager. + /// IP Address Manager Pool resource name. + /// Pool resource object to update partially. + /// The cancellation token to use. + /// , , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public async Task> UpdateAsync(string subscriptionId, string resourceGroupName, string networkManagerName, string poolName, IpamPoolPatch patch, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(networkManagerName, nameof(networkManagerName)); + Argument.AssertNotNullOrEmpty(poolName, nameof(poolName)); + Argument.AssertNotNull(patch, nameof(patch)); + + using var message = CreateUpdateRequest(subscriptionId, resourceGroupName, networkManagerName, poolName, patch); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + IpamPoolData value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = IpamPoolData.DeserializeIpamPoolData(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + /// Updates the specific Pool resource. + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + /// The name of the resource group. + /// The name of the network manager. + /// IP Address Manager Pool resource name. + /// Pool resource object to update partially. + /// The cancellation token to use. + /// , , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public Response Update(string subscriptionId, string resourceGroupName, string networkManagerName, string poolName, IpamPoolPatch patch, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(networkManagerName, nameof(networkManagerName)); + Argument.AssertNotNullOrEmpty(poolName, nameof(poolName)); + Argument.AssertNotNull(patch, nameof(patch)); + + using var message = CreateUpdateRequest(subscriptionId, resourceGroupName, networkManagerName, poolName, patch); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + IpamPoolData value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = IpamPoolData.DeserializeIpamPoolData(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string networkManagerName, string poolName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Network/networkManagers/", false); + uri.AppendPath(networkManagerName, true); + uri.AppendPath("/ipamPools/", false); + uri.AppendPath(poolName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string networkManagerName, string poolName) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Network/networkManagers/", false); + uri.AppendPath(networkManagerName, true); + uri.AppendPath("/ipamPools/", false); + uri.AppendPath(poolName, true); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// Gets the specific Pool resource. + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + /// The name of the resource group. + /// The name of the network manager. + /// Pool resource name. + /// The cancellation token to use. + /// , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public async Task> GetAsync(string subscriptionId, string resourceGroupName, string networkManagerName, string poolName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(networkManagerName, nameof(networkManagerName)); + Argument.AssertNotNullOrEmpty(poolName, nameof(poolName)); + + using var message = CreateGetRequest(subscriptionId, resourceGroupName, networkManagerName, poolName); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + IpamPoolData value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = IpamPoolData.DeserializeIpamPoolData(document.RootElement); + return Response.FromValue(value, message.Response); + } + case 404: + return Response.FromValue((IpamPoolData)null, message.Response); + default: + throw new RequestFailedException(message.Response); + } + } + + /// Gets the specific Pool resource. + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + /// The name of the resource group. + /// The name of the network manager. + /// Pool resource name. + /// The cancellation token to use. + /// , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public Response Get(string subscriptionId, string resourceGroupName, string networkManagerName, string poolName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(networkManagerName, nameof(networkManagerName)); + Argument.AssertNotNullOrEmpty(poolName, nameof(poolName)); + + using var message = CreateGetRequest(subscriptionId, resourceGroupName, networkManagerName, poolName); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + IpamPoolData value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = IpamPoolData.DeserializeIpamPoolData(document.RootElement); + return Response.FromValue(value, message.Response); + } + case 404: + return Response.FromValue((IpamPoolData)null, message.Response); + default: + throw new RequestFailedException(message.Response); + } + } + + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string networkManagerName, string poolName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Network/networkManagers/", false); + uri.AppendPath(networkManagerName, true); + uri.AppendPath("/ipamPools/", false); + uri.AppendPath(poolName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string networkManagerName, string poolName) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Delete; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Network/networkManagers/", false); + uri.AppendPath(networkManagerName, true); + uri.AppendPath("/ipamPools/", false); + uri.AppendPath(poolName, true); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// Delete the Pool resource. + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + /// The name of the resource group. + /// The name of the network manager. + /// Pool resource name. + /// The cancellation token to use. + /// , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public async Task DeleteAsync(string subscriptionId, string resourceGroupName, string networkManagerName, string poolName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(networkManagerName, nameof(networkManagerName)); + Argument.AssertNotNullOrEmpty(poolName, nameof(poolName)); + + using var message = CreateDeleteRequest(subscriptionId, resourceGroupName, networkManagerName, poolName); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 202: + case 204: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + + /// Delete the Pool resource. + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + /// The name of the resource group. + /// The name of the network manager. + /// Pool resource name. + /// The cancellation token to use. + /// , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public Response Delete(string subscriptionId, string resourceGroupName, string networkManagerName, string poolName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(networkManagerName, nameof(networkManagerName)); + Argument.AssertNotNullOrEmpty(poolName, nameof(poolName)); + + using var message = CreateDeleteRequest(subscriptionId, resourceGroupName, networkManagerName, poolName); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 202: + case 204: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + + internal RequestUriBuilder CreateGetPoolUsageRequestUri(string subscriptionId, string resourceGroupName, string networkManagerName, string poolName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Network/networkManagers/", false); + uri.AppendPath(networkManagerName, true); + uri.AppendPath("/ipamPools/", false); + uri.AppendPath(poolName, true); + uri.AppendPath("/getPoolUsage", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + + internal HttpMessage CreateGetPoolUsageRequest(string subscriptionId, string resourceGroupName, string networkManagerName, string poolName) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Post; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Network/networkManagers/", false); + uri.AppendPath(networkManagerName, true); + uri.AppendPath("/ipamPools/", false); + uri.AppendPath(poolName, true); + uri.AppendPath("/getPoolUsage", false); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// Get the Pool Usage. + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + /// The name of the resource group. + /// The name of the network manager. + /// Pool resource name. + /// The cancellation token to use. + /// , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public async Task> GetPoolUsageAsync(string subscriptionId, string resourceGroupName, string networkManagerName, string poolName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(networkManagerName, nameof(networkManagerName)); + Argument.AssertNotNullOrEmpty(poolName, nameof(poolName)); + + using var message = CreateGetPoolUsageRequest(subscriptionId, resourceGroupName, networkManagerName, poolName); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + PoolUsage value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = PoolUsage.DeserializePoolUsage(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + /// Get the Pool Usage. + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + /// The name of the resource group. + /// The name of the network manager. + /// Pool resource name. + /// The cancellation token to use. + /// , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public Response GetPoolUsage(string subscriptionId, string resourceGroupName, string networkManagerName, string poolName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(networkManagerName, nameof(networkManagerName)); + Argument.AssertNotNullOrEmpty(poolName, nameof(poolName)); + + using var message = CreateGetPoolUsageRequest(subscriptionId, resourceGroupName, networkManagerName, poolName); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + PoolUsage value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = PoolUsage.DeserializePoolUsage(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + internal RequestUriBuilder CreateListAssociatedResourcesRequestUri(string subscriptionId, string resourceGroupName, string networkManagerName, string poolName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Network/networkManagers/", false); + uri.AppendPath(networkManagerName, true); + uri.AppendPath("/ipamPools/", false); + uri.AppendPath(poolName, true); + uri.AppendPath("/listAssociatedResources", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + + internal HttpMessage CreateListAssociatedResourcesRequest(string subscriptionId, string resourceGroupName, string networkManagerName, string poolName) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Post; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Network/networkManagers/", false); + uri.AppendPath(networkManagerName, true); + uri.AppendPath("/ipamPools/", false); + uri.AppendPath(poolName, true); + uri.AppendPath("/listAssociatedResources", false); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// List Associated Resource in the Pool. + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + /// The name of the resource group. + /// The name of the network manager. + /// Pool resource name. + /// The cancellation token to use. + /// , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public async Task> ListAssociatedResourcesAsync(string subscriptionId, string resourceGroupName, string networkManagerName, string poolName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(networkManagerName, nameof(networkManagerName)); + Argument.AssertNotNullOrEmpty(poolName, nameof(poolName)); + + using var message = CreateListAssociatedResourcesRequest(subscriptionId, resourceGroupName, networkManagerName, poolName); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + PoolAssociationList value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = PoolAssociationList.DeserializePoolAssociationList(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + /// List Associated Resource in the Pool. + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + /// The name of the resource group. + /// The name of the network manager. + /// Pool resource name. + /// The cancellation token to use. + /// , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public Response ListAssociatedResources(string subscriptionId, string resourceGroupName, string networkManagerName, string poolName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(networkManagerName, nameof(networkManagerName)); + Argument.AssertNotNullOrEmpty(poolName, nameof(poolName)); + + using var message = CreateListAssociatedResourcesRequest(subscriptionId, resourceGroupName, networkManagerName, poolName); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + PoolAssociationList value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = PoolAssociationList.DeserializePoolAssociationList(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string networkManagerName, string skipToken, int? skip, int? top, string sortKey, string sortValue) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string networkManagerName, string skipToken, int? skip, int? top, string sortKey, string sortValue) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// Gets list of Pool resources at Network Manager level. + /// The URL to the next page of results. + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + /// The name of the resource group. + /// The name of the network manager. + /// Optional skip token. + /// Optional num entries to skip. + /// Optional num entries to show. + /// Optional key by which to sort. + /// Optional sort value for pagination. + /// The cancellation token to use. + /// , , or is null. + /// , or is an empty string, and was expected to be non-empty. + public async Task> ListNextPageAsync(string nextLink, string subscriptionId, string resourceGroupName, string networkManagerName, string skipToken = null, int? skip = null, int? top = null, string sortKey = null, string sortValue = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(nextLink, nameof(nextLink)); + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(networkManagerName, nameof(networkManagerName)); + + using var message = CreateListNextPageRequest(nextLink, subscriptionId, resourceGroupName, networkManagerName, skipToken, skip, top, sortKey, sortValue); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + IpamPoolList value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = IpamPoolList.DeserializeIpamPoolList(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + /// Gets list of Pool resources at Network Manager level. + /// The URL to the next page of results. + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + /// The name of the resource group. + /// The name of the network manager. + /// Optional skip token. + /// Optional num entries to skip. + /// Optional num entries to show. + /// Optional key by which to sort. + /// Optional sort value for pagination. + /// The cancellation token to use. + /// , , or is null. + /// , or is an empty string, and was expected to be non-empty. + public Response ListNextPage(string nextLink, string subscriptionId, string resourceGroupName, string networkManagerName, string skipToken = null, int? skip = null, int? top = null, string sortKey = null, string sortValue = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(nextLink, nameof(nextLink)); + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(networkManagerName, nameof(networkManagerName)); + + using var message = CreateListNextPageRequest(nextLink, subscriptionId, resourceGroupName, networkManagerName, skipToken, skip, top, sortKey, sortValue); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + IpamPoolList value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = IpamPoolList.DeserializeIpamPoolList(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + internal RequestUriBuilder CreateListAssociatedResourcesNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string networkManagerName, string poolName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + + internal HttpMessage CreateListAssociatedResourcesNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string networkManagerName, string poolName) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// List Associated Resource in the Pool. + /// The URL to the next page of results. + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + /// The name of the resource group. + /// The name of the network manager. + /// Pool resource name. + /// The cancellation token to use. + /// , , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public async Task> ListAssociatedResourcesNextPageAsync(string nextLink, string subscriptionId, string resourceGroupName, string networkManagerName, string poolName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(nextLink, nameof(nextLink)); + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(networkManagerName, nameof(networkManagerName)); + Argument.AssertNotNullOrEmpty(poolName, nameof(poolName)); + + using var message = CreateListAssociatedResourcesNextPageRequest(nextLink, subscriptionId, resourceGroupName, networkManagerName, poolName); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + PoolAssociationList value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = PoolAssociationList.DeserializePoolAssociationList(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + /// List Associated Resource in the Pool. + /// The URL to the next page of results. + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + /// The name of the resource group. + /// The name of the network manager. + /// Pool resource name. + /// The cancellation token to use. + /// , , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public Response ListAssociatedResourcesNextPage(string nextLink, string subscriptionId, string resourceGroupName, string networkManagerName, string poolName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(nextLink, nameof(nextLink)); + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(networkManagerName, nameof(networkManagerName)); + Argument.AssertNotNullOrEmpty(poolName, nameof(poolName)); + + using var message = CreateListAssociatedResourcesNextPageRequest(nextLink, subscriptionId, resourceGroupName, networkManagerName, poolName); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + PoolAssociationList value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = PoolAssociationList.DeserializePoolAssociationList(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/LoadBalancerBackendAddressPoolsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/LoadBalancerBackendAddressPoolsRestOperations.cs index 4e2d04a79afc..6e6f555bf5aa 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/LoadBalancerBackendAddressPoolsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/LoadBalancerBackendAddressPoolsRestOperations.cs @@ -32,7 +32,7 @@ public LoadBalancerBackendAddressPoolsRestOperations(HttpPipeline pipeline, stri { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2024-03-01"; + _apiVersion = apiVersion ?? "2024-05-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/LoadBalancerFrontendIPConfigurationsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/LoadBalancerFrontendIPConfigurationsRestOperations.cs index 88ecfa376a3b..ec427e715c4b 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/LoadBalancerFrontendIPConfigurationsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/LoadBalancerFrontendIPConfigurationsRestOperations.cs @@ -32,7 +32,7 @@ public LoadBalancerFrontendIPConfigurationsRestOperations(HttpPipeline pipeline, { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2024-03-01"; + _apiVersion = apiVersion ?? "2024-05-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/LoadBalancerLoadBalancingRulesRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/LoadBalancerLoadBalancingRulesRestOperations.cs index 081495f257bc..0b0d75491def 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/LoadBalancerLoadBalancingRulesRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/LoadBalancerLoadBalancingRulesRestOperations.cs @@ -32,7 +32,7 @@ public LoadBalancerLoadBalancingRulesRestOperations(HttpPipeline pipeline, strin { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2024-03-01"; + _apiVersion = apiVersion ?? "2024-05-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } @@ -234,6 +234,100 @@ public Response Get(string subscriptionId, string resourc } } + internal RequestUriBuilder CreateHealthRequestUri(string subscriptionId, string groupName, string loadBalancerName, string loadBalancingRuleName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(groupName, true); + uri.AppendPath("/providers/Microsoft.Network/loadBalancers/", false); + uri.AppendPath(loadBalancerName, true); + uri.AppendPath("/loadBalancingRules/", false); + uri.AppendPath(loadBalancingRuleName, true); + uri.AppendPath("/health", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + + internal HttpMessage CreateHealthRequest(string subscriptionId, string groupName, string loadBalancerName, string loadBalancingRuleName) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Post; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(groupName, true); + uri.AppendPath("/providers/Microsoft.Network/loadBalancers/", false); + uri.AppendPath(loadBalancerName, true); + uri.AppendPath("/loadBalancingRules/", false); + uri.AppendPath(loadBalancingRuleName, true); + uri.AppendPath("/health", false); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// Get health details of a load balancing rule. + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + /// The name of the resource group. + /// The name of the load balancer. + /// The name of the load balancing rule. + /// The cancellation token to use. + /// , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public async Task HealthAsync(string subscriptionId, string groupName, string loadBalancerName, string loadBalancingRuleName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(groupName, nameof(groupName)); + Argument.AssertNotNullOrEmpty(loadBalancerName, nameof(loadBalancerName)); + Argument.AssertNotNullOrEmpty(loadBalancingRuleName, nameof(loadBalancingRuleName)); + + using var message = CreateHealthRequest(subscriptionId, groupName, loadBalancerName, loadBalancingRuleName); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + case 202: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + + /// Get health details of a load balancing rule. + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + /// The name of the resource group. + /// The name of the load balancer. + /// The name of the load balancing rule. + /// The cancellation token to use. + /// , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public Response Health(string subscriptionId, string groupName, string loadBalancerName, string loadBalancingRuleName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(groupName, nameof(groupName)); + Argument.AssertNotNullOrEmpty(loadBalancerName, nameof(loadBalancerName)); + Argument.AssertNotNullOrEmpty(loadBalancingRuleName, nameof(loadBalancingRuleName)); + + using var message = CreateHealthRequest(subscriptionId, groupName, loadBalancerName, loadBalancingRuleName); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + case 202: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string loadBalancerName) { var uri = new RawRequestUriBuilder(); diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/LoadBalancerNetworkInterfacesRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/LoadBalancerNetworkInterfacesRestOperations.cs index a8bdf69852a5..6295f084dcc5 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/LoadBalancerNetworkInterfacesRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/LoadBalancerNetworkInterfacesRestOperations.cs @@ -32,7 +32,7 @@ public LoadBalancerNetworkInterfacesRestOperations(HttpPipeline pipeline, string { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2024-03-01"; + _apiVersion = apiVersion ?? "2024-05-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/LoadBalancerOutboundRulesRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/LoadBalancerOutboundRulesRestOperations.cs index afcfbc9bb60b..d837134e97a4 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/LoadBalancerOutboundRulesRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/LoadBalancerOutboundRulesRestOperations.cs @@ -32,7 +32,7 @@ public LoadBalancerOutboundRulesRestOperations(HttpPipeline pipeline, string app { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2024-03-01"; + _apiVersion = apiVersion ?? "2024-05-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/LoadBalancerProbesRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/LoadBalancerProbesRestOperations.cs index 7f76c22bd551..7c2b06bc728f 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/LoadBalancerProbesRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/LoadBalancerProbesRestOperations.cs @@ -32,7 +32,7 @@ public LoadBalancerProbesRestOperations(HttpPipeline pipeline, string applicatio { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2024-03-01"; + _apiVersion = apiVersion ?? "2024-05-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/LoadBalancersRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/LoadBalancersRestOperations.cs index e7c728dde778..b80a56a610c1 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/LoadBalancersRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/LoadBalancersRestOperations.cs @@ -32,7 +32,7 @@ public LoadBalancersRestOperations(HttpPipeline pipeline, string applicationId, { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2024-03-01"; + _apiVersion = apiVersion ?? "2024-05-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/LocalNetworkGatewaysRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/LocalNetworkGatewaysRestOperations.cs index 1386f03fdf90..c57fce4de384 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/LocalNetworkGatewaysRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/LocalNetworkGatewaysRestOperations.cs @@ -32,7 +32,7 @@ public LocalNetworkGatewaysRestOperations(HttpPipeline pipeline, string applicat { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2024-03-01"; + _apiVersion = apiVersion ?? "2024-05-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ManagementGroupNetworkManagerConnectionsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ManagementGroupNetworkManagerConnectionsRestOperations.cs index a38f6e8ea596..86c87f9cd497 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ManagementGroupNetworkManagerConnectionsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ManagementGroupNetworkManagerConnectionsRestOperations.cs @@ -32,7 +32,7 @@ public ManagementGroupNetworkManagerConnectionsRestOperations(HttpPipeline pipel { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2024-03-01"; + _apiVersion = apiVersion ?? "2024-05-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NatGatewaysRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NatGatewaysRestOperations.cs index 35b4d6bf6466..964c596f2ce3 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NatGatewaysRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NatGatewaysRestOperations.cs @@ -32,7 +32,7 @@ public NatGatewaysRestOperations(HttpPipeline pipeline, string applicationId, Ur { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2024-03-01"; + _apiVersion = apiVersion ?? "2024-05-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NatRulesRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NatRulesRestOperations.cs index d86cf1e5ed70..996ea200bc20 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NatRulesRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NatRulesRestOperations.cs @@ -32,7 +32,7 @@ public NatRulesRestOperations(HttpPipeline pipeline, string applicationId, Uri e { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2024-03-01"; + _apiVersion = apiVersion ?? "2024-05-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkGroupsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkGroupsRestOperations.cs index 63579f86a963..08b21ef1d552 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkGroupsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkGroupsRestOperations.cs @@ -32,7 +32,7 @@ public NetworkGroupsRestOperations(HttpPipeline pipeline, string applicationId, { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2024-03-01"; + _apiVersion = apiVersion ?? "2024-05-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkInterfaceIPConfigurationsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkInterfaceIPConfigurationsRestOperations.cs index b8f8b0be91e7..fe654827ed2c 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkInterfaceIPConfigurationsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkInterfaceIPConfigurationsRestOperations.cs @@ -32,7 +32,7 @@ public NetworkInterfaceIPConfigurationsRestOperations(HttpPipeline pipeline, str { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2024-03-01"; + _apiVersion = apiVersion ?? "2024-05-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkInterfaceLoadBalancersRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkInterfaceLoadBalancersRestOperations.cs index 8120a9a14415..8bf69aab1105 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkInterfaceLoadBalancersRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkInterfaceLoadBalancersRestOperations.cs @@ -32,7 +32,7 @@ public NetworkInterfaceLoadBalancersRestOperations(HttpPipeline pipeline, string { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2024-03-01"; + _apiVersion = apiVersion ?? "2024-05-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkInterfaceTapConfigurationsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkInterfaceTapConfigurationsRestOperations.cs index ff4bc309bb66..6f8c2d60edba 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkInterfaceTapConfigurationsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkInterfaceTapConfigurationsRestOperations.cs @@ -32,7 +32,7 @@ public NetworkInterfaceTapConfigurationsRestOperations(HttpPipeline pipeline, st { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2024-03-01"; + _apiVersion = apiVersion ?? "2024-05-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkInterfacesRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkInterfacesRestOperations.cs index 402805dc4b08..dacfec5feb85 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkInterfacesRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkInterfacesRestOperations.cs @@ -32,7 +32,7 @@ public NetworkInterfacesRestOperations(HttpPipeline pipeline, string application { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2024-03-01"; + _apiVersion = apiVersion ?? "2024-05-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkManagementRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkManagementRestOperations.cs index 748c709f4e78..dff3ff4d41e3 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkManagementRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkManagementRestOperations.cs @@ -32,7 +32,7 @@ public NetworkManagementRestOperations(HttpPipeline pipeline, string application { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2024-03-01"; + _apiVersion = apiVersion ?? "2024-05-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkManagerCommitsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkManagerCommitsRestOperations.cs index b2df045ba8db..51ba80c9cd80 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkManagerCommitsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkManagerCommitsRestOperations.cs @@ -31,7 +31,7 @@ public NetworkManagerCommitsRestOperations(HttpPipeline pipeline, string applica { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2024-03-01"; + _apiVersion = apiVersion ?? "2024-05-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkManagerDeploymentStatusRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkManagerDeploymentStatusRestOperations.cs index 3eb51c15c137..fbfb16b73b63 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkManagerDeploymentStatusRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkManagerDeploymentStatusRestOperations.cs @@ -32,7 +32,7 @@ public NetworkManagerDeploymentStatusRestOperations(HttpPipeline pipeline, strin { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2024-03-01"; + _apiVersion = apiVersion ?? "2024-05-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkManagerRoutingConfigurationsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkManagerRoutingConfigurationsRestOperations.cs index 97efb88d1abc..3f27c9119ca0 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkManagerRoutingConfigurationsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkManagerRoutingConfigurationsRestOperations.cs @@ -32,7 +32,7 @@ public NetworkManagerRoutingConfigurationsRestOperations(HttpPipeline pipeline, { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2024-03-01"; + _apiVersion = apiVersion ?? "2024-05-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkManagersRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkManagersRestOperations.cs index 3d443976aab3..68f600c80e75 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkManagersRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkManagersRestOperations.cs @@ -32,7 +32,7 @@ public NetworkManagersRestOperations(HttpPipeline pipeline, string applicationId { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2024-03-01"; + _apiVersion = apiVersion ?? "2024-05-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkProfilesRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkProfilesRestOperations.cs index 5eeda4c28505..dfaa42d8bbdb 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkProfilesRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkProfilesRestOperations.cs @@ -32,7 +32,7 @@ public NetworkProfilesRestOperations(HttpPipeline pipeline, string applicationId { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2024-03-01"; + _apiVersion = apiVersion ?? "2024-05-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkSecurityGroupsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkSecurityGroupsRestOperations.cs index a4a3dafd393e..87e4189a1497 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkSecurityGroupsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkSecurityGroupsRestOperations.cs @@ -32,7 +32,7 @@ public NetworkSecurityGroupsRestOperations(HttpPipeline pipeline, string applica { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2024-03-01"; + _apiVersion = apiVersion ?? "2024-05-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkVirtualApplianceConnectionsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkVirtualApplianceConnectionsRestOperations.cs index 83613bd6cfbc..b05e555697af 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkVirtualApplianceConnectionsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkVirtualApplianceConnectionsRestOperations.cs @@ -32,7 +32,7 @@ public NetworkVirtualApplianceConnectionsRestOperations(HttpPipeline pipeline, s { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2024-03-01"; + _apiVersion = apiVersion ?? "2024-05-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkVirtualAppliancesRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkVirtualAppliancesRestOperations.cs index 5d8ce33640e4..b6668b1620a9 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkVirtualAppliancesRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkVirtualAppliancesRestOperations.cs @@ -32,7 +32,7 @@ public NetworkVirtualAppliancesRestOperations(HttpPipeline pipeline, string appl { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2024-03-01"; + _apiVersion = apiVersion ?? "2024-05-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkWatchersRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkWatchersRestOperations.cs index 6daea47ec6a2..0ba1de644b57 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkWatchersRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/NetworkWatchersRestOperations.cs @@ -32,7 +32,7 @@ public NetworkWatchersRestOperations(HttpPipeline pipeline, string applicationId { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2024-03-01"; + _apiVersion = apiVersion ?? "2024-05-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/P2SVpnGatewaysRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/P2SVpnGatewaysRestOperations.cs index f5414c0fb048..20323ba27695 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/P2SVpnGatewaysRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/P2SVpnGatewaysRestOperations.cs @@ -32,7 +32,7 @@ public P2SVpnGatewaysRestOperations(HttpPipeline pipeline, string applicationId, { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2024-03-01"; + _apiVersion = apiVersion ?? "2024-05-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/PacketCapturesRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/PacketCapturesRestOperations.cs index 6a6b1d12f576..ebc9c1d4315c 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/PacketCapturesRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/PacketCapturesRestOperations.cs @@ -32,7 +32,7 @@ public PacketCapturesRestOperations(HttpPipeline pipeline, string applicationId, { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2024-03-01"; + _apiVersion = apiVersion ?? "2024-05-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/PeerExpressRouteCircuitConnectionsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/PeerExpressRouteCircuitConnectionsRestOperations.cs index c5dc36ebfb46..cfc801a2a238 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/PeerExpressRouteCircuitConnectionsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/PeerExpressRouteCircuitConnectionsRestOperations.cs @@ -32,7 +32,7 @@ public PeerExpressRouteCircuitConnectionsRestOperations(HttpPipeline pipeline, s { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2024-03-01"; + _apiVersion = apiVersion ?? "2024-05-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/PrivateDnsZoneGroupsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/PrivateDnsZoneGroupsRestOperations.cs index 17ae900b52ca..a5dc79833a14 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/PrivateDnsZoneGroupsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/PrivateDnsZoneGroupsRestOperations.cs @@ -32,7 +32,7 @@ public PrivateDnsZoneGroupsRestOperations(HttpPipeline pipeline, string applicat { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2024-03-01"; + _apiVersion = apiVersion ?? "2024-05-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/PrivateEndpointsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/PrivateEndpointsRestOperations.cs index fdcb6d8bb318..516a779c61ec 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/PrivateEndpointsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/PrivateEndpointsRestOperations.cs @@ -32,7 +32,7 @@ public PrivateEndpointsRestOperations(HttpPipeline pipeline, string applicationI { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2024-03-01"; + _apiVersion = apiVersion ?? "2024-05-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/PrivateLinkServicesRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/PrivateLinkServicesRestOperations.cs index 428c701318c1..2c8f61f13006 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/PrivateLinkServicesRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/PrivateLinkServicesRestOperations.cs @@ -32,7 +32,7 @@ public PrivateLinkServicesRestOperations(HttpPipeline pipeline, string applicati { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2024-03-01"; + _apiVersion = apiVersion ?? "2024-05-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/PublicIPAddressesRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/PublicIPAddressesRestOperations.cs index d092fd69907d..6967cfdf90cd 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/PublicIPAddressesRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/PublicIPAddressesRestOperations.cs @@ -32,7 +32,7 @@ public PublicIPAddressesRestOperations(HttpPipeline pipeline, string application { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2024-03-01"; + _apiVersion = apiVersion ?? "2024-05-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/PublicIPPrefixesRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/PublicIPPrefixesRestOperations.cs index f253950313f8..2de683f4f235 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/PublicIPPrefixesRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/PublicIPPrefixesRestOperations.cs @@ -32,7 +32,7 @@ public PublicIPPrefixesRestOperations(HttpPipeline pipeline, string applicationI { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2024-03-01"; + _apiVersion = apiVersion ?? "2024-05-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ReachabilityAnalysisIntentsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ReachabilityAnalysisIntentsRestOperations.cs new file mode 100644 index 000000000000..e6e1d112f636 --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ReachabilityAnalysisIntentsRestOperations.cs @@ -0,0 +1,619 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Text.Json; +using System.Threading; +using System.Threading.Tasks; +using Azure.Core; +using Azure.Core.Pipeline; +using Azure.ResourceManager.Network.Models; + +namespace Azure.ResourceManager.Network +{ + internal partial class ReachabilityAnalysisIntentsRestOperations + { + private readonly TelemetryDetails _userAgent; + private readonly HttpPipeline _pipeline; + private readonly Uri _endpoint; + private readonly string _apiVersion; + + /// Initializes a new instance of ReachabilityAnalysisIntentsRestOperations. + /// The HTTP pipeline for sending and receiving REST requests and responses. + /// The application id to use for user agent. + /// server parameter. + /// Api Version. + /// , or is null. + public ReachabilityAnalysisIntentsRestOperations(HttpPipeline pipeline, string applicationId, Uri endpoint, string apiVersion = default) + { + _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); + _endpoint = endpoint ?? throw new ArgumentNullException(nameof(endpoint)); + _apiVersion = apiVersion ?? "2024-05-01"; + _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); + } + + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string networkManagerName, string workspaceName, string skipToken, int? skip, int? top, string sortKey, string sortValue) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Network/networkManagers/", false); + uri.AppendPath(networkManagerName, true); + uri.AppendPath("/verifierWorkspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/reachabilityAnalysisIntents", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (skipToken != null) + { + uri.AppendQuery("skipToken", skipToken, true); + } + if (skip != null) + { + uri.AppendQuery("skip", skip.Value, true); + } + if (top != null) + { + uri.AppendQuery("top", top.Value, true); + } + if (sortKey != null) + { + uri.AppendQuery("sortKey", sortKey, true); + } + if (sortValue != null) + { + uri.AppendQuery("sortValue", sortValue, true); + } + return uri; + } + + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string networkManagerName, string workspaceName, string skipToken, int? skip, int? top, string sortKey, string sortValue) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Network/networkManagers/", false); + uri.AppendPath(networkManagerName, true); + uri.AppendPath("/verifierWorkspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/reachabilityAnalysisIntents", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (skipToken != null) + { + uri.AppendQuery("skipToken", skipToken, true); + } + if (skip != null) + { + uri.AppendQuery("skip", skip.Value, true); + } + if (top != null) + { + uri.AppendQuery("top", top.Value, true); + } + if (sortKey != null) + { + uri.AppendQuery("sortKey", sortKey, true); + } + if (sortValue != null) + { + uri.AppendQuery("sortValue", sortValue, true); + } + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// Gets list of Reachability Analysis Intents . + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + /// The name of the resource group. + /// The name of the network manager. + /// Workspace name. + /// Optional skip token. + /// Optional num entries to skip. + /// Optional num entries to show. + /// Optional key by which to sort. + /// Optional sort value for pagination. + /// The cancellation token to use. + /// , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public async Task> ListAsync(string subscriptionId, string resourceGroupName, string networkManagerName, string workspaceName, string skipToken = null, int? skip = null, int? top = null, string sortKey = null, string sortValue = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(networkManagerName, nameof(networkManagerName)); + Argument.AssertNotNullOrEmpty(workspaceName, nameof(workspaceName)); + + using var message = CreateListRequest(subscriptionId, resourceGroupName, networkManagerName, workspaceName, skipToken, skip, top, sortKey, sortValue); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + ReachabilityAnalysisIntentListResult value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = ReachabilityAnalysisIntentListResult.DeserializeReachabilityAnalysisIntentListResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + /// Gets list of Reachability Analysis Intents . + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + /// The name of the resource group. + /// The name of the network manager. + /// Workspace name. + /// Optional skip token. + /// Optional num entries to skip. + /// Optional num entries to show. + /// Optional key by which to sort. + /// Optional sort value for pagination. + /// The cancellation token to use. + /// , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public Response List(string subscriptionId, string resourceGroupName, string networkManagerName, string workspaceName, string skipToken = null, int? skip = null, int? top = null, string sortKey = null, string sortValue = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(networkManagerName, nameof(networkManagerName)); + Argument.AssertNotNullOrEmpty(workspaceName, nameof(workspaceName)); + + using var message = CreateListRequest(subscriptionId, resourceGroupName, networkManagerName, workspaceName, skipToken, skip, top, sortKey, sortValue); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + ReachabilityAnalysisIntentListResult value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = ReachabilityAnalysisIntentListResult.DeserializeReachabilityAnalysisIntentListResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string networkManagerName, string workspaceName, string reachabilityAnalysisIntentName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Network/networkManagers/", false); + uri.AppendPath(networkManagerName, true); + uri.AppendPath("/verifierWorkspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/reachabilityAnalysisIntents/", false); + uri.AppendPath(reachabilityAnalysisIntentName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string networkManagerName, string workspaceName, string reachabilityAnalysisIntentName) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Network/networkManagers/", false); + uri.AppendPath(networkManagerName, true); + uri.AppendPath("/verifierWorkspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/reachabilityAnalysisIntents/", false); + uri.AppendPath(reachabilityAnalysisIntentName, true); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// Get the Reachability Analysis Intent. + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + /// The name of the resource group. + /// The name of the network manager. + /// Workspace name. + /// Reachability Analysis Intent name. + /// The cancellation token to use. + /// , , , or is null. + /// , , , or is an empty string, and was expected to be non-empty. + public async Task> GetAsync(string subscriptionId, string resourceGroupName, string networkManagerName, string workspaceName, string reachabilityAnalysisIntentName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(networkManagerName, nameof(networkManagerName)); + Argument.AssertNotNullOrEmpty(workspaceName, nameof(workspaceName)); + Argument.AssertNotNullOrEmpty(reachabilityAnalysisIntentName, nameof(reachabilityAnalysisIntentName)); + + using var message = CreateGetRequest(subscriptionId, resourceGroupName, networkManagerName, workspaceName, reachabilityAnalysisIntentName); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + ReachabilityAnalysisIntentData value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = ReachabilityAnalysisIntentData.DeserializeReachabilityAnalysisIntentData(document.RootElement); + return Response.FromValue(value, message.Response); + } + case 404: + return Response.FromValue((ReachabilityAnalysisIntentData)null, message.Response); + default: + throw new RequestFailedException(message.Response); + } + } + + /// Get the Reachability Analysis Intent. + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + /// The name of the resource group. + /// The name of the network manager. + /// Workspace name. + /// Reachability Analysis Intent name. + /// The cancellation token to use. + /// , , , or is null. + /// , , , or is an empty string, and was expected to be non-empty. + public Response Get(string subscriptionId, string resourceGroupName, string networkManagerName, string workspaceName, string reachabilityAnalysisIntentName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(networkManagerName, nameof(networkManagerName)); + Argument.AssertNotNullOrEmpty(workspaceName, nameof(workspaceName)); + Argument.AssertNotNullOrEmpty(reachabilityAnalysisIntentName, nameof(reachabilityAnalysisIntentName)); + + using var message = CreateGetRequest(subscriptionId, resourceGroupName, networkManagerName, workspaceName, reachabilityAnalysisIntentName); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + ReachabilityAnalysisIntentData value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = ReachabilityAnalysisIntentData.DeserializeReachabilityAnalysisIntentData(document.RootElement); + return Response.FromValue(value, message.Response); + } + case 404: + return Response.FromValue((ReachabilityAnalysisIntentData)null, message.Response); + default: + throw new RequestFailedException(message.Response); + } + } + + internal RequestUriBuilder CreateCreateRequestUri(string subscriptionId, string resourceGroupName, string networkManagerName, string workspaceName, string reachabilityAnalysisIntentName, ReachabilityAnalysisIntentData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Network/networkManagers/", false); + uri.AppendPath(networkManagerName, true); + uri.AppendPath("/verifierWorkspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/reachabilityAnalysisIntents/", false); + uri.AppendPath(reachabilityAnalysisIntentName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + + internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceGroupName, string networkManagerName, string workspaceName, string reachabilityAnalysisIntentName, ReachabilityAnalysisIntentData data) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Put; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Network/networkManagers/", false); + uri.AppendPath(networkManagerName, true); + uri.AppendPath("/verifierWorkspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/reachabilityAnalysisIntents/", false); + uri.AppendPath(reachabilityAnalysisIntentName, true); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + request.Headers.Add("Content-Type", "application/json"); + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(data, ModelSerializationExtensions.WireOptions); + request.Content = content; + _userAgent.Apply(message); + return message; + } + + /// Creates Reachability Analysis Intent. + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + /// The name of the resource group. + /// The name of the network manager. + /// Workspace name. + /// Reachability Analysis Intent name. + /// Reachability Analysis Intent object to create/update. + /// The cancellation token to use. + /// , , , , or is null. + /// , , , or is an empty string, and was expected to be non-empty. + public async Task> CreateAsync(string subscriptionId, string resourceGroupName, string networkManagerName, string workspaceName, string reachabilityAnalysisIntentName, ReachabilityAnalysisIntentData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(networkManagerName, nameof(networkManagerName)); + Argument.AssertNotNullOrEmpty(workspaceName, nameof(workspaceName)); + Argument.AssertNotNullOrEmpty(reachabilityAnalysisIntentName, nameof(reachabilityAnalysisIntentName)); + Argument.AssertNotNull(data, nameof(data)); + + using var message = CreateCreateRequest(subscriptionId, resourceGroupName, networkManagerName, workspaceName, reachabilityAnalysisIntentName, data); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + case 201: + { + ReachabilityAnalysisIntentData value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = ReachabilityAnalysisIntentData.DeserializeReachabilityAnalysisIntentData(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + /// Creates Reachability Analysis Intent. + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + /// The name of the resource group. + /// The name of the network manager. + /// Workspace name. + /// Reachability Analysis Intent name. + /// Reachability Analysis Intent object to create/update. + /// The cancellation token to use. + /// , , , , or is null. + /// , , , or is an empty string, and was expected to be non-empty. + public Response Create(string subscriptionId, string resourceGroupName, string networkManagerName, string workspaceName, string reachabilityAnalysisIntentName, ReachabilityAnalysisIntentData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(networkManagerName, nameof(networkManagerName)); + Argument.AssertNotNullOrEmpty(workspaceName, nameof(workspaceName)); + Argument.AssertNotNullOrEmpty(reachabilityAnalysisIntentName, nameof(reachabilityAnalysisIntentName)); + Argument.AssertNotNull(data, nameof(data)); + + using var message = CreateCreateRequest(subscriptionId, resourceGroupName, networkManagerName, workspaceName, reachabilityAnalysisIntentName, data); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + case 201: + { + ReachabilityAnalysisIntentData value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = ReachabilityAnalysisIntentData.DeserializeReachabilityAnalysisIntentData(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string networkManagerName, string workspaceName, string reachabilityAnalysisIntentName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Network/networkManagers/", false); + uri.AppendPath(networkManagerName, true); + uri.AppendPath("/verifierWorkspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/reachabilityAnalysisIntents/", false); + uri.AppendPath(reachabilityAnalysisIntentName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string networkManagerName, string workspaceName, string reachabilityAnalysisIntentName) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Delete; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Network/networkManagers/", false); + uri.AppendPath(networkManagerName, true); + uri.AppendPath("/verifierWorkspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/reachabilityAnalysisIntents/", false); + uri.AppendPath(reachabilityAnalysisIntentName, true); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// Deletes Reachability Analysis Intent. + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + /// The name of the resource group. + /// The name of the network manager. + /// Workspace name. + /// Reachability Analysis Intent name. + /// The cancellation token to use. + /// , , , or is null. + /// , , , or is an empty string, and was expected to be non-empty. + public async Task DeleteAsync(string subscriptionId, string resourceGroupName, string networkManagerName, string workspaceName, string reachabilityAnalysisIntentName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(networkManagerName, nameof(networkManagerName)); + Argument.AssertNotNullOrEmpty(workspaceName, nameof(workspaceName)); + Argument.AssertNotNullOrEmpty(reachabilityAnalysisIntentName, nameof(reachabilityAnalysisIntentName)); + + using var message = CreateDeleteRequest(subscriptionId, resourceGroupName, networkManagerName, workspaceName, reachabilityAnalysisIntentName); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + case 204: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + + /// Deletes Reachability Analysis Intent. + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + /// The name of the resource group. + /// The name of the network manager. + /// Workspace name. + /// Reachability Analysis Intent name. + /// The cancellation token to use. + /// , , , or is null. + /// , , , or is an empty string, and was expected to be non-empty. + public Response Delete(string subscriptionId, string resourceGroupName, string networkManagerName, string workspaceName, string reachabilityAnalysisIntentName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(networkManagerName, nameof(networkManagerName)); + Argument.AssertNotNullOrEmpty(workspaceName, nameof(workspaceName)); + Argument.AssertNotNullOrEmpty(reachabilityAnalysisIntentName, nameof(reachabilityAnalysisIntentName)); + + using var message = CreateDeleteRequest(subscriptionId, resourceGroupName, networkManagerName, workspaceName, reachabilityAnalysisIntentName); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + case 204: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string networkManagerName, string workspaceName, string skipToken, int? skip, int? top, string sortKey, string sortValue) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string networkManagerName, string workspaceName, string skipToken, int? skip, int? top, string sortKey, string sortValue) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// Gets list of Reachability Analysis Intents . + /// The URL to the next page of results. + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + /// The name of the resource group. + /// The name of the network manager. + /// Workspace name. + /// Optional skip token. + /// Optional num entries to skip. + /// Optional num entries to show. + /// Optional key by which to sort. + /// Optional sort value for pagination. + /// The cancellation token to use. + /// , , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public async Task> ListNextPageAsync(string nextLink, string subscriptionId, string resourceGroupName, string networkManagerName, string workspaceName, string skipToken = null, int? skip = null, int? top = null, string sortKey = null, string sortValue = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(nextLink, nameof(nextLink)); + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(networkManagerName, nameof(networkManagerName)); + Argument.AssertNotNullOrEmpty(workspaceName, nameof(workspaceName)); + + using var message = CreateListNextPageRequest(nextLink, subscriptionId, resourceGroupName, networkManagerName, workspaceName, skipToken, skip, top, sortKey, sortValue); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + ReachabilityAnalysisIntentListResult value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = ReachabilityAnalysisIntentListResult.DeserializeReachabilityAnalysisIntentListResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + /// Gets list of Reachability Analysis Intents . + /// The URL to the next page of results. + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + /// The name of the resource group. + /// The name of the network manager. + /// Workspace name. + /// Optional skip token. + /// Optional num entries to skip. + /// Optional num entries to show. + /// Optional key by which to sort. + /// Optional sort value for pagination. + /// The cancellation token to use. + /// , , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public Response ListNextPage(string nextLink, string subscriptionId, string resourceGroupName, string networkManagerName, string workspaceName, string skipToken = null, int? skip = null, int? top = null, string sortKey = null, string sortValue = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(nextLink, nameof(nextLink)); + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(networkManagerName, nameof(networkManagerName)); + Argument.AssertNotNullOrEmpty(workspaceName, nameof(workspaceName)); + + using var message = CreateListNextPageRequest(nextLink, subscriptionId, resourceGroupName, networkManagerName, workspaceName, skipToken, skip, top, sortKey, sortValue); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + ReachabilityAnalysisIntentListResult value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = ReachabilityAnalysisIntentListResult.DeserializeReachabilityAnalysisIntentListResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ReachabilityAnalysisRunsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ReachabilityAnalysisRunsRestOperations.cs new file mode 100644 index 000000000000..3d8e98db3d9e --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ReachabilityAnalysisRunsRestOperations.cs @@ -0,0 +1,619 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Text.Json; +using System.Threading; +using System.Threading.Tasks; +using Azure.Core; +using Azure.Core.Pipeline; +using Azure.ResourceManager.Network.Models; + +namespace Azure.ResourceManager.Network +{ + internal partial class ReachabilityAnalysisRunsRestOperations + { + private readonly TelemetryDetails _userAgent; + private readonly HttpPipeline _pipeline; + private readonly Uri _endpoint; + private readonly string _apiVersion; + + /// Initializes a new instance of ReachabilityAnalysisRunsRestOperations. + /// The HTTP pipeline for sending and receiving REST requests and responses. + /// The application id to use for user agent. + /// server parameter. + /// Api Version. + /// , or is null. + public ReachabilityAnalysisRunsRestOperations(HttpPipeline pipeline, string applicationId, Uri endpoint, string apiVersion = default) + { + _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); + _endpoint = endpoint ?? throw new ArgumentNullException(nameof(endpoint)); + _apiVersion = apiVersion ?? "2024-05-01"; + _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); + } + + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string networkManagerName, string workspaceName, string skipToken, int? skip, int? top, string sortKey, string sortValue) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Network/networkManagers/", false); + uri.AppendPath(networkManagerName, true); + uri.AppendPath("/verifierWorkspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/reachabilityAnalysisRuns", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (skipToken != null) + { + uri.AppendQuery("skipToken", skipToken, true); + } + if (skip != null) + { + uri.AppendQuery("skip", skip.Value, true); + } + if (top != null) + { + uri.AppendQuery("top", top.Value, true); + } + if (sortKey != null) + { + uri.AppendQuery("sortKey", sortKey, true); + } + if (sortValue != null) + { + uri.AppendQuery("sortValue", sortValue, true); + } + return uri; + } + + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string networkManagerName, string workspaceName, string skipToken, int? skip, int? top, string sortKey, string sortValue) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Network/networkManagers/", false); + uri.AppendPath(networkManagerName, true); + uri.AppendPath("/verifierWorkspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/reachabilityAnalysisRuns", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (skipToken != null) + { + uri.AppendQuery("skipToken", skipToken, true); + } + if (skip != null) + { + uri.AppendQuery("skip", skip.Value, true); + } + if (top != null) + { + uri.AppendQuery("top", top.Value, true); + } + if (sortKey != null) + { + uri.AppendQuery("sortKey", sortKey, true); + } + if (sortValue != null) + { + uri.AppendQuery("sortValue", sortValue, true); + } + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// Gets list of Reachability Analysis Runs. + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + /// The name of the resource group. + /// The name of the network manager. + /// Workspace name. + /// Optional skip token. + /// Optional num entries to skip. + /// Optional num entries to show. + /// Optional key by which to sort. + /// Optional sort value for pagination. + /// The cancellation token to use. + /// , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public async Task> ListAsync(string subscriptionId, string resourceGroupName, string networkManagerName, string workspaceName, string skipToken = null, int? skip = null, int? top = null, string sortKey = null, string sortValue = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(networkManagerName, nameof(networkManagerName)); + Argument.AssertNotNullOrEmpty(workspaceName, nameof(workspaceName)); + + using var message = CreateListRequest(subscriptionId, resourceGroupName, networkManagerName, workspaceName, skipToken, skip, top, sortKey, sortValue); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + ReachabilityAnalysisRunListResult value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = ReachabilityAnalysisRunListResult.DeserializeReachabilityAnalysisRunListResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + /// Gets list of Reachability Analysis Runs. + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + /// The name of the resource group. + /// The name of the network manager. + /// Workspace name. + /// Optional skip token. + /// Optional num entries to skip. + /// Optional num entries to show. + /// Optional key by which to sort. + /// Optional sort value for pagination. + /// The cancellation token to use. + /// , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public Response List(string subscriptionId, string resourceGroupName, string networkManagerName, string workspaceName, string skipToken = null, int? skip = null, int? top = null, string sortKey = null, string sortValue = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(networkManagerName, nameof(networkManagerName)); + Argument.AssertNotNullOrEmpty(workspaceName, nameof(workspaceName)); + + using var message = CreateListRequest(subscriptionId, resourceGroupName, networkManagerName, workspaceName, skipToken, skip, top, sortKey, sortValue); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + ReachabilityAnalysisRunListResult value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = ReachabilityAnalysisRunListResult.DeserializeReachabilityAnalysisRunListResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string networkManagerName, string workspaceName, string reachabilityAnalysisRunName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Network/networkManagers/", false); + uri.AppendPath(networkManagerName, true); + uri.AppendPath("/verifierWorkspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/reachabilityAnalysisRuns/", false); + uri.AppendPath(reachabilityAnalysisRunName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string networkManagerName, string workspaceName, string reachabilityAnalysisRunName) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Network/networkManagers/", false); + uri.AppendPath(networkManagerName, true); + uri.AppendPath("/verifierWorkspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/reachabilityAnalysisRuns/", false); + uri.AppendPath(reachabilityAnalysisRunName, true); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// Gets Reachability Analysis Run. + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + /// The name of the resource group. + /// The name of the network manager. + /// Workspace name. + /// Reachability Analysis Run name. + /// The cancellation token to use. + /// , , , or is null. + /// , , , or is an empty string, and was expected to be non-empty. + public async Task> GetAsync(string subscriptionId, string resourceGroupName, string networkManagerName, string workspaceName, string reachabilityAnalysisRunName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(networkManagerName, nameof(networkManagerName)); + Argument.AssertNotNullOrEmpty(workspaceName, nameof(workspaceName)); + Argument.AssertNotNullOrEmpty(reachabilityAnalysisRunName, nameof(reachabilityAnalysisRunName)); + + using var message = CreateGetRequest(subscriptionId, resourceGroupName, networkManagerName, workspaceName, reachabilityAnalysisRunName); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + ReachabilityAnalysisRunData value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = ReachabilityAnalysisRunData.DeserializeReachabilityAnalysisRunData(document.RootElement); + return Response.FromValue(value, message.Response); + } + case 404: + return Response.FromValue((ReachabilityAnalysisRunData)null, message.Response); + default: + throw new RequestFailedException(message.Response); + } + } + + /// Gets Reachability Analysis Run. + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + /// The name of the resource group. + /// The name of the network manager. + /// Workspace name. + /// Reachability Analysis Run name. + /// The cancellation token to use. + /// , , , or is null. + /// , , , or is an empty string, and was expected to be non-empty. + public Response Get(string subscriptionId, string resourceGroupName, string networkManagerName, string workspaceName, string reachabilityAnalysisRunName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(networkManagerName, nameof(networkManagerName)); + Argument.AssertNotNullOrEmpty(workspaceName, nameof(workspaceName)); + Argument.AssertNotNullOrEmpty(reachabilityAnalysisRunName, nameof(reachabilityAnalysisRunName)); + + using var message = CreateGetRequest(subscriptionId, resourceGroupName, networkManagerName, workspaceName, reachabilityAnalysisRunName); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + ReachabilityAnalysisRunData value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = ReachabilityAnalysisRunData.DeserializeReachabilityAnalysisRunData(document.RootElement); + return Response.FromValue(value, message.Response); + } + case 404: + return Response.FromValue((ReachabilityAnalysisRunData)null, message.Response); + default: + throw new RequestFailedException(message.Response); + } + } + + internal RequestUriBuilder CreateCreateRequestUri(string subscriptionId, string resourceGroupName, string networkManagerName, string workspaceName, string reachabilityAnalysisRunName, ReachabilityAnalysisRunData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Network/networkManagers/", false); + uri.AppendPath(networkManagerName, true); + uri.AppendPath("/verifierWorkspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/reachabilityAnalysisRuns/", false); + uri.AppendPath(reachabilityAnalysisRunName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + + internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceGroupName, string networkManagerName, string workspaceName, string reachabilityAnalysisRunName, ReachabilityAnalysisRunData data) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Put; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Network/networkManagers/", false); + uri.AppendPath(networkManagerName, true); + uri.AppendPath("/verifierWorkspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/reachabilityAnalysisRuns/", false); + uri.AppendPath(reachabilityAnalysisRunName, true); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + request.Headers.Add("Content-Type", "application/json"); + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(data, ModelSerializationExtensions.WireOptions); + request.Content = content; + _userAgent.Apply(message); + return message; + } + + /// Creates Reachability Analysis Runs. + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + /// The name of the resource group. + /// The name of the network manager. + /// Workspace name. + /// Reachability Analysis Run name. + /// Analysis Run resource object to create/update. + /// The cancellation token to use. + /// , , , , or is null. + /// , , , or is an empty string, and was expected to be non-empty. + public async Task> CreateAsync(string subscriptionId, string resourceGroupName, string networkManagerName, string workspaceName, string reachabilityAnalysisRunName, ReachabilityAnalysisRunData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(networkManagerName, nameof(networkManagerName)); + Argument.AssertNotNullOrEmpty(workspaceName, nameof(workspaceName)); + Argument.AssertNotNullOrEmpty(reachabilityAnalysisRunName, nameof(reachabilityAnalysisRunName)); + Argument.AssertNotNull(data, nameof(data)); + + using var message = CreateCreateRequest(subscriptionId, resourceGroupName, networkManagerName, workspaceName, reachabilityAnalysisRunName, data); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + case 201: + { + ReachabilityAnalysisRunData value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = ReachabilityAnalysisRunData.DeserializeReachabilityAnalysisRunData(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + /// Creates Reachability Analysis Runs. + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + /// The name of the resource group. + /// The name of the network manager. + /// Workspace name. + /// Reachability Analysis Run name. + /// Analysis Run resource object to create/update. + /// The cancellation token to use. + /// , , , , or is null. + /// , , , or is an empty string, and was expected to be non-empty. + public Response Create(string subscriptionId, string resourceGroupName, string networkManagerName, string workspaceName, string reachabilityAnalysisRunName, ReachabilityAnalysisRunData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(networkManagerName, nameof(networkManagerName)); + Argument.AssertNotNullOrEmpty(workspaceName, nameof(workspaceName)); + Argument.AssertNotNullOrEmpty(reachabilityAnalysisRunName, nameof(reachabilityAnalysisRunName)); + Argument.AssertNotNull(data, nameof(data)); + + using var message = CreateCreateRequest(subscriptionId, resourceGroupName, networkManagerName, workspaceName, reachabilityAnalysisRunName, data); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + case 201: + { + ReachabilityAnalysisRunData value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = ReachabilityAnalysisRunData.DeserializeReachabilityAnalysisRunData(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string networkManagerName, string workspaceName, string reachabilityAnalysisRunName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Network/networkManagers/", false); + uri.AppendPath(networkManagerName, true); + uri.AppendPath("/verifierWorkspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/reachabilityAnalysisRuns/", false); + uri.AppendPath(reachabilityAnalysisRunName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string networkManagerName, string workspaceName, string reachabilityAnalysisRunName) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Delete; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Network/networkManagers/", false); + uri.AppendPath(networkManagerName, true); + uri.AppendPath("/verifierWorkspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendPath("/reachabilityAnalysisRuns/", false); + uri.AppendPath(reachabilityAnalysisRunName, true); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// Deletes Reachability Analysis Run. + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + /// The name of the resource group. + /// The name of the network manager. + /// Workspace name. + /// Reachability Analysis Run name. + /// The cancellation token to use. + /// , , , or is null. + /// , , , or is an empty string, and was expected to be non-empty. + public async Task DeleteAsync(string subscriptionId, string resourceGroupName, string networkManagerName, string workspaceName, string reachabilityAnalysisRunName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(networkManagerName, nameof(networkManagerName)); + Argument.AssertNotNullOrEmpty(workspaceName, nameof(workspaceName)); + Argument.AssertNotNullOrEmpty(reachabilityAnalysisRunName, nameof(reachabilityAnalysisRunName)); + + using var message = CreateDeleteRequest(subscriptionId, resourceGroupName, networkManagerName, workspaceName, reachabilityAnalysisRunName); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 202: + case 204: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + + /// Deletes Reachability Analysis Run. + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + /// The name of the resource group. + /// The name of the network manager. + /// Workspace name. + /// Reachability Analysis Run name. + /// The cancellation token to use. + /// , , , or is null. + /// , , , or is an empty string, and was expected to be non-empty. + public Response Delete(string subscriptionId, string resourceGroupName, string networkManagerName, string workspaceName, string reachabilityAnalysisRunName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(networkManagerName, nameof(networkManagerName)); + Argument.AssertNotNullOrEmpty(workspaceName, nameof(workspaceName)); + Argument.AssertNotNullOrEmpty(reachabilityAnalysisRunName, nameof(reachabilityAnalysisRunName)); + + using var message = CreateDeleteRequest(subscriptionId, resourceGroupName, networkManagerName, workspaceName, reachabilityAnalysisRunName); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 202: + case 204: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string networkManagerName, string workspaceName, string skipToken, int? skip, int? top, string sortKey, string sortValue) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string networkManagerName, string workspaceName, string skipToken, int? skip, int? top, string sortKey, string sortValue) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// Gets list of Reachability Analysis Runs. + /// The URL to the next page of results. + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + /// The name of the resource group. + /// The name of the network manager. + /// Workspace name. + /// Optional skip token. + /// Optional num entries to skip. + /// Optional num entries to show. + /// Optional key by which to sort. + /// Optional sort value for pagination. + /// The cancellation token to use. + /// , , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public async Task> ListNextPageAsync(string nextLink, string subscriptionId, string resourceGroupName, string networkManagerName, string workspaceName, string skipToken = null, int? skip = null, int? top = null, string sortKey = null, string sortValue = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(nextLink, nameof(nextLink)); + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(networkManagerName, nameof(networkManagerName)); + Argument.AssertNotNullOrEmpty(workspaceName, nameof(workspaceName)); + + using var message = CreateListNextPageRequest(nextLink, subscriptionId, resourceGroupName, networkManagerName, workspaceName, skipToken, skip, top, sortKey, sortValue); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + ReachabilityAnalysisRunListResult value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = ReachabilityAnalysisRunListResult.DeserializeReachabilityAnalysisRunListResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + /// Gets list of Reachability Analysis Runs. + /// The URL to the next page of results. + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + /// The name of the resource group. + /// The name of the network manager. + /// Workspace name. + /// Optional skip token. + /// Optional num entries to skip. + /// Optional num entries to show. + /// Optional key by which to sort. + /// Optional sort value for pagination. + /// The cancellation token to use. + /// , , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public Response ListNextPage(string nextLink, string subscriptionId, string resourceGroupName, string networkManagerName, string workspaceName, string skipToken = null, int? skip = null, int? top = null, string sortKey = null, string sortValue = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(nextLink, nameof(nextLink)); + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(networkManagerName, nameof(networkManagerName)); + Argument.AssertNotNullOrEmpty(workspaceName, nameof(workspaceName)); + + using var message = CreateListNextPageRequest(nextLink, subscriptionId, resourceGroupName, networkManagerName, workspaceName, skipToken, skip, top, sortKey, sortValue); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + ReachabilityAnalysisRunListResult value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = ReachabilityAnalysisRunListResult.DeserializeReachabilityAnalysisRunListResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ResourceNavigationLinksRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ResourceNavigationLinksRestOperations.cs index 6a6693eb6a33..bb5701256579 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ResourceNavigationLinksRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ResourceNavigationLinksRestOperations.cs @@ -32,7 +32,7 @@ public ResourceNavigationLinksRestOperations(HttpPipeline pipeline, string appli { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2024-03-01"; + _apiVersion = apiVersion ?? "2024-05-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/RouteFilterRulesRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/RouteFilterRulesRestOperations.cs index dac6e767699f..739c7b6ec688 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/RouteFilterRulesRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/RouteFilterRulesRestOperations.cs @@ -32,7 +32,7 @@ public RouteFilterRulesRestOperations(HttpPipeline pipeline, string applicationI { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2024-03-01"; + _apiVersion = apiVersion ?? "2024-05-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/RouteFiltersRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/RouteFiltersRestOperations.cs index 68e82ac83cb1..fcf3611c15d6 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/RouteFiltersRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/RouteFiltersRestOperations.cs @@ -32,7 +32,7 @@ public RouteFiltersRestOperations(HttpPipeline pipeline, string applicationId, U { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2024-03-01"; + _apiVersion = apiVersion ?? "2024-05-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/RouteMapsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/RouteMapsRestOperations.cs index 2f6ab68e056a..faa06c664b6c 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/RouteMapsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/RouteMapsRestOperations.cs @@ -32,7 +32,7 @@ public RouteMapsRestOperations(HttpPipeline pipeline, string applicationId, Uri { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2024-03-01"; + _apiVersion = apiVersion ?? "2024-05-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/RouteTablesRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/RouteTablesRestOperations.cs index 86a0e48c60a3..47e8c019758a 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/RouteTablesRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/RouteTablesRestOperations.cs @@ -32,7 +32,7 @@ public RouteTablesRestOperations(HttpPipeline pipeline, string applicationId, Ur { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2024-03-01"; + _apiVersion = apiVersion ?? "2024-05-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/RoutesRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/RoutesRestOperations.cs index e15dd515e7b6..25d460493f72 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/RoutesRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/RoutesRestOperations.cs @@ -32,7 +32,7 @@ public RoutesRestOperations(HttpPipeline pipeline, string applicationId, Uri end { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2024-03-01"; + _apiVersion = apiVersion ?? "2024-05-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/RoutingIntentRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/RoutingIntentRestOperations.cs index e7b14ac04dbd..95f59147dc29 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/RoutingIntentRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/RoutingIntentRestOperations.cs @@ -32,7 +32,7 @@ public RoutingIntentRestOperations(HttpPipeline pipeline, string applicationId, { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2024-03-01"; + _apiVersion = apiVersion ?? "2024-05-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/RoutingRuleCollectionsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/RoutingRuleCollectionsRestOperations.cs index f5e734a3087d..b0f0e9804662 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/RoutingRuleCollectionsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/RoutingRuleCollectionsRestOperations.cs @@ -32,7 +32,7 @@ public RoutingRuleCollectionsRestOperations(HttpPipeline pipeline, string applic { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2024-03-01"; + _apiVersion = apiVersion ?? "2024-05-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/RoutingRulesRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/RoutingRulesRestOperations.cs index 9d48050141d4..df5e527711f5 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/RoutingRulesRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/RoutingRulesRestOperations.cs @@ -32,7 +32,7 @@ public RoutingRulesRestOperations(HttpPipeline pipeline, string applicationId, U { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2024-03-01"; + _apiVersion = apiVersion ?? "2024-05-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ScopeConnectionsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ScopeConnectionsRestOperations.cs index e264457c45a8..73a04841d8e8 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ScopeConnectionsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ScopeConnectionsRestOperations.cs @@ -32,7 +32,7 @@ public ScopeConnectionsRestOperations(HttpPipeline pipeline, string applicationI { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2024-03-01"; + _apiVersion = apiVersion ?? "2024-05-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/SecurityAdminConfigurationsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/SecurityAdminConfigurationsRestOperations.cs index 9b022ec6da6c..bc8728448c69 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/SecurityAdminConfigurationsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/SecurityAdminConfigurationsRestOperations.cs @@ -32,7 +32,7 @@ public SecurityAdminConfigurationsRestOperations(HttpPipeline pipeline, string a { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2024-03-01"; + _apiVersion = apiVersion ?? "2024-05-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/SecurityPartnerProvidersRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/SecurityPartnerProvidersRestOperations.cs index b494478b6db9..046a208a5242 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/SecurityPartnerProvidersRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/SecurityPartnerProvidersRestOperations.cs @@ -32,7 +32,7 @@ public SecurityPartnerProvidersRestOperations(HttpPipeline pipeline, string appl { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2024-03-01"; + _apiVersion = apiVersion ?? "2024-05-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/SecurityRulesRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/SecurityRulesRestOperations.cs index 54d9eb8dbcb0..d581d5f268de 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/SecurityRulesRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/SecurityRulesRestOperations.cs @@ -32,7 +32,7 @@ public SecurityRulesRestOperations(HttpPipeline pipeline, string applicationId, { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2024-03-01"; + _apiVersion = apiVersion ?? "2024-05-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/SecurityUserConfigurationsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/SecurityUserConfigurationsRestOperations.cs index af31aca9efc1..2d2d6dd6c960 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/SecurityUserConfigurationsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/SecurityUserConfigurationsRestOperations.cs @@ -32,7 +32,7 @@ public SecurityUserConfigurationsRestOperations(HttpPipeline pipeline, string ap { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2024-03-01"; + _apiVersion = apiVersion ?? "2024-05-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/SecurityUserRuleCollectionsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/SecurityUserRuleCollectionsRestOperations.cs index 12baebd922eb..cbdd270b284c 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/SecurityUserRuleCollectionsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/SecurityUserRuleCollectionsRestOperations.cs @@ -32,7 +32,7 @@ public SecurityUserRuleCollectionsRestOperations(HttpPipeline pipeline, string a { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2024-03-01"; + _apiVersion = apiVersion ?? "2024-05-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/SecurityUserRulesRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/SecurityUserRulesRestOperations.cs index 672231389b3e..4f6d04118452 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/SecurityUserRulesRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/SecurityUserRulesRestOperations.cs @@ -32,7 +32,7 @@ public SecurityUserRulesRestOperations(HttpPipeline pipeline, string application { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2024-03-01"; + _apiVersion = apiVersion ?? "2024-05-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ServiceAssociationLinksRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ServiceAssociationLinksRestOperations.cs index f8737e007968..76af5068ff0c 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ServiceAssociationLinksRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ServiceAssociationLinksRestOperations.cs @@ -32,7 +32,7 @@ public ServiceAssociationLinksRestOperations(HttpPipeline pipeline, string appli { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2024-03-01"; + _apiVersion = apiVersion ?? "2024-05-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ServiceEndpointPoliciesRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ServiceEndpointPoliciesRestOperations.cs index 26cffad69c80..64b349ef1d9f 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ServiceEndpointPoliciesRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ServiceEndpointPoliciesRestOperations.cs @@ -32,7 +32,7 @@ public ServiceEndpointPoliciesRestOperations(HttpPipeline pipeline, string appli { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2024-03-01"; + _apiVersion = apiVersion ?? "2024-05-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ServiceEndpointPolicyDefinitionsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ServiceEndpointPolicyDefinitionsRestOperations.cs index f1147b5e0bc8..0c775fdbedab 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ServiceEndpointPolicyDefinitionsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ServiceEndpointPolicyDefinitionsRestOperations.cs @@ -32,7 +32,7 @@ public ServiceEndpointPolicyDefinitionsRestOperations(HttpPipeline pipeline, str { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2024-03-01"; + _apiVersion = apiVersion ?? "2024-05-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ServiceTagInformationRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ServiceTagInformationRestOperations.cs index a25cfcb6d813..03efa18db5ba 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ServiceTagInformationRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ServiceTagInformationRestOperations.cs @@ -32,7 +32,7 @@ public ServiceTagInformationRestOperations(HttpPipeline pipeline, string applica { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2024-03-01"; + _apiVersion = apiVersion ?? "2024-05-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ServiceTagsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ServiceTagsRestOperations.cs index 4b2401b8dab8..b1e19fe71e98 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ServiceTagsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/ServiceTagsRestOperations.cs @@ -32,7 +32,7 @@ public ServiceTagsRestOperations(HttpPipeline pipeline, string applicationId, Ur { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2024-03-01"; + _apiVersion = apiVersion ?? "2024-05-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/StaticCidrsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/StaticCidrsRestOperations.cs new file mode 100644 index 000000000000..8ba593369634 --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/StaticCidrsRestOperations.cs @@ -0,0 +1,619 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Text.Json; +using System.Threading; +using System.Threading.Tasks; +using Azure.Core; +using Azure.Core.Pipeline; +using Azure.ResourceManager.Network.Models; + +namespace Azure.ResourceManager.Network +{ + internal partial class StaticCidrsRestOperations + { + private readonly TelemetryDetails _userAgent; + private readonly HttpPipeline _pipeline; + private readonly Uri _endpoint; + private readonly string _apiVersion; + + /// Initializes a new instance of StaticCidrsRestOperations. + /// The HTTP pipeline for sending and receiving REST requests and responses. + /// The application id to use for user agent. + /// server parameter. + /// Api Version. + /// , or is null. + public StaticCidrsRestOperations(HttpPipeline pipeline, string applicationId, Uri endpoint, string apiVersion = default) + { + _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); + _endpoint = endpoint ?? throw new ArgumentNullException(nameof(endpoint)); + _apiVersion = apiVersion ?? "2024-05-01"; + _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); + } + + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string networkManagerName, string poolName, string skipToken, int? skip, int? top, string sortKey, string sortValue) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Network/networkManagers/", false); + uri.AppendPath(networkManagerName, true); + uri.AppendPath("/ipamPools/", false); + uri.AppendPath(poolName, true); + uri.AppendPath("/staticCidrs", false); + if (skipToken != null) + { + uri.AppendQuery("skipToken", skipToken, true); + } + if (skip != null) + { + uri.AppendQuery("skip", skip.Value, true); + } + if (top != null) + { + uri.AppendQuery("top", top.Value, true); + } + if (sortKey != null) + { + uri.AppendQuery("sortKey", sortKey, true); + } + if (sortValue != null) + { + uri.AppendQuery("sortValue", sortValue, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string networkManagerName, string poolName, string skipToken, int? skip, int? top, string sortKey, string sortValue) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Network/networkManagers/", false); + uri.AppendPath(networkManagerName, true); + uri.AppendPath("/ipamPools/", false); + uri.AppendPath(poolName, true); + uri.AppendPath("/staticCidrs", false); + if (skipToken != null) + { + uri.AppendQuery("skipToken", skipToken, true); + } + if (skip != null) + { + uri.AppendQuery("skip", skip.Value, true); + } + if (top != null) + { + uri.AppendQuery("top", top.Value, true); + } + if (sortKey != null) + { + uri.AppendQuery("sortKey", sortKey, true); + } + if (sortValue != null) + { + uri.AppendQuery("sortValue", sortValue, true); + } + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// Gets list of Static CIDR resources at Network Manager level. + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + /// The name of the resource group. + /// The name of the network manager. + /// Pool resource name. + /// Optional skip token. + /// Optional num entries to skip. + /// Optional num entries to show. + /// Optional key by which to sort. + /// Optional sort value for pagination. + /// The cancellation token to use. + /// , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public async Task> ListAsync(string subscriptionId, string resourceGroupName, string networkManagerName, string poolName, string skipToken = null, int? skip = null, int? top = null, string sortKey = null, string sortValue = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(networkManagerName, nameof(networkManagerName)); + Argument.AssertNotNullOrEmpty(poolName, nameof(poolName)); + + using var message = CreateListRequest(subscriptionId, resourceGroupName, networkManagerName, poolName, skipToken, skip, top, sortKey, sortValue); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + StaticCidrList value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = StaticCidrList.DeserializeStaticCidrList(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + /// Gets list of Static CIDR resources at Network Manager level. + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + /// The name of the resource group. + /// The name of the network manager. + /// Pool resource name. + /// Optional skip token. + /// Optional num entries to skip. + /// Optional num entries to show. + /// Optional key by which to sort. + /// Optional sort value for pagination. + /// The cancellation token to use. + /// , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public Response List(string subscriptionId, string resourceGroupName, string networkManagerName, string poolName, string skipToken = null, int? skip = null, int? top = null, string sortKey = null, string sortValue = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(networkManagerName, nameof(networkManagerName)); + Argument.AssertNotNullOrEmpty(poolName, nameof(poolName)); + + using var message = CreateListRequest(subscriptionId, resourceGroupName, networkManagerName, poolName, skipToken, skip, top, sortKey, sortValue); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + StaticCidrList value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = StaticCidrList.DeserializeStaticCidrList(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + internal RequestUriBuilder CreateCreateRequestUri(string subscriptionId, string resourceGroupName, string networkManagerName, string poolName, string staticCidrName, StaticCidrData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Network/networkManagers/", false); + uri.AppendPath(networkManagerName, true); + uri.AppendPath("/ipamPools/", false); + uri.AppendPath(poolName, true); + uri.AppendPath("/staticCidrs/", false); + uri.AppendPath(staticCidrName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + + internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceGroupName, string networkManagerName, string poolName, string staticCidrName, StaticCidrData data) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Put; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Network/networkManagers/", false); + uri.AppendPath(networkManagerName, true); + uri.AppendPath("/ipamPools/", false); + uri.AppendPath(poolName, true); + uri.AppendPath("/staticCidrs/", false); + uri.AppendPath(staticCidrName, true); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + request.Headers.Add("Content-Type", "application/json"); + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(data, ModelSerializationExtensions.WireOptions); + request.Content = content; + _userAgent.Apply(message); + return message; + } + + /// Creates/Updates the Static CIDR resource. + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + /// The name of the resource group. + /// The name of the network manager. + /// IP Address Manager Pool resource name. + /// Static Cidr allocation name. + /// StaticCidr resource object to create/update. + /// The cancellation token to use. + /// , , , , or is null. + /// , , , or is an empty string, and was expected to be non-empty. + public async Task> CreateAsync(string subscriptionId, string resourceGroupName, string networkManagerName, string poolName, string staticCidrName, StaticCidrData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(networkManagerName, nameof(networkManagerName)); + Argument.AssertNotNullOrEmpty(poolName, nameof(poolName)); + Argument.AssertNotNullOrEmpty(staticCidrName, nameof(staticCidrName)); + Argument.AssertNotNull(data, nameof(data)); + + using var message = CreateCreateRequest(subscriptionId, resourceGroupName, networkManagerName, poolName, staticCidrName, data); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + case 201: + { + StaticCidrData value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = StaticCidrData.DeserializeStaticCidrData(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + /// Creates/Updates the Static CIDR resource. + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + /// The name of the resource group. + /// The name of the network manager. + /// IP Address Manager Pool resource name. + /// Static Cidr allocation name. + /// StaticCidr resource object to create/update. + /// The cancellation token to use. + /// , , , , or is null. + /// , , , or is an empty string, and was expected to be non-empty. + public Response Create(string subscriptionId, string resourceGroupName, string networkManagerName, string poolName, string staticCidrName, StaticCidrData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(networkManagerName, nameof(networkManagerName)); + Argument.AssertNotNullOrEmpty(poolName, nameof(poolName)); + Argument.AssertNotNullOrEmpty(staticCidrName, nameof(staticCidrName)); + Argument.AssertNotNull(data, nameof(data)); + + using var message = CreateCreateRequest(subscriptionId, resourceGroupName, networkManagerName, poolName, staticCidrName, data); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + case 201: + { + StaticCidrData value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = StaticCidrData.DeserializeStaticCidrData(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string networkManagerName, string poolName, string staticCidrName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Network/networkManagers/", false); + uri.AppendPath(networkManagerName, true); + uri.AppendPath("/ipamPools/", false); + uri.AppendPath(poolName, true); + uri.AppendPath("/staticCidrs/", false); + uri.AppendPath(staticCidrName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string networkManagerName, string poolName, string staticCidrName) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Network/networkManagers/", false); + uri.AppendPath(networkManagerName, true); + uri.AppendPath("/ipamPools/", false); + uri.AppendPath(poolName, true); + uri.AppendPath("/staticCidrs/", false); + uri.AppendPath(staticCidrName, true); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// Gets the specific Static CIDR resource. + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + /// The name of the resource group. + /// The name of the network manager. + /// Pool resource name. + /// StaticCidr resource name to retrieve. + /// The cancellation token to use. + /// , , , or is null. + /// , , , or is an empty string, and was expected to be non-empty. + public async Task> GetAsync(string subscriptionId, string resourceGroupName, string networkManagerName, string poolName, string staticCidrName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(networkManagerName, nameof(networkManagerName)); + Argument.AssertNotNullOrEmpty(poolName, nameof(poolName)); + Argument.AssertNotNullOrEmpty(staticCidrName, nameof(staticCidrName)); + + using var message = CreateGetRequest(subscriptionId, resourceGroupName, networkManagerName, poolName, staticCidrName); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + StaticCidrData value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = StaticCidrData.DeserializeStaticCidrData(document.RootElement); + return Response.FromValue(value, message.Response); + } + case 404: + return Response.FromValue((StaticCidrData)null, message.Response); + default: + throw new RequestFailedException(message.Response); + } + } + + /// Gets the specific Static CIDR resource. + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + /// The name of the resource group. + /// The name of the network manager. + /// Pool resource name. + /// StaticCidr resource name to retrieve. + /// The cancellation token to use. + /// , , , or is null. + /// , , , or is an empty string, and was expected to be non-empty. + public Response Get(string subscriptionId, string resourceGroupName, string networkManagerName, string poolName, string staticCidrName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(networkManagerName, nameof(networkManagerName)); + Argument.AssertNotNullOrEmpty(poolName, nameof(poolName)); + Argument.AssertNotNullOrEmpty(staticCidrName, nameof(staticCidrName)); + + using var message = CreateGetRequest(subscriptionId, resourceGroupName, networkManagerName, poolName, staticCidrName); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + StaticCidrData value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = StaticCidrData.DeserializeStaticCidrData(document.RootElement); + return Response.FromValue(value, message.Response); + } + case 404: + return Response.FromValue((StaticCidrData)null, message.Response); + default: + throw new RequestFailedException(message.Response); + } + } + + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string networkManagerName, string poolName, string staticCidrName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Network/networkManagers/", false); + uri.AppendPath(networkManagerName, true); + uri.AppendPath("/ipamPools/", false); + uri.AppendPath(poolName, true); + uri.AppendPath("/staticCidrs/", false); + uri.AppendPath(staticCidrName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string networkManagerName, string poolName, string staticCidrName) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Delete; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Network/networkManagers/", false); + uri.AppendPath(networkManagerName, true); + uri.AppendPath("/ipamPools/", false); + uri.AppendPath(poolName, true); + uri.AppendPath("/staticCidrs/", false); + uri.AppendPath(staticCidrName, true); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// Delete the Static CIDR resource. + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + /// The name of the resource group. + /// The name of the network manager. + /// Pool resource name. + /// StaticCidr resource name to delete. + /// The cancellation token to use. + /// , , , or is null. + /// , , , or is an empty string, and was expected to be non-empty. + public async Task DeleteAsync(string subscriptionId, string resourceGroupName, string networkManagerName, string poolName, string staticCidrName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(networkManagerName, nameof(networkManagerName)); + Argument.AssertNotNullOrEmpty(poolName, nameof(poolName)); + Argument.AssertNotNullOrEmpty(staticCidrName, nameof(staticCidrName)); + + using var message = CreateDeleteRequest(subscriptionId, resourceGroupName, networkManagerName, poolName, staticCidrName); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 202: + case 204: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + + /// Delete the Static CIDR resource. + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + /// The name of the resource group. + /// The name of the network manager. + /// Pool resource name. + /// StaticCidr resource name to delete. + /// The cancellation token to use. + /// , , , or is null. + /// , , , or is an empty string, and was expected to be non-empty. + public Response Delete(string subscriptionId, string resourceGroupName, string networkManagerName, string poolName, string staticCidrName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(networkManagerName, nameof(networkManagerName)); + Argument.AssertNotNullOrEmpty(poolName, nameof(poolName)); + Argument.AssertNotNullOrEmpty(staticCidrName, nameof(staticCidrName)); + + using var message = CreateDeleteRequest(subscriptionId, resourceGroupName, networkManagerName, poolName, staticCidrName); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 202: + case 204: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string networkManagerName, string poolName, string skipToken, int? skip, int? top, string sortKey, string sortValue) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string networkManagerName, string poolName, string skipToken, int? skip, int? top, string sortKey, string sortValue) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// Gets list of Static CIDR resources at Network Manager level. + /// The URL to the next page of results. + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + /// The name of the resource group. + /// The name of the network manager. + /// Pool resource name. + /// Optional skip token. + /// Optional num entries to skip. + /// Optional num entries to show. + /// Optional key by which to sort. + /// Optional sort value for pagination. + /// The cancellation token to use. + /// , , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public async Task> ListNextPageAsync(string nextLink, string subscriptionId, string resourceGroupName, string networkManagerName, string poolName, string skipToken = null, int? skip = null, int? top = null, string sortKey = null, string sortValue = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(nextLink, nameof(nextLink)); + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(networkManagerName, nameof(networkManagerName)); + Argument.AssertNotNullOrEmpty(poolName, nameof(poolName)); + + using var message = CreateListNextPageRequest(nextLink, subscriptionId, resourceGroupName, networkManagerName, poolName, skipToken, skip, top, sortKey, sortValue); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + StaticCidrList value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = StaticCidrList.DeserializeStaticCidrList(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + /// Gets list of Static CIDR resources at Network Manager level. + /// The URL to the next page of results. + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + /// The name of the resource group. + /// The name of the network manager. + /// Pool resource name. + /// Optional skip token. + /// Optional num entries to skip. + /// Optional num entries to show. + /// Optional key by which to sort. + /// Optional sort value for pagination. + /// The cancellation token to use. + /// , , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public Response ListNextPage(string nextLink, string subscriptionId, string resourceGroupName, string networkManagerName, string poolName, string skipToken = null, int? skip = null, int? top = null, string sortKey = null, string sortValue = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(nextLink, nameof(nextLink)); + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(networkManagerName, nameof(networkManagerName)); + Argument.AssertNotNullOrEmpty(poolName, nameof(poolName)); + + using var message = CreateListNextPageRequest(nextLink, subscriptionId, resourceGroupName, networkManagerName, poolName, skipToken, skip, top, sortKey, sortValue); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + StaticCidrList value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = StaticCidrList.DeserializeStaticCidrList(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/StaticMembersRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/StaticMembersRestOperations.cs index 2974bce0dbb4..7d480cd44092 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/StaticMembersRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/StaticMembersRestOperations.cs @@ -32,7 +32,7 @@ public StaticMembersRestOperations(HttpPipeline pipeline, string applicationId, { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2024-03-01"; + _apiVersion = apiVersion ?? "2024-05-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/SubnetsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/SubnetsRestOperations.cs index dc1608876ced..d8f04678d47d 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/SubnetsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/SubnetsRestOperations.cs @@ -32,7 +32,7 @@ public SubnetsRestOperations(HttpPipeline pipeline, string applicationId, Uri en { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2024-03-01"; + _apiVersion = apiVersion ?? "2024-05-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/SubscriptionNetworkManagerConnectionsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/SubscriptionNetworkManagerConnectionsRestOperations.cs index 7610d7175b71..e3d15427f033 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/SubscriptionNetworkManagerConnectionsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/SubscriptionNetworkManagerConnectionsRestOperations.cs @@ -32,7 +32,7 @@ public SubscriptionNetworkManagerConnectionsRestOperations(HttpPipeline pipeline { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2024-03-01"; + _apiVersion = apiVersion ?? "2024-05-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/UsagesRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/UsagesRestOperations.cs index f8351525942c..6a4c8f6ca5c7 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/UsagesRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/UsagesRestOperations.cs @@ -32,7 +32,7 @@ public UsagesRestOperations(HttpPipeline pipeline, string applicationId, Uri end { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2024-03-01"; + _apiVersion = apiVersion ?? "2024-05-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VerifierWorkspacesRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VerifierWorkspacesRestOperations.cs new file mode 100644 index 000000000000..0b85f98dee31 --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VerifierWorkspacesRestOperations.cs @@ -0,0 +1,691 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Text.Json; +using System.Threading; +using System.Threading.Tasks; +using Azure.Core; +using Azure.Core.Pipeline; +using Azure.ResourceManager.Network.Models; + +namespace Azure.ResourceManager.Network +{ + internal partial class VerifierWorkspacesRestOperations + { + private readonly TelemetryDetails _userAgent; + private readonly HttpPipeline _pipeline; + private readonly Uri _endpoint; + private readonly string _apiVersion; + + /// Initializes a new instance of VerifierWorkspacesRestOperations. + /// The HTTP pipeline for sending and receiving REST requests and responses. + /// The application id to use for user agent. + /// server parameter. + /// Api Version. + /// , or is null. + public VerifierWorkspacesRestOperations(HttpPipeline pipeline, string applicationId, Uri endpoint, string apiVersion = default) + { + _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); + _endpoint = endpoint ?? throw new ArgumentNullException(nameof(endpoint)); + _apiVersion = apiVersion ?? "2024-05-01"; + _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); + } + + internal RequestUriBuilder CreateListRequestUri(string subscriptionId, string resourceGroupName, string networkManagerName, string skipToken, int? skip, int? top, string sortKey, string sortValue) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Network/networkManagers/", false); + uri.AppendPath(networkManagerName, true); + uri.AppendPath("/verifierWorkspaces", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (skipToken != null) + { + uri.AppendQuery("skipToken", skipToken, true); + } + if (skip != null) + { + uri.AppendQuery("skip", skip.Value, true); + } + if (top != null) + { + uri.AppendQuery("top", top.Value, true); + } + if (sortKey != null) + { + uri.AppendQuery("sortKey", sortKey, true); + } + if (sortValue != null) + { + uri.AppendQuery("sortValue", sortValue, true); + } + return uri; + } + + internal HttpMessage CreateListRequest(string subscriptionId, string resourceGroupName, string networkManagerName, string skipToken, int? skip, int? top, string sortKey, string sortValue) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Network/networkManagers/", false); + uri.AppendPath(networkManagerName, true); + uri.AppendPath("/verifierWorkspaces", false); + uri.AppendQuery("api-version", _apiVersion, true); + if (skipToken != null) + { + uri.AppendQuery("skipToken", skipToken, true); + } + if (skip != null) + { + uri.AppendQuery("skip", skip.Value, true); + } + if (top != null) + { + uri.AppendQuery("top", top.Value, true); + } + if (sortKey != null) + { + uri.AppendQuery("sortKey", sortKey, true); + } + if (sortValue != null) + { + uri.AppendQuery("sortValue", sortValue, true); + } + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// Gets list of Verifier Workspaces. + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + /// The name of the resource group. + /// The name of the network manager. + /// Optional skip token. + /// Optional num entries to skip. + /// Optional num entries to show. + /// Optional key by which to sort. + /// Optional sort value for pagination. + /// The cancellation token to use. + /// , or is null. + /// , or is an empty string, and was expected to be non-empty. + public async Task> ListAsync(string subscriptionId, string resourceGroupName, string networkManagerName, string skipToken = null, int? skip = null, int? top = null, string sortKey = null, string sortValue = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(networkManagerName, nameof(networkManagerName)); + + using var message = CreateListRequest(subscriptionId, resourceGroupName, networkManagerName, skipToken, skip, top, sortKey, sortValue); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + VerifierWorkspaceListResult value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = VerifierWorkspaceListResult.DeserializeVerifierWorkspaceListResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + /// Gets list of Verifier Workspaces. + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + /// The name of the resource group. + /// The name of the network manager. + /// Optional skip token. + /// Optional num entries to skip. + /// Optional num entries to show. + /// Optional key by which to sort. + /// Optional sort value for pagination. + /// The cancellation token to use. + /// , or is null. + /// , or is an empty string, and was expected to be non-empty. + public Response List(string subscriptionId, string resourceGroupName, string networkManagerName, string skipToken = null, int? skip = null, int? top = null, string sortKey = null, string sortValue = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(networkManagerName, nameof(networkManagerName)); + + using var message = CreateListRequest(subscriptionId, resourceGroupName, networkManagerName, skipToken, skip, top, sortKey, sortValue); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + VerifierWorkspaceListResult value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = VerifierWorkspaceListResult.DeserializeVerifierWorkspaceListResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + internal RequestUriBuilder CreateGetRequestUri(string subscriptionId, string resourceGroupName, string networkManagerName, string workspaceName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Network/networkManagers/", false); + uri.AppendPath(networkManagerName, true); + uri.AppendPath("/verifierWorkspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string networkManagerName, string workspaceName) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Network/networkManagers/", false); + uri.AppendPath(networkManagerName, true); + uri.AppendPath("/verifierWorkspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// Gets Verifier Workspace. + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + /// The name of the resource group. + /// The name of the network manager. + /// Workspace name. + /// The cancellation token to use. + /// , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public async Task> GetAsync(string subscriptionId, string resourceGroupName, string networkManagerName, string workspaceName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(networkManagerName, nameof(networkManagerName)); + Argument.AssertNotNullOrEmpty(workspaceName, nameof(workspaceName)); + + using var message = CreateGetRequest(subscriptionId, resourceGroupName, networkManagerName, workspaceName); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + VerifierWorkspaceData value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = VerifierWorkspaceData.DeserializeVerifierWorkspaceData(document.RootElement); + return Response.FromValue(value, message.Response); + } + case 404: + return Response.FromValue((VerifierWorkspaceData)null, message.Response); + default: + throw new RequestFailedException(message.Response); + } + } + + /// Gets Verifier Workspace. + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + /// The name of the resource group. + /// The name of the network manager. + /// Workspace name. + /// The cancellation token to use. + /// , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public Response Get(string subscriptionId, string resourceGroupName, string networkManagerName, string workspaceName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(networkManagerName, nameof(networkManagerName)); + Argument.AssertNotNullOrEmpty(workspaceName, nameof(workspaceName)); + + using var message = CreateGetRequest(subscriptionId, resourceGroupName, networkManagerName, workspaceName); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + VerifierWorkspaceData value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = VerifierWorkspaceData.DeserializeVerifierWorkspaceData(document.RootElement); + return Response.FromValue(value, message.Response); + } + case 404: + return Response.FromValue((VerifierWorkspaceData)null, message.Response); + default: + throw new RequestFailedException(message.Response); + } + } + + internal RequestUriBuilder CreateCreateRequestUri(string subscriptionId, string resourceGroupName, string networkManagerName, string workspaceName, VerifierWorkspaceData data) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Network/networkManagers/", false); + uri.AppendPath(networkManagerName, true); + uri.AppendPath("/verifierWorkspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + + internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceGroupName, string networkManagerName, string workspaceName, VerifierWorkspaceData data) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Put; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Network/networkManagers/", false); + uri.AppendPath(networkManagerName, true); + uri.AppendPath("/verifierWorkspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + request.Headers.Add("Content-Type", "application/json"); + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(data, ModelSerializationExtensions.WireOptions); + request.Content = content; + _userAgent.Apply(message); + return message; + } + + /// Creates Verifier Workspace. + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + /// The name of the resource group. + /// The name of the network manager. + /// Workspace name. + /// Verifier Workspace object to create/update. + /// The cancellation token to use. + /// , , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public async Task> CreateAsync(string subscriptionId, string resourceGroupName, string networkManagerName, string workspaceName, VerifierWorkspaceData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(networkManagerName, nameof(networkManagerName)); + Argument.AssertNotNullOrEmpty(workspaceName, nameof(workspaceName)); + Argument.AssertNotNull(data, nameof(data)); + + using var message = CreateCreateRequest(subscriptionId, resourceGroupName, networkManagerName, workspaceName, data); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + case 201: + { + VerifierWorkspaceData value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = VerifierWorkspaceData.DeserializeVerifierWorkspaceData(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + /// Creates Verifier Workspace. + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + /// The name of the resource group. + /// The name of the network manager. + /// Workspace name. + /// Verifier Workspace object to create/update. + /// The cancellation token to use. + /// , , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public Response Create(string subscriptionId, string resourceGroupName, string networkManagerName, string workspaceName, VerifierWorkspaceData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(networkManagerName, nameof(networkManagerName)); + Argument.AssertNotNullOrEmpty(workspaceName, nameof(workspaceName)); + Argument.AssertNotNull(data, nameof(data)); + + using var message = CreateCreateRequest(subscriptionId, resourceGroupName, networkManagerName, workspaceName, data); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + case 201: + { + VerifierWorkspaceData value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = VerifierWorkspaceData.DeserializeVerifierWorkspaceData(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + internal RequestUriBuilder CreateUpdateRequestUri(string subscriptionId, string resourceGroupName, string networkManagerName, string workspaceName, VerifierWorkspacePatch patch) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Network/networkManagers/", false); + uri.AppendPath(networkManagerName, true); + uri.AppendPath("/verifierWorkspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string networkManagerName, string workspaceName, VerifierWorkspacePatch patch) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Patch; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Network/networkManagers/", false); + uri.AppendPath(networkManagerName, true); + uri.AppendPath("/verifierWorkspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + request.Headers.Add("Content-Type", "application/json"); + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(patch, ModelSerializationExtensions.WireOptions); + request.Content = content; + _userAgent.Apply(message); + return message; + } + + /// Updates Verifier Workspace. + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + /// The name of the resource group. + /// The name of the network manager. + /// Workspace name. + /// Verifier Workspace object to create/update. + /// The cancellation token to use. + /// , , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public async Task> UpdateAsync(string subscriptionId, string resourceGroupName, string networkManagerName, string workspaceName, VerifierWorkspacePatch patch, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(networkManagerName, nameof(networkManagerName)); + Argument.AssertNotNullOrEmpty(workspaceName, nameof(workspaceName)); + Argument.AssertNotNull(patch, nameof(patch)); + + using var message = CreateUpdateRequest(subscriptionId, resourceGroupName, networkManagerName, workspaceName, patch); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + VerifierWorkspaceData value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = VerifierWorkspaceData.DeserializeVerifierWorkspaceData(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + /// Updates Verifier Workspace. + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + /// The name of the resource group. + /// The name of the network manager. + /// Workspace name. + /// Verifier Workspace object to create/update. + /// The cancellation token to use. + /// , , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public Response Update(string subscriptionId, string resourceGroupName, string networkManagerName, string workspaceName, VerifierWorkspacePatch patch, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(networkManagerName, nameof(networkManagerName)); + Argument.AssertNotNullOrEmpty(workspaceName, nameof(workspaceName)); + Argument.AssertNotNull(patch, nameof(patch)); + + using var message = CreateUpdateRequest(subscriptionId, resourceGroupName, networkManagerName, workspaceName, patch); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + VerifierWorkspaceData value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = VerifierWorkspaceData.DeserializeVerifierWorkspaceData(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + internal RequestUriBuilder CreateDeleteRequestUri(string subscriptionId, string resourceGroupName, string networkManagerName, string workspaceName) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Network/networkManagers/", false); + uri.AppendPath(networkManagerName, true); + uri.AppendPath("/verifierWorkspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + + internal HttpMessage CreateDeleteRequest(string subscriptionId, string resourceGroupName, string networkManagerName, string workspaceName) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Delete; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Network/networkManagers/", false); + uri.AppendPath(networkManagerName, true); + uri.AppendPath("/verifierWorkspaces/", false); + uri.AppendPath(workspaceName, true); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// Deletes Verifier Workspace. + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + /// The name of the resource group. + /// The name of the network manager. + /// Workspace name. + /// The cancellation token to use. + /// , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public async Task DeleteAsync(string subscriptionId, string resourceGroupName, string networkManagerName, string workspaceName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(networkManagerName, nameof(networkManagerName)); + Argument.AssertNotNullOrEmpty(workspaceName, nameof(workspaceName)); + + using var message = CreateDeleteRequest(subscriptionId, resourceGroupName, networkManagerName, workspaceName); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 202: + case 204: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + + /// Deletes Verifier Workspace. + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + /// The name of the resource group. + /// The name of the network manager. + /// Workspace name. + /// The cancellation token to use. + /// , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public Response Delete(string subscriptionId, string resourceGroupName, string networkManagerName, string workspaceName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(networkManagerName, nameof(networkManagerName)); + Argument.AssertNotNullOrEmpty(workspaceName, nameof(workspaceName)); + + using var message = CreateDeleteRequest(subscriptionId, resourceGroupName, networkManagerName, workspaceName); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 202: + case 204: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + + internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string subscriptionId, string resourceGroupName, string networkManagerName, string skipToken, int? skip, int? top, string sortKey, string sortValue) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + return uri; + } + + internal HttpMessage CreateListNextPageRequest(string nextLink, string subscriptionId, string resourceGroupName, string networkManagerName, string skipToken, int? skip, int? top, string sortKey, string sortValue) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Get; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendRawNextLink(nextLink, false); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// Gets list of Verifier Workspaces. + /// The URL to the next page of results. + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + /// The name of the resource group. + /// The name of the network manager. + /// Optional skip token. + /// Optional num entries to skip. + /// Optional num entries to show. + /// Optional key by which to sort. + /// Optional sort value for pagination. + /// The cancellation token to use. + /// , , or is null. + /// , or is an empty string, and was expected to be non-empty. + public async Task> ListNextPageAsync(string nextLink, string subscriptionId, string resourceGroupName, string networkManagerName, string skipToken = null, int? skip = null, int? top = null, string sortKey = null, string sortValue = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(nextLink, nameof(nextLink)); + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(networkManagerName, nameof(networkManagerName)); + + using var message = CreateListNextPageRequest(nextLink, subscriptionId, resourceGroupName, networkManagerName, skipToken, skip, top, sortKey, sortValue); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + { + VerifierWorkspaceListResult value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = VerifierWorkspaceListResult.DeserializeVerifierWorkspaceListResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + + /// Gets list of Verifier Workspaces. + /// The URL to the next page of results. + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + /// The name of the resource group. + /// The name of the network manager. + /// Optional skip token. + /// Optional num entries to skip. + /// Optional num entries to show. + /// Optional key by which to sort. + /// Optional sort value for pagination. + /// The cancellation token to use. + /// , , or is null. + /// , or is an empty string, and was expected to be non-empty. + public Response ListNextPage(string nextLink, string subscriptionId, string resourceGroupName, string networkManagerName, string skipToken = null, int? skip = null, int? top = null, string sortKey = null, string sortValue = null, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(nextLink, nameof(nextLink)); + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(networkManagerName, nameof(networkManagerName)); + + using var message = CreateListNextPageRequest(nextLink, subscriptionId, resourceGroupName, networkManagerName, skipToken, skip, top, sortKey, sortValue); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + { + VerifierWorkspaceListResult value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = VerifierWorkspaceListResult.DeserializeVerifierWorkspaceListResult(document.RootElement); + return Response.FromValue(value, message.Response); + } + default: + throw new RequestFailedException(message.Response); + } + } + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VipSwapRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VipSwapRestOperations.cs index eeb553c2289c..70ce8ce8c5ac 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VipSwapRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VipSwapRestOperations.cs @@ -32,7 +32,7 @@ public VipSwapRestOperations(HttpPipeline pipeline, string applicationId, Uri en { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2024-03-01"; + _apiVersion = apiVersion ?? "2024-05-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualApplianceSitesRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualApplianceSitesRestOperations.cs index 4571d68c019f..c77d2cc2708e 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualApplianceSitesRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualApplianceSitesRestOperations.cs @@ -32,7 +32,7 @@ public VirtualApplianceSitesRestOperations(HttpPipeline pipeline, string applica { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2024-03-01"; + _apiVersion = apiVersion ?? "2024-05-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualApplianceSkusRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualApplianceSkusRestOperations.cs index 4a0f9449b439..35d73cc9abf1 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualApplianceSkusRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualApplianceSkusRestOperations.cs @@ -32,7 +32,7 @@ public VirtualApplianceSkusRestOperations(HttpPipeline pipeline, string applicat { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2024-03-01"; + _apiVersion = apiVersion ?? "2024-05-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualHubBgpConnectionRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualHubBgpConnectionRestOperations.cs index bb7ca52c5ebf..b850f181f5ee 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualHubBgpConnectionRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualHubBgpConnectionRestOperations.cs @@ -31,7 +31,7 @@ public VirtualHubBgpConnectionRestOperations(HttpPipeline pipeline, string appli { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2024-03-01"; + _apiVersion = apiVersion ?? "2024-05-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualHubBgpConnectionsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualHubBgpConnectionsRestOperations.cs index c478c4af451b..84bd8c5060e4 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualHubBgpConnectionsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualHubBgpConnectionsRestOperations.cs @@ -32,7 +32,7 @@ public VirtualHubBgpConnectionsRestOperations(HttpPipeline pipeline, string appl { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2024-03-01"; + _apiVersion = apiVersion ?? "2024-05-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualHubIpConfigurationRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualHubIpConfigurationRestOperations.cs index 65cf40ae9174..b6ec015d2b75 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualHubIpConfigurationRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualHubIpConfigurationRestOperations.cs @@ -32,7 +32,7 @@ public VirtualHubIpConfigurationRestOperations(HttpPipeline pipeline, string app { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2024-03-01"; + _apiVersion = apiVersion ?? "2024-05-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualHubRouteTableV2SRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualHubRouteTableV2SRestOperations.cs index 61ac4c2684a7..f478a192ab8f 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualHubRouteTableV2SRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualHubRouteTableV2SRestOperations.cs @@ -32,7 +32,7 @@ public VirtualHubRouteTableV2SRestOperations(HttpPipeline pipeline, string appli { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2024-03-01"; + _apiVersion = apiVersion ?? "2024-05-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualHubsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualHubsRestOperations.cs index a113599edc6c..a8ef7aed4462 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualHubsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualHubsRestOperations.cs @@ -32,7 +32,7 @@ public VirtualHubsRestOperations(HttpPipeline pipeline, string applicationId, Ur { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2024-03-01"; + _apiVersion = apiVersion ?? "2024-05-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualNetworkGatewayConnectionsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualNetworkGatewayConnectionsRestOperations.cs index d1909ac8f2e7..6d26a6c8c061 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualNetworkGatewayConnectionsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualNetworkGatewayConnectionsRestOperations.cs @@ -32,7 +32,7 @@ public VirtualNetworkGatewayConnectionsRestOperations(HttpPipeline pipeline, str { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2024-03-01"; + _apiVersion = apiVersion ?? "2024-05-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualNetworkGatewayNatRulesRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualNetworkGatewayNatRulesRestOperations.cs index 8294f89938cf..1a7b6942f017 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualNetworkGatewayNatRulesRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualNetworkGatewayNatRulesRestOperations.cs @@ -32,7 +32,7 @@ public VirtualNetworkGatewayNatRulesRestOperations(HttpPipeline pipeline, string { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2024-03-01"; + _apiVersion = apiVersion ?? "2024-05-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualNetworkGatewaysRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualNetworkGatewaysRestOperations.cs index 2cd3cc7619ea..2f2878ec2855 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualNetworkGatewaysRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualNetworkGatewaysRestOperations.cs @@ -32,7 +32,7 @@ public VirtualNetworkGatewaysRestOperations(HttpPipeline pipeline, string applic { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2024-03-01"; + _apiVersion = apiVersion ?? "2024-05-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } @@ -1875,6 +1875,386 @@ public Response StopPacketCapture(string subscriptionId, string resourceGroupNam } } + internal RequestUriBuilder CreateGetFailoverAllTestDetailsRequestUri(string subscriptionId, string resourceGroupName, string virtualNetworkGatewayName, string type, bool fetchLatest) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Network/virtualNetworkGateways/", false); + uri.AppendPath(virtualNetworkGatewayName, true); + uri.AppendPath("/getFailoverAllTestsDetails", false); + uri.AppendQuery("type", type, true); + uri.AppendQuery("fetchLatest", fetchLatest, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + + internal HttpMessage CreateGetFailoverAllTestDetailsRequest(string subscriptionId, string resourceGroupName, string virtualNetworkGatewayName, string type, bool fetchLatest) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Post; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Network/virtualNetworkGateways/", false); + uri.AppendPath(virtualNetworkGatewayName, true); + uri.AppendPath("/getFailoverAllTestsDetails", false); + uri.AppendQuery("type", type, true); + uri.AppendQuery("fetchLatest", fetchLatest, true); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// This operation retrieves the details of all the failover tests performed on the gateway for different peering locations. + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + /// The name of the resource group. + /// The name of the virtual network gateway. + /// The type of failover test. + /// Fetch only the latest tests for each peering location. + /// The cancellation token to use. + /// , , or is null. + /// , or is an empty string, and was expected to be non-empty. + public async Task GetFailoverAllTestDetailsAsync(string subscriptionId, string resourceGroupName, string virtualNetworkGatewayName, string type, bool fetchLatest, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(virtualNetworkGatewayName, nameof(virtualNetworkGatewayName)); + Argument.AssertNotNull(type, nameof(type)); + + using var message = CreateGetFailoverAllTestDetailsRequest(subscriptionId, resourceGroupName, virtualNetworkGatewayName, type, fetchLatest); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + case 202: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + + /// This operation retrieves the details of all the failover tests performed on the gateway for different peering locations. + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + /// The name of the resource group. + /// The name of the virtual network gateway. + /// The type of failover test. + /// Fetch only the latest tests for each peering location. + /// The cancellation token to use. + /// , , or is null. + /// , or is an empty string, and was expected to be non-empty. + public Response GetFailoverAllTestDetails(string subscriptionId, string resourceGroupName, string virtualNetworkGatewayName, string type, bool fetchLatest, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(virtualNetworkGatewayName, nameof(virtualNetworkGatewayName)); + Argument.AssertNotNull(type, nameof(type)); + + using var message = CreateGetFailoverAllTestDetailsRequest(subscriptionId, resourceGroupName, virtualNetworkGatewayName, type, fetchLatest); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + case 202: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + + internal RequestUriBuilder CreateGetFailoverSingleTestDetailsRequestUri(string subscriptionId, string resourceGroupName, string virtualNetworkGatewayName, string peeringLocation, string failoverTestId) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Network/virtualNetworkGateways/", false); + uri.AppendPath(virtualNetworkGatewayName, true); + uri.AppendPath("/getFailoverSingleTestDetails", false); + uri.AppendQuery("peeringLocation", peeringLocation, true); + uri.AppendQuery("failoverTestId", failoverTestId, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + + internal HttpMessage CreateGetFailoverSingleTestDetailsRequest(string subscriptionId, string resourceGroupName, string virtualNetworkGatewayName, string peeringLocation, string failoverTestId) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Post; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Network/virtualNetworkGateways/", false); + uri.AppendPath(virtualNetworkGatewayName, true); + uri.AppendPath("/getFailoverSingleTestDetails", false); + uri.AppendQuery("peeringLocation", peeringLocation, true); + uri.AppendQuery("failoverTestId", failoverTestId, true); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// This operation retrieves the details of a particular failover test performed on the gateway based on the test Guid. + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + /// The name of the resource group. + /// The name of the virtual network gateway. + /// Peering location of the test. + /// The unique Guid value which identifies the test. + /// The cancellation token to use. + /// , , , or is null. + /// , or is an empty string, and was expected to be non-empty. + public async Task GetFailoverSingleTestDetailsAsync(string subscriptionId, string resourceGroupName, string virtualNetworkGatewayName, string peeringLocation, string failoverTestId, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(virtualNetworkGatewayName, nameof(virtualNetworkGatewayName)); + Argument.AssertNotNull(peeringLocation, nameof(peeringLocation)); + Argument.AssertNotNull(failoverTestId, nameof(failoverTestId)); + + using var message = CreateGetFailoverSingleTestDetailsRequest(subscriptionId, resourceGroupName, virtualNetworkGatewayName, peeringLocation, failoverTestId); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + case 202: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + + /// This operation retrieves the details of a particular failover test performed on the gateway based on the test Guid. + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + /// The name of the resource group. + /// The name of the virtual network gateway. + /// Peering location of the test. + /// The unique Guid value which identifies the test. + /// The cancellation token to use. + /// , , , or is null. + /// , or is an empty string, and was expected to be non-empty. + public Response GetFailoverSingleTestDetails(string subscriptionId, string resourceGroupName, string virtualNetworkGatewayName, string peeringLocation, string failoverTestId, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(virtualNetworkGatewayName, nameof(virtualNetworkGatewayName)); + Argument.AssertNotNull(peeringLocation, nameof(peeringLocation)); + Argument.AssertNotNull(failoverTestId, nameof(failoverTestId)); + + using var message = CreateGetFailoverSingleTestDetailsRequest(subscriptionId, resourceGroupName, virtualNetworkGatewayName, peeringLocation, failoverTestId); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + case 202: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + + internal RequestUriBuilder CreateStartExpressRouteSiteFailoverSimulationRequestUri(string subscriptionId, string resourceGroupName, string virtualNetworkGatewayName, string peeringLocation) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Network/virtualNetworkGateways/", false); + uri.AppendPath(virtualNetworkGatewayName, true); + uri.AppendPath("/startSiteFailoverTest", false); + uri.AppendQuery("peeringLocation", peeringLocation, true); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + + internal HttpMessage CreateStartExpressRouteSiteFailoverSimulationRequest(string subscriptionId, string resourceGroupName, string virtualNetworkGatewayName, string peeringLocation) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Post; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Network/virtualNetworkGateways/", false); + uri.AppendPath(virtualNetworkGatewayName, true); + uri.AppendPath("/startSiteFailoverTest", false); + uri.AppendQuery("peeringLocation", peeringLocation, true); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + _userAgent.Apply(message); + return message; + } + + /// This operation starts failover simulation on the gateway for the specified peering location. + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + /// The name of the resource group. + /// The name of the virtual network gateway. + /// Peering location of the test. + /// The cancellation token to use. + /// , , or is null. + /// , or is an empty string, and was expected to be non-empty. + public async Task StartExpressRouteSiteFailoverSimulationAsync(string subscriptionId, string resourceGroupName, string virtualNetworkGatewayName, string peeringLocation, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(virtualNetworkGatewayName, nameof(virtualNetworkGatewayName)); + Argument.AssertNotNull(peeringLocation, nameof(peeringLocation)); + + using var message = CreateStartExpressRouteSiteFailoverSimulationRequest(subscriptionId, resourceGroupName, virtualNetworkGatewayName, peeringLocation); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + case 202: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + + /// This operation starts failover simulation on the gateway for the specified peering location. + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + /// The name of the resource group. + /// The name of the virtual network gateway. + /// Peering location of the test. + /// The cancellation token to use. + /// , , or is null. + /// , or is an empty string, and was expected to be non-empty. + public Response StartExpressRouteSiteFailoverSimulation(string subscriptionId, string resourceGroupName, string virtualNetworkGatewayName, string peeringLocation, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(virtualNetworkGatewayName, nameof(virtualNetworkGatewayName)); + Argument.AssertNotNull(peeringLocation, nameof(peeringLocation)); + + using var message = CreateStartExpressRouteSiteFailoverSimulationRequest(subscriptionId, resourceGroupName, virtualNetworkGatewayName, peeringLocation); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + case 202: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + + internal RequestUriBuilder CreateStopExpressRouteSiteFailoverSimulationRequestUri(string subscriptionId, string resourceGroupName, string virtualNetworkGatewayName, ExpressRouteFailoverStopApiContent content) + { + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Network/virtualNetworkGateways/", false); + uri.AppendPath(virtualNetworkGatewayName, true); + uri.AppendPath("/stopSiteFailoverTest", false); + uri.AppendQuery("api-version", _apiVersion, true); + return uri; + } + + internal HttpMessage CreateStopExpressRouteSiteFailoverSimulationRequest(string subscriptionId, string resourceGroupName, string virtualNetworkGatewayName, ExpressRouteFailoverStopApiContent content) + { + var message = _pipeline.CreateMessage(); + var request = message.Request; + request.Method = RequestMethod.Post; + var uri = new RawRequestUriBuilder(); + uri.Reset(_endpoint); + uri.AppendPath("/subscriptions/", false); + uri.AppendPath(subscriptionId, true); + uri.AppendPath("/resourceGroups/", false); + uri.AppendPath(resourceGroupName, true); + uri.AppendPath("/providers/Microsoft.Network/virtualNetworkGateways/", false); + uri.AppendPath(virtualNetworkGatewayName, true); + uri.AppendPath("/stopSiteFailoverTest", false); + uri.AppendQuery("api-version", _apiVersion, true); + request.Uri = uri; + request.Headers.Add("Accept", "application/json"); + request.Headers.Add("Content-Type", "application/json"); + var content0 = new Utf8JsonRequestContent(); + content0.JsonWriter.WriteObjectValue(content, ModelSerializationExtensions.WireOptions); + request.Content = content0; + _userAgent.Apply(message); + return message; + } + + /// This operation stops failover simulation on the gateway for the specified peering location. + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + /// The name of the resource group. + /// The name of the virtual network gateway. + /// Virtual network gateway stop simulation parameters supplied to stop failover simulation on gateway. + /// The cancellation token to use. + /// , , or is null. + /// , or is an empty string, and was expected to be non-empty. + public async Task StopExpressRouteSiteFailoverSimulationAsync(string subscriptionId, string resourceGroupName, string virtualNetworkGatewayName, ExpressRouteFailoverStopApiContent content, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(virtualNetworkGatewayName, nameof(virtualNetworkGatewayName)); + Argument.AssertNotNull(content, nameof(content)); + + using var message = CreateStopExpressRouteSiteFailoverSimulationRequest(subscriptionId, resourceGroupName, virtualNetworkGatewayName, content); + await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); + switch (message.Response.Status) + { + case 200: + case 202: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + + /// This operation stops failover simulation on the gateway for the specified peering location. + /// The subscription credentials which uniquely identify the Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. + /// The name of the resource group. + /// The name of the virtual network gateway. + /// Virtual network gateway stop simulation parameters supplied to stop failover simulation on gateway. + /// The cancellation token to use. + /// , , or is null. + /// , or is an empty string, and was expected to be non-empty. + public Response StopExpressRouteSiteFailoverSimulation(string subscriptionId, string resourceGroupName, string virtualNetworkGatewayName, ExpressRouteFailoverStopApiContent content, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); + Argument.AssertNotNullOrEmpty(virtualNetworkGatewayName, nameof(virtualNetworkGatewayName)); + Argument.AssertNotNull(content, nameof(content)); + + using var message = CreateStopExpressRouteSiteFailoverSimulationRequest(subscriptionId, resourceGroupName, virtualNetworkGatewayName, content); + _pipeline.Send(message, cancellationToken); + switch (message.Response.Status) + { + case 200: + case 202: + return message.Response; + default: + throw new RequestFailedException(message.Response); + } + } + internal RequestUriBuilder CreateGetVpnclientConnectionHealthRequestUri(string subscriptionId, string resourceGroupName, string virtualNetworkGatewayName) { var uri = new RawRequestUriBuilder(); diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualNetworkPeeringsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualNetworkPeeringsRestOperations.cs index 1c7bd7064bf7..f8f7403e573b 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualNetworkPeeringsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualNetworkPeeringsRestOperations.cs @@ -32,7 +32,7 @@ public VirtualNetworkPeeringsRestOperations(HttpPipeline pipeline, string applic { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2024-03-01"; + _apiVersion = apiVersion ?? "2024-05-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualNetworkTapsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualNetworkTapsRestOperations.cs index 17320f56c8b8..cae1038db6c2 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualNetworkTapsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualNetworkTapsRestOperations.cs @@ -32,7 +32,7 @@ public VirtualNetworkTapsRestOperations(HttpPipeline pipeline, string applicatio { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2024-03-01"; + _apiVersion = apiVersion ?? "2024-05-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualNetworksRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualNetworksRestOperations.cs index f9ef9afff5d1..126a611694e2 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualNetworksRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualNetworksRestOperations.cs @@ -32,7 +32,7 @@ public VirtualNetworksRestOperations(HttpPipeline pipeline, string applicationId { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2024-03-01"; + _apiVersion = apiVersion ?? "2024-05-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualRouterPeeringsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualRouterPeeringsRestOperations.cs index a7a10a6e2a45..6bf8e1863b9b 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualRouterPeeringsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualRouterPeeringsRestOperations.cs @@ -32,7 +32,7 @@ public VirtualRouterPeeringsRestOperations(HttpPipeline pipeline, string applica { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2024-03-01"; + _apiVersion = apiVersion ?? "2024-05-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualRoutersRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualRoutersRestOperations.cs index 10390b01cda4..152a6171e772 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualRoutersRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualRoutersRestOperations.cs @@ -32,7 +32,7 @@ public VirtualRoutersRestOperations(HttpPipeline pipeline, string applicationId, { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2024-03-01"; + _apiVersion = apiVersion ?? "2024-05-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualWansRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualWansRestOperations.cs index d4a9ac2cd371..5892a89fb106 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualWansRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VirtualWansRestOperations.cs @@ -32,7 +32,7 @@ public VirtualWansRestOperations(HttpPipeline pipeline, string applicationId, Ur { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2024-03-01"; + _apiVersion = apiVersion ?? "2024-05-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VpnConnectionsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VpnConnectionsRestOperations.cs index eaf9d3b9ce6a..9990d0846a47 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VpnConnectionsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VpnConnectionsRestOperations.cs @@ -32,7 +32,7 @@ public VpnConnectionsRestOperations(HttpPipeline pipeline, string applicationId, { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2024-03-01"; + _apiVersion = apiVersion ?? "2024-05-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VpnGatewaysRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VpnGatewaysRestOperations.cs index c52d53918c39..c4f73f3d085b 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VpnGatewaysRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VpnGatewaysRestOperations.cs @@ -32,7 +32,7 @@ public VpnGatewaysRestOperations(HttpPipeline pipeline, string applicationId, Ur { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2024-03-01"; + _apiVersion = apiVersion ?? "2024-05-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VpnLinkConnectionsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VpnLinkConnectionsRestOperations.cs index aaf9702b818d..a2d1819ef8a0 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VpnLinkConnectionsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VpnLinkConnectionsRestOperations.cs @@ -32,7 +32,7 @@ public VpnLinkConnectionsRestOperations(HttpPipeline pipeline, string applicatio { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2024-03-01"; + _apiVersion = apiVersion ?? "2024-05-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VpnServerConfigurationsAssociatedWithVirtualWanRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VpnServerConfigurationsAssociatedWithVirtualWanRestOperations.cs index ee2ceb2775c2..acc1104e065e 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VpnServerConfigurationsAssociatedWithVirtualWanRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VpnServerConfigurationsAssociatedWithVirtualWanRestOperations.cs @@ -30,7 +30,7 @@ public VpnServerConfigurationsAssociatedWithVirtualWanRestOperations(HttpPipelin { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2024-03-01"; + _apiVersion = apiVersion ?? "2024-05-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VpnServerConfigurationsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VpnServerConfigurationsRestOperations.cs index 7eb0d95642e3..a2a2755bfb7f 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VpnServerConfigurationsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VpnServerConfigurationsRestOperations.cs @@ -32,7 +32,7 @@ public VpnServerConfigurationsRestOperations(HttpPipeline pipeline, string appli { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2024-03-01"; + _apiVersion = apiVersion ?? "2024-05-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VpnSiteLinkConnectionsRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VpnSiteLinkConnectionsRestOperations.cs index 39e77dc140f4..f738282bbaa4 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VpnSiteLinkConnectionsRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VpnSiteLinkConnectionsRestOperations.cs @@ -31,7 +31,7 @@ public VpnSiteLinkConnectionsRestOperations(HttpPipeline pipeline, string applic { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2024-03-01"; + _apiVersion = apiVersion ?? "2024-05-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VpnSiteLinksRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VpnSiteLinksRestOperations.cs index 384ecab140ac..cf7620e63b50 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VpnSiteLinksRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VpnSiteLinksRestOperations.cs @@ -32,7 +32,7 @@ public VpnSiteLinksRestOperations(HttpPipeline pipeline, string applicationId, U { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2024-03-01"; + _apiVersion = apiVersion ?? "2024-05-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VpnSitesConfigurationRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VpnSitesConfigurationRestOperations.cs index 8a0bb8165b54..6a56e5bbce93 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VpnSitesConfigurationRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VpnSitesConfigurationRestOperations.cs @@ -31,7 +31,7 @@ public VpnSitesConfigurationRestOperations(HttpPipeline pipeline, string applica { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2024-03-01"; + _apiVersion = apiVersion ?? "2024-05-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VpnSitesRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VpnSitesRestOperations.cs index c25f28c89ef7..97fda3aa7920 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VpnSitesRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/VpnSitesRestOperations.cs @@ -32,7 +32,7 @@ public VpnSitesRestOperations(HttpPipeline pipeline, string applicationId, Uri e { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2024-03-01"; + _apiVersion = apiVersion ?? "2024-05-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/WebApplicationFirewallPoliciesRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/WebApplicationFirewallPoliciesRestOperations.cs index 2038934d6baa..c9f61ee2ea2f 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/WebApplicationFirewallPoliciesRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/WebApplicationFirewallPoliciesRestOperations.cs @@ -32,7 +32,7 @@ public WebApplicationFirewallPoliciesRestOperations(HttpPipeline pipeline, strin { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2024-03-01"; + _apiVersion = apiVersion ?? "2024-05-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/WebCategoriesRestOperations.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/WebCategoriesRestOperations.cs index be203631421c..44735b0009ed 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/WebCategoriesRestOperations.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RestOperations/WebCategoriesRestOperations.cs @@ -32,7 +32,7 @@ public WebCategoriesRestOperations(HttpPipeline pipeline, string applicationId, { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2024-03-01"; + _apiVersion = apiVersion ?? "2024-05-01"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RouteCollection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RouteCollection.cs index 9406eb02f315..2784d6dad3e4 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RouteCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RouteCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -113,7 +113,7 @@ public virtual async Task> CreateOrUpdateAsync(WaitU /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -162,7 +162,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, s /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -207,7 +207,7 @@ public virtual async Task> GetAsync(string routeName, Ca /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -252,7 +252,7 @@ public virtual Response Get(string routeName, CancellationToken c /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -282,7 +282,7 @@ public virtual AsyncPageable GetAllAsync(CancellationToken cancel /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -312,7 +312,7 @@ public virtual Pageable GetAll(CancellationToken cancellationToke /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -355,7 +355,7 @@ public virtual async Task> ExistsAsync(string routeName, Cancella /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -398,7 +398,7 @@ public virtual Response Exists(string routeName, CancellationToken cancell /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -443,7 +443,7 @@ public virtual async Task> GetIfExistsAsync(stri /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RouteFilterCollection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RouteFilterCollection.cs index d44b0758dc93..bc71a39f0fa4 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RouteFilterCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RouteFilterCollection.cs @@ -65,7 +65,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -114,7 +114,7 @@ public virtual async Task> CreateOrUpdateAsync /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -163,7 +163,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil waitUn /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -209,7 +209,7 @@ public virtual async Task> GetAsync(string routeFi /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -255,7 +255,7 @@ public virtual Response Get(string routeFilterName, string /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -285,7 +285,7 @@ public virtual AsyncPageable GetAllAsync(CancellationToken /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -315,7 +315,7 @@ public virtual Pageable GetAll(CancellationToken cancellati /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -359,7 +359,7 @@ public virtual async Task> ExistsAsync(string routeFilterName, st /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -403,7 +403,7 @@ public virtual Response Exists(string routeFilterName, string expand = nul /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -449,7 +449,7 @@ public virtual async Task> GetIfExistsAsyn /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RouteFilterResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RouteFilterResource.cs index b7ef3719006e..a051fa54ae8a 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RouteFilterResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RouteFilterResource.cs @@ -110,7 +110,7 @@ public virtual RouteFilterRuleCollection GetRouteFilterRules() /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -141,7 +141,7 @@ public virtual async Task> GetRouteFilterRuleA /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -172,7 +172,7 @@ public virtual Response GetRouteFilterRule(string ruleN /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -213,7 +213,7 @@ public virtual async Task> GetAsync(string expand /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -254,7 +254,7 @@ public virtual Response Get(string expand = null, Cancellat /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -296,7 +296,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -338,7 +338,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -380,7 +380,7 @@ public virtual async Task> UpdateAsync(NetworkTags /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -422,7 +422,7 @@ public virtual Response Update(NetworkTagsObject networkTag /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -484,7 +484,7 @@ public virtual async Task> AddTagAsync(string key, /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -546,7 +546,7 @@ public virtual Response AddTag(string key, string value, Ca /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -603,7 +603,7 @@ public virtual async Task> SetTagsAsync(IDictionar /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -660,7 +660,7 @@ public virtual Response SetTags(IDictionary /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -720,7 +720,7 @@ public virtual async Task> RemoveTagAsync(string k /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RouteFilterRuleCollection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RouteFilterRuleCollection.cs index 9a5ac1e48988..672d9d565df0 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RouteFilterRuleCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RouteFilterRuleCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -113,7 +113,7 @@ public virtual async Task> CreateOrUpdateA /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -162,7 +162,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil wa /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -207,7 +207,7 @@ public virtual async Task> GetAsync(string rul /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -252,7 +252,7 @@ public virtual Response Get(string ruleName, Cancellati /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -282,7 +282,7 @@ public virtual AsyncPageable GetAllAsync(CancellationTo /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -312,7 +312,7 @@ public virtual Pageable GetAll(CancellationToken cancel /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -355,7 +355,7 @@ public virtual async Task> ExistsAsync(string ruleName, Cancellat /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -398,7 +398,7 @@ public virtual Response Exists(string ruleName, CancellationToken cancella /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -443,7 +443,7 @@ public virtual async Task> GetIfExists /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RouteFilterRuleResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RouteFilterRuleResource.cs index 1e5a074fc787..37dd1b6d8f34 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RouteFilterRuleResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RouteFilterRuleResource.cs @@ -101,7 +101,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -141,7 +141,7 @@ public virtual async Task> GetAsync(Cancellati /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -181,7 +181,7 @@ public virtual Response Get(CancellationToken cancellat /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -223,7 +223,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -265,7 +265,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -311,7 +311,7 @@ public virtual async Task> UpdateAsync(Wai /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RouteMapCollection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RouteMapCollection.cs index d9445e544f6c..c3237d675094 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RouteMapCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RouteMapCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -113,7 +113,7 @@ public virtual async Task> CreateOrUpdateAsync(Wa /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -162,7 +162,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -207,7 +207,7 @@ public virtual async Task> GetAsync(string routeMapNa /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -252,7 +252,7 @@ public virtual Response Get(string routeMapName, CancellationT /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -282,7 +282,7 @@ public virtual AsyncPageable GetAllAsync(CancellationToken can /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -312,7 +312,7 @@ public virtual Pageable GetAll(CancellationToken cancellationT /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -355,7 +355,7 @@ public virtual async Task> ExistsAsync(string routeMapName, Cance /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -398,7 +398,7 @@ public virtual Response Exists(string routeMapName, CancellationToken canc /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -443,7 +443,7 @@ public virtual async Task> GetIfExistsAsync(s /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RouteMapResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RouteMapResource.cs index 44925e30d980..fd83e887f3ae 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RouteMapResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RouteMapResource.cs @@ -101,7 +101,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -141,7 +141,7 @@ public virtual async Task> GetAsync(CancellationToken /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -181,7 +181,7 @@ public virtual Response Get(CancellationToken cancellationToke /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -223,7 +223,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -265,7 +265,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -311,7 +311,7 @@ public virtual async Task> UpdateAsync(WaitUntil /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RouteResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RouteResource.cs index f7492c867fe5..c4bef315539d 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RouteResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RouteResource.cs @@ -101,7 +101,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -141,7 +141,7 @@ public virtual async Task> GetAsync(CancellationToken ca /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -181,7 +181,7 @@ public virtual Response Get(CancellationToken cancellationToken = /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -223,7 +223,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -265,7 +265,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -311,7 +311,7 @@ public virtual async Task> UpdateAsync(WaitUntil wai /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RouteTableCollection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RouteTableCollection.cs index b3e5ffd0b52f..13393e3562b8 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RouteTableCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RouteTableCollection.cs @@ -65,7 +65,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -114,7 +114,7 @@ public virtual async Task> CreateOrUpdateAsync( /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -163,7 +163,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil waitUnt /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -209,7 +209,7 @@ public virtual async Task> GetAsync(string routeTab /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -255,7 +255,7 @@ public virtual Response Get(string routeTableName, string ex /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -285,7 +285,7 @@ public virtual AsyncPageable GetAllAsync(CancellationToken c /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -315,7 +315,7 @@ public virtual Pageable GetAll(CancellationToken cancellatio /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -359,7 +359,7 @@ public virtual async Task> ExistsAsync(string routeTableName, str /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -403,7 +403,7 @@ public virtual Response Exists(string routeTableName, string expand = null /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -449,7 +449,7 @@ public virtual async Task> GetIfExistsAsync /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RouteTableResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RouteTableResource.cs index 587282d0c460..a5f312e6826c 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RouteTableResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RouteTableResource.cs @@ -110,7 +110,7 @@ public virtual RouteCollection GetRoutes() /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -141,7 +141,7 @@ public virtual async Task> GetRouteAsync(string routeNam /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -172,7 +172,7 @@ public virtual Response GetRoute(string routeName, CancellationTo /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -213,7 +213,7 @@ public virtual async Task> GetAsync(string expand = /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -254,7 +254,7 @@ public virtual Response Get(string expand = null, Cancellati /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -296,7 +296,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -338,7 +338,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -380,7 +380,7 @@ public virtual async Task> UpdateAsync(NetworkTagsO /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -422,7 +422,7 @@ public virtual Response Update(NetworkTagsObject networkTags /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -484,7 +484,7 @@ public virtual async Task> AddTagAsync(string key, /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -546,7 +546,7 @@ public virtual Response AddTag(string key, string value, Can /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -603,7 +603,7 @@ public virtual async Task> SetTagsAsync(IDictionary /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -660,7 +660,7 @@ public virtual Response SetTags(IDictionary /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -720,7 +720,7 @@ public virtual async Task> RemoveTagAsync(string ke /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RoutingIntentCollection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RoutingIntentCollection.cs index e27c40c7aac6..ca3269c5c3a9 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RoutingIntentCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RoutingIntentCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -113,7 +113,7 @@ public virtual async Task> CreateOrUpdateAsy /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -162,7 +162,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil wait /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -207,7 +207,7 @@ public virtual async Task> GetAsync(string routi /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -252,7 +252,7 @@ public virtual Response Get(string routingIntentName, Can /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -282,7 +282,7 @@ public virtual AsyncPageable GetAllAsync(CancellationToke /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -312,7 +312,7 @@ public virtual Pageable GetAll(CancellationToken cancella /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -355,7 +355,7 @@ public virtual async Task> ExistsAsync(string routingIntentName, /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -398,7 +398,7 @@ public virtual Response Exists(string routingIntentName, CancellationToken /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -443,7 +443,7 @@ public virtual async Task> GetIfExistsAs /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/RoutingIntentResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/RoutingIntentResource.cs index 832da60414fb..c654b58a4e88 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/RoutingIntentResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/RoutingIntentResource.cs @@ -101,7 +101,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -141,7 +141,7 @@ public virtual async Task> GetAsync(Cancellation /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -181,7 +181,7 @@ public virtual Response Get(CancellationToken cancellatio /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -223,7 +223,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -265,7 +265,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -311,7 +311,7 @@ public virtual async Task> UpdateAsync(WaitU /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/ScopeConnectionCollection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/ScopeConnectionCollection.cs index ae9b856e6d88..ce17ac6bedd8 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/ScopeConnectionCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/ScopeConnectionCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -115,7 +115,7 @@ public virtual async Task> CreateOrUpdateA /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -166,7 +166,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil wa /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -211,7 +211,7 @@ public virtual async Task> GetAsync(string sco /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -256,7 +256,7 @@ public virtual Response Get(string scopeConnectionName, /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -288,7 +288,7 @@ public virtual AsyncPageable GetAllAsync(int? top = nul /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -320,7 +320,7 @@ public virtual Pageable GetAll(int? top = null, string /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -363,7 +363,7 @@ public virtual async Task> ExistsAsync(string scopeConnectionName /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -406,7 +406,7 @@ public virtual Response Exists(string scopeConnectionName, CancellationTok /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -451,7 +451,7 @@ public virtual async Task> GetIfExists /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/ScopeConnectionResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/ScopeConnectionResource.cs index e76f9151ead2..143f897cda19 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/ScopeConnectionResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/ScopeConnectionResource.cs @@ -101,7 +101,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -141,7 +141,7 @@ public virtual async Task> GetAsync(Cancellati /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -181,7 +181,7 @@ public virtual Response Get(CancellationToken cancellat /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -225,7 +225,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -269,7 +269,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -317,7 +317,7 @@ public virtual async Task> UpdateAsync(Wai /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/SecurityAdminConfigurationCollection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/SecurityAdminConfigurationCollection.cs index 3b3d50a2c271..6c4dd41e27ce 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/SecurityAdminConfigurationCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/SecurityAdminConfigurationCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -115,7 +115,7 @@ public virtual async Task> Crea /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -166,7 +166,7 @@ public virtual ArmOperation CreateOrUpdate(W /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -211,7 +211,7 @@ public virtual async Task> GetAsync /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -256,7 +256,7 @@ public virtual Response Get(string configura /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -288,7 +288,7 @@ public virtual AsyncPageable GetAllAsync(int /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -320,7 +320,7 @@ public virtual Pageable GetAll(int? top = nu /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -363,7 +363,7 @@ public virtual async Task> ExistsAsync(string configurationName, /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -406,7 +406,7 @@ public virtual Response Exists(string configurationName, CancellationToken /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -451,7 +451,7 @@ public virtual async Task> /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/SecurityAdminConfigurationData.Serialization.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/SecurityAdminConfigurationData.Serialization.cs index 1d20e54f00b9..9079111a424f 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/SecurityAdminConfigurationData.Serialization.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/SecurityAdminConfigurationData.Serialization.cs @@ -59,6 +59,11 @@ protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWri } writer.WriteEndArray(); } + if (Optional.IsDefined(NetworkGroupAddressSpaceAggregationOption)) + { + writer.WritePropertyName("networkGroupAddressSpaceAggregationOption"u8); + writer.WriteStringValue(NetworkGroupAddressSpaceAggregationOption.Value.ToString()); + } if (options.Format != "W" && Optional.IsDefined(ProvisioningState)) { writer.WritePropertyName("provisioningState"u8); @@ -99,6 +104,7 @@ internal static SecurityAdminConfigurationData DeserializeSecurityAdminConfigura SystemData systemData = default; string description = default; IList applyOnNetworkIntentPolicyBasedServices = default; + AddressSpaceAggregationOption? networkGroupAddressSpaceAggregationOption = default; NetworkProvisioningState? provisioningState = default; Guid? resourceGuid = default; IDictionary serializedAdditionalRawData = default; @@ -166,6 +172,15 @@ internal static SecurityAdminConfigurationData DeserializeSecurityAdminConfigura applyOnNetworkIntentPolicyBasedServices = array; continue; } + if (property0.NameEquals("networkGroupAddressSpaceAggregationOption"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + networkGroupAddressSpaceAggregationOption = new AddressSpaceAggregationOption(property0.Value.GetString()); + continue; + } if (property0.NameEquals("provisioningState"u8)) { if (property0.Value.ValueKind == JsonValueKind.Null) @@ -200,6 +215,7 @@ internal static SecurityAdminConfigurationData DeserializeSecurityAdminConfigura systemData, description, applyOnNetworkIntentPolicyBasedServices ?? new ChangeTrackingList(), + networkGroupAddressSpaceAggregationOption, provisioningState, resourceGuid, etag, diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/SecurityAdminConfigurationData.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/SecurityAdminConfigurationData.cs index 004f6cd38df3..ef67a8225d11 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/SecurityAdminConfigurationData.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/SecurityAdminConfigurationData.cs @@ -64,14 +64,16 @@ public SecurityAdminConfigurationData() /// The systemData. /// A description of the security configuration. /// Enum list of network intent policy based services. + /// Determine update behavior for changes to network groups referenced within the rules in this configuration. /// The provisioning state of the resource. /// Unique identifier for this resource. /// A unique read-only string that changes whenever the resource is updated. /// Keeps track of any properties unknown to the library. - internal SecurityAdminConfigurationData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, string description, IList applyOnNetworkIntentPolicyBasedServices, NetworkProvisioningState? provisioningState, Guid? resourceGuid, ETag? etag, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData) + internal SecurityAdminConfigurationData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, string description, IList applyOnNetworkIntentPolicyBasedServices, AddressSpaceAggregationOption? networkGroupAddressSpaceAggregationOption, NetworkProvisioningState? provisioningState, Guid? resourceGuid, ETag? etag, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData) { Description = description; ApplyOnNetworkIntentPolicyBasedServices = applyOnNetworkIntentPolicyBasedServices; + NetworkGroupAddressSpaceAggregationOption = networkGroupAddressSpaceAggregationOption; ProvisioningState = provisioningState; ResourceGuid = resourceGuid; ETag = etag; @@ -82,6 +84,8 @@ internal SecurityAdminConfigurationData(ResourceIdentifier id, string name, Reso public string Description { get; set; } /// Enum list of network intent policy based services. public IList ApplyOnNetworkIntentPolicyBasedServices { get; } + /// Determine update behavior for changes to network groups referenced within the rules in this configuration. + public AddressSpaceAggregationOption? NetworkGroupAddressSpaceAggregationOption { get; set; } /// The provisioning state of the resource. public NetworkProvisioningState? ProvisioningState { get; } /// Unique identifier for this resource. diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/SecurityAdminConfigurationResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/SecurityAdminConfigurationResource.cs index e79c732b6da3..b27622da09b6 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/SecurityAdminConfigurationResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/SecurityAdminConfigurationResource.cs @@ -108,7 +108,7 @@ public virtual AdminRuleGroupCollection GetAdminRuleGroups() /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -139,7 +139,7 @@ public virtual async Task> GetAdminRuleGroupAsy /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -170,7 +170,7 @@ public virtual Response GetAdminRuleGroup(string ruleCol /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -210,7 +210,7 @@ public virtual async Task> GetAsync /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -250,7 +250,7 @@ public virtual Response Get(CancellationToke /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -293,7 +293,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, bool? f /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -336,7 +336,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, bool? force = null, Canc /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -384,7 +384,7 @@ public virtual async Task> Upda /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/SecurityPartnerProviderCollection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/SecurityPartnerProviderCollection.cs index 7db8be93ad3f..c722109c732f 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/SecurityPartnerProviderCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/SecurityPartnerProviderCollection.cs @@ -65,7 +65,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -114,7 +114,7 @@ public virtual async Task> CreateO /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -163,7 +163,7 @@ public virtual ArmOperation CreateOrUpdate(Wait /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -208,7 +208,7 @@ public virtual async Task> GetAsync(st /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -253,7 +253,7 @@ public virtual Response Get(string securityPart /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -283,7 +283,7 @@ public virtual AsyncPageable GetAllAsync(Cancel /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -313,7 +313,7 @@ public virtual Pageable GetAll(CancellationToke /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -356,7 +356,7 @@ public virtual async Task> ExistsAsync(string securityPartnerProv /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -399,7 +399,7 @@ public virtual Response Exists(string securityPartnerProviderName, Cancell /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -444,7 +444,7 @@ public virtual async Task> Get /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/SecurityPartnerProviderResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/SecurityPartnerProviderResource.cs index 75327b9243cd..822fe4f79321 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/SecurityPartnerProviderResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/SecurityPartnerProviderResource.cs @@ -103,7 +103,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -143,7 +143,7 @@ public virtual async Task> GetAsync(Ca /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -183,7 +183,7 @@ public virtual Response Get(CancellationToken c /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -225,7 +225,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -267,7 +267,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -309,7 +309,7 @@ public virtual async Task> UpdateAsync /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -351,7 +351,7 @@ public virtual Response Update(NetworkTagsObjec /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -413,7 +413,7 @@ public virtual async Task> AddTagAsync /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -475,7 +475,7 @@ public virtual Response AddTag(string key, stri /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -532,7 +532,7 @@ public virtual async Task> SetTagsAsyn /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -589,7 +589,7 @@ public virtual Response SetTags(IDictionary /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -649,7 +649,7 @@ public virtual async Task> RemoveTagAs /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/SecurityRuleCollection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/SecurityRuleCollection.cs index 841b312196e0..13a931526134 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/SecurityRuleCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/SecurityRuleCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -113,7 +113,7 @@ public virtual async Task> CreateOrUpdateAsyn /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -162,7 +162,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil waitU /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -207,7 +207,7 @@ public virtual async Task> GetAsync(string securi /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -252,7 +252,7 @@ public virtual Response Get(string securityRuleName, Cance /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -282,7 +282,7 @@ public virtual AsyncPageable GetAllAsync(CancellationToken /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -312,7 +312,7 @@ public virtual Pageable GetAll(CancellationToken cancellat /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -355,7 +355,7 @@ public virtual async Task> ExistsAsync(string securityRuleName, C /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -398,7 +398,7 @@ public virtual Response Exists(string securityRuleName, CancellationToken /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -443,7 +443,7 @@ public virtual async Task> GetIfExistsAsy /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/SecurityRuleResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/SecurityRuleResource.cs index 4941f05c7e51..53e5c6032d1f 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/SecurityRuleResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/SecurityRuleResource.cs @@ -101,7 +101,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -141,7 +141,7 @@ public virtual async Task> GetAsync(CancellationT /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -181,7 +181,7 @@ public virtual Response Get(CancellationToken cancellation /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -223,7 +223,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -265,7 +265,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -311,7 +311,7 @@ public virtual async Task> UpdateAsync(WaitUn /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/ServiceEndpointPolicyCollection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/ServiceEndpointPolicyCollection.cs index c84fe83a143e..ba064be556c7 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/ServiceEndpointPolicyCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/ServiceEndpointPolicyCollection.cs @@ -65,7 +65,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -114,7 +114,7 @@ public virtual async Task> CreateOrU /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -163,7 +163,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUn /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -209,7 +209,7 @@ public virtual async Task> GetAsync(stri /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -255,7 +255,7 @@ public virtual Response Get(string serviceEndpoin /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -285,7 +285,7 @@ public virtual AsyncPageable GetAllAsync(Cancella /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -315,7 +315,7 @@ public virtual Pageable GetAll(CancellationToken /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -359,7 +359,7 @@ public virtual async Task> ExistsAsync(string serviceEndpointPoli /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -403,7 +403,7 @@ public virtual Response Exists(string serviceEndpointPolicyName, string ex /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -449,7 +449,7 @@ public virtual async Task> GetIf /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/ServiceEndpointPolicyDefinitionCollection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/ServiceEndpointPolicyDefinitionCollection.cs index b1a9c33fe00c..e494bd315474 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/ServiceEndpointPolicyDefinitionCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/ServiceEndpointPolicyDefinitionCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -113,7 +113,7 @@ public virtual async Task> /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -162,7 +162,7 @@ public virtual ArmOperation CreateOrUpd /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -207,7 +207,7 @@ public virtual async Task> Get /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -252,7 +252,7 @@ public virtual Response Get(string serv /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -282,7 +282,7 @@ public virtual AsyncPageable GetAllAsyn /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -312,7 +312,7 @@ public virtual Pageable GetAll(Cancella /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -355,7 +355,7 @@ public virtual async Task> ExistsAsync(string serviceEndpointPoli /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -398,7 +398,7 @@ public virtual Response Exists(string serviceEndpointPolicyDefinitionName, /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -443,7 +443,7 @@ public virtual async Task /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/ServiceEndpointPolicyDefinitionResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/ServiceEndpointPolicyDefinitionResource.cs index 09b1c4d7a589..f26fc273b02b 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/ServiceEndpointPolicyDefinitionResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/ServiceEndpointPolicyDefinitionResource.cs @@ -101,7 +101,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -141,7 +141,7 @@ public virtual async Task> Get /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -181,7 +181,7 @@ public virtual Response Get(Cancellatio /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -223,7 +223,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -265,7 +265,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -311,7 +311,7 @@ public virtual async Task> /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/ServiceEndpointPolicyResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/ServiceEndpointPolicyResource.cs index ce6e0f3a2ee3..f23a4e6eb297 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/ServiceEndpointPolicyResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/ServiceEndpointPolicyResource.cs @@ -110,7 +110,7 @@ public virtual ServiceEndpointPolicyDefinitionCollection GetServiceEndpointPolic /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -141,7 +141,7 @@ public virtual async Task> Get /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -172,7 +172,7 @@ public virtual Response GetServiceEndpo /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -213,7 +213,7 @@ public virtual async Task> GetAsync(stri /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -254,7 +254,7 @@ public virtual Response Get(string expand = null, /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -296,7 +296,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -338,7 +338,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -380,7 +380,7 @@ public virtual async Task> UpdateAsync(N /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -422,7 +422,7 @@ public virtual Response Update(NetworkTagsObject /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -484,7 +484,7 @@ public virtual async Task> AddTagAsync(s /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -546,7 +546,7 @@ public virtual Response AddTag(string key, string /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -603,7 +603,7 @@ public virtual async Task> SetTagsAsync( /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -660,7 +660,7 @@ public virtual Response SetTags(IDictionary /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -720,7 +720,7 @@ public virtual async Task> RemoveTagAsyn /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/StaticCidrCollection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/StaticCidrCollection.cs new file mode 100644 index 000000000000..5c097280d5fe --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/StaticCidrCollection.cs @@ -0,0 +1,507 @@ +// 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.Network +{ + /// + /// 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 GetStaticCidrs method from an instance of . + /// + public partial class StaticCidrCollection : ArmCollection, IEnumerable, IAsyncEnumerable + { + private readonly ClientDiagnostics _staticCidrClientDiagnostics; + private readonly StaticCidrsRestOperations _staticCidrRestClient; + + /// Initializes a new instance of the class for mocking. + protected StaticCidrCollection() + { + } + + /// 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 StaticCidrCollection(ArmClient client, ResourceIdentifier id) : base(client, id) + { + _staticCidrClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Network", StaticCidrResource.ResourceType.Namespace, Diagnostics); + TryGetApiVersion(StaticCidrResource.ResourceType, out string staticCidrApiVersion); + _staticCidrRestClient = new StaticCidrsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, staticCidrApiVersion); +#if DEBUG + ValidateResourceId(Id); +#endif + } + + internal static void ValidateResourceId(ResourceIdentifier id) + { + if (id.ResourceType != IpamPoolResource.ResourceType) + throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, IpamPoolResource.ResourceType), nameof(id)); + } + + /// + /// Creates/Updates the Static CIDR resource. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/ipamPools/{poolName}/staticCidrs/{staticCidrName} + /// + /// + /// Operation Id + /// StaticCidrs_Create + /// + /// + /// Default Api Version + /// 2024-05-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. + /// Static Cidr allocation name. + /// StaticCidr resource object to create/update. + /// 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 staticCidrName, StaticCidrData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(staticCidrName, nameof(staticCidrName)); + Argument.AssertNotNull(data, nameof(data)); + + using var scope = _staticCidrClientDiagnostics.CreateScope("StaticCidrCollection.CreateOrUpdate"); + scope.Start(); + try + { + var response = await _staticCidrRestClient.CreateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, staticCidrName, data, cancellationToken).ConfigureAwait(false); + var uri = _staticCidrRestClient.CreateCreateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, staticCidrName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), "None", null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new NetworkArmOperation(Response.FromValue(new StaticCidrResource(Client, response), response.GetRawResponse()), rehydrationToken); + if (waitUntil == WaitUntil.Completed) + await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Creates/Updates the Static CIDR resource. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/ipamPools/{poolName}/staticCidrs/{staticCidrName} + /// + /// + /// Operation Id + /// StaticCidrs_Create + /// + /// + /// Default Api Version + /// 2024-05-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. + /// Static Cidr allocation name. + /// StaticCidr resource object to create/update. + /// 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 staticCidrName, StaticCidrData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(staticCidrName, nameof(staticCidrName)); + Argument.AssertNotNull(data, nameof(data)); + + using var scope = _staticCidrClientDiagnostics.CreateScope("StaticCidrCollection.CreateOrUpdate"); + scope.Start(); + try + { + var response = _staticCidrRestClient.Create(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, staticCidrName, data, cancellationToken); + var uri = _staticCidrRestClient.CreateCreateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, staticCidrName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), "None", null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new NetworkArmOperation(Response.FromValue(new StaticCidrResource(Client, response), response.GetRawResponse()), rehydrationToken); + if (waitUntil == WaitUntil.Completed) + operation.WaitForCompletion(cancellationToken); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Gets the specific Static CIDR resource. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/ipamPools/{poolName}/staticCidrs/{staticCidrName} + /// + /// + /// Operation Id + /// StaticCidrs_Get + /// + /// + /// Default Api Version + /// 2024-05-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// StaticCidr resource name to retrieve. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual async Task> GetAsync(string staticCidrName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(staticCidrName, nameof(staticCidrName)); + + using var scope = _staticCidrClientDiagnostics.CreateScope("StaticCidrCollection.Get"); + scope.Start(); + try + { + var response = await _staticCidrRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, staticCidrName, cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw new RequestFailedException(response.GetRawResponse()); + return Response.FromValue(new StaticCidrResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Gets the specific Static CIDR resource. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/ipamPools/{poolName}/staticCidrs/{staticCidrName} + /// + /// + /// Operation Id + /// StaticCidrs_Get + /// + /// + /// Default Api Version + /// 2024-05-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// StaticCidr resource name to retrieve. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual Response Get(string staticCidrName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(staticCidrName, nameof(staticCidrName)); + + using var scope = _staticCidrClientDiagnostics.CreateScope("StaticCidrCollection.Get"); + scope.Start(); + try + { + var response = _staticCidrRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, staticCidrName, cancellationToken); + if (response.Value == null) + throw new RequestFailedException(response.GetRawResponse()); + return Response.FromValue(new StaticCidrResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Gets list of Static CIDR resources at Network Manager level. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/ipamPools/{poolName}/staticCidrs + /// + /// + /// Operation Id + /// StaticCidrs_List + /// + /// + /// Default Api Version + /// 2024-05-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// Optional skip token. + /// Optional num entries to skip. + /// Optional num entries to show. + /// Optional key by which to sort. + /// Optional sort value for pagination. + /// The cancellation token to use. + /// An async collection of that may take multiple service requests to iterate over. + public virtual AsyncPageable GetAllAsync(string skipToken = null, int? skip = null, int? top = null, string sortKey = null, string sortValue = null, CancellationToken cancellationToken = default) + { + HttpMessage FirstPageRequest(int? pageSizeHint) => _staticCidrRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, skipToken, skip, top, sortKey, sortValue); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _staticCidrRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, skipToken, skip, top, sortKey, sortValue); + return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new StaticCidrResource(Client, StaticCidrData.DeserializeStaticCidrData(e)), _staticCidrClientDiagnostics, Pipeline, "StaticCidrCollection.GetAll", "value", "nextLink", cancellationToken); + } + + /// + /// Gets list of Static CIDR resources at Network Manager level. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/ipamPools/{poolName}/staticCidrs + /// + /// + /// Operation Id + /// StaticCidrs_List + /// + /// + /// Default Api Version + /// 2024-05-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// Optional skip token. + /// Optional num entries to skip. + /// Optional num entries to show. + /// Optional key by which to sort. + /// Optional sort value for pagination. + /// The cancellation token to use. + /// A collection of that may take multiple service requests to iterate over. + public virtual Pageable GetAll(string skipToken = null, int? skip = null, int? top = null, string sortKey = null, string sortValue = null, CancellationToken cancellationToken = default) + { + HttpMessage FirstPageRequest(int? pageSizeHint) => _staticCidrRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, skipToken, skip, top, sortKey, sortValue); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _staticCidrRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, skipToken, skip, top, sortKey, sortValue); + return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new StaticCidrResource(Client, StaticCidrData.DeserializeStaticCidrData(e)), _staticCidrClientDiagnostics, Pipeline, "StaticCidrCollection.GetAll", "value", "nextLink", cancellationToken); + } + + /// + /// Checks to see if the resource exists in azure. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/ipamPools/{poolName}/staticCidrs/{staticCidrName} + /// + /// + /// Operation Id + /// StaticCidrs_Get + /// + /// + /// Default Api Version + /// 2024-05-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// StaticCidr resource name to retrieve. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual async Task> ExistsAsync(string staticCidrName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(staticCidrName, nameof(staticCidrName)); + + using var scope = _staticCidrClientDiagnostics.CreateScope("StaticCidrCollection.Exists"); + scope.Start(); + try + { + var response = await _staticCidrRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, staticCidrName, 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.Network/networkManagers/{networkManagerName}/ipamPools/{poolName}/staticCidrs/{staticCidrName} + /// + /// + /// Operation Id + /// StaticCidrs_Get + /// + /// + /// Default Api Version + /// 2024-05-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// StaticCidr resource name to retrieve. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual Response Exists(string staticCidrName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(staticCidrName, nameof(staticCidrName)); + + using var scope = _staticCidrClientDiagnostics.CreateScope("StaticCidrCollection.Exists"); + scope.Start(); + try + { + var response = _staticCidrRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, staticCidrName, 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.Network/networkManagers/{networkManagerName}/ipamPools/{poolName}/staticCidrs/{staticCidrName} + /// + /// + /// Operation Id + /// StaticCidrs_Get + /// + /// + /// Default Api Version + /// 2024-05-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// StaticCidr resource name to retrieve. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual async Task> GetIfExistsAsync(string staticCidrName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(staticCidrName, nameof(staticCidrName)); + + using var scope = _staticCidrClientDiagnostics.CreateScope("StaticCidrCollection.GetIfExists"); + scope.Start(); + try + { + var response = await _staticCidrRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, staticCidrName, cancellationToken: cancellationToken).ConfigureAwait(false); + if (response.Value == null) + return new NoValueResponse(response.GetRawResponse()); + return Response.FromValue(new StaticCidrResource(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.Network/networkManagers/{networkManagerName}/ipamPools/{poolName}/staticCidrs/{staticCidrName} + /// + /// + /// Operation Id + /// StaticCidrs_Get + /// + /// + /// Default Api Version + /// 2024-05-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// StaticCidr resource name to retrieve. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual NullableResponse GetIfExists(string staticCidrName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(staticCidrName, nameof(staticCidrName)); + + using var scope = _staticCidrClientDiagnostics.CreateScope("StaticCidrCollection.GetIfExists"); + scope.Start(); + try + { + var response = _staticCidrRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, staticCidrName, cancellationToken: cancellationToken); + if (response.Value == null) + return new NoValueResponse(response.GetRawResponse()); + return Response.FromValue(new StaticCidrResource(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/network/Azure.ResourceManager.Network/src/Generated/StaticCidrData.Serialization.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/StaticCidrData.Serialization.cs new file mode 100644 index 000000000000..4019bfef50f9 --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/StaticCidrData.Serialization.cs @@ -0,0 +1,167 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; +using Azure.ResourceManager.Models; +using Azure.ResourceManager.Network.Models; + +namespace Azure.ResourceManager.Network +{ + public partial class StaticCidrData : 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(StaticCidrData)} does not support writing '{format}' format."); + } + + base.JsonModelWriteCore(writer, options); + if (Optional.IsDefined(Properties)) + { + writer.WritePropertyName("properties"u8); + writer.WriteObjectValue(Properties, options); + } + if (options.Format != "W" && Optional.IsDefined(CommonResourceType)) + { + writer.WritePropertyName("type"u8); + writer.WriteStringValue(CommonResourceType); + } + } + + StaticCidrData 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(StaticCidrData)} does not support reading '{format}' format."); + } + + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeStaticCidrData(document.RootElement, options); + } + + internal static StaticCidrData DeserializeStaticCidrData(JsonElement element, ModelReaderWriterOptions options = null) + { + options ??= ModelSerializationExtensions.WireOptions; + + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + StaticCidrProperties properties = default; + string type = default; + ResourceIdentifier id = default; + string name = default; + ResourceType type0 = default; + SystemData systemData = default; + IDictionary serializedAdditionalRawData = default; + Dictionary rawDataDictionary = new Dictionary(); + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("properties"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + properties = StaticCidrProperties.DeserializeStaticCidrProperties(property.Value, options); + continue; + } + if (property.NameEquals("type"u8)) + { + type = property.Value.GetString(); + continue; + } + if (property.NameEquals("id"u8)) + { + id = new ResourceIdentifier(property.Value.GetString()); + continue; + } + if (property.NameEquals("name"u8)) + { + name = property.Value.GetString(); + continue; + } + if (property.NameEquals("type"u8)) + { + type0 = new ResourceType(property.Value.GetString()); + continue; + } + if (property.NameEquals("systemData"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + systemData = JsonSerializer.Deserialize(property.Value.GetRawText()); + continue; + } + if (options.Format != "W") + { + rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + } + } + serializedAdditionalRawData = rawDataDictionary; + return new StaticCidrData( + id, + name, + type0, + systemData, + properties, + type, + 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(StaticCidrData)} does not support writing '{options.Format}' format."); + } + } + + StaticCidrData 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 DeserializeStaticCidrData(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(StaticCidrData)} does not support reading '{options.Format}' format."); + } + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/StaticCidrData.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/StaticCidrData.cs new file mode 100644 index 000000000000..e58d945fc2c7 --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/StaticCidrData.cs @@ -0,0 +1,79 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using Azure.Core; +using Azure.ResourceManager.Models; +using Azure.ResourceManager.Network.Models; + +namespace Azure.ResourceManager.Network +{ + /// + /// A class representing the StaticCidr data model. + /// Instance of StaticCidr resource. + /// + public partial class StaticCidrData : 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 StaticCidrData() + { + } + + /// Initializes a new instance of . + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// Properties of static CIDR resource. + /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts". + /// Keeps track of any properties unknown to the library. + internal StaticCidrData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, StaticCidrProperties properties, string commonResourceType, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData) + { + Properties = properties; + CommonResourceType = commonResourceType; + _serializedAdditionalRawData = serializedAdditionalRawData; + } + + /// Properties of static CIDR resource. + public StaticCidrProperties Properties { get; set; } + /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts". + public string CommonResourceType { get; } + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/StaticCidrResource.Serialization.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/StaticCidrResource.Serialization.cs new file mode 100644 index 000000000000..669c578defd8 --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/StaticCidrResource.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.Network +{ + public partial class StaticCidrResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) => ((IJsonModel)Data).Write(writer, options); + + StaticCidrData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => ((IJsonModel)Data).Create(ref reader, options); + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => ModelReaderWriter.Write(Data, options); + + StaticCidrData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => ModelReaderWriter.Read(data, options); + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => ((IPersistableModel)Data).GetFormatFromOptions(options); + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/StaticCidrResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/StaticCidrResource.cs new file mode 100644 index 000000000000..f683142ee822 --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/StaticCidrResource.cs @@ -0,0 +1,352 @@ +// 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.Network +{ + /// + /// A Class representing a StaticCidr 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 GetStaticCidrResource method. + /// Otherwise you can get one from its parent resource using the GetStaticCidr method. + /// + public partial class StaticCidrResource : ArmResource + { + /// Generate the resource identifier of a instance. + /// The subscriptionId. + /// The resourceGroupName. + /// The networkManagerName. + /// The poolName. + /// The staticCidrName. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string networkManagerName, string poolName, string staticCidrName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/ipamPools/{poolName}/staticCidrs/{staticCidrName}"; + return new ResourceIdentifier(resourceId); + } + + private readonly ClientDiagnostics _staticCidrClientDiagnostics; + private readonly StaticCidrsRestOperations _staticCidrRestClient; + private readonly StaticCidrData _data; + + /// Gets the resource type for the operations. + public static readonly ResourceType ResourceType = "Microsoft.Network/networkManagers/ipamPools/staticCidrs"; + + /// Initializes a new instance of the class for mocking. + protected StaticCidrResource() + { + } + + /// Initializes a new instance of the class. + /// The client parameters to use in these operations. + /// The resource that is the target of operations. + internal StaticCidrResource(ArmClient client, StaticCidrData 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 StaticCidrResource(ArmClient client, ResourceIdentifier id) : base(client, id) + { + _staticCidrClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Network", ResourceType.Namespace, Diagnostics); + TryGetApiVersion(ResourceType, out string staticCidrApiVersion); + _staticCidrRestClient = new StaticCidrsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, staticCidrApiVersion); +#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 StaticCidrData Data + { + get + { + if (!HasData) + throw new InvalidOperationException("The current instance does not have data, you must call Get first."); + return _data; + } + } + + internal static void ValidateResourceId(ResourceIdentifier id) + { + if (id.ResourceType != ResourceType) + throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, ResourceType), nameof(id)); + } + + /// + /// Gets the specific Static CIDR resource. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/ipamPools/{poolName}/staticCidrs/{staticCidrName} + /// + /// + /// Operation Id + /// StaticCidrs_Get + /// + /// + /// Default Api Version + /// 2024-05-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// The cancellation token to use. + public virtual async Task> GetAsync(CancellationToken cancellationToken = default) + { + using var scope = _staticCidrClientDiagnostics.CreateScope("StaticCidrResource.Get"); + scope.Start(); + try + { + var response = await _staticCidrRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw new RequestFailedException(response.GetRawResponse()); + return Response.FromValue(new StaticCidrResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Gets the specific Static CIDR resource. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/ipamPools/{poolName}/staticCidrs/{staticCidrName} + /// + /// + /// Operation Id + /// StaticCidrs_Get + /// + /// + /// Default Api Version + /// 2024-05-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// The cancellation token to use. + public virtual Response Get(CancellationToken cancellationToken = default) + { + using var scope = _staticCidrClientDiagnostics.CreateScope("StaticCidrResource.Get"); + scope.Start(); + try + { + var response = _staticCidrRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken); + if (response.Value == null) + throw new RequestFailedException(response.GetRawResponse()); + return Response.FromValue(new StaticCidrResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Delete the Static CIDR resource. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/ipamPools/{poolName}/staticCidrs/{staticCidrName} + /// + /// + /// Operation Id + /// StaticCidrs_Delete + /// + /// + /// Default Api Version + /// 2024-05-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 = _staticCidrClientDiagnostics.CreateScope("StaticCidrResource.Delete"); + scope.Start(); + try + { + var response = await _staticCidrRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + var operation = new NetworkArmOperation(_staticCidrClientDiagnostics, Pipeline, _staticCidrRestClient.CreateDeleteRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name).Request, response, OperationFinalStateVia.Location); + if (waitUntil == WaitUntil.Completed) + await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Delete the Static CIDR resource. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/ipamPools/{poolName}/staticCidrs/{staticCidrName} + /// + /// + /// Operation Id + /// StaticCidrs_Delete + /// + /// + /// Default Api Version + /// 2024-05-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 = _staticCidrClientDiagnostics.CreateScope("StaticCidrResource.Delete"); + scope.Start(); + try + { + var response = _staticCidrRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken); + var operation = new NetworkArmOperation(_staticCidrClientDiagnostics, Pipeline, _staticCidrRestClient.CreateDeleteRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name).Request, response, OperationFinalStateVia.Location); + if (waitUntil == WaitUntil.Completed) + operation.WaitForCompletionResponse(cancellationToken); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Creates/Updates the Static CIDR resource. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/ipamPools/{poolName}/staticCidrs/{staticCidrName} + /// + /// + /// Operation Id + /// StaticCidrs_Create + /// + /// + /// Default Api Version + /// 2024-05-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. + /// StaticCidr resource object to create/update. + /// The cancellation token to use. + /// is null. + public virtual async Task> UpdateAsync(WaitUntil waitUntil, StaticCidrData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(data, nameof(data)); + + using var scope = _staticCidrClientDiagnostics.CreateScope("StaticCidrResource.Update"); + scope.Start(); + try + { + var response = await _staticCidrRestClient.CreateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, cancellationToken).ConfigureAwait(false); + var uri = _staticCidrRestClient.CreateCreateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, 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 NetworkArmOperation(Response.FromValue(new StaticCidrResource(Client, response), response.GetRawResponse()), rehydrationToken); + if (waitUntil == WaitUntil.Completed) + await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Creates/Updates the Static CIDR resource. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/ipamPools/{poolName}/staticCidrs/{staticCidrName} + /// + /// + /// Operation Id + /// StaticCidrs_Create + /// + /// + /// Default Api Version + /// 2024-05-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. + /// StaticCidr resource object to create/update. + /// The cancellation token to use. + /// is null. + public virtual ArmOperation Update(WaitUntil waitUntil, StaticCidrData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(data, nameof(data)); + + using var scope = _staticCidrClientDiagnostics.CreateScope("StaticCidrResource.Update"); + scope.Start(); + try + { + var response = _staticCidrRestClient.Create(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, data, cancellationToken); + var uri = _staticCidrRestClient.CreateCreateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, 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 NetworkArmOperation(Response.FromValue(new StaticCidrResource(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/network/Azure.ResourceManager.Network/src/Generated/SubnetCollection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/SubnetCollection.cs index 01a8e970f2a0..56dfaed9cabb 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/SubnetCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/SubnetCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -113,7 +113,7 @@ public virtual async Task> CreateOrUpdateAsync(Wait /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -162,7 +162,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -208,7 +208,7 @@ public virtual async Task> GetAsync(string subnetName, /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -254,7 +254,7 @@ public virtual Response Get(string subnetName, string expand = n /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -284,7 +284,7 @@ public virtual AsyncPageable GetAllAsync(CancellationToken cance /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -314,7 +314,7 @@ public virtual Pageable GetAll(CancellationToken cancellationTok /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -358,7 +358,7 @@ public virtual async Task> ExistsAsync(string subnetName, string /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -402,7 +402,7 @@ public virtual Response Exists(string subnetName, string expand = null, Ca /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -448,7 +448,7 @@ public virtual async Task> GetIfExistsAsync(str /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/SubnetData.Serialization.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/SubnetData.Serialization.cs index a3bd19f92bb0..8f8ccdcf1792 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/SubnetData.Serialization.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/SubnetData.Serialization.cs @@ -204,6 +204,16 @@ protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWri writer.WritePropertyName("defaultOutboundAccess"u8); writer.WriteBooleanValue(DefaultOutboundAccess.Value); } + if (Optional.IsCollectionDefined(IpamPoolPrefixAllocations)) + { + writer.WritePropertyName("ipamPoolPrefixAllocations"u8); + writer.WriteStartArray(); + foreach (var item in IpamPoolPrefixAllocations) + { + writer.WriteObjectValue(item, options); + } + writer.WriteEndArray(); + } writer.WriteEndObject(); } @@ -252,6 +262,7 @@ internal static SubnetData DeserializeSubnetData(JsonElement element, ModelReade IList applicationGatewayIPConfigurations = default; SharingScope? sharingScope = default; bool? defaultOutboundAccess = default; + IList ipamPoolPrefixAllocations = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) @@ -533,6 +544,20 @@ internal static SubnetData DeserializeSubnetData(JsonElement element, ModelReade defaultOutboundAccess = property0.Value.GetBoolean(); continue; } + if (property0.NameEquals("ipamPoolPrefixAllocations"u8)) + { + if (property0.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + List array = new List(); + foreach (var item in property0.Value.EnumerateArray()) + { + array.Add(IpamPoolPrefixAllocation.DeserializeIpamPoolPrefixAllocation(item, options)); + } + ipamPoolPrefixAllocations = array; + continue; + } } continue; } @@ -568,7 +593,8 @@ internal static SubnetData DeserializeSubnetData(JsonElement element, ModelReade privateLinkServiceNetworkPolicies, applicationGatewayIPConfigurations ?? new ChangeTrackingList(), sharingScope, - defaultOutboundAccess); + defaultOutboundAccess, + ipamPoolPrefixAllocations ?? new ChangeTrackingList()); } BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/SubnetData.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/SubnetData.cs index b95d0f2e028a..49cdd536f107 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/SubnetData.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/SubnetData.cs @@ -33,6 +33,7 @@ public SubnetData() ServiceAssociationLinks = new ChangeTrackingList(); Delegations = new ChangeTrackingList(); ApplicationGatewayIPConfigurations = new ChangeTrackingList(); + IpamPoolPrefixAllocations = new ChangeTrackingList(); } /// Initializes a new instance of . @@ -62,7 +63,8 @@ public SubnetData() /// Application gateway IP configurations of virtual network resource. /// Set this property to Tenant to allow sharing subnet with other subscriptions in your AAD tenant. This property can only be set if defaultOutboundAccess is set to false, both properties can only be set if subnet is empty. /// Set this property to false to disable default outbound connectivity for all VMs in the subnet. This property can only be set at the time of subnet creation and cannot be updated for an existing subnet. - internal SubnetData(ResourceIdentifier id, string name, ResourceType? resourceType, IDictionary serializedAdditionalRawData, ETag? etag, string addressPrefix, IList addressPrefixes, NetworkSecurityGroupData networkSecurityGroup, RouteTableData routeTable, WritableSubResource natGateway, IList serviceEndpoints, IList serviceEndpointPolicies, IReadOnlyList privateEndpoints, IReadOnlyList ipConfigurations, IReadOnlyList ipConfigurationProfiles, IList ipAllocations, IReadOnlyList resourceNavigationLinks, IReadOnlyList serviceAssociationLinks, IList delegations, string purpose, NetworkProvisioningState? provisioningState, VirtualNetworkPrivateEndpointNetworkPolicy? privateEndpointNetworkPolicy, VirtualNetworkPrivateLinkServiceNetworkPolicy? privateLinkServiceNetworkPolicy, IList applicationGatewayIPConfigurations, SharingScope? sharingScope, bool? defaultOutboundAccess) : base(id, name, resourceType, serializedAdditionalRawData) + /// A list of IPAM Pools for allocating IP address prefixes. + internal SubnetData(ResourceIdentifier id, string name, ResourceType? resourceType, IDictionary serializedAdditionalRawData, ETag? etag, string addressPrefix, IList addressPrefixes, NetworkSecurityGroupData networkSecurityGroup, RouteTableData routeTable, WritableSubResource natGateway, IList serviceEndpoints, IList serviceEndpointPolicies, IReadOnlyList privateEndpoints, IReadOnlyList ipConfigurations, IReadOnlyList ipConfigurationProfiles, IList ipAllocations, IReadOnlyList resourceNavigationLinks, IReadOnlyList serviceAssociationLinks, IList delegations, string purpose, NetworkProvisioningState? provisioningState, VirtualNetworkPrivateEndpointNetworkPolicy? privateEndpointNetworkPolicy, VirtualNetworkPrivateLinkServiceNetworkPolicy? privateLinkServiceNetworkPolicy, IList applicationGatewayIPConfigurations, SharingScope? sharingScope, bool? defaultOutboundAccess, IList ipamPoolPrefixAllocations) : base(id, name, resourceType, serializedAdditionalRawData) { ETag = etag; AddressPrefix = addressPrefix; @@ -86,6 +88,7 @@ internal SubnetData(ResourceIdentifier id, string name, ResourceType? resourceTy ApplicationGatewayIPConfigurations = applicationGatewayIPConfigurations; SharingScope = sharingScope; DefaultOutboundAccess = defaultOutboundAccess; + IpamPoolPrefixAllocations = ipamPoolPrefixAllocations; } /// A unique read-only string that changes whenever the resource is updated. @@ -144,5 +147,7 @@ public ResourceIdentifier NatGatewayId public SharingScope? SharingScope { get; set; } /// Set this property to false to disable default outbound connectivity for all VMs in the subnet. This property can only be set at the time of subnet creation and cannot be updated for an existing subnet. public bool? DefaultOutboundAccess { get; set; } + /// A list of IPAM Pools for allocating IP address prefixes. + public IList IpamPoolPrefixAllocations { get; } } } diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/SubnetResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/SubnetResource.cs index 237e759f31b1..2c4d4158a2d8 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/SubnetResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/SubnetResource.cs @@ -111,7 +111,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -152,7 +152,7 @@ public virtual async Task> GetAsync(string expand = nul /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -193,7 +193,7 @@ public virtual Response Get(string expand = null, CancellationTo /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -235,7 +235,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -277,7 +277,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -323,7 +323,7 @@ public virtual async Task> UpdateAsync(WaitUntil wa /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -369,7 +369,7 @@ public virtual ArmOperation Update(WaitUntil waitUntil, SubnetDa /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -415,7 +415,7 @@ public virtual async Task PrepareNetworkPoliciesAsync(WaitUntil wa /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -461,7 +461,7 @@ public virtual ArmOperation PrepareNetworkPolicies(WaitUntil waitUntil, PrepareN /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -507,7 +507,7 @@ public virtual async Task UnprepareNetworkPoliciesAsync(WaitUntil /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -553,7 +553,7 @@ public virtual ArmOperation UnprepareNetworkPolicies(WaitUntil waitUntil, Unprep /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// @@ -578,7 +578,7 @@ public virtual AsyncPageable GetResourceNavigationLinksA /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// @@ -603,7 +603,7 @@ public virtual Pageable GetResourceNavigationLinks(Cance /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// @@ -628,7 +628,7 @@ public virtual AsyncPageable GetServiceAssociationLinksA /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/SubscriptionNetworkManagerConnectionCollection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/SubscriptionNetworkManagerConnectionCollection.cs index 7fff05938ac8..aa38a958237e 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/SubscriptionNetworkManagerConnectionCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/SubscriptionNetworkManagerConnectionCollection.cs @@ -65,7 +65,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -116,7 +116,7 @@ public virtual async Task /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -167,7 +167,7 @@ public virtual ArmOperation Create /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -212,7 +212,7 @@ public virtual async Task /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -257,7 +257,7 @@ public virtual Response Get(string /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -289,7 +289,7 @@ public virtual AsyncPageable GetAl /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -321,7 +321,7 @@ public virtual Pageable GetAll(int /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -364,7 +364,7 @@ public virtual async Task> ExistsAsync(string networkManagerConne /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -407,7 +407,7 @@ public virtual Response Exists(string networkManagerConnectionName, Cancel /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -452,7 +452,7 @@ public virtual async Task /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/SubscriptionNetworkManagerConnectionResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/SubscriptionNetworkManagerConnectionResource.cs index 124d37759b28..ab9d3d21d6e3 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/SubscriptionNetworkManagerConnectionResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/SubscriptionNetworkManagerConnectionResource.cs @@ -100,7 +100,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -140,7 +140,7 @@ public virtual async Task /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -180,7 +180,7 @@ public virtual Response Get(Cancel /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -224,7 +224,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -268,7 +268,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -316,7 +316,7 @@ public virtual async Task /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/VerifierWorkspaceCollection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/VerifierWorkspaceCollection.cs new file mode 100644 index 000000000000..4257909db53f --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/VerifierWorkspaceCollection.cs @@ -0,0 +1,507 @@ +// 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.Network +{ + /// + /// 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 GetVerifierWorkspaces method from an instance of . + /// + public partial class VerifierWorkspaceCollection : ArmCollection, IEnumerable, IAsyncEnumerable + { + private readonly ClientDiagnostics _verifierWorkspaceClientDiagnostics; + private readonly VerifierWorkspacesRestOperations _verifierWorkspaceRestClient; + + /// Initializes a new instance of the class for mocking. + protected VerifierWorkspaceCollection() + { + } + + /// 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 VerifierWorkspaceCollection(ArmClient client, ResourceIdentifier id) : base(client, id) + { + _verifierWorkspaceClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Network", VerifierWorkspaceResource.ResourceType.Namespace, Diagnostics); + TryGetApiVersion(VerifierWorkspaceResource.ResourceType, out string verifierWorkspaceApiVersion); + _verifierWorkspaceRestClient = new VerifierWorkspacesRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, verifierWorkspaceApiVersion); +#if DEBUG + ValidateResourceId(Id); +#endif + } + + internal static void ValidateResourceId(ResourceIdentifier id) + { + if (id.ResourceType != NetworkManagerResource.ResourceType) + throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, NetworkManagerResource.ResourceType), nameof(id)); + } + + /// + /// Creates Verifier Workspace. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/verifierWorkspaces/{workspaceName} + /// + /// + /// Operation Id + /// VerifierWorkspaces_Create + /// + /// + /// Default Api Version + /// 2024-05-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. + /// Workspace name. + /// Verifier Workspace object to create/update. + /// 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 workspaceName, VerifierWorkspaceData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(workspaceName, nameof(workspaceName)); + Argument.AssertNotNull(data, nameof(data)); + + using var scope = _verifierWorkspaceClientDiagnostics.CreateScope("VerifierWorkspaceCollection.CreateOrUpdate"); + scope.Start(); + try + { + var response = await _verifierWorkspaceRestClient.CreateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, workspaceName, data, cancellationToken).ConfigureAwait(false); + var uri = _verifierWorkspaceRestClient.CreateCreateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, workspaceName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), "None", null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new NetworkArmOperation(Response.FromValue(new VerifierWorkspaceResource(Client, response), response.GetRawResponse()), rehydrationToken); + if (waitUntil == WaitUntil.Completed) + await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Creates Verifier Workspace. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/verifierWorkspaces/{workspaceName} + /// + /// + /// Operation Id + /// VerifierWorkspaces_Create + /// + /// + /// Default Api Version + /// 2024-05-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. + /// Workspace name. + /// Verifier Workspace object to create/update. + /// 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 workspaceName, VerifierWorkspaceData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(workspaceName, nameof(workspaceName)); + Argument.AssertNotNull(data, nameof(data)); + + using var scope = _verifierWorkspaceClientDiagnostics.CreateScope("VerifierWorkspaceCollection.CreateOrUpdate"); + scope.Start(); + try + { + var response = _verifierWorkspaceRestClient.Create(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, workspaceName, data, cancellationToken); + var uri = _verifierWorkspaceRestClient.CreateCreateRequestUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, workspaceName, data); + var rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), "None", null, OperationFinalStateVia.OriginalUri.ToString()); + var operation = new NetworkArmOperation(Response.FromValue(new VerifierWorkspaceResource(Client, response), response.GetRawResponse()), rehydrationToken); + if (waitUntil == WaitUntil.Completed) + operation.WaitForCompletion(cancellationToken); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Gets Verifier Workspace. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/verifierWorkspaces/{workspaceName} + /// + /// + /// Operation Id + /// VerifierWorkspaces_Get + /// + /// + /// Default Api Version + /// 2024-05-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// Workspace 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 workspaceName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(workspaceName, nameof(workspaceName)); + + using var scope = _verifierWorkspaceClientDiagnostics.CreateScope("VerifierWorkspaceCollection.Get"); + scope.Start(); + try + { + var response = await _verifierWorkspaceRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, workspaceName, cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw new RequestFailedException(response.GetRawResponse()); + return Response.FromValue(new VerifierWorkspaceResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Gets Verifier Workspace. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/verifierWorkspaces/{workspaceName} + /// + /// + /// Operation Id + /// VerifierWorkspaces_Get + /// + /// + /// Default Api Version + /// 2024-05-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// Workspace name. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual Response Get(string workspaceName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(workspaceName, nameof(workspaceName)); + + using var scope = _verifierWorkspaceClientDiagnostics.CreateScope("VerifierWorkspaceCollection.Get"); + scope.Start(); + try + { + var response = _verifierWorkspaceRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, workspaceName, cancellationToken); + if (response.Value == null) + throw new RequestFailedException(response.GetRawResponse()); + return Response.FromValue(new VerifierWorkspaceResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Gets list of Verifier Workspaces. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/verifierWorkspaces + /// + /// + /// Operation Id + /// VerifierWorkspaces_List + /// + /// + /// Default Api Version + /// 2024-05-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// Optional skip token. + /// Optional num entries to skip. + /// Optional num entries to show. + /// Optional key by which to sort. + /// Optional sort value for pagination. + /// The cancellation token to use. + /// An async collection of that may take multiple service requests to iterate over. + public virtual AsyncPageable GetAllAsync(string skipToken = null, int? skip = null, int? top = null, string sortKey = null, string sortValue = null, CancellationToken cancellationToken = default) + { + HttpMessage FirstPageRequest(int? pageSizeHint) => _verifierWorkspaceRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, skipToken, skip, top, sortKey, sortValue); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _verifierWorkspaceRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name, skipToken, skip, top, sortKey, sortValue); + return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new VerifierWorkspaceResource(Client, VerifierWorkspaceData.DeserializeVerifierWorkspaceData(e)), _verifierWorkspaceClientDiagnostics, Pipeline, "VerifierWorkspaceCollection.GetAll", "value", "nextLink", cancellationToken); + } + + /// + /// Gets list of Verifier Workspaces. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/verifierWorkspaces + /// + /// + /// Operation Id + /// VerifierWorkspaces_List + /// + /// + /// Default Api Version + /// 2024-05-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// Optional skip token. + /// Optional num entries to skip. + /// Optional num entries to show. + /// Optional key by which to sort. + /// Optional sort value for pagination. + /// The cancellation token to use. + /// A collection of that may take multiple service requests to iterate over. + public virtual Pageable GetAll(string skipToken = null, int? skip = null, int? top = null, string sortKey = null, string sortValue = null, CancellationToken cancellationToken = default) + { + HttpMessage FirstPageRequest(int? pageSizeHint) => _verifierWorkspaceRestClient.CreateListRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, skipToken, skip, top, sortKey, sortValue); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _verifierWorkspaceRestClient.CreateListNextPageRequest(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name, skipToken, skip, top, sortKey, sortValue); + return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new VerifierWorkspaceResource(Client, VerifierWorkspaceData.DeserializeVerifierWorkspaceData(e)), _verifierWorkspaceClientDiagnostics, Pipeline, "VerifierWorkspaceCollection.GetAll", "value", "nextLink", cancellationToken); + } + + /// + /// Checks to see if the resource exists in azure. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/verifierWorkspaces/{workspaceName} + /// + /// + /// Operation Id + /// VerifierWorkspaces_Get + /// + /// + /// Default Api Version + /// 2024-05-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// Workspace 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 workspaceName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(workspaceName, nameof(workspaceName)); + + using var scope = _verifierWorkspaceClientDiagnostics.CreateScope("VerifierWorkspaceCollection.Exists"); + scope.Start(); + try + { + var response = await _verifierWorkspaceRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, workspaceName, 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.Network/networkManagers/{networkManagerName}/verifierWorkspaces/{workspaceName} + /// + /// + /// Operation Id + /// VerifierWorkspaces_Get + /// + /// + /// Default Api Version + /// 2024-05-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// Workspace name. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual Response Exists(string workspaceName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(workspaceName, nameof(workspaceName)); + + using var scope = _verifierWorkspaceClientDiagnostics.CreateScope("VerifierWorkspaceCollection.Exists"); + scope.Start(); + try + { + var response = _verifierWorkspaceRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, workspaceName, 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.Network/networkManagers/{networkManagerName}/verifierWorkspaces/{workspaceName} + /// + /// + /// Operation Id + /// VerifierWorkspaces_Get + /// + /// + /// Default Api Version + /// 2024-05-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// Workspace 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 workspaceName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(workspaceName, nameof(workspaceName)); + + using var scope = _verifierWorkspaceClientDiagnostics.CreateScope("VerifierWorkspaceCollection.GetIfExists"); + scope.Start(); + try + { + var response = await _verifierWorkspaceRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, workspaceName, cancellationToken: cancellationToken).ConfigureAwait(false); + if (response.Value == null) + return new NoValueResponse(response.GetRawResponse()); + return Response.FromValue(new VerifierWorkspaceResource(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.Network/networkManagers/{networkManagerName}/verifierWorkspaces/{workspaceName} + /// + /// + /// Operation Id + /// VerifierWorkspaces_Get + /// + /// + /// Default Api Version + /// 2024-05-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// Workspace name. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual NullableResponse GetIfExists(string workspaceName, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(workspaceName, nameof(workspaceName)); + + using var scope = _verifierWorkspaceClientDiagnostics.CreateScope("VerifierWorkspaceCollection.GetIfExists"); + scope.Start(); + try + { + var response = _verifierWorkspaceRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, workspaceName, cancellationToken: cancellationToken); + if (response.Value == null) + return new NoValueResponse(response.GetRawResponse()); + return Response.FromValue(new VerifierWorkspaceResource(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/network/Azure.ResourceManager.Network/src/Generated/VerifierWorkspaceData.Serialization.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/VerifierWorkspaceData.Serialization.cs new file mode 100644 index 000000000000..f26a1903bfc6 --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/VerifierWorkspaceData.Serialization.cs @@ -0,0 +1,190 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; +using Azure.ResourceManager.Models; +using Azure.ResourceManager.Network.Models; + +namespace Azure.ResourceManager.Network +{ + public partial class VerifierWorkspaceData : 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(VerifierWorkspaceData)} does not support writing '{format}' format."); + } + + base.JsonModelWriteCore(writer, options); + if (Optional.IsDefined(Properties)) + { + writer.WritePropertyName("properties"u8); + writer.WriteObjectValue(Properties, options); + } + if (options.Format != "W" && Optional.IsDefined(CommonResourceType)) + { + writer.WritePropertyName("type"u8); + writer.WriteStringValue(CommonResourceType); + } + } + + VerifierWorkspaceData 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(VerifierWorkspaceData)} does not support reading '{format}' format."); + } + + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeVerifierWorkspaceData(document.RootElement, options); + } + + internal static VerifierWorkspaceData DeserializeVerifierWorkspaceData(JsonElement element, ModelReaderWriterOptions options = null) + { + options ??= ModelSerializationExtensions.WireOptions; + + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + VerifierWorkspaceProperties properties = default; + string type = default; + IDictionary tags = default; + AzureLocation location = default; + ResourceIdentifier id = default; + string name = default; + ResourceType type0 = default; + SystemData systemData = default; + IDictionary serializedAdditionalRawData = default; + Dictionary rawDataDictionary = new Dictionary(); + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("properties"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + properties = VerifierWorkspaceProperties.DeserializeVerifierWorkspaceProperties(property.Value, options); + continue; + } + if (property.NameEquals("type"u8)) + { + type = property.Value.GetString(); + continue; + } + if (property.NameEquals("tags"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + Dictionary dictionary = new Dictionary(); + foreach (var property0 in property.Value.EnumerateObject()) + { + dictionary.Add(property0.Name, property0.Value.GetString()); + } + tags = dictionary; + continue; + } + if (property.NameEquals("location"u8)) + { + location = new AzureLocation(property.Value.GetString()); + continue; + } + if (property.NameEquals("id"u8)) + { + id = new ResourceIdentifier(property.Value.GetString()); + continue; + } + if (property.NameEquals("name"u8)) + { + name = property.Value.GetString(); + continue; + } + if (property.NameEquals("type"u8)) + { + type0 = new ResourceType(property.Value.GetString()); + continue; + } + if (property.NameEquals("systemData"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + systemData = JsonSerializer.Deserialize(property.Value.GetRawText()); + continue; + } + if (options.Format != "W") + { + rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + } + } + serializedAdditionalRawData = rawDataDictionary; + return new VerifierWorkspaceData( + id, + name, + type0, + systemData, + tags ?? new ChangeTrackingDictionary(), + location, + properties, + type, + 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(VerifierWorkspaceData)} does not support writing '{options.Format}' format."); + } + } + + VerifierWorkspaceData 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 DeserializeVerifierWorkspaceData(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(VerifierWorkspaceData)} does not support reading '{options.Format}' format."); + } + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/VerifierWorkspaceData.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/VerifierWorkspaceData.cs new file mode 100644 index 000000000000..fc6b339a5f26 --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/VerifierWorkspaceData.cs @@ -0,0 +1,87 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using Azure.Core; +using Azure.ResourceManager.Models; +using Azure.ResourceManager.Network.Models; + +namespace Azure.ResourceManager.Network +{ + /// + /// A class representing the VerifierWorkspace data model. + /// Instance of Verifier Workspace. + /// + public partial class VerifierWorkspaceData : TrackedResourceData + { + /// + /// Keeps track of any properties unknown to the library. + /// + /// To assign an object to the value of this property use . + /// + /// + /// To assign an already formatted json string to this property use . + /// + /// + /// Examples: + /// + /// + /// BinaryData.FromObjectAsJson("foo") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromString("\"foo\"") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromObjectAsJson(new { key = "value" }) + /// Creates a payload of { "key": "value" }. + /// + /// + /// BinaryData.FromString("{\"key\": \"value\"}") + /// Creates a payload of { "key": "value" }. + /// + /// + /// + /// + private IDictionary _serializedAdditionalRawData; + + /// Initializes a new instance of . + /// The location. + public VerifierWorkspaceData(AzureLocation location) : base(location) + { + } + + /// Initializes a new instance of . + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// The tags. + /// The location. + /// Properties of Verifier Workspace resource. + /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts". + /// Keeps track of any properties unknown to the library. + internal VerifierWorkspaceData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, VerifierWorkspaceProperties properties, string commonResourceType, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData, tags, location) + { + Properties = properties; + CommonResourceType = commonResourceType; + _serializedAdditionalRawData = serializedAdditionalRawData; + } + + /// Initializes a new instance of for deserialization. + internal VerifierWorkspaceData() + { + } + + /// Properties of Verifier Workspace resource. + public VerifierWorkspaceProperties Properties { get; set; } + /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts". + public string CommonResourceType { get; } + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/VerifierWorkspaceResource.Serialization.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/VerifierWorkspaceResource.Serialization.cs new file mode 100644 index 000000000000..6cc2e4333f1c --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/VerifierWorkspaceResource.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.Network +{ + public partial class VerifierWorkspaceResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) => ((IJsonModel)Data).Write(writer, options); + + VerifierWorkspaceData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => ((IJsonModel)Data).Create(ref reader, options); + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => ModelReaderWriter.Write(Data, options); + + VerifierWorkspaceData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => ModelReaderWriter.Read(data, options); + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => ((IPersistableModel)Data).GetFormatFromOptions(options); + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/VerifierWorkspaceResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/VerifierWorkspaceResource.cs new file mode 100644 index 000000000000..e85f994c99db --- /dev/null +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/VerifierWorkspaceResource.cs @@ -0,0 +1,837 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using System.Globalization; +using System.Threading; +using System.Threading.Tasks; +using Azure.Core; +using Azure.Core.Pipeline; +using Azure.ResourceManager.Network.Models; + +namespace Azure.ResourceManager.Network +{ + /// + /// A Class representing a VerifierWorkspace 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 GetVerifierWorkspaceResource method. + /// Otherwise you can get one from its parent resource using the GetVerifierWorkspace method. + /// + public partial class VerifierWorkspaceResource : ArmResource + { + /// Generate the resource identifier of a instance. + /// The subscriptionId. + /// The resourceGroupName. + /// The networkManagerName. + /// The workspaceName. + public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string networkManagerName, string workspaceName) + { + var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/verifierWorkspaces/{workspaceName}"; + return new ResourceIdentifier(resourceId); + } + + private readonly ClientDiagnostics _verifierWorkspaceClientDiagnostics; + private readonly VerifierWorkspacesRestOperations _verifierWorkspaceRestClient; + private readonly VerifierWorkspaceData _data; + + /// Gets the resource type for the operations. + public static readonly ResourceType ResourceType = "Microsoft.Network/networkManagers/verifierWorkspaces"; + + /// Initializes a new instance of the class for mocking. + protected VerifierWorkspaceResource() + { + } + + /// Initializes a new instance of the class. + /// The client parameters to use in these operations. + /// The resource that is the target of operations. + internal VerifierWorkspaceResource(ArmClient client, VerifierWorkspaceData 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 VerifierWorkspaceResource(ArmClient client, ResourceIdentifier id) : base(client, id) + { + _verifierWorkspaceClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Network", ResourceType.Namespace, Diagnostics); + TryGetApiVersion(ResourceType, out string verifierWorkspaceApiVersion); + _verifierWorkspaceRestClient = new VerifierWorkspacesRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, verifierWorkspaceApiVersion); +#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 VerifierWorkspaceData Data + { + get + { + if (!HasData) + throw new InvalidOperationException("The current instance does not have data, you must call Get first."); + return _data; + } + } + + internal static void ValidateResourceId(ResourceIdentifier id) + { + if (id.ResourceType != ResourceType) + throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, ResourceType), nameof(id)); + } + + /// Gets a collection of ReachabilityAnalysisIntentResources in the VerifierWorkspace. + /// An object representing collection of ReachabilityAnalysisIntentResources and their operations over a ReachabilityAnalysisIntentResource. + public virtual ReachabilityAnalysisIntentCollection GetReachabilityAnalysisIntents() + { + return GetCachedClient(client => new ReachabilityAnalysisIntentCollection(client, Id)); + } + + /// + /// Get the Reachability Analysis Intent. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/verifierWorkspaces/{workspaceName}/reachabilityAnalysisIntents/{reachabilityAnalysisIntentName} + /// + /// + /// Operation Id + /// ReachabilityAnalysisIntents_Get + /// + /// + /// Default Api Version + /// 2024-05-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// Reachability Analysis Intent name. + /// The cancellation token to use. + /// is null. + /// is an empty string, and was expected to be non-empty. + [ForwardsClientCalls] + public virtual async Task> GetReachabilityAnalysisIntentAsync(string reachabilityAnalysisIntentName, CancellationToken cancellationToken = default) + { + return await GetReachabilityAnalysisIntents().GetAsync(reachabilityAnalysisIntentName, cancellationToken).ConfigureAwait(false); + } + + /// + /// Get the Reachability Analysis Intent. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/verifierWorkspaces/{workspaceName}/reachabilityAnalysisIntents/{reachabilityAnalysisIntentName} + /// + /// + /// Operation Id + /// ReachabilityAnalysisIntents_Get + /// + /// + /// Default Api Version + /// 2024-05-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// Reachability Analysis Intent name. + /// The cancellation token to use. + /// is null. + /// is an empty string, and was expected to be non-empty. + [ForwardsClientCalls] + public virtual Response GetReachabilityAnalysisIntent(string reachabilityAnalysisIntentName, CancellationToken cancellationToken = default) + { + return GetReachabilityAnalysisIntents().Get(reachabilityAnalysisIntentName, cancellationToken); + } + + /// Gets a collection of ReachabilityAnalysisRunResources in the VerifierWorkspace. + /// An object representing collection of ReachabilityAnalysisRunResources and their operations over a ReachabilityAnalysisRunResource. + public virtual ReachabilityAnalysisRunCollection GetReachabilityAnalysisRuns() + { + return GetCachedClient(client => new ReachabilityAnalysisRunCollection(client, Id)); + } + + /// + /// Gets Reachability Analysis Run. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/verifierWorkspaces/{workspaceName}/reachabilityAnalysisRuns/{reachabilityAnalysisRunName} + /// + /// + /// Operation Id + /// ReachabilityAnalysisRuns_Get + /// + /// + /// Default Api Version + /// 2024-05-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// Reachability Analysis Run name. + /// The cancellation token to use. + /// is null. + /// is an empty string, and was expected to be non-empty. + [ForwardsClientCalls] + public virtual async Task> GetReachabilityAnalysisRunAsync(string reachabilityAnalysisRunName, CancellationToken cancellationToken = default) + { + return await GetReachabilityAnalysisRuns().GetAsync(reachabilityAnalysisRunName, cancellationToken).ConfigureAwait(false); + } + + /// + /// Gets Reachability Analysis Run. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/verifierWorkspaces/{workspaceName}/reachabilityAnalysisRuns/{reachabilityAnalysisRunName} + /// + /// + /// Operation Id + /// ReachabilityAnalysisRuns_Get + /// + /// + /// Default Api Version + /// 2024-05-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// Reachability Analysis Run name. + /// The cancellation token to use. + /// is null. + /// is an empty string, and was expected to be non-empty. + [ForwardsClientCalls] + public virtual Response GetReachabilityAnalysisRun(string reachabilityAnalysisRunName, CancellationToken cancellationToken = default) + { + return GetReachabilityAnalysisRuns().Get(reachabilityAnalysisRunName, cancellationToken); + } + + /// + /// Gets Verifier Workspace. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/verifierWorkspaces/{workspaceName} + /// + /// + /// Operation Id + /// VerifierWorkspaces_Get + /// + /// + /// Default Api Version + /// 2024-05-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// The cancellation token to use. + public virtual async Task> GetAsync(CancellationToken cancellationToken = default) + { + using var scope = _verifierWorkspaceClientDiagnostics.CreateScope("VerifierWorkspaceResource.Get"); + scope.Start(); + try + { + var response = await _verifierWorkspaceRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw new RequestFailedException(response.GetRawResponse()); + return Response.FromValue(new VerifierWorkspaceResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Gets Verifier Workspace. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/verifierWorkspaces/{workspaceName} + /// + /// + /// Operation Id + /// VerifierWorkspaces_Get + /// + /// + /// Default Api Version + /// 2024-05-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// The cancellation token to use. + public virtual Response Get(CancellationToken cancellationToken = default) + { + using var scope = _verifierWorkspaceClientDiagnostics.CreateScope("VerifierWorkspaceResource.Get"); + scope.Start(); + try + { + var response = _verifierWorkspaceRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); + if (response.Value == null) + throw new RequestFailedException(response.GetRawResponse()); + return Response.FromValue(new VerifierWorkspaceResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Deletes Verifier Workspace. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/verifierWorkspaces/{workspaceName} + /// + /// + /// Operation Id + /// VerifierWorkspaces_Delete + /// + /// + /// Default Api Version + /// 2024-05-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 = _verifierWorkspaceClientDiagnostics.CreateScope("VerifierWorkspaceResource.Delete"); + scope.Start(); + try + { + var response = await _verifierWorkspaceRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + var operation = new NetworkArmOperation(_verifierWorkspaceClientDiagnostics, Pipeline, _verifierWorkspaceRestClient.CreateDeleteRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name).Request, response, OperationFinalStateVia.Location); + if (waitUntil == WaitUntil.Completed) + await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Deletes Verifier Workspace. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/verifierWorkspaces/{workspaceName} + /// + /// + /// Operation Id + /// VerifierWorkspaces_Delete + /// + /// + /// Default Api Version + /// 2024-05-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 = _verifierWorkspaceClientDiagnostics.CreateScope("VerifierWorkspaceResource.Delete"); + scope.Start(); + try + { + var response = _verifierWorkspaceRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); + var operation = new NetworkArmOperation(_verifierWorkspaceClientDiagnostics, Pipeline, _verifierWorkspaceRestClient.CreateDeleteRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name).Request, response, OperationFinalStateVia.Location); + if (waitUntil == WaitUntil.Completed) + operation.WaitForCompletionResponse(cancellationToken); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Updates Verifier Workspace. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/verifierWorkspaces/{workspaceName} + /// + /// + /// Operation Id + /// VerifierWorkspaces_Update + /// + /// + /// Default Api Version + /// 2024-05-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// Verifier Workspace object to create/update. + /// The cancellation token to use. + /// is null. + public virtual async Task> UpdateAsync(VerifierWorkspacePatch patch, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(patch, nameof(patch)); + + using var scope = _verifierWorkspaceClientDiagnostics.CreateScope("VerifierWorkspaceResource.Update"); + scope.Start(); + try + { + var response = await _verifierWorkspaceRestClient.UpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, patch, cancellationToken).ConfigureAwait(false); + return Response.FromValue(new VerifierWorkspaceResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Updates Verifier Workspace. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/verifierWorkspaces/{workspaceName} + /// + /// + /// Operation Id + /// VerifierWorkspaces_Update + /// + /// + /// Default Api Version + /// 2024-05-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// Verifier Workspace object to create/update. + /// The cancellation token to use. + /// is null. + public virtual Response Update(VerifierWorkspacePatch patch, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(patch, nameof(patch)); + + using var scope = _verifierWorkspaceClientDiagnostics.CreateScope("VerifierWorkspaceResource.Update"); + scope.Start(); + try + { + var response = _verifierWorkspaceRestClient.Update(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, patch, cancellationToken); + return Response.FromValue(new VerifierWorkspaceResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Add a tag to the current resource. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/verifierWorkspaces/{workspaceName} + /// + /// + /// Operation Id + /// VerifierWorkspaces_Get + /// + /// + /// Default Api Version + /// 2024-05-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// The key for the tag. + /// The value for the tag. + /// The cancellation token to use. + /// or is null. + public virtual async Task> AddTagAsync(string key, string value, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(key, nameof(key)); + Argument.AssertNotNull(value, nameof(value)); + + using var scope = _verifierWorkspaceClientDiagnostics.CreateScope("VerifierWorkspaceResource.AddTag"); + scope.Start(); + try + { + if (await CanUseTagResourceAsync(cancellationToken: cancellationToken).ConfigureAwait(false)) + { + var originalTags = await GetTagResource().GetAsync(cancellationToken).ConfigureAwait(false); + originalTags.Value.Data.TagValues[key] = value; + await GetTagResource().CreateOrUpdateAsync(WaitUntil.Completed, originalTags.Value.Data, cancellationToken: cancellationToken).ConfigureAwait(false); + var originalResponse = await _verifierWorkspaceRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + return Response.FromValue(new VerifierWorkspaceResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); + } + else + { + var current = (await GetAsync(cancellationToken: cancellationToken).ConfigureAwait(false)).Value.Data; + var patch = new VerifierWorkspacePatch(); + foreach (var tag in current.Tags) + { + patch.Tags.Add(tag); + } + patch.Tags[key] = value; + var result = await UpdateAsync(patch, cancellationToken: cancellationToken).ConfigureAwait(false); + return result; + } + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Add a tag to the current resource. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/verifierWorkspaces/{workspaceName} + /// + /// + /// Operation Id + /// VerifierWorkspaces_Get + /// + /// + /// Default Api Version + /// 2024-05-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// The key for the tag. + /// The value for the tag. + /// The cancellation token to use. + /// or is null. + public virtual Response AddTag(string key, string value, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(key, nameof(key)); + Argument.AssertNotNull(value, nameof(value)); + + using var scope = _verifierWorkspaceClientDiagnostics.CreateScope("VerifierWorkspaceResource.AddTag"); + scope.Start(); + try + { + if (CanUseTagResource(cancellationToken: cancellationToken)) + { + var originalTags = GetTagResource().Get(cancellationToken); + originalTags.Value.Data.TagValues[key] = value; + GetTagResource().CreateOrUpdate(WaitUntil.Completed, originalTags.Value.Data, cancellationToken: cancellationToken); + var originalResponse = _verifierWorkspaceRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); + return Response.FromValue(new VerifierWorkspaceResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); + } + else + { + var current = Get(cancellationToken: cancellationToken).Value.Data; + var patch = new VerifierWorkspacePatch(); + foreach (var tag in current.Tags) + { + patch.Tags.Add(tag); + } + patch.Tags[key] = value; + var result = Update(patch, cancellationToken: cancellationToken); + return result; + } + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Replace the tags on the resource with the given set. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/verifierWorkspaces/{workspaceName} + /// + /// + /// Operation Id + /// VerifierWorkspaces_Get + /// + /// + /// Default Api Version + /// 2024-05-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// The set of tags to use as replacement. + /// The cancellation token to use. + /// is null. + public virtual async Task> SetTagsAsync(IDictionary tags, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(tags, nameof(tags)); + + using var scope = _verifierWorkspaceClientDiagnostics.CreateScope("VerifierWorkspaceResource.SetTags"); + scope.Start(); + try + { + if (await CanUseTagResourceAsync(cancellationToken: cancellationToken).ConfigureAwait(false)) + { + await GetTagResource().DeleteAsync(WaitUntil.Completed, cancellationToken: cancellationToken).ConfigureAwait(false); + var originalTags = await GetTagResource().GetAsync(cancellationToken).ConfigureAwait(false); + originalTags.Value.Data.TagValues.ReplaceWith(tags); + await GetTagResource().CreateOrUpdateAsync(WaitUntil.Completed, originalTags.Value.Data, cancellationToken: cancellationToken).ConfigureAwait(false); + var originalResponse = await _verifierWorkspaceRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + return Response.FromValue(new VerifierWorkspaceResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); + } + else + { + var current = (await GetAsync(cancellationToken: cancellationToken).ConfigureAwait(false)).Value.Data; + var patch = new VerifierWorkspacePatch(); + patch.Tags.ReplaceWith(tags); + var result = await UpdateAsync(patch, cancellationToken: cancellationToken).ConfigureAwait(false); + return result; + } + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Replace the tags on the resource with the given set. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/verifierWorkspaces/{workspaceName} + /// + /// + /// Operation Id + /// VerifierWorkspaces_Get + /// + /// + /// Default Api Version + /// 2024-05-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// The set of tags to use as replacement. + /// The cancellation token to use. + /// is null. + public virtual Response SetTags(IDictionary tags, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(tags, nameof(tags)); + + using var scope = _verifierWorkspaceClientDiagnostics.CreateScope("VerifierWorkspaceResource.SetTags"); + scope.Start(); + try + { + if (CanUseTagResource(cancellationToken: cancellationToken)) + { + GetTagResource().Delete(WaitUntil.Completed, cancellationToken: cancellationToken); + var originalTags = GetTagResource().Get(cancellationToken); + originalTags.Value.Data.TagValues.ReplaceWith(tags); + GetTagResource().CreateOrUpdate(WaitUntil.Completed, originalTags.Value.Data, cancellationToken: cancellationToken); + var originalResponse = _verifierWorkspaceRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); + return Response.FromValue(new VerifierWorkspaceResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); + } + else + { + var current = Get(cancellationToken: cancellationToken).Value.Data; + var patch = new VerifierWorkspacePatch(); + patch.Tags.ReplaceWith(tags); + var result = Update(patch, cancellationToken: cancellationToken); + return result; + } + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Removes a tag by key from the resource. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/verifierWorkspaces/{workspaceName} + /// + /// + /// Operation Id + /// VerifierWorkspaces_Get + /// + /// + /// Default Api Version + /// 2024-05-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// The key for the tag. + /// The cancellation token to use. + /// is null. + public virtual async Task> RemoveTagAsync(string key, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(key, nameof(key)); + + using var scope = _verifierWorkspaceClientDiagnostics.CreateScope("VerifierWorkspaceResource.RemoveTag"); + scope.Start(); + try + { + if (await CanUseTagResourceAsync(cancellationToken: cancellationToken).ConfigureAwait(false)) + { + var originalTags = await GetTagResource().GetAsync(cancellationToken).ConfigureAwait(false); + originalTags.Value.Data.TagValues.Remove(key); + await GetTagResource().CreateOrUpdateAsync(WaitUntil.Completed, originalTags.Value.Data, cancellationToken: cancellationToken).ConfigureAwait(false); + var originalResponse = await _verifierWorkspaceRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + return Response.FromValue(new VerifierWorkspaceResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); + } + else + { + var current = (await GetAsync(cancellationToken: cancellationToken).ConfigureAwait(false)).Value.Data; + var patch = new VerifierWorkspacePatch(); + foreach (var tag in current.Tags) + { + patch.Tags.Add(tag); + } + patch.Tags.Remove(key); + var result = await UpdateAsync(patch, cancellationToken: cancellationToken).ConfigureAwait(false); + return result; + } + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Removes a tag by key from the resource. + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/verifierWorkspaces/{workspaceName} + /// + /// + /// Operation Id + /// VerifierWorkspaces_Get + /// + /// + /// Default Api Version + /// 2024-05-01 + /// + /// + /// Resource + /// + /// + /// + /// + /// The key for the tag. + /// The cancellation token to use. + /// is null. + public virtual Response RemoveTag(string key, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(key, nameof(key)); + + using var scope = _verifierWorkspaceClientDiagnostics.CreateScope("VerifierWorkspaceResource.RemoveTag"); + scope.Start(); + try + { + if (CanUseTagResource(cancellationToken: cancellationToken)) + { + var originalTags = GetTagResource().Get(cancellationToken); + originalTags.Value.Data.TagValues.Remove(key); + GetTagResource().CreateOrUpdate(WaitUntil.Completed, originalTags.Value.Data, cancellationToken: cancellationToken); + var originalResponse = _verifierWorkspaceRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); + return Response.FromValue(new VerifierWorkspaceResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); + } + else + { + var current = Get(cancellationToken: cancellationToken).Value.Data; + var patch = new VerifierWorkspacePatch(); + foreach (var tag in current.Tags) + { + patch.Tags.Add(tag); + } + patch.Tags.Remove(key); + var result = Update(patch, cancellationToken: cancellationToken); + return result; + } + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + } +} diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualApplianceSiteCollection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualApplianceSiteCollection.cs index 1ca810de5ae5..186d22c024e5 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualApplianceSiteCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualApplianceSiteCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -113,7 +113,7 @@ public virtual async Task> CreateOrUp /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -162,7 +162,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUnt /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -207,7 +207,7 @@ public virtual async Task> GetAsync(strin /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -252,7 +252,7 @@ public virtual Response Get(string siteName, Cance /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -282,7 +282,7 @@ public virtual AsyncPageable GetAllAsync(Cancellat /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -312,7 +312,7 @@ public virtual Pageable GetAll(CancellationToken c /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -355,7 +355,7 @@ public virtual async Task> ExistsAsync(string siteName, Cancellat /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -398,7 +398,7 @@ public virtual Response Exists(string siteName, CancellationToken cancella /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -443,7 +443,7 @@ public virtual async Task> GetIfE /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualApplianceSiteResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualApplianceSiteResource.cs index 659ec48403ca..565179b8553e 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualApplianceSiteResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualApplianceSiteResource.cs @@ -101,7 +101,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -141,7 +141,7 @@ public virtual async Task> GetAsync(Cance /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -181,7 +181,7 @@ public virtual Response Get(CancellationToken canc /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -223,7 +223,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -265,7 +265,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -311,7 +311,7 @@ public virtual async Task> UpdateAsyn /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualHubCollection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualHubCollection.cs index 12beb251e612..10d7712e78b6 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualHubCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualHubCollection.cs @@ -65,7 +65,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -114,7 +114,7 @@ public virtual async Task> CreateOrUpdateAsync( /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -163,7 +163,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil waitUnt /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -208,7 +208,7 @@ public virtual async Task> GetAsync(string virtualH /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -253,7 +253,7 @@ public virtual Response Get(string virtualHubName, Cancellat /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -283,7 +283,7 @@ public virtual AsyncPageable GetAllAsync(CancellationToken c /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -313,7 +313,7 @@ public virtual Pageable GetAll(CancellationToken cancellatio /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -356,7 +356,7 @@ public virtual async Task> ExistsAsync(string virtualHubName, Can /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -399,7 +399,7 @@ public virtual Response Exists(string virtualHubName, CancellationToken ca /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -444,7 +444,7 @@ public virtual async Task> GetIfExistsAsync /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualHubResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualHubResource.cs index 20e5a9d90a6a..382bdbd16900 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualHubResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualHubResource.cs @@ -110,7 +110,7 @@ public virtual RouteMapCollection GetRouteMaps() /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -141,7 +141,7 @@ public virtual async Task> GetRouteMapAsync(string ro /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -179,7 +179,7 @@ public virtual HubVirtualNetworkConnectionCollection GetHubVirtualNetworkConnect /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -210,7 +210,7 @@ public virtual async Task> GetHubV /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -248,7 +248,7 @@ public virtual VirtualHubRouteTableV2Collection GetVirtualHubRouteTableV2s() /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -279,7 +279,7 @@ public virtual async Task> GetVirtualHu /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -317,7 +317,7 @@ public virtual BgpConnectionCollection GetBgpConnections() /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -348,7 +348,7 @@ public virtual async Task> GetBgpConnectionAsync /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -386,7 +386,7 @@ public virtual HubIPConfigurationCollection GetHubIPConfigurations() /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -417,7 +417,7 @@ public virtual async Task> GetHubIPConfigur /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -455,7 +455,7 @@ public virtual HubRouteTableCollection GetHubRouteTables() /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -486,7 +486,7 @@ public virtual async Task> GetHubRouteTableAsync /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -524,7 +524,7 @@ public virtual RoutingIntentCollection GetRoutingIntents() /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -555,7 +555,7 @@ public virtual async Task> GetRoutingIntentAsync /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -586,7 +586,7 @@ public virtual Response GetRoutingIntent(string routingIn /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -626,7 +626,7 @@ public virtual async Task> GetAsync(CancellationTok /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -666,7 +666,7 @@ public virtual Response Get(CancellationToken cancellationTo /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -708,7 +708,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -750,7 +750,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -792,7 +792,7 @@ public virtual async Task> UpdateAsync(NetworkTagsO /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -834,7 +834,7 @@ public virtual Response Update(NetworkTagsObject virtualHubP /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -877,7 +877,7 @@ public virtual async Task> GetVirtual /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -920,7 +920,7 @@ public virtual ArmOperation GetVirtualHubEffective /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -966,7 +966,7 @@ public virtual async Task> GetVirtualHu /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -1012,7 +1012,7 @@ public virtual ArmOperation GetVirtualHubInboundRout /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -1058,7 +1058,7 @@ public virtual async Task> GetVirtualHu /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -1104,7 +1104,7 @@ public virtual ArmOperation GetVirtualHubOutboundRou /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -1166,7 +1166,7 @@ public virtual async Task> AddTagAsync(string key, /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -1228,7 +1228,7 @@ public virtual Response AddTag(string key, string value, Can /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -1285,7 +1285,7 @@ public virtual async Task> SetTagsAsync(IDictionary /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -1342,7 +1342,7 @@ public virtual Response SetTags(IDictionary /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -1402,7 +1402,7 @@ public virtual async Task> RemoveTagAsync(string ke /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualHubRouteTableV2Collection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualHubRouteTableV2Collection.cs index 3b931a95a883..970458a4f0ef 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualHubRouteTableV2Collection.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualHubRouteTableV2Collection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -113,7 +113,7 @@ public virtual async Task> CreateOr /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -162,7 +162,7 @@ public virtual ArmOperation CreateOrUpdate(WaitU /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -207,7 +207,7 @@ public virtual async Task> GetAsync(str /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -252,7 +252,7 @@ public virtual Response Get(string routeTableNam /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -282,7 +282,7 @@ public virtual AsyncPageable GetAllAsync(Cancell /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -312,7 +312,7 @@ public virtual Pageable GetAll(CancellationToken /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -355,7 +355,7 @@ public virtual async Task> ExistsAsync(string routeTableName, Can /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -398,7 +398,7 @@ public virtual Response Exists(string routeTableName, CancellationToken ca /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -443,7 +443,7 @@ public virtual async Task> GetI /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualHubRouteTableV2Resource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualHubRouteTableV2Resource.cs index 0168dd090af4..0817d166611b 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualHubRouteTableV2Resource.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualHubRouteTableV2Resource.cs @@ -101,7 +101,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -141,7 +141,7 @@ public virtual async Task> GetAsync(Can /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -181,7 +181,7 @@ public virtual Response Get(CancellationToken ca /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -223,7 +223,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -265,7 +265,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -311,7 +311,7 @@ public virtual async Task> UpdateAs /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualNetworkCollection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualNetworkCollection.cs index d41b38552c97..fdd6d4b8746d 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualNetworkCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualNetworkCollection.cs @@ -65,7 +65,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -114,7 +114,7 @@ public virtual async Task> CreateOrUpdateAs /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -163,7 +163,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil wai /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -209,7 +209,7 @@ public virtual async Task> GetAsync(string virt /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -255,7 +255,7 @@ public virtual Response Get(string virtualNetworkName, s /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -285,7 +285,7 @@ public virtual AsyncPageable GetAllAsync(CancellationTok /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -315,7 +315,7 @@ public virtual Pageable GetAll(CancellationToken cancell /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -359,7 +359,7 @@ public virtual async Task> ExistsAsync(string virtualNetworkName, /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -403,7 +403,7 @@ public virtual Response Exists(string virtualNetworkName, string expand = /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -449,7 +449,7 @@ public virtual async Task> GetIfExistsA /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualNetworkData.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualNetworkData.cs index b735b7ed3add..d7c3f90e3b43 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualNetworkData.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualNetworkData.cs @@ -78,18 +78,7 @@ internal VirtualNetworkData(ResourceIdentifier id, string name, ResourceType? re /// A unique read-only string that changes whenever the resource is updated. public ETag? ETag { get; } /// The AddressSpace that contains an array of IP address ranges that can be used by subnets. - internal AddressSpace AddressSpace { get; set; } - /// A list of address blocks reserved for this virtual network in CIDR notation. - public IList AddressPrefixes - { - get - { - if (AddressSpace is null) - AddressSpace = new AddressSpace(); - return AddressSpace.AddressPrefixes; - } - } - + public AddressSpace AddressSpace { get; set; } /// The dhcpOptions that contains an array of DNS servers available to VMs deployed in the virtual network. internal DhcpOptions DhcpOptions { get; set; } /// The list of DNS servers IP addresses. diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualNetworkGatewayCollection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualNetworkGatewayCollection.cs index 9d6f696cc701..708064c023d3 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualNetworkGatewayCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualNetworkGatewayCollection.cs @@ -65,7 +65,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -114,7 +114,7 @@ public virtual async Task> CreateOrU /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -163,7 +163,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUn /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -208,7 +208,7 @@ public virtual async Task> GetAsync(stri /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -253,7 +253,7 @@ public virtual Response Get(string virtualNetwork /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -283,7 +283,7 @@ public virtual AsyncPageable GetAllAsync(Cancella /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -313,7 +313,7 @@ public virtual Pageable GetAll(CancellationToken /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -356,7 +356,7 @@ public virtual async Task> ExistsAsync(string virtualNetworkGatew /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -399,7 +399,7 @@ public virtual Response Exists(string virtualNetworkGatewayName, Cancellat /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -444,7 +444,7 @@ public virtual async Task> GetIf /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualNetworkGatewayConnectionCollection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualNetworkGatewayConnectionCollection.cs index 36c1b3067204..5d8936eb5e42 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualNetworkGatewayConnectionCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualNetworkGatewayConnectionCollection.cs @@ -65,7 +65,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -114,7 +114,7 @@ public virtual async Task> /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -163,7 +163,7 @@ public virtual ArmOperation CreateOrUpd /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -208,7 +208,7 @@ public virtual async Task> Get /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -253,7 +253,7 @@ public virtual Response Get(string virt /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -283,7 +283,7 @@ public virtual AsyncPageable GetAllAsyn /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -313,7 +313,7 @@ public virtual Pageable GetAll(Cancella /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -356,7 +356,7 @@ public virtual async Task> ExistsAsync(string virtualNetworkGatew /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -399,7 +399,7 @@ public virtual Response Exists(string virtualNetworkGatewayConnectionName, /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -444,7 +444,7 @@ public virtual async Task /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualNetworkGatewayConnectionResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualNetworkGatewayConnectionResource.cs index 5c5626c10b30..484079cb733f 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualNetworkGatewayConnectionResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualNetworkGatewayConnectionResource.cs @@ -108,7 +108,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -148,7 +148,7 @@ public virtual async Task> Get /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -188,7 +188,7 @@ public virtual Response Get(Cancellatio /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -230,7 +230,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -272,7 +272,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -318,7 +318,7 @@ public virtual async Task> /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -364,7 +364,7 @@ public virtual ArmOperation Update(Wait /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -406,7 +406,7 @@ public virtual async Task> VpnDeviceConfigurationScriptAsync(Vp /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -448,7 +448,7 @@ public virtual Response VpnDeviceConfigurationScript(VpnDeviceScriptCont /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -494,7 +494,7 @@ public virtual async Task> SetSharedKeyAsync(W /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -540,7 +540,7 @@ public virtual ArmOperation SetSharedKey(WaitUntil waitUnti /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -578,7 +578,7 @@ public virtual async Task> GetSharedKeyAsync(Cance /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -616,7 +616,7 @@ public virtual Response GetSharedKey(CancellationToken canc /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -662,7 +662,7 @@ public virtual async Task> ResetSharedKey /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -708,7 +708,7 @@ public virtual ArmOperation ResetSharedKey(WaitUntil w /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -751,7 +751,7 @@ public virtual async Task> StartPacketCaptureAsync(WaitUnti /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -794,7 +794,7 @@ public virtual ArmOperation StartPacketCapture(WaitUntil waitUntil, VpnP /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -840,7 +840,7 @@ public virtual async Task> StopPacketCaptureAsync(WaitUntil /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -886,7 +886,7 @@ public virtual ArmOperation StopPacketCapture(WaitUntil waitUntil, VpnPa /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -928,7 +928,7 @@ public virtual async Task> GetIkeSasAsync(WaitUntil waitUnt /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -970,7 +970,7 @@ public virtual ArmOperation GetIkeSas(WaitUntil waitUntil, CancellationT /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -1012,7 +1012,7 @@ public virtual async Task ResetConnectionAsync(WaitUntil waitUntil /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -1054,7 +1054,7 @@ public virtual ArmOperation ResetConnection(WaitUntil waitUntil, CancellationTok /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -1116,7 +1116,7 @@ public virtual async Task> Add /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -1178,7 +1178,7 @@ public virtual Response AddTag(string k /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -1235,7 +1235,7 @@ public virtual async Task> Set /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -1292,7 +1292,7 @@ public virtual Response SetTags(IDictio /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -1352,7 +1352,7 @@ public virtual async Task> Rem /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualNetworkGatewayData.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualNetworkGatewayData.cs index 23a58f3dbad9..e35397fd2228 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualNetworkGatewayData.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualNetworkGatewayData.cs @@ -156,18 +156,7 @@ public ResourceIdentifier GatewayDefaultSiteId /// Virtual network gateway's BGP speaker settings. public BgpSettings BgpSettings { get; set; } /// The reference to the address space resource which represents the custom routes address space specified by the customer for virtual network gateway and VpnClient. - internal AddressSpace CustomRoutes { get; set; } - /// A list of address blocks reserved for this virtual network in CIDR notation. - public IList CustomRoutesAddressPrefixes - { - get - { - if (CustomRoutes is null) - CustomRoutes = new AddressSpace(); - return CustomRoutes.AddressPrefixes; - } - } - + public AddressSpace CustomRoutes { get; set; } /// The resource GUID property of the virtual network gateway resource. public Guid? ResourceGuid { get; } /// The provisioning state of the virtual network gateway resource. diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualNetworkGatewayNatRuleCollection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualNetworkGatewayNatRuleCollection.cs index 7a3ccb4e2150..df5765c1fff3 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualNetworkGatewayNatRuleCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualNetworkGatewayNatRuleCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -113,7 +113,7 @@ public virtual async Task> Cr /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -162,7 +162,7 @@ public virtual ArmOperation CreateOrUpdate /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -207,7 +207,7 @@ public virtual async Task> GetAsy /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -252,7 +252,7 @@ public virtual Response Get(string natRule /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -282,7 +282,7 @@ public virtual AsyncPageable GetAllAsync(C /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -312,7 +312,7 @@ public virtual Pageable GetAll(Cancellatio /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -355,7 +355,7 @@ public virtual async Task> ExistsAsync(string natRuleName, Cancel /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -398,7 +398,7 @@ public virtual Response Exists(string natRuleName, CancellationToken cance /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -443,7 +443,7 @@ public virtual async Task /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualNetworkGatewayNatRuleResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualNetworkGatewayNatRuleResource.cs index 188cc95f3541..0d94b2dc4c72 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualNetworkGatewayNatRuleResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualNetworkGatewayNatRuleResource.cs @@ -101,7 +101,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -141,7 +141,7 @@ public virtual async Task> GetAsy /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -181,7 +181,7 @@ public virtual Response Get(CancellationTo /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -223,7 +223,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -265,7 +265,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -311,7 +311,7 @@ public virtual async Task> Up /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualNetworkGatewayResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualNetworkGatewayResource.cs index a205d8df9743..1b490d66f42c 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualNetworkGatewayResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualNetworkGatewayResource.cs @@ -111,7 +111,7 @@ public virtual VirtualNetworkGatewayNatRuleCollection GetVirtualNetworkGatewayNa /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -142,7 +142,7 @@ public virtual async Task> GetVir /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -173,7 +173,7 @@ public virtual Response GetVirtualNetworkG /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -213,7 +213,7 @@ public virtual async Task> GetAsync(Canc /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -253,7 +253,7 @@ public virtual Response Get(CancellationToken can /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -295,7 +295,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -337,7 +337,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -383,7 +383,7 @@ public virtual async Task> UpdateAsy /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -429,7 +429,7 @@ public virtual ArmOperation Update(WaitUntil wait /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -459,7 +459,7 @@ public virtual AsyncPageable GetConne /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -489,7 +489,7 @@ public virtual Pageable GetConnection /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -532,7 +532,7 @@ public virtual async Task> ResetAsyn /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -575,7 +575,7 @@ public virtual ArmOperation Reset(WaitUntil waitU /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -617,7 +617,7 @@ public virtual async Task ResetVpnClientSharedKeyAsync(WaitUntil w /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -659,7 +659,7 @@ public virtual ArmOperation ResetVpnClientSharedKey(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -705,7 +705,7 @@ public virtual async Task> GenerateVpnClientPackageAsync(Wa /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -751,7 +751,7 @@ public virtual ArmOperation GenerateVpnClientPackage(WaitUntil waitUntil /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -797,7 +797,7 @@ public virtual async Task> GenerateVpnProfileAsync(WaitUnti /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -843,7 +843,7 @@ public virtual ArmOperation GenerateVpnProfile(WaitUntil waitUntil, VpnC /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -885,7 +885,7 @@ public virtual async Task> GetVpnProfilePackageUrlAsync(Wai /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -927,7 +927,7 @@ public virtual ArmOperation GetVpnProfilePackageUrl(WaitUntil waitUntil, /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -970,7 +970,7 @@ public virtual async Task> GetBgpPeerStatu /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -1013,7 +1013,7 @@ public virtual ArmOperation GetBgpPeerStatus(WaitUntil /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -1051,7 +1051,7 @@ public virtual async Task> SupportedVpnDevicesAsync(Cancellatio /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -1089,7 +1089,7 @@ public virtual Response SupportedVpnDevices(CancellationToken cancellati /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -1131,7 +1131,7 @@ public virtual async Task> GetLearnedRoutes /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -1173,7 +1173,7 @@ public virtual ArmOperation GetLearnedRoutes(WaitUntil w /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -1219,7 +1219,7 @@ public virtual async Task> GetAdvertisedRou /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -1265,7 +1265,7 @@ public virtual ArmOperation GetAdvertisedRoutes(WaitUnti /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -1311,7 +1311,7 @@ public virtual async Task> SetVpnclientIP /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -1357,7 +1357,7 @@ public virtual ArmOperation SetVpnclientIPsecParameter /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -1399,7 +1399,7 @@ public virtual async Task> GetVpnclientIP /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -1441,7 +1441,7 @@ public virtual ArmOperation GetVpnclientIPsecParameter /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -1484,7 +1484,7 @@ public virtual async Task> StartPacketCaptureAsync(WaitUnti /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -1527,7 +1527,7 @@ public virtual ArmOperation StartPacketCapture(WaitUntil waitUntil, VpnP /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -1573,7 +1573,7 @@ public virtual async Task> StopPacketCaptureAsync(WaitUntil /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -1606,6 +1606,380 @@ public virtual ArmOperation StopPacketCapture(WaitUntil waitUntil, VpnPa } } + /// + /// This operation retrieves the details of all the failover tests performed on the gateway for different peering locations + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}/getFailoverAllTestsDetails + /// + /// + /// Operation Id + /// VirtualNetworkGateways_GetFailoverAllTestDetails + /// + /// + /// Default Api Version + /// 2024-05-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 type of failover test. + /// Fetch only the latest tests for each peering location. + /// The cancellation token to use. + /// is null. + public virtual async Task>> GetFailoverAllTestDetailsAsync(WaitUntil waitUntil, string type, bool fetchLatest, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(type, nameof(type)); + + using var scope = _virtualNetworkGatewayClientDiagnostics.CreateScope("VirtualNetworkGatewayResource.GetFailoverAllTestDetails"); + scope.Start(); + try + { + var response = await _virtualNetworkGatewayRestClient.GetFailoverAllTestDetailsAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, type, fetchLatest, cancellationToken).ConfigureAwait(false); + var operation = new NetworkArmOperation>(new IListOperationSource(), _virtualNetworkGatewayClientDiagnostics, Pipeline, _virtualNetworkGatewayRestClient.CreateGetFailoverAllTestDetailsRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, type, fetchLatest).Request, response, OperationFinalStateVia.Location); + if (waitUntil == WaitUntil.Completed) + await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// This operation retrieves the details of all the failover tests performed on the gateway for different peering locations + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}/getFailoverAllTestsDetails + /// + /// + /// Operation Id + /// VirtualNetworkGateways_GetFailoverAllTestDetails + /// + /// + /// Default Api Version + /// 2024-05-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 type of failover test. + /// Fetch only the latest tests for each peering location. + /// The cancellation token to use. + /// is null. + public virtual ArmOperation> GetFailoverAllTestDetails(WaitUntil waitUntil, string type, bool fetchLatest, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(type, nameof(type)); + + using var scope = _virtualNetworkGatewayClientDiagnostics.CreateScope("VirtualNetworkGatewayResource.GetFailoverAllTestDetails"); + scope.Start(); + try + { + var response = _virtualNetworkGatewayRestClient.GetFailoverAllTestDetails(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, type, fetchLatest, cancellationToken); + var operation = new NetworkArmOperation>(new IListOperationSource(), _virtualNetworkGatewayClientDiagnostics, Pipeline, _virtualNetworkGatewayRestClient.CreateGetFailoverAllTestDetailsRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, type, fetchLatest).Request, response, OperationFinalStateVia.Location); + if (waitUntil == WaitUntil.Completed) + operation.WaitForCompletion(cancellationToken); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// This operation retrieves the details of a particular failover test performed on the gateway based on the test Guid + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}/getFailoverSingleTestDetails + /// + /// + /// Operation Id + /// VirtualNetworkGateways_GetFailoverSingleTestDetails + /// + /// + /// Default Api Version + /// 2024-05-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. + /// Peering location of the test. + /// The unique Guid value which identifies the test. + /// The cancellation token to use. + /// or is null. + public virtual async Task>> GetFailoverSingleTestDetailsAsync(WaitUntil waitUntil, string peeringLocation, string failoverTestId, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(peeringLocation, nameof(peeringLocation)); + Argument.AssertNotNull(failoverTestId, nameof(failoverTestId)); + + using var scope = _virtualNetworkGatewayClientDiagnostics.CreateScope("VirtualNetworkGatewayResource.GetFailoverSingleTestDetails"); + scope.Start(); + try + { + var response = await _virtualNetworkGatewayRestClient.GetFailoverSingleTestDetailsAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, peeringLocation, failoverTestId, cancellationToken).ConfigureAwait(false); + var operation = new NetworkArmOperation>(new IListOperationSource(), _virtualNetworkGatewayClientDiagnostics, Pipeline, _virtualNetworkGatewayRestClient.CreateGetFailoverSingleTestDetailsRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, peeringLocation, failoverTestId).Request, response, OperationFinalStateVia.Location); + if (waitUntil == WaitUntil.Completed) + await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// This operation retrieves the details of a particular failover test performed on the gateway based on the test Guid + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}/getFailoverSingleTestDetails + /// + /// + /// Operation Id + /// VirtualNetworkGateways_GetFailoverSingleTestDetails + /// + /// + /// Default Api Version + /// 2024-05-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. + /// Peering location of the test. + /// The unique Guid value which identifies the test. + /// The cancellation token to use. + /// or is null. + public virtual ArmOperation> GetFailoverSingleTestDetails(WaitUntil waitUntil, string peeringLocation, string failoverTestId, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(peeringLocation, nameof(peeringLocation)); + Argument.AssertNotNull(failoverTestId, nameof(failoverTestId)); + + using var scope = _virtualNetworkGatewayClientDiagnostics.CreateScope("VirtualNetworkGatewayResource.GetFailoverSingleTestDetails"); + scope.Start(); + try + { + var response = _virtualNetworkGatewayRestClient.GetFailoverSingleTestDetails(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, peeringLocation, failoverTestId, cancellationToken); + var operation = new NetworkArmOperation>(new IListOperationSource(), _virtualNetworkGatewayClientDiagnostics, Pipeline, _virtualNetworkGatewayRestClient.CreateGetFailoverSingleTestDetailsRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, peeringLocation, failoverTestId).Request, response, OperationFinalStateVia.Location); + if (waitUntil == WaitUntil.Completed) + operation.WaitForCompletion(cancellationToken); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// This operation starts failover simulation on the gateway for the specified peering location + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}/startSiteFailoverTest + /// + /// + /// Operation Id + /// VirtualNetworkGateways_StartExpressRouteSiteFailoverSimulation + /// + /// + /// Default Api Version + /// 2024-05-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. + /// Peering location of the test. + /// The cancellation token to use. + /// is null. + public virtual async Task> StartExpressRouteSiteFailoverSimulationAsync(WaitUntil waitUntil, string peeringLocation, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(peeringLocation, nameof(peeringLocation)); + + using var scope = _virtualNetworkGatewayClientDiagnostics.CreateScope("VirtualNetworkGatewayResource.StartExpressRouteSiteFailoverSimulation"); + scope.Start(); + try + { + var response = await _virtualNetworkGatewayRestClient.StartExpressRouteSiteFailoverSimulationAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, peeringLocation, cancellationToken).ConfigureAwait(false); + var operation = new NetworkArmOperation(new StringOperationSource(), _virtualNetworkGatewayClientDiagnostics, Pipeline, _virtualNetworkGatewayRestClient.CreateStartExpressRouteSiteFailoverSimulationRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, peeringLocation).Request, response, OperationFinalStateVia.Location); + if (waitUntil == WaitUntil.Completed) + await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// This operation starts failover simulation on the gateway for the specified peering location + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}/startSiteFailoverTest + /// + /// + /// Operation Id + /// VirtualNetworkGateways_StartExpressRouteSiteFailoverSimulation + /// + /// + /// Default Api Version + /// 2024-05-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. + /// Peering location of the test. + /// The cancellation token to use. + /// is null. + public virtual ArmOperation StartExpressRouteSiteFailoverSimulation(WaitUntil waitUntil, string peeringLocation, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(peeringLocation, nameof(peeringLocation)); + + using var scope = _virtualNetworkGatewayClientDiagnostics.CreateScope("VirtualNetworkGatewayResource.StartExpressRouteSiteFailoverSimulation"); + scope.Start(); + try + { + var response = _virtualNetworkGatewayRestClient.StartExpressRouteSiteFailoverSimulation(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, peeringLocation, cancellationToken); + var operation = new NetworkArmOperation(new StringOperationSource(), _virtualNetworkGatewayClientDiagnostics, Pipeline, _virtualNetworkGatewayRestClient.CreateStartExpressRouteSiteFailoverSimulationRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, peeringLocation).Request, response, OperationFinalStateVia.Location); + if (waitUntil == WaitUntil.Completed) + operation.WaitForCompletion(cancellationToken); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// This operation stops failover simulation on the gateway for the specified peering location + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}/stopSiteFailoverTest + /// + /// + /// Operation Id + /// VirtualNetworkGateways_StopExpressRouteSiteFailoverSimulation + /// + /// + /// Default Api Version + /// 2024-05-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. + /// Virtual network gateway stop simulation parameters supplied to stop failover simulation on gateway. + /// The cancellation token to use. + /// is null. + public virtual async Task> StopExpressRouteSiteFailoverSimulationAsync(WaitUntil waitUntil, ExpressRouteFailoverStopApiContent content, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(content, nameof(content)); + + using var scope = _virtualNetworkGatewayClientDiagnostics.CreateScope("VirtualNetworkGatewayResource.StopExpressRouteSiteFailoverSimulation"); + scope.Start(); + try + { + var response = await _virtualNetworkGatewayRestClient.StopExpressRouteSiteFailoverSimulationAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, content, cancellationToken).ConfigureAwait(false); + var operation = new NetworkArmOperation(new StringOperationSource(), _virtualNetworkGatewayClientDiagnostics, Pipeline, _virtualNetworkGatewayRestClient.CreateStopExpressRouteSiteFailoverSimulationRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, content).Request, response, OperationFinalStateVia.Location); + if (waitUntil == WaitUntil.Completed) + await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// This operation stops failover simulation on the gateway for the specified peering location + /// + /// + /// Request Path + /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworkGateways/{virtualNetworkGatewayName}/stopSiteFailoverTest + /// + /// + /// Operation Id + /// VirtualNetworkGateways_StopExpressRouteSiteFailoverSimulation + /// + /// + /// Default Api Version + /// 2024-05-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. + /// Virtual network gateway stop simulation parameters supplied to stop failover simulation on gateway. + /// The cancellation token to use. + /// is null. + public virtual ArmOperation StopExpressRouteSiteFailoverSimulation(WaitUntil waitUntil, ExpressRouteFailoverStopApiContent content, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(content, nameof(content)); + + using var scope = _virtualNetworkGatewayClientDiagnostics.CreateScope("VirtualNetworkGatewayResource.StopExpressRouteSiteFailoverSimulation"); + scope.Start(); + try + { + var response = _virtualNetworkGatewayRestClient.StopExpressRouteSiteFailoverSimulation(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, content, cancellationToken); + var operation = new NetworkArmOperation(new StringOperationSource(), _virtualNetworkGatewayClientDiagnostics, Pipeline, _virtualNetworkGatewayRestClient.CreateStopExpressRouteSiteFailoverSimulationRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, content).Request, response, OperationFinalStateVia.Location); + if (waitUntil == WaitUntil.Completed) + operation.WaitForCompletion(cancellationToken); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + /// /// Get VPN client connection health detail per P2S client connection of the virtual network gateway in the specified resource group. /// @@ -1619,7 +1993,7 @@ public virtual ArmOperation StopPacketCapture(WaitUntil waitUntil, VpnPa /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -1661,7 +2035,7 @@ public virtual async Task /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -1703,7 +2077,7 @@ public virtual ArmOperation GetVpncli /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -1749,7 +2123,7 @@ public virtual async Task DisconnectVirtualNetworkGatewayVpnConnec /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -1795,7 +2169,7 @@ public virtual ArmOperation DisconnectVirtualNetworkGatewayVpnConnections(WaitUn /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -1857,7 +2231,7 @@ public virtual async Task> AddTagAsync(s /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -1919,7 +2293,7 @@ public virtual Response AddTag(string key, string /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -1976,7 +2350,7 @@ public virtual async Task> SetTagsAsync( /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -2033,7 +2407,7 @@ public virtual Response SetTags(IDictionary /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -2093,7 +2467,7 @@ public virtual async Task> RemoveTagAsyn /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualNetworkPeeringCollection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualNetworkPeeringCollection.cs index 7201840f976a..b44ec1ead0d4 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualNetworkPeeringCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualNetworkPeeringCollection.cs @@ -65,7 +65,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -115,7 +115,7 @@ public virtual async Task> CreateOrU /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -165,7 +165,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUn /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -210,7 +210,7 @@ public virtual async Task> GetAsync(stri /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -255,7 +255,7 @@ public virtual Response Get(string virtualNetwork /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -285,7 +285,7 @@ public virtual AsyncPageable GetAllAsync(Cancella /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -315,7 +315,7 @@ public virtual Pageable GetAll(CancellationToken /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -358,7 +358,7 @@ public virtual async Task> ExistsAsync(string virtualNetworkPeeri /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -401,7 +401,7 @@ public virtual Response Exists(string virtualNetworkPeeringName, Cancellat /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -446,7 +446,7 @@ public virtual async Task> GetIf /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualNetworkPeeringData.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualNetworkPeeringData.cs index f3445d8c605a..7ed78fd17796 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualNetworkPeeringData.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualNetworkPeeringData.cs @@ -102,57 +102,13 @@ public ResourceIdentifier RemoteVirtualNetworkId } /// The local address space of the local virtual network that is peered. - internal AddressSpace LocalAddressSpace { get; set; } - /// A list of address blocks reserved for this virtual network in CIDR notation. - public IList LocalAddressPrefixes - { - get - { - if (LocalAddressSpace is null) - LocalAddressSpace = new AddressSpace(); - return LocalAddressSpace.AddressPrefixes; - } - } - + public AddressSpace LocalAddressSpace { get; set; } /// The current local address space of the local virtual network that is peered. - internal AddressSpace LocalVirtualNetworkAddressSpace { get; set; } - /// A list of address blocks reserved for this virtual network in CIDR notation. - public IList LocalVirtualNetworkAddressPrefixes - { - get - { - if (LocalVirtualNetworkAddressSpace is null) - LocalVirtualNetworkAddressSpace = new AddressSpace(); - return LocalVirtualNetworkAddressSpace.AddressPrefixes; - } - } - + public AddressSpace LocalVirtualNetworkAddressSpace { get; set; } /// The reference to the address space peered with the remote virtual network. - internal AddressSpace RemoteAddressSpace { get; set; } - /// A list of address blocks reserved for this virtual network in CIDR notation. - public IList RemoteAddressPrefixes - { - get - { - if (RemoteAddressSpace is null) - RemoteAddressSpace = new AddressSpace(); - return RemoteAddressSpace.AddressPrefixes; - } - } - + public AddressSpace RemoteAddressSpace { get; set; } /// The reference to the current address space of the remote virtual network. - internal AddressSpace RemoteVirtualNetworkAddressSpace { get; set; } - /// A list of address blocks reserved for this virtual network in CIDR notation. - public IList RemoteVirtualNetworkAddressPrefixes - { - get - { - if (RemoteVirtualNetworkAddressSpace is null) - RemoteVirtualNetworkAddressSpace = new AddressSpace(); - return RemoteVirtualNetworkAddressSpace.AddressPrefixes; - } - } - + public AddressSpace RemoteVirtualNetworkAddressSpace { get; set; } /// The reference to the remote virtual network's Bgp Communities. public VirtualNetworkBgpCommunities RemoteBgpCommunities { get; set; } /// The reference to the remote virtual network's encryption. diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualNetworkPeeringResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualNetworkPeeringResource.cs index b40a6da35351..93b02003feed 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualNetworkPeeringResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualNetworkPeeringResource.cs @@ -102,7 +102,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -142,7 +142,7 @@ public virtual async Task> GetAsync(Canc /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -182,7 +182,7 @@ public virtual Response Get(CancellationToken can /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -224,7 +224,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -266,7 +266,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -313,7 +313,7 @@ public virtual async Task> UpdateAsy /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualNetworkResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualNetworkResource.cs index e5d3014250bb..35469387b340 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualNetworkResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualNetworkResource.cs @@ -116,7 +116,7 @@ public virtual SubnetCollection GetSubnets() /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -148,7 +148,7 @@ public virtual async Task> GetSubnetAsync(string subnet /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -187,7 +187,7 @@ public virtual VirtualNetworkPeeringCollection GetVirtualNetworkPeerings() /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -218,7 +218,7 @@ public virtual async Task> GetVirtualNet /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -249,7 +249,7 @@ public virtual Response GetVirtualNetworkPeering( /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -290,7 +290,7 @@ public virtual async Task> GetAsync(string expa /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -331,7 +331,7 @@ public virtual Response Get(string expand = null, Cancel /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -373,7 +373,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -415,7 +415,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -457,7 +457,7 @@ public virtual async Task> UpdateAsync(NetworkT /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -499,7 +499,7 @@ public virtual Response Update(NetworkTagsObject network /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -533,7 +533,7 @@ public virtual AsyncPageable GetNetworkManag /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -567,7 +567,7 @@ public virtual Pageable GetNetworkManagerEff /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -601,7 +601,7 @@ public virtual AsyncPageable GetNetworkManagerEf /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -635,7 +635,7 @@ public virtual Pageable GetNetworkManagerEffecti /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -677,7 +677,7 @@ public virtual async Task> CheckIPAddressA /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -719,7 +719,7 @@ public virtual Response CheckIPAddressAvailability( /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -749,7 +749,7 @@ public virtual AsyncPageable GetUsageAsync(CancellationToke /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -779,7 +779,7 @@ public virtual Pageable GetUsage(CancellationToken cancella /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -841,7 +841,7 @@ public virtual async Task> AddTagAsync(string k /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -903,7 +903,7 @@ public virtual Response AddTag(string key, string value, /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -960,7 +960,7 @@ public virtual async Task> SetTagsAsync(IDictio /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -1017,7 +1017,7 @@ public virtual Response SetTags(IDictionary /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -1077,7 +1077,7 @@ public virtual async Task> RemoveTagAsync(strin /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualNetworkTapCollection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualNetworkTapCollection.cs index 555181c32a90..e7b28eb43aee 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualNetworkTapCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualNetworkTapCollection.cs @@ -65,7 +65,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -114,7 +114,7 @@ public virtual async Task> CreateOrUpdat /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -163,7 +163,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -208,7 +208,7 @@ public virtual async Task> GetAsync(string t /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -253,7 +253,7 @@ public virtual Response Get(string tapName, Cancellat /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -283,7 +283,7 @@ public virtual AsyncPageable GetAllAsync(Cancellation /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -313,7 +313,7 @@ public virtual Pageable GetAll(CancellationToken canc /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -356,7 +356,7 @@ public virtual async Task> ExistsAsync(string tapName, Cancellati /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -399,7 +399,7 @@ public virtual Response Exists(string tapName, CancellationToken cancellat /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -444,7 +444,7 @@ public virtual async Task> GetIfExis /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualNetworkTapResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualNetworkTapResource.cs index e67a9630280f..82c664754e4a 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualNetworkTapResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualNetworkTapResource.cs @@ -103,7 +103,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -143,7 +143,7 @@ public virtual async Task> GetAsync(Cancella /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -183,7 +183,7 @@ public virtual Response Get(CancellationToken cancell /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -225,7 +225,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -267,7 +267,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -309,7 +309,7 @@ public virtual async Task> UpdateAsync(Netwo /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -351,7 +351,7 @@ public virtual Response Update(NetworkTagsObject tapP /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -413,7 +413,7 @@ public virtual async Task> AddTagAsync(strin /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -475,7 +475,7 @@ public virtual Response AddTag(string key, string val /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -532,7 +532,7 @@ public virtual async Task> SetTagsAsync(IDic /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -589,7 +589,7 @@ public virtual Response SetTags(IDictionary /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -649,7 +649,7 @@ public virtual async Task> RemoveTagAsync(st /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualRouterCollection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualRouterCollection.cs index 27af96a55b8d..4160bddde374 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualRouterCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualRouterCollection.cs @@ -65,7 +65,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -114,7 +114,7 @@ public virtual async Task> CreateOrUpdateAsy /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -163,7 +163,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil wait /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -209,7 +209,7 @@ public virtual async Task> GetAsync(string virtu /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -255,7 +255,7 @@ public virtual Response Get(string virtualRouterName, str /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -285,7 +285,7 @@ public virtual AsyncPageable GetAllAsync(CancellationToke /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -315,7 +315,7 @@ public virtual Pageable GetAll(CancellationToken cancella /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -359,7 +359,7 @@ public virtual async Task> ExistsAsync(string virtualRouterName, /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -403,7 +403,7 @@ public virtual Response Exists(string virtualRouterName, string expand = n /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -449,7 +449,7 @@ public virtual async Task> GetIfExistsAs /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualRouterPeeringCollection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualRouterPeeringCollection.cs index 524d985ea3d9..758d2b0aafeb 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualRouterPeeringCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualRouterPeeringCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -113,7 +113,7 @@ public virtual async Task> CreateOrUp /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -162,7 +162,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUnt /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -207,7 +207,7 @@ public virtual async Task> GetAsync(strin /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -252,7 +252,7 @@ public virtual Response Get(string peeringName, Ca /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -282,7 +282,7 @@ public virtual AsyncPageable GetAllAsync(Cancellat /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -312,7 +312,7 @@ public virtual Pageable GetAll(CancellationToken c /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -355,7 +355,7 @@ public virtual async Task> ExistsAsync(string peeringName, Cancel /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -398,7 +398,7 @@ public virtual Response Exists(string peeringName, CancellationToken cance /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -443,7 +443,7 @@ public virtual async Task> GetIfE /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualRouterPeeringResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualRouterPeeringResource.cs index 80e5b2103f96..672b7aa09628 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualRouterPeeringResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualRouterPeeringResource.cs @@ -101,7 +101,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -141,7 +141,7 @@ public virtual async Task> GetAsync(Cance /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -181,7 +181,7 @@ public virtual Response Get(CancellationToken canc /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -223,7 +223,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -265,7 +265,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -311,7 +311,7 @@ public virtual async Task> UpdateAsyn /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualRouterResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualRouterResource.cs index 5c92c61973a8..1537b7e8f68e 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualRouterResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualRouterResource.cs @@ -109,7 +109,7 @@ public virtual VirtualRouterPeeringCollection GetVirtualRouterPeerings() /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -140,7 +140,7 @@ public virtual async Task> GetVirtualRout /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -171,7 +171,7 @@ public virtual Response GetVirtualRouterPeering(st /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -212,7 +212,7 @@ public virtual async Task> GetAsync(string expan /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -253,7 +253,7 @@ public virtual Response Get(string expand = null, Cancell /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -295,7 +295,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -337,7 +337,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -383,7 +383,7 @@ public virtual async Task> UpdateAsync(WaitU /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -429,7 +429,7 @@ public virtual ArmOperation Update(WaitUntil waitUntil, V /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -486,7 +486,7 @@ public virtual async Task> AddTagAsync(string ke /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -543,7 +543,7 @@ public virtual Response AddTag(string key, string value, /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -599,7 +599,7 @@ public virtual async Task> SetTagsAsync(IDiction /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -655,7 +655,7 @@ public virtual Response SetTags(IDictionary /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -710,7 +710,7 @@ public virtual async Task> RemoveTagAsync(string /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualWanCollection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualWanCollection.cs index 81fa0b54dfb7..1a2d92e2abcf 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualWanCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualWanCollection.cs @@ -65,7 +65,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -114,7 +114,7 @@ public virtual async Task> CreateOrUpdateAsync( /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -163,7 +163,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil waitUnt /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -208,7 +208,7 @@ public virtual async Task> GetAsync(string virtualW /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -253,7 +253,7 @@ public virtual Response Get(string virtualWanName, Cancellat /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -283,7 +283,7 @@ public virtual AsyncPageable GetAllAsync(CancellationToken c /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -313,7 +313,7 @@ public virtual Pageable GetAll(CancellationToken cancellatio /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -356,7 +356,7 @@ public virtual async Task> ExistsAsync(string virtualWanName, Can /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -399,7 +399,7 @@ public virtual Response Exists(string virtualWanName, CancellationToken ca /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -444,7 +444,7 @@ public virtual async Task> GetIfExistsAsync /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualWanResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualWanResource.cs index a4666ecf360e..e88fee1e18bc 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualWanResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/VirtualWanResource.cs @@ -116,7 +116,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -156,7 +156,7 @@ public virtual async Task> GetAsync(CancellationTok /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -196,7 +196,7 @@ public virtual Response Get(CancellationToken cancellationTo /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -238,7 +238,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -280,7 +280,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -322,7 +322,7 @@ public virtual async Task> UpdateAsync(NetworkTagsO /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -364,7 +364,7 @@ public virtual Response Update(NetworkTagsObject wanParamete /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -402,7 +402,7 @@ public virtual async Task> SupportedSecuri /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -440,7 +440,7 @@ public virtual Response SupportedSecurityProviders( /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -486,7 +486,7 @@ public virtual async Task> GenerateVirtualWanVp /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -532,7 +532,7 @@ public virtual ArmOperation GenerateVirtualWanVpnServerConfi /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// @@ -574,7 +574,7 @@ public virtual async Task DownloadVpnSitesConfigurationAsync(WaitU /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// @@ -616,7 +616,7 @@ public virtual ArmOperation DownloadVpnSitesConfiguration(WaitUntil waitUntil, G /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// @@ -654,7 +654,7 @@ public virtual async Task> GetVpnS /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// @@ -692,7 +692,7 @@ public virtual ArmOperation GetVpnServerConfigu /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -754,7 +754,7 @@ public virtual async Task> AddTagAsync(string key, /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -816,7 +816,7 @@ public virtual Response AddTag(string key, string value, Can /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -873,7 +873,7 @@ public virtual async Task> SetTagsAsync(IDictionary /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -930,7 +930,7 @@ public virtual Response SetTags(IDictionary /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -990,7 +990,7 @@ public virtual async Task> RemoveTagAsync(string ke /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/VpnConnectionCollection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/VpnConnectionCollection.cs index b1b95d0f64fc..2b7a8dce09e0 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/VpnConnectionCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/VpnConnectionCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -113,7 +113,7 @@ public virtual async Task> CreateOrUpdateAsy /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -162,7 +162,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil wait /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -207,7 +207,7 @@ public virtual async Task> GetAsync(string conne /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -252,7 +252,7 @@ public virtual Response Get(string connectionName, Cancel /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -282,7 +282,7 @@ public virtual AsyncPageable GetAllAsync(CancellationToke /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -312,7 +312,7 @@ public virtual Pageable GetAll(CancellationToken cancella /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -355,7 +355,7 @@ public virtual async Task> ExistsAsync(string connectionName, Can /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -398,7 +398,7 @@ public virtual Response Exists(string connectionName, CancellationToken ca /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -443,7 +443,7 @@ public virtual async Task> GetIfExistsAs /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/VpnConnectionResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/VpnConnectionResource.cs index c9cea140027e..cb54a6daf4bc 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/VpnConnectionResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/VpnConnectionResource.cs @@ -109,7 +109,7 @@ public virtual VpnSiteLinkConnectionCollection GetVpnSiteLinkConnections() /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -140,7 +140,7 @@ public virtual async Task> GetVpnSiteLin /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -171,7 +171,7 @@ public virtual Response GetVpnSiteLinkConnection( /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -211,7 +211,7 @@ public virtual async Task> GetAsync(Cancellation /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -251,7 +251,7 @@ public virtual Response Get(CancellationToken cancellatio /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -293,7 +293,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -335,7 +335,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -381,7 +381,7 @@ public virtual async Task> UpdateAsync(WaitU /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -427,7 +427,7 @@ public virtual ArmOperation Update(WaitUntil waitUntil, V /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -470,7 +470,7 @@ public virtual async Task> StartPacketCaptureAsync(WaitUnti /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -513,7 +513,7 @@ public virtual ArmOperation StartPacketCapture(WaitUntil waitUntil, VpnC /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -556,7 +556,7 @@ public virtual async Task> StopPacketCaptureAsync(WaitUntil /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/VpnGatewayCollection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/VpnGatewayCollection.cs index 03078636a5f5..7f5203b5411b 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/VpnGatewayCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/VpnGatewayCollection.cs @@ -65,7 +65,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -114,7 +114,7 @@ public virtual async Task> CreateOrUpdateAsync( /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -163,7 +163,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil waitUnt /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -208,7 +208,7 @@ public virtual async Task> GetAsync(string gatewayN /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -253,7 +253,7 @@ public virtual Response Get(string gatewayName, Cancellation /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -283,7 +283,7 @@ public virtual AsyncPageable GetAllAsync(CancellationToken c /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -313,7 +313,7 @@ public virtual Pageable GetAll(CancellationToken cancellatio /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -356,7 +356,7 @@ public virtual async Task> ExistsAsync(string gatewayName, Cancel /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -399,7 +399,7 @@ public virtual Response Exists(string gatewayName, CancellationToken cance /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -444,7 +444,7 @@ public virtual async Task> GetIfExistsAsync /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/VpnGatewayNatRuleCollection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/VpnGatewayNatRuleCollection.cs index fb0106e69560..be391172c810 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/VpnGatewayNatRuleCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/VpnGatewayNatRuleCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -113,7 +113,7 @@ public virtual async Task> CreateOrUpdat /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -162,7 +162,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -207,7 +207,7 @@ public virtual async Task> GetAsync(string n /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -252,7 +252,7 @@ public virtual Response Get(string natRuleName, Cance /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -282,7 +282,7 @@ public virtual AsyncPageable GetAllAsync(Cancellation /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -312,7 +312,7 @@ public virtual Pageable GetAll(CancellationToken canc /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -355,7 +355,7 @@ public virtual async Task> ExistsAsync(string natRuleName, Cancel /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -398,7 +398,7 @@ public virtual Response Exists(string natRuleName, CancellationToken cance /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -443,7 +443,7 @@ public virtual async Task> GetIfExis /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/VpnGatewayNatRuleResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/VpnGatewayNatRuleResource.cs index be841a8c569a..62373a45ad77 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/VpnGatewayNatRuleResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/VpnGatewayNatRuleResource.cs @@ -101,7 +101,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -141,7 +141,7 @@ public virtual async Task> GetAsync(Cancella /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -181,7 +181,7 @@ public virtual Response Get(CancellationToken cancell /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -223,7 +223,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -265,7 +265,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -311,7 +311,7 @@ public virtual async Task> UpdateAsync(W /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/VpnGatewayResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/VpnGatewayResource.cs index c9167368a40c..25c78f60875d 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/VpnGatewayResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/VpnGatewayResource.cs @@ -110,7 +110,7 @@ public virtual VpnConnectionCollection GetVpnConnections() /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -141,7 +141,7 @@ public virtual async Task> GetVpnConnectionAsync /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -179,7 +179,7 @@ public virtual VpnGatewayNatRuleCollection GetVpnGatewayNatRules() /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -210,7 +210,7 @@ public virtual async Task> GetVpnGatewayNatR /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -241,7 +241,7 @@ public virtual Response GetVpnGatewayNatRule(string n /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -281,7 +281,7 @@ public virtual async Task> GetAsync(CancellationTok /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -321,7 +321,7 @@ public virtual Response Get(CancellationToken cancellationTo /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -363,7 +363,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -405,7 +405,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -451,7 +451,7 @@ public virtual async Task> UpdateAsync(WaitUnti /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -497,7 +497,7 @@ public virtual ArmOperation Update(WaitUntil waitUntil, Netw /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -540,7 +540,7 @@ public virtual async Task> ResetAsync(WaitUntil /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -583,7 +583,7 @@ public virtual ArmOperation Reset(WaitUntil waitUntil, strin /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -626,7 +626,7 @@ public virtual async Task> StartPacketCaptureAsync(WaitUnti /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -669,7 +669,7 @@ public virtual ArmOperation StartPacketCapture(WaitUntil waitUntil, VpnG /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -712,7 +712,7 @@ public virtual async Task> StopPacketCaptureAsync(WaitUntil /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -755,7 +755,7 @@ public virtual ArmOperation StopPacketCapture(WaitUntil waitUntil, VpnGa /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -817,7 +817,7 @@ public virtual async Task> AddTagAsync(string key, /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -879,7 +879,7 @@ public virtual Response AddTag(string key, string value, Can /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -936,7 +936,7 @@ public virtual async Task> SetTagsAsync(IDictionary /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -993,7 +993,7 @@ public virtual Response SetTags(IDictionary /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -1053,7 +1053,7 @@ public virtual async Task> RemoveTagAsync(string ke /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/VpnLinkConnectionSharedKeyResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/VpnLinkConnectionSharedKeyResource.cs index bd1b55b8fedb..602ebbab3394 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/VpnLinkConnectionSharedKeyResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/VpnLinkConnectionSharedKeyResource.cs @@ -102,7 +102,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -142,7 +142,7 @@ public virtual async Task> GetAsync /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -182,7 +182,7 @@ public virtual Response Get(CancellationToke /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -228,7 +228,7 @@ public virtual async Task> Crea /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -274,7 +274,7 @@ public virtual ArmOperation CreateOrUpdate(W /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -312,7 +312,7 @@ public virtual async Task> GetDefau /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/VpnServerConfigurationCollection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/VpnServerConfigurationCollection.cs index 48ac1c2172ae..f002fa31f464 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/VpnServerConfigurationCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/VpnServerConfigurationCollection.cs @@ -65,7 +65,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -114,7 +114,7 @@ public virtual async Task> CreateOr /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -163,7 +163,7 @@ public virtual ArmOperation CreateOrUpdate(WaitU /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -208,7 +208,7 @@ public virtual async Task> GetAsync(str /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -253,7 +253,7 @@ public virtual Response Get(string vpnServerConf /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -283,7 +283,7 @@ public virtual AsyncPageable GetAllAsync(Cancell /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -313,7 +313,7 @@ public virtual Pageable GetAll(CancellationToken /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -356,7 +356,7 @@ public virtual async Task> ExistsAsync(string vpnServerConfigurat /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -399,7 +399,7 @@ public virtual Response Exists(string vpnServerConfigurationName, Cancella /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -444,7 +444,7 @@ public virtual async Task> GetI /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/VpnServerConfigurationPolicyGroupCollection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/VpnServerConfigurationPolicyGroupCollection.cs index 353fc59ef306..36728a7a60d2 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/VpnServerConfigurationPolicyGroupCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/VpnServerConfigurationPolicyGroupCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -113,7 +113,7 @@ public virtual async Task /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -162,7 +162,7 @@ public virtual ArmOperation CreateOrU /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -207,7 +207,7 @@ public virtual async Task> G /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -252,7 +252,7 @@ public virtual Response Get(string co /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -282,7 +282,7 @@ public virtual AsyncPageable GetAllAs /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -312,7 +312,7 @@ public virtual Pageable GetAll(Cancel /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -355,7 +355,7 @@ public virtual async Task> ExistsAsync(string configurationPolicy /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -398,7 +398,7 @@ public virtual Response Exists(string configurationPolicyGroupName, Cancel /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -443,7 +443,7 @@ public virtual async Task /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/VpnServerConfigurationPolicyGroupResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/VpnServerConfigurationPolicyGroupResource.cs index 9d5e126bda02..544cab582d18 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/VpnServerConfigurationPolicyGroupResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/VpnServerConfigurationPolicyGroupResource.cs @@ -101,7 +101,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -141,7 +141,7 @@ public virtual async Task> G /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -181,7 +181,7 @@ public virtual Response Get(Cancellat /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -223,7 +223,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -265,7 +265,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -311,7 +311,7 @@ public virtual async Task /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/VpnServerConfigurationResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/VpnServerConfigurationResource.cs index 7106741862a7..9f19c6d511e8 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/VpnServerConfigurationResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/VpnServerConfigurationResource.cs @@ -110,7 +110,7 @@ public virtual VpnServerConfigurationPolicyGroupCollection GetVpnServerConfigura /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -141,7 +141,7 @@ public virtual async Task> G /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -172,7 +172,7 @@ public virtual Response GetVpnServerC /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -212,7 +212,7 @@ public virtual async Task> GetAsync(Can /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -252,7 +252,7 @@ public virtual Response Get(CancellationToken ca /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -294,7 +294,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -336,7 +336,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -378,7 +378,7 @@ public virtual async Task> UpdateAsync( /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -420,7 +420,7 @@ public virtual Response Update(NetworkTagsObject /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -482,7 +482,7 @@ public virtual async Task> AddTagAsync( /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -544,7 +544,7 @@ public virtual Response AddTag(string key, strin /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -601,7 +601,7 @@ public virtual async Task> SetTagsAsync /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -658,7 +658,7 @@ public virtual Response SetTags(IDictionary /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -718,7 +718,7 @@ public virtual async Task> RemoveTagAsy /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/VpnSiteCollection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/VpnSiteCollection.cs index 2ae85dce8b01..9b4d8c22574b 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/VpnSiteCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/VpnSiteCollection.cs @@ -65,7 +65,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -114,7 +114,7 @@ public virtual async Task> CreateOrUpdateAsync(Wai /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -163,7 +163,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -208,7 +208,7 @@ public virtual async Task> GetAsync(string vpnSiteName /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -253,7 +253,7 @@ public virtual Response Get(string vpnSiteName, CancellationTok /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -283,7 +283,7 @@ public virtual AsyncPageable GetAllAsync(CancellationToken canc /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -313,7 +313,7 @@ public virtual Pageable GetAll(CancellationToken cancellationTo /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -356,7 +356,7 @@ public virtual async Task> ExistsAsync(string vpnSiteName, Cancel /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -399,7 +399,7 @@ public virtual Response Exists(string vpnSiteName, CancellationToken cance /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -444,7 +444,7 @@ public virtual async Task> GetIfExistsAsync(st /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/VpnSiteData.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/VpnSiteData.cs index 1604f4d7341f..a22aaf51f314 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/VpnSiteData.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/VpnSiteData.cs @@ -81,18 +81,7 @@ public ResourceIdentifier VirtualWanId /// The key for vpn-site that can be used for connections. public string SiteKey { get; set; } /// The AddressSpace that contains an array of IP address ranges. - internal AddressSpace AddressSpace { get; set; } - /// A list of address blocks reserved for this virtual network in CIDR notation. - public IList AddressPrefixes - { - get - { - if (AddressSpace is null) - AddressSpace = new AddressSpace(); - return AddressSpace.AddressPrefixes; - } - } - + public AddressSpace AddressSpace { get; set; } /// The set of bgp properties. public BgpSettings BgpProperties { get; set; } /// The provisioning state of the VPN site resource. diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/VpnSiteLinkCollection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/VpnSiteLinkCollection.cs index 48557d236f58..6f4a0a65eae9 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/VpnSiteLinkCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/VpnSiteLinkCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -109,7 +109,7 @@ public virtual async Task> GetAsync(string vpnSite /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -154,7 +154,7 @@ public virtual Response Get(string vpnSiteLinkName, Cancell /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -184,7 +184,7 @@ public virtual AsyncPageable GetAllAsync(CancellationToken /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -214,7 +214,7 @@ public virtual Pageable GetAll(CancellationToken cancellati /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -257,7 +257,7 @@ public virtual async Task> ExistsAsync(string vpnSiteLinkName, Ca /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -300,7 +300,7 @@ public virtual Response Exists(string vpnSiteLinkName, CancellationToken c /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -345,7 +345,7 @@ public virtual async Task> GetIfExistsAsyn /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/VpnSiteLinkConnectionCollection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/VpnSiteLinkConnectionCollection.cs index a4435868c710..c2f109c0ea3c 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/VpnSiteLinkConnectionCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/VpnSiteLinkConnectionCollection.cs @@ -69,7 +69,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -114,7 +114,7 @@ public virtual async Task> GetAsync(stri /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -159,7 +159,7 @@ public virtual Response Get(string linkConnection /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -189,7 +189,7 @@ public virtual AsyncPageable GetAllAsync(Cancella /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -219,7 +219,7 @@ public virtual Pageable GetAll(CancellationToken /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -262,7 +262,7 @@ public virtual async Task> ExistsAsync(string linkConnectionName, /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -305,7 +305,7 @@ public virtual Response Exists(string linkConnectionName, CancellationToke /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -350,7 +350,7 @@ public virtual async Task> GetIf /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/VpnSiteLinkConnectionResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/VpnSiteLinkConnectionResource.cs index 26a6a56c4c0c..dc448bbdaa8b 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/VpnSiteLinkConnectionResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/VpnSiteLinkConnectionResource.cs @@ -114,7 +114,7 @@ public virtual VpnLinkConnectionSharedKeyResource GetVpnLinkConnectionSharedKey( /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -154,7 +154,7 @@ public virtual async Task> GetAsync(Canc /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -194,7 +194,7 @@ public virtual Response Get(CancellationToken can /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -236,7 +236,7 @@ public virtual async Task ResetConnectionVpnLinkConnectionAsync(Wa /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -278,7 +278,7 @@ public virtual ArmOperation ResetConnectionVpnLinkConnection(WaitUntil waitUntil /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -320,7 +320,7 @@ public virtual async Task> GetIkeSasVpnLinkConnectionAsync( /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/VpnSiteLinkResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/VpnSiteLinkResource.cs index 726081dbe706..91f64ee951a1 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/VpnSiteLinkResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/VpnSiteLinkResource.cs @@ -101,7 +101,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -141,7 +141,7 @@ public virtual async Task> GetAsync(CancellationTo /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/VpnSiteResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/VpnSiteResource.cs index 58ad51df0a82..1146c44dc766 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/VpnSiteResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/VpnSiteResource.cs @@ -110,7 +110,7 @@ public virtual VpnSiteLinkCollection GetVpnSiteLinks() /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -141,7 +141,7 @@ public virtual async Task> GetVpnSiteLinkAsync(str /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -172,7 +172,7 @@ public virtual Response GetVpnSiteLink(string vpnSiteLinkNa /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -212,7 +212,7 @@ public virtual async Task> GetAsync(CancellationToken /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -252,7 +252,7 @@ public virtual Response Get(CancellationToken cancellationToken /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -294,7 +294,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -336,7 +336,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -378,7 +378,7 @@ public virtual async Task> UpdateAsync(NetworkTagsObje /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -420,7 +420,7 @@ public virtual Response Update(NetworkTagsObject vpnSiteParamet /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -482,7 +482,7 @@ public virtual async Task> AddTagAsync(string key, str /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -544,7 +544,7 @@ public virtual Response AddTag(string key, string value, Cancel /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -601,7 +601,7 @@ public virtual async Task> SetTagsAsync(IDictionary /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -658,7 +658,7 @@ public virtual Response SetTags(IDictionary tag /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -718,7 +718,7 @@ public virtual async Task> RemoveTagAsync(string key, /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/WebApplicationFirewallPolicyCollection.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/WebApplicationFirewallPolicyCollection.cs index dcb0aef9605f..26f33e2d66da 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/WebApplicationFirewallPolicyCollection.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/WebApplicationFirewallPolicyCollection.cs @@ -65,7 +65,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -116,7 +116,7 @@ public virtual async Task> Cr /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -167,7 +167,7 @@ public virtual ArmOperation CreateOrUpdate /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -212,7 +212,7 @@ public virtual async Task> GetAsy /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -257,7 +257,7 @@ public virtual Response Get(string policyN /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -287,7 +287,7 @@ public virtual AsyncPageable GetAllAsync(C /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -317,7 +317,7 @@ public virtual Pageable GetAll(Cancellatio /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -360,7 +360,7 @@ public virtual async Task> ExistsAsync(string policyName, Cancell /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -403,7 +403,7 @@ public virtual Response Exists(string policyName, CancellationToken cancel /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -448,7 +448,7 @@ public virtual async Task /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/Generated/WebApplicationFirewallPolicyResource.cs b/sdk/network/Azure.ResourceManager.Network/src/Generated/WebApplicationFirewallPolicyResource.cs index af8b41fa4f1e..b19c7719e798 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/Generated/WebApplicationFirewallPolicyResource.cs +++ b/sdk/network/Azure.ResourceManager.Network/src/Generated/WebApplicationFirewallPolicyResource.cs @@ -102,7 +102,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -142,7 +142,7 @@ public virtual async Task> GetAsy /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -182,7 +182,7 @@ public virtual Response Get(CancellationTo /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -224,7 +224,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -266,7 +266,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -314,7 +314,7 @@ public virtual async Task> Up /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -362,7 +362,7 @@ public virtual ArmOperation Update(WaitUnt /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -419,7 +419,7 @@ public virtual async Task> AddTag /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -476,7 +476,7 @@ public virtual Response AddTag(string key, /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -532,7 +532,7 @@ public virtual async Task> SetTag /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -588,7 +588,7 @@ public virtual Response SetTags(IDictionar /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource @@ -643,7 +643,7 @@ public virtual async Task> Remove /// /// /// Default Api Version - /// 2024-03-01 + /// 2024-05-01 /// /// /// Resource diff --git a/sdk/network/Azure.ResourceManager.Network/src/autorest.md b/sdk/network/Azure.ResourceManager.Network/src/autorest.md index a5064459d5ce..729681462c21 100644 --- a/sdk/network/Azure.ResourceManager.Network/src/autorest.md +++ b/sdk/network/Azure.ResourceManager.Network/src/autorest.md @@ -7,7 +7,7 @@ Run `dotnet build /t:GenerateCode` to generate code. azure-arm: true library-name: Network namespace: Azure.ResourceManager.Network -require: https://github.com/Azure/azure-rest-api-specs/blob/738879cc6e1c5569b01130fd69a2587388fc34b3/specification/network/resource-manager/readme.md +require: /mnt/vss/_work/1/s/azure-rest-api-specs/specification/network/resource-manager/readme.md # tag: package-2024-03 output-folder: $(this-folder)/Generated clear-output-folder: true diff --git a/sdk/network/ci.mgmt.yml b/sdk/network/ci.mgmt.yml index edf77de02a49..f69378e6c236 100644 --- a/sdk/network/ci.mgmt.yml +++ b/sdk/network/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/network/ci.mgmt.yml - sdk/network/Azure.ResourceManager.Network/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/network/ci.mgmt.yml + - sdk/network/Azure.ResourceManager.Network/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/networkanalytics/ci.mgmt.yml b/sdk/networkanalytics/ci.mgmt.yml index 9ece072ce867..52934a1bad24 100644 --- a/sdk/networkanalytics/ci.mgmt.yml +++ b/sdk/networkanalytics/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/networkanalytics/ci.mgmt.yml - sdk/networkanalytics/Azure.ResourceManager.NetworkAnalytics/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/networkanalytics/ci.mgmt.yml + - sdk/networkanalytics/Azure.ResourceManager.NetworkAnalytics/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/networkcloud/ci.mgmt.yml b/sdk/networkcloud/ci.mgmt.yml index f6c281af22a9..940f908b8c75 100644 --- a/sdk/networkcloud/ci.mgmt.yml +++ b/sdk/networkcloud/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/networkcloud/ci.mgmt.yml - sdk/networkcloud/Azure.ResourceManager.NetworkCloud/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/networkcloud/ci.mgmt.yml + - sdk/networkcloud/Azure.ResourceManager.NetworkCloud/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/networkfunction/ci.mgmt.yml b/sdk/networkfunction/ci.mgmt.yml index a3c743ef532a..b05cf6e5e1cc 100644 --- a/sdk/networkfunction/ci.mgmt.yml +++ b/sdk/networkfunction/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/networkfunction/ci.mgmt.yml - sdk/networkfunction/Azure.ResourceManager.NetworkFunction/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/networkfunction/ci.mgmt.yml + - sdk/networkfunction/Azure.ResourceManager.NetworkFunction/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/newrelicobservability/ci.mgmt.yml b/sdk/newrelicobservability/ci.mgmt.yml index d01ef74cd749..599cfd845f2c 100644 --- a/sdk/newrelicobservability/ci.mgmt.yml +++ b/sdk/newrelicobservability/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/newrelicobservability/ci.mgmt.yml - sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/newrelicobservability/ci.mgmt.yml + - sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/nginx/ci.mgmt.yml b/sdk/nginx/ci.mgmt.yml index f701b26a561a..39e047ce0015 100644 --- a/sdk/nginx/ci.mgmt.yml +++ b/sdk/nginx/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/nginx/ci.mgmt.yml - sdk/nginx/Azure.ResourceManager.Nginx/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/nginx/ci.mgmt.yml + - sdk/nginx/Azure.ResourceManager.Nginx/ + extends: template: ../../eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/notificationhubs/ci.mgmt.yml b/sdk/notificationhubs/ci.mgmt.yml index ba5a26631dd4..8d9f15f7758b 100644 --- a/sdk/notificationhubs/ci.mgmt.yml +++ b/sdk/notificationhubs/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/notificationhubs/ci.mgmt.yml - sdk/notificationhubs/Azure.ResourceManager.NotificationHubs/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/notificationhubs/ci.mgmt.yml + - sdk/notificationhubs/Azure.ResourceManager.NotificationHubs/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/openenergyplatform/ci.mgmt.yml b/sdk/openenergyplatform/ci.mgmt.yml index 1ab74128b4db..f2394b80f6b9 100644 --- a/sdk/openenergyplatform/ci.mgmt.yml +++ b/sdk/openenergyplatform/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/openenergyplatform/ci.mgmt.yml - sdk/openenergyplatform/Azure.ResourceManager.EnergyServices/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/openenergyplatform/ci.mgmt.yml + - sdk/openenergyplatform/Azure.ResourceManager.EnergyServices/ + extends: template: ../../eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/operationalinsights/ci.mgmt.yml b/sdk/operationalinsights/ci.mgmt.yml index d4c3b61dac40..9e588305c901 100644 --- a/sdk/operationalinsights/ci.mgmt.yml +++ b/sdk/operationalinsights/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/operationalinsights/ci.mgmt.yml - sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/operationalinsights/ci.mgmt.yml + - sdk/operationalinsights/Azure.ResourceManager.OperationalInsights/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/oracle/ci.mgmt.yml b/sdk/oracle/ci.mgmt.yml index ccbd7c096ecf..760950dbd58a 100644 --- a/sdk/oracle/ci.mgmt.yml +++ b/sdk/oracle/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/oracle/ci.mgmt.yml - sdk/oracle/Azure.ResourceManager.OracleDatabase/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/oracle/ci.mgmt.yml + - sdk/oracle/Azure.ResourceManager.OracleDatabase/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/orbital/ci.mgmt.yml b/sdk/orbital/ci.mgmt.yml index 701576d2fa62..2b2102df1da3 100644 --- a/sdk/orbital/ci.mgmt.yml +++ b/sdk/orbital/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/orbital/ci.mgmt.yml - sdk/orbital/Azure.ResourceManager.Orbital/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/orbital/ci.mgmt.yml + - sdk/orbital/Azure.ResourceManager.Orbital/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/paloaltonetworks.ngfw/ci.mgmt.yml b/sdk/paloaltonetworks.ngfw/ci.mgmt.yml index 77dca48de9ef..6348d3109683 100644 --- a/sdk/paloaltonetworks.ngfw/ci.mgmt.yml +++ b/sdk/paloaltonetworks.ngfw/ci.mgmt.yml @@ -1,4 +1,5 @@ trigger: none + pr: branches: include: @@ -11,6 +12,18 @@ pr: - sdk/paloaltonetworks.ngfw/ci.mgmt.yml - sdk/paloaltonetworks.ngfw/Azure.ResourceManager.PaloAltoNetworks.Ngfw/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/paloaltonetworks.ngfw/ci.mgmt.yml + - sdk/paloaltonetworks.ngfw/Azure.ResourceManager.PaloAltoNetworks.Ngfw/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/peering/ci.mgmt.yml b/sdk/peering/ci.mgmt.yml index 4d3d67e73949..cfef409531ee 100644 --- a/sdk/peering/ci.mgmt.yml +++ b/sdk/peering/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/peering/ci.mgmt.yml - sdk/peering/Azure.ResourceManager.Peering/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/peering/ci.mgmt.yml + - sdk/peering/Azure.ResourceManager.Peering/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/playwrighttesting/ci.mgmt.yml b/sdk/playwrighttesting/ci.mgmt.yml index 79addf69162c..b6422b373563 100644 --- a/sdk/playwrighttesting/ci.mgmt.yml +++ b/sdk/playwrighttesting/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/playwrighttesting/ci.mgmt.yml - sdk/playwrighttesting/Azure.ResourceManager.PlaywrightTesting/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/playwrighttesting/ci.mgmt.yml + - sdk/playwrighttesting/Azure.ResourceManager.PlaywrightTesting/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/policyinsights/ci.mgmt.yml b/sdk/policyinsights/ci.mgmt.yml index 56fa5c3ead85..c0fa9e7dd917 100644 --- a/sdk/policyinsights/ci.mgmt.yml +++ b/sdk/policyinsights/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/policyinsights/ci.mgmt.yml - sdk/policyinsights/Azure.ResourceManager.PolicyInsights/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/policyinsights/ci.mgmt.yml + - sdk/policyinsights/Azure.ResourceManager.PolicyInsights/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/postgresql/ci.mgmt.yml b/sdk/postgresql/ci.mgmt.yml index 77dbaed301ba..08dff06cd11f 100644 --- a/sdk/postgresql/ci.mgmt.yml +++ b/sdk/postgresql/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/postgresql/ci.mgmt.yml - sdk/postgresql/Azure.ResourceManager.PostgreSql/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/postgresql/ci.mgmt.yml + - sdk/postgresql/Azure.ResourceManager.PostgreSql/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/powerbidedicated/ci.mgmt.yml b/sdk/powerbidedicated/ci.mgmt.yml index 414f2b8ef0a9..951d3e8d0434 100644 --- a/sdk/powerbidedicated/ci.mgmt.yml +++ b/sdk/powerbidedicated/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/powerbidedicated/ci.mgmt.yml - sdk/powerbidedicated/Azure.ResourceManager.PowerBIDedicated/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/powerbidedicated/ci.mgmt.yml + - sdk/powerbidedicated/Azure.ResourceManager.PowerBIDedicated/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/privatedns/ci.mgmt.yml b/sdk/privatedns/ci.mgmt.yml index 86401f2f9675..31c567bfe408 100644 --- a/sdk/privatedns/ci.mgmt.yml +++ b/sdk/privatedns/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/privatedns/ci.mgmt.yml - sdk/privatedns/Azure.ResourceManager.PrivateDns/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/privatedns/ci.mgmt.yml + - sdk/privatedns/Azure.ResourceManager.PrivateDns/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/providerhub/ci.mgmt.yml b/sdk/providerhub/ci.mgmt.yml index 2c7f6ca61d3f..3de6a7f30b80 100644 --- a/sdk/providerhub/ci.mgmt.yml +++ b/sdk/providerhub/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/providerhub/ci.mgmt.yml - sdk/providerhub/Azure.ResourceManager.ProviderHub/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/providerhub/ci.mgmt.yml + - sdk/providerhub/Azure.ResourceManager.ProviderHub/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/purview/ci.mgmt.yml b/sdk/purview/ci.mgmt.yml index 226718ca583c..d5961aa8833a 100644 --- a/sdk/purview/ci.mgmt.yml +++ b/sdk/purview/ci.mgmt.yml @@ -1,5 +1,6 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -12,6 +13,18 @@ pr: - sdk/purview/ci.mgmt.yml - sdk/purview/Azure.ResourceManager.Purview/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/purview/ci.mgmt.yml + - sdk/purview/Azure.ResourceManager.Purview/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/quantum/ci.mgmt.yml b/sdk/quantum/ci.mgmt.yml index 8562320fa7c7..6ee02d7799bd 100644 --- a/sdk/quantum/ci.mgmt.yml +++ b/sdk/quantum/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/quantum/ci.mgmt.yml - sdk/quantum/Azure.ResourceManager.Quantum/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/quantum/ci.mgmt.yml + - sdk/quantum/Azure.ResourceManager.Quantum/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/qumulo/ci.mgmt.yml b/sdk/qumulo/ci.mgmt.yml index e89c4bea0e70..fe6e1fa253d3 100644 --- a/sdk/qumulo/ci.mgmt.yml +++ b/sdk/qumulo/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/qumulo/ci.mgmt.yml - sdk/qumulo/Azure.ResourceManager.Qumulo/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/qumulo/ci.mgmt.yml + - sdk/qumulo/Azure.ResourceManager.Qumulo/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/quota/ci.mgmt.yml b/sdk/quota/ci.mgmt.yml index f1f545ad13f1..9409730d342e 100644 --- a/sdk/quota/ci.mgmt.yml +++ b/sdk/quota/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/quota/ci.mgmt.yml - sdk/quota/Azure.ResourceManager.Quota/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/quota/ci.mgmt.yml + - sdk/quota/Azure.ResourceManager.Quota/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/recoveryservices-backup/ci.mgmt.yml b/sdk/recoveryservices-backup/ci.mgmt.yml index 5edfd823e3c0..402121c0f72c 100644 --- a/sdk/recoveryservices-backup/ci.mgmt.yml +++ b/sdk/recoveryservices-backup/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/recoveryservices-backup/ci.mgmt.yml - sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/recoveryservices-backup/ci.mgmt.yml + - sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/recoveryservices-datareplication/ci.mgmt.yml b/sdk/recoveryservices-datareplication/ci.mgmt.yml index 2e3966d67a88..143f2e0317c3 100644 --- a/sdk/recoveryservices-datareplication/ci.mgmt.yml +++ b/sdk/recoveryservices-datareplication/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/recoveryservices-datareplication/ci.mgmt.yml - sdk/recoveryservices-datareplication/Azure.ResourceManager.RecoveryServicesDataReplication/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/recoveryservices-datareplication/ci.mgmt.yml + - sdk/recoveryservices-datareplication/Azure.ResourceManager.RecoveryServicesDataReplication/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/recoveryservices-siterecovery/ci.mgmt.yml b/sdk/recoveryservices-siterecovery/ci.mgmt.yml index bded800f3ee2..3a8a3179d5a5 100644 --- a/sdk/recoveryservices-siterecovery/ci.mgmt.yml +++ b/sdk/recoveryservices-siterecovery/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/recoveryservices-siterecovery/ci.mgmt.yml - sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/recoveryservices-siterecovery/ci.mgmt.yml + - sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/recoveryservices/ci.mgmt.yml b/sdk/recoveryservices/ci.mgmt.yml index 0e7e6985f21c..d4a5e482dfa7 100644 --- a/sdk/recoveryservices/ci.mgmt.yml +++ b/sdk/recoveryservices/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/recoveryservices/ci.mgmt.yml - sdk/recoveryservices/Azure.ResourceManager.RecoveryServices/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/recoveryservices/ci.mgmt.yml + - sdk/recoveryservices/Azure.ResourceManager.RecoveryServices/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/redis/ci.mgmt.yml b/sdk/redis/ci.mgmt.yml index 9e6845322580..dfc71e356b87 100644 --- a/sdk/redis/ci.mgmt.yml +++ b/sdk/redis/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/redis/ci.mgmt.yml - sdk/redis/Azure.ResourceManager.Redis/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/redis/ci.mgmt.yml + - sdk/redis/Azure.ResourceManager.Redis/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/redisenterprise/ci.mgmt.yml b/sdk/redisenterprise/ci.mgmt.yml index 93641cfe3983..294ec0377bdf 100644 --- a/sdk/redisenterprise/ci.mgmt.yml +++ b/sdk/redisenterprise/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/redisenterprise/ci.mgmt.yml - sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/redisenterprise/ci.mgmt.yml + - sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/relay/ci.mgmt.yml b/sdk/relay/ci.mgmt.yml index b69a1efbd0f9..fc5a3764ebb5 100644 --- a/sdk/relay/ci.mgmt.yml +++ b/sdk/relay/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/relay/ci.mgmt.yml - sdk/relay/Azure.ResourceManager.Relay/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/relay/ci.mgmt.yml + - sdk/relay/Azure.ResourceManager.Relay/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/reservations/ci.mgmt.yml b/sdk/reservations/ci.mgmt.yml index c46c8c69cd2e..8effbcdd4424 100644 --- a/sdk/reservations/ci.mgmt.yml +++ b/sdk/reservations/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/reservations/ci.mgmt.yml - sdk/reservations/Azure.ResourceManager.Reservations/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/reservations/ci.mgmt.yml + - sdk/reservations/Azure.ResourceManager.Reservations/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/resourceconnector/ci.mgmt.yml b/sdk/resourceconnector/ci.mgmt.yml index 81269b9113c7..149f1805dab4 100644 --- a/sdk/resourceconnector/ci.mgmt.yml +++ b/sdk/resourceconnector/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/resourceconnector/ci.mgmt.yml - sdk/resourceconnector/Azure.ResourceManager.ResourceConnector/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/resourceconnector/ci.mgmt.yml + - sdk/resourceconnector/Azure.ResourceManager.ResourceConnector/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/resourcegraph/ci.mgmt.yml b/sdk/resourcegraph/ci.mgmt.yml index 5abe050f7709..27656bcd16c2 100644 --- a/sdk/resourcegraph/ci.mgmt.yml +++ b/sdk/resourcegraph/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/resourcegraph/ci.mgmt.yml - sdk/resourcegraph/Azure.ResourceManager.ResourceGraph/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/resourcegraph/ci.mgmt.yml + - sdk/resourcegraph/Azure.ResourceManager.ResourceGraph/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/resourcehealth/ci.mgmt.yml b/sdk/resourcehealth/ci.mgmt.yml index fb0a27171a69..bf3868346c7b 100644 --- a/sdk/resourcehealth/ci.mgmt.yml +++ b/sdk/resourcehealth/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/resourcehealth/ci.mgmt.yml - sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/resourcehealth/ci.mgmt.yml + - sdk/resourcehealth/Azure.ResourceManager.ResourceHealth/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/resourcemanager/ci.mgmt.yml b/sdk/resourcemanager/ci.mgmt.yml index 960151044171..8cf462fd6875 100644 --- a/sdk/resourcemanager/ci.mgmt.yml +++ b/sdk/resourcemanager/ci.mgmt.yml @@ -11,198 +11,198 @@ trigger: - sdk/resourcemanager - common/ManagementTestShared - common/ManagementCoreShared - - sdk/advisor/Azure.ResourceManager.Advisor - - sdk/agrifood/Azure.ResourceManager.AgFoodPlatform - - sdk/alertsmanagement/Azure.ResourceManager.AlertsManagement - - sdk/analysisservices/Azure.ResourceManager.Analysis - - sdk/apicenter/Azure.ResourceManager.ApiCenter - - sdk/apimanagement/Azure.ResourceManager.ApiManagement - - sdk/appcomplianceautomation/Azure.ResourceManager.AppComplianceAutomation - - sdk/appconfiguration/Azure.ResourceManager.AppConfiguration - - sdk/applicationinsights/Azure.ResourceManager.ApplicationInsights - - sdk/appplatform/Azure.ResourceManager.AppPlatform - - sdk/arc-scvmm/Azure.ResourceManager.ScVmm - - sdk/astronomer/Azure.ResourceManager.Astro - - sdk/attestation/Azure.ResourceManager.Attestation - - sdk/authorization/Azure.ResourceManager.Authorization - - sdk/automanage/Azure.ResourceManager.Automanage - - sdk/automation/Azure.ResourceManager.Automation - - sdk/avs/Azure.ResourceManager.Avs - - sdk/azurelargeinstance/Azure.ResourceManager.LargeInstance - - sdk/azurestackhci/Azure.ResourceManager.Hci - - sdk/batch/Azure.ResourceManager.Batch - sdk/billing/Azure.ResourceManager.Billing + - sdk/servicenetworking/Azure.ResourceManager.ServiceNetworking + - sdk/orbital/Azure.ResourceManager.Orbital + - sdk/managedservices/Azure.ResourceManager.ManagedServices + - sdk/sphere/Azure.ResourceManager.Sphere + - sdk/iotcentral/Azure.ResourceManager.IotCentral + - sdk/machinelearningservices/Azure.ResourceManager.MachineLearning + - sdk/mediaservices/Azure.ResourceManager.Media + - sdk/healthbot/Azure.ResourceManager.HealthBot + - sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric + - sdk/computeschedule/Azure.ResourceManager.ComputeSchedule + - sdk/marketplaceordering/Azure.ResourceManager.MarketplaceOrdering + - sdk/nginx/Azure.ResourceManager.Nginx + - sdk/informaticadatamanagement/Azure.ResourceManager.InformaticaDataManagement + - sdk/digitaltwins/Azure.ResourceManager.DigitalTwins + - sdk/springappdiscovery/Azure.ResourceManager.SpringAppDiscovery + - sdk/mongocluster/Azure.ResourceManager.MongoCluster + - sdk/openenergyplatform/Azure.ResourceManager.EnergyServices + - sdk/iot/Azure.ResourceManager.IotFirmwareDefense + - sdk/support/Azure.ResourceManager.Support + - sdk/appplatform/Azure.ResourceManager.AppPlatform + - sdk/dynatrace/Azure.ResourceManager.Dynatrace - sdk/billingbenefits/Azure.ResourceManager.BillingBenefits + - sdk/storagesync/Azure.ResourceManager.StorageSync + - sdk/extendedlocation/Azure.ResourceManager.ExtendedLocations + - sdk/qumulo/Azure.ResourceManager.Qumulo - sdk/blueprint/Azure.ResourceManager.Blueprint + - sdk/databoxedge/Azure.ResourceManager.DataBoxEdge - sdk/botservice/Azure.ResourceManager.BotService - - sdk/cdn/Azure.ResourceManager.Cdn - - sdk/changeanalysis/Azure.ResourceManager.ChangeAnalysis - - sdk/chaos/Azure.ResourceManager.Chaos - - sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices - - sdk/communication/Azure.ResourceManager.Communication - - sdk/compute/Azure.ResourceManager.Compute - - sdk/computefleet/Azure.ResourceManager.ComputeFleet - - sdk/computeschedule/Azure.ResourceManager.ComputeSchedule - - sdk/confidentialledger/Azure.ResourceManager.ConfidentialLedger + - sdk/network/Azure.ResourceManager.Network + - sdk/voiceservices/Azure.ResourceManager.VoiceServices + - sdk/azurestackhci/Azure.ResourceManager.Hci + - sdk/storagecache/Azure.ResourceManager.StorageCache + - sdk/machinelearningcompute/Azure.ResourceManager.MachineLearningCompute + - sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity + - sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability + - sdk/quantum/Azure.ResourceManager.Quantum + - sdk/devcenter/Azure.ResourceManager.DevCenter + - sdk/resourcemover/Azure.ResourceManager.ResourceMover + - sdk/edgeorder/Azure.ResourceManager.EdgeOrder + - sdk/selfhelp/Azure.ResourceManager.SelfHelp + - sdk/recoveryservices/Azure.ResourceManager.RecoveryServices + - sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate + - sdk/graphservices/Azure.ResourceManager.GraphServices + - sdk/labservices/Azure.ResourceManager.LabServices - sdk/confluent/Azure.ResourceManager.Confluent - - sdk/connectedvmwarevsphere/Azure.ResourceManager.ConnectedVMwarevSphere - - sdk/consumption/Azure.ResourceManager.Consumption - - sdk/containerapps/Azure.ResourceManager.AppContainers - - sdk/containerinstance/Azure.ResourceManager.ContainerInstance - - sdk/containerorchestratorruntime/Azure.ResourceManager.ContainerOrchestratorRuntime - - sdk/containerregistry/Azure.ResourceManager.ContainerRegistry - - sdk/containerservice/Azure.ResourceManager.ContainerService - - sdk/cosmosdb/Azure.ResourceManager.CosmosDB - - sdk/cosmosdbforpostgresql/Azure.ResourceManager.CosmosDBForPostgreSql + - sdk/trafficmanager/Azure.ResourceManager.TrafficManager + - sdk/workloadmonitor/Azure.ResourceManager.WorkloadMonitor + - sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics + - sdk/agrifood/Azure.ResourceManager.AgFoodPlatform - sdk/costmanagement/Azure.ResourceManager.CostManagement + - sdk/networkanalytics/Azure.ResourceManager.NetworkAnalytics + - sdk/hardwaresecuritymodules/Azure.ResourceManager.HardwareSecurityModules + - sdk/fluidrelay/Azure.ResourceManager.FluidRelay + - sdk/standbypool/Azure.ResourceManager.StandbyPool + - sdk/quota/Azure.ResourceManager.Quota + - sdk/servicelinker/Azure.ResourceManager.ServiceLinker + - sdk/search/Azure.ResourceManager.Search + - sdk/powerbidedicated/Azure.ResourceManager.PowerBIDedicated + - sdk/servicebus/Azure.ResourceManager.ServiceBus + - sdk/keyvault/Azure.ResourceManager.KeyVault + - sdk/paloaltonetworks.ngfw/Azure.ResourceManager.PaloAltoNetworks.Ngfw + - sdk/hdinsight/Azure.ResourceManager.HDInsight + - sdk/storagepool/Azure.ResourceManager.StoragePool + - sdk/attestation/Azure.ResourceManager.Attestation + - sdk/devtestlabs/Azure.ResourceManager.DevTestLabs + - sdk/deviceregistry/Azure.ResourceManager.DeviceRegistry + - sdk/analysisservices/Azure.ResourceManager.Analysis + - sdk/authorization/Azure.ResourceManager.Authorization + - sdk/elastic/Azure.ResourceManager.Elastic + - sdk/fleet/Azure.ResourceManager.ContainerServiceFleet + - sdk/arc-scvmm/Azure.ResourceManager.ScVmm + - sdk/computefleet/Azure.ResourceManager.ComputeFleet + - sdk/websites/Azure.ResourceManager.AppService + - sdk/providerhub/Azure.ResourceManager.ProviderHub + - sdk/logic/Azure.ResourceManager.Logic + - sdk/hybridaks/Azure.ResourceManager.HybridContainerService + - sdk/storagemover/Azure.ResourceManager.StorageMover + - sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters + - sdk/guestconfiguration/Azure.ResourceManager.GuestConfiguration + - sdk/defendereasm/Azure.ResourceManager.DefenderEasm + - sdk/mixedreality/Azure.ResourceManager.MixedReality + - sdk/dns/Azure.ResourceManager.Dns + - sdk/managementpartner/Azure.ResourceManager.ManagementPartner + - sdk/servicefabric/Azure.ResourceManager.ServiceFabric + - sdk/migrationdiscoverysap/Azure.ResourceManager.MigrationDiscoverySap + - sdk/sqlvirtualmachine/Azure.ResourceManager.SqlVirtualMachine + - sdk/storage/Azure.ResourceManager.Storage + - sdk/apimanagement/Azure.ResourceManager.ApiManagement + - sdk/frontdoor/Azure.ResourceManager.FrontDoor + - sdk/datashare/Azure.ResourceManager.DataShare + - sdk/synapse/Azure.ResourceManager.Synapse + - sdk/compute/Azure.ResourceManager.Compute + - sdk/automation/Azure.ResourceManager.Automation + - sdk/networkcloud/Azure.ResourceManager.NetworkCloud + - sdk/fabric/Azure.ResourceManager.Fabric + - sdk/cosmosdbforpostgresql/Azure.ResourceManager.CosmosDBForPostgreSql + - sdk/storageactions/Azure.ResourceManager.StorageActions + - sdk/alertsmanagement/Azure.ResourceManager.AlertsManagement + - sdk/eventgrid/Azure.ResourceManager.EventGrid + - sdk/terraform/Azure.ResourceManager.Terraform + - sdk/monitor/Azure.ResourceManager.Monitor + - sdk/oracle/Azure.ResourceManager.OracleDatabase + - sdk/redis/Azure.ResourceManager.Redis + - sdk/cdn/Azure.ResourceManager.Cdn + - sdk/securitydevops/Azure.ResourceManager.SecurityDevOps + - sdk/batch/Azure.ResourceManager.Batch + - sdk/containerinstance/Azure.ResourceManager.ContainerInstance + - sdk/devspaces/Azure.ResourceManager.DevSpaces - sdk/customer-insights/Azure.ResourceManager.CustomerInsights - - sdk/databox/Azure.ResourceManager.DataBox - - sdk/databoxedge/Azure.ResourceManager.DataBoxEdge + - sdk/hybridkubernetes/Azure.ResourceManager.Kubernetes + - sdk/advisor/Azure.ResourceManager.Advisor + - sdk/securitycenter/Azure.ResourceManager.SecurityCenter + - sdk/postgresql/Azure.ResourceManager.PostgreSql + - sdk/resourceconnector/Azure.ResourceManager.ResourceConnector + - sdk/maps/Azure.ResourceManager.Maps + - sdk/communication/Azure.ResourceManager.Communication + - sdk/subscription/Azure.ResourceManager.Subscription + - sdk/iothub/Azure.ResourceManager.IotHub + - sdk/policyinsights/Azure.ResourceManager.PolicyInsights - sdk/datadog/Azure.ResourceManager.Datadog - - sdk/datafactory/Azure.ResourceManager.DataFactory - - sdk/datalake-analytics/Azure.ResourceManager.DataLakeAnalytics + - sdk/containerapps/Azure.ResourceManager.AppContainers + - sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices - sdk/datalake-store/Azure.ResourceManager.DataLakeStore - - sdk/datamigration/Azure.ResourceManager.DataMigration + - sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup + - sdk/devopsinfrastructure/Azure.ResourceManager.DevOpsInfrastructure - sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup - - sdk/datashare/Azure.ResourceManager.DataShare - - sdk/defendereasm/Azure.ResourceManager.DefenderEasm - - sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization - - sdk/devcenter/Azure.ResourceManager.DevCenter + - sdk/eventhub/Azure.ResourceManager.EventHubs + - sdk/netapp/Azure.ResourceManager.NetApp + - sdk/chaos/Azure.ResourceManager.Chaos + - sdk/containerregistry/Azure.ResourceManager.ContainerRegistry + - sdk/containerorchestratorruntime/Azure.ResourceManager.ContainerOrchestratorRuntime + - sdk/privatedns/Azure.ResourceManager.PrivateDns + - sdk/peering/Azure.ResourceManager.Peering - sdk/deviceprovisioningservices/Azure.ResourceManager.DeviceProvisioningServices - - sdk/deviceregistry/Azure.ResourceManager.DeviceRegistry - - sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate - - sdk/devopsinfrastructure/Azure.ResourceManager.DevOpsInfrastructure - - sdk/devspaces/Azure.ResourceManager.DevSpaces - - sdk/devtestlabs/Azure.ResourceManager.DevTestLabs - - sdk/digitaltwins/Azure.ResourceManager.DigitalTwins - - sdk/dns/Azure.ResourceManager.Dns - - sdk/dnsresolver/Azure.ResourceManager.DnsResolver - - sdk/dynatrace/Azure.ResourceManager.Dynatrace - - sdk/edgeorder/Azure.ResourceManager.EdgeOrder + - sdk/avs/Azure.ResourceManager.Avs - sdk/edgezones/Azure.ResourceManager.EdgeZones - - sdk/elastic/Azure.ResourceManager.Elastic - - sdk/elasticsan/Azure.ResourceManager.ElasticSan - - sdk/eventgrid/Azure.ResourceManager.EventGrid - - sdk/eventhub/Azure.ResourceManager.EventHubs - - sdk/extendedlocation/Azure.ResourceManager.ExtendedLocations - - sdk/fabric/Azure.ResourceManager.Fabric - - sdk/fleet/Azure.ResourceManager.ContainerServiceFleet - - sdk/fluidrelay/Azure.ResourceManager.FluidRelay - - sdk/frontdoor/Azure.ResourceManager.FrontDoor + - sdk/signalr/Azure.ResourceManager.SignalR + - sdk/automanage/Azure.ResourceManager.Automanage + - sdk/databox/Azure.ResourceManager.DataBox + - sdk/datalake-analytics/Azure.ResourceManager.DataLakeAnalytics + - sdk/healthcareapis/Azure.ResourceManager.HealthcareApis + - sdk/marketplace/Azure.ResourceManager.Marketplace + - sdk/resourcehealth/Azure.ResourceManager.ResourceHealth + - sdk/managednetwork/Azure.ResourceManager.ManagedNetwork - sdk/grafana/Azure.ResourceManager.Grafana - - sdk/graphservices/Azure.ResourceManager.GraphServices - - sdk/guestconfiguration/Azure.ResourceManager.GuestConfiguration - - sdk/hardwaresecuritymodules/Azure.ResourceManager.HardwareSecurityModules - - sdk/hdinsight/Azure.ResourceManager.HDInsight + - sdk/trustedsigning/Azure.ResourceManager.TrustedSigning - sdk/hdinsightcontainers/Azure.ResourceManager.HDInsight.Containers - - sdk/healthbot/Azure.ResourceManager.HealthBot - - sdk/healthcareapis/Azure.ResourceManager.HealthcareApis - - sdk/healthdataaiservices/Azure.ResourceManager.HealthDataAIServices - - sdk/hybridaks/Azure.ResourceManager.HybridContainerService - - sdk/hybridcompute/Azure.ResourceManager.HybridCompute - - sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity - - sdk/hybridkubernetes/Azure.ResourceManager.Kubernetes + - sdk/resources/Azure.ResourceManager.Resources + - sdk/networkfunction/Azure.ResourceManager.NetworkFunction + - sdk/confidentialledger/Azure.ResourceManager.ConfidentialLedger - sdk/hybridnetwork/Azure.ResourceManager.HybridNetwork - - sdk/informaticadatamanagement/Azure.ResourceManager.InformaticaDataManagement - - sdk/iot/Azure.ResourceManager.IotFirmwareDefense - - sdk/iotcentral/Azure.ResourceManager.IotCentral - - sdk/iothub/Azure.ResourceManager.IotHub - - sdk/keyvault/Azure.ResourceManager.KeyVault + - sdk/hybridcompute/Azure.ResourceManager.HybridCompute + - sdk/datafactory/Azure.ResourceManager.DataFactory + - sdk/astronomer/Azure.ResourceManager.Astro + - sdk/containerservice/Azure.ResourceManager.ContainerService + - sdk/connectedvmwarevsphere/Azure.ResourceManager.ConnectedVMwarevSphere + - sdk/azurelargeinstance/Azure.ResourceManager.LargeInstance + - sdk/changeanalysis/Azure.ResourceManager.ChangeAnalysis + - sdk/notificationhubs/Azure.ResourceManager.NotificationHubs + - sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery + - sdk/purview/Azure.ResourceManager.Purview - sdk/kubernetesconfiguration/Azure.ResourceManager.KubernetesConfiguration - - sdk/kusto/Azure.ResourceManager.Kusto - - sdk/labservices/Azure.ResourceManager.LabServices - sdk/loadtestservice/Azure.ResourceManager.LoadTesting - - sdk/logic/Azure.ResourceManager.Logic - - sdk/machinelearningcompute/Azure.ResourceManager.MachineLearningCompute - - sdk/machinelearningservices/Azure.ResourceManager.MachineLearning - - sdk/maintenance/Azure.ResourceManager.Maintenance - - sdk/managednetwork/Azure.ResourceManager.ManagedNetwork - - sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric - - sdk/managedserviceidentity/Azure.ResourceManager.ManagedServiceIdentities - - sdk/managedservices/Azure.ResourceManager.ManagedServices - - sdk/managementpartner/Azure.ResourceManager.ManagementPartner - - sdk/maps/Azure.ResourceManager.Maps - - sdk/marketplace/Azure.ResourceManager.Marketplace - - sdk/marketplaceordering/Azure.ResourceManager.MarketplaceOrdering - - sdk/mediaservices/Azure.ResourceManager.Media - - sdk/migrationdiscoverysap/Azure.ResourceManager.MigrationDiscoverySap - - sdk/mixedreality/Azure.ResourceManager.MixedReality - - sdk/mobilenetwork/Azure.ResourceManager.MobileNetwork - - sdk/mongocluster/Azure.ResourceManager.MongoCluster - - sdk/monitor/Azure.ResourceManager.Monitor - - sdk/mysql/Azure.ResourceManager.MySql + - sdk/appcomplianceautomation/Azure.ResourceManager.AppComplianceAutomation + - sdk/appconfiguration/Azure.ResourceManager.AppConfiguration + - sdk/reservations/Azure.ResourceManager.Reservations - sdk/neonpostgres/Azure.ResourceManager.NeonPostgres - - sdk/netapp/Azure.ResourceManager.NetApp - - sdk/network/Azure.ResourceManager.Network - - sdk/networkanalytics/Azure.ResourceManager.NetworkAnalytics - - sdk/networkcloud/Azure.ResourceManager.NetworkCloud - - sdk/networkfunction/Azure.ResourceManager.NetworkFunction - - sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability - - sdk/nginx/Azure.ResourceManager.Nginx - - sdk/notificationhubs/Azure.ResourceManager.NotificationHubs - - sdk/openenergyplatform/Azure.ResourceManager.EnergyServices + - sdk/healthdataaiservices/Azure.ResourceManager.HealthDataAIServices + - sdk/maintenance/Azure.ResourceManager.Maintenance + - sdk/elasticsan/Azure.ResourceManager.ElasticSan - sdk/operationalinsights/Azure.ResourceManager.OperationalInsights - - sdk/oracle/Azure.ResourceManager.OracleDatabase - - sdk/orbital/Azure.ResourceManager.Orbital - - sdk/paloaltonetworks.ngfw/Azure.ResourceManager.PaloAltoNetworks.Ngfw - - sdk/peering/Azure.ResourceManager.Peering - - sdk/playwrighttesting/Azure.ResourceManager.PlaywrightTesting - - sdk/policyinsights/Azure.ResourceManager.PolicyInsights - - sdk/postgresql/Azure.ResourceManager.PostgreSql - - sdk/powerbidedicated/Azure.ResourceManager.PowerBIDedicated - - sdk/privatedns/Azure.ResourceManager.PrivateDns - - sdk/providerhub/Azure.ResourceManager.ProviderHub - - sdk/purview/Azure.ResourceManager.Purview - - sdk/quantum/Azure.ResourceManager.Quantum - - sdk/qumulo/Azure.ResourceManager.Qumulo - - sdk/quota/Azure.ResourceManager.Quota - - sdk/recoveryservices/Azure.ResourceManager.RecoveryServices - - sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup - - sdk/recoveryservices-datareplication/Azure.ResourceManager.RecoveryServicesDataReplication - - sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery - - sdk/redis/Azure.ResourceManager.Redis - - sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise + - sdk/cosmosdb/Azure.ResourceManager.CosmosDB - sdk/relay/Azure.ResourceManager.Relay - - sdk/reservations/Azure.ResourceManager.Reservations - - sdk/resourceconnector/Azure.ResourceManager.ResourceConnector - - sdk/resourcegraph/Azure.ResourceManager.ResourceGraph - - sdk/resourcehealth/Azure.ResourceManager.ResourceHealth - - sdk/resourcemover/Azure.ResourceManager.ResourceMover - - sdk/resources/Azure.ResourceManager.Resources - - sdk/search/Azure.ResourceManager.Search - - sdk/securitycenter/Azure.ResourceManager.SecurityCenter - - sdk/securitydevops/Azure.ResourceManager.SecurityDevOps - - sdk/securityinsights/Azure.ResourceManager.SecurityInsights - - sdk/selfhelp/Azure.ResourceManager.SelfHelp - - sdk/servicebus/Azure.ResourceManager.ServiceBus - - sdk/servicefabric/Azure.ResourceManager.ServiceFabric - - sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters - - sdk/servicelinker/Azure.ResourceManager.ServiceLinker - - sdk/servicenetworking/Azure.ResourceManager.ServiceNetworking - - sdk/signalr/Azure.ResourceManager.SignalR - - sdk/sphere/Azure.ResourceManager.Sphere - - sdk/springappdiscovery/Azure.ResourceManager.SpringAppDiscovery - - sdk/sqlmanagement/Azure.ResourceManager.Sql - - sdk/sqlvirtualmachine/Azure.ResourceManager.SqlVirtualMachine - - sdk/standbypool/Azure.ResourceManager.StandbyPool - - sdk/storage/Azure.ResourceManager.Storage - - sdk/storageactions/Azure.ResourceManager.StorageActions - - sdk/storagecache/Azure.ResourceManager.StorageCache - - sdk/storagemover/Azure.ResourceManager.StorageMover - - sdk/storagepool/Azure.ResourceManager.StoragePool - - sdk/storagesync/Azure.ResourceManager.StorageSync - - sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics - - sdk/subscription/Azure.ResourceManager.Subscription - - sdk/support/Azure.ResourceManager.Support - - sdk/synapse/Azure.ResourceManager.Synapse - - sdk/terraform/Azure.ResourceManager.Terraform - - sdk/trafficmanager/Azure.ResourceManager.TrafficManager - - sdk/trustedsigning/Azure.ResourceManager.TrustedSigning - - sdk/voiceservices/Azure.ResourceManager.VoiceServices - - sdk/webpubsub/Azure.ResourceManager.WebPubSub - - sdk/websites/Azure.ResourceManager.AppService - - sdk/workloadmonitor/Azure.ResourceManager.WorkloadMonitor + - sdk/kusto/Azure.ResourceManager.Kusto - sdk/workloads/Azure.ResourceManager.Workloads + - sdk/consumption/Azure.ResourceManager.Consumption + - sdk/webpubsub/Azure.ResourceManager.WebPubSub + - sdk/recoveryservices-datareplication/Azure.ResourceManager.RecoveryServicesDataReplication + - sdk/applicationinsights/Azure.ResourceManager.ApplicationInsights + - sdk/sqlmanagement/Azure.ResourceManager.Sql + - sdk/playwrighttesting/Azure.ResourceManager.PlaywrightTesting + - sdk/dnsresolver/Azure.ResourceManager.DnsResolver + - sdk/mysql/Azure.ResourceManager.MySql + - sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization + - sdk/securityinsights/Azure.ResourceManager.SecurityInsights + - sdk/managedserviceidentity/Azure.ResourceManager.ManagedServiceIdentities + - sdk/resourcegraph/Azure.ResourceManager.ResourceGraph + - sdk/apicenter/Azure.ResourceManager.ApiCenter + - sdk/mobilenetwork/Azure.ResourceManager.MobileNetwork + - sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise + - sdk/datamigration/Azure.ResourceManager.DataMigration pr: branches: @@ -216,198 +216,198 @@ pr: - sdk/resourcemanager - common/ManagementTestShared - common/ManagementCoreShared - - sdk/advisor/Azure.ResourceManager.Advisor + - sdk/billing/Azure.ResourceManager.Billing + - sdk/servicenetworking/Azure.ResourceManager.ServiceNetworking + - sdk/orbital/Azure.ResourceManager.Orbital + - sdk/managedservices/Azure.ResourceManager.ManagedServices + - sdk/sphere/Azure.ResourceManager.Sphere + - sdk/iotcentral/Azure.ResourceManager.IotCentral + - sdk/machinelearningservices/Azure.ResourceManager.MachineLearning + - sdk/mediaservices/Azure.ResourceManager.Media + - sdk/healthbot/Azure.ResourceManager.HealthBot + - sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric + - sdk/computeschedule/Azure.ResourceManager.ComputeSchedule + - sdk/marketplaceordering/Azure.ResourceManager.MarketplaceOrdering + - sdk/nginx/Azure.ResourceManager.Nginx + - sdk/informaticadatamanagement/Azure.ResourceManager.InformaticaDataManagement + - sdk/digitaltwins/Azure.ResourceManager.DigitalTwins + - sdk/springappdiscovery/Azure.ResourceManager.SpringAppDiscovery + - sdk/mongocluster/Azure.ResourceManager.MongoCluster + - sdk/openenergyplatform/Azure.ResourceManager.EnergyServices + - sdk/iot/Azure.ResourceManager.IotFirmwareDefense + - sdk/support/Azure.ResourceManager.Support + - sdk/appplatform/Azure.ResourceManager.AppPlatform + - sdk/dynatrace/Azure.ResourceManager.Dynatrace + - sdk/billingbenefits/Azure.ResourceManager.BillingBenefits + - sdk/storagesync/Azure.ResourceManager.StorageSync + - sdk/extendedlocation/Azure.ResourceManager.ExtendedLocations + - sdk/qumulo/Azure.ResourceManager.Qumulo + - sdk/blueprint/Azure.ResourceManager.Blueprint + - sdk/databoxedge/Azure.ResourceManager.DataBoxEdge + - sdk/botservice/Azure.ResourceManager.BotService + - sdk/network/Azure.ResourceManager.Network + - sdk/voiceservices/Azure.ResourceManager.VoiceServices + - sdk/azurestackhci/Azure.ResourceManager.Hci + - sdk/storagecache/Azure.ResourceManager.StorageCache + - sdk/machinelearningcompute/Azure.ResourceManager.MachineLearningCompute + - sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity + - sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability + - sdk/quantum/Azure.ResourceManager.Quantum + - sdk/devcenter/Azure.ResourceManager.DevCenter + - sdk/resourcemover/Azure.ResourceManager.ResourceMover + - sdk/edgeorder/Azure.ResourceManager.EdgeOrder + - sdk/selfhelp/Azure.ResourceManager.SelfHelp + - sdk/recoveryservices/Azure.ResourceManager.RecoveryServices + - sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate + - sdk/graphservices/Azure.ResourceManager.GraphServices + - sdk/labservices/Azure.ResourceManager.LabServices + - sdk/confluent/Azure.ResourceManager.Confluent + - sdk/trafficmanager/Azure.ResourceManager.TrafficManager + - sdk/workloadmonitor/Azure.ResourceManager.WorkloadMonitor + - sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics - sdk/agrifood/Azure.ResourceManager.AgFoodPlatform - - sdk/alertsmanagement/Azure.ResourceManager.AlertsManagement + - sdk/costmanagement/Azure.ResourceManager.CostManagement + - sdk/networkanalytics/Azure.ResourceManager.NetworkAnalytics + - sdk/hardwaresecuritymodules/Azure.ResourceManager.HardwareSecurityModules + - sdk/fluidrelay/Azure.ResourceManager.FluidRelay + - sdk/standbypool/Azure.ResourceManager.StandbyPool + - sdk/quota/Azure.ResourceManager.Quota + - sdk/servicelinker/Azure.ResourceManager.ServiceLinker + - sdk/search/Azure.ResourceManager.Search + - sdk/powerbidedicated/Azure.ResourceManager.PowerBIDedicated + - sdk/servicebus/Azure.ResourceManager.ServiceBus + - sdk/keyvault/Azure.ResourceManager.KeyVault + - sdk/paloaltonetworks.ngfw/Azure.ResourceManager.PaloAltoNetworks.Ngfw + - sdk/hdinsight/Azure.ResourceManager.HDInsight + - sdk/storagepool/Azure.ResourceManager.StoragePool + - sdk/attestation/Azure.ResourceManager.Attestation + - sdk/devtestlabs/Azure.ResourceManager.DevTestLabs + - sdk/deviceregistry/Azure.ResourceManager.DeviceRegistry - sdk/analysisservices/Azure.ResourceManager.Analysis - - sdk/apicenter/Azure.ResourceManager.ApiCenter + - sdk/authorization/Azure.ResourceManager.Authorization + - sdk/elastic/Azure.ResourceManager.Elastic + - sdk/fleet/Azure.ResourceManager.ContainerServiceFleet + - sdk/arc-scvmm/Azure.ResourceManager.ScVmm + - sdk/computefleet/Azure.ResourceManager.ComputeFleet + - sdk/websites/Azure.ResourceManager.AppService + - sdk/providerhub/Azure.ResourceManager.ProviderHub + - sdk/logic/Azure.ResourceManager.Logic + - sdk/hybridaks/Azure.ResourceManager.HybridContainerService + - sdk/storagemover/Azure.ResourceManager.StorageMover + - sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters + - sdk/guestconfiguration/Azure.ResourceManager.GuestConfiguration + - sdk/defendereasm/Azure.ResourceManager.DefenderEasm + - sdk/mixedreality/Azure.ResourceManager.MixedReality + - sdk/dns/Azure.ResourceManager.Dns + - sdk/managementpartner/Azure.ResourceManager.ManagementPartner + - sdk/servicefabric/Azure.ResourceManager.ServiceFabric + - sdk/migrationdiscoverysap/Azure.ResourceManager.MigrationDiscoverySap + - sdk/sqlvirtualmachine/Azure.ResourceManager.SqlVirtualMachine + - sdk/storage/Azure.ResourceManager.Storage - sdk/apimanagement/Azure.ResourceManager.ApiManagement - - sdk/appcomplianceautomation/Azure.ResourceManager.AppComplianceAutomation - - sdk/appconfiguration/Azure.ResourceManager.AppConfiguration - - sdk/applicationinsights/Azure.ResourceManager.ApplicationInsights - - sdk/appplatform/Azure.ResourceManager.AppPlatform - - sdk/arc-scvmm/Azure.ResourceManager.ScVmm - - sdk/astronomer/Azure.ResourceManager.Astro - - sdk/attestation/Azure.ResourceManager.Attestation - - sdk/authorization/Azure.ResourceManager.Authorization - - sdk/automanage/Azure.ResourceManager.Automanage + - sdk/frontdoor/Azure.ResourceManager.FrontDoor + - sdk/datashare/Azure.ResourceManager.DataShare + - sdk/synapse/Azure.ResourceManager.Synapse + - sdk/compute/Azure.ResourceManager.Compute - sdk/automation/Azure.ResourceManager.Automation - - sdk/avs/Azure.ResourceManager.Avs - - sdk/azurelargeinstance/Azure.ResourceManager.LargeInstance - - sdk/azurestackhci/Azure.ResourceManager.Hci - - sdk/batch/Azure.ResourceManager.Batch - - sdk/billing/Azure.ResourceManager.Billing - - sdk/billingbenefits/Azure.ResourceManager.BillingBenefits - - sdk/blueprint/Azure.ResourceManager.Blueprint - - sdk/botservice/Azure.ResourceManager.BotService + - sdk/networkcloud/Azure.ResourceManager.NetworkCloud + - sdk/fabric/Azure.ResourceManager.Fabric + - sdk/cosmosdbforpostgresql/Azure.ResourceManager.CosmosDBForPostgreSql + - sdk/storageactions/Azure.ResourceManager.StorageActions + - sdk/alertsmanagement/Azure.ResourceManager.AlertsManagement + - sdk/eventgrid/Azure.ResourceManager.EventGrid + - sdk/terraform/Azure.ResourceManager.Terraform + - sdk/monitor/Azure.ResourceManager.Monitor + - sdk/oracle/Azure.ResourceManager.OracleDatabase + - sdk/redis/Azure.ResourceManager.Redis - sdk/cdn/Azure.ResourceManager.Cdn - - sdk/changeanalysis/Azure.ResourceManager.ChangeAnalysis - - sdk/chaos/Azure.ResourceManager.Chaos - - sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices - - sdk/communication/Azure.ResourceManager.Communication - - sdk/compute/Azure.ResourceManager.Compute - - sdk/computefleet/Azure.ResourceManager.ComputeFleet - - sdk/computeschedule/Azure.ResourceManager.ComputeSchedule - - sdk/confidentialledger/Azure.ResourceManager.ConfidentialLedger - - sdk/confluent/Azure.ResourceManager.Confluent - - sdk/connectedvmwarevsphere/Azure.ResourceManager.ConnectedVMwarevSphere - - sdk/consumption/Azure.ResourceManager.Consumption - - sdk/containerapps/Azure.ResourceManager.AppContainers + - sdk/securitydevops/Azure.ResourceManager.SecurityDevOps + - sdk/batch/Azure.ResourceManager.Batch - sdk/containerinstance/Azure.ResourceManager.ContainerInstance - - sdk/containerorchestratorruntime/Azure.ResourceManager.ContainerOrchestratorRuntime - - sdk/containerregistry/Azure.ResourceManager.ContainerRegistry - - sdk/containerservice/Azure.ResourceManager.ContainerService - - sdk/cosmosdb/Azure.ResourceManager.CosmosDB - - sdk/cosmosdbforpostgresql/Azure.ResourceManager.CosmosDBForPostgreSql - - sdk/costmanagement/Azure.ResourceManager.CostManagement + - sdk/devspaces/Azure.ResourceManager.DevSpaces - sdk/customer-insights/Azure.ResourceManager.CustomerInsights - - sdk/databox/Azure.ResourceManager.DataBox - - sdk/databoxedge/Azure.ResourceManager.DataBoxEdge + - sdk/hybridkubernetes/Azure.ResourceManager.Kubernetes + - sdk/advisor/Azure.ResourceManager.Advisor + - sdk/securitycenter/Azure.ResourceManager.SecurityCenter + - sdk/postgresql/Azure.ResourceManager.PostgreSql + - sdk/resourceconnector/Azure.ResourceManager.ResourceConnector + - sdk/maps/Azure.ResourceManager.Maps + - sdk/communication/Azure.ResourceManager.Communication + - sdk/subscription/Azure.ResourceManager.Subscription + - sdk/iothub/Azure.ResourceManager.IotHub + - sdk/policyinsights/Azure.ResourceManager.PolicyInsights - sdk/datadog/Azure.ResourceManager.Datadog - - sdk/datafactory/Azure.ResourceManager.DataFactory - - sdk/datalake-analytics/Azure.ResourceManager.DataLakeAnalytics + - sdk/containerapps/Azure.ResourceManager.AppContainers + - sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices - sdk/datalake-store/Azure.ResourceManager.DataLakeStore - - sdk/datamigration/Azure.ResourceManager.DataMigration + - sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup + - sdk/devopsinfrastructure/Azure.ResourceManager.DevOpsInfrastructure - sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup - - sdk/datashare/Azure.ResourceManager.DataShare - - sdk/defendereasm/Azure.ResourceManager.DefenderEasm - - sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization - - sdk/devcenter/Azure.ResourceManager.DevCenter + - sdk/eventhub/Azure.ResourceManager.EventHubs + - sdk/netapp/Azure.ResourceManager.NetApp + - sdk/chaos/Azure.ResourceManager.Chaos + - sdk/containerregistry/Azure.ResourceManager.ContainerRegistry + - sdk/containerorchestratorruntime/Azure.ResourceManager.ContainerOrchestratorRuntime + - sdk/privatedns/Azure.ResourceManager.PrivateDns + - sdk/peering/Azure.ResourceManager.Peering - sdk/deviceprovisioningservices/Azure.ResourceManager.DeviceProvisioningServices - - sdk/deviceregistry/Azure.ResourceManager.DeviceRegistry - - sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate - - sdk/devopsinfrastructure/Azure.ResourceManager.DevOpsInfrastructure - - sdk/devspaces/Azure.ResourceManager.DevSpaces - - sdk/devtestlabs/Azure.ResourceManager.DevTestLabs - - sdk/digitaltwins/Azure.ResourceManager.DigitalTwins - - sdk/dns/Azure.ResourceManager.Dns - - sdk/dnsresolver/Azure.ResourceManager.DnsResolver - - sdk/dynatrace/Azure.ResourceManager.Dynatrace - - sdk/edgeorder/Azure.ResourceManager.EdgeOrder + - sdk/avs/Azure.ResourceManager.Avs - sdk/edgezones/Azure.ResourceManager.EdgeZones - - sdk/elastic/Azure.ResourceManager.Elastic - - sdk/elasticsan/Azure.ResourceManager.ElasticSan - - sdk/eventgrid/Azure.ResourceManager.EventGrid - - sdk/eventhub/Azure.ResourceManager.EventHubs - - sdk/extendedlocation/Azure.ResourceManager.ExtendedLocations - - sdk/fabric/Azure.ResourceManager.Fabric - - sdk/fleet/Azure.ResourceManager.ContainerServiceFleet - - sdk/fluidrelay/Azure.ResourceManager.FluidRelay - - sdk/frontdoor/Azure.ResourceManager.FrontDoor + - sdk/signalr/Azure.ResourceManager.SignalR + - sdk/automanage/Azure.ResourceManager.Automanage + - sdk/databox/Azure.ResourceManager.DataBox + - sdk/datalake-analytics/Azure.ResourceManager.DataLakeAnalytics + - sdk/healthcareapis/Azure.ResourceManager.HealthcareApis + - sdk/marketplace/Azure.ResourceManager.Marketplace + - sdk/resourcehealth/Azure.ResourceManager.ResourceHealth + - sdk/managednetwork/Azure.ResourceManager.ManagedNetwork - sdk/grafana/Azure.ResourceManager.Grafana - - sdk/graphservices/Azure.ResourceManager.GraphServices - - sdk/guestconfiguration/Azure.ResourceManager.GuestConfiguration - - sdk/hardwaresecuritymodules/Azure.ResourceManager.HardwareSecurityModules - - sdk/hdinsight/Azure.ResourceManager.HDInsight + - sdk/trustedsigning/Azure.ResourceManager.TrustedSigning - sdk/hdinsightcontainers/Azure.ResourceManager.HDInsight.Containers - - sdk/healthbot/Azure.ResourceManager.HealthBot - - sdk/healthcareapis/Azure.ResourceManager.HealthcareApis - - sdk/healthdataaiservices/Azure.ResourceManager.HealthDataAIServices - - sdk/hybridaks/Azure.ResourceManager.HybridContainerService - - sdk/hybridcompute/Azure.ResourceManager.HybridCompute - - sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity - - sdk/hybridkubernetes/Azure.ResourceManager.Kubernetes + - sdk/resources/Azure.ResourceManager.Resources + - sdk/networkfunction/Azure.ResourceManager.NetworkFunction + - sdk/confidentialledger/Azure.ResourceManager.ConfidentialLedger - sdk/hybridnetwork/Azure.ResourceManager.HybridNetwork - - sdk/informaticadatamanagement/Azure.ResourceManager.InformaticaDataManagement - - sdk/iot/Azure.ResourceManager.IotFirmwareDefense - - sdk/iotcentral/Azure.ResourceManager.IotCentral - - sdk/iothub/Azure.ResourceManager.IotHub - - sdk/keyvault/Azure.ResourceManager.KeyVault + - sdk/hybridcompute/Azure.ResourceManager.HybridCompute + - sdk/datafactory/Azure.ResourceManager.DataFactory + - sdk/astronomer/Azure.ResourceManager.Astro + - sdk/containerservice/Azure.ResourceManager.ContainerService + - sdk/connectedvmwarevsphere/Azure.ResourceManager.ConnectedVMwarevSphere + - sdk/azurelargeinstance/Azure.ResourceManager.LargeInstance + - sdk/changeanalysis/Azure.ResourceManager.ChangeAnalysis + - sdk/notificationhubs/Azure.ResourceManager.NotificationHubs + - sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery + - sdk/purview/Azure.ResourceManager.Purview - sdk/kubernetesconfiguration/Azure.ResourceManager.KubernetesConfiguration - - sdk/kusto/Azure.ResourceManager.Kusto - - sdk/labservices/Azure.ResourceManager.LabServices - sdk/loadtestservice/Azure.ResourceManager.LoadTesting - - sdk/logic/Azure.ResourceManager.Logic - - sdk/machinelearningcompute/Azure.ResourceManager.MachineLearningCompute - - sdk/machinelearningservices/Azure.ResourceManager.MachineLearning - - sdk/maintenance/Azure.ResourceManager.Maintenance - - sdk/managednetwork/Azure.ResourceManager.ManagedNetwork - - sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric - - sdk/managedserviceidentity/Azure.ResourceManager.ManagedServiceIdentities - - sdk/managedservices/Azure.ResourceManager.ManagedServices - - sdk/managementpartner/Azure.ResourceManager.ManagementPartner - - sdk/maps/Azure.ResourceManager.Maps - - sdk/marketplace/Azure.ResourceManager.Marketplace - - sdk/marketplaceordering/Azure.ResourceManager.MarketplaceOrdering - - sdk/mediaservices/Azure.ResourceManager.Media - - sdk/migrationdiscoverysap/Azure.ResourceManager.MigrationDiscoverySap - - sdk/mixedreality/Azure.ResourceManager.MixedReality - - sdk/mobilenetwork/Azure.ResourceManager.MobileNetwork - - sdk/mongocluster/Azure.ResourceManager.MongoCluster - - sdk/monitor/Azure.ResourceManager.Monitor - - sdk/mysql/Azure.ResourceManager.MySql + - sdk/appcomplianceautomation/Azure.ResourceManager.AppComplianceAutomation + - sdk/appconfiguration/Azure.ResourceManager.AppConfiguration + - sdk/reservations/Azure.ResourceManager.Reservations - sdk/neonpostgres/Azure.ResourceManager.NeonPostgres - - sdk/netapp/Azure.ResourceManager.NetApp - - sdk/network/Azure.ResourceManager.Network - - sdk/networkanalytics/Azure.ResourceManager.NetworkAnalytics - - sdk/networkcloud/Azure.ResourceManager.NetworkCloud - - sdk/networkfunction/Azure.ResourceManager.NetworkFunction - - sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability - - sdk/nginx/Azure.ResourceManager.Nginx - - sdk/notificationhubs/Azure.ResourceManager.NotificationHubs - - sdk/openenergyplatform/Azure.ResourceManager.EnergyServices + - sdk/healthdataaiservices/Azure.ResourceManager.HealthDataAIServices + - sdk/maintenance/Azure.ResourceManager.Maintenance + - sdk/elasticsan/Azure.ResourceManager.ElasticSan - sdk/operationalinsights/Azure.ResourceManager.OperationalInsights - - sdk/oracle/Azure.ResourceManager.OracleDatabase - - sdk/orbital/Azure.ResourceManager.Orbital - - sdk/paloaltonetworks.ngfw/Azure.ResourceManager.PaloAltoNetworks.Ngfw - - sdk/peering/Azure.ResourceManager.Peering - - sdk/playwrighttesting/Azure.ResourceManager.PlaywrightTesting - - sdk/policyinsights/Azure.ResourceManager.PolicyInsights - - sdk/postgresql/Azure.ResourceManager.PostgreSql - - sdk/powerbidedicated/Azure.ResourceManager.PowerBIDedicated - - sdk/privatedns/Azure.ResourceManager.PrivateDns - - sdk/providerhub/Azure.ResourceManager.ProviderHub - - sdk/purview/Azure.ResourceManager.Purview - - sdk/quantum/Azure.ResourceManager.Quantum - - sdk/qumulo/Azure.ResourceManager.Qumulo - - sdk/quota/Azure.ResourceManager.Quota - - sdk/recoveryservices/Azure.ResourceManager.RecoveryServices - - sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup - - sdk/recoveryservices-datareplication/Azure.ResourceManager.RecoveryServicesDataReplication - - sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery - - sdk/redis/Azure.ResourceManager.Redis - - sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise + - sdk/cosmosdb/Azure.ResourceManager.CosmosDB - sdk/relay/Azure.ResourceManager.Relay - - sdk/reservations/Azure.ResourceManager.Reservations - - sdk/resourceconnector/Azure.ResourceManager.ResourceConnector - - sdk/resourcegraph/Azure.ResourceManager.ResourceGraph - - sdk/resourcehealth/Azure.ResourceManager.ResourceHealth - - sdk/resourcemover/Azure.ResourceManager.ResourceMover - - sdk/resources/Azure.ResourceManager.Resources - - sdk/search/Azure.ResourceManager.Search - - sdk/securitycenter/Azure.ResourceManager.SecurityCenter - - sdk/securitydevops/Azure.ResourceManager.SecurityDevOps - - sdk/securityinsights/Azure.ResourceManager.SecurityInsights - - sdk/selfhelp/Azure.ResourceManager.SelfHelp - - sdk/servicebus/Azure.ResourceManager.ServiceBus - - sdk/servicefabric/Azure.ResourceManager.ServiceFabric - - sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters - - sdk/servicelinker/Azure.ResourceManager.ServiceLinker - - sdk/servicenetworking/Azure.ResourceManager.ServiceNetworking - - sdk/signalr/Azure.ResourceManager.SignalR - - sdk/sphere/Azure.ResourceManager.Sphere - - sdk/springappdiscovery/Azure.ResourceManager.SpringAppDiscovery - - sdk/sqlmanagement/Azure.ResourceManager.Sql - - sdk/sqlvirtualmachine/Azure.ResourceManager.SqlVirtualMachine - - sdk/standbypool/Azure.ResourceManager.StandbyPool - - sdk/storage/Azure.ResourceManager.Storage - - sdk/storageactions/Azure.ResourceManager.StorageActions - - sdk/storagecache/Azure.ResourceManager.StorageCache - - sdk/storagemover/Azure.ResourceManager.StorageMover - - sdk/storagepool/Azure.ResourceManager.StoragePool - - sdk/storagesync/Azure.ResourceManager.StorageSync - - sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics - - sdk/subscription/Azure.ResourceManager.Subscription - - sdk/support/Azure.ResourceManager.Support - - sdk/synapse/Azure.ResourceManager.Synapse - - sdk/terraform/Azure.ResourceManager.Terraform - - sdk/trafficmanager/Azure.ResourceManager.TrafficManager - - sdk/trustedsigning/Azure.ResourceManager.TrustedSigning - - sdk/voiceservices/Azure.ResourceManager.VoiceServices - - sdk/webpubsub/Azure.ResourceManager.WebPubSub - - sdk/websites/Azure.ResourceManager.AppService - - sdk/workloadmonitor/Azure.ResourceManager.WorkloadMonitor + - sdk/kusto/Azure.ResourceManager.Kusto - sdk/workloads/Azure.ResourceManager.Workloads + - sdk/consumption/Azure.ResourceManager.Consumption + - sdk/webpubsub/Azure.ResourceManager.WebPubSub + - sdk/recoveryservices-datareplication/Azure.ResourceManager.RecoveryServicesDataReplication + - sdk/applicationinsights/Azure.ResourceManager.ApplicationInsights + - sdk/sqlmanagement/Azure.ResourceManager.Sql + - sdk/playwrighttesting/Azure.ResourceManager.PlaywrightTesting + - sdk/dnsresolver/Azure.ResourceManager.DnsResolver + - sdk/mysql/Azure.ResourceManager.MySql + - sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization + - sdk/securityinsights/Azure.ResourceManager.SecurityInsights + - sdk/managedserviceidentity/Azure.ResourceManager.ManagedServiceIdentities + - sdk/resourcegraph/Azure.ResourceManager.ResourceGraph + - sdk/apicenter/Azure.ResourceManager.ApiCenter + - sdk/mobilenetwork/Azure.ResourceManager.MobileNetwork + - sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise + - sdk/datamigration/Azure.ResourceManager.DataMigration extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml diff --git a/sdk/resourcemover/ci.mgmt.yml b/sdk/resourcemover/ci.mgmt.yml index 519b8a431926..bbb814c6a4f0 100644 --- a/sdk/resourcemover/ci.mgmt.yml +++ b/sdk/resourcemover/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/resourcemover/ci.mgmt.yml - sdk/resourcemover/Azure.ResourceManager.ResourceMover/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/resourcemover/ci.mgmt.yml + - sdk/resourcemover/Azure.ResourceManager.ResourceMover/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/resources/ci.mgmt.yml b/sdk/resources/ci.mgmt.yml index 3fefd5254c85..ff65cb96d07d 100644 --- a/sdk/resources/ci.mgmt.yml +++ b/sdk/resources/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/resources/ci.mgmt.yml - sdk/resources/Azure.ResourceManager.Resources/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/resources/ci.mgmt.yml + - sdk/resources/Azure.ResourceManager.Resources/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/search/ci.mgmt.yml b/sdk/search/ci.mgmt.yml index a8c2a632c1c8..63c0e200644f 100644 --- a/sdk/search/ci.mgmt.yml +++ b/sdk/search/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/search/ci.mgmt.yml - sdk/search/Azure.ResourceManager.Search/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/search/ci.mgmt.yml + - sdk/search/Azure.ResourceManager.Search/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/securitycenter/ci.mgmt.yml b/sdk/securitycenter/ci.mgmt.yml index c728522efab2..6ed8ff4d67a9 100644 --- a/sdk/securitycenter/ci.mgmt.yml +++ b/sdk/securitycenter/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/securitycenter/ci.mgmt.yml - sdk/securitycenter/Azure.ResourceManager.SecurityCenter/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/securitycenter/ci.mgmt.yml + - sdk/securitycenter/Azure.ResourceManager.SecurityCenter/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/securitydevops/ci.mgmt.yml b/sdk/securitydevops/ci.mgmt.yml index c5a54a9ad206..972d98a7376e 100644 --- a/sdk/securitydevops/ci.mgmt.yml +++ b/sdk/securitydevops/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/securitydevops/ci.mgmt.yml - sdk/securitydevops/Azure.ResourceManager.SecurityDevOps/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/securitydevops/ci.mgmt.yml + - sdk/securitydevops/Azure.ResourceManager.SecurityDevOps/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/securityinsights/ci.mgmt.yml b/sdk/securityinsights/ci.mgmt.yml index f1d428ebef90..0659cac2858f 100644 --- a/sdk/securityinsights/ci.mgmt.yml +++ b/sdk/securityinsights/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/securityinsights/ci.mgmt.yml - sdk/securityinsights/Azure.ResourceManager.SecurityInsights/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/securityinsights/ci.mgmt.yml + - sdk/securityinsights/Azure.ResourceManager.SecurityInsights/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/selfhelp/ci.mgmt.yml b/sdk/selfhelp/ci.mgmt.yml index bb6a162210eb..ac13ec845ce7 100644 --- a/sdk/selfhelp/ci.mgmt.yml +++ b/sdk/selfhelp/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/selfhelp/ci.mgmt.yml - sdk/selfhelp/Azure.ResourceManager.SelfHelp/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/selfhelp/ci.mgmt.yml + - sdk/selfhelp/Azure.ResourceManager.SelfHelp/ + extends: template: ../../eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/servicebus/ci.mgmt.yml b/sdk/servicebus/ci.mgmt.yml index 02c45dc88e18..f2ead205ced6 100644 --- a/sdk/servicebus/ci.mgmt.yml +++ b/sdk/servicebus/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/servicebus/ci.mgmt.yml - sdk/servicebus/Azure.ResourceManager.ServiceBus/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/servicebus/ci.mgmt.yml + - sdk/servicebus/Azure.ResourceManager.ServiceBus/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/servicefabric/ci.mgmt.yml b/sdk/servicefabric/ci.mgmt.yml index 430f48c8c87b..afc886a4f7f2 100644 --- a/sdk/servicefabric/ci.mgmt.yml +++ b/sdk/servicefabric/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/servicefabric/ci.mgmt.yml - sdk/servicefabric/Azure.ResourceManager.ServiceFabric/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/servicefabric/ci.mgmt.yml + - sdk/servicefabric/Azure.ResourceManager.ServiceFabric/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/servicefabricmanagedclusters/ci.mgmt.yml b/sdk/servicefabricmanagedclusters/ci.mgmt.yml index e73289f589f4..022ac0f03cd1 100644 --- a/sdk/servicefabricmanagedclusters/ci.mgmt.yml +++ b/sdk/servicefabricmanagedclusters/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/servicefabricmanagedclusters/ci.mgmt.yml - sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/servicefabricmanagedclusters/ci.mgmt.yml + - sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/servicelinker/ci.mgmt.yml b/sdk/servicelinker/ci.mgmt.yml index 77df314e977a..6069e04a3157 100644 --- a/sdk/servicelinker/ci.mgmt.yml +++ b/sdk/servicelinker/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/servicelinker/ci.mgmt.yml - sdk/servicelinker/Azure.ResourceManager.ServiceLinker/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/servicelinker/ci.mgmt.yml + - sdk/servicelinker/Azure.ResourceManager.ServiceLinker/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/servicenetworking/ci.mgmt.yml b/sdk/servicenetworking/ci.mgmt.yml index b2332ae15224..4551f1325475 100644 --- a/sdk/servicenetworking/ci.mgmt.yml +++ b/sdk/servicenetworking/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/servicenetworking/ci.mgmt.yml - sdk/servicenetworking/Azure.ResourceManager.ServiceNetworking/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/servicenetworking/ci.mgmt.yml + - sdk/servicenetworking/Azure.ResourceManager.ServiceNetworking/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/signalr/ci.mgmt.yml b/sdk/signalr/ci.mgmt.yml index c934ed4314fa..f066849c56a1 100644 --- a/sdk/signalr/ci.mgmt.yml +++ b/sdk/signalr/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/signalr/ci.mgmt.yml - sdk/signalr/Azure.ResourceManager.SignalR/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/signalr/ci.mgmt.yml + - sdk/signalr/Azure.ResourceManager.SignalR/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/sphere/ci.mgmt.yml b/sdk/sphere/ci.mgmt.yml index f3f33e9d00f4..749774244735 100644 --- a/sdk/sphere/ci.mgmt.yml +++ b/sdk/sphere/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/sphere/ci.mgmt.yml - sdk/sphere/Azure.ResourceManager.Sphere/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/sphere/ci.mgmt.yml + - sdk/sphere/Azure.ResourceManager.Sphere/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/springappdiscovery/ci.mgmt.yml b/sdk/springappdiscovery/ci.mgmt.yml index 7676386684df..f86c14368089 100644 --- a/sdk/springappdiscovery/ci.mgmt.yml +++ b/sdk/springappdiscovery/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/springappdiscovery/ci.mgmt.yml - sdk/springappdiscovery/Azure.ResourceManager.SpringAppDiscovery/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/springappdiscovery/ci.mgmt.yml + - sdk/springappdiscovery/Azure.ResourceManager.SpringAppDiscovery/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/sqlmanagement/ci.mgmt.yml b/sdk/sqlmanagement/ci.mgmt.yml index da93d03f2d33..8377a2663681 100644 --- a/sdk/sqlmanagement/ci.mgmt.yml +++ b/sdk/sqlmanagement/ci.mgmt.yml @@ -2,6 +2,7 @@ # This file is generated automatically and any changes will be lost. trigger: none + pr: branches: include: @@ -14,6 +15,18 @@ pr: - sdk/sqlmanagement/ci.mgmt.yml - sdk/sqlmanagement/Azure.ResourceManager.Sql/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/sqlmanagement/ci.mgmt.yml + - sdk/sqlmanagement/Azure.ResourceManager.Sql/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/sqlvirtualmachine/ci.mgmt.yml b/sdk/sqlvirtualmachine/ci.mgmt.yml index 28c6192fa86b..049e315855ed 100644 --- a/sdk/sqlvirtualmachine/ci.mgmt.yml +++ b/sdk/sqlvirtualmachine/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/sqlvirtualmachine/ci.mgmt.yml - sdk/sqlvirtualmachine/Azure.ResourceManager.SqlVirtualMachine/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/sqlvirtualmachine/ci.mgmt.yml + - sdk/sqlvirtualmachine/Azure.ResourceManager.SqlVirtualMachine/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/standbypool/ci.mgmt.yml b/sdk/standbypool/ci.mgmt.yml index 0763a516e2c1..54ce1137a123 100644 --- a/sdk/standbypool/ci.mgmt.yml +++ b/sdk/standbypool/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/standbypool/ci.mgmt.yml - sdk/standbypool/Azure.ResourceManager.StandbyPool/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/standbypool/ci.mgmt.yml + - sdk/standbypool/Azure.ResourceManager.StandbyPool/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/storage/ci.mgmt.yml b/sdk/storage/ci.mgmt.yml index 95bc19b325d5..6f05608983be 100644 --- a/sdk/storage/ci.mgmt.yml +++ b/sdk/storage/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/storage/ci.mgmt.yml - sdk/storage/Azure.ResourceManager.Storage/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/storage/ci.mgmt.yml + - sdk/storage/Azure.ResourceManager.Storage/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/storageactions/ci.mgmt.yml b/sdk/storageactions/ci.mgmt.yml index 27062b4565a8..b27838343a2e 100644 --- a/sdk/storageactions/ci.mgmt.yml +++ b/sdk/storageactions/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/storageactions/ci.mgmt.yml - sdk/storageactions/Azure.ResourceManager.StorageActions/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/storageactions/ci.mgmt.yml + - sdk/storageactions/Azure.ResourceManager.StorageActions/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/storagecache/ci.mgmt.yml b/sdk/storagecache/ci.mgmt.yml index c6abf63baf2c..84c922940939 100644 --- a/sdk/storagecache/ci.mgmt.yml +++ b/sdk/storagecache/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/storagecache/ci.mgmt.yml - sdk/storagecache/Azure.ResourceManager.StorageCache/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/storagecache/ci.mgmt.yml + - sdk/storagecache/Azure.ResourceManager.StorageCache/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/storagemover/ci.mgmt.yml b/sdk/storagemover/ci.mgmt.yml index e9055f49e1a9..4e45261a60aa 100644 --- a/sdk/storagemover/ci.mgmt.yml +++ b/sdk/storagemover/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/storagemover/ci.mgmt.yml - sdk/storagemover/Azure.ResourceManager.StorageMover/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/storagemover/ci.mgmt.yml + - sdk/storagemover/Azure.ResourceManager.StorageMover/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/storagepool/ci.mgmt.yml b/sdk/storagepool/ci.mgmt.yml index 2178fc390757..6592a12a262a 100644 --- a/sdk/storagepool/ci.mgmt.yml +++ b/sdk/storagepool/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/storagepool/ci.mgmt.yml - sdk/storagepool/Azure.ResourceManager.StoragePool/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/storagepool/ci.mgmt.yml + - sdk/storagepool/Azure.ResourceManager.StoragePool/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/storagesync/ci.mgmt.yml b/sdk/storagesync/ci.mgmt.yml index a8789947c687..b9fcbb66b30f 100644 --- a/sdk/storagesync/ci.mgmt.yml +++ b/sdk/storagesync/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/storagesync/ci.mgmt.yml - sdk/storagesync/Azure.ResourceManager.StorageSync/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/storagesync/ci.mgmt.yml + - sdk/storagesync/Azure.ResourceManager.StorageSync/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/streamanalytics/ci.mgmt.yml b/sdk/streamanalytics/ci.mgmt.yml index 09d108a1a7d9..860cd851bbd1 100644 --- a/sdk/streamanalytics/ci.mgmt.yml +++ b/sdk/streamanalytics/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/streamanalytics/ci.mgmt.yml - sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/streamanalytics/ci.mgmt.yml + - sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/subscription/ci.mgmt.yml b/sdk/subscription/ci.mgmt.yml index f9067b4c0af3..a00a0e9c56ad 100644 --- a/sdk/subscription/ci.mgmt.yml +++ b/sdk/subscription/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/subscription/ci.mgmt.yml - sdk/subscription/Azure.ResourceManager.Subscription/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/subscription/ci.mgmt.yml + - sdk/subscription/Azure.ResourceManager.Subscription/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/support/ci.mgmt.yml b/sdk/support/ci.mgmt.yml index 5a947c4c4939..d5c857ad8346 100644 --- a/sdk/support/ci.mgmt.yml +++ b/sdk/support/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/support/ci.mgmt.yml - sdk/support/Azure.ResourceManager.Support/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/support/ci.mgmt.yml + - sdk/support/Azure.ResourceManager.Support/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/synapse/ci.mgmt.yml b/sdk/synapse/ci.mgmt.yml index 0a089a504291..18c8132c4803 100644 --- a/sdk/synapse/ci.mgmt.yml +++ b/sdk/synapse/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/synapse/ci.mgmt.yml - sdk/synapse/Azure.ResourceManager.Synapse/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/synapse/ci.mgmt.yml + - sdk/synapse/Azure.ResourceManager.Synapse/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/terraform/ci.mgmt.yml b/sdk/terraform/ci.mgmt.yml index 82c4c1f05a4c..5f7b3d41fb27 100644 --- a/sdk/terraform/ci.mgmt.yml +++ b/sdk/terraform/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/terraform/ci.mgmt.yml - sdk/terraform/Azure.ResourceManager.Terraform/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/terraform/ci.mgmt.yml + - sdk/terraform/Azure.ResourceManager.Terraform/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/trafficmanager/ci.mgmt.yml b/sdk/trafficmanager/ci.mgmt.yml index 528f78b70b96..86b17c08ac4e 100644 --- a/sdk/trafficmanager/ci.mgmt.yml +++ b/sdk/trafficmanager/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/trafficmanager/ci.mgmt.yml - sdk/trafficmanager/Azure.ResourceManager.TrafficManager/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/trafficmanager/ci.mgmt.yml + - sdk/trafficmanager/Azure.ResourceManager.TrafficManager/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/trustedsigning/ci.mgmt.yml b/sdk/trustedsigning/ci.mgmt.yml index 5b67358a4477..07fb171ee416 100644 --- a/sdk/trustedsigning/ci.mgmt.yml +++ b/sdk/trustedsigning/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/trustedsigning/ci.mgmt.yml - sdk/trustedsigning/Azure.ResourceManager.TrustedSigning/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/trustedsigning/ci.mgmt.yml + - sdk/trustedsigning/Azure.ResourceManager.TrustedSigning/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/voiceservices/ci.mgmt.yml b/sdk/voiceservices/ci.mgmt.yml index a914d1640296..64ea2eb63c0f 100644 --- a/sdk/voiceservices/ci.mgmt.yml +++ b/sdk/voiceservices/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/voiceservices/ci.mgmt.yml - sdk/voiceservices/Azure.ResourceManager.VoiceServices/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/voiceservices/ci.mgmt.yml + - sdk/voiceservices/Azure.ResourceManager.VoiceServices/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/webpubsub/ci.mgmt.yml b/sdk/webpubsub/ci.mgmt.yml index 6bcb8439a2b0..a312a96feb5a 100644 --- a/sdk/webpubsub/ci.mgmt.yml +++ b/sdk/webpubsub/ci.mgmt.yml @@ -1,5 +1,6 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -12,6 +13,18 @@ pr: - sdk/webpubsub/ci.mgmt.yml - sdk/webpubsub/Azure.ResourceManager.WebPubSub/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/webpubsub/ci.mgmt.yml + - sdk/webpubsub/Azure.ResourceManager.WebPubSub/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/websites/ci.mgmt.yml b/sdk/websites/ci.mgmt.yml index d67c580bc414..4dbf184acc87 100644 --- a/sdk/websites/ci.mgmt.yml +++ b/sdk/websites/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/websites/ci.mgmt.yml - sdk/websites/Azure.ResourceManager.AppService/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/websites/ci.mgmt.yml + - sdk/websites/Azure.ResourceManager.AppService/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/workloadmonitor/ci.mgmt.yml b/sdk/workloadmonitor/ci.mgmt.yml index 7c6a51fbe75c..e834be340ea9 100644 --- a/sdk/workloadmonitor/ci.mgmt.yml +++ b/sdk/workloadmonitor/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/workloadmonitor/ci.mgmt.yml - sdk/workloadmonitor/Azure.ResourceManager.WorkloadMonitor/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/workloadmonitor/ci.mgmt.yml + - sdk/workloadmonitor/Azure.ResourceManager.WorkloadMonitor/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: diff --git a/sdk/workloads/ci.mgmt.yml b/sdk/workloads/ci.mgmt.yml index e3457d69ceaa..bf3983053473 100644 --- a/sdk/workloads/ci.mgmt.yml +++ b/sdk/workloads/ci.mgmt.yml @@ -1,6 +1,7 @@ # NOTE: Please refer to https://aka.ms/azsdk/engsys/ci-yaml before editing this file. trigger: none + pr: branches: include: @@ -13,6 +14,18 @@ pr: - sdk/workloads/ci.mgmt.yml - sdk/workloads/Azure.ResourceManager.Workloads/ + + branches: + include: + - main + - feature/* + - hotfix/* + - release/* + paths: + include: + - sdk/workloads/ci.mgmt.yml + - sdk/workloads/Azure.ResourceManager.Workloads/ + extends: template: /eng/pipelines/templates/stages/archetype-sdk-client.yml parameters: