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/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/Azure.ResourceManager.Quota/api/Azure.ResourceManager.Quota.net8.0.cs b/sdk/quota/Azure.ResourceManager.Quota/api/Azure.ResourceManager.Quota.net8.0.cs index 4fef80ae5301..9b320dc01dc2 100644 --- a/sdk/quota/Azure.ResourceManager.Quota/api/Azure.ResourceManager.Quota.net8.0.cs +++ b/sdk/quota/Azure.ResourceManager.Quota/api/Azure.ResourceManager.Quota.net8.0.cs @@ -86,51 +86,6 @@ protected CurrentUsagesBaseResource() { } string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } - public partial class GroupQuotaEnforcementCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable - { - protected GroupQuotaEnforcementCollection() { } - public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, Azure.Core.AzureLocation location, Azure.ResourceManager.Quota.GroupQuotaEnforcementData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, Azure.Core.AzureLocation location, Azure.ResourceManager.Quota.GroupQuotaEnforcementData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Exists(Azure.Core.AzureLocation location, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> ExistsAsync(Azure.Core.AzureLocation location, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Get(Azure.Core.AzureLocation location, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Pageable GetAll(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AsyncPageable GetAllAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(Azure.Core.AzureLocation location, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.NullableResponse GetIfExists(Azure.Core.AzureLocation location, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetIfExistsAsync(Azure.Core.AzureLocation location, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } - System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } - System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } - } - public partial class GroupQuotaEnforcementData : Azure.ResourceManager.Models.ResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - public GroupQuotaEnforcementData() { } - public Azure.ResourceManager.Quota.Models.GroupQuotaEnforcementProperties Properties { get { throw null; } set { } } - protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.Quota.GroupQuotaEnforcementData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.Quota.GroupQuotaEnforcementData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } - public partial class GroupQuotaEnforcementResource : Azure.ResourceManager.ArmResource, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - public static readonly Azure.Core.ResourceType ResourceType; - protected GroupQuotaEnforcementResource() { } - public virtual Azure.ResourceManager.Quota.GroupQuotaEnforcementData Data { get { throw null; } } - public virtual bool HasData { get { throw null; } } - public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string managementGroupId, string groupQuotaName, string resourceProviderName, Azure.Core.AzureLocation location) { throw null; } - public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - Azure.ResourceManager.Quota.GroupQuotaEnforcementData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.Quota.GroupQuotaEnforcementData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.Quota.GroupQuotaEnforcementData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.Quota.GroupQuotaEnforcementData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - } public partial class GroupQuotaEntityCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable { protected GroupQuotaEntityCollection() { } @@ -151,7 +106,7 @@ protected GroupQuotaEntityCollection() { } public partial class GroupQuotaEntityData : Azure.ResourceManager.Models.ResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public GroupQuotaEntityData() { } - public Azure.ResourceManager.Quota.Models.GroupQuotaEntityBase Properties { get { throw null; } set { } } + public Azure.ResourceManager.Quota.Models.GroupQuotasEntityProperties Properties { get { throw null; } set { } } protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.ResourceManager.Quota.GroupQuotaEntityData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } @@ -165,19 +120,14 @@ public partial class GroupQuotaEntityResource : Azure.ResourceManager.ArmResourc protected GroupQuotaEntityResource() { } public virtual Azure.ResourceManager.Quota.GroupQuotaEntityData Data { get { throw null; } } public virtual bool HasData { get { throw null; } } - public virtual Azure.ResourceManager.ArmOperation CreateOrUpdateGroupQuotaLimitsRequest(Azure.WaitUntil waitUntil, string resourceProviderName, string resourceName, Azure.ResourceManager.Quota.GroupQuotaRequestStatusData data = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> CreateOrUpdateGroupQuotaLimitsRequestAsync(Azure.WaitUntil waitUntil, string resourceProviderName, string resourceName, Azure.ResourceManager.Quota.GroupQuotaRequestStatusData data = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string managementGroupId, string groupQuotaName) { throw null; } public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response GetGroupQuotaEnforcement(string resourceProviderName, Azure.Core.AzureLocation location, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetGroupQuotaEnforcementAsync(string resourceProviderName, Azure.Core.AzureLocation location, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.ResourceManager.Quota.GroupQuotaEnforcementCollection GetGroupQuotaEnforcements(string resourceProviderName) { throw null; } - public virtual Azure.Response GetGroupQuotaLimit(string resourceProviderName, string resourceName, string filter, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetGroupQuotaLimitAsync(string resourceProviderName, string resourceName, string filter, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.ResourceManager.Quota.GroupQuotaLimitCollection GetGroupQuotaLimits(string resourceProviderName) { throw null; } + public virtual Azure.Response GetGroupQuotaLimitList(string resourceProviderName, Azure.Core.AzureLocation location, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetGroupQuotaLimitListAsync(string resourceProviderName, Azure.Core.AzureLocation location, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.Quota.GroupQuotaLimitListCollection GetGroupQuotaLimitLists() { throw null; } public virtual Azure.Pageable GetGroupQuotaLimitsRequests(string resourceProviderName, string filter, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.AsyncPageable GetGroupQuotaLimitsRequestsAsync(string resourceProviderName, string filter, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response GetGroupQuotaRequestStatus(string requestId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } @@ -189,8 +139,6 @@ protected GroupQuotaEntityResource() { } public virtual System.Threading.Tasks.Task> GetGroupQuotaSubscriptionRequestStatusAsync(string requestId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.ResourceManager.Quota.GroupQuotaSubscriptionRequestStatusCollection GetGroupQuotaSubscriptionRequestStatuses() { throw null; } public virtual Azure.ResourceManager.Quota.GroupQuotaSubscriptionCollection GetGroupQuotaSubscriptions() { throw null; } - public virtual Azure.Pageable GetGroupQuotaUsages(string resourceProviderName, Azure.Core.AzureLocation location, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AsyncPageable GetGroupQuotaUsagesAsync(string resourceProviderName, Azure.Core.AzureLocation location, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } Azure.ResourceManager.Quota.GroupQuotaEntityData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.ResourceManager.Quota.GroupQuotaEntityData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -198,46 +146,44 @@ protected GroupQuotaEntityResource() { } System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.Quota.Models.GroupQuotaEntityPatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.Quota.Models.GroupQuotaEntityPatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.ResourceManager.ArmOperation UpdateGroupQuotaLimitsRequest(Azure.WaitUntil waitUntil, string resourceProviderName, string resourceName, Azure.ResourceManager.Quota.GroupQuotaRequestStatusData data = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> UpdateGroupQuotaLimitsRequestAsync(Azure.WaitUntil waitUntil, string resourceProviderName, string resourceName, Azure.ResourceManager.Quota.GroupQuotaRequestStatusData data = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } } - public partial class GroupQuotaLimitCollection : Azure.ResourceManager.ArmCollection + public partial class GroupQuotaLimitListCollection : Azure.ResourceManager.ArmCollection { - protected GroupQuotaLimitCollection() { } - public virtual Azure.Response Exists(string resourceName, string filter, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> ExistsAsync(string resourceName, string filter, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Get(string resourceName, string filter, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Pageable GetAll(string filter, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AsyncPageable GetAllAsync(string filter, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(string resourceName, string filter, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.NullableResponse GetIfExists(string resourceName, string filter, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetIfExistsAsync(string resourceName, string filter, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + protected GroupQuotaLimitListCollection() { } + public virtual Azure.Response Exists(string resourceProviderName, Azure.Core.AzureLocation location, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> ExistsAsync(string resourceProviderName, Azure.Core.AzureLocation location, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(string resourceProviderName, Azure.Core.AzureLocation location, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(string resourceProviderName, Azure.Core.AzureLocation location, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.NullableResponse GetIfExists(string resourceProviderName, Azure.Core.AzureLocation location, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetIfExistsAsync(string resourceProviderName, Azure.Core.AzureLocation location, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } } - public partial class GroupQuotaLimitData : Azure.ResourceManager.Models.ResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + public partial class GroupQuotaLimitListData : Azure.ResourceManager.Models.ResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { - public GroupQuotaLimitData() { } - public Azure.ResourceManager.Quota.Models.GroupQuotaDetails Properties { get { throw null; } set { } } + public GroupQuotaLimitListData() { } + public Azure.ResourceManager.Quota.Models.GroupQuotaLimitListProperties Properties { get { throw null; } set { } } protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.Quota.GroupQuotaLimitData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.Quota.GroupQuotaLimitData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + Azure.ResourceManager.Quota.GroupQuotaLimitListData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.Quota.GroupQuotaLimitListData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } - public partial class GroupQuotaLimitResource : Azure.ResourceManager.ArmResource, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + public partial class GroupQuotaLimitListResource : Azure.ResourceManager.ArmResource, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public static readonly Azure.Core.ResourceType ResourceType; - protected GroupQuotaLimitResource() { } - public virtual Azure.ResourceManager.Quota.GroupQuotaLimitData Data { get { throw null; } } + protected GroupQuotaLimitListResource() { } + public virtual Azure.ResourceManager.Quota.GroupQuotaLimitListData Data { get { throw null; } } public virtual bool HasData { get { throw null; } } - public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string managementGroupId, string groupQuotaName, string resourceProviderName, string resourceName) { throw null; } - public virtual Azure.Response Get(string filter, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(string filter, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - Azure.ResourceManager.Quota.GroupQuotaLimitData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.Quota.GroupQuotaLimitData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string managementGroupId, string groupQuotaName, string resourceProviderName, Azure.Core.AzureLocation location) { throw null; } + public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + Azure.ResourceManager.Quota.GroupQuotaLimitListData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.Quota.GroupQuotaLimitListData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.Quota.GroupQuotaLimitListData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.Quota.GroupQuotaLimitListData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } } public partial class GroupQuotaRequestStatusCollection : Azure.ResourceManager.ArmCollection { @@ -366,12 +312,14 @@ protected GroupQuotaSubscriptionResource() { } public partial class QuotaAllocationRequestStatusCollection : Azure.ResourceManager.ArmCollection { protected QuotaAllocationRequestStatusCollection() { } - public virtual Azure.Response Exists(string subscriptionId, string groupQuotaName, string allocationId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> ExistsAsync(string subscriptionId, string groupQuotaName, string allocationId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Get(string subscriptionId, string groupQuotaName, string allocationId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(string subscriptionId, string groupQuotaName, string allocationId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.NullableResponse GetIfExists(string subscriptionId, string groupQuotaName, string allocationId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetIfExistsAsync(string subscriptionId, string groupQuotaName, string allocationId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Exists(string allocationId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> ExistsAsync(string allocationId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(string allocationId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetAll(string filter, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetAllAsync(string filter, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(string allocationId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.NullableResponse GetIfExists(string allocationId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetIfExistsAsync(string allocationId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } } public partial class QuotaAllocationRequestStatusData : Azure.ResourceManager.Models.ResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { @@ -393,7 +341,7 @@ public partial class QuotaAllocationRequestStatusResource : Azure.ResourceManage protected QuotaAllocationRequestStatusResource() { } public virtual Azure.ResourceManager.Quota.QuotaAllocationRequestStatusData Data { get { throw null; } } public virtual bool HasData { get { throw null; } } - public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string managementGroupId, string subscriptionId, string groupQuotaName, string allocationId) { throw null; } + public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string managementGroupId, string subscriptionId, string groupQuotaName, string resourceProviderName, string allocationId) { throw null; } public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } Azure.ResourceManager.Quota.QuotaAllocationRequestStatusData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -404,8 +352,6 @@ protected QuotaAllocationRequestStatusResource() { } } public static partial class QuotaExtensions { - public static Azure.ResourceManager.ArmOperation CreateOrUpdateGroupQuotaSubscriptionAllocationRequest(this Azure.ResourceManager.ManagementGroups.ManagementGroupResource managementGroupResource, Azure.WaitUntil waitUntil, string subscriptionId, string groupQuotaName, string resourceProviderName, string resourceName, Azure.ResourceManager.Quota.QuotaAllocationRequestStatusData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static System.Threading.Tasks.Task> CreateOrUpdateGroupQuotaSubscriptionAllocationRequestAsync(this Azure.ResourceManager.ManagementGroups.ManagementGroupResource managementGroupResource, Azure.WaitUntil waitUntil, string subscriptionId, string groupQuotaName, string resourceProviderName, string resourceName, Azure.ResourceManager.Quota.QuotaAllocationRequestStatusData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public static Azure.Response GetCurrentQuotaLimitBase(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier scope, string resourceName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public static System.Threading.Tasks.Task> GetCurrentQuotaLimitBaseAsync(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier scope, string resourceName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public static Azure.ResourceManager.Quota.CurrentQuotaLimitBaseResource GetCurrentQuotaLimitBaseResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } @@ -414,20 +360,17 @@ public static partial class QuotaExtensions public static System.Threading.Tasks.Task> GetCurrentUsagesBaseAsync(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier scope, string resourceName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public static Azure.ResourceManager.Quota.CurrentUsagesBaseResource GetCurrentUsagesBaseResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } public static Azure.ResourceManager.Quota.CurrentUsagesBaseCollection GetCurrentUsagesBases(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier scope) { throw null; } - public static Azure.ResourceManager.Quota.GroupQuotaEnforcementResource GetGroupQuotaEnforcementResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } public static Azure.ResourceManager.Quota.GroupQuotaEntityCollection GetGroupQuotaEntities(this Azure.ResourceManager.ManagementGroups.ManagementGroupResource managementGroupResource) { throw null; } public static Azure.Response GetGroupQuotaEntity(this Azure.ResourceManager.ManagementGroups.ManagementGroupResource managementGroupResource, string groupQuotaName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public static System.Threading.Tasks.Task> GetGroupQuotaEntityAsync(this Azure.ResourceManager.ManagementGroups.ManagementGroupResource managementGroupResource, string groupQuotaName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public static Azure.ResourceManager.Quota.GroupQuotaEntityResource GetGroupQuotaEntityResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } - public static Azure.ResourceManager.Quota.GroupQuotaLimitResource GetGroupQuotaLimitResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } + public static Azure.ResourceManager.Quota.GroupQuotaLimitListResource GetGroupQuotaLimitListResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } public static Azure.ResourceManager.Quota.GroupQuotaRequestStatusResource GetGroupQuotaRequestStatusResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } public static Azure.ResourceManager.Quota.GroupQuotaSubscriptionRequestStatusResource GetGroupQuotaSubscriptionRequestStatusResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } public static Azure.ResourceManager.Quota.GroupQuotaSubscriptionResource GetGroupQuotaSubscriptionResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } - public static Azure.Response GetQuotaAllocationRequestStatus(this Azure.ResourceManager.ManagementGroups.ManagementGroupResource managementGroupResource, string subscriptionId, string groupQuotaName, string allocationId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static System.Threading.Tasks.Task> GetQuotaAllocationRequestStatusAsync(this Azure.ResourceManager.ManagementGroups.ManagementGroupResource managementGroupResource, string subscriptionId, string groupQuotaName, string allocationId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static Azure.ResourceManager.Quota.QuotaAllocationRequestStatusCollection GetQuotaAllocationRequestStatuses(this Azure.ResourceManager.ManagementGroups.ManagementGroupResource managementGroupResource) { throw null; } - public static Azure.Pageable GetQuotaAllocationRequestStatusesByResourceProvider(this Azure.ResourceManager.ManagementGroups.ManagementGroupResource managementGroupResource, string subscriptionId, string groupQuotaName, string resourceProviderName, string filter, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static Azure.AsyncPageable GetQuotaAllocationRequestStatusesByResourceProviderAsync(this Azure.ResourceManager.ManagementGroups.ManagementGroupResource managementGroupResource, string subscriptionId, string groupQuotaName, string resourceProviderName, string filter, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static Azure.Response GetQuotaAllocationRequestStatus(this Azure.ResourceManager.ManagementGroups.ManagementGroupResource managementGroupResource, string subscriptionId, string groupQuotaName, string resourceProviderName, string allocationId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static System.Threading.Tasks.Task> GetQuotaAllocationRequestStatusAsync(this Azure.ResourceManager.ManagementGroups.ManagementGroupResource managementGroupResource, string subscriptionId, string groupQuotaName, string resourceProviderName, string allocationId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static Azure.ResourceManager.Quota.QuotaAllocationRequestStatusCollection GetQuotaAllocationRequestStatuses(this Azure.ResourceManager.ManagementGroups.ManagementGroupResource managementGroupResource, string subscriptionId, string groupQuotaName, string resourceProviderName) { throw null; } public static Azure.ResourceManager.Quota.QuotaAllocationRequestStatusResource GetQuotaAllocationRequestStatusResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } public static Azure.Pageable GetQuotaOperations(this Azure.ResourceManager.Resources.TenantResource tenantResource, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public static Azure.AsyncPageable GetQuotaOperationsAsync(this Azure.ResourceManager.Resources.TenantResource tenantResource, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } @@ -435,12 +378,10 @@ public static partial class QuotaExtensions public static System.Threading.Tasks.Task> GetQuotaRequestDetailAsync(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier scope, string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public static Azure.ResourceManager.Quota.QuotaRequestDetailResource GetQuotaRequestDetailResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } public static Azure.ResourceManager.Quota.QuotaRequestDetailCollection GetQuotaRequestDetails(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier scope) { throw null; } - public static Azure.Response GetSubscriptionQuotaAllocation(this Azure.ResourceManager.ManagementGroups.ManagementGroupResource managementGroupResource, string subscriptionId, string groupQuotaName, string resourceName, string filter, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static System.Threading.Tasks.Task> GetSubscriptionQuotaAllocationAsync(this Azure.ResourceManager.ManagementGroups.ManagementGroupResource managementGroupResource, string subscriptionId, string groupQuotaName, string resourceName, string filter, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static Azure.ResourceManager.Quota.SubscriptionQuotaAllocationResource GetSubscriptionQuotaAllocationResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } - public static Azure.ResourceManager.Quota.SubscriptionQuotaAllocationCollection GetSubscriptionQuotaAllocations(this Azure.ResourceManager.ManagementGroups.ManagementGroupResource managementGroupResource, string subscriptionId, string groupQuotaName) { throw null; } - public static Azure.ResourceManager.ArmOperation UpdateGroupQuotaSubscriptionAllocationRequest(this Azure.ResourceManager.ManagementGroups.ManagementGroupResource managementGroupResource, Azure.WaitUntil waitUntil, string subscriptionId, string groupQuotaName, string resourceProviderName, string resourceName, Azure.ResourceManager.Quota.QuotaAllocationRequestStatusData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static System.Threading.Tasks.Task> UpdateGroupQuotaSubscriptionAllocationRequestAsync(this Azure.ResourceManager.ManagementGroups.ManagementGroupResource managementGroupResource, Azure.WaitUntil waitUntil, string subscriptionId, string groupQuotaName, string resourceProviderName, string resourceName, Azure.ResourceManager.Quota.QuotaAllocationRequestStatusData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static Azure.Response GetSubscriptionQuotaAllocationsList(this Azure.ResourceManager.ManagementGroups.ManagementGroupResource managementGroupResource, string subscriptionId, string groupQuotaName, string resourceProviderName, Azure.Core.AzureLocation location, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static System.Threading.Tasks.Task> GetSubscriptionQuotaAllocationsListAsync(this Azure.ResourceManager.ManagementGroups.ManagementGroupResource managementGroupResource, string subscriptionId, string groupQuotaName, string resourceProviderName, Azure.Core.AzureLocation location, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static Azure.ResourceManager.Quota.SubscriptionQuotaAllocationsListResource GetSubscriptionQuotaAllocationsListResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } + public static Azure.ResourceManager.Quota.SubscriptionQuotaAllocationsListCollection GetSubscriptionQuotaAllocationsLists(this Azure.ResourceManager.ManagementGroups.ManagementGroupResource managementGroupResource) { throw null; } } public partial class QuotaRequestDetailCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable { @@ -487,43 +428,43 @@ protected QuotaRequestDetailResource() { } string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } - public partial class SubscriptionQuotaAllocationCollection : Azure.ResourceManager.ArmCollection + public partial class SubscriptionQuotaAllocationsListCollection : Azure.ResourceManager.ArmCollection { - protected SubscriptionQuotaAllocationCollection() { } - public virtual Azure.Response Exists(string resourceName, string filter, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> ExistsAsync(string resourceName, string filter, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Get(string resourceName, string filter, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Pageable GetAll(string filter, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AsyncPageable GetAllAsync(string filter, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(string resourceName, string filter, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.NullableResponse GetIfExists(string resourceName, string filter, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetIfExistsAsync(string resourceName, string filter, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + protected SubscriptionQuotaAllocationsListCollection() { } + public virtual Azure.Response Exists(string subscriptionId, string groupQuotaName, string resourceProviderName, Azure.Core.AzureLocation location, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> ExistsAsync(string subscriptionId, string groupQuotaName, string resourceProviderName, Azure.Core.AzureLocation location, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(string subscriptionId, string groupQuotaName, string resourceProviderName, Azure.Core.AzureLocation location, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(string subscriptionId, string groupQuotaName, string resourceProviderName, Azure.Core.AzureLocation location, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.NullableResponse GetIfExists(string subscriptionId, string groupQuotaName, string resourceProviderName, Azure.Core.AzureLocation location, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetIfExistsAsync(string subscriptionId, string groupQuotaName, string resourceProviderName, Azure.Core.AzureLocation location, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } } - public partial class SubscriptionQuotaAllocationData : Azure.ResourceManager.Models.ResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + public partial class SubscriptionQuotaAllocationsListData : Azure.ResourceManager.Models.ResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { - public SubscriptionQuotaAllocationData() { } - public Azure.ResourceManager.Quota.Models.SubscriptionQuotaDetails Properties { get { throw null; } set { } } + public SubscriptionQuotaAllocationsListData() { } + public Azure.ResourceManager.Quota.Models.SubscriptionQuotaAllocationsListProperties Properties { get { throw null; } set { } } protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.Quota.SubscriptionQuotaAllocationData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.Quota.SubscriptionQuotaAllocationData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + Azure.ResourceManager.Quota.SubscriptionQuotaAllocationsListData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.Quota.SubscriptionQuotaAllocationsListData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } - public partial class SubscriptionQuotaAllocationResource : Azure.ResourceManager.ArmResource, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + public partial class SubscriptionQuotaAllocationsListResource : Azure.ResourceManager.ArmResource, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public static readonly Azure.Core.ResourceType ResourceType; - protected SubscriptionQuotaAllocationResource() { } - public virtual Azure.ResourceManager.Quota.SubscriptionQuotaAllocationData Data { get { throw null; } } + protected SubscriptionQuotaAllocationsListResource() { } + public virtual Azure.ResourceManager.Quota.SubscriptionQuotaAllocationsListData Data { get { throw null; } } public virtual bool HasData { get { throw null; } } - public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string managementGroupId, string subscriptionId, string groupQuotaName, string resourceName) { throw null; } - public virtual Azure.Response Get(string filter, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(string filter, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - Azure.ResourceManager.Quota.SubscriptionQuotaAllocationData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.Quota.SubscriptionQuotaAllocationData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string managementGroupId, string subscriptionId, string groupQuotaName, string resourceProviderName, Azure.Core.AzureLocation location) { throw null; } + public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + Azure.ResourceManager.Quota.SubscriptionQuotaAllocationsListData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.Quota.SubscriptionQuotaAllocationsListData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.Quota.SubscriptionQuotaAllocationsListData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.Quota.SubscriptionQuotaAllocationsListData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } } } namespace Azure.ResourceManager.Quota.Mocking @@ -539,9 +480,8 @@ protected MockableQuotaArmClient() { } public virtual System.Threading.Tasks.Task> GetCurrentUsagesBaseAsync(Azure.Core.ResourceIdentifier scope, string resourceName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.ResourceManager.Quota.CurrentUsagesBaseResource GetCurrentUsagesBaseResource(Azure.Core.ResourceIdentifier id) { throw null; } public virtual Azure.ResourceManager.Quota.CurrentUsagesBaseCollection GetCurrentUsagesBases(Azure.Core.ResourceIdentifier scope) { throw null; } - public virtual Azure.ResourceManager.Quota.GroupQuotaEnforcementResource GetGroupQuotaEnforcementResource(Azure.Core.ResourceIdentifier id) { throw null; } public virtual Azure.ResourceManager.Quota.GroupQuotaEntityResource GetGroupQuotaEntityResource(Azure.Core.ResourceIdentifier id) { throw null; } - public virtual Azure.ResourceManager.Quota.GroupQuotaLimitResource GetGroupQuotaLimitResource(Azure.Core.ResourceIdentifier id) { throw null; } + public virtual Azure.ResourceManager.Quota.GroupQuotaLimitListResource GetGroupQuotaLimitListResource(Azure.Core.ResourceIdentifier id) { throw null; } public virtual Azure.ResourceManager.Quota.GroupQuotaRequestStatusResource GetGroupQuotaRequestStatusResource(Azure.Core.ResourceIdentifier id) { throw null; } public virtual Azure.ResourceManager.Quota.GroupQuotaSubscriptionRequestStatusResource GetGroupQuotaSubscriptionRequestStatusResource(Azure.Core.ResourceIdentifier id) { throw null; } public virtual Azure.ResourceManager.Quota.GroupQuotaSubscriptionResource GetGroupQuotaSubscriptionResource(Azure.Core.ResourceIdentifier id) { throw null; } @@ -550,26 +490,20 @@ protected MockableQuotaArmClient() { } public virtual System.Threading.Tasks.Task> GetQuotaRequestDetailAsync(Azure.Core.ResourceIdentifier scope, string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.ResourceManager.Quota.QuotaRequestDetailResource GetQuotaRequestDetailResource(Azure.Core.ResourceIdentifier id) { throw null; } public virtual Azure.ResourceManager.Quota.QuotaRequestDetailCollection GetQuotaRequestDetails(Azure.Core.ResourceIdentifier scope) { throw null; } - public virtual Azure.ResourceManager.Quota.SubscriptionQuotaAllocationResource GetSubscriptionQuotaAllocationResource(Azure.Core.ResourceIdentifier id) { throw null; } + public virtual Azure.ResourceManager.Quota.SubscriptionQuotaAllocationsListResource GetSubscriptionQuotaAllocationsListResource(Azure.Core.ResourceIdentifier id) { throw null; } } public partial class MockableQuotaManagementGroupResource : Azure.ResourceManager.ArmResource { protected MockableQuotaManagementGroupResource() { } - public virtual Azure.ResourceManager.ArmOperation CreateOrUpdateGroupQuotaSubscriptionAllocationRequest(Azure.WaitUntil waitUntil, string subscriptionId, string groupQuotaName, string resourceProviderName, string resourceName, Azure.ResourceManager.Quota.QuotaAllocationRequestStatusData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> CreateOrUpdateGroupQuotaSubscriptionAllocationRequestAsync(Azure.WaitUntil waitUntil, string subscriptionId, string groupQuotaName, string resourceProviderName, string resourceName, Azure.ResourceManager.Quota.QuotaAllocationRequestStatusData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.ResourceManager.Quota.GroupQuotaEntityCollection GetGroupQuotaEntities() { throw null; } public virtual Azure.Response GetGroupQuotaEntity(string groupQuotaName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> GetGroupQuotaEntityAsync(string groupQuotaName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response GetQuotaAllocationRequestStatus(string subscriptionId, string groupQuotaName, string allocationId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetQuotaAllocationRequestStatusAsync(string subscriptionId, string groupQuotaName, string allocationId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.ResourceManager.Quota.QuotaAllocationRequestStatusCollection GetQuotaAllocationRequestStatuses() { throw null; } - public virtual Azure.Pageable GetQuotaAllocationRequestStatusesByResourceProvider(string subscriptionId, string groupQuotaName, string resourceProviderName, string filter, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AsyncPageable GetQuotaAllocationRequestStatusesByResourceProviderAsync(string subscriptionId, string groupQuotaName, string resourceProviderName, string filter, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response GetSubscriptionQuotaAllocation(string subscriptionId, string groupQuotaName, string resourceName, string filter, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetSubscriptionQuotaAllocationAsync(string subscriptionId, string groupQuotaName, string resourceName, string filter, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.ResourceManager.Quota.SubscriptionQuotaAllocationCollection GetSubscriptionQuotaAllocations(string subscriptionId, string groupQuotaName) { throw null; } - public virtual Azure.ResourceManager.ArmOperation UpdateGroupQuotaSubscriptionAllocationRequest(Azure.WaitUntil waitUntil, string subscriptionId, string groupQuotaName, string resourceProviderName, string resourceName, Azure.ResourceManager.Quota.QuotaAllocationRequestStatusData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> UpdateGroupQuotaSubscriptionAllocationRequestAsync(Azure.WaitUntil waitUntil, string subscriptionId, string groupQuotaName, string resourceProviderName, string resourceName, Azure.ResourceManager.Quota.QuotaAllocationRequestStatusData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response GetQuotaAllocationRequestStatus(string subscriptionId, string groupQuotaName, string resourceProviderName, string allocationId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetQuotaAllocationRequestStatusAsync(string subscriptionId, string groupQuotaName, string resourceProviderName, string allocationId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.Quota.QuotaAllocationRequestStatusCollection GetQuotaAllocationRequestStatuses(string subscriptionId, string groupQuotaName, string resourceProviderName) { throw null; } + public virtual Azure.Response GetSubscriptionQuotaAllocationsList(string subscriptionId, string groupQuotaName, string resourceProviderName, Azure.Core.AzureLocation location, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetSubscriptionQuotaAllocationsListAsync(string subscriptionId, string groupQuotaName, string resourceProviderName, Azure.Core.AzureLocation location, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.Quota.SubscriptionQuotaAllocationsListCollection GetSubscriptionQuotaAllocationsLists() { throw null; } } public partial class MockableQuotaTenantResource : Azure.ResourceManager.ArmResource { @@ -584,23 +518,23 @@ public static partial class ArmQuotaModelFactory { public static Azure.ResourceManager.Quota.CurrentQuotaLimitBaseData CurrentQuotaLimitBaseData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.Quota.Models.QuotaProperties properties = null) { throw null; } public static Azure.ResourceManager.Quota.CurrentUsagesBaseData CurrentUsagesBaseData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.Quota.Models.QuotaUsagesProperties properties = null) { throw null; } - public static Azure.ResourceManager.Quota.Models.GroupQuotaDetails GroupQuotaDetails(string region = null, long? limit = default(long?), string comment = null, string unit = null, long? availableLimit = default(long?), System.Collections.Generic.IEnumerable allocatedToSubscriptionsValue = null, string value = null, string localizedValue = null) { throw null; } - public static Azure.ResourceManager.Quota.GroupQuotaEnforcementData GroupQuotaEnforcementData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.Quota.Models.GroupQuotaEnforcementProperties properties = null) { throw null; } - public static Azure.ResourceManager.Quota.Models.GroupQuotaEnforcementProperties GroupQuotaEnforcementProperties(Azure.ResourceManager.Quota.Models.GroupQuotaEnforcementState? enforcementEnabled = default(Azure.ResourceManager.Quota.Models.GroupQuotaEnforcementState?), Azure.ResourceManager.Quota.Models.QuotaRequestStatus? provisioningState = default(Azure.ResourceManager.Quota.Models.QuotaRequestStatus?), string faultCode = null) { throw null; } - public static Azure.ResourceManager.Quota.Models.GroupQuotaEntityBase GroupQuotaEntityBase(string displayName = null, Azure.ResourceManager.Quota.Models.GroupQuotaAdditionalAttributes additionalAttributes = null, Azure.ResourceManager.Quota.Models.QuotaRequestStatus? provisioningState = default(Azure.ResourceManager.Quota.Models.QuotaRequestStatus?)) { throw null; } - public static Azure.ResourceManager.Quota.GroupQuotaEntityData GroupQuotaEntityData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.Quota.Models.GroupQuotaEntityBase properties = null) { throw null; } - public static Azure.ResourceManager.Quota.Models.GroupQuotaEntityPatch GroupQuotaEntityPatch(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.Quota.Models.GroupQuotasEntityBasePatch properties = null) { throw null; } - public static Azure.ResourceManager.Quota.GroupQuotaLimitData GroupQuotaLimitData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.Quota.Models.GroupQuotaDetails properties = null) { throw null; } + public static Azure.ResourceManager.Quota.Models.GroupQuotaDetails GroupQuotaDetails(string resourceName = null, long? limit = default(long?), string comment = null, string unit = null, long? availableLimit = default(long?), System.Collections.Generic.IEnumerable allocatedToSubscriptionsValue = null, string value = null, string localizedValue = null) { throw null; } + public static Azure.ResourceManager.Quota.Models.GroupQuotaEntityBase GroupQuotaEntityBase(string displayName = null, Azure.ResourceManager.Quota.Models.QuotaRequestStatus? provisioningState = default(Azure.ResourceManager.Quota.Models.QuotaRequestStatus?)) { throw null; } + public static Azure.ResourceManager.Quota.GroupQuotaEntityData GroupQuotaEntityData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.Quota.Models.GroupQuotasEntityProperties properties = null) { throw null; } + public static Azure.ResourceManager.Quota.Models.GroupQuotaEntityPatch GroupQuotaEntityPatch(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.Quota.Models.GroupQuotasEntityPatchProperties properties = null) { throw null; } + public static Azure.ResourceManager.Quota.GroupQuotaLimitListData GroupQuotaLimitListData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.Quota.Models.GroupQuotaLimitListProperties properties = null) { throw null; } + public static Azure.ResourceManager.Quota.Models.GroupQuotaLimitListProperties GroupQuotaLimitListProperties(Azure.ResourceManager.Quota.Models.QuotaRequestStatus? provisioningState = default(Azure.ResourceManager.Quota.Models.QuotaRequestStatus?), System.Collections.Generic.IEnumerable value = null, string nextLink = null) { throw null; } + public static Azure.ResourceManager.Quota.Models.GroupQuotaLimitProperties GroupQuotaLimitProperties(string resourceName = null, long? limit = default(long?), string comment = null, string unit = null, long? availableLimit = default(long?), System.Collections.Generic.IEnumerable allocatedToSubscriptionsValue = null, string value = null, string localizedValue = null) { throw null; } public static Azure.ResourceManager.Quota.Models.GroupQuotaRequestBase GroupQuotaRequestBase(long? limit = default(long?), string region = null, string comments = null, string value = null, string localizedValue = null) { throw null; } public static Azure.ResourceManager.Quota.GroupQuotaRequestStatusData GroupQuotaRequestStatusData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.Quota.Models.GroupQuotaRequestStatusProperties properties = null) { throw null; } public static Azure.ResourceManager.Quota.Models.GroupQuotaRequestStatusProperties GroupQuotaRequestStatusProperties(Azure.ResourceManager.Quota.Models.GroupQuotaRequestBase requestedResource = null, System.DateTimeOffset? requestSubmittedOn = default(System.DateTimeOffset?), Azure.ResourceManager.Quota.Models.QuotaRequestStatus? provisioningState = default(Azure.ResourceManager.Quota.Models.QuotaRequestStatus?), string faultCode = null) { throw null; } - public static Azure.ResourceManager.Quota.Models.GroupQuotaResourceUsages GroupQuotaResourceUsages(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.Quota.Models.GroupQuotaUsagesBase properties = null) { throw null; } - public static Azure.ResourceManager.Quota.Models.GroupQuotasEntityBasePatch GroupQuotasEntityBasePatch(string displayName = null, Azure.ResourceManager.Quota.Models.GroupQuotaAdditionalAttributesPatch additionalAttributes = null, Azure.ResourceManager.Quota.Models.QuotaRequestStatus? provisioningState = default(Azure.ResourceManager.Quota.Models.QuotaRequestStatus?)) { throw null; } + public static Azure.ResourceManager.Quota.Models.GroupQuotasEntityBasePatch GroupQuotasEntityBasePatch(string displayName = null, Azure.ResourceManager.Quota.Models.QuotaRequestStatus? provisioningState = default(Azure.ResourceManager.Quota.Models.QuotaRequestStatus?)) { throw null; } + public static Azure.ResourceManager.Quota.Models.GroupQuotasEntityPatchProperties GroupQuotasEntityPatchProperties(string displayName = null, Azure.ResourceManager.Quota.Models.QuotaRequestStatus? provisioningState = default(Azure.ResourceManager.Quota.Models.QuotaRequestStatus?)) { throw null; } + public static Azure.ResourceManager.Quota.Models.GroupQuotasEntityProperties GroupQuotasEntityProperties(string displayName = null, Azure.ResourceManager.Quota.Models.QuotaRequestStatus? provisioningState = default(Azure.ResourceManager.Quota.Models.QuotaRequestStatus?)) { throw null; } public static Azure.ResourceManager.Quota.GroupQuotaSubscriptionData GroupQuotaSubscriptionData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.Quota.Models.GroupQuotaSubscriptionProperties properties = null) { throw null; } public static Azure.ResourceManager.Quota.Models.GroupQuotaSubscriptionProperties GroupQuotaSubscriptionProperties(string subscriptionId = null, Azure.ResourceManager.Quota.Models.QuotaRequestStatus? provisioningState = default(Azure.ResourceManager.Quota.Models.QuotaRequestStatus?)) { throw null; } public static Azure.ResourceManager.Quota.GroupQuotaSubscriptionRequestStatusData GroupQuotaSubscriptionRequestStatusData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.Quota.Models.GroupQuotaSubscriptionRequestStatusProperties properties = null) { throw null; } public static Azure.ResourceManager.Quota.Models.GroupQuotaSubscriptionRequestStatusProperties GroupQuotaSubscriptionRequestStatusProperties(string subscriptionId = null, System.DateTimeOffset? requestSubmitOn = default(System.DateTimeOffset?), Azure.ResourceManager.Quota.Models.QuotaRequestStatus? provisioningState = default(Azure.ResourceManager.Quota.Models.QuotaRequestStatus?)) { throw null; } - public static Azure.ResourceManager.Quota.Models.GroupQuotaUsagesBase GroupQuotaUsagesBase(long? limit = default(long?), long? usages = default(long?), string unit = null, string value = null, string localizedValue = null) { throw null; } public static Azure.ResourceManager.Quota.Models.QuotaAllocationRequestBase QuotaAllocationRequestBase(long? limit = default(long?), string region = null, string value = null, string localizedValue = null) { throw null; } public static Azure.ResourceManager.Quota.QuotaAllocationRequestStatusData QuotaAllocationRequestStatusData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.Quota.Models.QuotaAllocationRequestBase requestedResource = null, System.DateTimeOffset? requestSubmittedOn = default(System.DateTimeOffset?), Azure.ResourceManager.Quota.Models.QuotaRequestStatus? provisioningState = default(Azure.ResourceManager.Quota.Models.QuotaRequestStatus?), string faultCode = null) { throw null; } public static Azure.ResourceManager.Quota.Models.QuotaOperationDisplay QuotaOperationDisplay(string provider = null, string resource = null, string operation = null, string description = null) { throw null; } @@ -613,32 +547,10 @@ public static partial class ArmQuotaModelFactory public static Azure.ResourceManager.Quota.Models.QuotaUsagesProperties QuotaUsagesProperties(Azure.ResourceManager.Quota.Models.QuotaUsagesObject usages = null, string unit = null, Azure.ResourceManager.Quota.Models.QuotaRequestResourceName name = null, string resourceTypeName = null, System.TimeSpan? quotaPeriod = default(System.TimeSpan?), bool? isQuotaApplicable = default(bool?), System.BinaryData properties = null) { throw null; } public static Azure.ResourceManager.Quota.Models.ServiceErrorDetail ServiceErrorDetail(string code = null, string message = null) { throw null; } public static Azure.ResourceManager.Quota.Models.SubscriptionAllocatedQuota SubscriptionAllocatedQuota(string subscriptionId = null, long? quotaAllocated = default(long?)) { throw null; } - public static Azure.ResourceManager.Quota.SubscriptionQuotaAllocationData SubscriptionQuotaAllocationData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.Quota.Models.SubscriptionQuotaDetails properties = null) { throw null; } - public static Azure.ResourceManager.Quota.Models.SubscriptionQuotaDetails SubscriptionQuotaDetails(string region = null, long? limit = default(long?), long? shareableQuota = default(long?), string value = null, string localizedValue = null) { throw null; } - } - public partial class GroupQuotaAdditionalAttributes : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - public GroupQuotaAdditionalAttributes(Azure.ResourceManager.Quota.Models.GroupQuotaGroupingId groupId) { } - public Azure.ResourceManager.Quota.Models.GroupQuotaEnvironmentType? Environment { get { throw null; } set { } } - public Azure.ResourceManager.Quota.Models.GroupQuotaGroupingId GroupId { get { throw null; } set { } } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.Quota.Models.GroupQuotaAdditionalAttributes System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.Quota.Models.GroupQuotaAdditionalAttributes System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } - public partial class GroupQuotaAdditionalAttributesPatch : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - public GroupQuotaAdditionalAttributesPatch() { } - public Azure.ResourceManager.Quota.Models.GroupQuotaEnvironmentType? Environment { get { throw null; } set { } } - public Azure.ResourceManager.Quota.Models.GroupQuotaGroupingId GroupId { get { throw null; } set { } } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.Quota.Models.GroupQuotaAdditionalAttributesPatch System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.Quota.Models.GroupQuotaAdditionalAttributesPatch System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + public static Azure.ResourceManager.Quota.SubscriptionQuotaAllocationsListData SubscriptionQuotaAllocationsListData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.Quota.Models.SubscriptionQuotaAllocationsListProperties properties = null) { throw null; } + public static Azure.ResourceManager.Quota.Models.SubscriptionQuotaAllocationsListProperties SubscriptionQuotaAllocationsListProperties(Azure.ResourceManager.Quota.Models.QuotaRequestStatus? provisioningState = default(Azure.ResourceManager.Quota.Models.QuotaRequestStatus?), System.Collections.Generic.IEnumerable value = null, string nextLink = null) { throw null; } + public static Azure.ResourceManager.Quota.Models.SubscriptionQuotaAllocationsProperties SubscriptionQuotaAllocationsProperties(string resourceName = null, long? limit = default(long?), long? shareableQuota = default(long?), string value = null, string localizedValue = null) { throw null; } + public static Azure.ResourceManager.Quota.Models.SubscriptionQuotaDetails SubscriptionQuotaDetails(string resourceName = null, long? limit = default(long?), long? shareableQuota = default(long?), string value = null, string localizedValue = null) { throw null; } } public partial class GroupQuotaDetails : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { @@ -648,7 +560,7 @@ public GroupQuotaDetails() { } public string Comment { get { throw null; } set { } } public long? Limit { get { throw null; } set { } } public string LocalizedValue { get { throw null; } } - public string Region { get { throw null; } set { } } + public string ResourceName { get { throw null; } set { } } public string Unit { get { throw null; } } public string Value { get { throw null; } } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } @@ -658,42 +570,9 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } - public partial class GroupQuotaEnforcementProperties : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - public GroupQuotaEnforcementProperties() { } - public Azure.ResourceManager.Quota.Models.GroupQuotaEnforcementState? EnforcementEnabled { get { throw null; } set { } } - public string FaultCode { get { throw null; } } - public Azure.ResourceManager.Quota.Models.QuotaRequestStatus? ProvisioningState { get { throw null; } } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.Quota.Models.GroupQuotaEnforcementProperties System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.Quota.Models.GroupQuotaEnforcementProperties System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } - [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct GroupQuotaEnforcementState : System.IEquatable - { - private readonly object _dummy; - private readonly int _dummyPrimitive; - public GroupQuotaEnforcementState(string value) { throw null; } - public static Azure.ResourceManager.Quota.Models.GroupQuotaEnforcementState Disabled { get { throw null; } } - public static Azure.ResourceManager.Quota.Models.GroupQuotaEnforcementState Enabled { get { throw null; } } - public static Azure.ResourceManager.Quota.Models.GroupQuotaEnforcementState NotAvailable { get { throw null; } } - public bool Equals(Azure.ResourceManager.Quota.Models.GroupQuotaEnforcementState other) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override bool Equals(object obj) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.ResourceManager.Quota.Models.GroupQuotaEnforcementState left, Azure.ResourceManager.Quota.Models.GroupQuotaEnforcementState right) { throw null; } - public static implicit operator Azure.ResourceManager.Quota.Models.GroupQuotaEnforcementState (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.Quota.Models.GroupQuotaEnforcementState left, Azure.ResourceManager.Quota.Models.GroupQuotaEnforcementState right) { throw null; } - public override string ToString() { throw null; } - } public partial class GroupQuotaEntityBase : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public GroupQuotaEntityBase() { } - public Azure.ResourceManager.Quota.Models.GroupQuotaAdditionalAttributes AdditionalAttributes { get { throw null; } set { } } public string DisplayName { get { throw null; } set { } } public Azure.ResourceManager.Quota.Models.QuotaRequestStatus? ProvisioningState { get { throw null; } } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } @@ -706,7 +585,7 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer public partial class GroupQuotaEntityPatch : Azure.ResourceManager.Models.ResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public GroupQuotaEntityPatch() { } - public Azure.ResourceManager.Quota.Models.GroupQuotasEntityBasePatch Properties { get { throw null; } set { } } + public Azure.ResourceManager.Quota.Models.GroupQuotasEntityPatchProperties Properties { get { throw null; } set { } } protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.ResourceManager.Quota.Models.GroupQuotaEntityPatch System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } @@ -714,53 +593,39 @@ protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter write string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } - [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct GroupQuotaEnvironmentType : System.IEquatable + public partial class GroupQuotaLimit : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { - private readonly object _dummy; - private readonly int _dummyPrimitive; - public GroupQuotaEnvironmentType(string value) { throw null; } - public static Azure.ResourceManager.Quota.Models.GroupQuotaEnvironmentType NonProduction { get { throw null; } } - public static Azure.ResourceManager.Quota.Models.GroupQuotaEnvironmentType Production { get { throw null; } } - public bool Equals(Azure.ResourceManager.Quota.Models.GroupQuotaEnvironmentType other) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override bool Equals(object obj) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.ResourceManager.Quota.Models.GroupQuotaEnvironmentType left, Azure.ResourceManager.Quota.Models.GroupQuotaEnvironmentType right) { throw null; } - public static implicit operator Azure.ResourceManager.Quota.Models.GroupQuotaEnvironmentType (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.Quota.Models.GroupQuotaEnvironmentType left, Azure.ResourceManager.Quota.Models.GroupQuotaEnvironmentType right) { throw null; } - public override string ToString() { throw null; } + public GroupQuotaLimit() { } + public Azure.ResourceManager.Quota.Models.GroupQuotaLimitProperties Properties { get { throw null; } set { } } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.Quota.Models.GroupQuotaLimit System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.Quota.Models.GroupQuotaLimit System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } - public partial class GroupQuotaGroupingId : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + public partial class GroupQuotaLimitListProperties : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { - public GroupQuotaGroupingId() { } - public Azure.ResourceManager.Quota.Models.GroupQuotaGroupingIdType? GroupingIdType { get { throw null; } set { } } - public string Value { get { throw null; } set { } } + public GroupQuotaLimitListProperties() { } + public string NextLink { get { throw null; } } + public Azure.ResourceManager.Quota.Models.QuotaRequestStatus? ProvisioningState { get { throw null; } } + public System.Collections.Generic.IList Value { get { throw null; } } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.Quota.Models.GroupQuotaGroupingId System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.Quota.Models.GroupQuotaGroupingId System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + Azure.ResourceManager.Quota.Models.GroupQuotaLimitListProperties System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.Quota.Models.GroupQuotaLimitListProperties System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } - [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct GroupQuotaGroupingIdType : System.IEquatable + public partial class GroupQuotaLimitProperties : Azure.ResourceManager.Quota.Models.GroupQuotaDetails, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { - private readonly object _dummy; - private readonly int _dummyPrimitive; - public GroupQuotaGroupingIdType(string value) { throw null; } - public static Azure.ResourceManager.Quota.Models.GroupQuotaGroupingIdType BillingId { get { throw null; } } - public static Azure.ResourceManager.Quota.Models.GroupQuotaGroupingIdType ServiceTreeId { get { throw null; } } - public bool Equals(Azure.ResourceManager.Quota.Models.GroupQuotaGroupingIdType other) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override bool Equals(object obj) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.ResourceManager.Quota.Models.GroupQuotaGroupingIdType left, Azure.ResourceManager.Quota.Models.GroupQuotaGroupingIdType right) { throw null; } - public static implicit operator Azure.ResourceManager.Quota.Models.GroupQuotaGroupingIdType (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.Quota.Models.GroupQuotaGroupingIdType left, Azure.ResourceManager.Quota.Models.GroupQuotaGroupingIdType right) { throw null; } - public override string ToString() { throw null; } + public GroupQuotaLimitProperties() { } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.Quota.Models.GroupQuotaLimitProperties System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.Quota.Models.GroupQuotaLimitProperties System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } public partial class GroupQuotaRequestBase : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { @@ -791,21 +656,9 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } - public partial class GroupQuotaResourceUsages : Azure.ResourceManager.Models.ResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - public GroupQuotaResourceUsages() { } - public Azure.ResourceManager.Quota.Models.GroupQuotaUsagesBase Properties { get { throw null; } set { } } - protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.Quota.Models.GroupQuotaResourceUsages System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.Quota.Models.GroupQuotaResourceUsages System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } public partial class GroupQuotasEntityBasePatch : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public GroupQuotasEntityBasePatch() { } - public Azure.ResourceManager.Quota.Models.GroupQuotaAdditionalAttributesPatch AdditionalAttributes { get { throw null; } set { } } public string DisplayName { get { throw null; } set { } } public Azure.ResourceManager.Quota.Models.QuotaRequestStatus? ProvisioningState { get { throw null; } } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } @@ -815,11 +668,31 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } + public partial class GroupQuotasEntityPatchProperties : Azure.ResourceManager.Quota.Models.GroupQuotasEntityBasePatch, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public GroupQuotasEntityPatchProperties() { } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.Quota.Models.GroupQuotasEntityPatchProperties System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.Quota.Models.GroupQuotasEntityPatchProperties System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class GroupQuotasEntityProperties : Azure.ResourceManager.Quota.Models.GroupQuotaEntityBase, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public GroupQuotasEntityProperties() { } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.Quota.Models.GroupQuotasEntityProperties System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.Quota.Models.GroupQuotasEntityProperties System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } public partial class GroupQuotaSubscriptionProperties : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public GroupQuotaSubscriptionProperties() { } public Azure.ResourceManager.Quota.Models.QuotaRequestStatus? ProvisioningState { get { throw null; } } - public string SubscriptionId { get { throw null; } } + public string SubscriptionId { get { throw null; } set { } } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.ResourceManager.Quota.Models.GroupQuotaSubscriptionProperties System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } @@ -840,21 +713,6 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } - public partial class GroupQuotaUsagesBase : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - public GroupQuotaUsagesBase() { } - public long? Limit { get { throw null; } set { } } - public string LocalizedValue { get { throw null; } } - public string Unit { get { throw null; } } - public long? Usages { get { throw null; } set { } } - public string Value { get { throw null; } set { } } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.Quota.Models.GroupQuotaUsagesBase System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.Quota.Models.GroupQuotaUsagesBase System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } public partial class QuotaAllocationRequestBase : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public QuotaAllocationRequestBase() { } @@ -1097,12 +955,46 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } + public partial class SubscriptionQuotaAllocations : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public SubscriptionQuotaAllocations() { } + public Azure.ResourceManager.Quota.Models.SubscriptionQuotaAllocationsProperties Properties { get { throw null; } set { } } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.Quota.Models.SubscriptionQuotaAllocations System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.Quota.Models.SubscriptionQuotaAllocations System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class SubscriptionQuotaAllocationsListProperties : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public SubscriptionQuotaAllocationsListProperties() { } + public string NextLink { get { throw null; } } + public Azure.ResourceManager.Quota.Models.QuotaRequestStatus? ProvisioningState { get { throw null; } } + public System.Collections.Generic.IList Value { get { throw null; } } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.Quota.Models.SubscriptionQuotaAllocationsListProperties System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.Quota.Models.SubscriptionQuotaAllocationsListProperties System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class SubscriptionQuotaAllocationsProperties : Azure.ResourceManager.Quota.Models.SubscriptionQuotaDetails, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public SubscriptionQuotaAllocationsProperties() { } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.Quota.Models.SubscriptionQuotaAllocationsProperties System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.Quota.Models.SubscriptionQuotaAllocationsProperties System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } public partial class SubscriptionQuotaDetails : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public SubscriptionQuotaDetails() { } public long? Limit { get { throw null; } set { } } public string LocalizedValue { get { throw null; } } - public string Region { get { throw null; } set { } } + public string ResourceName { get { throw null; } set { } } public long? ShareableQuota { get { throw null; } } public string Value { get { throw null; } } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } diff --git a/sdk/quota/Azure.ResourceManager.Quota/api/Azure.ResourceManager.Quota.netstandard2.0.cs b/sdk/quota/Azure.ResourceManager.Quota/api/Azure.ResourceManager.Quota.netstandard2.0.cs index 4fef80ae5301..9b320dc01dc2 100644 --- a/sdk/quota/Azure.ResourceManager.Quota/api/Azure.ResourceManager.Quota.netstandard2.0.cs +++ b/sdk/quota/Azure.ResourceManager.Quota/api/Azure.ResourceManager.Quota.netstandard2.0.cs @@ -86,51 +86,6 @@ protected CurrentUsagesBaseResource() { } string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } - public partial class GroupQuotaEnforcementCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable - { - protected GroupQuotaEnforcementCollection() { } - public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, Azure.Core.AzureLocation location, Azure.ResourceManager.Quota.GroupQuotaEnforcementData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, Azure.Core.AzureLocation location, Azure.ResourceManager.Quota.GroupQuotaEnforcementData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Exists(Azure.Core.AzureLocation location, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> ExistsAsync(Azure.Core.AzureLocation location, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Get(Azure.Core.AzureLocation location, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Pageable GetAll(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AsyncPageable GetAllAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(Azure.Core.AzureLocation location, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.NullableResponse GetIfExists(Azure.Core.AzureLocation location, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetIfExistsAsync(Azure.Core.AzureLocation location, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } - System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } - System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } - } - public partial class GroupQuotaEnforcementData : Azure.ResourceManager.Models.ResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - public GroupQuotaEnforcementData() { } - public Azure.ResourceManager.Quota.Models.GroupQuotaEnforcementProperties Properties { get { throw null; } set { } } - protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.Quota.GroupQuotaEnforcementData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.Quota.GroupQuotaEnforcementData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } - public partial class GroupQuotaEnforcementResource : Azure.ResourceManager.ArmResource, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - public static readonly Azure.Core.ResourceType ResourceType; - protected GroupQuotaEnforcementResource() { } - public virtual Azure.ResourceManager.Quota.GroupQuotaEnforcementData Data { get { throw null; } } - public virtual bool HasData { get { throw null; } } - public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string managementGroupId, string groupQuotaName, string resourceProviderName, Azure.Core.AzureLocation location) { throw null; } - public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - Azure.ResourceManager.Quota.GroupQuotaEnforcementData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.Quota.GroupQuotaEnforcementData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.Quota.GroupQuotaEnforcementData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.Quota.GroupQuotaEnforcementData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - } public partial class GroupQuotaEntityCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable { protected GroupQuotaEntityCollection() { } @@ -151,7 +106,7 @@ protected GroupQuotaEntityCollection() { } public partial class GroupQuotaEntityData : Azure.ResourceManager.Models.ResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public GroupQuotaEntityData() { } - public Azure.ResourceManager.Quota.Models.GroupQuotaEntityBase Properties { get { throw null; } set { } } + public Azure.ResourceManager.Quota.Models.GroupQuotasEntityProperties Properties { get { throw null; } set { } } protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.ResourceManager.Quota.GroupQuotaEntityData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } @@ -165,19 +120,14 @@ public partial class GroupQuotaEntityResource : Azure.ResourceManager.ArmResourc protected GroupQuotaEntityResource() { } public virtual Azure.ResourceManager.Quota.GroupQuotaEntityData Data { get { throw null; } } public virtual bool HasData { get { throw null; } } - public virtual Azure.ResourceManager.ArmOperation CreateOrUpdateGroupQuotaLimitsRequest(Azure.WaitUntil waitUntil, string resourceProviderName, string resourceName, Azure.ResourceManager.Quota.GroupQuotaRequestStatusData data = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> CreateOrUpdateGroupQuotaLimitsRequestAsync(Azure.WaitUntil waitUntil, string resourceProviderName, string resourceName, Azure.ResourceManager.Quota.GroupQuotaRequestStatusData data = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string managementGroupId, string groupQuotaName) { throw null; } public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response GetGroupQuotaEnforcement(string resourceProviderName, Azure.Core.AzureLocation location, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetGroupQuotaEnforcementAsync(string resourceProviderName, Azure.Core.AzureLocation location, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.ResourceManager.Quota.GroupQuotaEnforcementCollection GetGroupQuotaEnforcements(string resourceProviderName) { throw null; } - public virtual Azure.Response GetGroupQuotaLimit(string resourceProviderName, string resourceName, string filter, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetGroupQuotaLimitAsync(string resourceProviderName, string resourceName, string filter, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.ResourceManager.Quota.GroupQuotaLimitCollection GetGroupQuotaLimits(string resourceProviderName) { throw null; } + public virtual Azure.Response GetGroupQuotaLimitList(string resourceProviderName, Azure.Core.AzureLocation location, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetGroupQuotaLimitListAsync(string resourceProviderName, Azure.Core.AzureLocation location, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.Quota.GroupQuotaLimitListCollection GetGroupQuotaLimitLists() { throw null; } public virtual Azure.Pageable GetGroupQuotaLimitsRequests(string resourceProviderName, string filter, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.AsyncPageable GetGroupQuotaLimitsRequestsAsync(string resourceProviderName, string filter, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response GetGroupQuotaRequestStatus(string requestId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } @@ -189,8 +139,6 @@ protected GroupQuotaEntityResource() { } public virtual System.Threading.Tasks.Task> GetGroupQuotaSubscriptionRequestStatusAsync(string requestId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.ResourceManager.Quota.GroupQuotaSubscriptionRequestStatusCollection GetGroupQuotaSubscriptionRequestStatuses() { throw null; } public virtual Azure.ResourceManager.Quota.GroupQuotaSubscriptionCollection GetGroupQuotaSubscriptions() { throw null; } - public virtual Azure.Pageable GetGroupQuotaUsages(string resourceProviderName, Azure.Core.AzureLocation location, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AsyncPageable GetGroupQuotaUsagesAsync(string resourceProviderName, Azure.Core.AzureLocation location, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } Azure.ResourceManager.Quota.GroupQuotaEntityData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.ResourceManager.Quota.GroupQuotaEntityData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -198,46 +146,44 @@ protected GroupQuotaEntityResource() { } System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.Quota.Models.GroupQuotaEntityPatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.Quota.Models.GroupQuotaEntityPatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.ResourceManager.ArmOperation UpdateGroupQuotaLimitsRequest(Azure.WaitUntil waitUntil, string resourceProviderName, string resourceName, Azure.ResourceManager.Quota.GroupQuotaRequestStatusData data = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> UpdateGroupQuotaLimitsRequestAsync(Azure.WaitUntil waitUntil, string resourceProviderName, string resourceName, Azure.ResourceManager.Quota.GroupQuotaRequestStatusData data = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } } - public partial class GroupQuotaLimitCollection : Azure.ResourceManager.ArmCollection + public partial class GroupQuotaLimitListCollection : Azure.ResourceManager.ArmCollection { - protected GroupQuotaLimitCollection() { } - public virtual Azure.Response Exists(string resourceName, string filter, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> ExistsAsync(string resourceName, string filter, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Get(string resourceName, string filter, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Pageable GetAll(string filter, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AsyncPageable GetAllAsync(string filter, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(string resourceName, string filter, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.NullableResponse GetIfExists(string resourceName, string filter, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetIfExistsAsync(string resourceName, string filter, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + protected GroupQuotaLimitListCollection() { } + public virtual Azure.Response Exists(string resourceProviderName, Azure.Core.AzureLocation location, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> ExistsAsync(string resourceProviderName, Azure.Core.AzureLocation location, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(string resourceProviderName, Azure.Core.AzureLocation location, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(string resourceProviderName, Azure.Core.AzureLocation location, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.NullableResponse GetIfExists(string resourceProviderName, Azure.Core.AzureLocation location, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetIfExistsAsync(string resourceProviderName, Azure.Core.AzureLocation location, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } } - public partial class GroupQuotaLimitData : Azure.ResourceManager.Models.ResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + public partial class GroupQuotaLimitListData : Azure.ResourceManager.Models.ResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { - public GroupQuotaLimitData() { } - public Azure.ResourceManager.Quota.Models.GroupQuotaDetails Properties { get { throw null; } set { } } + public GroupQuotaLimitListData() { } + public Azure.ResourceManager.Quota.Models.GroupQuotaLimitListProperties Properties { get { throw null; } set { } } protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.Quota.GroupQuotaLimitData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.Quota.GroupQuotaLimitData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + Azure.ResourceManager.Quota.GroupQuotaLimitListData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.Quota.GroupQuotaLimitListData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } - public partial class GroupQuotaLimitResource : Azure.ResourceManager.ArmResource, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + public partial class GroupQuotaLimitListResource : Azure.ResourceManager.ArmResource, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public static readonly Azure.Core.ResourceType ResourceType; - protected GroupQuotaLimitResource() { } - public virtual Azure.ResourceManager.Quota.GroupQuotaLimitData Data { get { throw null; } } + protected GroupQuotaLimitListResource() { } + public virtual Azure.ResourceManager.Quota.GroupQuotaLimitListData Data { get { throw null; } } public virtual bool HasData { get { throw null; } } - public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string managementGroupId, string groupQuotaName, string resourceProviderName, string resourceName) { throw null; } - public virtual Azure.Response Get(string filter, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(string filter, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - Azure.ResourceManager.Quota.GroupQuotaLimitData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.Quota.GroupQuotaLimitData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string managementGroupId, string groupQuotaName, string resourceProviderName, Azure.Core.AzureLocation location) { throw null; } + public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + Azure.ResourceManager.Quota.GroupQuotaLimitListData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.Quota.GroupQuotaLimitListData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.Quota.GroupQuotaLimitListData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.Quota.GroupQuotaLimitListData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } } public partial class GroupQuotaRequestStatusCollection : Azure.ResourceManager.ArmCollection { @@ -366,12 +312,14 @@ protected GroupQuotaSubscriptionResource() { } public partial class QuotaAllocationRequestStatusCollection : Azure.ResourceManager.ArmCollection { protected QuotaAllocationRequestStatusCollection() { } - public virtual Azure.Response Exists(string subscriptionId, string groupQuotaName, string allocationId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> ExistsAsync(string subscriptionId, string groupQuotaName, string allocationId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Get(string subscriptionId, string groupQuotaName, string allocationId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(string subscriptionId, string groupQuotaName, string allocationId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.NullableResponse GetIfExists(string subscriptionId, string groupQuotaName, string allocationId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetIfExistsAsync(string subscriptionId, string groupQuotaName, string allocationId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Exists(string allocationId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> ExistsAsync(string allocationId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(string allocationId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetAll(string filter, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetAllAsync(string filter, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(string allocationId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.NullableResponse GetIfExists(string allocationId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetIfExistsAsync(string allocationId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } } public partial class QuotaAllocationRequestStatusData : Azure.ResourceManager.Models.ResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { @@ -393,7 +341,7 @@ public partial class QuotaAllocationRequestStatusResource : Azure.ResourceManage protected QuotaAllocationRequestStatusResource() { } public virtual Azure.ResourceManager.Quota.QuotaAllocationRequestStatusData Data { get { throw null; } } public virtual bool HasData { get { throw null; } } - public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string managementGroupId, string subscriptionId, string groupQuotaName, string allocationId) { throw null; } + public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string managementGroupId, string subscriptionId, string groupQuotaName, string resourceProviderName, string allocationId) { throw null; } public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } Azure.ResourceManager.Quota.QuotaAllocationRequestStatusData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -404,8 +352,6 @@ protected QuotaAllocationRequestStatusResource() { } } public static partial class QuotaExtensions { - public static Azure.ResourceManager.ArmOperation CreateOrUpdateGroupQuotaSubscriptionAllocationRequest(this Azure.ResourceManager.ManagementGroups.ManagementGroupResource managementGroupResource, Azure.WaitUntil waitUntil, string subscriptionId, string groupQuotaName, string resourceProviderName, string resourceName, Azure.ResourceManager.Quota.QuotaAllocationRequestStatusData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static System.Threading.Tasks.Task> CreateOrUpdateGroupQuotaSubscriptionAllocationRequestAsync(this Azure.ResourceManager.ManagementGroups.ManagementGroupResource managementGroupResource, Azure.WaitUntil waitUntil, string subscriptionId, string groupQuotaName, string resourceProviderName, string resourceName, Azure.ResourceManager.Quota.QuotaAllocationRequestStatusData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public static Azure.Response GetCurrentQuotaLimitBase(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier scope, string resourceName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public static System.Threading.Tasks.Task> GetCurrentQuotaLimitBaseAsync(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier scope, string resourceName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public static Azure.ResourceManager.Quota.CurrentQuotaLimitBaseResource GetCurrentQuotaLimitBaseResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } @@ -414,20 +360,17 @@ public static partial class QuotaExtensions public static System.Threading.Tasks.Task> GetCurrentUsagesBaseAsync(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier scope, string resourceName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public static Azure.ResourceManager.Quota.CurrentUsagesBaseResource GetCurrentUsagesBaseResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } public static Azure.ResourceManager.Quota.CurrentUsagesBaseCollection GetCurrentUsagesBases(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier scope) { throw null; } - public static Azure.ResourceManager.Quota.GroupQuotaEnforcementResource GetGroupQuotaEnforcementResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } public static Azure.ResourceManager.Quota.GroupQuotaEntityCollection GetGroupQuotaEntities(this Azure.ResourceManager.ManagementGroups.ManagementGroupResource managementGroupResource) { throw null; } public static Azure.Response GetGroupQuotaEntity(this Azure.ResourceManager.ManagementGroups.ManagementGroupResource managementGroupResource, string groupQuotaName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public static System.Threading.Tasks.Task> GetGroupQuotaEntityAsync(this Azure.ResourceManager.ManagementGroups.ManagementGroupResource managementGroupResource, string groupQuotaName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public static Azure.ResourceManager.Quota.GroupQuotaEntityResource GetGroupQuotaEntityResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } - public static Azure.ResourceManager.Quota.GroupQuotaLimitResource GetGroupQuotaLimitResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } + public static Azure.ResourceManager.Quota.GroupQuotaLimitListResource GetGroupQuotaLimitListResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } public static Azure.ResourceManager.Quota.GroupQuotaRequestStatusResource GetGroupQuotaRequestStatusResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } public static Azure.ResourceManager.Quota.GroupQuotaSubscriptionRequestStatusResource GetGroupQuotaSubscriptionRequestStatusResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } public static Azure.ResourceManager.Quota.GroupQuotaSubscriptionResource GetGroupQuotaSubscriptionResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } - public static Azure.Response GetQuotaAllocationRequestStatus(this Azure.ResourceManager.ManagementGroups.ManagementGroupResource managementGroupResource, string subscriptionId, string groupQuotaName, string allocationId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static System.Threading.Tasks.Task> GetQuotaAllocationRequestStatusAsync(this Azure.ResourceManager.ManagementGroups.ManagementGroupResource managementGroupResource, string subscriptionId, string groupQuotaName, string allocationId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static Azure.ResourceManager.Quota.QuotaAllocationRequestStatusCollection GetQuotaAllocationRequestStatuses(this Azure.ResourceManager.ManagementGroups.ManagementGroupResource managementGroupResource) { throw null; } - public static Azure.Pageable GetQuotaAllocationRequestStatusesByResourceProvider(this Azure.ResourceManager.ManagementGroups.ManagementGroupResource managementGroupResource, string subscriptionId, string groupQuotaName, string resourceProviderName, string filter, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static Azure.AsyncPageable GetQuotaAllocationRequestStatusesByResourceProviderAsync(this Azure.ResourceManager.ManagementGroups.ManagementGroupResource managementGroupResource, string subscriptionId, string groupQuotaName, string resourceProviderName, string filter, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static Azure.Response GetQuotaAllocationRequestStatus(this Azure.ResourceManager.ManagementGroups.ManagementGroupResource managementGroupResource, string subscriptionId, string groupQuotaName, string resourceProviderName, string allocationId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static System.Threading.Tasks.Task> GetQuotaAllocationRequestStatusAsync(this Azure.ResourceManager.ManagementGroups.ManagementGroupResource managementGroupResource, string subscriptionId, string groupQuotaName, string resourceProviderName, string allocationId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static Azure.ResourceManager.Quota.QuotaAllocationRequestStatusCollection GetQuotaAllocationRequestStatuses(this Azure.ResourceManager.ManagementGroups.ManagementGroupResource managementGroupResource, string subscriptionId, string groupQuotaName, string resourceProviderName) { throw null; } public static Azure.ResourceManager.Quota.QuotaAllocationRequestStatusResource GetQuotaAllocationRequestStatusResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } public static Azure.Pageable GetQuotaOperations(this Azure.ResourceManager.Resources.TenantResource tenantResource, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public static Azure.AsyncPageable GetQuotaOperationsAsync(this Azure.ResourceManager.Resources.TenantResource tenantResource, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } @@ -435,12 +378,10 @@ public static partial class QuotaExtensions public static System.Threading.Tasks.Task> GetQuotaRequestDetailAsync(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier scope, string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public static Azure.ResourceManager.Quota.QuotaRequestDetailResource GetQuotaRequestDetailResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } public static Azure.ResourceManager.Quota.QuotaRequestDetailCollection GetQuotaRequestDetails(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier scope) { throw null; } - public static Azure.Response GetSubscriptionQuotaAllocation(this Azure.ResourceManager.ManagementGroups.ManagementGroupResource managementGroupResource, string subscriptionId, string groupQuotaName, string resourceName, string filter, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static System.Threading.Tasks.Task> GetSubscriptionQuotaAllocationAsync(this Azure.ResourceManager.ManagementGroups.ManagementGroupResource managementGroupResource, string subscriptionId, string groupQuotaName, string resourceName, string filter, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static Azure.ResourceManager.Quota.SubscriptionQuotaAllocationResource GetSubscriptionQuotaAllocationResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } - public static Azure.ResourceManager.Quota.SubscriptionQuotaAllocationCollection GetSubscriptionQuotaAllocations(this Azure.ResourceManager.ManagementGroups.ManagementGroupResource managementGroupResource, string subscriptionId, string groupQuotaName) { throw null; } - public static Azure.ResourceManager.ArmOperation UpdateGroupQuotaSubscriptionAllocationRequest(this Azure.ResourceManager.ManagementGroups.ManagementGroupResource managementGroupResource, Azure.WaitUntil waitUntil, string subscriptionId, string groupQuotaName, string resourceProviderName, string resourceName, Azure.ResourceManager.Quota.QuotaAllocationRequestStatusData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static System.Threading.Tasks.Task> UpdateGroupQuotaSubscriptionAllocationRequestAsync(this Azure.ResourceManager.ManagementGroups.ManagementGroupResource managementGroupResource, Azure.WaitUntil waitUntil, string subscriptionId, string groupQuotaName, string resourceProviderName, string resourceName, Azure.ResourceManager.Quota.QuotaAllocationRequestStatusData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static Azure.Response GetSubscriptionQuotaAllocationsList(this Azure.ResourceManager.ManagementGroups.ManagementGroupResource managementGroupResource, string subscriptionId, string groupQuotaName, string resourceProviderName, Azure.Core.AzureLocation location, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static System.Threading.Tasks.Task> GetSubscriptionQuotaAllocationsListAsync(this Azure.ResourceManager.ManagementGroups.ManagementGroupResource managementGroupResource, string subscriptionId, string groupQuotaName, string resourceProviderName, Azure.Core.AzureLocation location, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static Azure.ResourceManager.Quota.SubscriptionQuotaAllocationsListResource GetSubscriptionQuotaAllocationsListResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } + public static Azure.ResourceManager.Quota.SubscriptionQuotaAllocationsListCollection GetSubscriptionQuotaAllocationsLists(this Azure.ResourceManager.ManagementGroups.ManagementGroupResource managementGroupResource) { throw null; } } public partial class QuotaRequestDetailCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable { @@ -487,43 +428,43 @@ protected QuotaRequestDetailResource() { } string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } - public partial class SubscriptionQuotaAllocationCollection : Azure.ResourceManager.ArmCollection + public partial class SubscriptionQuotaAllocationsListCollection : Azure.ResourceManager.ArmCollection { - protected SubscriptionQuotaAllocationCollection() { } - public virtual Azure.Response Exists(string resourceName, string filter, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> ExistsAsync(string resourceName, string filter, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Get(string resourceName, string filter, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Pageable GetAll(string filter, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AsyncPageable GetAllAsync(string filter, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(string resourceName, string filter, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.NullableResponse GetIfExists(string resourceName, string filter, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetIfExistsAsync(string resourceName, string filter, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + protected SubscriptionQuotaAllocationsListCollection() { } + public virtual Azure.Response Exists(string subscriptionId, string groupQuotaName, string resourceProviderName, Azure.Core.AzureLocation location, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> ExistsAsync(string subscriptionId, string groupQuotaName, string resourceProviderName, Azure.Core.AzureLocation location, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(string subscriptionId, string groupQuotaName, string resourceProviderName, Azure.Core.AzureLocation location, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(string subscriptionId, string groupQuotaName, string resourceProviderName, Azure.Core.AzureLocation location, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.NullableResponse GetIfExists(string subscriptionId, string groupQuotaName, string resourceProviderName, Azure.Core.AzureLocation location, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetIfExistsAsync(string subscriptionId, string groupQuotaName, string resourceProviderName, Azure.Core.AzureLocation location, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } } - public partial class SubscriptionQuotaAllocationData : Azure.ResourceManager.Models.ResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + public partial class SubscriptionQuotaAllocationsListData : Azure.ResourceManager.Models.ResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { - public SubscriptionQuotaAllocationData() { } - public Azure.ResourceManager.Quota.Models.SubscriptionQuotaDetails Properties { get { throw null; } set { } } + public SubscriptionQuotaAllocationsListData() { } + public Azure.ResourceManager.Quota.Models.SubscriptionQuotaAllocationsListProperties Properties { get { throw null; } set { } } protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.Quota.SubscriptionQuotaAllocationData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.Quota.SubscriptionQuotaAllocationData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + Azure.ResourceManager.Quota.SubscriptionQuotaAllocationsListData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.Quota.SubscriptionQuotaAllocationsListData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } - public partial class SubscriptionQuotaAllocationResource : Azure.ResourceManager.ArmResource, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + public partial class SubscriptionQuotaAllocationsListResource : Azure.ResourceManager.ArmResource, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public static readonly Azure.Core.ResourceType ResourceType; - protected SubscriptionQuotaAllocationResource() { } - public virtual Azure.ResourceManager.Quota.SubscriptionQuotaAllocationData Data { get { throw null; } } + protected SubscriptionQuotaAllocationsListResource() { } + public virtual Azure.ResourceManager.Quota.SubscriptionQuotaAllocationsListData Data { get { throw null; } } public virtual bool HasData { get { throw null; } } - public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string managementGroupId, string subscriptionId, string groupQuotaName, string resourceName) { throw null; } - public virtual Azure.Response Get(string filter, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(string filter, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - Azure.ResourceManager.Quota.SubscriptionQuotaAllocationData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.Quota.SubscriptionQuotaAllocationData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string managementGroupId, string subscriptionId, string groupQuotaName, string resourceProviderName, Azure.Core.AzureLocation location) { throw null; } + public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + Azure.ResourceManager.Quota.SubscriptionQuotaAllocationsListData System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.Quota.SubscriptionQuotaAllocationsListData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.Quota.SubscriptionQuotaAllocationsListData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.Quota.SubscriptionQuotaAllocationsListData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } } } namespace Azure.ResourceManager.Quota.Mocking @@ -539,9 +480,8 @@ protected MockableQuotaArmClient() { } public virtual System.Threading.Tasks.Task> GetCurrentUsagesBaseAsync(Azure.Core.ResourceIdentifier scope, string resourceName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.ResourceManager.Quota.CurrentUsagesBaseResource GetCurrentUsagesBaseResource(Azure.Core.ResourceIdentifier id) { throw null; } public virtual Azure.ResourceManager.Quota.CurrentUsagesBaseCollection GetCurrentUsagesBases(Azure.Core.ResourceIdentifier scope) { throw null; } - public virtual Azure.ResourceManager.Quota.GroupQuotaEnforcementResource GetGroupQuotaEnforcementResource(Azure.Core.ResourceIdentifier id) { throw null; } public virtual Azure.ResourceManager.Quota.GroupQuotaEntityResource GetGroupQuotaEntityResource(Azure.Core.ResourceIdentifier id) { throw null; } - public virtual Azure.ResourceManager.Quota.GroupQuotaLimitResource GetGroupQuotaLimitResource(Azure.Core.ResourceIdentifier id) { throw null; } + public virtual Azure.ResourceManager.Quota.GroupQuotaLimitListResource GetGroupQuotaLimitListResource(Azure.Core.ResourceIdentifier id) { throw null; } public virtual Azure.ResourceManager.Quota.GroupQuotaRequestStatusResource GetGroupQuotaRequestStatusResource(Azure.Core.ResourceIdentifier id) { throw null; } public virtual Azure.ResourceManager.Quota.GroupQuotaSubscriptionRequestStatusResource GetGroupQuotaSubscriptionRequestStatusResource(Azure.Core.ResourceIdentifier id) { throw null; } public virtual Azure.ResourceManager.Quota.GroupQuotaSubscriptionResource GetGroupQuotaSubscriptionResource(Azure.Core.ResourceIdentifier id) { throw null; } @@ -550,26 +490,20 @@ protected MockableQuotaArmClient() { } public virtual System.Threading.Tasks.Task> GetQuotaRequestDetailAsync(Azure.Core.ResourceIdentifier scope, string id, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.ResourceManager.Quota.QuotaRequestDetailResource GetQuotaRequestDetailResource(Azure.Core.ResourceIdentifier id) { throw null; } public virtual Azure.ResourceManager.Quota.QuotaRequestDetailCollection GetQuotaRequestDetails(Azure.Core.ResourceIdentifier scope) { throw null; } - public virtual Azure.ResourceManager.Quota.SubscriptionQuotaAllocationResource GetSubscriptionQuotaAllocationResource(Azure.Core.ResourceIdentifier id) { throw null; } + public virtual Azure.ResourceManager.Quota.SubscriptionQuotaAllocationsListResource GetSubscriptionQuotaAllocationsListResource(Azure.Core.ResourceIdentifier id) { throw null; } } public partial class MockableQuotaManagementGroupResource : Azure.ResourceManager.ArmResource { protected MockableQuotaManagementGroupResource() { } - public virtual Azure.ResourceManager.ArmOperation CreateOrUpdateGroupQuotaSubscriptionAllocationRequest(Azure.WaitUntil waitUntil, string subscriptionId, string groupQuotaName, string resourceProviderName, string resourceName, Azure.ResourceManager.Quota.QuotaAllocationRequestStatusData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> CreateOrUpdateGroupQuotaSubscriptionAllocationRequestAsync(Azure.WaitUntil waitUntil, string subscriptionId, string groupQuotaName, string resourceProviderName, string resourceName, Azure.ResourceManager.Quota.QuotaAllocationRequestStatusData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.ResourceManager.Quota.GroupQuotaEntityCollection GetGroupQuotaEntities() { throw null; } public virtual Azure.Response GetGroupQuotaEntity(string groupQuotaName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> GetGroupQuotaEntityAsync(string groupQuotaName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response GetQuotaAllocationRequestStatus(string subscriptionId, string groupQuotaName, string allocationId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetQuotaAllocationRequestStatusAsync(string subscriptionId, string groupQuotaName, string allocationId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.ResourceManager.Quota.QuotaAllocationRequestStatusCollection GetQuotaAllocationRequestStatuses() { throw null; } - public virtual Azure.Pageable GetQuotaAllocationRequestStatusesByResourceProvider(string subscriptionId, string groupQuotaName, string resourceProviderName, string filter, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AsyncPageable GetQuotaAllocationRequestStatusesByResourceProviderAsync(string subscriptionId, string groupQuotaName, string resourceProviderName, string filter, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response GetSubscriptionQuotaAllocation(string subscriptionId, string groupQuotaName, string resourceName, string filter, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetSubscriptionQuotaAllocationAsync(string subscriptionId, string groupQuotaName, string resourceName, string filter, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.ResourceManager.Quota.SubscriptionQuotaAllocationCollection GetSubscriptionQuotaAllocations(string subscriptionId, string groupQuotaName) { throw null; } - public virtual Azure.ResourceManager.ArmOperation UpdateGroupQuotaSubscriptionAllocationRequest(Azure.WaitUntil waitUntil, string subscriptionId, string groupQuotaName, string resourceProviderName, string resourceName, Azure.ResourceManager.Quota.QuotaAllocationRequestStatusData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> UpdateGroupQuotaSubscriptionAllocationRequestAsync(Azure.WaitUntil waitUntil, string subscriptionId, string groupQuotaName, string resourceProviderName, string resourceName, Azure.ResourceManager.Quota.QuotaAllocationRequestStatusData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response GetQuotaAllocationRequestStatus(string subscriptionId, string groupQuotaName, string resourceProviderName, string allocationId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetQuotaAllocationRequestStatusAsync(string subscriptionId, string groupQuotaName, string resourceProviderName, string allocationId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.Quota.QuotaAllocationRequestStatusCollection GetQuotaAllocationRequestStatuses(string subscriptionId, string groupQuotaName, string resourceProviderName) { throw null; } + public virtual Azure.Response GetSubscriptionQuotaAllocationsList(string subscriptionId, string groupQuotaName, string resourceProviderName, Azure.Core.AzureLocation location, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetSubscriptionQuotaAllocationsListAsync(string subscriptionId, string groupQuotaName, string resourceProviderName, Azure.Core.AzureLocation location, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.Quota.SubscriptionQuotaAllocationsListCollection GetSubscriptionQuotaAllocationsLists() { throw null; } } public partial class MockableQuotaTenantResource : Azure.ResourceManager.ArmResource { @@ -584,23 +518,23 @@ public static partial class ArmQuotaModelFactory { public static Azure.ResourceManager.Quota.CurrentQuotaLimitBaseData CurrentQuotaLimitBaseData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.Quota.Models.QuotaProperties properties = null) { throw null; } public static Azure.ResourceManager.Quota.CurrentUsagesBaseData CurrentUsagesBaseData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.Quota.Models.QuotaUsagesProperties properties = null) { throw null; } - public static Azure.ResourceManager.Quota.Models.GroupQuotaDetails GroupQuotaDetails(string region = null, long? limit = default(long?), string comment = null, string unit = null, long? availableLimit = default(long?), System.Collections.Generic.IEnumerable allocatedToSubscriptionsValue = null, string value = null, string localizedValue = null) { throw null; } - public static Azure.ResourceManager.Quota.GroupQuotaEnforcementData GroupQuotaEnforcementData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.Quota.Models.GroupQuotaEnforcementProperties properties = null) { throw null; } - public static Azure.ResourceManager.Quota.Models.GroupQuotaEnforcementProperties GroupQuotaEnforcementProperties(Azure.ResourceManager.Quota.Models.GroupQuotaEnforcementState? enforcementEnabled = default(Azure.ResourceManager.Quota.Models.GroupQuotaEnforcementState?), Azure.ResourceManager.Quota.Models.QuotaRequestStatus? provisioningState = default(Azure.ResourceManager.Quota.Models.QuotaRequestStatus?), string faultCode = null) { throw null; } - public static Azure.ResourceManager.Quota.Models.GroupQuotaEntityBase GroupQuotaEntityBase(string displayName = null, Azure.ResourceManager.Quota.Models.GroupQuotaAdditionalAttributes additionalAttributes = null, Azure.ResourceManager.Quota.Models.QuotaRequestStatus? provisioningState = default(Azure.ResourceManager.Quota.Models.QuotaRequestStatus?)) { throw null; } - public static Azure.ResourceManager.Quota.GroupQuotaEntityData GroupQuotaEntityData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.Quota.Models.GroupQuotaEntityBase properties = null) { throw null; } - public static Azure.ResourceManager.Quota.Models.GroupQuotaEntityPatch GroupQuotaEntityPatch(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.Quota.Models.GroupQuotasEntityBasePatch properties = null) { throw null; } - public static Azure.ResourceManager.Quota.GroupQuotaLimitData GroupQuotaLimitData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.Quota.Models.GroupQuotaDetails properties = null) { throw null; } + public static Azure.ResourceManager.Quota.Models.GroupQuotaDetails GroupQuotaDetails(string resourceName = null, long? limit = default(long?), string comment = null, string unit = null, long? availableLimit = default(long?), System.Collections.Generic.IEnumerable allocatedToSubscriptionsValue = null, string value = null, string localizedValue = null) { throw null; } + public static Azure.ResourceManager.Quota.Models.GroupQuotaEntityBase GroupQuotaEntityBase(string displayName = null, Azure.ResourceManager.Quota.Models.QuotaRequestStatus? provisioningState = default(Azure.ResourceManager.Quota.Models.QuotaRequestStatus?)) { throw null; } + public static Azure.ResourceManager.Quota.GroupQuotaEntityData GroupQuotaEntityData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.Quota.Models.GroupQuotasEntityProperties properties = null) { throw null; } + public static Azure.ResourceManager.Quota.Models.GroupQuotaEntityPatch GroupQuotaEntityPatch(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.Quota.Models.GroupQuotasEntityPatchProperties properties = null) { throw null; } + public static Azure.ResourceManager.Quota.GroupQuotaLimitListData GroupQuotaLimitListData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.Quota.Models.GroupQuotaLimitListProperties properties = null) { throw null; } + public static Azure.ResourceManager.Quota.Models.GroupQuotaLimitListProperties GroupQuotaLimitListProperties(Azure.ResourceManager.Quota.Models.QuotaRequestStatus? provisioningState = default(Azure.ResourceManager.Quota.Models.QuotaRequestStatus?), System.Collections.Generic.IEnumerable value = null, string nextLink = null) { throw null; } + public static Azure.ResourceManager.Quota.Models.GroupQuotaLimitProperties GroupQuotaLimitProperties(string resourceName = null, long? limit = default(long?), string comment = null, string unit = null, long? availableLimit = default(long?), System.Collections.Generic.IEnumerable allocatedToSubscriptionsValue = null, string value = null, string localizedValue = null) { throw null; } public static Azure.ResourceManager.Quota.Models.GroupQuotaRequestBase GroupQuotaRequestBase(long? limit = default(long?), string region = null, string comments = null, string value = null, string localizedValue = null) { throw null; } public static Azure.ResourceManager.Quota.GroupQuotaRequestStatusData GroupQuotaRequestStatusData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.Quota.Models.GroupQuotaRequestStatusProperties properties = null) { throw null; } public static Azure.ResourceManager.Quota.Models.GroupQuotaRequestStatusProperties GroupQuotaRequestStatusProperties(Azure.ResourceManager.Quota.Models.GroupQuotaRequestBase requestedResource = null, System.DateTimeOffset? requestSubmittedOn = default(System.DateTimeOffset?), Azure.ResourceManager.Quota.Models.QuotaRequestStatus? provisioningState = default(Azure.ResourceManager.Quota.Models.QuotaRequestStatus?), string faultCode = null) { throw null; } - public static Azure.ResourceManager.Quota.Models.GroupQuotaResourceUsages GroupQuotaResourceUsages(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.Quota.Models.GroupQuotaUsagesBase properties = null) { throw null; } - public static Azure.ResourceManager.Quota.Models.GroupQuotasEntityBasePatch GroupQuotasEntityBasePatch(string displayName = null, Azure.ResourceManager.Quota.Models.GroupQuotaAdditionalAttributesPatch additionalAttributes = null, Azure.ResourceManager.Quota.Models.QuotaRequestStatus? provisioningState = default(Azure.ResourceManager.Quota.Models.QuotaRequestStatus?)) { throw null; } + public static Azure.ResourceManager.Quota.Models.GroupQuotasEntityBasePatch GroupQuotasEntityBasePatch(string displayName = null, Azure.ResourceManager.Quota.Models.QuotaRequestStatus? provisioningState = default(Azure.ResourceManager.Quota.Models.QuotaRequestStatus?)) { throw null; } + public static Azure.ResourceManager.Quota.Models.GroupQuotasEntityPatchProperties GroupQuotasEntityPatchProperties(string displayName = null, Azure.ResourceManager.Quota.Models.QuotaRequestStatus? provisioningState = default(Azure.ResourceManager.Quota.Models.QuotaRequestStatus?)) { throw null; } + public static Azure.ResourceManager.Quota.Models.GroupQuotasEntityProperties GroupQuotasEntityProperties(string displayName = null, Azure.ResourceManager.Quota.Models.QuotaRequestStatus? provisioningState = default(Azure.ResourceManager.Quota.Models.QuotaRequestStatus?)) { throw null; } public static Azure.ResourceManager.Quota.GroupQuotaSubscriptionData GroupQuotaSubscriptionData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.Quota.Models.GroupQuotaSubscriptionProperties properties = null) { throw null; } public static Azure.ResourceManager.Quota.Models.GroupQuotaSubscriptionProperties GroupQuotaSubscriptionProperties(string subscriptionId = null, Azure.ResourceManager.Quota.Models.QuotaRequestStatus? provisioningState = default(Azure.ResourceManager.Quota.Models.QuotaRequestStatus?)) { throw null; } public static Azure.ResourceManager.Quota.GroupQuotaSubscriptionRequestStatusData GroupQuotaSubscriptionRequestStatusData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.Quota.Models.GroupQuotaSubscriptionRequestStatusProperties properties = null) { throw null; } public static Azure.ResourceManager.Quota.Models.GroupQuotaSubscriptionRequestStatusProperties GroupQuotaSubscriptionRequestStatusProperties(string subscriptionId = null, System.DateTimeOffset? requestSubmitOn = default(System.DateTimeOffset?), Azure.ResourceManager.Quota.Models.QuotaRequestStatus? provisioningState = default(Azure.ResourceManager.Quota.Models.QuotaRequestStatus?)) { throw null; } - public static Azure.ResourceManager.Quota.Models.GroupQuotaUsagesBase GroupQuotaUsagesBase(long? limit = default(long?), long? usages = default(long?), string unit = null, string value = null, string localizedValue = null) { throw null; } public static Azure.ResourceManager.Quota.Models.QuotaAllocationRequestBase QuotaAllocationRequestBase(long? limit = default(long?), string region = null, string value = null, string localizedValue = null) { throw null; } public static Azure.ResourceManager.Quota.QuotaAllocationRequestStatusData QuotaAllocationRequestStatusData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.Quota.Models.QuotaAllocationRequestBase requestedResource = null, System.DateTimeOffset? requestSubmittedOn = default(System.DateTimeOffset?), Azure.ResourceManager.Quota.Models.QuotaRequestStatus? provisioningState = default(Azure.ResourceManager.Quota.Models.QuotaRequestStatus?), string faultCode = null) { throw null; } public static Azure.ResourceManager.Quota.Models.QuotaOperationDisplay QuotaOperationDisplay(string provider = null, string resource = null, string operation = null, string description = null) { throw null; } @@ -613,32 +547,10 @@ public static partial class ArmQuotaModelFactory public static Azure.ResourceManager.Quota.Models.QuotaUsagesProperties QuotaUsagesProperties(Azure.ResourceManager.Quota.Models.QuotaUsagesObject usages = null, string unit = null, Azure.ResourceManager.Quota.Models.QuotaRequestResourceName name = null, string resourceTypeName = null, System.TimeSpan? quotaPeriod = default(System.TimeSpan?), bool? isQuotaApplicable = default(bool?), System.BinaryData properties = null) { throw null; } public static Azure.ResourceManager.Quota.Models.ServiceErrorDetail ServiceErrorDetail(string code = null, string message = null) { throw null; } public static Azure.ResourceManager.Quota.Models.SubscriptionAllocatedQuota SubscriptionAllocatedQuota(string subscriptionId = null, long? quotaAllocated = default(long?)) { throw null; } - public static Azure.ResourceManager.Quota.SubscriptionQuotaAllocationData SubscriptionQuotaAllocationData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.Quota.Models.SubscriptionQuotaDetails properties = null) { throw null; } - public static Azure.ResourceManager.Quota.Models.SubscriptionQuotaDetails SubscriptionQuotaDetails(string region = null, long? limit = default(long?), long? shareableQuota = default(long?), string value = null, string localizedValue = null) { throw null; } - } - public partial class GroupQuotaAdditionalAttributes : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - public GroupQuotaAdditionalAttributes(Azure.ResourceManager.Quota.Models.GroupQuotaGroupingId groupId) { } - public Azure.ResourceManager.Quota.Models.GroupQuotaEnvironmentType? Environment { get { throw null; } set { } } - public Azure.ResourceManager.Quota.Models.GroupQuotaGroupingId GroupId { get { throw null; } set { } } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.Quota.Models.GroupQuotaAdditionalAttributes System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.Quota.Models.GroupQuotaAdditionalAttributes System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } - public partial class GroupQuotaAdditionalAttributesPatch : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - public GroupQuotaAdditionalAttributesPatch() { } - public Azure.ResourceManager.Quota.Models.GroupQuotaEnvironmentType? Environment { get { throw null; } set { } } - public Azure.ResourceManager.Quota.Models.GroupQuotaGroupingId GroupId { get { throw null; } set { } } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.Quota.Models.GroupQuotaAdditionalAttributesPatch System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.Quota.Models.GroupQuotaAdditionalAttributesPatch System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + public static Azure.ResourceManager.Quota.SubscriptionQuotaAllocationsListData SubscriptionQuotaAllocationsListData(Azure.Core.ResourceIdentifier id = null, string name = null, Azure.Core.ResourceType resourceType = default(Azure.Core.ResourceType), Azure.ResourceManager.Models.SystemData systemData = null, Azure.ResourceManager.Quota.Models.SubscriptionQuotaAllocationsListProperties properties = null) { throw null; } + public static Azure.ResourceManager.Quota.Models.SubscriptionQuotaAllocationsListProperties SubscriptionQuotaAllocationsListProperties(Azure.ResourceManager.Quota.Models.QuotaRequestStatus? provisioningState = default(Azure.ResourceManager.Quota.Models.QuotaRequestStatus?), System.Collections.Generic.IEnumerable value = null, string nextLink = null) { throw null; } + public static Azure.ResourceManager.Quota.Models.SubscriptionQuotaAllocationsProperties SubscriptionQuotaAllocationsProperties(string resourceName = null, long? limit = default(long?), long? shareableQuota = default(long?), string value = null, string localizedValue = null) { throw null; } + public static Azure.ResourceManager.Quota.Models.SubscriptionQuotaDetails SubscriptionQuotaDetails(string resourceName = null, long? limit = default(long?), long? shareableQuota = default(long?), string value = null, string localizedValue = null) { throw null; } } public partial class GroupQuotaDetails : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { @@ -648,7 +560,7 @@ public GroupQuotaDetails() { } public string Comment { get { throw null; } set { } } public long? Limit { get { throw null; } set { } } public string LocalizedValue { get { throw null; } } - public string Region { get { throw null; } set { } } + public string ResourceName { get { throw null; } set { } } public string Unit { get { throw null; } } public string Value { get { throw null; } } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } @@ -658,42 +570,9 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } - public partial class GroupQuotaEnforcementProperties : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - public GroupQuotaEnforcementProperties() { } - public Azure.ResourceManager.Quota.Models.GroupQuotaEnforcementState? EnforcementEnabled { get { throw null; } set { } } - public string FaultCode { get { throw null; } } - public Azure.ResourceManager.Quota.Models.QuotaRequestStatus? ProvisioningState { get { throw null; } } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.Quota.Models.GroupQuotaEnforcementProperties System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.Quota.Models.GroupQuotaEnforcementProperties System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } - [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct GroupQuotaEnforcementState : System.IEquatable - { - private readonly object _dummy; - private readonly int _dummyPrimitive; - public GroupQuotaEnforcementState(string value) { throw null; } - public static Azure.ResourceManager.Quota.Models.GroupQuotaEnforcementState Disabled { get { throw null; } } - public static Azure.ResourceManager.Quota.Models.GroupQuotaEnforcementState Enabled { get { throw null; } } - public static Azure.ResourceManager.Quota.Models.GroupQuotaEnforcementState NotAvailable { get { throw null; } } - public bool Equals(Azure.ResourceManager.Quota.Models.GroupQuotaEnforcementState other) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override bool Equals(object obj) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.ResourceManager.Quota.Models.GroupQuotaEnforcementState left, Azure.ResourceManager.Quota.Models.GroupQuotaEnforcementState right) { throw null; } - public static implicit operator Azure.ResourceManager.Quota.Models.GroupQuotaEnforcementState (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.Quota.Models.GroupQuotaEnforcementState left, Azure.ResourceManager.Quota.Models.GroupQuotaEnforcementState right) { throw null; } - public override string ToString() { throw null; } - } public partial class GroupQuotaEntityBase : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public GroupQuotaEntityBase() { } - public Azure.ResourceManager.Quota.Models.GroupQuotaAdditionalAttributes AdditionalAttributes { get { throw null; } set { } } public string DisplayName { get { throw null; } set { } } public Azure.ResourceManager.Quota.Models.QuotaRequestStatus? ProvisioningState { get { throw null; } } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } @@ -706,7 +585,7 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer public partial class GroupQuotaEntityPatch : Azure.ResourceManager.Models.ResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public GroupQuotaEntityPatch() { } - public Azure.ResourceManager.Quota.Models.GroupQuotasEntityBasePatch Properties { get { throw null; } set { } } + public Azure.ResourceManager.Quota.Models.GroupQuotasEntityPatchProperties Properties { get { throw null; } set { } } protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.ResourceManager.Quota.Models.GroupQuotaEntityPatch System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } @@ -714,53 +593,39 @@ protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter write string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } - [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct GroupQuotaEnvironmentType : System.IEquatable + public partial class GroupQuotaLimit : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { - private readonly object _dummy; - private readonly int _dummyPrimitive; - public GroupQuotaEnvironmentType(string value) { throw null; } - public static Azure.ResourceManager.Quota.Models.GroupQuotaEnvironmentType NonProduction { get { throw null; } } - public static Azure.ResourceManager.Quota.Models.GroupQuotaEnvironmentType Production { get { throw null; } } - public bool Equals(Azure.ResourceManager.Quota.Models.GroupQuotaEnvironmentType other) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override bool Equals(object obj) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.ResourceManager.Quota.Models.GroupQuotaEnvironmentType left, Azure.ResourceManager.Quota.Models.GroupQuotaEnvironmentType right) { throw null; } - public static implicit operator Azure.ResourceManager.Quota.Models.GroupQuotaEnvironmentType (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.Quota.Models.GroupQuotaEnvironmentType left, Azure.ResourceManager.Quota.Models.GroupQuotaEnvironmentType right) { throw null; } - public override string ToString() { throw null; } + public GroupQuotaLimit() { } + public Azure.ResourceManager.Quota.Models.GroupQuotaLimitProperties Properties { get { throw null; } set { } } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.Quota.Models.GroupQuotaLimit System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.Quota.Models.GroupQuotaLimit System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } - public partial class GroupQuotaGroupingId : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + public partial class GroupQuotaLimitListProperties : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { - public GroupQuotaGroupingId() { } - public Azure.ResourceManager.Quota.Models.GroupQuotaGroupingIdType? GroupingIdType { get { throw null; } set { } } - public string Value { get { throw null; } set { } } + public GroupQuotaLimitListProperties() { } + public string NextLink { get { throw null; } } + public Azure.ResourceManager.Quota.Models.QuotaRequestStatus? ProvisioningState { get { throw null; } } + public System.Collections.Generic.IList Value { get { throw null; } } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.Quota.Models.GroupQuotaGroupingId System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.Quota.Models.GroupQuotaGroupingId System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + Azure.ResourceManager.Quota.Models.GroupQuotaLimitListProperties System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.Quota.Models.GroupQuotaLimitListProperties System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } - [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct GroupQuotaGroupingIdType : System.IEquatable + public partial class GroupQuotaLimitProperties : Azure.ResourceManager.Quota.Models.GroupQuotaDetails, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { - private readonly object _dummy; - private readonly int _dummyPrimitive; - public GroupQuotaGroupingIdType(string value) { throw null; } - public static Azure.ResourceManager.Quota.Models.GroupQuotaGroupingIdType BillingId { get { throw null; } } - public static Azure.ResourceManager.Quota.Models.GroupQuotaGroupingIdType ServiceTreeId { get { throw null; } } - public bool Equals(Azure.ResourceManager.Quota.Models.GroupQuotaGroupingIdType other) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override bool Equals(object obj) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.ResourceManager.Quota.Models.GroupQuotaGroupingIdType left, Azure.ResourceManager.Quota.Models.GroupQuotaGroupingIdType right) { throw null; } - public static implicit operator Azure.ResourceManager.Quota.Models.GroupQuotaGroupingIdType (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.Quota.Models.GroupQuotaGroupingIdType left, Azure.ResourceManager.Quota.Models.GroupQuotaGroupingIdType right) { throw null; } - public override string ToString() { throw null; } + public GroupQuotaLimitProperties() { } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.Quota.Models.GroupQuotaLimitProperties System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.Quota.Models.GroupQuotaLimitProperties System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } public partial class GroupQuotaRequestBase : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { @@ -791,21 +656,9 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } - public partial class GroupQuotaResourceUsages : Azure.ResourceManager.Models.ResourceData, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - public GroupQuotaResourceUsages() { } - public Azure.ResourceManager.Quota.Models.GroupQuotaUsagesBase Properties { get { throw null; } set { } } - protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.Quota.Models.GroupQuotaResourceUsages System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.Quota.Models.GroupQuotaResourceUsages System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } public partial class GroupQuotasEntityBasePatch : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public GroupQuotasEntityBasePatch() { } - public Azure.ResourceManager.Quota.Models.GroupQuotaAdditionalAttributesPatch AdditionalAttributes { get { throw null; } set { } } public string DisplayName { get { throw null; } set { } } public Azure.ResourceManager.Quota.Models.QuotaRequestStatus? ProvisioningState { get { throw null; } } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } @@ -815,11 +668,31 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } + public partial class GroupQuotasEntityPatchProperties : Azure.ResourceManager.Quota.Models.GroupQuotasEntityBasePatch, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public GroupQuotasEntityPatchProperties() { } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.Quota.Models.GroupQuotasEntityPatchProperties System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.Quota.Models.GroupQuotasEntityPatchProperties System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class GroupQuotasEntityProperties : Azure.ResourceManager.Quota.Models.GroupQuotaEntityBase, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public GroupQuotasEntityProperties() { } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.Quota.Models.GroupQuotasEntityProperties System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.Quota.Models.GroupQuotasEntityProperties System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } public partial class GroupQuotaSubscriptionProperties : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public GroupQuotaSubscriptionProperties() { } public Azure.ResourceManager.Quota.Models.QuotaRequestStatus? ProvisioningState { get { throw null; } } - public string SubscriptionId { get { throw null; } } + public string SubscriptionId { get { throw null; } set { } } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.ResourceManager.Quota.Models.GroupQuotaSubscriptionProperties System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } @@ -840,21 +713,6 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } - public partial class GroupQuotaUsagesBase : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel - { - public GroupQuotaUsagesBase() { } - public long? Limit { get { throw null; } set { } } - public string LocalizedValue { get { throw null; } } - public string Unit { get { throw null; } } - public long? Usages { get { throw null; } set { } } - public string Value { get { throw null; } set { } } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.Quota.Models.GroupQuotaUsagesBase System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } - Azure.ResourceManager.Quota.Models.GroupQuotaUsagesBase System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } - } public partial class QuotaAllocationRequestBase : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public QuotaAllocationRequestBase() { } @@ -1097,12 +955,46 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } } + public partial class SubscriptionQuotaAllocations : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public SubscriptionQuotaAllocations() { } + public Azure.ResourceManager.Quota.Models.SubscriptionQuotaAllocationsProperties Properties { get { throw null; } set { } } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.Quota.Models.SubscriptionQuotaAllocations System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.Quota.Models.SubscriptionQuotaAllocations System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class SubscriptionQuotaAllocationsListProperties : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public SubscriptionQuotaAllocationsListProperties() { } + public string NextLink { get { throw null; } } + public Azure.ResourceManager.Quota.Models.QuotaRequestStatus? ProvisioningState { get { throw null; } } + public System.Collections.Generic.IList Value { get { throw null; } } + protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.Quota.Models.SubscriptionQuotaAllocationsListProperties System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.Quota.Models.SubscriptionQuotaAllocationsListProperties System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } + public partial class SubscriptionQuotaAllocationsProperties : Azure.ResourceManager.Quota.Models.SubscriptionQuotaDetails, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel + { + public SubscriptionQuotaAllocationsProperties() { } + protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.Quota.Models.SubscriptionQuotaAllocationsProperties System.ClientModel.Primitives.IJsonModel.Create(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + void System.ClientModel.Primitives.IJsonModel.Write(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } + Azure.ResourceManager.Quota.Models.SubscriptionQuotaAllocationsProperties System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } + } public partial class SubscriptionQuotaDetails : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { public SubscriptionQuotaDetails() { } public long? Limit { get { throw null; } set { } } public string LocalizedValue { get { throw null; } } - public string Region { get { throw null; } set { } } + public string ResourceName { get { throw null; } set { } } public long? ShareableQuota { get { throw null; } } public string Value { get { throw null; } } protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } diff --git a/sdk/quota/Azure.ResourceManager.Quota/samples/Generated/Samples/Sample_CurrentQuotaLimitBaseCollection.cs b/sdk/quota/Azure.ResourceManager.Quota/samples/Generated/Samples/Sample_CurrentQuotaLimitBaseCollection.cs index 5fdc0d4716a4..5a77afca4eeb 100644 --- a/sdk/quota/Azure.ResourceManager.Quota/samples/Generated/Samples/Sample_CurrentQuotaLimitBaseCollection.cs +++ b/sdk/quota/Azure.ResourceManager.Quota/samples/Generated/Samples/Sample_CurrentQuotaLimitBaseCollection.cs @@ -20,7 +20,7 @@ public partial class Sample_CurrentQuotaLimitBaseCollection [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_QuotasPutRequestForNetwork() { - // Generated from example definition: specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/putNetworkOneSkuQuotaRequest.json + // Generated from example definition: specification/quota/resource-manager/Microsoft.Quota/stable/2024-12-12/examples/putNetworkOneSkuQuotaRequest.json // this example is just showing the usage of "Quota_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details 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_QuotasPutRequestForNetwork() [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_QuotasPutRequestForNetworkStandardSkuPublicIpAddressesResource() { - // Generated from example definition: specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/putNetworkOneSkuQuotaRequestStandardSkuPublicIpAddresses.json + // Generated from example definition: specification/quota/resource-manager/Microsoft.Quota/stable/2024-12-12/examples/putNetworkOneSkuQuotaRequestStandardSkuPublicIpAddresses.json // this example is just showing the usage of "Quota_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details 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_QuotasPutRequestForNetworkStandardSkuPublicIpAd [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_QuotasPutRequestForCompute() { - // Generated from example definition: specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/putComputeOneSkuQuotaRequest.json + // Generated from example definition: specification/quota/resource-manager/Microsoft.Quota/stable/2024-12-12/examples/putComputeOneSkuQuotaRequest.json // this example is just showing the usage of "Quota_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details 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 CreateOrUpdate_QuotasPutRequestForCompute() [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_QuotasRequestForMachineLearningServicesLowPriorityResource() { - // Generated from example definition: specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/putMachineLearningServicesQuotaRequestLowPriority.json + // Generated from example definition: specification/quota/resource-manager/Microsoft.Quota/stable/2024-12-12/examples/putMachineLearningServicesQuotaRequestLowPriority.json // this example is just showing the usage of "Quota_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details 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_QuotasRequestForMachineLearningServicesLowPrior [Ignore("Only validating compilation of examples")] public async Task Get_QuotasGetRequestForCompute() { - // Generated from example definition: specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/getComputeOneSkuQuotaLimit.json + // Generated from example definition: specification/quota/resource-manager/Microsoft.Quota/stable/2024-12-12/examples/getComputeOneSkuQuotaLimit.json // this example is just showing the usage of "Quota_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details 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_QuotasGetRequestForCompute() [Ignore("Only validating compilation of examples")] public async Task Get_QuotasUsagesRequestForNetwork() { - // Generated from example definition: specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/getNetworkOneSkuQuotaLimit.json + // Generated from example definition: specification/quota/resource-manager/Microsoft.Quota/stable/2024-12-12/examples/getNetworkOneSkuQuotaLimit.json // this example is just showing the usage of "Quota_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details 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 +233,7 @@ public async Task Get_QuotasUsagesRequestForNetwork() [Ignore("Only validating compilation of examples")] public async Task GetAll_QuotasListQuotaLimitsForCompute() { - // Generated from example definition: specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/getComputeQuotaLimits.json + // Generated from example definition: specification/quota/resource-manager/Microsoft.Quota/stable/2024-12-12/examples/getComputeQuotaLimits.json // this example is just showing the usage of "Quota_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 @@ -262,7 +262,7 @@ public async Task GetAll_QuotasListQuotaLimitsForCompute() [Ignore("Only validating compilation of examples")] public async Task GetAll_QuotasListQuotaLimitsForNetwork() { - // Generated from example definition: specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/getNetworkQuotaLimits.json + // Generated from example definition: specification/quota/resource-manager/Microsoft.Quota/stable/2024-12-12/examples/getNetworkQuotaLimits.json // this example is just showing the usage of "Quota_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 @@ -291,7 +291,7 @@ public async Task GetAll_QuotasListQuotaLimitsForNetwork() [Ignore("Only validating compilation of examples")] public async Task GetAll_QuotasListQuotaLimitsMachineLearningServices() { - // Generated from example definition: specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/getMachineLearningServicesQuotaLimits.json + // Generated from example definition: specification/quota/resource-manager/Microsoft.Quota/stable/2024-12-12/examples/getMachineLearningServicesQuotaLimits.json // this example is just showing the usage of "Quota_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 @@ -320,7 +320,7 @@ public async Task GetAll_QuotasListQuotaLimitsMachineLearningServices() [Ignore("Only validating compilation of examples")] public async Task Exists_QuotasGetRequestForCompute() { - // Generated from example definition: specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/getComputeOneSkuQuotaLimit.json + // Generated from example definition: specification/quota/resource-manager/Microsoft.Quota/stable/2024-12-12/examples/getComputeOneSkuQuotaLimit.json // this example is just showing the usage of "Quota_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -343,7 +343,7 @@ public async Task Exists_QuotasGetRequestForCompute() [Ignore("Only validating compilation of examples")] public async Task Exists_QuotasUsagesRequestForNetwork() { - // Generated from example definition: specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/getNetworkOneSkuQuotaLimit.json + // Generated from example definition: specification/quota/resource-manager/Microsoft.Quota/stable/2024-12-12/examples/getNetworkOneSkuQuotaLimit.json // this example is just showing the usage of "Quota_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details 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 Exists_QuotasUsagesRequestForNetwork() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_QuotasGetRequestForCompute() { - // Generated from example definition: specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/getComputeOneSkuQuotaLimit.json + // Generated from example definition: specification/quota/resource-manager/Microsoft.Quota/stable/2024-12-12/examples/getComputeOneSkuQuotaLimit.json // this example is just showing the usage of "Quota_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -401,7 +401,7 @@ public async Task GetIfExists_QuotasGetRequestForCompute() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_QuotasUsagesRequestForNetwork() { - // Generated from example definition: specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/getNetworkOneSkuQuotaLimit.json + // Generated from example definition: specification/quota/resource-manager/Microsoft.Quota/stable/2024-12-12/examples/getNetworkOneSkuQuotaLimit.json // this example is just showing the usage of "Quota_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details 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/quota/Azure.ResourceManager.Quota/samples/Generated/Samples/Sample_CurrentQuotaLimitBaseResource.cs b/sdk/quota/Azure.ResourceManager.Quota/samples/Generated/Samples/Sample_CurrentQuotaLimitBaseResource.cs index 777f8d3c5f6d..8c18a310e7b8 100644 --- a/sdk/quota/Azure.ResourceManager.Quota/samples/Generated/Samples/Sample_CurrentQuotaLimitBaseResource.cs +++ b/sdk/quota/Azure.ResourceManager.Quota/samples/Generated/Samples/Sample_CurrentQuotaLimitBaseResource.cs @@ -20,7 +20,7 @@ public partial class Sample_CurrentQuotaLimitBaseResource [Ignore("Only validating compilation of examples")] public async Task Get_QuotasGetRequestForCompute() { - // Generated from example definition: specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/getComputeOneSkuQuotaLimit.json + // Generated from example definition: specification/quota/resource-manager/Microsoft.Quota/stable/2024-12-12/examples/getComputeOneSkuQuotaLimit.json // this example is just showing the usage of "Quota_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details 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 Get_QuotasGetRequestForCompute() [Ignore("Only validating compilation of examples")] public async Task Get_QuotasUsagesRequestForNetwork() { - // Generated from example definition: specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/getNetworkOneSkuQuotaLimit.json + // Generated from example definition: specification/quota/resource-manager/Microsoft.Quota/stable/2024-12-12/examples/getNetworkOneSkuQuotaLimit.json // this example is just showing the usage of "Quota_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details 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_QuotasUsagesRequestForNetwork() [Ignore("Only validating compilation of examples")] public async Task Update_QuotasRequestPatchForCompute() { - // Generated from example definition: specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/patchComputeQuotaRequest.json + // Generated from example definition: specification/quota/resource-manager/Microsoft.Quota/stable/2024-12-12/examples/patchComputeQuotaRequest.json // this example is just showing the usage of "Quota_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 @@ -119,7 +119,7 @@ public async Task Update_QuotasRequestPatchForCompute() [Ignore("Only validating compilation of examples")] public async Task Update_QuotasRequestPatchForNetwork() { - // Generated from example definition: specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/patchNetworkOneSkuQuotaRequest.json + // Generated from example definition: specification/quota/resource-manager/Microsoft.Quota/stable/2024-12-12/examples/patchNetworkOneSkuQuotaRequest.json // this example is just showing the usage of "Quota_Update" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/quota/Azure.ResourceManager.Quota/samples/Generated/Samples/Sample_CurrentUsagesBaseCollection.cs b/sdk/quota/Azure.ResourceManager.Quota/samples/Generated/Samples/Sample_CurrentUsagesBaseCollection.cs index 38e438f7e722..e9b5f159e1bb 100644 --- a/sdk/quota/Azure.ResourceManager.Quota/samples/Generated/Samples/Sample_CurrentUsagesBaseCollection.cs +++ b/sdk/quota/Azure.ResourceManager.Quota/samples/Generated/Samples/Sample_CurrentUsagesBaseCollection.cs @@ -19,7 +19,7 @@ public partial class Sample_CurrentUsagesBaseCollection [Ignore("Only validating compilation of examples")] public async Task Get_QuotasUsagesRequestForCompute() { - // Generated from example definition: specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/getComputeOneSkuUsages.json + // Generated from example definition: specification/quota/resource-manager/Microsoft.Quota/stable/2024-12-12/examples/getComputeOneSkuUsages.json // this example is just showing the usage of "Usages_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details 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 Get_QuotasUsagesRequestForCompute() [Ignore("Only validating compilation of examples")] public async Task Get_QuotasUsagesRequestForNetwork() { - // Generated from example definition: specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/getNetworkOneSkuUsages.json + // Generated from example definition: specification/quota/resource-manager/Microsoft.Quota/stable/2024-12-12/examples/getNetworkOneSkuUsages.json // this example is just showing the usage of "Usages_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details 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 Get_QuotasUsagesRequestForNetwork() [Ignore("Only validating compilation of examples")] public async Task GetAll_QuotasListUsagesForCompute() { - // Generated from example definition: specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/getComputeUsages.json + // Generated from example definition: specification/quota/resource-manager/Microsoft.Quota/stable/2024-12-12/examples/getComputeUsages.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 @@ -102,7 +102,7 @@ public async Task GetAll_QuotasListUsagesForCompute() [Ignore("Only validating compilation of examples")] public async Task GetAll_QuotasListUsagesForNetwork() { - // Generated from example definition: specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/getNetworkUsages.json + // Generated from example definition: specification/quota/resource-manager/Microsoft.Quota/stable/2024-12-12/examples/getNetworkUsages.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 @@ -131,7 +131,7 @@ public async Task GetAll_QuotasListUsagesForNetwork() [Ignore("Only validating compilation of examples")] public async Task GetAll_QuotasListUsagesMachineLearningServices() { - // Generated from example definition: specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/getMachineLearningServicesUsages.json + // Generated from example definition: specification/quota/resource-manager/Microsoft.Quota/stable/2024-12-12/examples/getMachineLearningServicesUsages.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 @@ -160,7 +160,7 @@ public async Task GetAll_QuotasListUsagesMachineLearningServices() [Ignore("Only validating compilation of examples")] public async Task Exists_QuotasUsagesRequestForCompute() { - // Generated from example definition: specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/getComputeOneSkuUsages.json + // Generated from example definition: specification/quota/resource-manager/Microsoft.Quota/stable/2024-12-12/examples/getComputeOneSkuUsages.json // this example is just showing the usage of "Usages_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details 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 Exists_QuotasUsagesRequestForCompute() [Ignore("Only validating compilation of examples")] public async Task Exists_QuotasUsagesRequestForNetwork() { - // Generated from example definition: specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/getNetworkOneSkuUsages.json + // Generated from example definition: specification/quota/resource-manager/Microsoft.Quota/stable/2024-12-12/examples/getNetworkOneSkuUsages.json // this example is just showing the usage of "Usages_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details 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 Exists_QuotasUsagesRequestForNetwork() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_QuotasUsagesRequestForCompute() { - // Generated from example definition: specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/getComputeOneSkuUsages.json + // Generated from example definition: specification/quota/resource-manager/Microsoft.Quota/stable/2024-12-12/examples/getComputeOneSkuUsages.json // this example is just showing the usage of "Usages_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details 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 GetIfExists_QuotasUsagesRequestForCompute() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_QuotasUsagesRequestForNetwork() { - // Generated from example definition: specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/getNetworkOneSkuUsages.json + // Generated from example definition: specification/quota/resource-manager/Microsoft.Quota/stable/2024-12-12/examples/getNetworkOneSkuUsages.json // this example is just showing the usage of "Usages_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details 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/quota/Azure.ResourceManager.Quota/samples/Generated/Samples/Sample_CurrentUsagesBaseResource.cs b/sdk/quota/Azure.ResourceManager.Quota/samples/Generated/Samples/Sample_CurrentUsagesBaseResource.cs index f1d9ce8e3926..acd149fb079e 100644 --- a/sdk/quota/Azure.ResourceManager.Quota/samples/Generated/Samples/Sample_CurrentUsagesBaseResource.cs +++ b/sdk/quota/Azure.ResourceManager.Quota/samples/Generated/Samples/Sample_CurrentUsagesBaseResource.cs @@ -19,7 +19,7 @@ public partial class Sample_CurrentUsagesBaseResource [Ignore("Only validating compilation of examples")] public async Task Get_QuotasUsagesRequestForCompute() { - // Generated from example definition: specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/getComputeOneSkuUsages.json + // Generated from example definition: specification/quota/resource-manager/Microsoft.Quota/stable/2024-12-12/examples/getComputeOneSkuUsages.json // this example is just showing the usage of "Usages_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details 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 Get_QuotasUsagesRequestForCompute() [Ignore("Only validating compilation of examples")] public async Task Get_QuotasUsagesRequestForNetwork() { - // Generated from example definition: specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/getNetworkOneSkuUsages.json + // Generated from example definition: specification/quota/resource-manager/Microsoft.Quota/stable/2024-12-12/examples/getNetworkOneSkuUsages.json // this example is just showing the usage of "Usages_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details 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/quota/Azure.ResourceManager.Quota/samples/Generated/Samples/Sample_GroupQuotaEntityCollection.cs b/sdk/quota/Azure.ResourceManager.Quota/samples/Generated/Samples/Sample_GroupQuotaEntityCollection.cs index 32dea99cf118..8e02d7f7e9ee 100644 --- a/sdk/quota/Azure.ResourceManager.Quota/samples/Generated/Samples/Sample_GroupQuotaEntityCollection.cs +++ b/sdk/quota/Azure.ResourceManager.Quota/samples/Generated/Samples/Sample_GroupQuotaEntityCollection.cs @@ -21,7 +21,7 @@ public partial class Sample_GroupQuotaEntityCollection [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_GroupQuotasPutRequestForCompute() { - // Generated from example definition: specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotas/PutGroupQuotas.json + // Generated from example definition: specification/quota/resource-manager/Microsoft.Quota/stable/2024-12-12/examples/GroupQuotas/PutGroupQuotas.json // this example is just showing the usage of "GroupQuotas_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details 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,17 +42,9 @@ public async Task CreateOrUpdate_GroupQuotasPutRequestForCompute() string groupQuotaName = "groupquota1"; GroupQuotaEntityData data = new GroupQuotaEntityData { - Properties = new GroupQuotaEntityBase + Properties = new GroupQuotasEntityProperties { DisplayName = "GroupQuota1", - AdditionalAttributes = new GroupQuotaAdditionalAttributes(new GroupQuotaGroupingId - { - GroupingIdType = GroupQuotaGroupingIdType.ServiceTreeId, - Value = "yourServiceTreeIdHere", - }) - { - Environment = GroupQuotaEnvironmentType.Production, - }, }, }; ArmOperation lro = await collection.CreateOrUpdateAsync(WaitUntil.Completed, groupQuotaName, data); @@ -69,7 +61,7 @@ public async Task CreateOrUpdate_GroupQuotasPutRequestForCompute() [Ignore("Only validating compilation of examples")] public async Task Get_GroupQuotasGetRequestForCompute() { - // Generated from example definition: specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotas/GetGroupQuotas.json + // Generated from example definition: specification/quota/resource-manager/Microsoft.Quota/stable/2024-12-12/examples/GroupQuotas/GetGroupQuotas.json // this example is just showing the usage of "GroupQuotas_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details 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,7 +93,7 @@ public async Task Get_GroupQuotasGetRequestForCompute() [Ignore("Only validating compilation of examples")] public async Task GetAll_GroupQuotasListRequestForCompute() { - // Generated from example definition: specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotas/GetGroupQuotasList.json + // Generated from example definition: specification/quota/resource-manager/Microsoft.Quota/stable/2024-12-12/examples/GroupQuotas/GetGroupQuotasList.json // this example is just showing the usage of "GroupQuotas_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 @@ -135,7 +127,7 @@ public async Task GetAll_GroupQuotasListRequestForCompute() [Ignore("Only validating compilation of examples")] public async Task Exists_GroupQuotasGetRequestForCompute() { - // Generated from example definition: specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotas/GetGroupQuotas.json + // Generated from example definition: specification/quota/resource-manager/Microsoft.Quota/stable/2024-12-12/examples/GroupQuotas/GetGroupQuotas.json // this example is just showing the usage of "GroupQuotas_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details 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 +155,7 @@ public async Task Exists_GroupQuotasGetRequestForCompute() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GroupQuotasGetRequestForCompute() { - // Generated from example definition: specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotas/GetGroupQuotas.json + // Generated from example definition: specification/quota/resource-manager/Microsoft.Quota/stable/2024-12-12/examples/GroupQuotas/GetGroupQuotas.json // this example is just showing the usage of "GroupQuotas_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details 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/quota/Azure.ResourceManager.Quota/samples/Generated/Samples/Sample_GroupQuotaEntityResource.cs b/sdk/quota/Azure.ResourceManager.Quota/samples/Generated/Samples/Sample_GroupQuotaEntityResource.cs index c7bc5789c488..56f6a9afa16c 100644 --- a/sdk/quota/Azure.ResourceManager.Quota/samples/Generated/Samples/Sample_GroupQuotaEntityResource.cs +++ b/sdk/quota/Azure.ResourceManager.Quota/samples/Generated/Samples/Sample_GroupQuotaEntityResource.cs @@ -20,7 +20,7 @@ public partial class Sample_GroupQuotaEntityResource [Ignore("Only validating compilation of examples")] public async Task Get_GroupQuotasGetRequestForCompute() { - // Generated from example definition: specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotas/GetGroupQuotas.json + // Generated from example definition: specification/quota/resource-manager/Microsoft.Quota/stable/2024-12-12/examples/GroupQuotas/GetGroupQuotas.json // this example is just showing the usage of "GroupQuotas_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details 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 Get_GroupQuotasGetRequestForCompute() [Ignore("Only validating compilation of examples")] public async Task Delete_GroupQuotasDeleteRequestForCompute() { - // Generated from example definition: specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotas/DeleteGroupQuotas.json + // Generated from example definition: specification/quota/resource-manager/Microsoft.Quota/stable/2024-12-12/examples/GroupQuotas/DeleteGroupQuotas.json // this example is just showing the usage of "GroupQuotas_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 @@ -74,7 +74,7 @@ public async Task Delete_GroupQuotasDeleteRequestForCompute() [Ignore("Only validating compilation of examples")] public async Task Update_GroupQuotasPatchRequestForCompute() { - // Generated from example definition: specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotas/PatchGroupQuotas.json + // Generated from example definition: specification/quota/resource-manager/Microsoft.Quota/stable/2024-12-12/examples/GroupQuotas/PatchGroupQuotas.json // this example is just showing the usage of "GroupQuotas_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 @@ -92,18 +92,9 @@ public async Task Update_GroupQuotasPatchRequestForCompute() // invoke the operation GroupQuotaEntityPatch patch = new GroupQuotaEntityPatch { - Properties = new GroupQuotasEntityBasePatch + Properties = new GroupQuotasEntityPatchProperties { DisplayName = "UpdatedGroupQuota1", - AdditionalAttributes = new GroupQuotaAdditionalAttributesPatch - { - GroupId = new GroupQuotaGroupingId - { - GroupingIdType = GroupQuotaGroupingIdType.ServiceTreeId, - Value = "UpdatedServiceTreeIdHere", - }, - Environment = GroupQuotaEnvironmentType.Production, - }, }, }; ArmOperation lro = await groupQuotaEntity.UpdateAsync(WaitUntil.Completed, patch); @@ -116,75 +107,11 @@ public async Task Update_GroupQuotasPatchRequestForCompute() Console.WriteLine($"Succeeded on id: {resourceData.Id}"); } - [Test] - [Ignore("Only validating compilation of examples")] - public async Task CreateOrUpdateGroupQuotaLimitsRequest_GroupQuotaLimitsRequestsCreateOrUpdate() - { - // Generated from example definition: specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotaLimitsRequests/PutGroupQuotaLimitsRequests-Compute.json - // this example is just showing the usage of "GroupQuotaLimitsRequest_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. - - // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line - TokenCredential cred = new DefaultAzureCredential(); - // authenticate your client - ArmClient client = new ArmClient(cred); - - // this example assumes you already have this GroupQuotaEntityResource created on azure - // for more information of creating GroupQuotaEntityResource, please refer to the document of GroupQuotaEntityResource - string managementGroupId = "E7EC67B3-7657-4966-BFFC-41EFD36BAA09"; - string groupQuotaName = "groupquota1"; - ResourceIdentifier groupQuotaEntityResourceId = GroupQuotaEntityResource.CreateResourceIdentifier(managementGroupId, groupQuotaName); - GroupQuotaEntityResource groupQuotaEntity = client.GetGroupQuotaEntityResource(groupQuotaEntityResourceId); - - // invoke the operation - string resourceProviderName = "Microsoft.Compute"; - string resourceName = "standardav2family"; - ArmOperation lro = await groupQuotaEntity.CreateOrUpdateGroupQuotaLimitsRequestAsync(WaitUntil.Completed, resourceProviderName, resourceName); - GroupQuotaRequestStatusResource 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 - GroupQuotaRequestStatusData 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 UpdateGroupQuotaLimitsRequest_GroupQuotaLimitsRequestsUpdate() - { - // Generated from example definition: specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotaLimitsRequests/PatchGroupQuotaLimitsRequests-Compute.json - // this example is just showing the usage of "GroupQuotaLimitsRequest_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 GroupQuotaEntityResource created on azure - // for more information of creating GroupQuotaEntityResource, please refer to the document of GroupQuotaEntityResource - string managementGroupId = "E7EC67B3-7657-4966-BFFC-41EFD36BAA09"; - string groupQuotaName = "groupquota1"; - ResourceIdentifier groupQuotaEntityResourceId = GroupQuotaEntityResource.CreateResourceIdentifier(managementGroupId, groupQuotaName); - GroupQuotaEntityResource groupQuotaEntity = client.GetGroupQuotaEntityResource(groupQuotaEntityResourceId); - - // invoke the operation - string resourceProviderName = "Microsoft.Compute"; - string resourceName = "standardav2family"; - ArmOperation lro = await groupQuotaEntity.UpdateGroupQuotaLimitsRequestAsync(WaitUntil.Completed, resourceProviderName, resourceName); - GroupQuotaRequestStatusResource 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 - GroupQuotaRequestStatusData 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 GetGroupQuotaLimitsRequests_GroupQuotaLimitsRequestList() { - // Generated from example definition: specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotaLimitsRequests/GroupQuotaLimitsRequests_List.json + // Generated from example definition: specification/quota/resource-manager/Microsoft.Quota/stable/2024-12-12/examples/GroupQuotaLimitsRequests/GroupQuotaLimitsRequests_List.json // this example is just showing the usage of "GroupQuotaLimitsRequest_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 @@ -213,35 +140,5 @@ public async Task GetGroupQuotaLimitsRequests_GroupQuotaLimitsRequestList() Console.WriteLine("Succeeded"); } - - [Test] - [Ignore("Only validating compilation of examples")] - public async Task GetGroupQuotaUsages_GroupQuotasUsagesList() - { - // Generated from example definition: specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotaUsages/GetGroupQuotaUsages.json - // this example is just showing the usage of "GroupQuotaUsages_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 GroupQuotaEntityResource created on azure - // for more information of creating GroupQuotaEntityResource, please refer to the document of GroupQuotaEntityResource - string managementGroupId = "E7EC67B3-7657-4966-BFFC-41EFD36BAA09"; - string groupQuotaName = "groupquota1"; - ResourceIdentifier groupQuotaEntityResourceId = GroupQuotaEntityResource.CreateResourceIdentifier(managementGroupId, groupQuotaName); - GroupQuotaEntityResource groupQuotaEntity = client.GetGroupQuotaEntityResource(groupQuotaEntityResourceId); - - // invoke the operation and iterate over the result - string resourceProviderName = "Microsoft.Compute"; - AzureLocation location = new AzureLocation("westus"); - await foreach (GroupQuotaResourceUsages item in groupQuotaEntity.GetGroupQuotaUsagesAsync(resourceProviderName, location)) - { - Console.WriteLine($"Succeeded: {item}"); - } - - Console.WriteLine("Succeeded"); - } } } diff --git a/sdk/quota/Azure.ResourceManager.Quota/samples/Generated/Samples/Sample_GroupQuotaLimitListCollection.cs b/sdk/quota/Azure.ResourceManager.Quota/samples/Generated/Samples/Sample_GroupQuotaLimitListCollection.cs new file mode 100644 index 000000000000..1fddb1c49dbb --- /dev/null +++ b/sdk/quota/Azure.ResourceManager.Quota/samples/Generated/Samples/Sample_GroupQuotaLimitListCollection.cs @@ -0,0 +1,124 @@ +// 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.Quota.Samples +{ + public partial class Sample_GroupQuotaLimitListCollection + { + [Test] + [Ignore("Only validating compilation of examples")] + public async Task Get_GroupQuotaLimitsGetRequestForCompute() + { + // Generated from example definition: specification/quota/resource-manager/Microsoft.Quota/stable/2024-12-12/examples/GroupQuotaLimits/ListGroupQuotaLimits-Compute.json + // this example is just showing the usage of "GroupQuotaLimits_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 GroupQuotaEntityResource created on azure + // for more information of creating GroupQuotaEntityResource, please refer to the document of GroupQuotaEntityResource + string managementGroupId = "E7EC67B3-7657-4966-BFFC-41EFD36BAA09"; + string groupQuotaName = "groupquota1"; + ResourceIdentifier groupQuotaEntityResourceId = GroupQuotaEntityResource.CreateResourceIdentifier(managementGroupId, groupQuotaName); + GroupQuotaEntityResource groupQuotaEntity = client.GetGroupQuotaEntityResource(groupQuotaEntityResourceId); + + // get the collection of this GroupQuotaLimitListResource + GroupQuotaLimitListCollection collection = groupQuotaEntity.GetGroupQuotaLimitLists(); + + // invoke the operation + string resourceProviderName = "Microsoft.Compute"; + AzureLocation location = new AzureLocation("westus"); + GroupQuotaLimitListResource result = await collection.GetAsync(resourceProviderName, location); + + // 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 + GroupQuotaLimitListData 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_GroupQuotaLimitsGetRequestForCompute() + { + // Generated from example definition: specification/quota/resource-manager/Microsoft.Quota/stable/2024-12-12/examples/GroupQuotaLimits/ListGroupQuotaLimits-Compute.json + // this example is just showing the usage of "GroupQuotaLimits_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 GroupQuotaEntityResource created on azure + // for more information of creating GroupQuotaEntityResource, please refer to the document of GroupQuotaEntityResource + string managementGroupId = "E7EC67B3-7657-4966-BFFC-41EFD36BAA09"; + string groupQuotaName = "groupquota1"; + ResourceIdentifier groupQuotaEntityResourceId = GroupQuotaEntityResource.CreateResourceIdentifier(managementGroupId, groupQuotaName); + GroupQuotaEntityResource groupQuotaEntity = client.GetGroupQuotaEntityResource(groupQuotaEntityResourceId); + + // get the collection of this GroupQuotaLimitListResource + GroupQuotaLimitListCollection collection = groupQuotaEntity.GetGroupQuotaLimitLists(); + + // invoke the operation + string resourceProviderName = "Microsoft.Compute"; + AzureLocation location = new AzureLocation("westus"); + bool result = await collection.ExistsAsync(resourceProviderName, location); + + Console.WriteLine($"Succeeded: {result}"); + } + + [Test] + [Ignore("Only validating compilation of examples")] + public async Task GetIfExists_GroupQuotaLimitsGetRequestForCompute() + { + // Generated from example definition: specification/quota/resource-manager/Microsoft.Quota/stable/2024-12-12/examples/GroupQuotaLimits/ListGroupQuotaLimits-Compute.json + // this example is just showing the usage of "GroupQuotaLimits_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 GroupQuotaEntityResource created on azure + // for more information of creating GroupQuotaEntityResource, please refer to the document of GroupQuotaEntityResource + string managementGroupId = "E7EC67B3-7657-4966-BFFC-41EFD36BAA09"; + string groupQuotaName = "groupquota1"; + ResourceIdentifier groupQuotaEntityResourceId = GroupQuotaEntityResource.CreateResourceIdentifier(managementGroupId, groupQuotaName); + GroupQuotaEntityResource groupQuotaEntity = client.GetGroupQuotaEntityResource(groupQuotaEntityResourceId); + + // get the collection of this GroupQuotaLimitListResource + GroupQuotaLimitListCollection collection = groupQuotaEntity.GetGroupQuotaLimitLists(); + + // invoke the operation + string resourceProviderName = "Microsoft.Compute"; + AzureLocation location = new AzureLocation("westus"); + NullableResponse response = await collection.GetIfExistsAsync(resourceProviderName, location); + GroupQuotaLimitListResource 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 + GroupQuotaLimitListData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + } + } +} diff --git a/sdk/quota/Azure.ResourceManager.Quota/samples/Generated/Samples/Sample_GroupQuotaLimitListResource.cs b/sdk/quota/Azure.ResourceManager.Quota/samples/Generated/Samples/Sample_GroupQuotaLimitListResource.cs new file mode 100644 index 000000000000..408997a69b5c --- /dev/null +++ b/sdk/quota/Azure.ResourceManager.Quota/samples/Generated/Samples/Sample_GroupQuotaLimitListResource.cs @@ -0,0 +1,105 @@ +// 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.Quota.Models; +using NUnit.Framework; + +namespace Azure.ResourceManager.Quota.Samples +{ + public partial class Sample_GroupQuotaLimitListResource + { + [Test] + [Ignore("Only validating compilation of examples")] + public async Task Get_GroupQuotaLimitsGetRequestForCompute() + { + // Generated from example definition: specification/quota/resource-manager/Microsoft.Quota/stable/2024-12-12/examples/GroupQuotaLimits/ListGroupQuotaLimits-Compute.json + // this example is just showing the usage of "GroupQuotaLimits_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 GroupQuotaLimitListResource created on azure + // for more information of creating GroupQuotaLimitListResource, please refer to the document of GroupQuotaLimitListResource + string managementGroupId = "E7EC67B3-7657-4966-BFFC-41EFD36BAA09"; + string groupQuotaName = "groupquota1"; + string resourceProviderName = "Microsoft.Compute"; + AzureLocation location = new AzureLocation("westus"); + ResourceIdentifier groupQuotaLimitListResourceId = GroupQuotaLimitListResource.CreateResourceIdentifier(managementGroupId, groupQuotaName, resourceProviderName, location); + GroupQuotaLimitListResource groupQuotaLimitList = client.GetGroupQuotaLimitListResource(groupQuotaLimitListResourceId); + + // invoke the operation + GroupQuotaLimitListResource result = await groupQuotaLimitList.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 + GroupQuotaLimitListData 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_GroupQuotaLimitsRequestsUpdate() + { + // Generated from example definition: specification/quota/resource-manager/Microsoft.Quota/stable/2024-12-12/examples/GroupQuotaLimitsRequests/PatchGroupQuotaLimitsRequests-Compute.json + // this example is just showing the usage of "GroupQuotaLimitsRequest_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 GroupQuotaLimitListResource created on azure + // for more information of creating GroupQuotaLimitListResource, please refer to the document of GroupQuotaLimitListResource + string managementGroupId = "E7EC67B3-7657-4966-BFFC-41EFD36BAA09"; + string groupQuotaName = "groupquota1"; + string resourceProviderName = "Microsoft.Compute"; + AzureLocation location = new AzureLocation("westus"); + ResourceIdentifier groupQuotaLimitListResourceId = GroupQuotaLimitListResource.CreateResourceIdentifier(managementGroupId, groupQuotaName, resourceProviderName, location); + GroupQuotaLimitListResource groupQuotaLimitList = client.GetGroupQuotaLimitListResource(groupQuotaLimitListResourceId); + + // invoke the operation + GroupQuotaLimitListData data = new GroupQuotaLimitListData + { + Properties = new GroupQuotaLimitListProperties + { + Value = {new GroupQuotaLimit +{ +Properties = new GroupQuotaLimitProperties +{ +ResourceName = "standardddv4family", +Limit = 110L, +Comment = "Contoso requires more quota.", +}, +}, new GroupQuotaLimit +{ +Properties = new GroupQuotaLimitProperties +{ +ResourceName = "standardav2family", +Limit = 110L, +Comment = "Contoso requires more quota.", +}, +}}, + }, + }; + ArmOperation lro = await groupQuotaLimitList.UpdateAsync(WaitUntil.Completed, data); + GroupQuotaLimitListResource 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 + GroupQuotaLimitListData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + } +} diff --git a/sdk/quota/Azure.ResourceManager.Quota/samples/Generated/Samples/Sample_GroupQuotaRequestStatusCollection.cs b/sdk/quota/Azure.ResourceManager.Quota/samples/Generated/Samples/Sample_GroupQuotaRequestStatusCollection.cs index b7039ffaef83..fb82763d02ee 100644 --- a/sdk/quota/Azure.ResourceManager.Quota/samples/Generated/Samples/Sample_GroupQuotaRequestStatusCollection.cs +++ b/sdk/quota/Azure.ResourceManager.Quota/samples/Generated/Samples/Sample_GroupQuotaRequestStatusCollection.cs @@ -19,7 +19,7 @@ public partial class Sample_GroupQuotaRequestStatusCollection [Ignore("Only validating compilation of examples")] public async Task Get_GroupQuotaLimitsRequestsGet() { - // Generated from example definition: specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotaLimitsRequests/GroupQuotaLimitsRequests_Get.json + // Generated from example definition: specification/quota/resource-manager/Microsoft.Quota/stable/2024-12-12/examples/GroupQuotaLimitsRequests/GroupQuotaLimitsRequests_Get.json // this example is just showing the usage of "GroupQuotaLimitsRequest_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details 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_GroupQuotaLimitsRequestsGet() [Ignore("Only validating compilation of examples")] public async Task Exists_GroupQuotaLimitsRequestsGet() { - // Generated from example definition: specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotaLimitsRequests/GroupQuotaLimitsRequests_Get.json + // Generated from example definition: specification/quota/resource-manager/Microsoft.Quota/stable/2024-12-12/examples/GroupQuotaLimitsRequests/GroupQuotaLimitsRequests_Get.json // this example is just showing the usage of "GroupQuotaLimitsRequest_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -81,7 +81,7 @@ public async Task Exists_GroupQuotaLimitsRequestsGet() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GroupQuotaLimitsRequestsGet() { - // Generated from example definition: specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotaLimitsRequests/GroupQuotaLimitsRequests_Get.json + // Generated from example definition: specification/quota/resource-manager/Microsoft.Quota/stable/2024-12-12/examples/GroupQuotaLimitsRequests/GroupQuotaLimitsRequests_Get.json // this example is just showing the usage of "GroupQuotaLimitsRequest_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details 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/quota/Azure.ResourceManager.Quota/samples/Generated/Samples/Sample_GroupQuotaRequestStatusResource.cs b/sdk/quota/Azure.ResourceManager.Quota/samples/Generated/Samples/Sample_GroupQuotaRequestStatusResource.cs index 30f2a62d29f4..74a719d6c1fb 100644 --- a/sdk/quota/Azure.ResourceManager.Quota/samples/Generated/Samples/Sample_GroupQuotaRequestStatusResource.cs +++ b/sdk/quota/Azure.ResourceManager.Quota/samples/Generated/Samples/Sample_GroupQuotaRequestStatusResource.cs @@ -19,7 +19,7 @@ public partial class Sample_GroupQuotaRequestStatusResource [Ignore("Only validating compilation of examples")] public async Task Get_GroupQuotaLimitsRequestsGet() { - // Generated from example definition: specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotaLimitsRequests/GroupQuotaLimitsRequests_Get.json + // Generated from example definition: specification/quota/resource-manager/Microsoft.Quota/stable/2024-12-12/examples/GroupQuotaLimitsRequests/GroupQuotaLimitsRequests_Get.json // this example is just showing the usage of "GroupQuotaLimitsRequest_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details 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/quota/Azure.ResourceManager.Quota/samples/Generated/Samples/Sample_GroupQuotaSubscriptionCollection.cs b/sdk/quota/Azure.ResourceManager.Quota/samples/Generated/Samples/Sample_GroupQuotaSubscriptionCollection.cs index 7809d35f9e84..72b6e1c3900d 100644 --- a/sdk/quota/Azure.ResourceManager.Quota/samples/Generated/Samples/Sample_GroupQuotaSubscriptionCollection.cs +++ b/sdk/quota/Azure.ResourceManager.Quota/samples/Generated/Samples/Sample_GroupQuotaSubscriptionCollection.cs @@ -19,7 +19,7 @@ public partial class Sample_GroupQuotaSubscriptionCollection [Ignore("Only validating compilation of examples")] public async Task CreateOrUpdate_GroupQuotaSubscriptionsPutSubscriptions() { - // Generated from example definition: specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotasSubscriptions/PutGroupQuotasSubscription.json + // Generated from example definition: specification/quota/resource-manager/Microsoft.Quota/stable/2024-12-12/examples/GroupQuotasSubscriptions/PutGroupQuotasSubscription.json // this example is just showing the usage of "GroupQuotaSubscriptions_CreateOrUpdate" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details 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 CreateOrUpdate_GroupQuotaSubscriptionsPutSubscriptions() [Ignore("Only validating compilation of examples")] public async Task Get_GroupQuotaSubscriptionsGetSubscriptions() { - // Generated from example definition: specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotasSubscriptions/GetGroupQuotaSubscriptions.json + // Generated from example definition: specification/quota/resource-manager/Microsoft.Quota/stable/2024-12-12/examples/GroupQuotasSubscriptions/GetGroupQuotaSubscriptions.json // this example is just showing the usage of "GroupQuotaSubscriptions_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details 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_GroupQuotaSubscriptionsGetSubscriptions() [Ignore("Only validating compilation of examples")] public async Task GetAll_GroupQuotaSubscriptionsListSubscriptions() { - // Generated from example definition: specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotasSubscriptions/ListGroupQuotaSubscriptions.json + // Generated from example definition: specification/quota/resource-manager/Microsoft.Quota/stable/2024-12-12/examples/GroupQuotasSubscriptions/ListGroupQuotaSubscriptions.json // this example is just showing the usage of "GroupQuotaSubscriptions_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 @@ -121,7 +121,7 @@ public async Task GetAll_GroupQuotaSubscriptionsListSubscriptions() [Ignore("Only validating compilation of examples")] public async Task Exists_GroupQuotaSubscriptionsGetSubscriptions() { - // Generated from example definition: specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotasSubscriptions/GetGroupQuotaSubscriptions.json + // Generated from example definition: specification/quota/resource-manager/Microsoft.Quota/stable/2024-12-12/examples/GroupQuotasSubscriptions/GetGroupQuotaSubscriptions.json // this example is just showing the usage of "GroupQuotaSubscriptions_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details 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 Exists_GroupQuotaSubscriptionsGetSubscriptions() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GroupQuotaSubscriptionsGetSubscriptions() { - // Generated from example definition: specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotasSubscriptions/GetGroupQuotaSubscriptions.json + // Generated from example definition: specification/quota/resource-manager/Microsoft.Quota/stable/2024-12-12/examples/GroupQuotasSubscriptions/GetGroupQuotaSubscriptions.json // this example is just showing the usage of "GroupQuotaSubscriptions_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details 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/quota/Azure.ResourceManager.Quota/samples/Generated/Samples/Sample_GroupQuotaSubscriptionRequestStatusCollection.cs b/sdk/quota/Azure.ResourceManager.Quota/samples/Generated/Samples/Sample_GroupQuotaSubscriptionRequestStatusCollection.cs index c1d15ee5eedf..fe52a87b4af6 100644 --- a/sdk/quota/Azure.ResourceManager.Quota/samples/Generated/Samples/Sample_GroupQuotaSubscriptionRequestStatusCollection.cs +++ b/sdk/quota/Azure.ResourceManager.Quota/samples/Generated/Samples/Sample_GroupQuotaSubscriptionRequestStatusCollection.cs @@ -19,7 +19,7 @@ public partial class Sample_GroupQuotaSubscriptionRequestStatusCollection [Ignore("Only validating compilation of examples")] public async Task Get_GroupQuotaSubscriptionRequestsGet() { - // Generated from example definition: specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/SubscriptionRequests/SubscriptionRequests_Get.json + // Generated from example definition: specification/quota/resource-manager/Microsoft.Quota/stable/2024-12-12/examples/SubscriptionRequests/SubscriptionRequests_Get.json // this example is just showing the usage of "GroupQuotaSubscriptionRequests_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details 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_GroupQuotaSubscriptionRequestsGet() [Ignore("Only validating compilation of examples")] public async Task GetAll_GroupQuotaSubscriptionRequestsList() { - // Generated from example definition: specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/SubscriptionRequests/SubscriptionRequests_List.json + // Generated from example definition: specification/quota/resource-manager/Microsoft.Quota/stable/2024-12-12/examples/SubscriptionRequests/SubscriptionRequests_List.json // this example is just showing the usage of "GroupQuotaSubscriptionRequests_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 @@ -87,7 +87,7 @@ public async Task GetAll_GroupQuotaSubscriptionRequestsList() [Ignore("Only validating compilation of examples")] public async Task Exists_GroupQuotaSubscriptionRequestsGet() { - // Generated from example definition: specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/SubscriptionRequests/SubscriptionRequests_Get.json + // Generated from example definition: specification/quota/resource-manager/Microsoft.Quota/stable/2024-12-12/examples/SubscriptionRequests/SubscriptionRequests_Get.json // this example is just showing the usage of "GroupQuotaSubscriptionRequests_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details 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 Exists_GroupQuotaSubscriptionRequestsGet() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_GroupQuotaSubscriptionRequestsGet() { - // Generated from example definition: specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/SubscriptionRequests/SubscriptionRequests_Get.json + // Generated from example definition: specification/quota/resource-manager/Microsoft.Quota/stable/2024-12-12/examples/SubscriptionRequests/SubscriptionRequests_Get.json // this example is just showing the usage of "GroupQuotaSubscriptionRequests_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details 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/quota/Azure.ResourceManager.Quota/samples/Generated/Samples/Sample_GroupQuotaSubscriptionRequestStatusResource.cs b/sdk/quota/Azure.ResourceManager.Quota/samples/Generated/Samples/Sample_GroupQuotaSubscriptionRequestStatusResource.cs index c8e017b238fb..eae93dd869db 100644 --- a/sdk/quota/Azure.ResourceManager.Quota/samples/Generated/Samples/Sample_GroupQuotaSubscriptionRequestStatusResource.cs +++ b/sdk/quota/Azure.ResourceManager.Quota/samples/Generated/Samples/Sample_GroupQuotaSubscriptionRequestStatusResource.cs @@ -19,7 +19,7 @@ public partial class Sample_GroupQuotaSubscriptionRequestStatusResource [Ignore("Only validating compilation of examples")] public async Task Get_GroupQuotaSubscriptionRequestsGet() { - // Generated from example definition: specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/SubscriptionRequests/SubscriptionRequests_Get.json + // Generated from example definition: specification/quota/resource-manager/Microsoft.Quota/stable/2024-12-12/examples/SubscriptionRequests/SubscriptionRequests_Get.json // this example is just showing the usage of "GroupQuotaSubscriptionRequests_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details 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/quota/Azure.ResourceManager.Quota/samples/Generated/Samples/Sample_GroupQuotaSubscriptionResource.cs b/sdk/quota/Azure.ResourceManager.Quota/samples/Generated/Samples/Sample_GroupQuotaSubscriptionResource.cs index 818911725625..b56883254965 100644 --- a/sdk/quota/Azure.ResourceManager.Quota/samples/Generated/Samples/Sample_GroupQuotaSubscriptionResource.cs +++ b/sdk/quota/Azure.ResourceManager.Quota/samples/Generated/Samples/Sample_GroupQuotaSubscriptionResource.cs @@ -19,7 +19,7 @@ public partial class Sample_GroupQuotaSubscriptionResource [Ignore("Only validating compilation of examples")] public async Task Get_GroupQuotaSubscriptionsGetSubscriptions() { - // Generated from example definition: specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotasSubscriptions/GetGroupQuotaSubscriptions.json + // Generated from example definition: specification/quota/resource-manager/Microsoft.Quota/stable/2024-12-12/examples/GroupQuotasSubscriptions/GetGroupQuotaSubscriptions.json // this example is just showing the usage of "GroupQuotaSubscriptions_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details 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 Get_GroupQuotaSubscriptionsGetSubscriptions() [Ignore("Only validating compilation of examples")] public async Task Delete_GroupQuotaSubscriptionsDeleteSubscriptions() { - // Generated from example definition: specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotasSubscriptions/DeleteGroupQuotaSubscriptions.json + // Generated from example definition: specification/quota/resource-manager/Microsoft.Quota/stable/2024-12-12/examples/GroupQuotasSubscriptions/DeleteGroupQuotaSubscriptions.json // this example is just showing the usage of "GroupQuotaSubscriptions_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 @@ -75,7 +75,7 @@ public async Task Delete_GroupQuotaSubscriptionsDeleteSubscriptions() [Ignore("Only validating compilation of examples")] public async Task Update_GroupQuotaSubscriptionsPatchSubscriptions() { - // Generated from example definition: specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GroupQuotasSubscriptions/PatchGroupQuotasSubscription.json + // Generated from example definition: specification/quota/resource-manager/Microsoft.Quota/stable/2024-12-12/examples/GroupQuotasSubscriptions/PatchGroupQuotasSubscription.json // this example is just showing the usage of "GroupQuotaSubscriptions_Update" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line diff --git a/sdk/quota/Azure.ResourceManager.Quota/samples/Generated/Samples/Sample_QuotaAllocationRequestStatusCollection.cs b/sdk/quota/Azure.ResourceManager.Quota/samples/Generated/Samples/Sample_QuotaAllocationRequestStatusCollection.cs index c2bc5e31dbc8..f804936f9ee4 100644 --- a/sdk/quota/Azure.ResourceManager.Quota/samples/Generated/Samples/Sample_QuotaAllocationRequestStatusCollection.cs +++ b/sdk/quota/Azure.ResourceManager.Quota/samples/Generated/Samples/Sample_QuotaAllocationRequestStatusCollection.cs @@ -20,7 +20,7 @@ public partial class Sample_QuotaAllocationRequestStatusCollection [Ignore("Only validating compilation of examples")] public async Task Get_SubscriptionQuotaAllocationRequestsGetRequestForCompute() { - // Generated from example definition: specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/SubscriptionQuotaAllocationRequests/SubscriptionQuotaAllocationRequests_Get-Compute.json + // Generated from example definition: specification/quota/resource-manager/Microsoft.Quota/stable/2024-12-12/examples/SubscriptionQuotaAllocationRequests/SubscriptionQuotaAllocationRequests_Get-Compute.json // this example is just showing the usage of "GroupQuotaSubscriptionAllocationRequest_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -35,13 +35,14 @@ public async Task Get_SubscriptionQuotaAllocationRequestsGetRequestForCompute() ManagementGroupResource managementGroupResource = client.GetManagementGroupResource(managementGroupResourceId); // get the collection of this QuotaAllocationRequestStatusResource - QuotaAllocationRequestStatusCollection collection = managementGroupResource.GetQuotaAllocationRequestStatuses(); - - // invoke the operation string subscriptionId = "00000000-0000-0000-0000-000000000000"; string groupQuotaName = "groupquota1"; + string resourceProviderName = "Microsoft.Compute"; + QuotaAllocationRequestStatusCollection collection = managementGroupResource.GetQuotaAllocationRequestStatuses(subscriptionId, groupQuotaName, resourceProviderName); + + // invoke the operation string allocationId = "AE000000-0000-0000-0000-00000000000A"; - QuotaAllocationRequestStatusResource result = await collection.GetAsync(subscriptionId, groupQuotaName, allocationId); + QuotaAllocationRequestStatusResource result = await collection.GetAsync(allocationId); // 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 @@ -50,11 +51,49 @@ public async Task Get_SubscriptionQuotaAllocationRequestsGetRequestForCompute() Console.WriteLine($"Succeeded on id: {resourceData.Id}"); } + [Test] + [Ignore("Only validating compilation of examples")] + public async Task GetAll_SubscriptionQuotaAllocationListRequestForCompute() + { + // Generated from example definition: specification/quota/resource-manager/Microsoft.Quota/stable/2024-12-12/examples/SubscriptionQuotaAllocationRequests/SubscriptionQuotaAllocationRequests_List-Compute.json + // this example is just showing the usage of "GroupQuotaSubscriptionAllocationRequest_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 ManagementGroupResource created on azure + // for more information of creating ManagementGroupResource, please refer to the document of ManagementGroupResource + string managementGroupId = "E7EC67B3-7657-4966-BFFC-41EFD36BAA09"; + ResourceIdentifier managementGroupResourceId = ManagementGroupResource.CreateResourceIdentifier(managementGroupId); + ManagementGroupResource managementGroupResource = client.GetManagementGroupResource(managementGroupResourceId); + + // get the collection of this QuotaAllocationRequestStatusResource + string subscriptionId = "00000000-0000-0000-0000-000000000000"; + string groupQuotaName = "groupquota1"; + string resourceProviderName = "Microsoft.Compute"; + QuotaAllocationRequestStatusCollection collection = managementGroupResource.GetQuotaAllocationRequestStatuses(subscriptionId, groupQuotaName, resourceProviderName); + + // invoke the operation and iterate over the result + string filter = "location eq westus"; + await foreach (QuotaAllocationRequestStatusResource item in collection.GetAllAsync(filter)) + { + // 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 + QuotaAllocationRequestStatusData resourceData = item.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + + Console.WriteLine("Succeeded"); + } + [Test] [Ignore("Only validating compilation of examples")] public async Task Exists_SubscriptionQuotaAllocationRequestsGetRequestForCompute() { - // Generated from example definition: specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/SubscriptionQuotaAllocationRequests/SubscriptionQuotaAllocationRequests_Get-Compute.json + // Generated from example definition: specification/quota/resource-manager/Microsoft.Quota/stable/2024-12-12/examples/SubscriptionQuotaAllocationRequests/SubscriptionQuotaAllocationRequests_Get-Compute.json // this example is just showing the usage of "GroupQuotaSubscriptionAllocationRequest_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details 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,13 +108,14 @@ public async Task Exists_SubscriptionQuotaAllocationRequestsGetRequestForCompute ManagementGroupResource managementGroupResource = client.GetManagementGroupResource(managementGroupResourceId); // get the collection of this QuotaAllocationRequestStatusResource - QuotaAllocationRequestStatusCollection collection = managementGroupResource.GetQuotaAllocationRequestStatuses(); - - // invoke the operation string subscriptionId = "00000000-0000-0000-0000-000000000000"; string groupQuotaName = "groupquota1"; + string resourceProviderName = "Microsoft.Compute"; + QuotaAllocationRequestStatusCollection collection = managementGroupResource.GetQuotaAllocationRequestStatuses(subscriptionId, groupQuotaName, resourceProviderName); + + // invoke the operation string allocationId = "AE000000-0000-0000-0000-00000000000A"; - bool result = await collection.ExistsAsync(subscriptionId, groupQuotaName, allocationId); + bool result = await collection.ExistsAsync(allocationId); Console.WriteLine($"Succeeded: {result}"); } @@ -84,7 +124,7 @@ public async Task Exists_SubscriptionQuotaAllocationRequestsGetRequestForCompute [Ignore("Only validating compilation of examples")] public async Task GetIfExists_SubscriptionQuotaAllocationRequestsGetRequestForCompute() { - // Generated from example definition: specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/SubscriptionQuotaAllocationRequests/SubscriptionQuotaAllocationRequests_Get-Compute.json + // Generated from example definition: specification/quota/resource-manager/Microsoft.Quota/stable/2024-12-12/examples/SubscriptionQuotaAllocationRequests/SubscriptionQuotaAllocationRequests_Get-Compute.json // this example is just showing the usage of "GroupQuotaSubscriptionAllocationRequest_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details 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,13 +139,14 @@ public async Task GetIfExists_SubscriptionQuotaAllocationRequestsGetRequestForCo ManagementGroupResource managementGroupResource = client.GetManagementGroupResource(managementGroupResourceId); // get the collection of this QuotaAllocationRequestStatusResource - QuotaAllocationRequestStatusCollection collection = managementGroupResource.GetQuotaAllocationRequestStatuses(); - - // invoke the operation string subscriptionId = "00000000-0000-0000-0000-000000000000"; string groupQuotaName = "groupquota1"; + string resourceProviderName = "Microsoft.Compute"; + QuotaAllocationRequestStatusCollection collection = managementGroupResource.GetQuotaAllocationRequestStatuses(subscriptionId, groupQuotaName, resourceProviderName); + + // invoke the operation string allocationId = "AE000000-0000-0000-0000-00000000000A"; - NullableResponse response = await collection.GetIfExistsAsync(subscriptionId, groupQuotaName, allocationId); + NullableResponse response = await collection.GetIfExistsAsync(allocationId); QuotaAllocationRequestStatusResource result = response.HasValue ? response.Value : null; if (result == null) diff --git a/sdk/quota/Azure.ResourceManager.Quota/samples/Generated/Samples/Sample_QuotaAllocationRequestStatusResource.cs b/sdk/quota/Azure.ResourceManager.Quota/samples/Generated/Samples/Sample_QuotaAllocationRequestStatusResource.cs index 0a54311a09d3..39154a0c8a2a 100644 --- a/sdk/quota/Azure.ResourceManager.Quota/samples/Generated/Samples/Sample_QuotaAllocationRequestStatusResource.cs +++ b/sdk/quota/Azure.ResourceManager.Quota/samples/Generated/Samples/Sample_QuotaAllocationRequestStatusResource.cs @@ -19,7 +19,7 @@ public partial class Sample_QuotaAllocationRequestStatusResource [Ignore("Only validating compilation of examples")] public async Task Get_SubscriptionQuotaAllocationRequestsGetRequestForCompute() { - // Generated from example definition: specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/SubscriptionQuotaAllocationRequests/SubscriptionQuotaAllocationRequests_Get-Compute.json + // Generated from example definition: specification/quota/resource-manager/Microsoft.Quota/stable/2024-12-12/examples/SubscriptionQuotaAllocationRequests/SubscriptionQuotaAllocationRequests_Get-Compute.json // this example is just showing the usage of "GroupQuotaSubscriptionAllocationRequest_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details of how Azure SDK get your access token, please refer to https://learn.microsoft.com/en-us/dotnet/azure/sdk/authentication?tabs=command-line @@ -32,8 +32,9 @@ public async Task Get_SubscriptionQuotaAllocationRequestsGetRequestForCompute() string managementGroupId = "E7EC67B3-7657-4966-BFFC-41EFD36BAA09"; string subscriptionId = "00000000-0000-0000-0000-000000000000"; string groupQuotaName = "groupquota1"; + string resourceProviderName = "Microsoft.Compute"; string allocationId = "AE000000-0000-0000-0000-00000000000A"; - ResourceIdentifier quotaAllocationRequestStatusResourceId = QuotaAllocationRequestStatusResource.CreateResourceIdentifier(managementGroupId, subscriptionId, groupQuotaName, allocationId); + ResourceIdentifier quotaAllocationRequestStatusResourceId = QuotaAllocationRequestStatusResource.CreateResourceIdentifier(managementGroupId, subscriptionId, groupQuotaName, resourceProviderName, allocationId); QuotaAllocationRequestStatusResource quotaAllocationRequestStatus = client.GetQuotaAllocationRequestStatusResource(quotaAllocationRequestStatusResourceId); // invoke the operation diff --git a/sdk/quota/Azure.ResourceManager.Quota/samples/Generated/Samples/Sample_QuotaRequestDetailCollection.cs b/sdk/quota/Azure.ResourceManager.Quota/samples/Generated/Samples/Sample_QuotaRequestDetailCollection.cs index 1a6a30c14886..866595b12fcb 100644 --- a/sdk/quota/Azure.ResourceManager.Quota/samples/Generated/Samples/Sample_QuotaRequestDetailCollection.cs +++ b/sdk/quota/Azure.ResourceManager.Quota/samples/Generated/Samples/Sample_QuotaRequestDetailCollection.cs @@ -19,7 +19,7 @@ public partial class Sample_QuotaRequestDetailCollection [Ignore("Only validating compilation of examples")] public async Task Get_QuotaRequestFailed() { - // Generated from example definition: specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/getQuotaRequestStatusFailed.json + // Generated from example definition: specification/quota/resource-manager/Microsoft.Quota/stable/2024-12-12/examples/getQuotaRequestStatusFailed.json // this example is just showing the usage of "QuotaRequestStatus_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details 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 Get_QuotaRequestFailed() [Ignore("Only validating compilation of examples")] public async Task Get_QuotaRequestInProgress() { - // Generated from example definition: specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/getQuotaRequestStatusInProgress.json + // Generated from example definition: specification/quota/resource-manager/Microsoft.Quota/stable/2024-12-12/examples/getQuotaRequestStatusInProgress.json // this example is just showing the usage of "QuotaRequestStatus_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details 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 Get_QuotaRequestInProgress() [Ignore("Only validating compilation of examples")] public async Task Get_QuotaRequestStatus() { - // Generated from example definition: specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/getQuotaRequestStatusById.json + // Generated from example definition: specification/quota/resource-manager/Microsoft.Quota/stable/2024-12-12/examples/getQuotaRequestStatusById.json // this example is just showing the usage of "QuotaRequestStatus_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details 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 Get_QuotaRequestStatus() [Ignore("Only validating compilation of examples")] public async Task GetAll_QuotaRequestHistory() { - // Generated from example definition: specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/getQuotaRequestsHistory.json + // Generated from example definition: specification/quota/resource-manager/Microsoft.Quota/stable/2024-12-12/examples/getQuotaRequestsHistory.json // this example is just showing the usage of "QuotaRequestStatus_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 @@ -129,7 +129,7 @@ public async Task GetAll_QuotaRequestHistory() [Ignore("Only validating compilation of examples")] public async Task Exists_QuotaRequestFailed() { - // Generated from example definition: specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/getQuotaRequestStatusFailed.json + // Generated from example definition: specification/quota/resource-manager/Microsoft.Quota/stable/2024-12-12/examples/getQuotaRequestStatusFailed.json // this example is just showing the usage of "QuotaRequestStatus_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details 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_QuotaRequestFailed() [Ignore("Only validating compilation of examples")] public async Task Exists_QuotaRequestInProgress() { - // Generated from example definition: specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/getQuotaRequestStatusInProgress.json + // Generated from example definition: specification/quota/resource-manager/Microsoft.Quota/stable/2024-12-12/examples/getQuotaRequestStatusInProgress.json // this example is just showing the usage of "QuotaRequestStatus_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details 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 Exists_QuotaRequestInProgress() [Ignore("Only validating compilation of examples")] public async Task Exists_QuotaRequestStatus() { - // Generated from example definition: specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/getQuotaRequestStatusById.json + // Generated from example definition: specification/quota/resource-manager/Microsoft.Quota/stable/2024-12-12/examples/getQuotaRequestStatusById.json // this example is just showing the usage of "QuotaRequestStatus_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details 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 Exists_QuotaRequestStatus() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_QuotaRequestFailed() { - // Generated from example definition: specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/getQuotaRequestStatusFailed.json + // Generated from example definition: specification/quota/resource-manager/Microsoft.Quota/stable/2024-12-12/examples/getQuotaRequestStatusFailed.json // this example is just showing the usage of "QuotaRequestStatus_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details 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 +233,7 @@ public async Task GetIfExists_QuotaRequestFailed() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_QuotaRequestInProgress() { - // Generated from example definition: specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/getQuotaRequestStatusInProgress.json + // Generated from example definition: specification/quota/resource-manager/Microsoft.Quota/stable/2024-12-12/examples/getQuotaRequestStatusInProgress.json // this example is just showing the usage of "QuotaRequestStatus_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details 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 GetIfExists_QuotaRequestInProgress() [Ignore("Only validating compilation of examples")] public async Task GetIfExists_QuotaRequestStatus() { - // Generated from example definition: specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/getQuotaRequestStatusById.json + // Generated from example definition: specification/quota/resource-manager/Microsoft.Quota/stable/2024-12-12/examples/getQuotaRequestStatusById.json // this example is just showing the usage of "QuotaRequestStatus_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details 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/quota/Azure.ResourceManager.Quota/samples/Generated/Samples/Sample_QuotaRequestDetailResource.cs b/sdk/quota/Azure.ResourceManager.Quota/samples/Generated/Samples/Sample_QuotaRequestDetailResource.cs index 92d88d305834..6caa5f1be19d 100644 --- a/sdk/quota/Azure.ResourceManager.Quota/samples/Generated/Samples/Sample_QuotaRequestDetailResource.cs +++ b/sdk/quota/Azure.ResourceManager.Quota/samples/Generated/Samples/Sample_QuotaRequestDetailResource.cs @@ -19,7 +19,7 @@ public partial class Sample_QuotaRequestDetailResource [Ignore("Only validating compilation of examples")] public async Task Get_QuotaRequestFailed() { - // Generated from example definition: specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/getQuotaRequestStatusFailed.json + // Generated from example definition: specification/quota/resource-manager/Microsoft.Quota/stable/2024-12-12/examples/getQuotaRequestStatusFailed.json // this example is just showing the usage of "QuotaRequestStatus_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details 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 Get_QuotaRequestFailed() [Ignore("Only validating compilation of examples")] public async Task Get_QuotaRequestInProgress() { - // Generated from example definition: specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/getQuotaRequestStatusInProgress.json + // Generated from example definition: specification/quota/resource-manager/Microsoft.Quota/stable/2024-12-12/examples/getQuotaRequestStatusInProgress.json // this example is just showing the usage of "QuotaRequestStatus_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details 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_QuotaRequestInProgress() [Ignore("Only validating compilation of examples")] public async Task Get_QuotaRequestStatus() { - // Generated from example definition: specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/getQuotaRequestStatusById.json + // Generated from example definition: specification/quota/resource-manager/Microsoft.Quota/stable/2024-12-12/examples/getQuotaRequestStatusById.json // this example is just showing the usage of "QuotaRequestStatus_Get" operation, for the dependent resources, they will have to be created separately. // get your azure access token, for more details 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/quota/Azure.ResourceManager.Quota/samples/Generated/Samples/Sample_SubscriptionQuotaAllocationsListCollection.cs b/sdk/quota/Azure.ResourceManager.Quota/samples/Generated/Samples/Sample_SubscriptionQuotaAllocationsListCollection.cs new file mode 100644 index 000000000000..f953a7c512ee --- /dev/null +++ b/sdk/quota/Azure.ResourceManager.Quota/samples/Generated/Samples/Sample_SubscriptionQuotaAllocationsListCollection.cs @@ -0,0 +1,128 @@ +// 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.ManagementGroups; +using NUnit.Framework; + +namespace Azure.ResourceManager.Quota.Samples +{ + public partial class Sample_SubscriptionQuotaAllocationsListCollection + { + [Test] + [Ignore("Only validating compilation of examples")] + public async Task Get_SubscriptionQuotaAllocationListForCompute() + { + // Generated from example definition: specification/quota/resource-manager/Microsoft.Quota/stable/2024-12-12/examples/SubscriptionQuotaAllocation/SubscriptionQuotaAllocation_List-Compute.json + // this example is just showing the usage of "GroupQuotaSubscriptionAllocation_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 ManagementGroupResource created on azure + // for more information of creating ManagementGroupResource, please refer to the document of ManagementGroupResource + string managementGroupId = "E7EC67B3-7657-4966-BFFC-41EFD36BAA09"; + ResourceIdentifier managementGroupResourceId = ManagementGroupResource.CreateResourceIdentifier(managementGroupId); + ManagementGroupResource managementGroupResource = client.GetManagementGroupResource(managementGroupResourceId); + + // get the collection of this SubscriptionQuotaAllocationsListResource + SubscriptionQuotaAllocationsListCollection collection = managementGroupResource.GetSubscriptionQuotaAllocationsLists(); + + // invoke the operation + string subscriptionId = "00000000-0000-0000-0000-000000000000"; + string groupQuotaName = "groupquota1"; + string resourceProviderName = "Microsoft.Compute"; + AzureLocation location = new AzureLocation("westus"); + SubscriptionQuotaAllocationsListResource result = await collection.GetAsync(subscriptionId, groupQuotaName, resourceProviderName, location); + + // 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 + SubscriptionQuotaAllocationsListData 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_SubscriptionQuotaAllocationListForCompute() + { + // Generated from example definition: specification/quota/resource-manager/Microsoft.Quota/stable/2024-12-12/examples/SubscriptionQuotaAllocation/SubscriptionQuotaAllocation_List-Compute.json + // this example is just showing the usage of "GroupQuotaSubscriptionAllocation_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 ManagementGroupResource created on azure + // for more information of creating ManagementGroupResource, please refer to the document of ManagementGroupResource + string managementGroupId = "E7EC67B3-7657-4966-BFFC-41EFD36BAA09"; + ResourceIdentifier managementGroupResourceId = ManagementGroupResource.CreateResourceIdentifier(managementGroupId); + ManagementGroupResource managementGroupResource = client.GetManagementGroupResource(managementGroupResourceId); + + // get the collection of this SubscriptionQuotaAllocationsListResource + SubscriptionQuotaAllocationsListCollection collection = managementGroupResource.GetSubscriptionQuotaAllocationsLists(); + + // invoke the operation + string subscriptionId = "00000000-0000-0000-0000-000000000000"; + string groupQuotaName = "groupquota1"; + string resourceProviderName = "Microsoft.Compute"; + AzureLocation location = new AzureLocation("westus"); + bool result = await collection.ExistsAsync(subscriptionId, groupQuotaName, resourceProviderName, location); + + Console.WriteLine($"Succeeded: {result}"); + } + + [Test] + [Ignore("Only validating compilation of examples")] + public async Task GetIfExists_SubscriptionQuotaAllocationListForCompute() + { + // Generated from example definition: specification/quota/resource-manager/Microsoft.Quota/stable/2024-12-12/examples/SubscriptionQuotaAllocation/SubscriptionQuotaAllocation_List-Compute.json + // this example is just showing the usage of "GroupQuotaSubscriptionAllocation_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 ManagementGroupResource created on azure + // for more information of creating ManagementGroupResource, please refer to the document of ManagementGroupResource + string managementGroupId = "E7EC67B3-7657-4966-BFFC-41EFD36BAA09"; + ResourceIdentifier managementGroupResourceId = ManagementGroupResource.CreateResourceIdentifier(managementGroupId); + ManagementGroupResource managementGroupResource = client.GetManagementGroupResource(managementGroupResourceId); + + // get the collection of this SubscriptionQuotaAllocationsListResource + SubscriptionQuotaAllocationsListCollection collection = managementGroupResource.GetSubscriptionQuotaAllocationsLists(); + + // invoke the operation + string subscriptionId = "00000000-0000-0000-0000-000000000000"; + string groupQuotaName = "groupquota1"; + string resourceProviderName = "Microsoft.Compute"; + AzureLocation location = new AzureLocation("westus"); + NullableResponse response = await collection.GetIfExistsAsync(subscriptionId, groupQuotaName, resourceProviderName, location); + SubscriptionQuotaAllocationsListResource 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 + SubscriptionQuotaAllocationsListData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + } + } +} diff --git a/sdk/quota/Azure.ResourceManager.Quota/samples/Generated/Samples/Sample_SubscriptionQuotaAllocationsListResource.cs b/sdk/quota/Azure.ResourceManager.Quota/samples/Generated/Samples/Sample_SubscriptionQuotaAllocationsListResource.cs new file mode 100644 index 000000000000..73825423373e --- /dev/null +++ b/sdk/quota/Azure.ResourceManager.Quota/samples/Generated/Samples/Sample_SubscriptionQuotaAllocationsListResource.cs @@ -0,0 +1,105 @@ +// 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.Quota.Models; +using NUnit.Framework; + +namespace Azure.ResourceManager.Quota.Samples +{ + public partial class Sample_SubscriptionQuotaAllocationsListResource + { + [Test] + [Ignore("Only validating compilation of examples")] + public async Task Get_SubscriptionQuotaAllocationListForCompute() + { + // Generated from example definition: specification/quota/resource-manager/Microsoft.Quota/stable/2024-12-12/examples/SubscriptionQuotaAllocation/SubscriptionQuotaAllocation_List-Compute.json + // this example is just showing the usage of "GroupQuotaSubscriptionAllocation_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 SubscriptionQuotaAllocationsListResource created on azure + // for more information of creating SubscriptionQuotaAllocationsListResource, please refer to the document of SubscriptionQuotaAllocationsListResource + string managementGroupId = "E7EC67B3-7657-4966-BFFC-41EFD36BAA09"; + string subscriptionId = "00000000-0000-0000-0000-000000000000"; + string groupQuotaName = "groupquota1"; + string resourceProviderName = "Microsoft.Compute"; + AzureLocation location = new AzureLocation("westus"); + ResourceIdentifier subscriptionQuotaAllocationsListResourceId = SubscriptionQuotaAllocationsListResource.CreateResourceIdentifier(managementGroupId, subscriptionId, groupQuotaName, resourceProviderName, location); + SubscriptionQuotaAllocationsListResource subscriptionQuotaAllocationsList = client.GetSubscriptionQuotaAllocationsListResource(subscriptionQuotaAllocationsListResourceId); + + // invoke the operation + SubscriptionQuotaAllocationsListResource result = await subscriptionQuotaAllocationsList.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 + SubscriptionQuotaAllocationsListData 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_SubscriptionQuotaAllocationPatchRequestForCompute() + { + // Generated from example definition: specification/quota/resource-manager/Microsoft.Quota/stable/2024-12-12/examples/SubscriptionQuotaAllocationRequests/PatchSubscriptionQuotaAllocationRequest-Compute.json + // this example is just showing the usage of "GroupQuotaSubscriptionAllocationRequest_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 SubscriptionQuotaAllocationsListResource created on azure + // for more information of creating SubscriptionQuotaAllocationsListResource, please refer to the document of SubscriptionQuotaAllocationsListResource + string managementGroupId = "E7EC67B3-7657-4966-BFFC-41EFD36BAA09"; + string subscriptionId = "00000000-0000-0000-0000-000000000000"; + string groupQuotaName = "groupquota1"; + string resourceProviderName = "Microsoft.Compute"; + AzureLocation location = new AzureLocation("westus"); + ResourceIdentifier subscriptionQuotaAllocationsListResourceId = SubscriptionQuotaAllocationsListResource.CreateResourceIdentifier(managementGroupId, subscriptionId, groupQuotaName, resourceProviderName, location); + SubscriptionQuotaAllocationsListResource subscriptionQuotaAllocationsList = client.GetSubscriptionQuotaAllocationsListResource(subscriptionQuotaAllocationsListResourceId); + + // invoke the operation + SubscriptionQuotaAllocationsListData data = new SubscriptionQuotaAllocationsListData + { + Properties = new SubscriptionQuotaAllocationsListProperties + { + Value = {new SubscriptionQuotaAllocations +{ +Properties = new SubscriptionQuotaAllocationsProperties +{ +ResourceName = "standardddv4family", +Limit = 110L, +}, +}, new SubscriptionQuotaAllocations +{ +Properties = new SubscriptionQuotaAllocationsProperties +{ +ResourceName = "standardav2family", +Limit = 110L, +}, +}}, + }, + }; + ArmOperation lro = await subscriptionQuotaAllocationsList.UpdateAsync(WaitUntil.Completed, data); + SubscriptionQuotaAllocationsListResource 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 + SubscriptionQuotaAllocationsListData resourceData = result.Data; + // for demo we just print out the id + Console.WriteLine($"Succeeded on id: {resourceData.Id}"); + } + } +} diff --git a/sdk/quota/Azure.ResourceManager.Quota/samples/Generated/Samples/Sample_TenantResourceExtensions.cs b/sdk/quota/Azure.ResourceManager.Quota/samples/Generated/Samples/Sample_TenantResourceExtensions.cs index cd1af5edc1d3..fb1ce14f0b1b 100644 --- a/sdk/quota/Azure.ResourceManager.Quota/samples/Generated/Samples/Sample_TenantResourceExtensions.cs +++ b/sdk/quota/Azure.ResourceManager.Quota/samples/Generated/Samples/Sample_TenantResourceExtensions.cs @@ -21,7 +21,7 @@ public partial class Sample_TenantResourceExtensions [Ignore("Only validating compilation of examples")] public async Task GetQuotaOperations_GetOperations() { - // Generated from example definition: specification/quota/resource-manager/Microsoft.Quota/preview/2023-06-01-preview/examples/GetOperations.json + // Generated from example definition: specification/quota/resource-manager/Microsoft.Quota/stable/2024-12-12/examples/GetOperations.json // this example is just showing the usage of "QuotaOperation_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/quota/Azure.ResourceManager.Quota/src/Generated/ArmQuotaModelFactory.cs b/sdk/quota/Azure.ResourceManager.Quota/src/Generated/ArmQuotaModelFactory.cs index fdf34e670e8f..dca58f4c1d95 100644 --- a/sdk/quota/Azure.ResourceManager.Quota/src/Generated/ArmQuotaModelFactory.cs +++ b/sdk/quota/Azure.ResourceManager.Quota/src/Generated/ArmQuotaModelFactory.cs @@ -21,9 +21,9 @@ public static partial class ArmQuotaModelFactory /// The name. /// The resourceType. /// The systemData. - /// Properties and filters for ShareQuota. The request parameter is optional, if there are no filters specified. + /// Properties. /// A new instance for mocking. - public static GroupQuotaEntityData GroupQuotaEntityData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, GroupQuotaEntityBase properties = null) + public static GroupQuotaEntityData GroupQuotaEntityData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, GroupQuotasEntityProperties properties = null) { return new GroupQuotaEntityData( id, @@ -34,14 +34,22 @@ public static GroupQuotaEntityData GroupQuotaEntityData(ResourceIdentifier id = serializedAdditionalRawData: null); } + /// Initializes a new instance of . + /// Display name of the GroupQuota entity. + /// Provisioning state of the operation. + /// A new instance for mocking. + public static GroupQuotasEntityProperties GroupQuotasEntityProperties(string displayName = null, QuotaRequestStatus? provisioningState = null) + { + return new GroupQuotasEntityProperties(displayName, provisioningState, serializedAdditionalRawData: null); + } + /// Initializes a new instance of . /// Display name of the GroupQuota entity. - /// Additional attributes to filter/restrict the subscriptions, which can be added to the subscriptionIds. /// Provisioning state of the operation. /// A new instance for mocking. - public static GroupQuotaEntityBase GroupQuotaEntityBase(string displayName = null, GroupQuotaAdditionalAttributes additionalAttributes = null, QuotaRequestStatus? provisioningState = null) + public static GroupQuotaEntityBase GroupQuotaEntityBase(string displayName = null, QuotaRequestStatus? provisioningState = null) { - return new GroupQuotaEntityBase(displayName, additionalAttributes, provisioningState, serializedAdditionalRawData: null); + return new GroupQuotaEntityBase(displayName, provisioningState, serializedAdditionalRawData: null); } /// Initializes a new instance of . @@ -49,9 +57,9 @@ public static GroupQuotaEntityBase GroupQuotaEntityBase(string displayName = nul /// The name. /// The resourceType. /// The systemData. - /// Properties and filters for ShareQuota. The request parameter is optional, if there are no filters specified. + /// Properties. /// A new instance for mocking. - public static GroupQuotaEntityPatch GroupQuotaEntityPatch(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, GroupQuotasEntityBasePatch properties = null) + public static GroupQuotaEntityPatch GroupQuotaEntityPatch(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, GroupQuotasEntityPatchProperties properties = null) { return new GroupQuotaEntityPatch( id, @@ -62,14 +70,22 @@ public static GroupQuotaEntityPatch GroupQuotaEntityPatch(ResourceIdentifier id serializedAdditionalRawData: null); } + /// Initializes a new instance of . + /// Display name of the GroupQuota entity. + /// Provisioning state of the operation. + /// A new instance for mocking. + public static GroupQuotasEntityPatchProperties GroupQuotasEntityPatchProperties(string displayName = null, QuotaRequestStatus? provisioningState = null) + { + return new GroupQuotasEntityPatchProperties(displayName, provisioningState, serializedAdditionalRawData: null); + } + /// Initializes a new instance of . /// Display name of the GroupQuota entity. - /// Additional attributes to filter/restrict the subscriptions, which can be added to the subscriptionIds. /// Provisioning state of the operation. /// A new instance for mocking. - public static GroupQuotasEntityBasePatch GroupQuotasEntityBasePatch(string displayName = null, GroupQuotaAdditionalAttributesPatch additionalAttributes = null, QuotaRequestStatus? provisioningState = null) + public static GroupQuotasEntityBasePatch GroupQuotasEntityBasePatch(string displayName = null, QuotaRequestStatus? provisioningState = null) { - return new GroupQuotasEntityBasePatch(displayName, additionalAttributes, provisioningState, serializedAdditionalRawData: null); + return new GroupQuotasEntityBasePatch(displayName, provisioningState, serializedAdditionalRawData: null); } /// Initializes a new instance of . @@ -127,16 +143,16 @@ public static GroupQuotaSubscriptionRequestStatusProperties GroupQuotaSubscripti return new GroupQuotaSubscriptionRequestStatusProperties(subscriptionId, requestSubmitOn, provisioningState, serializedAdditionalRawData: null); } - /// Initializes a new instance of . + /// Initializes a new instance of . /// The id. /// The name. /// The resourceType. /// The systemData. - /// Group Quota properties for the specified resource. - /// A new instance for mocking. - public static GroupQuotaLimitData GroupQuotaLimitData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, GroupQuotaDetails properties = null) + /// + /// A new instance for mocking. + public static GroupQuotaLimitListData GroupQuotaLimitListData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, GroupQuotaLimitListProperties properties = null) { - return new GroupQuotaLimitData( + return new GroupQuotaLimitListData( id, name, resourceType, @@ -145,8 +161,46 @@ public static GroupQuotaLimitData GroupQuotaLimitData(ResourceIdentifier id = nu serializedAdditionalRawData: null); } + /// Initializes a new instance of . + /// Request status. + /// List of Group Quota Limit details. + /// The URL to use for getting the next set of results. + /// A new instance for mocking. + public static GroupQuotaLimitListProperties GroupQuotaLimitListProperties(QuotaRequestStatus? provisioningState = null, IEnumerable value = null, string nextLink = null) + { + value ??= new List(); + + return new GroupQuotaLimitListProperties(provisioningState, value?.ToList(), nextLink, serializedAdditionalRawData: null); + } + + /// Initializes a new instance of . + /// The resource name, such as SKU name. + /// The current Group Quota Limit at the parentId level. + /// Any comment related to quota request. + /// The usages units, such as Count and Bytes. When requesting quota, use the **unit** value returned in the GET response in the request body of your PUT operation. + /// The available Group Quota Limit at the MG level. This Group quota can be allocated to subscription(s). + /// Quota allocated to subscriptions. + /// Resource name. + /// Resource display name. + /// A new instance for mocking. + public static GroupQuotaLimitProperties GroupQuotaLimitProperties(string resourceName = null, long? limit = null, string comment = null, string unit = null, long? availableLimit = null, IEnumerable allocatedToSubscriptionsValue = null, string value = null, string localizedValue = null) + { + allocatedToSubscriptionsValue ??= new List(); + + return new GroupQuotaLimitProperties( + resourceName, + limit, + comment, + unit, + availableLimit, + allocatedToSubscriptionsValue != null ? new AllocatedQuotaToSubscriptionList(allocatedToSubscriptionsValue?.ToList(), serializedAdditionalRawData: null) : null, + value, + localizedValue, + serializedAdditionalRawData: null); + } + /// Initializes a new instance of . - /// Location/Azure region for the quota requested for resource. + /// The resource name, such as SKU name. /// The current Group Quota Limit at the parentId level. /// Any comment related to quota request. /// The usages units, such as Count and Bytes. When requesting quota, use the **unit** value returned in the GET response in the request body of your PUT operation. @@ -155,12 +209,12 @@ public static GroupQuotaLimitData GroupQuotaLimitData(ResourceIdentifier id = nu /// Resource name. /// Resource display name. /// A new instance for mocking. - public static GroupQuotaDetails GroupQuotaDetails(string region = null, long? limit = null, string comment = null, string unit = null, long? availableLimit = null, IEnumerable allocatedToSubscriptionsValue = null, string value = null, string localizedValue = null) + public static GroupQuotaDetails GroupQuotaDetails(string resourceName = null, long? limit = null, string comment = null, string unit = null, long? availableLimit = null, IEnumerable allocatedToSubscriptionsValue = null, string value = null, string localizedValue = null) { allocatedToSubscriptionsValue ??= new List(); return new GroupQuotaDetails( - region, + resourceName, limit, comment, unit, @@ -227,16 +281,16 @@ public static GroupQuotaRequestBase GroupQuotaRequestBase(long? limit = null, st serializedAdditionalRawData: null); } - /// Initializes a new instance of . + /// Initializes a new instance of . /// The id. /// The name. /// The resourceType. /// The systemData. - /// Quota properties for the specified resource. - /// A new instance for mocking. - public static SubscriptionQuotaAllocationData SubscriptionQuotaAllocationData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, SubscriptionQuotaDetails properties = null) + /// + /// A new instance for mocking. + public static SubscriptionQuotaAllocationsListData SubscriptionQuotaAllocationsListData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, SubscriptionQuotaAllocationsListProperties properties = null) { - return new SubscriptionQuotaAllocationData( + return new SubscriptionQuotaAllocationsListData( id, name, resourceType, @@ -245,17 +299,47 @@ public static SubscriptionQuotaAllocationData SubscriptionQuotaAllocationData(Re serializedAdditionalRawData: null); } + /// Initializes a new instance of . + /// Request status. + /// Subscription quota list. + /// The URL to use for getting the next set of results. + /// A new instance for mocking. + public static SubscriptionQuotaAllocationsListProperties SubscriptionQuotaAllocationsListProperties(QuotaRequestStatus? provisioningState = null, IEnumerable value = null, string nextLink = null) + { + value ??= new List(); + + return new SubscriptionQuotaAllocationsListProperties(provisioningState, value?.ToList(), nextLink, serializedAdditionalRawData: null); + } + + /// Initializes a new instance of . + /// The resource name, such as SKU name. + /// The total quota limit for the subscription. + /// The shareable quota for the subscription. + /// Resource name. + /// Resource display name. + /// A new instance for mocking. + public static SubscriptionQuotaAllocationsProperties SubscriptionQuotaAllocationsProperties(string resourceName = null, long? limit = null, long? shareableQuota = null, string value = null, string localizedValue = null) + { + return new SubscriptionQuotaAllocationsProperties( + resourceName, + limit, + shareableQuota, + value, + localizedValue, + serializedAdditionalRawData: null); + } + /// Initializes a new instance of . - /// Location/Azure region for the quota requested for resource. + /// The resource name, such as SKU name. /// The total quota limit for the subscription. /// The shareable quota for the subscription. /// Resource name. /// Resource display name. /// A new instance for mocking. - public static SubscriptionQuotaDetails SubscriptionQuotaDetails(string region = null, long? limit = null, long? shareableQuota = null, string value = null, string localizedValue = null) + public static SubscriptionQuotaDetails SubscriptionQuotaDetails(string resourceName = null, long? limit = null, long? shareableQuota = null, string value = null, string localizedValue = null) { return new SubscriptionQuotaDetails( - region, + resourceName, limit, shareableQuota, value, @@ -298,70 +382,6 @@ public static QuotaAllocationRequestBase QuotaAllocationRequestBase(long? limit return new QuotaAllocationRequestBase(limit, region, value, localizedValue, serializedAdditionalRawData: null); } - /// Initializes a new instance of . - /// The id. - /// The name. - /// The resourceType. - /// The systemData. - /// Resource details with usages and GroupQuota. - /// A new instance for mocking. - public static GroupQuotaResourceUsages GroupQuotaResourceUsages(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, GroupQuotaUsagesBase properties = null) - { - return new GroupQuotaResourceUsages( - id, - name, - resourceType, - systemData, - properties, - serializedAdditionalRawData: null); - } - - /// Initializes a new instance of . - /// Quota/limits for the resource. - /// Usages for the resource. - /// Representing the units of the usage quota. Possible values are: Count, Bytes, Seconds, Percent, CountPerSecond, BytesPerSecond. Based on - https://armwiki.azurewebsites.net/api_contracts/UsagesAPIContract.html?q=usages . Different RPs may have different units, Count, type as int64 should work for most of the integer values. - /// Resource name. - /// Resource display name. - /// A new instance for mocking. - public static GroupQuotaUsagesBase GroupQuotaUsagesBase(long? limit = null, long? usages = null, string unit = null, string value = null, string localizedValue = null) - { - return new GroupQuotaUsagesBase( - limit, - usages, - unit, - value, - localizedValue, - serializedAdditionalRawData: null); - } - - /// Initializes a new instance of . - /// The id. - /// The name. - /// The resourceType. - /// The systemData. - /// - /// A new instance for mocking. - public static GroupQuotaEnforcementData GroupQuotaEnforcementData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, GroupQuotaEnforcementProperties properties = null) - { - return new GroupQuotaEnforcementData( - id, - name, - resourceType, - systemData, - properties, - serializedAdditionalRawData: null); - } - - /// Initializes a new instance of . - /// Is the GroupQuota Enforcement enabled for the Azure region. - /// Request status. - /// Details of the failure. - /// A new instance for mocking. - public static GroupQuotaEnforcementProperties GroupQuotaEnforcementProperties(GroupQuotaEnforcementState? enforcementEnabled = null, QuotaRequestStatus? provisioningState = null, string faultCode = null) - { - return new GroupQuotaEnforcementProperties(enforcementEnabled, provisioningState, faultCode, serializedAdditionalRawData: null); - } - /// Initializes a new instance of . /// The id. /// The name. diff --git a/sdk/quota/Azure.ResourceManager.Quota/src/Generated/CurrentQuotaLimitBaseCollection.cs b/sdk/quota/Azure.ResourceManager.Quota/src/Generated/CurrentQuotaLimitBaseCollection.cs index 1b0262a48a8c..dfc9d7a19aca 100644 --- a/sdk/quota/Azure.ResourceManager.Quota/src/Generated/CurrentQuotaLimitBaseCollection.cs +++ b/sdk/quota/Azure.ResourceManager.Quota/src/Generated/CurrentQuotaLimitBaseCollection.cs @@ -56,7 +56,7 @@ internal CurrentQuotaLimitBaseCollection(ArmClient client, ResourceIdentifier id /// /// /// Default Api Version - /// 2023-06-01-preview + /// 2024-12-12 /// /// /// Resource @@ -112,7 +112,7 @@ public virtual async Task> CreateOrU /// /// /// Default Api Version - /// 2023-06-01-preview + /// 2024-12-12 /// /// /// Resource @@ -166,7 +166,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUn /// /// /// Default Api Version - /// 2023-06-01-preview + /// 2024-12-12 /// /// /// Resource @@ -216,7 +216,7 @@ public virtual async Task> GetAsync(stri /// /// /// Default Api Version - /// 2023-06-01-preview + /// 2024-12-12 /// /// /// Resource @@ -266,7 +266,7 @@ public virtual Response Get(string resourceName, /// /// /// Default Api Version - /// 2023-06-01-preview + /// 2024-12-12 /// /// /// Resource @@ -296,7 +296,7 @@ public virtual AsyncPageable GetAllAsync(Cancella /// /// /// Default Api Version - /// 2023-06-01-preview + /// 2024-12-12 /// /// /// Resource @@ -326,7 +326,7 @@ public virtual Pageable GetAll(CancellationToken /// /// /// Default Api Version - /// 2023-06-01-preview + /// 2024-12-12 /// /// /// Resource @@ -374,7 +374,7 @@ public virtual async Task> ExistsAsync(string resourceName, Cance /// /// /// Default Api Version - /// 2023-06-01-preview + /// 2024-12-12 /// /// /// Resource @@ -422,7 +422,7 @@ public virtual Response Exists(string resourceName, CancellationToken canc /// /// /// Default Api Version - /// 2023-06-01-preview + /// 2024-12-12 /// /// /// Resource @@ -472,7 +472,7 @@ public virtual async Task> GetIf /// /// /// Default Api Version - /// 2023-06-01-preview + /// 2024-12-12 /// /// /// Resource diff --git a/sdk/quota/Azure.ResourceManager.Quota/src/Generated/CurrentQuotaLimitBaseResource.cs b/sdk/quota/Azure.ResourceManager.Quota/src/Generated/CurrentQuotaLimitBaseResource.cs index 30a53131587b..0ce4cddc177d 100644 --- a/sdk/quota/Azure.ResourceManager.Quota/src/Generated/CurrentQuotaLimitBaseResource.cs +++ b/sdk/quota/Azure.ResourceManager.Quota/src/Generated/CurrentQuotaLimitBaseResource.cs @@ -99,7 +99,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-06-01-preview + /// 2024-12-12 /// /// /// Resource @@ -139,7 +139,7 @@ public virtual async Task> GetAsync(Canc /// /// /// Default Api Version - /// 2023-06-01-preview + /// 2024-12-12 /// /// /// Resource @@ -181,7 +181,7 @@ public virtual Response Get(CancellationToken can /// /// /// Default Api Version - /// 2023-06-01-preview + /// 2024-12-12 /// /// /// Resource @@ -229,7 +229,7 @@ public virtual async Task> UpdateAsy /// /// /// Default Api Version - /// 2023-06-01-preview + /// 2024-12-12 /// /// /// Resource diff --git a/sdk/quota/Azure.ResourceManager.Quota/src/Generated/CurrentUsagesBaseCollection.cs b/sdk/quota/Azure.ResourceManager.Quota/src/Generated/CurrentUsagesBaseCollection.cs index 7a71387aca8d..76a50a6d7f27 100644 --- a/sdk/quota/Azure.ResourceManager.Quota/src/Generated/CurrentUsagesBaseCollection.cs +++ b/sdk/quota/Azure.ResourceManager.Quota/src/Generated/CurrentUsagesBaseCollection.cs @@ -54,7 +54,7 @@ internal CurrentUsagesBaseCollection(ArmClient client, ResourceIdentifier id) : /// /// /// Default Api Version - /// 2023-06-01-preview + /// 2024-12-12 /// /// /// Resource @@ -104,7 +104,7 @@ public virtual async Task> GetAsync(string r /// /// /// Default Api Version - /// 2023-06-01-preview + /// 2024-12-12 /// /// /// Resource @@ -154,7 +154,7 @@ public virtual Response Get(string resourceName, Canc /// /// /// Default Api Version - /// 2023-06-01-preview + /// 2024-12-12 /// /// /// Resource @@ -184,7 +184,7 @@ public virtual AsyncPageable GetAllAsync(Cancellation /// /// /// Default Api Version - /// 2023-06-01-preview + /// 2024-12-12 /// /// /// Resource @@ -214,7 +214,7 @@ public virtual Pageable GetAll(CancellationToken canc /// /// /// Default Api Version - /// 2023-06-01-preview + /// 2024-12-12 /// /// /// Resource @@ -262,7 +262,7 @@ public virtual async Task> ExistsAsync(string resourceName, Cance /// /// /// Default Api Version - /// 2023-06-01-preview + /// 2024-12-12 /// /// /// Resource @@ -310,7 +310,7 @@ public virtual Response Exists(string resourceName, CancellationToken canc /// /// /// Default Api Version - /// 2023-06-01-preview + /// 2024-12-12 /// /// /// Resource @@ -360,7 +360,7 @@ public virtual async Task> GetIfExis /// /// /// Default Api Version - /// 2023-06-01-preview + /// 2024-12-12 /// /// /// Resource diff --git a/sdk/quota/Azure.ResourceManager.Quota/src/Generated/CurrentUsagesBaseResource.cs b/sdk/quota/Azure.ResourceManager.Quota/src/Generated/CurrentUsagesBaseResource.cs index 2c669d578ae5..25feb39b5aa7 100644 --- a/sdk/quota/Azure.ResourceManager.Quota/src/Generated/CurrentUsagesBaseResource.cs +++ b/sdk/quota/Azure.ResourceManager.Quota/src/Generated/CurrentUsagesBaseResource.cs @@ -99,7 +99,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-06-01-preview + /// 2024-12-12 /// /// /// Resource @@ -139,7 +139,7 @@ public virtual async Task> GetAsync(Cancella /// /// /// Default Api Version - /// 2023-06-01-preview + /// 2024-12-12 /// /// /// Resource diff --git a/sdk/quota/Azure.ResourceManager.Quota/src/Generated/Extensions/MockableQuotaArmClient.cs b/sdk/quota/Azure.ResourceManager.Quota/src/Generated/Extensions/MockableQuotaArmClient.cs index 69be0966a18c..53afadecac44 100644 --- a/sdk/quota/Azure.ResourceManager.Quota/src/Generated/Extensions/MockableQuotaArmClient.cs +++ b/sdk/quota/Azure.ResourceManager.Quota/src/Generated/Extensions/MockableQuotaArmClient.cs @@ -58,7 +58,7 @@ public virtual CurrentUsagesBaseCollection GetCurrentUsagesBases(ResourceIdentif /// /// /// Default Api Version - /// 2023-06-01-preview + /// 2024-12-12 /// /// /// Resource @@ -95,7 +95,7 @@ public virtual async Task> GetCurrentUsagesB /// /// /// Default Api Version - /// 2023-06-01-preview + /// 2024-12-12 /// /// /// Resource @@ -140,7 +140,7 @@ public virtual CurrentQuotaLimitBaseCollection GetCurrentQuotaLimitBases(Resourc /// /// /// Default Api Version - /// 2023-06-01-preview + /// 2024-12-12 /// /// /// Resource @@ -177,7 +177,7 @@ public virtual async Task> GetCurrentQuo /// /// /// Default Api Version - /// 2023-06-01-preview + /// 2024-12-12 /// /// /// Resource @@ -222,7 +222,7 @@ public virtual QuotaRequestDetailCollection GetQuotaRequestDetails(ResourceIdent /// /// /// Default Api Version - /// 2023-06-01-preview + /// 2024-12-12 /// /// /// Resource @@ -254,7 +254,7 @@ public virtual async Task> GetQuotaRequestD /// /// /// Default Api Version - /// 2023-06-01-preview + /// 2024-12-12 /// /// /// Resource @@ -310,15 +310,15 @@ public virtual GroupQuotaSubscriptionRequestStatusResource GetGroupQuotaSubscrip } /// - /// 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. /// /// The resource ID of the resource to get. - /// Returns a object. - public virtual GroupQuotaLimitResource GetGroupQuotaLimitResource(ResourceIdentifier id) + /// Returns a object. + public virtual GroupQuotaLimitListResource GetGroupQuotaLimitListResource(ResourceIdentifier id) { - GroupQuotaLimitResource.ValidateResourceId(id); - return new GroupQuotaLimitResource(Client, id); + GroupQuotaLimitListResource.ValidateResourceId(id); + return new GroupQuotaLimitListResource(Client, id); } /// @@ -334,15 +334,15 @@ public virtual GroupQuotaRequestStatusResource GetGroupQuotaRequestStatusResourc } /// - /// 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. /// /// The resource ID of the resource to get. - /// Returns a object. - public virtual SubscriptionQuotaAllocationResource GetSubscriptionQuotaAllocationResource(ResourceIdentifier id) + /// Returns a object. + public virtual SubscriptionQuotaAllocationsListResource GetSubscriptionQuotaAllocationsListResource(ResourceIdentifier id) { - SubscriptionQuotaAllocationResource.ValidateResourceId(id); - return new SubscriptionQuotaAllocationResource(Client, id); + SubscriptionQuotaAllocationsListResource.ValidateResourceId(id); + return new SubscriptionQuotaAllocationsListResource(Client, id); } /// @@ -357,18 +357,6 @@ public virtual QuotaAllocationRequestStatusResource GetQuotaAllocationRequestSta return new QuotaAllocationRequestStatusResource(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 GroupQuotaEnforcementResource GetGroupQuotaEnforcementResource(ResourceIdentifier id) - { - GroupQuotaEnforcementResource.ValidateResourceId(id); - return new GroupQuotaEnforcementResource(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/quota/Azure.ResourceManager.Quota/src/Generated/Extensions/MockableQuotaManagementGroupResource.cs b/sdk/quota/Azure.ResourceManager.Quota/src/Generated/Extensions/MockableQuotaManagementGroupResource.cs index 1493b0da5213..bec246a1c21f 100644 --- a/sdk/quota/Azure.ResourceManager.Quota/src/Generated/Extensions/MockableQuotaManagementGroupResource.cs +++ b/sdk/quota/Azure.ResourceManager.Quota/src/Generated/Extensions/MockableQuotaManagementGroupResource.cs @@ -8,18 +8,13 @@ using System; using System.Threading; using System.Threading.Tasks; -using Autorest.CSharp.Core; using Azure.Core; -using Azure.Core.Pipeline; namespace Azure.ResourceManager.Quota.Mocking { /// A class to add extension methods to ManagementGroupResource. public partial class MockableQuotaManagementGroupResource : ArmResource { - private ClientDiagnostics _quotaAllocationRequestStatusGroupQuotaSubscriptionAllocationRequestClientDiagnostics; - private GroupQuotaSubscriptionAllocationRequestRestOperations _quotaAllocationRequestStatusGroupQuotaSubscriptionAllocationRequestRestClient; - /// Initializes a new instance of the class for mocking. protected MockableQuotaManagementGroupResource() { @@ -32,9 +27,6 @@ internal MockableQuotaManagementGroupResource(ArmClient client, ResourceIdentifi { } - private ClientDiagnostics QuotaAllocationRequestStatusGroupQuotaSubscriptionAllocationRequestClientDiagnostics => _quotaAllocationRequestStatusGroupQuotaSubscriptionAllocationRequestClientDiagnostics ??= new ClientDiagnostics("Azure.ResourceManager.Quota", QuotaAllocationRequestStatusResource.ResourceType.Namespace, Diagnostics); - private GroupQuotaSubscriptionAllocationRequestRestOperations QuotaAllocationRequestStatusGroupQuotaSubscriptionAllocationRequestRestClient => _quotaAllocationRequestStatusGroupQuotaSubscriptionAllocationRequestRestClient ??= new GroupQuotaSubscriptionAllocationRequestRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, GetApiVersionOrNull(QuotaAllocationRequestStatusResource.ResourceType)); - private string GetApiVersionOrNull(ResourceType resourceType) { TryGetApiVersion(resourceType, out string apiVersion); @@ -61,7 +53,7 @@ public virtual GroupQuotaEntityCollection GetGroupQuotaEntities() /// /// /// Default Api Version - /// 2023-06-01-preview + /// 2024-12-12 /// /// /// Resource @@ -92,7 +84,7 @@ public virtual async Task> GetGroupQuotaEntit /// /// /// Default Api Version - /// 2023-06-01-preview + /// 2024-12-12 /// /// /// Resource @@ -110,102 +102,91 @@ public virtual Response GetGroupQuotaEntity(string gro return GetGroupQuotaEntities().Get(groupQuotaName, cancellationToken); } - /// Gets a collection of SubscriptionQuotaAllocationResources in the ManagementGroupResource. - /// The ID of the target subscription. The value must be an UUID. - /// The GroupQuota name. The name should be unique for the provided context tenantId/MgId. - /// or is null. - /// or is an empty string, and was expected to be non-empty. - /// An object representing collection of SubscriptionQuotaAllocationResources and their operations over a SubscriptionQuotaAllocationResource. - public virtual SubscriptionQuotaAllocationCollection GetSubscriptionQuotaAllocations(string subscriptionId, string groupQuotaName) + /// Gets a collection of SubscriptionQuotaAllocationsListResources in the ManagementGroupResource. + /// An object representing collection of SubscriptionQuotaAllocationsListResources and their operations over a SubscriptionQuotaAllocationsListResource. + public virtual SubscriptionQuotaAllocationsListCollection GetSubscriptionQuotaAllocationsLists() { - return new SubscriptionQuotaAllocationCollection(Client, Id, subscriptionId, groupQuotaName); + return GetCachedClient(client => new SubscriptionQuotaAllocationsListCollection(client, Id)); } /// - /// Gets Quota allocated to a subscription for the specific Resource Provider, Location, ResourceName. This will include the GroupQuota and total quota allocated to the subscription. Only the Group quota allocated to the subscription can be allocated back to the MG Group Quota. + /// Gets all the quota allocated to a subscription for the specified resource provider and location for resource names passed in $filter=resourceName eq {SKU}. This will include the GroupQuota and total quota allocated to the subscription. Only the Group quota allocated to the subscription can be allocated back to the MG Group Quota. /// /// /// Request Path - /// /providers/Microsoft.Management/managementGroups/{managementGroupId}/subscriptions/{subscriptionId}/providers/Microsoft.Quota/groupQuotas/{groupQuotaName}/quotaAllocations/{resourceName} + /// /providers/Microsoft.Management/managementGroups/{managementGroupId}/subscriptions/{subscriptionId}/providers/Microsoft.Quota/groupQuotas/{groupQuotaName}/resourceProviders/{resourceProviderName}/quotaAllocations/{location} /// /// /// Operation Id - /// GroupQuotaSubscriptionAllocation_Get + /// GroupQuotaSubscriptionAllocation_List /// /// /// Default Api Version - /// 2023-06-01-preview + /// 2024-12-12 /// /// /// Resource - /// + /// /// /// /// /// The ID of the target subscription. The value must be an UUID. /// The GroupQuota name. The name should be unique for the provided context tenantId/MgId. - /// Resource name. - /// - /// | Field | Supported operators - /// |---------------------|------------------------ - /// - /// location eq {location} - /// Example: $filter=location eq eastus - /// + /// The resource provider name, such as - Microsoft.Compute. Currently only Microsoft.Compute resource provider supports this API. + /// The name of the Azure region. /// The cancellation token to use. - /// , , or is null. - /// , or is an empty string, and was expected to be non-empty. + /// , or is null. + /// , or is an empty string, and was expected to be non-empty. [ForwardsClientCalls] - public virtual async Task> GetSubscriptionQuotaAllocationAsync(string subscriptionId, string groupQuotaName, string resourceName, string filter, CancellationToken cancellationToken = default) + public virtual async Task> GetSubscriptionQuotaAllocationsListAsync(string subscriptionId, string groupQuotaName, string resourceProviderName, AzureLocation location, CancellationToken cancellationToken = default) { - return await GetSubscriptionQuotaAllocations(subscriptionId, groupQuotaName).GetAsync(resourceName, filter, cancellationToken).ConfigureAwait(false); + return await GetSubscriptionQuotaAllocationsLists().GetAsync(subscriptionId, groupQuotaName, resourceProviderName, location, cancellationToken).ConfigureAwait(false); } /// - /// Gets Quota allocated to a subscription for the specific Resource Provider, Location, ResourceName. This will include the GroupQuota and total quota allocated to the subscription. Only the Group quota allocated to the subscription can be allocated back to the MG Group Quota. + /// Gets all the quota allocated to a subscription for the specified resource provider and location for resource names passed in $filter=resourceName eq {SKU}. This will include the GroupQuota and total quota allocated to the subscription. Only the Group quota allocated to the subscription can be allocated back to the MG Group Quota. /// /// /// Request Path - /// /providers/Microsoft.Management/managementGroups/{managementGroupId}/subscriptions/{subscriptionId}/providers/Microsoft.Quota/groupQuotas/{groupQuotaName}/quotaAllocations/{resourceName} + /// /providers/Microsoft.Management/managementGroups/{managementGroupId}/subscriptions/{subscriptionId}/providers/Microsoft.Quota/groupQuotas/{groupQuotaName}/resourceProviders/{resourceProviderName}/quotaAllocations/{location} /// /// /// Operation Id - /// GroupQuotaSubscriptionAllocation_Get + /// GroupQuotaSubscriptionAllocation_List /// /// /// Default Api Version - /// 2023-06-01-preview + /// 2024-12-12 /// /// /// Resource - /// + /// /// /// /// /// The ID of the target subscription. The value must be an UUID. /// The GroupQuota name. The name should be unique for the provided context tenantId/MgId. - /// Resource name. - /// - /// | Field | Supported operators - /// |---------------------|------------------------ - /// - /// location eq {location} - /// Example: $filter=location eq eastus - /// + /// The resource provider name, such as - Microsoft.Compute. Currently only Microsoft.Compute resource provider supports this API. + /// The name of the Azure region. /// The cancellation token to use. - /// , , or is null. - /// , or is an empty string, and was expected to be non-empty. + /// , or is null. + /// , or is an empty string, and was expected to be non-empty. [ForwardsClientCalls] - public virtual Response GetSubscriptionQuotaAllocation(string subscriptionId, string groupQuotaName, string resourceName, string filter, CancellationToken cancellationToken = default) + public virtual Response GetSubscriptionQuotaAllocationsList(string subscriptionId, string groupQuotaName, string resourceProviderName, AzureLocation location, CancellationToken cancellationToken = default) { - return GetSubscriptionQuotaAllocations(subscriptionId, groupQuotaName).Get(resourceName, filter, cancellationToken); + return GetSubscriptionQuotaAllocationsLists().Get(subscriptionId, groupQuotaName, resourceProviderName, location, cancellationToken); } /// Gets a collection of QuotaAllocationRequestStatusResources in the ManagementGroupResource. + /// The ID of the target subscription. The value must be an UUID. + /// The GroupQuota name. The name should be unique for the provided context tenantId/MgId. + /// The resource provider name, such as - Microsoft.Compute. Currently only Microsoft.Compute resource provider supports this API. + /// , or is null. + /// , or is an empty string, and was expected to be non-empty. /// An object representing collection of QuotaAllocationRequestStatusResources and their operations over a QuotaAllocationRequestStatusResource. - public virtual QuotaAllocationRequestStatusCollection GetQuotaAllocationRequestStatuses() + public virtual QuotaAllocationRequestStatusCollection GetQuotaAllocationRequestStatuses(string subscriptionId, string groupQuotaName, string resourceProviderName) { - return GetCachedClient(client => new QuotaAllocationRequestStatusCollection(client, Id)); + return new QuotaAllocationRequestStatusCollection(Client, Id, subscriptionId, groupQuotaName, resourceProviderName); } /// @@ -213,7 +194,7 @@ public virtual QuotaAllocationRequestStatusCollection GetQuotaAllocationRequestS /// /// /// Request Path - /// /providers/Microsoft.Management/managementGroups/{managementGroupId}/subscriptions/{subscriptionId}/providers/Microsoft.Quota/groupQuotas/{groupQuotaName}/quotaAllocationRequests/{allocationId} + /// /providers/Microsoft.Management/managementGroups/{managementGroupId}/subscriptions/{subscriptionId}/providers/Microsoft.Quota/groupQuotas/{groupQuotaName}/resourceProviders/{resourceProviderName}/quotaAllocationRequests/{allocationId} /// /// /// Operation Id @@ -221,7 +202,7 @@ public virtual QuotaAllocationRequestStatusCollection GetQuotaAllocationRequestS /// /// /// Default Api Version - /// 2023-06-01-preview + /// 2024-12-12 /// /// /// Resource @@ -231,14 +212,15 @@ public virtual QuotaAllocationRequestStatusCollection GetQuotaAllocationRequestS /// /// The ID of the target subscription. The value must be an UUID. /// The GroupQuota name. The name should be unique for the provided context tenantId/MgId. + /// The resource provider name, such as - Microsoft.Compute. Currently only Microsoft.Compute resource provider supports this API. /// Request Id. /// The cancellation token to use. - /// , or is null. - /// , or is an empty string, and was expected to be non-empty. + /// , , or is null. + /// , , or is an empty string, and was expected to be non-empty. [ForwardsClientCalls] - public virtual async Task> GetQuotaAllocationRequestStatusAsync(string subscriptionId, string groupQuotaName, string allocationId, CancellationToken cancellationToken = default) + public virtual async Task> GetQuotaAllocationRequestStatusAsync(string subscriptionId, string groupQuotaName, string resourceProviderName, string allocationId, CancellationToken cancellationToken = default) { - return await GetQuotaAllocationRequestStatuses().GetAsync(subscriptionId, groupQuotaName, allocationId, cancellationToken).ConfigureAwait(false); + return await GetQuotaAllocationRequestStatuses(subscriptionId, groupQuotaName, resourceProviderName).GetAsync(allocationId, cancellationToken).ConfigureAwait(false); } /// @@ -246,7 +228,7 @@ public virtual async Task> GetQuo /// /// /// Request Path - /// /providers/Microsoft.Management/managementGroups/{managementGroupId}/subscriptions/{subscriptionId}/providers/Microsoft.Quota/groupQuotas/{groupQuotaName}/quotaAllocationRequests/{allocationId} + /// /providers/Microsoft.Management/managementGroups/{managementGroupId}/subscriptions/{subscriptionId}/providers/Microsoft.Quota/groupQuotas/{groupQuotaName}/resourceProviders/{resourceProviderName}/quotaAllocationRequests/{allocationId} /// /// /// Operation Id @@ -254,7 +236,7 @@ public virtual async Task> GetQuo /// /// /// Default Api Version - /// 2023-06-01-preview + /// 2024-12-12 /// /// /// Resource @@ -264,328 +246,15 @@ public virtual async Task> GetQuo /// /// The ID of the target subscription. The value must be an UUID. /// The GroupQuota name. The name should be unique for the provided context tenantId/MgId. + /// The resource provider name, such as - Microsoft.Compute. Currently only Microsoft.Compute resource provider supports this API. /// Request Id. /// The cancellation token to use. - /// , or is null. - /// , or is an empty string, and was expected to be non-empty. + /// , , or is null. + /// , , or is an empty string, and was expected to be non-empty. [ForwardsClientCalls] - public virtual Response GetQuotaAllocationRequestStatus(string subscriptionId, string groupQuotaName, string allocationId, CancellationToken cancellationToken = default) - { - return GetQuotaAllocationRequestStatuses().Get(subscriptionId, groupQuotaName, allocationId, cancellationToken); - } - - /// - /// Get all the quotaAllocationRequests for a resourceProvider/location. The filter paramter for location is required. - /// - /// - /// Request Path - /// /providers/Microsoft.Management/managementGroups/{managementGroupId}/subscriptions/{subscriptionId}/providers/Microsoft.Quota/groupQuotas/{groupQuotaName}/resourceProviders/{resourceProviderName}/quotaAllocationRequests - /// - /// - /// Operation Id - /// GroupQuotaSubscriptionAllocationRequest_List - /// - /// - /// Default Api Version - /// 2023-06-01-preview - /// - /// - /// Resource - /// - /// - /// - /// - /// The ID of the target subscription. The value must be an UUID. - /// The GroupQuota name. The name should be unique for the provided context tenantId/MgId. - /// The resource provider name, such as - Microsoft.Compute. Currently only Microsoft.Compute resource provider supports this API. - /// - /// | Field | Supported operators - /// |---------------------|------------------------ - /// - /// location eq {location} - /// Example: $filter=location eq eastus - /// - /// The cancellation token to use. - /// , or is an empty string, and was expected to be non-empty. - /// , , or is null. - /// An async collection of that may take multiple service requests to iterate over. - public virtual AsyncPageable GetQuotaAllocationRequestStatusesByResourceProviderAsync(string subscriptionId, string groupQuotaName, string resourceProviderName, string filter, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - Argument.AssertNotNullOrEmpty(groupQuotaName, nameof(groupQuotaName)); - Argument.AssertNotNullOrEmpty(resourceProviderName, nameof(resourceProviderName)); - Argument.AssertNotNull(filter, nameof(filter)); - - HttpMessage FirstPageRequest(int? pageSizeHint) => QuotaAllocationRequestStatusGroupQuotaSubscriptionAllocationRequestRestClient.CreateListRequest(Id.Name, subscriptionId, groupQuotaName, resourceProviderName, filter); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => QuotaAllocationRequestStatusGroupQuotaSubscriptionAllocationRequestRestClient.CreateListNextPageRequest(nextLink, Id.Name, subscriptionId, groupQuotaName, resourceProviderName, filter); - return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new QuotaAllocationRequestStatusResource(Client, QuotaAllocationRequestStatusData.DeserializeQuotaAllocationRequestStatusData(e)), QuotaAllocationRequestStatusGroupQuotaSubscriptionAllocationRequestClientDiagnostics, Pipeline, "MockableQuotaManagementGroupResource.GetQuotaAllocationRequestStatusesByResourceProvider", "value", "nextLink", cancellationToken); - } - - /// - /// Get all the quotaAllocationRequests for a resourceProvider/location. The filter paramter for location is required. - /// - /// - /// Request Path - /// /providers/Microsoft.Management/managementGroups/{managementGroupId}/subscriptions/{subscriptionId}/providers/Microsoft.Quota/groupQuotas/{groupQuotaName}/resourceProviders/{resourceProviderName}/quotaAllocationRequests - /// - /// - /// Operation Id - /// GroupQuotaSubscriptionAllocationRequest_List - /// - /// - /// Default Api Version - /// 2023-06-01-preview - /// - /// - /// Resource - /// - /// - /// - /// - /// The ID of the target subscription. The value must be an UUID. - /// The GroupQuota name. The name should be unique for the provided context tenantId/MgId. - /// The resource provider name, such as - Microsoft.Compute. Currently only Microsoft.Compute resource provider supports this API. - /// - /// | Field | Supported operators - /// |---------------------|------------------------ - /// - /// location eq {location} - /// Example: $filter=location eq eastus - /// - /// The cancellation token to use. - /// , or is an empty string, and was expected to be non-empty. - /// , , or is null. - /// A collection of that may take multiple service requests to iterate over. - public virtual Pageable GetQuotaAllocationRequestStatusesByResourceProvider(string subscriptionId, string groupQuotaName, string resourceProviderName, string filter, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - Argument.AssertNotNullOrEmpty(groupQuotaName, nameof(groupQuotaName)); - Argument.AssertNotNullOrEmpty(resourceProviderName, nameof(resourceProviderName)); - Argument.AssertNotNull(filter, nameof(filter)); - - HttpMessage FirstPageRequest(int? pageSizeHint) => QuotaAllocationRequestStatusGroupQuotaSubscriptionAllocationRequestRestClient.CreateListRequest(Id.Name, subscriptionId, groupQuotaName, resourceProviderName, filter); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => QuotaAllocationRequestStatusGroupQuotaSubscriptionAllocationRequestRestClient.CreateListNextPageRequest(nextLink, Id.Name, subscriptionId, groupQuotaName, resourceProviderName, filter); - return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new QuotaAllocationRequestStatusResource(Client, QuotaAllocationRequestStatusData.DeserializeQuotaAllocationRequestStatusData(e)), QuotaAllocationRequestStatusGroupQuotaSubscriptionAllocationRequestClientDiagnostics, Pipeline, "MockableQuotaManagementGroupResource.GetQuotaAllocationRequestStatusesByResourceProvider", "value", "nextLink", cancellationToken); - } - - /// - /// Request to assign quota from group quota to a specific Subscription. The assign GroupQuota to subscriptions or reduce the quota allocated to subscription to give back the unused quota ( quota >= usages) to the groupQuota. So, this API can be used to assign Quota to subscriptions and assign back unused quota to group quota, which can be assigned to another subscriptions in the GroupQuota. - /// - /// - /// Request Path - /// /providers/Microsoft.Management/managementGroups/{managementGroupId}/subscriptions/{subscriptionId}/providers/Microsoft.Quota/groupQuotas/{groupQuotaName}/resourceProviders/{resourceProviderName}/quotaAllocationRequests/{resourceName} - /// - /// - /// Operation Id - /// GroupQuotaSubscriptionAllocationRequest_CreateOrUpdate - /// - /// - /// Default Api Version - /// 2023-06-01-preview - /// - /// - /// Resource - /// - /// - /// - /// - /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. - /// The ID of the target subscription. The value must be an UUID. - /// The GroupQuota name. The name should be unique for the provided context tenantId/MgId. - /// The resource provider name, such as - Microsoft.Compute. Currently only Microsoft.Compute resource provider supports this API. - /// Resource name. - /// Quota requests payload. - /// The cancellation token to use. - /// , , or is an empty string, and was expected to be non-empty. - /// , , , or is null. - public virtual async Task> CreateOrUpdateGroupQuotaSubscriptionAllocationRequestAsync(WaitUntil waitUntil, string subscriptionId, string groupQuotaName, string resourceProviderName, string resourceName, QuotaAllocationRequestStatusData data, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - Argument.AssertNotNullOrEmpty(groupQuotaName, nameof(groupQuotaName)); - Argument.AssertNotNullOrEmpty(resourceProviderName, nameof(resourceProviderName)); - Argument.AssertNotNullOrEmpty(resourceName, nameof(resourceName)); - Argument.AssertNotNull(data, nameof(data)); - - using var scope = QuotaAllocationRequestStatusGroupQuotaSubscriptionAllocationRequestClientDiagnostics.CreateScope("MockableQuotaManagementGroupResource.CreateOrUpdateGroupQuotaSubscriptionAllocationRequest"); - scope.Start(); - try - { - var response = await QuotaAllocationRequestStatusGroupQuotaSubscriptionAllocationRequestRestClient.CreateOrUpdateAsync(Id.Name, subscriptionId, groupQuotaName, resourceProviderName, resourceName, data, cancellationToken).ConfigureAwait(false); - var operation = new QuotaArmOperation(new QuotaAllocationRequestStatusOperationSource(Client), QuotaAllocationRequestStatusGroupQuotaSubscriptionAllocationRequestClientDiagnostics, Pipeline, QuotaAllocationRequestStatusGroupQuotaSubscriptionAllocationRequestRestClient.CreateCreateOrUpdateRequest(Id.Name, subscriptionId, groupQuotaName, resourceProviderName, resourceName, data).Request, response, OperationFinalStateVia.Location); - if (waitUntil == WaitUntil.Completed) - await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); - return operation; - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// Request to assign quota from group quota to a specific Subscription. The assign GroupQuota to subscriptions or reduce the quota allocated to subscription to give back the unused quota ( quota >= usages) to the groupQuota. So, this API can be used to assign Quota to subscriptions and assign back unused quota to group quota, which can be assigned to another subscriptions in the GroupQuota. - /// - /// - /// Request Path - /// /providers/Microsoft.Management/managementGroups/{managementGroupId}/subscriptions/{subscriptionId}/providers/Microsoft.Quota/groupQuotas/{groupQuotaName}/resourceProviders/{resourceProviderName}/quotaAllocationRequests/{resourceName} - /// - /// - /// Operation Id - /// GroupQuotaSubscriptionAllocationRequest_CreateOrUpdate - /// - /// - /// Default Api Version - /// 2023-06-01-preview - /// - /// - /// Resource - /// - /// - /// - /// - /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. - /// The ID of the target subscription. The value must be an UUID. - /// The GroupQuota name. The name should be unique for the provided context tenantId/MgId. - /// The resource provider name, such as - Microsoft.Compute. Currently only Microsoft.Compute resource provider supports this API. - /// Resource name. - /// Quota requests payload. - /// The cancellation token to use. - /// , , or is an empty string, and was expected to be non-empty. - /// , , , or is null. - public virtual ArmOperation CreateOrUpdateGroupQuotaSubscriptionAllocationRequest(WaitUntil waitUntil, string subscriptionId, string groupQuotaName, string resourceProviderName, string resourceName, QuotaAllocationRequestStatusData data, CancellationToken cancellationToken = default) + public virtual Response GetQuotaAllocationRequestStatus(string subscriptionId, string groupQuotaName, string resourceProviderName, string allocationId, CancellationToken cancellationToken = default) { - Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - Argument.AssertNotNullOrEmpty(groupQuotaName, nameof(groupQuotaName)); - Argument.AssertNotNullOrEmpty(resourceProviderName, nameof(resourceProviderName)); - Argument.AssertNotNullOrEmpty(resourceName, nameof(resourceName)); - Argument.AssertNotNull(data, nameof(data)); - - using var scope = QuotaAllocationRequestStatusGroupQuotaSubscriptionAllocationRequestClientDiagnostics.CreateScope("MockableQuotaManagementGroupResource.CreateOrUpdateGroupQuotaSubscriptionAllocationRequest"); - scope.Start(); - try - { - var response = QuotaAllocationRequestStatusGroupQuotaSubscriptionAllocationRequestRestClient.CreateOrUpdate(Id.Name, subscriptionId, groupQuotaName, resourceProviderName, resourceName, data, cancellationToken); - var operation = new QuotaArmOperation(new QuotaAllocationRequestStatusOperationSource(Client), QuotaAllocationRequestStatusGroupQuotaSubscriptionAllocationRequestClientDiagnostics, Pipeline, QuotaAllocationRequestStatusGroupQuotaSubscriptionAllocationRequestRestClient.CreateCreateOrUpdateRequest(Id.Name, subscriptionId, groupQuotaName, resourceProviderName, resourceName, data).Request, response, OperationFinalStateVia.Location); - if (waitUntil == WaitUntil.Completed) - operation.WaitForCompletion(cancellationToken); - return operation; - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// Request to assign quota from group quota to a specific Subscription. The assign GroupQuota to subscriptions or reduce the quota allocated to subscription to give back the unused quota ( quota >= usages) to the groupQuota. So, this API can be used to assign Quota to subscriptions and assign back unused quota to group quota, which can be assigned to another subscriptions in the GroupQuota. User can collect unused quotas from multiple subscriptions within the groupQuota and assign the groupQuota to the subscription, where it's needed. - /// - /// - /// Request Path - /// /providers/Microsoft.Management/managementGroups/{managementGroupId}/subscriptions/{subscriptionId}/providers/Microsoft.Quota/groupQuotas/{groupQuotaName}/resourceProviders/{resourceProviderName}/quotaAllocationRequests/{resourceName} - /// - /// - /// Operation Id - /// GroupQuotaSubscriptionAllocationRequest_Update - /// - /// - /// Default Api Version - /// 2023-06-01-preview - /// - /// - /// Resource - /// - /// - /// - /// - /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. - /// The ID of the target subscription. The value must be an UUID. - /// The GroupQuota name. The name should be unique for the provided context tenantId/MgId. - /// The resource provider name, such as - Microsoft.Compute. Currently only Microsoft.Compute resource provider supports this API. - /// Resource name. - /// Quota requests payload. - /// The cancellation token to use. - /// , , or is an empty string, and was expected to be non-empty. - /// , , , or is null. - public virtual async Task> UpdateGroupQuotaSubscriptionAllocationRequestAsync(WaitUntil waitUntil, string subscriptionId, string groupQuotaName, string resourceProviderName, string resourceName, QuotaAllocationRequestStatusData data, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - Argument.AssertNotNullOrEmpty(groupQuotaName, nameof(groupQuotaName)); - Argument.AssertNotNullOrEmpty(resourceProviderName, nameof(resourceProviderName)); - Argument.AssertNotNullOrEmpty(resourceName, nameof(resourceName)); - Argument.AssertNotNull(data, nameof(data)); - - using var scope = QuotaAllocationRequestStatusGroupQuotaSubscriptionAllocationRequestClientDiagnostics.CreateScope("MockableQuotaManagementGroupResource.UpdateGroupQuotaSubscriptionAllocationRequest"); - scope.Start(); - try - { - var response = await QuotaAllocationRequestStatusGroupQuotaSubscriptionAllocationRequestRestClient.UpdateAsync(Id.Name, subscriptionId, groupQuotaName, resourceProviderName, resourceName, data, cancellationToken).ConfigureAwait(false); - var operation = new QuotaArmOperation(new QuotaAllocationRequestStatusOperationSource(Client), QuotaAllocationRequestStatusGroupQuotaSubscriptionAllocationRequestClientDiagnostics, Pipeline, QuotaAllocationRequestStatusGroupQuotaSubscriptionAllocationRequestRestClient.CreateUpdateRequest(Id.Name, subscriptionId, groupQuotaName, resourceProviderName, resourceName, data).Request, response, OperationFinalStateVia.Location); - if (waitUntil == WaitUntil.Completed) - await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); - return operation; - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// Request to assign quota from group quota to a specific Subscription. The assign GroupQuota to subscriptions or reduce the quota allocated to subscription to give back the unused quota ( quota >= usages) to the groupQuota. So, this API can be used to assign Quota to subscriptions and assign back unused quota to group quota, which can be assigned to another subscriptions in the GroupQuota. User can collect unused quotas from multiple subscriptions within the groupQuota and assign the groupQuota to the subscription, where it's needed. - /// - /// - /// Request Path - /// /providers/Microsoft.Management/managementGroups/{managementGroupId}/subscriptions/{subscriptionId}/providers/Microsoft.Quota/groupQuotas/{groupQuotaName}/resourceProviders/{resourceProviderName}/quotaAllocationRequests/{resourceName} - /// - /// - /// Operation Id - /// GroupQuotaSubscriptionAllocationRequest_Update - /// - /// - /// Default Api Version - /// 2023-06-01-preview - /// - /// - /// Resource - /// - /// - /// - /// - /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. - /// The ID of the target subscription. The value must be an UUID. - /// The GroupQuota name. The name should be unique for the provided context tenantId/MgId. - /// The resource provider name, such as - Microsoft.Compute. Currently only Microsoft.Compute resource provider supports this API. - /// Resource name. - /// Quota requests payload. - /// The cancellation token to use. - /// , , or is an empty string, and was expected to be non-empty. - /// , , , or is null. - public virtual ArmOperation UpdateGroupQuotaSubscriptionAllocationRequest(WaitUntil waitUntil, string subscriptionId, string groupQuotaName, string resourceProviderName, string resourceName, QuotaAllocationRequestStatusData data, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - Argument.AssertNotNullOrEmpty(groupQuotaName, nameof(groupQuotaName)); - Argument.AssertNotNullOrEmpty(resourceProviderName, nameof(resourceProviderName)); - Argument.AssertNotNullOrEmpty(resourceName, nameof(resourceName)); - Argument.AssertNotNull(data, nameof(data)); - - using var scope = QuotaAllocationRequestStatusGroupQuotaSubscriptionAllocationRequestClientDiagnostics.CreateScope("MockableQuotaManagementGroupResource.UpdateGroupQuotaSubscriptionAllocationRequest"); - scope.Start(); - try - { - var response = QuotaAllocationRequestStatusGroupQuotaSubscriptionAllocationRequestRestClient.Update(Id.Name, subscriptionId, groupQuotaName, resourceProviderName, resourceName, data, cancellationToken); - var operation = new QuotaArmOperation(new QuotaAllocationRequestStatusOperationSource(Client), QuotaAllocationRequestStatusGroupQuotaSubscriptionAllocationRequestClientDiagnostics, Pipeline, QuotaAllocationRequestStatusGroupQuotaSubscriptionAllocationRequestRestClient.CreateUpdateRequest(Id.Name, subscriptionId, groupQuotaName, resourceProviderName, resourceName, data).Request, response, OperationFinalStateVia.Location); - if (waitUntil == WaitUntil.Completed) - operation.WaitForCompletion(cancellationToken); - return operation; - } - catch (Exception e) - { - scope.Failed(e); - throw; - } + return GetQuotaAllocationRequestStatuses(subscriptionId, groupQuotaName, resourceProviderName).Get(allocationId, cancellationToken); } } } diff --git a/sdk/quota/Azure.ResourceManager.Quota/src/Generated/Extensions/MockableQuotaTenantResource.cs b/sdk/quota/Azure.ResourceManager.Quota/src/Generated/Extensions/MockableQuotaTenantResource.cs index a1ee8d6f1f55..2bb669d721df 100644 --- a/sdk/quota/Azure.ResourceManager.Quota/src/Generated/Extensions/MockableQuotaTenantResource.cs +++ b/sdk/quota/Azure.ResourceManager.Quota/src/Generated/Extensions/MockableQuotaTenantResource.cs @@ -53,7 +53,7 @@ private string GetApiVersionOrNull(ResourceType resourceType) /// /// /// Default Api Version - /// 2023-06-01-preview + /// 2024-12-12 /// /// /// @@ -79,7 +79,7 @@ public virtual AsyncPageable GetQuotaOperationsAsync(Cance /// /// /// Default Api Version - /// 2023-06-01-preview + /// 2024-12-12 /// /// /// diff --git a/sdk/quota/Azure.ResourceManager.Quota/src/Generated/Extensions/QuotaExtensions.cs b/sdk/quota/Azure.ResourceManager.Quota/src/Generated/Extensions/QuotaExtensions.cs index 98f9f1b3531c..e10b4f3c40bc 100644 --- a/sdk/quota/Azure.ResourceManager.Quota/src/Generated/Extensions/QuotaExtensions.cs +++ b/sdk/quota/Azure.ResourceManager.Quota/src/Generated/Extensions/QuotaExtensions.cs @@ -65,7 +65,7 @@ public static CurrentUsagesBaseCollection GetCurrentUsagesBases(this ArmClient c /// /// /// Default Api Version - /// 2023-06-01-preview + /// 2024-12-12 /// /// /// Resource @@ -109,7 +109,7 @@ public static async Task> GetCurrentUsagesBa /// /// /// Default Api Version - /// 2023-06-01-preview + /// 2024-12-12 /// /// /// Resource @@ -171,7 +171,7 @@ public static CurrentQuotaLimitBaseCollection GetCurrentQuotaLimitBases(this Arm /// /// /// Default Api Version - /// 2023-06-01-preview + /// 2024-12-12 /// /// /// Resource @@ -215,7 +215,7 @@ public static async Task> GetCurrentQuot /// /// /// Default Api Version - /// 2023-06-01-preview + /// 2024-12-12 /// /// /// Resource @@ -277,7 +277,7 @@ public static QuotaRequestDetailCollection GetQuotaRequestDetails(this ArmClient /// /// /// Default Api Version - /// 2023-06-01-preview + /// 2024-12-12 /// /// /// Resource @@ -316,7 +316,7 @@ public static async Task> GetQuotaRequestDe /// /// /// Default Api Version - /// 2023-06-01-preview + /// 2024-12-12 /// /// /// Resource @@ -400,22 +400,22 @@ public static GroupQuotaSubscriptionRequestStatusResource GetGroupQuotaSubscript } /// - /// 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 GroupQuotaLimitResource GetGroupQuotaLimitResource(this ArmClient client, ResourceIdentifier id) + /// Returns a object. + public static GroupQuotaLimitListResource GetGroupQuotaLimitListResource(this ArmClient client, ResourceIdentifier id) { Argument.AssertNotNull(client, nameof(client)); - return GetMockableQuotaArmClient(client).GetGroupQuotaLimitResource(id); + return GetMockableQuotaArmClient(client).GetGroupQuotaLimitListResource(id); } /// @@ -438,22 +438,22 @@ public static GroupQuotaRequestStatusResource GetGroupQuotaRequestStatusResource } /// - /// 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 SubscriptionQuotaAllocationResource GetSubscriptionQuotaAllocationResource(this ArmClient client, ResourceIdentifier id) + /// Returns a object. + public static SubscriptionQuotaAllocationsListResource GetSubscriptionQuotaAllocationsListResource(this ArmClient client, ResourceIdentifier id) { Argument.AssertNotNull(client, nameof(client)); - return GetMockableQuotaArmClient(client).GetSubscriptionQuotaAllocationResource(id); + return GetMockableQuotaArmClient(client).GetSubscriptionQuotaAllocationsListResource(id); } /// @@ -475,25 +475,6 @@ public static QuotaAllocationRequestStatusResource GetQuotaAllocationRequestStat return GetMockableQuotaArmClient(client).GetQuotaAllocationRequestStatusResource(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 GroupQuotaEnforcementResource GetGroupQuotaEnforcementResource(this ArmClient client, ResourceIdentifier id) - { - Argument.AssertNotNull(client, nameof(client)); - - return GetMockableQuotaArmClient(client).GetGroupQuotaEnforcementResource(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. @@ -581,7 +562,7 @@ public static GroupQuotaEntityCollection GetGroupQuotaEntities(this ManagementGr /// /// /// Default Api Version - /// 2023-06-01-preview + /// 2024-12-12 /// /// /// Resource @@ -619,7 +600,7 @@ public static async Task> GetGroupQuotaEntity /// /// /// Default Api Version - /// 2023-06-01-preview + /// 2024-12-12 /// /// /// Resource @@ -645,134 +626,123 @@ public static Response GetGroupQuotaEntity(this Manage } /// - /// Gets a collection of SubscriptionQuotaAllocationResources in the ManagementGroupResource. + /// Gets a collection of SubscriptionQuotaAllocationsListResources in the ManagementGroupResource. /// /// Mocking - /// To mock this method, please mock instead. + /// To mock this method, please mock instead. /// /// /// The instance the method will execute against. - /// The ID of the target subscription. The value must be an UUID. - /// The GroupQuota name. The name should be unique for the provided context tenantId/MgId. - /// , or is null. - /// or is an empty string, and was expected to be non-empty. - /// An object representing collection of SubscriptionQuotaAllocationResources and their operations over a SubscriptionQuotaAllocationResource. - public static SubscriptionQuotaAllocationCollection GetSubscriptionQuotaAllocations(this ManagementGroupResource managementGroupResource, string subscriptionId, string groupQuotaName) + /// is null. + /// An object representing collection of SubscriptionQuotaAllocationsListResources and their operations over a SubscriptionQuotaAllocationsListResource. + public static SubscriptionQuotaAllocationsListCollection GetSubscriptionQuotaAllocationsLists(this ManagementGroupResource managementGroupResource) { Argument.AssertNotNull(managementGroupResource, nameof(managementGroupResource)); - return GetMockableQuotaManagementGroupResource(managementGroupResource).GetSubscriptionQuotaAllocations(subscriptionId, groupQuotaName); + return GetMockableQuotaManagementGroupResource(managementGroupResource).GetSubscriptionQuotaAllocationsLists(); } /// - /// Gets Quota allocated to a subscription for the specific Resource Provider, Location, ResourceName. This will include the GroupQuota and total quota allocated to the subscription. Only the Group quota allocated to the subscription can be allocated back to the MG Group Quota. + /// Gets all the quota allocated to a subscription for the specified resource provider and location for resource names passed in $filter=resourceName eq {SKU}. This will include the GroupQuota and total quota allocated to the subscription. Only the Group quota allocated to the subscription can be allocated back to the MG Group Quota. /// /// /// Request Path - /// /providers/Microsoft.Management/managementGroups/{managementGroupId}/subscriptions/{subscriptionId}/providers/Microsoft.Quota/groupQuotas/{groupQuotaName}/quotaAllocations/{resourceName} + /// /providers/Microsoft.Management/managementGroups/{managementGroupId}/subscriptions/{subscriptionId}/providers/Microsoft.Quota/groupQuotas/{groupQuotaName}/resourceProviders/{resourceProviderName}/quotaAllocations/{location} /// /// /// Operation Id - /// GroupQuotaSubscriptionAllocation_Get + /// GroupQuotaSubscriptionAllocation_List /// /// /// Default Api Version - /// 2023-06-01-preview + /// 2024-12-12 /// /// /// Resource - /// + /// /// /// /// /// Mocking - /// To mock this method, please mock instead. + /// To mock this method, please mock instead. /// /// /// The instance the method will execute against. /// The ID of the target subscription. The value must be an UUID. /// The GroupQuota name. The name should be unique for the provided context tenantId/MgId. - /// Resource name. - /// - /// | Field | Supported operators - /// |---------------------|------------------------ - /// - /// location eq {location} - /// Example: $filter=location eq eastus - /// + /// The resource provider name, such as - Microsoft.Compute. Currently only Microsoft.Compute resource provider supports this API. + /// The name of the Azure region. /// The cancellation token to use. - /// , , , or is null. - /// , or is an empty string, and was expected to be non-empty. + /// , , or is null. + /// , or is an empty string, and was expected to be non-empty. [ForwardsClientCalls] - public static async Task> GetSubscriptionQuotaAllocationAsync(this ManagementGroupResource managementGroupResource, string subscriptionId, string groupQuotaName, string resourceName, string filter, CancellationToken cancellationToken = default) + public static async Task> GetSubscriptionQuotaAllocationsListAsync(this ManagementGroupResource managementGroupResource, string subscriptionId, string groupQuotaName, string resourceProviderName, AzureLocation location, CancellationToken cancellationToken = default) { Argument.AssertNotNull(managementGroupResource, nameof(managementGroupResource)); - return await GetMockableQuotaManagementGroupResource(managementGroupResource).GetSubscriptionQuotaAllocationAsync(subscriptionId, groupQuotaName, resourceName, filter, cancellationToken).ConfigureAwait(false); + return await GetMockableQuotaManagementGroupResource(managementGroupResource).GetSubscriptionQuotaAllocationsListAsync(subscriptionId, groupQuotaName, resourceProviderName, location, cancellationToken).ConfigureAwait(false); } /// - /// Gets Quota allocated to a subscription for the specific Resource Provider, Location, ResourceName. This will include the GroupQuota and total quota allocated to the subscription. Only the Group quota allocated to the subscription can be allocated back to the MG Group Quota. + /// Gets all the quota allocated to a subscription for the specified resource provider and location for resource names passed in $filter=resourceName eq {SKU}. This will include the GroupQuota and total quota allocated to the subscription. Only the Group quota allocated to the subscription can be allocated back to the MG Group Quota. /// /// /// Request Path - /// /providers/Microsoft.Management/managementGroups/{managementGroupId}/subscriptions/{subscriptionId}/providers/Microsoft.Quota/groupQuotas/{groupQuotaName}/quotaAllocations/{resourceName} + /// /providers/Microsoft.Management/managementGroups/{managementGroupId}/subscriptions/{subscriptionId}/providers/Microsoft.Quota/groupQuotas/{groupQuotaName}/resourceProviders/{resourceProviderName}/quotaAllocations/{location} /// /// /// Operation Id - /// GroupQuotaSubscriptionAllocation_Get + /// GroupQuotaSubscriptionAllocation_List /// /// /// Default Api Version - /// 2023-06-01-preview + /// 2024-12-12 /// /// /// Resource - /// + /// /// /// /// /// Mocking - /// To mock this method, please mock instead. + /// To mock this method, please mock instead. /// /// /// The instance the method will execute against. /// The ID of the target subscription. The value must be an UUID. /// The GroupQuota name. The name should be unique for the provided context tenantId/MgId. - /// Resource name. - /// - /// | Field | Supported operators - /// |---------------------|------------------------ - /// - /// location eq {location} - /// Example: $filter=location eq eastus - /// + /// The resource provider name, such as - Microsoft.Compute. Currently only Microsoft.Compute resource provider supports this API. + /// The name of the Azure region. /// The cancellation token to use. - /// , , , or is null. - /// , or is an empty string, and was expected to be non-empty. + /// , , or is null. + /// , or is an empty string, and was expected to be non-empty. [ForwardsClientCalls] - public static Response GetSubscriptionQuotaAllocation(this ManagementGroupResource managementGroupResource, string subscriptionId, string groupQuotaName, string resourceName, string filter, CancellationToken cancellationToken = default) + public static Response GetSubscriptionQuotaAllocationsList(this ManagementGroupResource managementGroupResource, string subscriptionId, string groupQuotaName, string resourceProviderName, AzureLocation location, CancellationToken cancellationToken = default) { Argument.AssertNotNull(managementGroupResource, nameof(managementGroupResource)); - return GetMockableQuotaManagementGroupResource(managementGroupResource).GetSubscriptionQuotaAllocation(subscriptionId, groupQuotaName, resourceName, filter, cancellationToken); + return GetMockableQuotaManagementGroupResource(managementGroupResource).GetSubscriptionQuotaAllocationsList(subscriptionId, groupQuotaName, resourceProviderName, location, cancellationToken); } /// /// Gets a collection of QuotaAllocationRequestStatusResources in the ManagementGroupResource. /// /// Mocking - /// To mock this method, please mock instead. + /// To mock this method, please mock instead. /// /// /// The instance the method will execute against. - /// is null. + /// The ID of the target subscription. The value must be an UUID. + /// The GroupQuota name. The name should be unique for the provided context tenantId/MgId. + /// The resource provider name, such as - Microsoft.Compute. Currently only Microsoft.Compute resource provider supports this API. + /// , , or is null. + /// , or is an empty string, and was expected to be non-empty. /// An object representing collection of QuotaAllocationRequestStatusResources and their operations over a QuotaAllocationRequestStatusResource. - public static QuotaAllocationRequestStatusCollection GetQuotaAllocationRequestStatuses(this ManagementGroupResource managementGroupResource) + public static QuotaAllocationRequestStatusCollection GetQuotaAllocationRequestStatuses(this ManagementGroupResource managementGroupResource, string subscriptionId, string groupQuotaName, string resourceProviderName) { Argument.AssertNotNull(managementGroupResource, nameof(managementGroupResource)); - return GetMockableQuotaManagementGroupResource(managementGroupResource).GetQuotaAllocationRequestStatuses(); + return GetMockableQuotaManagementGroupResource(managementGroupResource).GetQuotaAllocationRequestStatuses(subscriptionId, groupQuotaName, resourceProviderName); } /// @@ -780,7 +750,7 @@ public static QuotaAllocationRequestStatusCollection GetQuotaAllocationRequestSt /// /// /// Request Path - /// /providers/Microsoft.Management/managementGroups/{managementGroupId}/subscriptions/{subscriptionId}/providers/Microsoft.Quota/groupQuotas/{groupQuotaName}/quotaAllocationRequests/{allocationId} + /// /providers/Microsoft.Management/managementGroups/{managementGroupId}/subscriptions/{subscriptionId}/providers/Microsoft.Quota/groupQuotas/{groupQuotaName}/resourceProviders/{resourceProviderName}/quotaAllocationRequests/{allocationId} /// /// /// Operation Id @@ -788,7 +758,7 @@ public static QuotaAllocationRequestStatusCollection GetQuotaAllocationRequestSt /// /// /// Default Api Version - /// 2023-06-01-preview + /// 2024-12-12 /// /// /// Resource @@ -797,22 +767,23 @@ public static QuotaAllocationRequestStatusCollection GetQuotaAllocationRequestSt /// /// /// Mocking - /// To mock this method, please mock instead. + /// To mock this method, please mock instead. /// /// /// The instance the method will execute against. /// The ID of the target subscription. The value must be an UUID. /// The GroupQuota name. The name should be unique for the provided context tenantId/MgId. + /// The resource provider name, such as - Microsoft.Compute. Currently only Microsoft.Compute resource provider supports this API. /// Request Id. /// The cancellation token to use. - /// , , or is null. - /// , or is an empty string, and was expected to be non-empty. + /// , , , or is null. + /// , , or is an empty string, and was expected to be non-empty. [ForwardsClientCalls] - public static async Task> GetQuotaAllocationRequestStatusAsync(this ManagementGroupResource managementGroupResource, string subscriptionId, string groupQuotaName, string allocationId, CancellationToken cancellationToken = default) + public static async Task> GetQuotaAllocationRequestStatusAsync(this ManagementGroupResource managementGroupResource, string subscriptionId, string groupQuotaName, string resourceProviderName, string allocationId, CancellationToken cancellationToken = default) { Argument.AssertNotNull(managementGroupResource, nameof(managementGroupResource)); - return await GetMockableQuotaManagementGroupResource(managementGroupResource).GetQuotaAllocationRequestStatusAsync(subscriptionId, groupQuotaName, allocationId, cancellationToken).ConfigureAwait(false); + return await GetMockableQuotaManagementGroupResource(managementGroupResource).GetQuotaAllocationRequestStatusAsync(subscriptionId, groupQuotaName, resourceProviderName, allocationId, cancellationToken).ConfigureAwait(false); } /// @@ -820,7 +791,7 @@ public static async Task> GetQuot /// /// /// Request Path - /// /providers/Microsoft.Management/managementGroups/{managementGroupId}/subscriptions/{subscriptionId}/providers/Microsoft.Quota/groupQuotas/{groupQuotaName}/quotaAllocationRequests/{allocationId} + /// /providers/Microsoft.Management/managementGroups/{managementGroupId}/subscriptions/{subscriptionId}/providers/Microsoft.Quota/groupQuotas/{groupQuotaName}/resourceProviders/{resourceProviderName}/quotaAllocationRequests/{allocationId} /// /// /// Operation Id @@ -828,7 +799,7 @@ public static async Task> GetQuot /// /// /// Default Api Version - /// 2023-06-01-preview + /// 2024-12-12 /// /// /// Resource @@ -837,284 +808,23 @@ public static async Task> GetQuot /// /// /// Mocking - /// To mock this method, please mock instead. + /// To mock this method, please mock instead. /// /// /// The instance the method will execute against. /// The ID of the target subscription. The value must be an UUID. /// The GroupQuota name. The name should be unique for the provided context tenantId/MgId. + /// The resource provider name, such as - Microsoft.Compute. Currently only Microsoft.Compute resource provider supports this API. /// Request Id. /// The cancellation token to use. - /// , , or is null. - /// , or is an empty string, and was expected to be non-empty. + /// , , , or is null. + /// , , or is an empty string, and was expected to be non-empty. [ForwardsClientCalls] - public static Response GetQuotaAllocationRequestStatus(this ManagementGroupResource managementGroupResource, string subscriptionId, string groupQuotaName, string allocationId, CancellationToken cancellationToken = default) - { - Argument.AssertNotNull(managementGroupResource, nameof(managementGroupResource)); - - return GetMockableQuotaManagementGroupResource(managementGroupResource).GetQuotaAllocationRequestStatus(subscriptionId, groupQuotaName, allocationId, cancellationToken); - } - - /// - /// Get all the quotaAllocationRequests for a resourceProvider/location. The filter paramter for location is required. - /// - /// - /// Request Path - /// /providers/Microsoft.Management/managementGroups/{managementGroupId}/subscriptions/{subscriptionId}/providers/Microsoft.Quota/groupQuotas/{groupQuotaName}/resourceProviders/{resourceProviderName}/quotaAllocationRequests - /// - /// - /// Operation Id - /// GroupQuotaSubscriptionAllocationRequest_List - /// - /// - /// Default Api Version - /// 2023-06-01-preview - /// - /// - /// Resource - /// - /// - /// - /// - /// Mocking - /// To mock this method, please mock instead. - /// - /// - /// The instance the method will execute against. - /// The ID of the target subscription. The value must be an UUID. - /// The GroupQuota name. The name should be unique for the provided context tenantId/MgId. - /// The resource provider name, such as - Microsoft.Compute. Currently only Microsoft.Compute resource provider supports this API. - /// - /// | Field | Supported operators - /// |---------------------|------------------------ - /// - /// location eq {location} - /// Example: $filter=location eq eastus - /// - /// The cancellation token to use. - /// , or is an empty string, and was expected to be non-empty. - /// , , , or is null. - /// An async collection of that may take multiple service requests to iterate over. - public static AsyncPageable GetQuotaAllocationRequestStatusesByResourceProviderAsync(this ManagementGroupResource managementGroupResource, string subscriptionId, string groupQuotaName, string resourceProviderName, string filter, CancellationToken cancellationToken = default) - { - Argument.AssertNotNull(managementGroupResource, nameof(managementGroupResource)); - - return GetMockableQuotaManagementGroupResource(managementGroupResource).GetQuotaAllocationRequestStatusesByResourceProviderAsync(subscriptionId, groupQuotaName, resourceProviderName, filter, cancellationToken); - } - - /// - /// Get all the quotaAllocationRequests for a resourceProvider/location. The filter paramter for location is required. - /// - /// - /// Request Path - /// /providers/Microsoft.Management/managementGroups/{managementGroupId}/subscriptions/{subscriptionId}/providers/Microsoft.Quota/groupQuotas/{groupQuotaName}/resourceProviders/{resourceProviderName}/quotaAllocationRequests - /// - /// - /// Operation Id - /// GroupQuotaSubscriptionAllocationRequest_List - /// - /// - /// Default Api Version - /// 2023-06-01-preview - /// - /// - /// Resource - /// - /// - /// - /// - /// Mocking - /// To mock this method, please mock instead. - /// - /// - /// The instance the method will execute against. - /// The ID of the target subscription. The value must be an UUID. - /// The GroupQuota name. The name should be unique for the provided context tenantId/MgId. - /// The resource provider name, such as - Microsoft.Compute. Currently only Microsoft.Compute resource provider supports this API. - /// - /// | Field | Supported operators - /// |---------------------|------------------------ - /// - /// location eq {location} - /// Example: $filter=location eq eastus - /// - /// The cancellation token to use. - /// , or is an empty string, and was expected to be non-empty. - /// , , , or is null. - /// A collection of that may take multiple service requests to iterate over. - public static Pageable GetQuotaAllocationRequestStatusesByResourceProvider(this ManagementGroupResource managementGroupResource, string subscriptionId, string groupQuotaName, string resourceProviderName, string filter, CancellationToken cancellationToken = default) - { - Argument.AssertNotNull(managementGroupResource, nameof(managementGroupResource)); - - return GetMockableQuotaManagementGroupResource(managementGroupResource).GetQuotaAllocationRequestStatusesByResourceProvider(subscriptionId, groupQuotaName, resourceProviderName, filter, cancellationToken); - } - - /// - /// Request to assign quota from group quota to a specific Subscription. The assign GroupQuota to subscriptions or reduce the quota allocated to subscription to give back the unused quota ( quota >= usages) to the groupQuota. So, this API can be used to assign Quota to subscriptions and assign back unused quota to group quota, which can be assigned to another subscriptions in the GroupQuota. - /// - /// - /// Request Path - /// /providers/Microsoft.Management/managementGroups/{managementGroupId}/subscriptions/{subscriptionId}/providers/Microsoft.Quota/groupQuotas/{groupQuotaName}/resourceProviders/{resourceProviderName}/quotaAllocationRequests/{resourceName} - /// - /// - /// Operation Id - /// GroupQuotaSubscriptionAllocationRequest_CreateOrUpdate - /// - /// - /// Default Api Version - /// 2023-06-01-preview - /// - /// - /// Resource - /// - /// - /// - /// - /// Mocking - /// To mock this method, please mock instead. - /// - /// - /// The instance the method will execute against. - /// 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 ID of the target subscription. The value must be an UUID. - /// The GroupQuota name. The name should be unique for the provided context tenantId/MgId. - /// The resource provider name, such as - Microsoft.Compute. Currently only Microsoft.Compute resource provider supports this API. - /// Resource name. - /// Quota requests payload. - /// The cancellation token to use. - /// , , or is an empty string, and was expected to be non-empty. - /// , , , , or is null. - public static async Task> CreateOrUpdateGroupQuotaSubscriptionAllocationRequestAsync(this ManagementGroupResource managementGroupResource, WaitUntil waitUntil, string subscriptionId, string groupQuotaName, string resourceProviderName, string resourceName, QuotaAllocationRequestStatusData data, CancellationToken cancellationToken = default) - { - Argument.AssertNotNull(managementGroupResource, nameof(managementGroupResource)); - - return await GetMockableQuotaManagementGroupResource(managementGroupResource).CreateOrUpdateGroupQuotaSubscriptionAllocationRequestAsync(waitUntil, subscriptionId, groupQuotaName, resourceProviderName, resourceName, data, cancellationToken).ConfigureAwait(false); - } - - /// - /// Request to assign quota from group quota to a specific Subscription. The assign GroupQuota to subscriptions or reduce the quota allocated to subscription to give back the unused quota ( quota >= usages) to the groupQuota. So, this API can be used to assign Quota to subscriptions and assign back unused quota to group quota, which can be assigned to another subscriptions in the GroupQuota. - /// - /// - /// Request Path - /// /providers/Microsoft.Management/managementGroups/{managementGroupId}/subscriptions/{subscriptionId}/providers/Microsoft.Quota/groupQuotas/{groupQuotaName}/resourceProviders/{resourceProviderName}/quotaAllocationRequests/{resourceName} - /// - /// - /// Operation Id - /// GroupQuotaSubscriptionAllocationRequest_CreateOrUpdate - /// - /// - /// Default Api Version - /// 2023-06-01-preview - /// - /// - /// Resource - /// - /// - /// - /// - /// Mocking - /// To mock this method, please mock instead. - /// - /// - /// The instance the method will execute against. - /// 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 ID of the target subscription. The value must be an UUID. - /// The GroupQuota name. The name should be unique for the provided context tenantId/MgId. - /// The resource provider name, such as - Microsoft.Compute. Currently only Microsoft.Compute resource provider supports this API. - /// Resource name. - /// Quota requests payload. - /// The cancellation token to use. - /// , , or is an empty string, and was expected to be non-empty. - /// , , , , or is null. - public static ArmOperation CreateOrUpdateGroupQuotaSubscriptionAllocationRequest(this ManagementGroupResource managementGroupResource, WaitUntil waitUntil, string subscriptionId, string groupQuotaName, string resourceProviderName, string resourceName, QuotaAllocationRequestStatusData data, CancellationToken cancellationToken = default) - { - Argument.AssertNotNull(managementGroupResource, nameof(managementGroupResource)); - - return GetMockableQuotaManagementGroupResource(managementGroupResource).CreateOrUpdateGroupQuotaSubscriptionAllocationRequest(waitUntil, subscriptionId, groupQuotaName, resourceProviderName, resourceName, data, cancellationToken); - } - - /// - /// Request to assign quota from group quota to a specific Subscription. The assign GroupQuota to subscriptions or reduce the quota allocated to subscription to give back the unused quota ( quota >= usages) to the groupQuota. So, this API can be used to assign Quota to subscriptions and assign back unused quota to group quota, which can be assigned to another subscriptions in the GroupQuota. User can collect unused quotas from multiple subscriptions within the groupQuota and assign the groupQuota to the subscription, where it's needed. - /// - /// - /// Request Path - /// /providers/Microsoft.Management/managementGroups/{managementGroupId}/subscriptions/{subscriptionId}/providers/Microsoft.Quota/groupQuotas/{groupQuotaName}/resourceProviders/{resourceProviderName}/quotaAllocationRequests/{resourceName} - /// - /// - /// Operation Id - /// GroupQuotaSubscriptionAllocationRequest_Update - /// - /// - /// Default Api Version - /// 2023-06-01-preview - /// - /// - /// Resource - /// - /// - /// - /// - /// Mocking - /// To mock this method, please mock instead. - /// - /// - /// The instance the method will execute against. - /// 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 ID of the target subscription. The value must be an UUID. - /// The GroupQuota name. The name should be unique for the provided context tenantId/MgId. - /// The resource provider name, such as - Microsoft.Compute. Currently only Microsoft.Compute resource provider supports this API. - /// Resource name. - /// Quota requests payload. - /// The cancellation token to use. - /// , , or is an empty string, and was expected to be non-empty. - /// , , , , or is null. - public static async Task> UpdateGroupQuotaSubscriptionAllocationRequestAsync(this ManagementGroupResource managementGroupResource, WaitUntil waitUntil, string subscriptionId, string groupQuotaName, string resourceProviderName, string resourceName, QuotaAllocationRequestStatusData data, CancellationToken cancellationToken = default) - { - Argument.AssertNotNull(managementGroupResource, nameof(managementGroupResource)); - - return await GetMockableQuotaManagementGroupResource(managementGroupResource).UpdateGroupQuotaSubscriptionAllocationRequestAsync(waitUntil, subscriptionId, groupQuotaName, resourceProviderName, resourceName, data, cancellationToken).ConfigureAwait(false); - } - - /// - /// Request to assign quota from group quota to a specific Subscription. The assign GroupQuota to subscriptions or reduce the quota allocated to subscription to give back the unused quota ( quota >= usages) to the groupQuota. So, this API can be used to assign Quota to subscriptions and assign back unused quota to group quota, which can be assigned to another subscriptions in the GroupQuota. User can collect unused quotas from multiple subscriptions within the groupQuota and assign the groupQuota to the subscription, where it's needed. - /// - /// - /// Request Path - /// /providers/Microsoft.Management/managementGroups/{managementGroupId}/subscriptions/{subscriptionId}/providers/Microsoft.Quota/groupQuotas/{groupQuotaName}/resourceProviders/{resourceProviderName}/quotaAllocationRequests/{resourceName} - /// - /// - /// Operation Id - /// GroupQuotaSubscriptionAllocationRequest_Update - /// - /// - /// Default Api Version - /// 2023-06-01-preview - /// - /// - /// Resource - /// - /// - /// - /// - /// Mocking - /// To mock this method, please mock instead. - /// - /// - /// The instance the method will execute against. - /// 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 ID of the target subscription. The value must be an UUID. - /// The GroupQuota name. The name should be unique for the provided context tenantId/MgId. - /// The resource provider name, such as - Microsoft.Compute. Currently only Microsoft.Compute resource provider supports this API. - /// Resource name. - /// Quota requests payload. - /// The cancellation token to use. - /// , , or is an empty string, and was expected to be non-empty. - /// , , , , or is null. - public static ArmOperation UpdateGroupQuotaSubscriptionAllocationRequest(this ManagementGroupResource managementGroupResource, WaitUntil waitUntil, string subscriptionId, string groupQuotaName, string resourceProviderName, string resourceName, QuotaAllocationRequestStatusData data, CancellationToken cancellationToken = default) + public static Response GetQuotaAllocationRequestStatus(this ManagementGroupResource managementGroupResource, string subscriptionId, string groupQuotaName, string resourceProviderName, string allocationId, CancellationToken cancellationToken = default) { Argument.AssertNotNull(managementGroupResource, nameof(managementGroupResource)); - return GetMockableQuotaManagementGroupResource(managementGroupResource).UpdateGroupQuotaSubscriptionAllocationRequest(waitUntil, subscriptionId, groupQuotaName, resourceProviderName, resourceName, data, cancellationToken); + return GetMockableQuotaManagementGroupResource(managementGroupResource).GetQuotaAllocationRequestStatus(subscriptionId, groupQuotaName, resourceProviderName, allocationId, cancellationToken); } /// @@ -1130,7 +840,7 @@ public static ArmOperation UpdateGroupQuot /// /// /// Default Api Version - /// 2023-06-01-preview + /// 2024-12-12 /// /// /// @@ -1162,7 +872,7 @@ public static AsyncPageable GetQuotaOperationsAsync(this T /// /// /// Default Api Version - /// 2023-06-01-preview + /// 2024-12-12 /// /// /// diff --git a/sdk/quota/Azure.ResourceManager.Quota/src/Generated/GroupQuotaEnforcementCollection.cs b/sdk/quota/Azure.ResourceManager.Quota/src/Generated/GroupQuotaEnforcementCollection.cs deleted file mode 100644 index a6aa0fe10e09..000000000000 --- a/sdk/quota/Azure.ResourceManager.Quota/src/Generated/GroupQuotaEnforcementCollection.cs +++ /dev/null @@ -1,478 +0,0 @@ -// 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.Quota -{ - /// - /// 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 GetGroupQuotaEnforcements method from an instance of . - /// - public partial class GroupQuotaEnforcementCollection : ArmCollection, IEnumerable, IAsyncEnumerable - { - private readonly ClientDiagnostics _groupQuotaEnforcementGroupQuotaLocationSettingsClientDiagnostics; - private readonly GroupQuotaLocationSettingsRestOperations _groupQuotaEnforcementGroupQuotaLocationSettingsRestClient; - private readonly string _resourceProviderName; - - /// Initializes a new instance of the class for mocking. - protected GroupQuotaEnforcementCollection() - { - } - - /// 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. - /// The resource provider name, such as - Microsoft.Compute. Currently only Microsoft.Compute resource provider supports this API. - /// is null. - /// is an empty string, and was expected to be non-empty. - internal GroupQuotaEnforcementCollection(ArmClient client, ResourceIdentifier id, string resourceProviderName) : base(client, id) - { - _resourceProviderName = resourceProviderName; - _groupQuotaEnforcementGroupQuotaLocationSettingsClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Quota", GroupQuotaEnforcementResource.ResourceType.Namespace, Diagnostics); - TryGetApiVersion(GroupQuotaEnforcementResource.ResourceType, out string groupQuotaEnforcementGroupQuotaLocationSettingsApiVersion); - _groupQuotaEnforcementGroupQuotaLocationSettingsRestClient = new GroupQuotaLocationSettingsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, groupQuotaEnforcementGroupQuotaLocationSettingsApiVersion); -#if DEBUG - ValidateResourceId(Id); -#endif - } - - internal static void ValidateResourceId(ResourceIdentifier id) - { - if (id.ResourceType != GroupQuotaEntityResource.ResourceType) - throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, GroupQuotaEntityResource.ResourceType), nameof(id)); - } - - /// - /// Enables the GroupQuotas enforcement for the resource provider and the location specified. The resource provider will start using the group quotas as the overall quota for the subscriptions included in the GroupQuota. The subscriptions cannot request quota at subscription level. - /// The subscriptions share the GroupQuotaLimits assigned to the GroupQuota. If the GroupQuotaLimits is used, then submit a groupQuotaLimit request for the specific resource - provider/location/resource. - /// Once the GroupQuota Enforcement is enabled then, it cannot be deleted or reverted back. To disable GroupQuota Enforcement - - /// 1. Remove all the subscriptions from the groupQuota using the delete API for Subscriptions (Check the example - GroupQuotaSubscriptions_Delete). - /// 2. Ten delete the GroupQuota (Check the example - GroupQuotas_Delete). - /// - /// - /// Request Path - /// /providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Quota/groupQuotas/{groupQuotaName}/resourceProviders/{resourceProviderName}/locationSettings/{location} - /// - /// - /// Operation Id - /// GroupQuotaLocationSettings_CreateOrUpdate - /// - /// - /// Default Api Version - /// 2023-06-01-preview - /// - /// - /// Resource - /// - /// - /// - /// - /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. - /// The name of the Azure region. - /// The GroupQuota body details for creation or update of a GroupQuota entity. - /// The cancellation token to use. - /// is null. - public virtual async Task> CreateOrUpdateAsync(WaitUntil waitUntil, AzureLocation location, GroupQuotaEnforcementData data, CancellationToken cancellationToken = default) - { - Argument.AssertNotNull(data, nameof(data)); - - using var scope = _groupQuotaEnforcementGroupQuotaLocationSettingsClientDiagnostics.CreateScope("GroupQuotaEnforcementCollection.CreateOrUpdate"); - scope.Start(); - try - { - var response = await _groupQuotaEnforcementGroupQuotaLocationSettingsRestClient.CreateOrUpdateAsync(Id.Parent.Name, Id.Name, _resourceProviderName, location, data, cancellationToken).ConfigureAwait(false); - var operation = new QuotaArmOperation(new GroupQuotaEnforcementOperationSource(Client), _groupQuotaEnforcementGroupQuotaLocationSettingsClientDiagnostics, Pipeline, _groupQuotaEnforcementGroupQuotaLocationSettingsRestClient.CreateCreateOrUpdateRequest(Id.Parent.Name, Id.Name, _resourceProviderName, location, data).Request, response, OperationFinalStateVia.Location); - if (waitUntil == WaitUntil.Completed) - await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); - return operation; - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// Enables the GroupQuotas enforcement for the resource provider and the location specified. The resource provider will start using the group quotas as the overall quota for the subscriptions included in the GroupQuota. The subscriptions cannot request quota at subscription level. - /// The subscriptions share the GroupQuotaLimits assigned to the GroupQuota. If the GroupQuotaLimits is used, then submit a groupQuotaLimit request for the specific resource - provider/location/resource. - /// Once the GroupQuota Enforcement is enabled then, it cannot be deleted or reverted back. To disable GroupQuota Enforcement - - /// 1. Remove all the subscriptions from the groupQuota using the delete API for Subscriptions (Check the example - GroupQuotaSubscriptions_Delete). - /// 2. Ten delete the GroupQuota (Check the example - GroupQuotas_Delete). - /// - /// - /// Request Path - /// /providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Quota/groupQuotas/{groupQuotaName}/resourceProviders/{resourceProviderName}/locationSettings/{location} - /// - /// - /// Operation Id - /// GroupQuotaLocationSettings_CreateOrUpdate - /// - /// - /// Default Api Version - /// 2023-06-01-preview - /// - /// - /// Resource - /// - /// - /// - /// - /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. - /// The name of the Azure region. - /// The GroupQuota body details for creation or update of a GroupQuota entity. - /// The cancellation token to use. - /// is null. - public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, AzureLocation location, GroupQuotaEnforcementData data, CancellationToken cancellationToken = default) - { - Argument.AssertNotNull(data, nameof(data)); - - using var scope = _groupQuotaEnforcementGroupQuotaLocationSettingsClientDiagnostics.CreateScope("GroupQuotaEnforcementCollection.CreateOrUpdate"); - scope.Start(); - try - { - var response = _groupQuotaEnforcementGroupQuotaLocationSettingsRestClient.CreateOrUpdate(Id.Parent.Name, Id.Name, _resourceProviderName, location, data, cancellationToken); - var operation = new QuotaArmOperation(new GroupQuotaEnforcementOperationSource(Client), _groupQuotaEnforcementGroupQuotaLocationSettingsClientDiagnostics, Pipeline, _groupQuotaEnforcementGroupQuotaLocationSettingsRestClient.CreateCreateOrUpdateRequest(Id.Parent.Name, Id.Name, _resourceProviderName, location, data).Request, response, OperationFinalStateVia.Location); - if (waitUntil == WaitUntil.Completed) - operation.WaitForCompletion(cancellationToken); - return operation; - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// Gets the GroupQuotas enforcement settings for the ResourceProvider/location. The locations, where GroupQuota enforcement is not enabled will return Not Found. - /// - /// - /// Request Path - /// /providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Quota/groupQuotas/{groupQuotaName}/resourceProviders/{resourceProviderName}/locationSettings/{location} - /// - /// - /// Operation Id - /// GroupQuotaLocationSettings_Get - /// - /// - /// Default Api Version - /// 2023-06-01-preview - /// - /// - /// Resource - /// - /// - /// - /// - /// The name of the Azure region. - /// The cancellation token to use. - public virtual async Task> GetAsync(AzureLocation location, CancellationToken cancellationToken = default) - { - using var scope = _groupQuotaEnforcementGroupQuotaLocationSettingsClientDiagnostics.CreateScope("GroupQuotaEnforcementCollection.Get"); - scope.Start(); - try - { - var response = await _groupQuotaEnforcementGroupQuotaLocationSettingsRestClient.GetAsync(Id.Parent.Name, Id.Name, _resourceProviderName, location, cancellationToken).ConfigureAwait(false); - if (response.Value == null) - throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new GroupQuotaEnforcementResource(Client, response.Value), response.GetRawResponse()); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// Gets the GroupQuotas enforcement settings for the ResourceProvider/location. The locations, where GroupQuota enforcement is not enabled will return Not Found. - /// - /// - /// Request Path - /// /providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Quota/groupQuotas/{groupQuotaName}/resourceProviders/{resourceProviderName}/locationSettings/{location} - /// - /// - /// Operation Id - /// GroupQuotaLocationSettings_Get - /// - /// - /// Default Api Version - /// 2023-06-01-preview - /// - /// - /// Resource - /// - /// - /// - /// - /// The name of the Azure region. - /// The cancellation token to use. - public virtual Response Get(AzureLocation location, CancellationToken cancellationToken = default) - { - using var scope = _groupQuotaEnforcementGroupQuotaLocationSettingsClientDiagnostics.CreateScope("GroupQuotaEnforcementCollection.Get"); - scope.Start(); - try - { - var response = _groupQuotaEnforcementGroupQuotaLocationSettingsRestClient.Get(Id.Parent.Name, Id.Name, _resourceProviderName, location, cancellationToken); - if (response.Value == null) - throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new GroupQuotaEnforcementResource(Client, response.Value), response.GetRawResponse()); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// Returns only the list of the Azure regions settings, where the GroupQuotas enforcement is enabled. The locations not included in GroupQuota Enforcement will not be listed, the regions in failed status with listed as status Failed. - /// - /// - /// Request Path - /// /providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Quota/groupQuotas/{groupQuotaName}/resourceProviders/{resourceProviderName}/locationSettings - /// - /// - /// Operation Id - /// GroupQuotaLocationSettings_List - /// - /// - /// Default Api Version - /// 2023-06-01-preview - /// - /// - /// Resource - /// - /// - /// - /// - /// The cancellation token to use. - /// An async collection of that may take multiple service requests to iterate over. - public virtual AsyncPageable GetAllAsync(CancellationToken cancellationToken = default) - { - HttpMessage FirstPageRequest(int? pageSizeHint) => _groupQuotaEnforcementGroupQuotaLocationSettingsRestClient.CreateListRequest(Id.Parent.Name, Id.Name, _resourceProviderName); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _groupQuotaEnforcementGroupQuotaLocationSettingsRestClient.CreateListNextPageRequest(nextLink, Id.Parent.Name, Id.Name, _resourceProviderName); - return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new GroupQuotaEnforcementResource(Client, GroupQuotaEnforcementData.DeserializeGroupQuotaEnforcementData(e)), _groupQuotaEnforcementGroupQuotaLocationSettingsClientDiagnostics, Pipeline, "GroupQuotaEnforcementCollection.GetAll", "value", "nextLink", cancellationToken); - } - - /// - /// Returns only the list of the Azure regions settings, where the GroupQuotas enforcement is enabled. The locations not included in GroupQuota Enforcement will not be listed, the regions in failed status with listed as status Failed. - /// - /// - /// Request Path - /// /providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Quota/groupQuotas/{groupQuotaName}/resourceProviders/{resourceProviderName}/locationSettings - /// - /// - /// Operation Id - /// GroupQuotaLocationSettings_List - /// - /// - /// Default Api Version - /// 2023-06-01-preview - /// - /// - /// Resource - /// - /// - /// - /// - /// The cancellation token to use. - /// A collection of that may take multiple service requests to iterate over. - public virtual Pageable GetAll(CancellationToken cancellationToken = default) - { - HttpMessage FirstPageRequest(int? pageSizeHint) => _groupQuotaEnforcementGroupQuotaLocationSettingsRestClient.CreateListRequest(Id.Parent.Name, Id.Name, _resourceProviderName); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _groupQuotaEnforcementGroupQuotaLocationSettingsRestClient.CreateListNextPageRequest(nextLink, Id.Parent.Name, Id.Name, _resourceProviderName); - return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new GroupQuotaEnforcementResource(Client, GroupQuotaEnforcementData.DeserializeGroupQuotaEnforcementData(e)), _groupQuotaEnforcementGroupQuotaLocationSettingsClientDiagnostics, Pipeline, "GroupQuotaEnforcementCollection.GetAll", "value", "nextLink", cancellationToken); - } - - /// - /// Checks to see if the resource exists in azure. - /// - /// - /// Request Path - /// /providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Quota/groupQuotas/{groupQuotaName}/resourceProviders/{resourceProviderName}/locationSettings/{location} - /// - /// - /// Operation Id - /// GroupQuotaLocationSettings_Get - /// - /// - /// Default Api Version - /// 2023-06-01-preview - /// - /// - /// Resource - /// - /// - /// - /// - /// The name of the Azure region. - /// The cancellation token to use. - public virtual async Task> ExistsAsync(AzureLocation location, CancellationToken cancellationToken = default) - { - using var scope = _groupQuotaEnforcementGroupQuotaLocationSettingsClientDiagnostics.CreateScope("GroupQuotaEnforcementCollection.Exists"); - scope.Start(); - try - { - var response = await _groupQuotaEnforcementGroupQuotaLocationSettingsRestClient.GetAsync(Id.Parent.Name, Id.Name, _resourceProviderName, location, 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 - /// /providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Quota/groupQuotas/{groupQuotaName}/resourceProviders/{resourceProviderName}/locationSettings/{location} - /// - /// - /// Operation Id - /// GroupQuotaLocationSettings_Get - /// - /// - /// Default Api Version - /// 2023-06-01-preview - /// - /// - /// Resource - /// - /// - /// - /// - /// The name of the Azure region. - /// The cancellation token to use. - public virtual Response Exists(AzureLocation location, CancellationToken cancellationToken = default) - { - using var scope = _groupQuotaEnforcementGroupQuotaLocationSettingsClientDiagnostics.CreateScope("GroupQuotaEnforcementCollection.Exists"); - scope.Start(); - try - { - var response = _groupQuotaEnforcementGroupQuotaLocationSettingsRestClient.Get(Id.Parent.Name, Id.Name, _resourceProviderName, location, 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 - /// /providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Quota/groupQuotas/{groupQuotaName}/resourceProviders/{resourceProviderName}/locationSettings/{location} - /// - /// - /// Operation Id - /// GroupQuotaLocationSettings_Get - /// - /// - /// Default Api Version - /// 2023-06-01-preview - /// - /// - /// Resource - /// - /// - /// - /// - /// The name of the Azure region. - /// The cancellation token to use. - public virtual async Task> GetIfExistsAsync(AzureLocation location, CancellationToken cancellationToken = default) - { - using var scope = _groupQuotaEnforcementGroupQuotaLocationSettingsClientDiagnostics.CreateScope("GroupQuotaEnforcementCollection.GetIfExists"); - scope.Start(); - try - { - var response = await _groupQuotaEnforcementGroupQuotaLocationSettingsRestClient.GetAsync(Id.Parent.Name, Id.Name, _resourceProviderName, location, cancellationToken: cancellationToken).ConfigureAwait(false); - if (response.Value == null) - return new NoValueResponse(response.GetRawResponse()); - return Response.FromValue(new GroupQuotaEnforcementResource(Client, response.Value), response.GetRawResponse()); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// Tries to get details for this resource from the service. - /// - /// - /// Request Path - /// /providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Quota/groupQuotas/{groupQuotaName}/resourceProviders/{resourceProviderName}/locationSettings/{location} - /// - /// - /// Operation Id - /// GroupQuotaLocationSettings_Get - /// - /// - /// Default Api Version - /// 2023-06-01-preview - /// - /// - /// Resource - /// - /// - /// - /// - /// The name of the Azure region. - /// The cancellation token to use. - public virtual NullableResponse GetIfExists(AzureLocation location, CancellationToken cancellationToken = default) - { - using var scope = _groupQuotaEnforcementGroupQuotaLocationSettingsClientDiagnostics.CreateScope("GroupQuotaEnforcementCollection.GetIfExists"); - scope.Start(); - try - { - var response = _groupQuotaEnforcementGroupQuotaLocationSettingsRestClient.Get(Id.Parent.Name, Id.Name, _resourceProviderName, location, cancellationToken: cancellationToken); - if (response.Value == null) - return new NoValueResponse(response.GetRawResponse()); - return Response.FromValue(new GroupQuotaEnforcementResource(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/quota/Azure.ResourceManager.Quota/src/Generated/GroupQuotaEnforcementData.Serialization.cs b/sdk/quota/Azure.ResourceManager.Quota/src/Generated/GroupQuotaEnforcementData.Serialization.cs deleted file mode 100644 index 087c7de32452..000000000000 --- a/sdk/quota/Azure.ResourceManager.Quota/src/Generated/GroupQuotaEnforcementData.Serialization.cs +++ /dev/null @@ -1,241 +0,0 @@ -// 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; -using System.Text.Json; -using Azure.Core; -using Azure.ResourceManager.Models; -using Azure.ResourceManager.Quota.Models; - -namespace Azure.ResourceManager.Quota -{ - public partial class GroupQuotaEnforcementData : 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(GroupQuotaEnforcementData)} does not support writing '{format}' format."); - } - - base.JsonModelWriteCore(writer, options); - if (Optional.IsDefined(Properties)) - { - writer.WritePropertyName("properties"u8); - writer.WriteObjectValue(Properties, options); - } - } - - GroupQuotaEnforcementData 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(GroupQuotaEnforcementData)} does not support reading '{format}' format."); - } - - using JsonDocument document = JsonDocument.ParseValue(ref reader); - return DeserializeGroupQuotaEnforcementData(document.RootElement, options); - } - - internal static GroupQuotaEnforcementData DeserializeGroupQuotaEnforcementData(JsonElement element, ModelReaderWriterOptions options = null) - { - options ??= ModelSerializationExtensions.WireOptions; - - if (element.ValueKind == JsonValueKind.Null) - { - return null; - } - GroupQuotaEnforcementProperties properties = default; - ResourceIdentifier id = default; - string name = default; - ResourceType type = default; - SystemData systemData = default; - IDictionary serializedAdditionalRawData = default; - Dictionary rawDataDictionary = new Dictionary(); - foreach (var property in element.EnumerateObject()) - { - if (property.NameEquals("properties"u8)) - { - if (property.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - properties = GroupQuotaEnforcementProperties.DeserializeGroupQuotaEnforcementProperties(property.Value, options); - continue; - } - if (property.NameEquals("id"u8)) - { - id = new ResourceIdentifier(property.Value.GetString()); - continue; - } - if (property.NameEquals("name"u8)) - { - name = property.Value.GetString(); - continue; - } - if (property.NameEquals("type"u8)) - { - type = new ResourceType(property.Value.GetString()); - continue; - } - if (property.NameEquals("systemData"u8)) - { - if (property.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - systemData = JsonSerializer.Deserialize(property.Value.GetRawText()); - continue; - } - if (options.Format != "W") - { - rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); - } - } - serializedAdditionalRawData = rawDataDictionary; - return new GroupQuotaEnforcementData( - id, - name, - type, - systemData, - properties, - serializedAdditionalRawData); - } - - private BinaryData SerializeBicep(ModelReaderWriterOptions options) - { - StringBuilder builder = new StringBuilder(); - BicepModelReaderWriterOptions bicepOptions = options as BicepModelReaderWriterOptions; - IDictionary propertyOverrides = null; - bool hasObjectOverride = bicepOptions != null && bicepOptions.PropertyOverrides.TryGetValue(this, out propertyOverrides); - bool hasPropertyOverride = false; - string propertyOverride = null; - - builder.AppendLine("{"); - - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(Name), out propertyOverride); - if (hasPropertyOverride) - { - builder.Append(" name: "); - builder.AppendLine(propertyOverride); - } - else - { - if (Optional.IsDefined(Name)) - { - builder.Append(" name: "); - if (Name.Contains(Environment.NewLine)) - { - builder.AppendLine("'''"); - builder.AppendLine($"{Name}'''"); - } - else - { - builder.AppendLine($"'{Name}'"); - } - } - } - - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(Properties), out propertyOverride); - if (hasPropertyOverride) - { - builder.Append(" properties: "); - builder.AppendLine(propertyOverride); - } - else - { - if (Optional.IsDefined(Properties)) - { - builder.Append(" properties: "); - BicepSerializationHelpers.AppendChildObject(builder, Properties, options, 2, false, " properties: "); - } - } - - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(Id), out propertyOverride); - if (hasPropertyOverride) - { - builder.Append(" id: "); - builder.AppendLine(propertyOverride); - } - else - { - if (Optional.IsDefined(Id)) - { - builder.Append(" id: "); - builder.AppendLine($"'{Id.ToString()}'"); - } - } - - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(SystemData), out propertyOverride); - if (hasPropertyOverride) - { - builder.Append(" systemData: "); - builder.AppendLine(propertyOverride); - } - else - { - if (Optional.IsDefined(SystemData)) - { - builder.Append(" systemData: "); - builder.AppendLine($"'{SystemData.ToString()}'"); - } - } - - builder.AppendLine("}"); - return BinaryData.FromString(builder.ToString()); - } - - 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); - case "bicep": - return SerializeBicep(options); - default: - throw new FormatException($"The model {nameof(GroupQuotaEnforcementData)} does not support writing '{options.Format}' format."); - } - } - - GroupQuotaEnforcementData 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 DeserializeGroupQuotaEnforcementData(document.RootElement, options); - } - default: - throw new FormatException($"The model {nameof(GroupQuotaEnforcementData)} does not support reading '{options.Format}' format."); - } - } - - string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; - } -} diff --git a/sdk/quota/Azure.ResourceManager.Quota/src/Generated/GroupQuotaEnforcementResource.Serialization.cs b/sdk/quota/Azure.ResourceManager.Quota/src/Generated/GroupQuotaEnforcementResource.Serialization.cs deleted file mode 100644 index 6282eba4224a..000000000000 --- a/sdk/quota/Azure.ResourceManager.Quota/src/Generated/GroupQuotaEnforcementResource.Serialization.cs +++ /dev/null @@ -1,26 +0,0 @@ -// 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.Quota -{ - public partial class GroupQuotaEnforcementResource : IJsonModel - { - void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) => ((IJsonModel)Data).Write(writer, options); - - GroupQuotaEnforcementData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => ((IJsonModel)Data).Create(ref reader, options); - - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => ModelReaderWriter.Write(Data, options); - - GroupQuotaEnforcementData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => ModelReaderWriter.Read(data, options); - - string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => ((IPersistableModel)Data).GetFormatFromOptions(options); - } -} diff --git a/sdk/quota/Azure.ResourceManager.Quota/src/Generated/GroupQuotaEntityCollection.cs b/sdk/quota/Azure.ResourceManager.Quota/src/Generated/GroupQuotaEntityCollection.cs index c1c4cdecad85..0a66333019b3 100644 --- a/sdk/quota/Azure.ResourceManager.Quota/src/Generated/GroupQuotaEntityCollection.cs +++ b/sdk/quota/Azure.ResourceManager.Quota/src/Generated/GroupQuotaEntityCollection.cs @@ -65,7 +65,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-06-01-preview + /// 2024-12-12 /// /// /// Resource @@ -114,7 +114,7 @@ public virtual async Task> CreateOrUpdate /// /// /// Default Api Version - /// 2023-06-01-preview + /// 2024-12-12 /// /// /// Resource @@ -163,7 +163,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil w /// /// /// Default Api Version - /// 2023-06-01-preview + /// 2024-12-12 /// /// /// Resource @@ -208,7 +208,7 @@ public virtual async Task> GetAsync(string gr /// /// /// Default Api Version - /// 2023-06-01-preview + /// 2024-12-12 /// /// /// Resource @@ -253,7 +253,7 @@ public virtual Response Get(string groupQuotaName, Can /// /// /// Default Api Version - /// 2023-06-01-preview + /// 2024-12-12 /// /// /// Resource @@ -283,7 +283,7 @@ public virtual AsyncPageable GetAllAsync(CancellationT /// /// /// Default Api Version - /// 2023-06-01-preview + /// 2024-12-12 /// /// /// Resource @@ -313,7 +313,7 @@ public virtual Pageable GetAll(CancellationToken cance /// /// /// Default Api Version - /// 2023-06-01-preview + /// 2024-12-12 /// /// /// Resource @@ -356,7 +356,7 @@ public virtual async Task> ExistsAsync(string groupQuotaName, Can /// /// /// Default Api Version - /// 2023-06-01-preview + /// 2024-12-12 /// /// /// Resource @@ -399,7 +399,7 @@ public virtual Response Exists(string groupQuotaName, CancellationToken ca /// /// /// Default Api Version - /// 2023-06-01-preview + /// 2024-12-12 /// /// /// Resource @@ -444,7 +444,7 @@ public virtual async Task> GetIfExist /// /// /// Default Api Version - /// 2023-06-01-preview + /// 2024-12-12 /// /// /// Resource diff --git a/sdk/quota/Azure.ResourceManager.Quota/src/Generated/GroupQuotaEntityData.Serialization.cs b/sdk/quota/Azure.ResourceManager.Quota/src/Generated/GroupQuotaEntityData.Serialization.cs index d4fe05313770..2e46d722115c 100644 --- a/sdk/quota/Azure.ResourceManager.Quota/src/Generated/GroupQuotaEntityData.Serialization.cs +++ b/sdk/quota/Azure.ResourceManager.Quota/src/Generated/GroupQuotaEntityData.Serialization.cs @@ -65,7 +65,7 @@ internal static GroupQuotaEntityData DeserializeGroupQuotaEntityData(JsonElement { return null; } - GroupQuotaEntityBase properties = default; + GroupQuotasEntityProperties properties = default; ResourceIdentifier id = default; string name = default; ResourceType type = default; @@ -80,7 +80,7 @@ internal static GroupQuotaEntityData DeserializeGroupQuotaEntityData(JsonElement { continue; } - properties = GroupQuotaEntityBase.DeserializeGroupQuotaEntityBase(property.Value, options); + properties = GroupQuotasEntityProperties.DeserializeGroupQuotasEntityProperties(property.Value, options); continue; } if (property.NameEquals("id"u8)) diff --git a/sdk/quota/Azure.ResourceManager.Quota/src/Generated/GroupQuotaEntityData.cs b/sdk/quota/Azure.ResourceManager.Quota/src/Generated/GroupQuotaEntityData.cs index 33606c5ed707..5a3bda51d880 100644 --- a/sdk/quota/Azure.ResourceManager.Quota/src/Generated/GroupQuotaEntityData.cs +++ b/sdk/quota/Azure.ResourceManager.Quota/src/Generated/GroupQuotaEntityData.cs @@ -61,16 +61,16 @@ public GroupQuotaEntityData() /// The name. /// The resourceType. /// The systemData. - /// Properties and filters for ShareQuota. The request parameter is optional, if there are no filters specified. + /// Properties. /// Keeps track of any properties unknown to the library. - internal GroupQuotaEntityData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, GroupQuotaEntityBase properties, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData) + internal GroupQuotaEntityData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, GroupQuotasEntityProperties properties, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData) { Properties = properties; _serializedAdditionalRawData = serializedAdditionalRawData; } - /// Properties and filters for ShareQuota. The request parameter is optional, if there are no filters specified. + /// Properties. [WirePath("properties")] - public GroupQuotaEntityBase Properties { get; set; } + public GroupQuotasEntityProperties Properties { get; set; } } } diff --git a/sdk/quota/Azure.ResourceManager.Quota/src/Generated/GroupQuotaEntityResource.cs b/sdk/quota/Azure.ResourceManager.Quota/src/Generated/GroupQuotaEntityResource.cs index 1f07f43a073a..d455c52562ff 100644 --- a/sdk/quota/Azure.ResourceManager.Quota/src/Generated/GroupQuotaEntityResource.cs +++ b/sdk/quota/Azure.ResourceManager.Quota/src/Generated/GroupQuotaEntityResource.cs @@ -36,10 +36,8 @@ public static ResourceIdentifier CreateResourceIdentifier(string managementGroup private readonly ClientDiagnostics _groupQuotaEntityGroupQuotasClientDiagnostics; private readonly GroupQuotasRestOperations _groupQuotaEntityGroupQuotasRestClient; - private readonly ClientDiagnostics _groupQuotaRequestStatusGroupQuotaLimitsRequestClientDiagnostics; - private readonly GroupQuotaLimitsRequestRestOperations _groupQuotaRequestStatusGroupQuotaLimitsRequestRestClient; - private readonly ClientDiagnostics _groupQuotaUsagesClientDiagnostics; - private readonly GroupQuotaUsagesRestOperations _groupQuotaUsagesRestClient; + private readonly ClientDiagnostics _groupQuotaLimitsRequestClientDiagnostics; + private readonly GroupQuotaLimitsRequestRestOperations _groupQuotaLimitsRequestRestClient; private readonly GroupQuotaEntityData _data; /// Gets the resource type for the operations. @@ -67,11 +65,8 @@ internal GroupQuotaEntityResource(ArmClient client, ResourceIdentifier id) : bas _groupQuotaEntityGroupQuotasClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Quota", ResourceType.Namespace, Diagnostics); TryGetApiVersion(ResourceType, out string groupQuotaEntityGroupQuotasApiVersion); _groupQuotaEntityGroupQuotasRestClient = new GroupQuotasRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, groupQuotaEntityGroupQuotasApiVersion); - _groupQuotaRequestStatusGroupQuotaLimitsRequestClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Quota", GroupQuotaRequestStatusResource.ResourceType.Namespace, Diagnostics); - TryGetApiVersion(GroupQuotaRequestStatusResource.ResourceType, out string groupQuotaRequestStatusGroupQuotaLimitsRequestApiVersion); - _groupQuotaRequestStatusGroupQuotaLimitsRequestRestClient = new GroupQuotaLimitsRequestRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, groupQuotaRequestStatusGroupQuotaLimitsRequestApiVersion); - _groupQuotaUsagesClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Quota", ProviderConstants.DefaultProviderNamespace, Diagnostics); - _groupQuotaUsagesRestClient = new GroupQuotaUsagesRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint); + _groupQuotaLimitsRequestClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Quota", ProviderConstants.DefaultProviderNamespace, Diagnostics); + _groupQuotaLimitsRequestRestClient = new GroupQuotaLimitsRequestRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint); #if DEBUG ValidateResourceId(Id); #endif @@ -118,7 +113,7 @@ public virtual GroupQuotaSubscriptionCollection GetGroupQuotaSubscriptions() /// /// /// Default Api Version - /// 2023-06-01-preview + /// 2024-12-12 /// /// /// Resource @@ -149,7 +144,7 @@ public virtual async Task> GetGroupQuot /// /// /// Default Api Version - /// 2023-06-01-preview + /// 2024-12-12 /// /// /// Resource @@ -187,7 +182,7 @@ public virtual GroupQuotaSubscriptionRequestStatusCollection GetGroupQuotaSubscr /// /// /// Default Api Version - /// 2023-06-01-preview + /// 2024-12-12 /// /// /// Resource @@ -218,7 +213,7 @@ public virtual async Task> /// /// /// Default Api Version - /// 2023-06-01-preview + /// 2024-12-12 /// /// /// Resource @@ -236,94 +231,75 @@ public virtual Response GetGroupQuo return GetGroupQuotaSubscriptionRequestStatuses().Get(requestId, cancellationToken); } - /// Gets a collection of GroupQuotaLimitResources in the GroupQuotaEntity. - /// The resource provider name, such as - Microsoft.Compute. Currently only Microsoft.Compute resource provider supports this API. - /// is null. - /// is an empty string, and was expected to be non-empty. - /// An object representing collection of GroupQuotaLimitResources and their operations over a GroupQuotaLimitResource. - public virtual GroupQuotaLimitCollection GetGroupQuotaLimits(string resourceProviderName) + /// Gets a collection of GroupQuotaLimitListResources in the GroupQuotaEntity. + /// An object representing collection of GroupQuotaLimitListResources and their operations over a GroupQuotaLimitListResource. + public virtual GroupQuotaLimitListCollection GetGroupQuotaLimitLists() { - return new GroupQuotaLimitCollection(Client, Id, resourceProviderName); + return GetCachedClient(client => new GroupQuotaLimitListCollection(client, Id)); } /// - /// Gets the GroupQuotaLimits for the specific resource for a specific resource based on the resourceProviders, resourceName and $filter passed. - /// The $filter=location eq {location} is required to location specific resources groupQuota. + /// Gets the GroupQuotaLimits for the specified resource provider and location for resource names passed in $filter=resourceName eq {SKU}. /// /// /// Request Path - /// /providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Quota/groupQuotas/{groupQuotaName}/resourceProviders/{resourceProviderName}/groupQuotaLimits/{resourceName} + /// /providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Quota/groupQuotas/{groupQuotaName}/resourceProviders/{resourceProviderName}/groupQuotaLimits/{location} /// /// /// Operation Id - /// GroupQuotaLimits_Get + /// GroupQuotaLimits_List /// /// /// Default Api Version - /// 2023-06-01-preview + /// 2024-12-12 /// /// /// Resource - /// + /// /// /// /// /// The resource provider name, such as - Microsoft.Compute. Currently only Microsoft.Compute resource provider supports this API. - /// Resource name. - /// - /// | Field | Supported operators - /// |---------------------|------------------------ - /// - /// location eq {location} - /// Example: $filter=location eq eastus - /// + /// The name of the Azure region. /// The cancellation token to use. - /// , or is null. - /// or 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> GetGroupQuotaLimitAsync(string resourceProviderName, string resourceName, string filter, CancellationToken cancellationToken = default) + public virtual async Task> GetGroupQuotaLimitListAsync(string resourceProviderName, AzureLocation location, CancellationToken cancellationToken = default) { - return await GetGroupQuotaLimits(resourceProviderName).GetAsync(resourceName, filter, cancellationToken).ConfigureAwait(false); + return await GetGroupQuotaLimitLists().GetAsync(resourceProviderName, location, cancellationToken).ConfigureAwait(false); } /// - /// Gets the GroupQuotaLimits for the specific resource for a specific resource based on the resourceProviders, resourceName and $filter passed. - /// The $filter=location eq {location} is required to location specific resources groupQuota. + /// Gets the GroupQuotaLimits for the specified resource provider and location for resource names passed in $filter=resourceName eq {SKU}. /// /// /// Request Path - /// /providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Quota/groupQuotas/{groupQuotaName}/resourceProviders/{resourceProviderName}/groupQuotaLimits/{resourceName} + /// /providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Quota/groupQuotas/{groupQuotaName}/resourceProviders/{resourceProviderName}/groupQuotaLimits/{location} /// /// /// Operation Id - /// GroupQuotaLimits_Get + /// GroupQuotaLimits_List /// /// /// Default Api Version - /// 2023-06-01-preview + /// 2024-12-12 /// /// /// Resource - /// + /// /// /// /// /// The resource provider name, such as - Microsoft.Compute. Currently only Microsoft.Compute resource provider supports this API. - /// Resource name. - /// - /// | Field | Supported operators - /// |---------------------|------------------------ - /// - /// location eq {location} - /// Example: $filter=location eq eastus - /// + /// The name of the Azure region. /// The cancellation token to use. - /// , or is null. - /// or 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 GetGroupQuotaLimit(string resourceProviderName, string resourceName, string filter, CancellationToken cancellationToken = default) + public virtual Response GetGroupQuotaLimitList(string resourceProviderName, AzureLocation location, CancellationToken cancellationToken = default) { - return GetGroupQuotaLimits(resourceProviderName).Get(resourceName, filter, cancellationToken); + return GetGroupQuotaLimitLists().Get(resourceProviderName, location, cancellationToken); } /// Gets a collection of GroupQuotaRequestStatusResources in the GroupQuotaEntity. @@ -346,7 +322,7 @@ public virtual GroupQuotaRequestStatusCollection GetGroupQuotaRequestStatuses() /// /// /// Default Api Version - /// 2023-06-01-preview + /// 2024-12-12 /// /// /// Resource @@ -377,7 +353,7 @@ public virtual async Task> GetGroupQuo /// /// /// Default Api Version - /// 2023-06-01-preview + /// 2024-12-12 /// /// /// Resource @@ -395,80 +371,6 @@ public virtual Response GetGroupQuotaRequestSta return GetGroupQuotaRequestStatuses().Get(requestId, cancellationToken); } - /// Gets a collection of GroupQuotaEnforcementResources in the GroupQuotaEntity. - /// The resource provider name, such as - Microsoft.Compute. Currently only Microsoft.Compute resource provider supports this API. - /// is null. - /// is an empty string, and was expected to be non-empty. - /// An object representing collection of GroupQuotaEnforcementResources and their operations over a GroupQuotaEnforcementResource. - public virtual GroupQuotaEnforcementCollection GetGroupQuotaEnforcements(string resourceProviderName) - { - return new GroupQuotaEnforcementCollection(Client, Id, resourceProviderName); - } - - /// - /// Gets the GroupQuotas enforcement settings for the ResourceProvider/location. The locations, where GroupQuota enforcement is not enabled will return Not Found. - /// - /// - /// Request Path - /// /providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Quota/groupQuotas/{groupQuotaName}/resourceProviders/{resourceProviderName}/locationSettings/{location} - /// - /// - /// Operation Id - /// GroupQuotaLocationSettings_Get - /// - /// - /// Default Api Version - /// 2023-06-01-preview - /// - /// - /// Resource - /// - /// - /// - /// - /// The resource provider name, such as - Microsoft.Compute. Currently only Microsoft.Compute resource provider supports this API. - /// The name of the Azure region. - /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. - [ForwardsClientCalls] - public virtual async Task> GetGroupQuotaEnforcementAsync(string resourceProviderName, AzureLocation location, CancellationToken cancellationToken = default) - { - return await GetGroupQuotaEnforcements(resourceProviderName).GetAsync(location, cancellationToken).ConfigureAwait(false); - } - - /// - /// Gets the GroupQuotas enforcement settings for the ResourceProvider/location. The locations, where GroupQuota enforcement is not enabled will return Not Found. - /// - /// - /// Request Path - /// /providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Quota/groupQuotas/{groupQuotaName}/resourceProviders/{resourceProviderName}/locationSettings/{location} - /// - /// - /// Operation Id - /// GroupQuotaLocationSettings_Get - /// - /// - /// Default Api Version - /// 2023-06-01-preview - /// - /// - /// Resource - /// - /// - /// - /// - /// The resource provider name, such as - Microsoft.Compute. Currently only Microsoft.Compute resource provider supports this API. - /// The name of the Azure region. - /// The cancellation token to use. - /// is null. - /// is an empty string, and was expected to be non-empty. - [ForwardsClientCalls] - public virtual Response GetGroupQuotaEnforcement(string resourceProviderName, AzureLocation location, CancellationToken cancellationToken = default) - { - return GetGroupQuotaEnforcements(resourceProviderName).Get(location, cancellationToken); - } - /// /// Gets the GroupQuotas for the name passed. It will return the GroupQuotas properties only. The details on group quota can be access from the group quota APIs. /// @@ -482,7 +384,7 @@ public virtual Response GetGroupQuotaEnforcement( /// /// /// Default Api Version - /// 2023-06-01-preview + /// 2024-12-12 /// /// /// Resource @@ -522,7 +424,7 @@ public virtual async Task> GetAsync(Cancellat /// /// /// Default Api Version - /// 2023-06-01-preview + /// 2024-12-12 /// /// /// Resource @@ -562,7 +464,7 @@ public virtual Response Get(CancellationToken cancella /// /// /// Default Api Version - /// 2023-06-01-preview + /// 2024-12-12 /// /// /// Resource @@ -604,7 +506,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2023-06-01-preview + /// 2024-12-12 /// /// /// Resource @@ -647,7 +549,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2023-06-01-preview + /// 2024-12-12 /// /// /// Resource @@ -694,7 +596,7 @@ public virtual async Task> UpdateAsync(Wa /// /// /// Default Api Version - /// 2023-06-01-preview + /// 2024-12-12 /// /// /// Resource @@ -727,210 +629,6 @@ public virtual ArmOperation Update(WaitUntil waitUntil } } - /// - /// Put the GroupQuota requests for a specific ResourceProvider/Location/Resource. the location and resourceName ("name": {"value" : "resourceName") properties are specified in the request body. Only 1 resource quota can be requested. - /// Use the polling API - OperationsStatus URI specified in Azure-AsyncOperation header field, with retry-after duration in seconds to check the intermediate status. This API provides the finals status with the request details and status. - /// - /// - /// Request Path - /// /providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Quota/groupQuotas/{groupQuotaName}/resourceProviders/{resourceProviderName}/groupQuotaRequests/{resourceName} - /// - /// - /// Operation Id - /// GroupQuotaLimitsRequest_CreateOrUpdate - /// - /// - /// Default Api Version - /// 2023-06-01-preview - /// - /// - /// Resource - /// - /// - /// - /// - /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. - /// The resource provider name, such as - Microsoft.Compute. Currently only Microsoft.Compute resource provider supports this API. - /// Resource name. - /// The GroupQuotaRequest body details for specific resourceProvider/location/resources. - /// The cancellation token to use. - /// or is an empty string, and was expected to be non-empty. - /// or is null. - public virtual async Task> CreateOrUpdateGroupQuotaLimitsRequestAsync(WaitUntil waitUntil, string resourceProviderName, string resourceName, GroupQuotaRequestStatusData data = null, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(resourceProviderName, nameof(resourceProviderName)); - Argument.AssertNotNullOrEmpty(resourceName, nameof(resourceName)); - - using var scope = _groupQuotaRequestStatusGroupQuotaLimitsRequestClientDiagnostics.CreateScope("GroupQuotaEntityResource.CreateOrUpdateGroupQuotaLimitsRequest"); - scope.Start(); - try - { - var response = await _groupQuotaRequestStatusGroupQuotaLimitsRequestRestClient.CreateOrUpdateAsync(Id.Parent.Name, Id.Name, resourceProviderName, resourceName, data, cancellationToken).ConfigureAwait(false); - var operation = new QuotaArmOperation(new GroupQuotaRequestStatusOperationSource(Client), _groupQuotaRequestStatusGroupQuotaLimitsRequestClientDiagnostics, Pipeline, _groupQuotaRequestStatusGroupQuotaLimitsRequestRestClient.CreateCreateOrUpdateRequest(Id.Parent.Name, Id.Name, resourceProviderName, resourceName, data).Request, response, OperationFinalStateVia.Location); - if (waitUntil == WaitUntil.Completed) - await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); - return operation; - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// Put the GroupQuota requests for a specific ResourceProvider/Location/Resource. the location and resourceName ("name": {"value" : "resourceName") properties are specified in the request body. Only 1 resource quota can be requested. - /// Use the polling API - OperationsStatus URI specified in Azure-AsyncOperation header field, with retry-after duration in seconds to check the intermediate status. This API provides the finals status with the request details and status. - /// - /// - /// Request Path - /// /providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Quota/groupQuotas/{groupQuotaName}/resourceProviders/{resourceProviderName}/groupQuotaRequests/{resourceName} - /// - /// - /// Operation Id - /// GroupQuotaLimitsRequest_CreateOrUpdate - /// - /// - /// Default Api Version - /// 2023-06-01-preview - /// - /// - /// Resource - /// - /// - /// - /// - /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. - /// The resource provider name, such as - Microsoft.Compute. Currently only Microsoft.Compute resource provider supports this API. - /// Resource name. - /// The GroupQuotaRequest body details for specific resourceProvider/location/resources. - /// The cancellation token to use. - /// or is an empty string, and was expected to be non-empty. - /// or is null. - public virtual ArmOperation CreateOrUpdateGroupQuotaLimitsRequest(WaitUntil waitUntil, string resourceProviderName, string resourceName, GroupQuotaRequestStatusData data = null, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(resourceProviderName, nameof(resourceProviderName)); - Argument.AssertNotNullOrEmpty(resourceName, nameof(resourceName)); - - using var scope = _groupQuotaRequestStatusGroupQuotaLimitsRequestClientDiagnostics.CreateScope("GroupQuotaEntityResource.CreateOrUpdateGroupQuotaLimitsRequest"); - scope.Start(); - try - { - var response = _groupQuotaRequestStatusGroupQuotaLimitsRequestRestClient.CreateOrUpdate(Id.Parent.Name, Id.Name, resourceProviderName, resourceName, data, cancellationToken); - var operation = new QuotaArmOperation(new GroupQuotaRequestStatusOperationSource(Client), _groupQuotaRequestStatusGroupQuotaLimitsRequestClientDiagnostics, Pipeline, _groupQuotaRequestStatusGroupQuotaLimitsRequestRestClient.CreateCreateOrUpdateRequest(Id.Parent.Name, Id.Name, resourceProviderName, resourceName, data).Request, response, OperationFinalStateVia.Location); - if (waitUntil == WaitUntil.Completed) - operation.WaitForCompletion(cancellationToken); - return operation; - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// Create the GroupQuota requests for a specific ResourceProvider/Location/Resource. the location and resourceName properties are specified in the request body. Only 1 resource quota can be requested. Please note that patch request creates a new groupQuota request. - /// Use the polling API - OperationsStatus URI specified in Azure-AsyncOperation header field, with retry-after duration in seconds to check the intermediate status. This API provides the finals status with the request details and status. - /// - /// - /// Request Path - /// /providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Quota/groupQuotas/{groupQuotaName}/resourceProviders/{resourceProviderName}/groupQuotaRequests/{resourceName} - /// - /// - /// Operation Id - /// GroupQuotaLimitsRequest_Update - /// - /// - /// Default Api Version - /// 2023-06-01-preview - /// - /// - /// Resource - /// - /// - /// - /// - /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. - /// The resource provider name, such as - Microsoft.Compute. Currently only Microsoft.Compute resource provider supports this API. - /// Resource name. - /// The GroupQuotaRequest body details for specific resourceProvider/location/resources. - /// The cancellation token to use. - /// or is an empty string, and was expected to be non-empty. - /// or is null. - public virtual async Task> UpdateGroupQuotaLimitsRequestAsync(WaitUntil waitUntil, string resourceProviderName, string resourceName, GroupQuotaRequestStatusData data = null, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(resourceProviderName, nameof(resourceProviderName)); - Argument.AssertNotNullOrEmpty(resourceName, nameof(resourceName)); - - using var scope = _groupQuotaRequestStatusGroupQuotaLimitsRequestClientDiagnostics.CreateScope("GroupQuotaEntityResource.UpdateGroupQuotaLimitsRequest"); - scope.Start(); - try - { - var response = await _groupQuotaRequestStatusGroupQuotaLimitsRequestRestClient.UpdateAsync(Id.Parent.Name, Id.Name, resourceProviderName, resourceName, data, cancellationToken).ConfigureAwait(false); - var operation = new QuotaArmOperation(new GroupQuotaRequestStatusOperationSource(Client), _groupQuotaRequestStatusGroupQuotaLimitsRequestClientDiagnostics, Pipeline, _groupQuotaRequestStatusGroupQuotaLimitsRequestRestClient.CreateUpdateRequest(Id.Parent.Name, Id.Name, resourceProviderName, resourceName, data).Request, response, OperationFinalStateVia.Location); - if (waitUntil == WaitUntil.Completed) - await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); - return operation; - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// Create the GroupQuota requests for a specific ResourceProvider/Location/Resource. the location and resourceName properties are specified in the request body. Only 1 resource quota can be requested. Please note that patch request creates a new groupQuota request. - /// Use the polling API - OperationsStatus URI specified in Azure-AsyncOperation header field, with retry-after duration in seconds to check the intermediate status. This API provides the finals status with the request details and status. - /// - /// - /// Request Path - /// /providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Quota/groupQuotas/{groupQuotaName}/resourceProviders/{resourceProviderName}/groupQuotaRequests/{resourceName} - /// - /// - /// Operation Id - /// GroupQuotaLimitsRequest_Update - /// - /// - /// Default Api Version - /// 2023-06-01-preview - /// - /// - /// Resource - /// - /// - /// - /// - /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. - /// The resource provider name, such as - Microsoft.Compute. Currently only Microsoft.Compute resource provider supports this API. - /// Resource name. - /// The GroupQuotaRequest body details for specific resourceProvider/location/resources. - /// The cancellation token to use. - /// or is an empty string, and was expected to be non-empty. - /// or is null. - public virtual ArmOperation UpdateGroupQuotaLimitsRequest(WaitUntil waitUntil, string resourceProviderName, string resourceName, GroupQuotaRequestStatusData data = null, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(resourceProviderName, nameof(resourceProviderName)); - Argument.AssertNotNullOrEmpty(resourceName, nameof(resourceName)); - - using var scope = _groupQuotaRequestStatusGroupQuotaLimitsRequestClientDiagnostics.CreateScope("GroupQuotaEntityResource.UpdateGroupQuotaLimitsRequest"); - scope.Start(); - try - { - var response = _groupQuotaRequestStatusGroupQuotaLimitsRequestRestClient.Update(Id.Parent.Name, Id.Name, resourceProviderName, resourceName, data, cancellationToken); - var operation = new QuotaArmOperation(new GroupQuotaRequestStatusOperationSource(Client), _groupQuotaRequestStatusGroupQuotaLimitsRequestClientDiagnostics, Pipeline, _groupQuotaRequestStatusGroupQuotaLimitsRequestRestClient.CreateUpdateRequest(Id.Parent.Name, Id.Name, resourceProviderName, resourceName, data).Request, response, OperationFinalStateVia.Location); - if (waitUntil == WaitUntil.Completed) - operation.WaitForCompletion(cancellationToken); - return operation; - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - /// /// Get API to check the status of a GroupQuota request by requestId. /// @@ -944,11 +642,7 @@ public virtual ArmOperation UpdateGroupQuotaLim /// /// /// Default Api Version - /// 2023-06-01-preview - /// - /// - /// Resource - /// + /// 2024-12-12 /// /// /// @@ -969,9 +663,9 @@ public virtual AsyncPageable GetGroupQuotaLimit Argument.AssertNotNullOrEmpty(resourceProviderName, nameof(resourceProviderName)); Argument.AssertNotNull(filter, nameof(filter)); - HttpMessage FirstPageRequest(int? pageSizeHint) => _groupQuotaRequestStatusGroupQuotaLimitsRequestRestClient.CreateListRequest(Id.Parent.Name, Id.Name, resourceProviderName, filter); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _groupQuotaRequestStatusGroupQuotaLimitsRequestRestClient.CreateListNextPageRequest(nextLink, Id.Parent.Name, Id.Name, resourceProviderName, filter); - return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new GroupQuotaRequestStatusResource(Client, GroupQuotaRequestStatusData.DeserializeGroupQuotaRequestStatusData(e)), _groupQuotaRequestStatusGroupQuotaLimitsRequestClientDiagnostics, Pipeline, "GroupQuotaEntityResource.GetGroupQuotaLimitsRequests", "value", "nextLink", cancellationToken); + HttpMessage FirstPageRequest(int? pageSizeHint) => _groupQuotaLimitsRequestRestClient.CreateListRequest(Id.Parent.Name, Id.Name, resourceProviderName, filter); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _groupQuotaLimitsRequestRestClient.CreateListNextPageRequest(nextLink, Id.Parent.Name, Id.Name, resourceProviderName, filter); + return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new GroupQuotaRequestStatusResource(Client, GroupQuotaRequestStatusData.DeserializeGroupQuotaRequestStatusData(e)), _groupQuotaLimitsRequestClientDiagnostics, Pipeline, "GroupQuotaEntityResource.GetGroupQuotaLimitsRequests", "value", "nextLink", cancellationToken); } /// @@ -987,11 +681,7 @@ public virtual AsyncPageable GetGroupQuotaLimit /// /// /// Default Api Version - /// 2023-06-01-preview - /// - /// - /// Resource - /// + /// 2024-12-12 /// /// /// @@ -1012,73 +702,9 @@ public virtual Pageable GetGroupQuotaLimitsRequ Argument.AssertNotNullOrEmpty(resourceProviderName, nameof(resourceProviderName)); Argument.AssertNotNull(filter, nameof(filter)); - HttpMessage FirstPageRequest(int? pageSizeHint) => _groupQuotaRequestStatusGroupQuotaLimitsRequestRestClient.CreateListRequest(Id.Parent.Name, Id.Name, resourceProviderName, filter); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _groupQuotaRequestStatusGroupQuotaLimitsRequestRestClient.CreateListNextPageRequest(nextLink, Id.Parent.Name, Id.Name, resourceProviderName, filter); - return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new GroupQuotaRequestStatusResource(Client, GroupQuotaRequestStatusData.DeserializeGroupQuotaRequestStatusData(e)), _groupQuotaRequestStatusGroupQuotaLimitsRequestClientDiagnostics, Pipeline, "GroupQuotaEntityResource.GetGroupQuotaLimitsRequests", "value", "nextLink", cancellationToken); - } - - /// - /// Gets the GroupQuotas usages and limits(quota). Location is required paramter. - /// - /// - /// Request Path - /// /providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Quota/groupQuotas/{groupQuotaName}/resourceProviders/{resourceProviderName}/locationUsages/{location} - /// - /// - /// Operation Id - /// GroupQuotaUsages_List - /// - /// - /// Default Api Version - /// 2023-06-01-preview - /// - /// - /// - /// The resource provider name, such as - Microsoft.Compute. Currently only Microsoft.Compute resource provider supports this API. - /// The name of the Azure region. - /// The cancellation token to use. - /// is an empty string, and was expected to be non-empty. - /// is null. - /// An async collection of that may take multiple service requests to iterate over. - public virtual AsyncPageable GetGroupQuotaUsagesAsync(string resourceProviderName, AzureLocation location, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(resourceProviderName, nameof(resourceProviderName)); - - HttpMessage FirstPageRequest(int? pageSizeHint) => _groupQuotaUsagesRestClient.CreateListRequest(Id.Parent.Name, Id.Name, resourceProviderName, location); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _groupQuotaUsagesRestClient.CreateListNextPageRequest(nextLink, Id.Parent.Name, Id.Name, resourceProviderName, location); - return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => GroupQuotaResourceUsages.DeserializeGroupQuotaResourceUsages(e), _groupQuotaUsagesClientDiagnostics, Pipeline, "GroupQuotaEntityResource.GetGroupQuotaUsages", "value", "nextLink", cancellationToken); - } - - /// - /// Gets the GroupQuotas usages and limits(quota). Location is required paramter. - /// - /// - /// Request Path - /// /providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Quota/groupQuotas/{groupQuotaName}/resourceProviders/{resourceProviderName}/locationUsages/{location} - /// - /// - /// Operation Id - /// GroupQuotaUsages_List - /// - /// - /// Default Api Version - /// 2023-06-01-preview - /// - /// - /// - /// The resource provider name, such as - Microsoft.Compute. Currently only Microsoft.Compute resource provider supports this API. - /// The name of the Azure region. - /// The cancellation token to use. - /// is an empty string, and was expected to be non-empty. - /// is null. - /// A collection of that may take multiple service requests to iterate over. - public virtual Pageable GetGroupQuotaUsages(string resourceProviderName, AzureLocation location, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(resourceProviderName, nameof(resourceProviderName)); - - HttpMessage FirstPageRequest(int? pageSizeHint) => _groupQuotaUsagesRestClient.CreateListRequest(Id.Parent.Name, Id.Name, resourceProviderName, location); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _groupQuotaUsagesRestClient.CreateListNextPageRequest(nextLink, Id.Parent.Name, Id.Name, resourceProviderName, location); - return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => GroupQuotaResourceUsages.DeserializeGroupQuotaResourceUsages(e), _groupQuotaUsagesClientDiagnostics, Pipeline, "GroupQuotaEntityResource.GetGroupQuotaUsages", "value", "nextLink", cancellationToken); + HttpMessage FirstPageRequest(int? pageSizeHint) => _groupQuotaLimitsRequestRestClient.CreateListRequest(Id.Parent.Name, Id.Name, resourceProviderName, filter); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _groupQuotaLimitsRequestRestClient.CreateListNextPageRequest(nextLink, Id.Parent.Name, Id.Name, resourceProviderName, filter); + return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new GroupQuotaRequestStatusResource(Client, GroupQuotaRequestStatusData.DeserializeGroupQuotaRequestStatusData(e)), _groupQuotaLimitsRequestClientDiagnostics, Pipeline, "GroupQuotaEntityResource.GetGroupQuotaLimitsRequests", "value", "nextLink", cancellationToken); } } } diff --git a/sdk/quota/Azure.ResourceManager.Quota/src/Generated/GroupQuotaLimitCollection.cs b/sdk/quota/Azure.ResourceManager.Quota/src/Generated/GroupQuotaLimitCollection.cs deleted file mode 100644 index bd927d382d7c..000000000000 --- a/sdk/quota/Azure.ResourceManager.Quota/src/Generated/GroupQuotaLimitCollection.cs +++ /dev/null @@ -1,455 +0,0 @@ -// 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 Autorest.CSharp.Core; -using Azure.Core; -using Azure.Core.Pipeline; - -namespace Azure.ResourceManager.Quota -{ - /// - /// 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 GetGroupQuotaLimits method from an instance of . - /// - public partial class GroupQuotaLimitCollection : ArmCollection - { - private readonly ClientDiagnostics _groupQuotaLimitClientDiagnostics; - private readonly GroupQuotaLimitsRestOperations _groupQuotaLimitRestClient; - private readonly string _resourceProviderName; - - /// Initializes a new instance of the class for mocking. - protected GroupQuotaLimitCollection() - { - } - - /// 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. - /// The resource provider name, such as - Microsoft.Compute. Currently only Microsoft.Compute resource provider supports this API. - /// is null. - /// is an empty string, and was expected to be non-empty. - internal GroupQuotaLimitCollection(ArmClient client, ResourceIdentifier id, string resourceProviderName) : base(client, id) - { - _resourceProviderName = resourceProviderName; - _groupQuotaLimitClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Quota", GroupQuotaLimitResource.ResourceType.Namespace, Diagnostics); - TryGetApiVersion(GroupQuotaLimitResource.ResourceType, out string groupQuotaLimitApiVersion); - _groupQuotaLimitRestClient = new GroupQuotaLimitsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, groupQuotaLimitApiVersion); -#if DEBUG - ValidateResourceId(Id); -#endif - } - - internal static void ValidateResourceId(ResourceIdentifier id) - { - if (id.ResourceType != GroupQuotaEntityResource.ResourceType) - throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, GroupQuotaEntityResource.ResourceType), nameof(id)); - } - - /// - /// Gets the GroupQuotaLimits for the specific resource for a specific resource based on the resourceProviders, resourceName and $filter passed. - /// The $filter=location eq {location} is required to location specific resources groupQuota. - /// - /// - /// Request Path - /// /providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Quota/groupQuotas/{groupQuotaName}/resourceProviders/{resourceProviderName}/groupQuotaLimits/{resourceName} - /// - /// - /// Operation Id - /// GroupQuotaLimits_Get - /// - /// - /// Default Api Version - /// 2023-06-01-preview - /// - /// - /// Resource - /// - /// - /// - /// - /// Resource name. - /// - /// | Field | Supported operators - /// |---------------------|------------------------ - /// - /// location eq {location} - /// Example: $filter=location eq eastus - /// - /// The cancellation token to use. - /// is an empty string, and was expected to be non-empty. - /// or is null. - public virtual async Task> GetAsync(string resourceName, string filter, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(resourceName, nameof(resourceName)); - Argument.AssertNotNull(filter, nameof(filter)); - - using var scope = _groupQuotaLimitClientDiagnostics.CreateScope("GroupQuotaLimitCollection.Get"); - scope.Start(); - try - { - var response = await _groupQuotaLimitRestClient.GetAsync(Id.Parent.Name, Id.Name, _resourceProviderName, resourceName, filter, cancellationToken).ConfigureAwait(false); - if (response.Value == null) - throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new GroupQuotaLimitResource(Client, response.Value), response.GetRawResponse()); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// Gets the GroupQuotaLimits for the specific resource for a specific resource based on the resourceProviders, resourceName and $filter passed. - /// The $filter=location eq {location} is required to location specific resources groupQuota. - /// - /// - /// Request Path - /// /providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Quota/groupQuotas/{groupQuotaName}/resourceProviders/{resourceProviderName}/groupQuotaLimits/{resourceName} - /// - /// - /// Operation Id - /// GroupQuotaLimits_Get - /// - /// - /// Default Api Version - /// 2023-06-01-preview - /// - /// - /// Resource - /// - /// - /// - /// - /// Resource name. - /// - /// | Field | Supported operators - /// |---------------------|------------------------ - /// - /// location eq {location} - /// Example: $filter=location eq eastus - /// - /// The cancellation token to use. - /// is an empty string, and was expected to be non-empty. - /// or is null. - public virtual Response Get(string resourceName, string filter, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(resourceName, nameof(resourceName)); - Argument.AssertNotNull(filter, nameof(filter)); - - using var scope = _groupQuotaLimitClientDiagnostics.CreateScope("GroupQuotaLimitCollection.Get"); - scope.Start(); - try - { - var response = _groupQuotaLimitRestClient.Get(Id.Parent.Name, Id.Name, _resourceProviderName, resourceName, filter, cancellationToken); - if (response.Value == null) - throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new GroupQuotaLimitResource(Client, response.Value), response.GetRawResponse()); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// Gets the GroupQuotaLimits for the all resource for a specific resourceProvider and $filter passed. - /// The $filter=location eq {location} is required to location specific resources groupQuota. - /// - /// - /// Request Path - /// /providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Quota/groupQuotas/{groupQuotaName}/resourceProviders/{resourceProviderName}/groupQuotaLimits - /// - /// - /// Operation Id - /// GroupQuotaLimits_List - /// - /// - /// Default Api Version - /// 2023-06-01-preview - /// - /// - /// Resource - /// - /// - /// - /// - /// - /// | Field | Supported operators - /// |---------------------|------------------------ - /// - /// location eq {location} - /// Example: $filter=location eq eastus - /// - /// The cancellation token to use. - /// is null. - /// An async collection of that may take multiple service requests to iterate over. - public virtual AsyncPageable GetAllAsync(string filter, CancellationToken cancellationToken = default) - { - Argument.AssertNotNull(filter, nameof(filter)); - - HttpMessage FirstPageRequest(int? pageSizeHint) => _groupQuotaLimitRestClient.CreateListRequest(Id.Parent.Name, Id.Name, _resourceProviderName, filter); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _groupQuotaLimitRestClient.CreateListNextPageRequest(nextLink, Id.Parent.Name, Id.Name, _resourceProviderName, filter); - return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new GroupQuotaLimitResource(Client, GroupQuotaLimitData.DeserializeGroupQuotaLimitData(e)), _groupQuotaLimitClientDiagnostics, Pipeline, "GroupQuotaLimitCollection.GetAll", "value", "nextLink", cancellationToken); - } - - /// - /// Gets the GroupQuotaLimits for the all resource for a specific resourceProvider and $filter passed. - /// The $filter=location eq {location} is required to location specific resources groupQuota. - /// - /// - /// Request Path - /// /providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Quota/groupQuotas/{groupQuotaName}/resourceProviders/{resourceProviderName}/groupQuotaLimits - /// - /// - /// Operation Id - /// GroupQuotaLimits_List - /// - /// - /// Default Api Version - /// 2023-06-01-preview - /// - /// - /// Resource - /// - /// - /// - /// - /// - /// | Field | Supported operators - /// |---------------------|------------------------ - /// - /// location eq {location} - /// Example: $filter=location eq eastus - /// - /// The cancellation token to use. - /// is null. - /// A collection of that may take multiple service requests to iterate over. - public virtual Pageable GetAll(string filter, CancellationToken cancellationToken = default) - { - Argument.AssertNotNull(filter, nameof(filter)); - - HttpMessage FirstPageRequest(int? pageSizeHint) => _groupQuotaLimitRestClient.CreateListRequest(Id.Parent.Name, Id.Name, _resourceProviderName, filter); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _groupQuotaLimitRestClient.CreateListNextPageRequest(nextLink, Id.Parent.Name, Id.Name, _resourceProviderName, filter); - return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new GroupQuotaLimitResource(Client, GroupQuotaLimitData.DeserializeGroupQuotaLimitData(e)), _groupQuotaLimitClientDiagnostics, Pipeline, "GroupQuotaLimitCollection.GetAll", "value", "nextLink", cancellationToken); - } - - /// - /// Checks to see if the resource exists in azure. - /// - /// - /// Request Path - /// /providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Quota/groupQuotas/{groupQuotaName}/resourceProviders/{resourceProviderName}/groupQuotaLimits/{resourceName} - /// - /// - /// Operation Id - /// GroupQuotaLimits_Get - /// - /// - /// Default Api Version - /// 2023-06-01-preview - /// - /// - /// Resource - /// - /// - /// - /// - /// Resource name. - /// - /// | Field | Supported operators - /// |---------------------|------------------------ - /// - /// location eq {location} - /// Example: $filter=location eq eastus - /// - /// The cancellation token to use. - /// is an empty string, and was expected to be non-empty. - /// or is null. - public virtual async Task> ExistsAsync(string resourceName, string filter, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(resourceName, nameof(resourceName)); - Argument.AssertNotNull(filter, nameof(filter)); - - using var scope = _groupQuotaLimitClientDiagnostics.CreateScope("GroupQuotaLimitCollection.Exists"); - scope.Start(); - try - { - var response = await _groupQuotaLimitRestClient.GetAsync(Id.Parent.Name, Id.Name, _resourceProviderName, resourceName, filter, 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 - /// /providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Quota/groupQuotas/{groupQuotaName}/resourceProviders/{resourceProviderName}/groupQuotaLimits/{resourceName} - /// - /// - /// Operation Id - /// GroupQuotaLimits_Get - /// - /// - /// Default Api Version - /// 2023-06-01-preview - /// - /// - /// Resource - /// - /// - /// - /// - /// Resource name. - /// - /// | Field | Supported operators - /// |---------------------|------------------------ - /// - /// location eq {location} - /// Example: $filter=location eq eastus - /// - /// The cancellation token to use. - /// is an empty string, and was expected to be non-empty. - /// or is null. - public virtual Response Exists(string resourceName, string filter, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(resourceName, nameof(resourceName)); - Argument.AssertNotNull(filter, nameof(filter)); - - using var scope = _groupQuotaLimitClientDiagnostics.CreateScope("GroupQuotaLimitCollection.Exists"); - scope.Start(); - try - { - var response = _groupQuotaLimitRestClient.Get(Id.Parent.Name, Id.Name, _resourceProviderName, resourceName, filter, 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 - /// /providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Quota/groupQuotas/{groupQuotaName}/resourceProviders/{resourceProviderName}/groupQuotaLimits/{resourceName} - /// - /// - /// Operation Id - /// GroupQuotaLimits_Get - /// - /// - /// Default Api Version - /// 2023-06-01-preview - /// - /// - /// Resource - /// - /// - /// - /// - /// Resource name. - /// - /// | Field | Supported operators - /// |---------------------|------------------------ - /// - /// location eq {location} - /// Example: $filter=location eq eastus - /// - /// The cancellation token to use. - /// is an empty string, and was expected to be non-empty. - /// or is null. - public virtual async Task> GetIfExistsAsync(string resourceName, string filter, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(resourceName, nameof(resourceName)); - Argument.AssertNotNull(filter, nameof(filter)); - - using var scope = _groupQuotaLimitClientDiagnostics.CreateScope("GroupQuotaLimitCollection.GetIfExists"); - scope.Start(); - try - { - var response = await _groupQuotaLimitRestClient.GetAsync(Id.Parent.Name, Id.Name, _resourceProviderName, resourceName, filter, cancellationToken: cancellationToken).ConfigureAwait(false); - if (response.Value == null) - return new NoValueResponse(response.GetRawResponse()); - return Response.FromValue(new GroupQuotaLimitResource(Client, response.Value), response.GetRawResponse()); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// Tries to get details for this resource from the service. - /// - /// - /// Request Path - /// /providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Quota/groupQuotas/{groupQuotaName}/resourceProviders/{resourceProviderName}/groupQuotaLimits/{resourceName} - /// - /// - /// Operation Id - /// GroupQuotaLimits_Get - /// - /// - /// Default Api Version - /// 2023-06-01-preview - /// - /// - /// Resource - /// - /// - /// - /// - /// Resource name. - /// - /// | Field | Supported operators - /// |---------------------|------------------------ - /// - /// location eq {location} - /// Example: $filter=location eq eastus - /// - /// The cancellation token to use. - /// is an empty string, and was expected to be non-empty. - /// or is null. - public virtual NullableResponse GetIfExists(string resourceName, string filter, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(resourceName, nameof(resourceName)); - Argument.AssertNotNull(filter, nameof(filter)); - - using var scope = _groupQuotaLimitClientDiagnostics.CreateScope("GroupQuotaLimitCollection.GetIfExists"); - scope.Start(); - try - { - var response = _groupQuotaLimitRestClient.Get(Id.Parent.Name, Id.Name, _resourceProviderName, resourceName, filter, cancellationToken: cancellationToken); - if (response.Value == null) - return new NoValueResponse(response.GetRawResponse()); - return Response.FromValue(new GroupQuotaLimitResource(Client, response.Value), response.GetRawResponse()); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - } -} diff --git a/sdk/quota/Azure.ResourceManager.Quota/src/Generated/GroupQuotaLimitListCollection.cs b/sdk/quota/Azure.ResourceManager.Quota/src/Generated/GroupQuotaLimitListCollection.cs new file mode 100644 index 000000000000..a5b96859c172 --- /dev/null +++ b/sdk/quota/Azure.ResourceManager.Quota/src/Generated/GroupQuotaLimitListCollection.cs @@ -0,0 +1,323 @@ +// 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.Quota +{ + /// + /// 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 GetGroupQuotaLimitLists method from an instance of . + /// + public partial class GroupQuotaLimitListCollection : ArmCollection + { + private readonly ClientDiagnostics _groupQuotaLimitListGroupQuotaLimitsClientDiagnostics; + private readonly GroupQuotaLimitsRestOperations _groupQuotaLimitListGroupQuotaLimitsRestClient; + + /// Initializes a new instance of the class for mocking. + protected GroupQuotaLimitListCollection() + { + } + + /// 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 GroupQuotaLimitListCollection(ArmClient client, ResourceIdentifier id) : base(client, id) + { + _groupQuotaLimitListGroupQuotaLimitsClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Quota", GroupQuotaLimitListResource.ResourceType.Namespace, Diagnostics); + TryGetApiVersion(GroupQuotaLimitListResource.ResourceType, out string groupQuotaLimitListGroupQuotaLimitsApiVersion); + _groupQuotaLimitListGroupQuotaLimitsRestClient = new GroupQuotaLimitsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, groupQuotaLimitListGroupQuotaLimitsApiVersion); +#if DEBUG + ValidateResourceId(Id); +#endif + } + + internal static void ValidateResourceId(ResourceIdentifier id) + { + if (id.ResourceType != GroupQuotaEntityResource.ResourceType) + throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, GroupQuotaEntityResource.ResourceType), nameof(id)); + } + + /// + /// Gets the GroupQuotaLimits for the specified resource provider and location for resource names passed in $filter=resourceName eq {SKU}. + /// + /// + /// Request Path + /// /providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Quota/groupQuotas/{groupQuotaName}/resourceProviders/{resourceProviderName}/groupQuotaLimits/{location} + /// + /// + /// Operation Id + /// GroupQuotaLimits_List + /// + /// + /// Default Api Version + /// 2024-12-12 + /// + /// + /// Resource + /// + /// + /// + /// + /// The resource provider name, such as - Microsoft.Compute. Currently only Microsoft.Compute resource provider supports this API. + /// The name of the Azure region. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual async Task> GetAsync(string resourceProviderName, AzureLocation location, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(resourceProviderName, nameof(resourceProviderName)); + + using var scope = _groupQuotaLimitListGroupQuotaLimitsClientDiagnostics.CreateScope("GroupQuotaLimitListCollection.Get"); + scope.Start(); + try + { + var response = await _groupQuotaLimitListGroupQuotaLimitsRestClient.ListAsync(Id.Parent.Name, Id.Name, resourceProviderName, location, cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw new RequestFailedException(response.GetRawResponse()); + return Response.FromValue(new GroupQuotaLimitListResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Gets the GroupQuotaLimits for the specified resource provider and location for resource names passed in $filter=resourceName eq {SKU}. + /// + /// + /// Request Path + /// /providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Quota/groupQuotas/{groupQuotaName}/resourceProviders/{resourceProviderName}/groupQuotaLimits/{location} + /// + /// + /// Operation Id + /// GroupQuotaLimits_List + /// + /// + /// Default Api Version + /// 2024-12-12 + /// + /// + /// Resource + /// + /// + /// + /// + /// The resource provider name, such as - Microsoft.Compute. Currently only Microsoft.Compute resource provider supports this API. + /// The name of the Azure region. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual Response Get(string resourceProviderName, AzureLocation location, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(resourceProviderName, nameof(resourceProviderName)); + + using var scope = _groupQuotaLimitListGroupQuotaLimitsClientDiagnostics.CreateScope("GroupQuotaLimitListCollection.Get"); + scope.Start(); + try + { + var response = _groupQuotaLimitListGroupQuotaLimitsRestClient.List(Id.Parent.Name, Id.Name, resourceProviderName, location, cancellationToken); + if (response.Value == null) + throw new RequestFailedException(response.GetRawResponse()); + return Response.FromValue(new GroupQuotaLimitListResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Checks to see if the resource exists in azure. + /// + /// + /// Request Path + /// /providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Quota/groupQuotas/{groupQuotaName}/resourceProviders/{resourceProviderName}/groupQuotaLimits/{location} + /// + /// + /// Operation Id + /// GroupQuotaLimits_List + /// + /// + /// Default Api Version + /// 2024-12-12 + /// + /// + /// Resource + /// + /// + /// + /// + /// The resource provider name, such as - Microsoft.Compute. Currently only Microsoft.Compute resource provider supports this API. + /// The name of the Azure region. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual async Task> ExistsAsync(string resourceProviderName, AzureLocation location, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(resourceProviderName, nameof(resourceProviderName)); + + using var scope = _groupQuotaLimitListGroupQuotaLimitsClientDiagnostics.CreateScope("GroupQuotaLimitListCollection.Exists"); + scope.Start(); + try + { + var response = await _groupQuotaLimitListGroupQuotaLimitsRestClient.ListAsync(Id.Parent.Name, Id.Name, resourceProviderName, location, 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 + /// /providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Quota/groupQuotas/{groupQuotaName}/resourceProviders/{resourceProviderName}/groupQuotaLimits/{location} + /// + /// + /// Operation Id + /// GroupQuotaLimits_List + /// + /// + /// Default Api Version + /// 2024-12-12 + /// + /// + /// Resource + /// + /// + /// + /// + /// The resource provider name, such as - Microsoft.Compute. Currently only Microsoft.Compute resource provider supports this API. + /// The name of the Azure region. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual Response Exists(string resourceProviderName, AzureLocation location, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(resourceProviderName, nameof(resourceProviderName)); + + using var scope = _groupQuotaLimitListGroupQuotaLimitsClientDiagnostics.CreateScope("GroupQuotaLimitListCollection.Exists"); + scope.Start(); + try + { + var response = _groupQuotaLimitListGroupQuotaLimitsRestClient.List(Id.Parent.Name, Id.Name, resourceProviderName, location, 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 + /// /providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Quota/groupQuotas/{groupQuotaName}/resourceProviders/{resourceProviderName}/groupQuotaLimits/{location} + /// + /// + /// Operation Id + /// GroupQuotaLimits_List + /// + /// + /// Default Api Version + /// 2024-12-12 + /// + /// + /// Resource + /// + /// + /// + /// + /// The resource provider name, such as - Microsoft.Compute. Currently only Microsoft.Compute resource provider supports this API. + /// The name of the Azure region. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual async Task> GetIfExistsAsync(string resourceProviderName, AzureLocation location, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(resourceProviderName, nameof(resourceProviderName)); + + using var scope = _groupQuotaLimitListGroupQuotaLimitsClientDiagnostics.CreateScope("GroupQuotaLimitListCollection.GetIfExists"); + scope.Start(); + try + { + var response = await _groupQuotaLimitListGroupQuotaLimitsRestClient.ListAsync(Id.Parent.Name, Id.Name, resourceProviderName, location, cancellationToken: cancellationToken).ConfigureAwait(false); + if (response.Value == null) + return new NoValueResponse(response.GetRawResponse()); + return Response.FromValue(new GroupQuotaLimitListResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Tries to get details for this resource from the service. + /// + /// + /// Request Path + /// /providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Quota/groupQuotas/{groupQuotaName}/resourceProviders/{resourceProviderName}/groupQuotaLimits/{location} + /// + /// + /// Operation Id + /// GroupQuotaLimits_List + /// + /// + /// Default Api Version + /// 2024-12-12 + /// + /// + /// Resource + /// + /// + /// + /// + /// The resource provider name, such as - Microsoft.Compute. Currently only Microsoft.Compute resource provider supports this API. + /// The name of the Azure region. + /// The cancellation token to use. + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual NullableResponse GetIfExists(string resourceProviderName, AzureLocation location, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(resourceProviderName, nameof(resourceProviderName)); + + using var scope = _groupQuotaLimitListGroupQuotaLimitsClientDiagnostics.CreateScope("GroupQuotaLimitListCollection.GetIfExists"); + scope.Start(); + try + { + var response = _groupQuotaLimitListGroupQuotaLimitsRestClient.List(Id.Parent.Name, Id.Name, resourceProviderName, location, cancellationToken: cancellationToken); + if (response.Value == null) + return new NoValueResponse(response.GetRawResponse()); + return Response.FromValue(new GroupQuotaLimitListResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + } +} diff --git a/sdk/quota/Azure.ResourceManager.Quota/src/Generated/GroupQuotaLimitData.Serialization.cs b/sdk/quota/Azure.ResourceManager.Quota/src/Generated/GroupQuotaLimitListData.Serialization.cs similarity index 79% rename from sdk/quota/Azure.ResourceManager.Quota/src/Generated/GroupQuotaLimitData.Serialization.cs rename to sdk/quota/Azure.ResourceManager.Quota/src/Generated/GroupQuotaLimitListData.Serialization.cs index 5ed4b1f74137..2436efc389eb 100644 --- a/sdk/quota/Azure.ResourceManager.Quota/src/Generated/GroupQuotaLimitData.Serialization.cs +++ b/sdk/quota/Azure.ResourceManager.Quota/src/Generated/GroupQuotaLimitListData.Serialization.cs @@ -16,11 +16,11 @@ namespace Azure.ResourceManager.Quota { - public partial class GroupQuotaLimitData : IUtf8JsonSerializable, IJsonModel + public partial class GroupQuotaLimitListData : IUtf8JsonSerializable, IJsonModel { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); - void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) { writer.WriteStartObject(); JsonModelWriteCore(writer, options); @@ -31,10 +31,10 @@ void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWri /// 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; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { - throw new FormatException($"The model {nameof(GroupQuotaLimitData)} does not support writing '{format}' format."); + throw new FormatException($"The model {nameof(GroupQuotaLimitListData)} does not support writing '{format}' format."); } base.JsonModelWriteCore(writer, options); @@ -45,19 +45,19 @@ protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWri } } - GroupQuotaLimitData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + GroupQuotaLimitListData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { - throw new FormatException($"The model {nameof(GroupQuotaLimitData)} does not support reading '{format}' format."); + throw new FormatException($"The model {nameof(GroupQuotaLimitListData)} does not support reading '{format}' format."); } using JsonDocument document = JsonDocument.ParseValue(ref reader); - return DeserializeGroupQuotaLimitData(document.RootElement, options); + return DeserializeGroupQuotaLimitListData(document.RootElement, options); } - internal static GroupQuotaLimitData DeserializeGroupQuotaLimitData(JsonElement element, ModelReaderWriterOptions options = null) + internal static GroupQuotaLimitListData DeserializeGroupQuotaLimitListData(JsonElement element, ModelReaderWriterOptions options = null) { options ??= ModelSerializationExtensions.WireOptions; @@ -65,7 +65,7 @@ internal static GroupQuotaLimitData DeserializeGroupQuotaLimitData(JsonElement e { return null; } - GroupQuotaDetails properties = default; + GroupQuotaLimitListProperties properties = default; ResourceIdentifier id = default; string name = default; ResourceType type = default; @@ -80,7 +80,7 @@ internal static GroupQuotaLimitData DeserializeGroupQuotaLimitData(JsonElement e { continue; } - properties = GroupQuotaDetails.DeserializeGroupQuotaDetails(property.Value, options); + properties = GroupQuotaLimitListProperties.DeserializeGroupQuotaLimitListProperties(property.Value, options); continue; } if (property.NameEquals("id"u8)) @@ -113,7 +113,7 @@ internal static GroupQuotaLimitData DeserializeGroupQuotaLimitData(JsonElement e } } serializedAdditionalRawData = rawDataDictionary; - return new GroupQuotaLimitData( + return new GroupQuotaLimitListData( id, name, type, @@ -205,9 +205,9 @@ private BinaryData SerializeBicep(ModelReaderWriterOptions options) return BinaryData.FromString(builder.ToString()); } - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { @@ -216,26 +216,26 @@ BinaryData IPersistableModel.Write(ModelReaderWriterOptions case "bicep": return SerializeBicep(options); default: - throw new FormatException($"The model {nameof(GroupQuotaLimitData)} does not support writing '{options.Format}' format."); + throw new FormatException($"The model {nameof(GroupQuotaLimitListData)} does not support writing '{options.Format}' format."); } } - GroupQuotaLimitData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + GroupQuotaLimitListData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": { using JsonDocument document = JsonDocument.Parse(data); - return DeserializeGroupQuotaLimitData(document.RootElement, options); + return DeserializeGroupQuotaLimitListData(document.RootElement, options); } default: - throw new FormatException($"The model {nameof(GroupQuotaLimitData)} does not support reading '{options.Format}' format."); + throw new FormatException($"The model {nameof(GroupQuotaLimitListData)} does not support reading '{options.Format}' format."); } } - string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; } } diff --git a/sdk/quota/Azure.ResourceManager.Quota/src/Generated/GroupQuotaEnforcementData.cs b/sdk/quota/Azure.ResourceManager.Quota/src/Generated/GroupQuotaLimitListData.cs similarity index 78% rename from sdk/quota/Azure.ResourceManager.Quota/src/Generated/GroupQuotaEnforcementData.cs rename to sdk/quota/Azure.ResourceManager.Quota/src/Generated/GroupQuotaLimitListData.cs index dc4f348e5175..26bdeb03fde2 100644 --- a/sdk/quota/Azure.ResourceManager.Quota/src/Generated/GroupQuotaEnforcementData.cs +++ b/sdk/quota/Azure.ResourceManager.Quota/src/Generated/GroupQuotaLimitListData.cs @@ -14,10 +14,10 @@ namespace Azure.ResourceManager.Quota { /// - /// A class representing the GroupQuotaEnforcement data model. - /// The GroupQuota Enforcement status for a Azure Location/Region. + /// A class representing the GroupQuotaLimitList data model. + /// List of Group Quota Limit details. /// - public partial class GroupQuotaEnforcementData : ResourceData + public partial class GroupQuotaLimitListData : ResourceData { /// /// Keeps track of any properties unknown to the library. @@ -51,19 +51,19 @@ public partial class GroupQuotaEnforcementData : ResourceData /// private IDictionary _serializedAdditionalRawData; - /// Initializes a new instance of . - public GroupQuotaEnforcementData() + /// Initializes a new instance of . + public GroupQuotaLimitListData() { } - /// Initializes a new instance of . + /// Initializes a new instance of . /// The id. /// The name. /// The resourceType. /// The systemData. /// /// Keeps track of any properties unknown to the library. - internal GroupQuotaEnforcementData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, GroupQuotaEnforcementProperties properties, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData) + internal GroupQuotaLimitListData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, GroupQuotaLimitListProperties properties, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData) { Properties = properties; _serializedAdditionalRawData = serializedAdditionalRawData; @@ -71,6 +71,6 @@ internal GroupQuotaEnforcementData(ResourceIdentifier id, string name, ResourceT /// Gets or sets the properties. [WirePath("properties")] - public GroupQuotaEnforcementProperties Properties { get; set; } + public GroupQuotaLimitListProperties Properties { get; set; } } } diff --git a/sdk/quota/Azure.ResourceManager.Quota/src/Generated/GroupQuotaLimitListResource.Serialization.cs b/sdk/quota/Azure.ResourceManager.Quota/src/Generated/GroupQuotaLimitListResource.Serialization.cs new file mode 100644 index 000000000000..99cdc8bd3c63 --- /dev/null +++ b/sdk/quota/Azure.ResourceManager.Quota/src/Generated/GroupQuotaLimitListResource.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.Quota +{ + public partial class GroupQuotaLimitListResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) => ((IJsonModel)Data).Write(writer, options); + + GroupQuotaLimitListData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => ((IJsonModel)Data).Create(ref reader, options); + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => ModelReaderWriter.Write(Data, options); + + GroupQuotaLimitListData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => ModelReaderWriter.Read(data, options); + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => ((IPersistableModel)Data).GetFormatFromOptions(options); + } +} diff --git a/sdk/quota/Azure.ResourceManager.Quota/src/Generated/GroupQuotaEnforcementResource.cs b/sdk/quota/Azure.ResourceManager.Quota/src/Generated/GroupQuotaLimitListResource.cs similarity index 50% rename from sdk/quota/Azure.ResourceManager.Quota/src/Generated/GroupQuotaEnforcementResource.cs rename to sdk/quota/Azure.ResourceManager.Quota/src/Generated/GroupQuotaLimitListResource.cs index 18f0dd28303c..b9d4e0f6ef8b 100644 --- a/sdk/quota/Azure.ResourceManager.Quota/src/Generated/GroupQuotaEnforcementResource.cs +++ b/sdk/quota/Azure.ResourceManager.Quota/src/Generated/GroupQuotaLimitListResource.cs @@ -15,53 +15,58 @@ namespace Azure.ResourceManager.Quota { /// - /// A Class representing a GroupQuotaEnforcement 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 GetGroupQuotaEnforcementResource method. - /// Otherwise you can get one from its parent resource using the GetGroupQuotaEnforcement method. + /// A Class representing a GroupQuotaLimitList 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 GetGroupQuotaLimitListResource method. + /// Otherwise you can get one from its parent resource using the GetGroupQuotaLimitList method. /// - public partial class GroupQuotaEnforcementResource : ArmResource + public partial class GroupQuotaLimitListResource : ArmResource { - /// Generate the resource identifier of a instance. + /// Generate the resource identifier of a instance. /// The managementGroupId. /// The groupQuotaName. /// The resourceProviderName. /// The location. public static ResourceIdentifier CreateResourceIdentifier(string managementGroupId, string groupQuotaName, string resourceProviderName, AzureLocation location) { - var resourceId = $"/providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Quota/groupQuotas/{groupQuotaName}/resourceProviders/{resourceProviderName}/locationSettings/{location}"; + var resourceId = $"/providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Quota/groupQuotas/{groupQuotaName}/resourceProviders/{resourceProviderName}/groupQuotaLimits/{location}"; return new ResourceIdentifier(resourceId); } - private readonly ClientDiagnostics _groupQuotaEnforcementGroupQuotaLocationSettingsClientDiagnostics; - private readonly GroupQuotaLocationSettingsRestOperations _groupQuotaEnforcementGroupQuotaLocationSettingsRestClient; - private readonly GroupQuotaEnforcementData _data; + private readonly ClientDiagnostics _groupQuotaLimitListGroupQuotaLimitsClientDiagnostics; + private readonly GroupQuotaLimitsRestOperations _groupQuotaLimitListGroupQuotaLimitsRestClient; + private readonly ClientDiagnostics _groupQuotaLimitListGroupQuotaLimitsRequestClientDiagnostics; + private readonly GroupQuotaLimitsRequestRestOperations _groupQuotaLimitListGroupQuotaLimitsRequestRestClient; + private readonly GroupQuotaLimitListData _data; /// Gets the resource type for the operations. - public static readonly ResourceType ResourceType = "Microsoft.Quota/groupQuotas/resourceProviders/locationSettings"; + public static readonly ResourceType ResourceType = "Microsoft.Quota/groupQuotas/resourceProviders/groupQuotaLimits"; - /// Initializes a new instance of the class for mocking. - protected GroupQuotaEnforcementResource() + /// Initializes a new instance of the class for mocking. + protected GroupQuotaLimitListResource() { } - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The resource that is the target of operations. - internal GroupQuotaEnforcementResource(ArmClient client, GroupQuotaEnforcementData data) : this(client, data.Id) + internal GroupQuotaLimitListResource(ArmClient client, GroupQuotaLimitListData data) : this(client, data.Id) { HasData = true; _data = data; } - /// Initializes a new instance of the class. + /// 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 GroupQuotaEnforcementResource(ArmClient client, ResourceIdentifier id) : base(client, id) + internal GroupQuotaLimitListResource(ArmClient client, ResourceIdentifier id) : base(client, id) { - _groupQuotaEnforcementGroupQuotaLocationSettingsClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Quota", ResourceType.Namespace, Diagnostics); - TryGetApiVersion(ResourceType, out string groupQuotaEnforcementGroupQuotaLocationSettingsApiVersion); - _groupQuotaEnforcementGroupQuotaLocationSettingsRestClient = new GroupQuotaLocationSettingsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, groupQuotaEnforcementGroupQuotaLocationSettingsApiVersion); + _groupQuotaLimitListGroupQuotaLimitsClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Quota", ResourceType.Namespace, Diagnostics); + TryGetApiVersion(ResourceType, out string groupQuotaLimitListGroupQuotaLimitsApiVersion); + _groupQuotaLimitListGroupQuotaLimitsRestClient = new GroupQuotaLimitsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, groupQuotaLimitListGroupQuotaLimitsApiVersion); + _groupQuotaLimitListGroupQuotaLimitsRequestClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Quota", ResourceType.Namespace, Diagnostics); + TryGetApiVersion(ResourceType, out string groupQuotaLimitListGroupQuotaLimitsRequestApiVersion); + _groupQuotaLimitListGroupQuotaLimitsRequestRestClient = new GroupQuotaLimitsRequestRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, groupQuotaLimitListGroupQuotaLimitsRequestApiVersion); #if DEBUG ValidateResourceId(Id); #endif @@ -72,7 +77,7 @@ internal GroupQuotaEnforcementResource(ArmClient client, ResourceIdentifier id) /// Gets the data representing this Feature. /// Throws if there is no data loaded in the current instance. - public virtual GroupQuotaEnforcementData Data + public virtual GroupQuotaLimitListData Data { get { @@ -89,37 +94,37 @@ internal static void ValidateResourceId(ResourceIdentifier id) } /// - /// Gets the GroupQuotas enforcement settings for the ResourceProvider/location. The locations, where GroupQuota enforcement is not enabled will return Not Found. + /// Gets the GroupQuotaLimits for the specified resource provider and location for resource names passed in $filter=resourceName eq {SKU}. /// /// /// Request Path - /// /providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Quota/groupQuotas/{groupQuotaName}/resourceProviders/{resourceProviderName}/locationSettings/{location} + /// /providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Quota/groupQuotas/{groupQuotaName}/resourceProviders/{resourceProviderName}/groupQuotaLimits/{location} /// /// /// Operation Id - /// GroupQuotaLocationSettings_Get + /// GroupQuotaLimits_List /// /// /// Default Api Version - /// 2023-06-01-preview + /// 2024-12-12 /// /// /// Resource - /// + /// /// /// /// /// The cancellation token to use. - public virtual async Task> GetAsync(CancellationToken cancellationToken = default) + public virtual async Task> GetAsync(CancellationToken cancellationToken = default) { - using var scope = _groupQuotaEnforcementGroupQuotaLocationSettingsClientDiagnostics.CreateScope("GroupQuotaEnforcementResource.Get"); + using var scope = _groupQuotaLimitListGroupQuotaLimitsClientDiagnostics.CreateScope("GroupQuotaLimitListResource.Get"); scope.Start(); try { - var response = await _groupQuotaEnforcementGroupQuotaLocationSettingsRestClient.GetAsync(Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, new AzureLocation(Id.Name), cancellationToken).ConfigureAwait(false); + var response = await _groupQuotaLimitListGroupQuotaLimitsRestClient.ListAsync(Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, new AzureLocation(Id.Name), cancellationToken).ConfigureAwait(false); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new GroupQuotaEnforcementResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new GroupQuotaLimitListResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -129,37 +134,37 @@ public virtual async Task> GetAsync(Canc } /// - /// Gets the GroupQuotas enforcement settings for the ResourceProvider/location. The locations, where GroupQuota enforcement is not enabled will return Not Found. + /// Gets the GroupQuotaLimits for the specified resource provider and location for resource names passed in $filter=resourceName eq {SKU}. /// /// /// Request Path - /// /providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Quota/groupQuotas/{groupQuotaName}/resourceProviders/{resourceProviderName}/locationSettings/{location} + /// /providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Quota/groupQuotas/{groupQuotaName}/resourceProviders/{resourceProviderName}/groupQuotaLimits/{location} /// /// /// Operation Id - /// GroupQuotaLocationSettings_Get + /// GroupQuotaLimits_List /// /// /// Default Api Version - /// 2023-06-01-preview + /// 2024-12-12 /// /// /// Resource - /// + /// /// /// /// /// The cancellation token to use. - public virtual Response Get(CancellationToken cancellationToken = default) + public virtual Response Get(CancellationToken cancellationToken = default) { - using var scope = _groupQuotaEnforcementGroupQuotaLocationSettingsClientDiagnostics.CreateScope("GroupQuotaEnforcementResource.Get"); + using var scope = _groupQuotaLimitListGroupQuotaLimitsClientDiagnostics.CreateScope("GroupQuotaLimitListResource.Get"); scope.Start(); try { - var response = _groupQuotaEnforcementGroupQuotaLocationSettingsRestClient.Get(Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, new AzureLocation(Id.Name), cancellationToken); + var response = _groupQuotaLimitListGroupQuotaLimitsRestClient.List(Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, new AzureLocation(Id.Name), cancellationToken); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new GroupQuotaEnforcementResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new GroupQuotaLimitListResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -169,44 +174,41 @@ public virtual Response Get(CancellationToken can } /// - /// Enables the GroupQuotas enforcement for the resource provider and the location specified. The resource provider will start using the group quotas as the overall quota for the subscriptions included in the GroupQuota. The subscriptions cannot request quota at subscription level. - /// The subscriptions share the GroupQuotaLimits assigned to the GroupQuota. If the GroupQuotaLimits is used, then submit a groupQuotaLimit request for the specific resource - provider/location/resource. - /// Once the GroupQuota Enforcement is enabled then, it cannot be deleted or reverted back. To disable GroupQuota Enforcement - - /// 1. Remove all the subscriptions from the groupQuota using the delete API for Subscriptions (Check the example - GroupQuotaSubscriptions_Delete). - /// 2. Ten delete the GroupQuota (Check the example - GroupQuotas_Delete). + /// Create the GroupQuota requests for a specific ResourceProvider/Location/Resource. The resourceName properties are specified in the request body. Only 1 resource quota can be requested. Please note that patch request creates a new groupQuota request. + /// Use the polling API - OperationsStatus URI specified in Azure-AsyncOperation header field, with retry-after duration in seconds to check the intermediate status. This API provides the finals status with the request details and status. /// /// /// Request Path - /// /providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Quota/groupQuotas/{groupQuotaName}/resourceProviders/{resourceProviderName}/locationSettings/{location} + /// /providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Quota/groupQuotas/{groupQuotaName}/resourceProviders/{resourceProviderName}/groupQuotaLimits/{location} /// /// /// Operation Id - /// GroupQuotaLocationSettings_Update + /// GroupQuotaLimitsRequest_Update /// /// /// Default Api Version - /// 2023-06-01-preview + /// 2024-12-12 /// /// /// 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 GroupQuota body details for creation or update of a GroupQuota entity. + /// The GroupQuotaRequest body details for specific resourceProvider/location/resources. /// The cancellation token to use. /// is null. - public virtual async Task> UpdateAsync(WaitUntil waitUntil, GroupQuotaEnforcementData data, CancellationToken cancellationToken = default) + public virtual async Task> UpdateAsync(WaitUntil waitUntil, GroupQuotaLimitListData data, CancellationToken cancellationToken = default) { Argument.AssertNotNull(data, nameof(data)); - using var scope = _groupQuotaEnforcementGroupQuotaLocationSettingsClientDiagnostics.CreateScope("GroupQuotaEnforcementResource.Update"); + using var scope = _groupQuotaLimitListGroupQuotaLimitsRequestClientDiagnostics.CreateScope("GroupQuotaLimitListResource.Update"); scope.Start(); try { - var response = await _groupQuotaEnforcementGroupQuotaLocationSettingsRestClient.UpdateAsync(Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, new AzureLocation(Id.Name), data, cancellationToken).ConfigureAwait(false); - var operation = new QuotaArmOperation(new GroupQuotaEnforcementOperationSource(Client), _groupQuotaEnforcementGroupQuotaLocationSettingsClientDiagnostics, Pipeline, _groupQuotaEnforcementGroupQuotaLocationSettingsRestClient.CreateUpdateRequest(Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, new AzureLocation(Id.Name), data).Request, response, OperationFinalStateVia.Location); + var response = await _groupQuotaLimitListGroupQuotaLimitsRequestRestClient.UpdateAsync(Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, new AzureLocation(Id.Name), data, cancellationToken).ConfigureAwait(false); + var operation = new QuotaArmOperation(new GroupQuotaLimitListOperationSource(Client), _groupQuotaLimitListGroupQuotaLimitsRequestClientDiagnostics, Pipeline, _groupQuotaLimitListGroupQuotaLimitsRequestRestClient.CreateUpdateRequest(Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, new AzureLocation(Id.Name), data).Request, response, OperationFinalStateVia.Location); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -219,44 +221,41 @@ public virtual async Task> UpdateAsy } /// - /// Enables the GroupQuotas enforcement for the resource provider and the location specified. The resource provider will start using the group quotas as the overall quota for the subscriptions included in the GroupQuota. The subscriptions cannot request quota at subscription level. - /// The subscriptions share the GroupQuotaLimits assigned to the GroupQuota. If the GroupQuotaLimits is used, then submit a groupQuotaLimit request for the specific resource - provider/location/resource. - /// Once the GroupQuota Enforcement is enabled then, it cannot be deleted or reverted back. To disable GroupQuota Enforcement - - /// 1. Remove all the subscriptions from the groupQuota using the delete API for Subscriptions (Check the example - GroupQuotaSubscriptions_Delete). - /// 2. Ten delete the GroupQuota (Check the example - GroupQuotas_Delete). + /// Create the GroupQuota requests for a specific ResourceProvider/Location/Resource. The resourceName properties are specified in the request body. Only 1 resource quota can be requested. Please note that patch request creates a new groupQuota request. + /// Use the polling API - OperationsStatus URI specified in Azure-AsyncOperation header field, with retry-after duration in seconds to check the intermediate status. This API provides the finals status with the request details and status. /// /// /// Request Path - /// /providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Quota/groupQuotas/{groupQuotaName}/resourceProviders/{resourceProviderName}/locationSettings/{location} + /// /providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Quota/groupQuotas/{groupQuotaName}/resourceProviders/{resourceProviderName}/groupQuotaLimits/{location} /// /// /// Operation Id - /// GroupQuotaLocationSettings_Update + /// GroupQuotaLimitsRequest_Update /// /// /// Default Api Version - /// 2023-06-01-preview + /// 2024-12-12 /// /// /// 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 GroupQuota body details for creation or update of a GroupQuota entity. + /// The GroupQuotaRequest body details for specific resourceProvider/location/resources. /// The cancellation token to use. /// is null. - public virtual ArmOperation Update(WaitUntil waitUntil, GroupQuotaEnforcementData data, CancellationToken cancellationToken = default) + public virtual ArmOperation Update(WaitUntil waitUntil, GroupQuotaLimitListData data, CancellationToken cancellationToken = default) { Argument.AssertNotNull(data, nameof(data)); - using var scope = _groupQuotaEnforcementGroupQuotaLocationSettingsClientDiagnostics.CreateScope("GroupQuotaEnforcementResource.Update"); + using var scope = _groupQuotaLimitListGroupQuotaLimitsRequestClientDiagnostics.CreateScope("GroupQuotaLimitListResource.Update"); scope.Start(); try { - var response = _groupQuotaEnforcementGroupQuotaLocationSettingsRestClient.Update(Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, new AzureLocation(Id.Name), data, cancellationToken); - var operation = new QuotaArmOperation(new GroupQuotaEnforcementOperationSource(Client), _groupQuotaEnforcementGroupQuotaLocationSettingsClientDiagnostics, Pipeline, _groupQuotaEnforcementGroupQuotaLocationSettingsRestClient.CreateUpdateRequest(Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, new AzureLocation(Id.Name), data).Request, response, OperationFinalStateVia.Location); + var response = _groupQuotaLimitListGroupQuotaLimitsRequestRestClient.Update(Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, new AzureLocation(Id.Name), data, cancellationToken); + var operation = new QuotaArmOperation(new GroupQuotaLimitListOperationSource(Client), _groupQuotaLimitListGroupQuotaLimitsRequestClientDiagnostics, Pipeline, _groupQuotaLimitListGroupQuotaLimitsRequestRestClient.CreateUpdateRequest(Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, new AzureLocation(Id.Name), data).Request, response, OperationFinalStateVia.Location); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/quota/Azure.ResourceManager.Quota/src/Generated/GroupQuotaLimitResource.Serialization.cs b/sdk/quota/Azure.ResourceManager.Quota/src/Generated/GroupQuotaLimitResource.Serialization.cs deleted file mode 100644 index 31b8507ac794..000000000000 --- a/sdk/quota/Azure.ResourceManager.Quota/src/Generated/GroupQuotaLimitResource.Serialization.cs +++ /dev/null @@ -1,26 +0,0 @@ -// 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.Quota -{ - public partial class GroupQuotaLimitResource : IJsonModel - { - void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) => ((IJsonModel)Data).Write(writer, options); - - GroupQuotaLimitData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => ((IJsonModel)Data).Create(ref reader, options); - - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => ModelReaderWriter.Write(Data, options); - - GroupQuotaLimitData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => ModelReaderWriter.Read(data, options); - - string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => ((IPersistableModel)Data).GetFormatFromOptions(options); - } -} diff --git a/sdk/quota/Azure.ResourceManager.Quota/src/Generated/GroupQuotaLimitResource.cs b/sdk/quota/Azure.ResourceManager.Quota/src/Generated/GroupQuotaLimitResource.cs deleted file mode 100644 index 89e7edbe570b..000000000000 --- a/sdk/quota/Azure.ResourceManager.Quota/src/Generated/GroupQuotaLimitResource.cs +++ /dev/null @@ -1,193 +0,0 @@ -// 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.Quota -{ - /// - /// A Class representing a GroupQuotaLimit 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 GetGroupQuotaLimitResource method. - /// Otherwise you can get one from its parent resource using the GetGroupQuotaLimit method. - /// - public partial class GroupQuotaLimitResource : ArmResource - { - /// Generate the resource identifier of a instance. - /// The managementGroupId. - /// The groupQuotaName. - /// The resourceProviderName. - /// The resourceName. - public static ResourceIdentifier CreateResourceIdentifier(string managementGroupId, string groupQuotaName, string resourceProviderName, string resourceName) - { - var resourceId = $"/providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Quota/groupQuotas/{groupQuotaName}/resourceProviders/{resourceProviderName}/groupQuotaLimits/{resourceName}"; - return new ResourceIdentifier(resourceId); - } - - private readonly ClientDiagnostics _groupQuotaLimitClientDiagnostics; - private readonly GroupQuotaLimitsRestOperations _groupQuotaLimitRestClient; - private readonly GroupQuotaLimitData _data; - - /// Gets the resource type for the operations. - public static readonly ResourceType ResourceType = "Microsoft.Quota/groupQuotas/resourceProviders/groupQuotaLimits"; - - /// Initializes a new instance of the class for mocking. - protected GroupQuotaLimitResource() - { - } - - /// Initializes a new instance of the class. - /// The client parameters to use in these operations. - /// The resource that is the target of operations. - internal GroupQuotaLimitResource(ArmClient client, GroupQuotaLimitData 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 GroupQuotaLimitResource(ArmClient client, ResourceIdentifier id) : base(client, id) - { - _groupQuotaLimitClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Quota", ResourceType.Namespace, Diagnostics); - TryGetApiVersion(ResourceType, out string groupQuotaLimitApiVersion); - _groupQuotaLimitRestClient = new GroupQuotaLimitsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, groupQuotaLimitApiVersion); -#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 GroupQuotaLimitData 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 GroupQuotaLimits for the specific resource for a specific resource based on the resourceProviders, resourceName and $filter passed. - /// The $filter=location eq {location} is required to location specific resources groupQuota. - /// - /// - /// Request Path - /// /providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Quota/groupQuotas/{groupQuotaName}/resourceProviders/{resourceProviderName}/groupQuotaLimits/{resourceName} - /// - /// - /// Operation Id - /// GroupQuotaLimits_Get - /// - /// - /// Default Api Version - /// 2023-06-01-preview - /// - /// - /// Resource - /// - /// - /// - /// - /// - /// | Field | Supported operators - /// |---------------------|------------------------ - /// - /// location eq {location} - /// Example: $filter=location eq eastus - /// - /// The cancellation token to use. - /// is null. - public virtual async Task> GetAsync(string filter, CancellationToken cancellationToken = default) - { - Argument.AssertNotNull(filter, nameof(filter)); - - using var scope = _groupQuotaLimitClientDiagnostics.CreateScope("GroupQuotaLimitResource.Get"); - scope.Start(); - try - { - var response = await _groupQuotaLimitRestClient.GetAsync(Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, filter, cancellationToken).ConfigureAwait(false); - if (response.Value == null) - throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new GroupQuotaLimitResource(Client, response.Value), response.GetRawResponse()); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// Gets the GroupQuotaLimits for the specific resource for a specific resource based on the resourceProviders, resourceName and $filter passed. - /// The $filter=location eq {location} is required to location specific resources groupQuota. - /// - /// - /// Request Path - /// /providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/Microsoft.Quota/groupQuotas/{groupQuotaName}/resourceProviders/{resourceProviderName}/groupQuotaLimits/{resourceName} - /// - /// - /// Operation Id - /// GroupQuotaLimits_Get - /// - /// - /// Default Api Version - /// 2023-06-01-preview - /// - /// - /// Resource - /// - /// - /// - /// - /// - /// | Field | Supported operators - /// |---------------------|------------------------ - /// - /// location eq {location} - /// Example: $filter=location eq eastus - /// - /// The cancellation token to use. - /// is null. - public virtual Response Get(string filter, CancellationToken cancellationToken = default) - { - Argument.AssertNotNull(filter, nameof(filter)); - - using var scope = _groupQuotaLimitClientDiagnostics.CreateScope("GroupQuotaLimitResource.Get"); - scope.Start(); - try - { - var response = _groupQuotaLimitRestClient.Get(Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, filter, cancellationToken); - if (response.Value == null) - throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new GroupQuotaLimitResource(Client, response.Value), response.GetRawResponse()); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - } -} diff --git a/sdk/quota/Azure.ResourceManager.Quota/src/Generated/GroupQuotaRequestStatusCollection.cs b/sdk/quota/Azure.ResourceManager.Quota/src/Generated/GroupQuotaRequestStatusCollection.cs index 15390b808f9e..3bf4c7b5f055 100644 --- a/sdk/quota/Azure.ResourceManager.Quota/src/Generated/GroupQuotaRequestStatusCollection.cs +++ b/sdk/quota/Azure.ResourceManager.Quota/src/Generated/GroupQuotaRequestStatusCollection.cs @@ -61,7 +61,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-06-01-preview + /// 2024-12-12 /// /// /// Resource @@ -106,7 +106,7 @@ public virtual async Task> GetAsync(st /// /// /// Default Api Version - /// 2023-06-01-preview + /// 2024-12-12 /// /// /// Resource @@ -151,7 +151,7 @@ public virtual Response Get(string requestId, C /// /// /// Default Api Version - /// 2023-06-01-preview + /// 2024-12-12 /// /// /// Resource @@ -194,7 +194,7 @@ public virtual async Task> ExistsAsync(string requestId, Cancella /// /// /// Default Api Version - /// 2023-06-01-preview + /// 2024-12-12 /// /// /// Resource @@ -237,7 +237,7 @@ public virtual Response Exists(string requestId, CancellationToken cancell /// /// /// Default Api Version - /// 2023-06-01-preview + /// 2024-12-12 /// /// /// Resource @@ -282,7 +282,7 @@ public virtual async Task> Get /// /// /// Default Api Version - /// 2023-06-01-preview + /// 2024-12-12 /// /// /// Resource diff --git a/sdk/quota/Azure.ResourceManager.Quota/src/Generated/GroupQuotaRequestStatusResource.cs b/sdk/quota/Azure.ResourceManager.Quota/src/Generated/GroupQuotaRequestStatusResource.cs index e20bedcd2fbe..04a01be9f73b 100644 --- a/sdk/quota/Azure.ResourceManager.Quota/src/Generated/GroupQuotaRequestStatusResource.cs +++ b/sdk/quota/Azure.ResourceManager.Quota/src/Generated/GroupQuotaRequestStatusResource.cs @@ -100,7 +100,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-06-01-preview + /// 2024-12-12 /// /// /// Resource @@ -140,7 +140,7 @@ public virtual async Task> GetAsync(Ca /// /// /// Default Api Version - /// 2023-06-01-preview + /// 2024-12-12 /// /// /// Resource diff --git a/sdk/quota/Azure.ResourceManager.Quota/src/Generated/GroupQuotaSubscriptionCollection.cs b/sdk/quota/Azure.ResourceManager.Quota/src/Generated/GroupQuotaSubscriptionCollection.cs index 043a9110db67..7daef404927b 100644 --- a/sdk/quota/Azure.ResourceManager.Quota/src/Generated/GroupQuotaSubscriptionCollection.cs +++ b/sdk/quota/Azure.ResourceManager.Quota/src/Generated/GroupQuotaSubscriptionCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-06-01-preview + /// 2024-12-12 /// /// /// Resource @@ -111,7 +111,7 @@ public virtual async Task> CreateOr /// /// /// Default Api Version - /// 2023-06-01-preview + /// 2024-12-12 /// /// /// Resource @@ -158,7 +158,7 @@ public virtual ArmOperation CreateOrUpdate(WaitU /// /// /// Default Api Version - /// 2023-06-01-preview + /// 2024-12-12 /// /// /// Resource @@ -203,7 +203,7 @@ public virtual async Task> GetAsync(str /// /// /// Default Api Version - /// 2023-06-01-preview + /// 2024-12-12 /// /// /// Resource @@ -248,7 +248,7 @@ public virtual Response Get(string subscriptionI /// /// /// Default Api Version - /// 2023-06-01-preview + /// 2024-12-12 /// /// /// Resource @@ -278,7 +278,7 @@ public virtual AsyncPageable GetAllAsync(Cancell /// /// /// Default Api Version - /// 2023-06-01-preview + /// 2024-12-12 /// /// /// Resource @@ -308,7 +308,7 @@ public virtual Pageable GetAll(CancellationToken /// /// /// Default Api Version - /// 2023-06-01-preview + /// 2024-12-12 /// /// /// Resource @@ -351,7 +351,7 @@ public virtual async Task> ExistsAsync(string subscriptionId, Can /// /// /// Default Api Version - /// 2023-06-01-preview + /// 2024-12-12 /// /// /// Resource @@ -394,7 +394,7 @@ public virtual Response Exists(string subscriptionId, CancellationToken ca /// /// /// Default Api Version - /// 2023-06-01-preview + /// 2024-12-12 /// /// /// Resource @@ -439,7 +439,7 @@ public virtual async Task> GetI /// /// /// Default Api Version - /// 2023-06-01-preview + /// 2024-12-12 /// /// /// Resource diff --git a/sdk/quota/Azure.ResourceManager.Quota/src/Generated/GroupQuotaSubscriptionRequestStatusCollection.cs b/sdk/quota/Azure.ResourceManager.Quota/src/Generated/GroupQuotaSubscriptionRequestStatusCollection.cs index eb328e337407..22bf687c13a9 100644 --- a/sdk/quota/Azure.ResourceManager.Quota/src/Generated/GroupQuotaSubscriptionRequestStatusCollection.cs +++ b/sdk/quota/Azure.ResourceManager.Quota/src/Generated/GroupQuotaSubscriptionRequestStatusCollection.cs @@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-06-01-preview + /// 2024-12-12 /// /// /// Resource @@ -109,7 +109,7 @@ public virtual async Task> /// /// /// Default Api Version - /// 2023-06-01-preview + /// 2024-12-12 /// /// /// Resource @@ -154,7 +154,7 @@ public virtual Response Get(string /// /// /// Default Api Version - /// 2023-06-01-preview + /// 2024-12-12 /// /// /// Resource @@ -184,7 +184,7 @@ public virtual AsyncPageable GetAll /// /// /// Default Api Version - /// 2023-06-01-preview + /// 2024-12-12 /// /// /// Resource @@ -214,7 +214,7 @@ public virtual Pageable GetAll(Canc /// /// /// Default Api Version - /// 2023-06-01-preview + /// 2024-12-12 /// /// /// Resource @@ -257,7 +257,7 @@ public virtual async Task> ExistsAsync(string requestId, Cancella /// /// /// Default Api Version - /// 2023-06-01-preview + /// 2024-12-12 /// /// /// Resource @@ -300,7 +300,7 @@ public virtual Response Exists(string requestId, CancellationToken cancell /// /// /// Default Api Version - /// 2023-06-01-preview + /// 2024-12-12 /// /// /// Resource @@ -345,7 +345,7 @@ public virtual async Task /// /// Default Api Version - /// 2023-06-01-preview + /// 2024-12-12 /// /// /// Resource diff --git a/sdk/quota/Azure.ResourceManager.Quota/src/Generated/GroupQuotaSubscriptionRequestStatusResource.cs b/sdk/quota/Azure.ResourceManager.Quota/src/Generated/GroupQuotaSubscriptionRequestStatusResource.cs index 0922377d96cd..3f613a2bbc12 100644 --- a/sdk/quota/Azure.ResourceManager.Quota/src/Generated/GroupQuotaSubscriptionRequestStatusResource.cs +++ b/sdk/quota/Azure.ResourceManager.Quota/src/Generated/GroupQuotaSubscriptionRequestStatusResource.cs @@ -100,7 +100,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-06-01-preview + /// 2024-12-12 /// /// /// Resource @@ -140,7 +140,7 @@ public virtual async Task> /// /// /// Default Api Version - /// 2023-06-01-preview + /// 2024-12-12 /// /// /// Resource diff --git a/sdk/quota/Azure.ResourceManager.Quota/src/Generated/GroupQuotaSubscriptionResource.cs b/sdk/quota/Azure.ResourceManager.Quota/src/Generated/GroupQuotaSubscriptionResource.cs index d68074ac54ac..acef71264684 100644 --- a/sdk/quota/Azure.ResourceManager.Quota/src/Generated/GroupQuotaSubscriptionResource.cs +++ b/sdk/quota/Azure.ResourceManager.Quota/src/Generated/GroupQuotaSubscriptionResource.cs @@ -100,7 +100,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-06-01-preview + /// 2024-12-12 /// /// /// Resource @@ -140,7 +140,7 @@ public virtual async Task> GetAsync(Can /// /// /// Default Api Version - /// 2023-06-01-preview + /// 2024-12-12 /// /// /// Resource @@ -180,7 +180,7 @@ public virtual Response Get(CancellationToken ca /// /// /// Default Api Version - /// 2023-06-01-preview + /// 2024-12-12 /// /// /// Resource @@ -222,7 +222,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// /// /// Default Api Version - /// 2023-06-01-preview + /// 2024-12-12 /// /// /// Resource @@ -264,7 +264,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// /// /// Default Api Version - /// 2023-06-01-preview + /// 2024-12-12 /// /// /// Resource @@ -306,7 +306,7 @@ public virtual async Task> UpdateAs /// /// /// Default Api Version - /// 2023-06-01-preview + /// 2024-12-12 /// /// /// Resource diff --git a/sdk/quota/Azure.ResourceManager.Quota/src/Generated/LongRunningOperation/GroupQuotaEnforcementOperationSource.cs b/sdk/quota/Azure.ResourceManager.Quota/src/Generated/LongRunningOperation/GroupQuotaEnforcementOperationSource.cs deleted file mode 100644 index 458eb073a44a..000000000000 --- a/sdk/quota/Azure.ResourceManager.Quota/src/Generated/LongRunningOperation/GroupQuotaEnforcementOperationSource.cs +++ /dev/null @@ -1,38 +0,0 @@ -// 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.Quota -{ - internal class GroupQuotaEnforcementOperationSource : IOperationSource - { - private readonly ArmClient _client; - - internal GroupQuotaEnforcementOperationSource(ArmClient client) - { - _client = client; - } - - GroupQuotaEnforcementResource IOperationSource.CreateResult(Response response, CancellationToken cancellationToken) - { - using var document = JsonDocument.Parse(response.ContentStream); - var data = GroupQuotaEnforcementData.DeserializeGroupQuotaEnforcementData(document.RootElement); - return new GroupQuotaEnforcementResource(_client, data); - } - - async ValueTask IOperationSource.CreateResultAsync(Response response, CancellationToken cancellationToken) - { - using var document = await JsonDocument.ParseAsync(response.ContentStream, default, cancellationToken).ConfigureAwait(false); - var data = GroupQuotaEnforcementData.DeserializeGroupQuotaEnforcementData(document.RootElement); - return new GroupQuotaEnforcementResource(_client, data); - } - } -} diff --git a/sdk/quota/Azure.ResourceManager.Quota/src/Generated/LongRunningOperation/GroupQuotaLimitListOperationSource.cs b/sdk/quota/Azure.ResourceManager.Quota/src/Generated/LongRunningOperation/GroupQuotaLimitListOperationSource.cs new file mode 100644 index 000000000000..737de1b240ae --- /dev/null +++ b/sdk/quota/Azure.ResourceManager.Quota/src/Generated/LongRunningOperation/GroupQuotaLimitListOperationSource.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.Quota +{ + internal class GroupQuotaLimitListOperationSource : IOperationSource + { + private readonly ArmClient _client; + + internal GroupQuotaLimitListOperationSource(ArmClient client) + { + _client = client; + } + + GroupQuotaLimitListResource IOperationSource.CreateResult(Response response, CancellationToken cancellationToken) + { + using var document = JsonDocument.Parse(response.ContentStream); + var data = GroupQuotaLimitListData.DeserializeGroupQuotaLimitListData(document.RootElement); + return new GroupQuotaLimitListResource(_client, data); + } + + async ValueTask IOperationSource.CreateResultAsync(Response response, CancellationToken cancellationToken) + { + using var document = await JsonDocument.ParseAsync(response.ContentStream, default, cancellationToken).ConfigureAwait(false); + var data = GroupQuotaLimitListData.DeserializeGroupQuotaLimitListData(document.RootElement); + return new GroupQuotaLimitListResource(_client, data); + } + } +} diff --git a/sdk/quota/Azure.ResourceManager.Quota/src/Generated/LongRunningOperation/GroupQuotaRequestStatusOperationSource.cs b/sdk/quota/Azure.ResourceManager.Quota/src/Generated/LongRunningOperation/GroupQuotaRequestStatusOperationSource.cs deleted file mode 100644 index c9a38619cabe..000000000000 --- a/sdk/quota/Azure.ResourceManager.Quota/src/Generated/LongRunningOperation/GroupQuotaRequestStatusOperationSource.cs +++ /dev/null @@ -1,38 +0,0 @@ -// 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.Quota -{ - internal class GroupQuotaRequestStatusOperationSource : IOperationSource - { - private readonly ArmClient _client; - - internal GroupQuotaRequestStatusOperationSource(ArmClient client) - { - _client = client; - } - - GroupQuotaRequestStatusResource IOperationSource.CreateResult(Response response, CancellationToken cancellationToken) - { - using var document = JsonDocument.Parse(response.ContentStream); - var data = GroupQuotaRequestStatusData.DeserializeGroupQuotaRequestStatusData(document.RootElement); - return new GroupQuotaRequestStatusResource(_client, data); - } - - async ValueTask IOperationSource.CreateResultAsync(Response response, CancellationToken cancellationToken) - { - using var document = await JsonDocument.ParseAsync(response.ContentStream, default, cancellationToken).ConfigureAwait(false); - var data = GroupQuotaRequestStatusData.DeserializeGroupQuotaRequestStatusData(document.RootElement); - return new GroupQuotaRequestStatusResource(_client, data); - } - } -} diff --git a/sdk/quota/Azure.ResourceManager.Quota/src/Generated/LongRunningOperation/QuotaAllocationRequestStatusOperationSource.cs b/sdk/quota/Azure.ResourceManager.Quota/src/Generated/LongRunningOperation/QuotaAllocationRequestStatusOperationSource.cs deleted file mode 100644 index 95612e3f494d..000000000000 --- a/sdk/quota/Azure.ResourceManager.Quota/src/Generated/LongRunningOperation/QuotaAllocationRequestStatusOperationSource.cs +++ /dev/null @@ -1,38 +0,0 @@ -// 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.Quota -{ - internal class QuotaAllocationRequestStatusOperationSource : IOperationSource - { - private readonly ArmClient _client; - - internal QuotaAllocationRequestStatusOperationSource(ArmClient client) - { - _client = client; - } - - QuotaAllocationRequestStatusResource IOperationSource.CreateResult(Response response, CancellationToken cancellationToken) - { - using var document = JsonDocument.Parse(response.ContentStream); - var data = QuotaAllocationRequestStatusData.DeserializeQuotaAllocationRequestStatusData(document.RootElement); - return new QuotaAllocationRequestStatusResource(_client, data); - } - - async ValueTask IOperationSource.CreateResultAsync(Response response, CancellationToken cancellationToken) - { - using var document = await JsonDocument.ParseAsync(response.ContentStream, default, cancellationToken).ConfigureAwait(false); - var data = QuotaAllocationRequestStatusData.DeserializeQuotaAllocationRequestStatusData(document.RootElement); - return new QuotaAllocationRequestStatusResource(_client, data); - } - } -} diff --git a/sdk/quota/Azure.ResourceManager.Quota/src/Generated/LongRunningOperation/SubscriptionQuotaAllocationsListOperationSource.cs b/sdk/quota/Azure.ResourceManager.Quota/src/Generated/LongRunningOperation/SubscriptionQuotaAllocationsListOperationSource.cs new file mode 100644 index 000000000000..00b48950cfc8 --- /dev/null +++ b/sdk/quota/Azure.ResourceManager.Quota/src/Generated/LongRunningOperation/SubscriptionQuotaAllocationsListOperationSource.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.Quota +{ + internal class SubscriptionQuotaAllocationsListOperationSource : IOperationSource + { + private readonly ArmClient _client; + + internal SubscriptionQuotaAllocationsListOperationSource(ArmClient client) + { + _client = client; + } + + SubscriptionQuotaAllocationsListResource IOperationSource.CreateResult(Response response, CancellationToken cancellationToken) + { + using var document = JsonDocument.Parse(response.ContentStream); + var data = SubscriptionQuotaAllocationsListData.DeserializeSubscriptionQuotaAllocationsListData(document.RootElement); + return new SubscriptionQuotaAllocationsListResource(_client, data); + } + + async ValueTask IOperationSource.CreateResultAsync(Response response, CancellationToken cancellationToken) + { + using var document = await JsonDocument.ParseAsync(response.ContentStream, default, cancellationToken).ConfigureAwait(false); + var data = SubscriptionQuotaAllocationsListData.DeserializeSubscriptionQuotaAllocationsListData(document.RootElement); + return new SubscriptionQuotaAllocationsListResource(_client, data); + } + } +} diff --git a/sdk/quota/Azure.ResourceManager.Quota/src/Generated/Models/GroupQuotaAdditionalAttributes.cs b/sdk/quota/Azure.ResourceManager.Quota/src/Generated/Models/GroupQuotaAdditionalAttributes.cs deleted file mode 100644 index 092939c60635..000000000000 --- a/sdk/quota/Azure.ResourceManager.Quota/src/Generated/Models/GroupQuotaAdditionalAttributes.cs +++ /dev/null @@ -1,81 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Collections.Generic; - -namespace Azure.ResourceManager.Quota.Models -{ - /// Additional attribute or filter to allow subscriptions meeting the requirements to be part of the GroupQuota. - public partial class GroupQuotaAdditionalAttributes - { - /// - /// 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 grouping Id for the group quota. It can be Billing Id or ServiceTreeId if applicable. - /// is null. - public GroupQuotaAdditionalAttributes(GroupQuotaGroupingId groupId) - { - Argument.AssertNotNull(groupId, nameof(groupId)); - - GroupId = groupId; - } - - /// Initializes a new instance of . - /// The grouping Id for the group quota. It can be Billing Id or ServiceTreeId if applicable. - /// Environment name. - /// Keeps track of any properties unknown to the library. - internal GroupQuotaAdditionalAttributes(GroupQuotaGroupingId groupId, GroupQuotaEnvironmentType? environment, IDictionary serializedAdditionalRawData) - { - GroupId = groupId; - Environment = environment; - _serializedAdditionalRawData = serializedAdditionalRawData; - } - - /// Initializes a new instance of for deserialization. - internal GroupQuotaAdditionalAttributes() - { - } - - /// The grouping Id for the group quota. It can be Billing Id or ServiceTreeId if applicable. - [WirePath("groupId")] - public GroupQuotaGroupingId GroupId { get; set; } - /// Environment name. - [WirePath("environment")] - public GroupQuotaEnvironmentType? Environment { get; set; } - } -} diff --git a/sdk/quota/Azure.ResourceManager.Quota/src/Generated/Models/GroupQuotaAdditionalAttributesPatch.cs b/sdk/quota/Azure.ResourceManager.Quota/src/Generated/Models/GroupQuotaAdditionalAttributesPatch.cs deleted file mode 100644 index 9fc839829b8a..000000000000 --- a/sdk/quota/Azure.ResourceManager.Quota/src/Generated/Models/GroupQuotaAdditionalAttributesPatch.cs +++ /dev/null @@ -1,71 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Collections.Generic; - -namespace Azure.ResourceManager.Quota.Models -{ - /// Additional attribute or filter to allow subscriptions meeting the requirements to be part of the GroupQuota. - public partial class GroupQuotaAdditionalAttributesPatch - { - /// - /// 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 GroupQuotaAdditionalAttributesPatch() - { - } - - /// Initializes a new instance of . - /// The grouping Id for the group quota. It can be Billing Id or ServiceTreeId if applicable. - /// Environment name. - /// Keeps track of any properties unknown to the library. - internal GroupQuotaAdditionalAttributesPatch(GroupQuotaGroupingId groupId, GroupQuotaEnvironmentType? environment, IDictionary serializedAdditionalRawData) - { - GroupId = groupId; - Environment = environment; - _serializedAdditionalRawData = serializedAdditionalRawData; - } - - /// The grouping Id for the group quota. It can be Billing Id or ServiceTreeId if applicable. - [WirePath("groupId")] - public GroupQuotaGroupingId GroupId { get; set; } - /// Environment name. - [WirePath("environment")] - public GroupQuotaEnvironmentType? Environment { get; set; } - } -} diff --git a/sdk/quota/Azure.ResourceManager.Quota/src/Generated/Models/GroupQuotaDetails.Serialization.cs b/sdk/quota/Azure.ResourceManager.Quota/src/Generated/Models/GroupQuotaDetails.Serialization.cs index abe0d8f31a5a..2cbbae3cec77 100644 --- a/sdk/quota/Azure.ResourceManager.Quota/src/Generated/Models/GroupQuotaDetails.Serialization.cs +++ b/sdk/quota/Azure.ResourceManager.Quota/src/Generated/Models/GroupQuotaDetails.Serialization.cs @@ -35,10 +35,10 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit throw new FormatException($"The model {nameof(GroupQuotaDetails)} does not support writing '{format}' format."); } - if (Optional.IsDefined(Region)) + if (Optional.IsDefined(ResourceName)) { - writer.WritePropertyName("region"u8); - writer.WriteStringValue(Region); + writer.WritePropertyName("resourceName"u8); + writer.WriteStringValue(ResourceName); } if (Optional.IsDefined(Limit)) { @@ -115,7 +115,7 @@ internal static GroupQuotaDetails DeserializeGroupQuotaDetails(JsonElement eleme { return null; } - string region = default; + string resourceName = default; long? limit = default; string comment = default; string unit = default; @@ -127,9 +127,9 @@ internal static GroupQuotaDetails DeserializeGroupQuotaDetails(JsonElement eleme Dictionary rawDataDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) { - if (property.NameEquals("region"u8)) + if (property.NameEquals("resourceName"u8)) { - region = property.Value.GetString(); + resourceName = property.Value.GetString(); continue; } if (property.NameEquals("limit"u8)) @@ -198,7 +198,7 @@ internal static GroupQuotaDetails DeserializeGroupQuotaDetails(JsonElement eleme } serializedAdditionalRawData = rawDataDictionary; return new GroupQuotaDetails( - region, + resourceName, limit, comment, unit, @@ -220,25 +220,25 @@ private BinaryData SerializeBicep(ModelReaderWriterOptions options) builder.AppendLine("{"); - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(Region), out propertyOverride); + hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(ResourceName), out propertyOverride); if (hasPropertyOverride) { - builder.Append(" region: "); + builder.Append(" resourceName: "); builder.AppendLine(propertyOverride); } else { - if (Optional.IsDefined(Region)) + if (Optional.IsDefined(ResourceName)) { - builder.Append(" region: "); - if (Region.Contains(Environment.NewLine)) + builder.Append(" resourceName: "); + if (ResourceName.Contains(Environment.NewLine)) { builder.AppendLine("'''"); - builder.AppendLine($"{Region}'''"); + builder.AppendLine($"{ResourceName}'''"); } else { - builder.AppendLine($"'{Region}'"); + builder.AppendLine($"'{ResourceName}'"); } } } diff --git a/sdk/quota/Azure.ResourceManager.Quota/src/Generated/Models/GroupQuotaDetails.cs b/sdk/quota/Azure.ResourceManager.Quota/src/Generated/Models/GroupQuotaDetails.cs index fba6bf18d12f..ad9870a05c50 100644 --- a/sdk/quota/Azure.ResourceManager.Quota/src/Generated/Models/GroupQuotaDetails.cs +++ b/sdk/quota/Azure.ResourceManager.Quota/src/Generated/Models/GroupQuotaDetails.cs @@ -43,7 +43,7 @@ public partial class GroupQuotaDetails /// /// /// - private IDictionary _serializedAdditionalRawData; + private protected IDictionary _serializedAdditionalRawData; /// Initializes a new instance of . public GroupQuotaDetails() @@ -51,7 +51,7 @@ public GroupQuotaDetails() } /// Initializes a new instance of . - /// Location/Azure region for the quota requested for resource. + /// The resource name, such as SKU name. /// The current Group Quota Limit at the parentId level. /// Any comment related to quota request. /// The usages units, such as Count and Bytes. When requesting quota, use the **unit** value returned in the GET response in the request body of your PUT operation. @@ -60,9 +60,9 @@ public GroupQuotaDetails() /// Resource name. /// Resource display name. /// Keeps track of any properties unknown to the library. - internal GroupQuotaDetails(string region, long? limit, string comment, string unit, long? availableLimit, AllocatedQuotaToSubscriptionList allocatedToSubscriptions, string value, string localizedValue, IDictionary serializedAdditionalRawData) + internal GroupQuotaDetails(string resourceName, long? limit, string comment, string unit, long? availableLimit, AllocatedQuotaToSubscriptionList allocatedToSubscriptions, string value, string localizedValue, IDictionary serializedAdditionalRawData) { - Region = region; + ResourceName = resourceName; Limit = limit; Comment = comment; Unit = unit; @@ -73,9 +73,9 @@ internal GroupQuotaDetails(string region, long? limit, string comment, string un _serializedAdditionalRawData = serializedAdditionalRawData; } - /// Location/Azure region for the quota requested for resource. - [WirePath("region")] - public string Region { get; set; } + /// The resource name, such as SKU name. + [WirePath("resourceName")] + public string ResourceName { get; set; } /// The current Group Quota Limit at the parentId level. [WirePath("limit")] public long? Limit { get; set; } diff --git a/sdk/quota/Azure.ResourceManager.Quota/src/Generated/Models/GroupQuotaEnforcementProperties.Serialization.cs b/sdk/quota/Azure.ResourceManager.Quota/src/Generated/Models/GroupQuotaEnforcementProperties.Serialization.cs deleted file mode 100644 index 2dabb7332128..000000000000 --- a/sdk/quota/Azure.ResourceManager.Quota/src/Generated/Models/GroupQuotaEnforcementProperties.Serialization.cs +++ /dev/null @@ -1,230 +0,0 @@ -// 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; -using System.Text.Json; -using Azure.Core; - -namespace Azure.ResourceManager.Quota.Models -{ - public partial class GroupQuotaEnforcementProperties : 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(GroupQuotaEnforcementProperties)} does not support writing '{format}' format."); - } - - if (Optional.IsDefined(EnforcementEnabled)) - { - writer.WritePropertyName("enforcementEnabled"u8); - writer.WriteStringValue(EnforcementEnabled.Value.ToString()); - } - if (options.Format != "W" && Optional.IsDefined(ProvisioningState)) - { - writer.WritePropertyName("provisioningState"u8); - writer.WriteStringValue(ProvisioningState.Value.ToString()); - } - if (options.Format != "W" && Optional.IsDefined(FaultCode)) - { - writer.WritePropertyName("faultCode"u8); - writer.WriteStringValue(FaultCode); - } - 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 - } - } - } - - GroupQuotaEnforcementProperties 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(GroupQuotaEnforcementProperties)} does not support reading '{format}' format."); - } - - using JsonDocument document = JsonDocument.ParseValue(ref reader); - return DeserializeGroupQuotaEnforcementProperties(document.RootElement, options); - } - - internal static GroupQuotaEnforcementProperties DeserializeGroupQuotaEnforcementProperties(JsonElement element, ModelReaderWriterOptions options = null) - { - options ??= ModelSerializationExtensions.WireOptions; - - if (element.ValueKind == JsonValueKind.Null) - { - return null; - } - GroupQuotaEnforcementState? enforcementEnabled = default; - QuotaRequestStatus? provisioningState = default; - string faultCode = default; - IDictionary serializedAdditionalRawData = default; - Dictionary rawDataDictionary = new Dictionary(); - foreach (var property in element.EnumerateObject()) - { - if (property.NameEquals("enforcementEnabled"u8)) - { - if (property.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - enforcementEnabled = new GroupQuotaEnforcementState(property.Value.GetString()); - continue; - } - if (property.NameEquals("provisioningState"u8)) - { - if (property.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - provisioningState = new QuotaRequestStatus(property.Value.GetString()); - continue; - } - if (property.NameEquals("faultCode"u8)) - { - faultCode = property.Value.GetString(); - continue; - } - if (options.Format != "W") - { - rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); - } - } - serializedAdditionalRawData = rawDataDictionary; - return new GroupQuotaEnforcementProperties(enforcementEnabled, provisioningState, faultCode, serializedAdditionalRawData); - } - - private BinaryData SerializeBicep(ModelReaderWriterOptions options) - { - StringBuilder builder = new StringBuilder(); - BicepModelReaderWriterOptions bicepOptions = options as BicepModelReaderWriterOptions; - IDictionary propertyOverrides = null; - bool hasObjectOverride = bicepOptions != null && bicepOptions.PropertyOverrides.TryGetValue(this, out propertyOverrides); - bool hasPropertyOverride = false; - string propertyOverride = null; - - builder.AppendLine("{"); - - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(EnforcementEnabled), out propertyOverride); - if (hasPropertyOverride) - { - builder.Append(" enforcementEnabled: "); - builder.AppendLine(propertyOverride); - } - else - { - if (Optional.IsDefined(EnforcementEnabled)) - { - builder.Append(" enforcementEnabled: "); - builder.AppendLine($"'{EnforcementEnabled.Value.ToString()}'"); - } - } - - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(ProvisioningState), out propertyOverride); - if (hasPropertyOverride) - { - builder.Append(" provisioningState: "); - builder.AppendLine(propertyOverride); - } - else - { - if (Optional.IsDefined(ProvisioningState)) - { - builder.Append(" provisioningState: "); - builder.AppendLine($"'{ProvisioningState.Value.ToString()}'"); - } - } - - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(FaultCode), out propertyOverride); - if (hasPropertyOverride) - { - builder.Append(" faultCode: "); - builder.AppendLine(propertyOverride); - } - else - { - if (Optional.IsDefined(FaultCode)) - { - builder.Append(" faultCode: "); - if (FaultCode.Contains(Environment.NewLine)) - { - builder.AppendLine("'''"); - builder.AppendLine($"{FaultCode}'''"); - } - else - { - builder.AppendLine($"'{FaultCode}'"); - } - } - } - - builder.AppendLine("}"); - return BinaryData.FromString(builder.ToString()); - } - - 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); - case "bicep": - return SerializeBicep(options); - default: - throw new FormatException($"The model {nameof(GroupQuotaEnforcementProperties)} does not support writing '{options.Format}' format."); - } - } - - GroupQuotaEnforcementProperties 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 DeserializeGroupQuotaEnforcementProperties(document.RootElement, options); - } - default: - throw new FormatException($"The model {nameof(GroupQuotaEnforcementProperties)} does not support reading '{options.Format}' format."); - } - } - - string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; - } -} diff --git a/sdk/quota/Azure.ResourceManager.Quota/src/Generated/Models/GroupQuotaEnforcementProperties.cs b/sdk/quota/Azure.ResourceManager.Quota/src/Generated/Models/GroupQuotaEnforcementProperties.cs deleted file mode 100644 index 662f26fa8a42..000000000000 --- a/sdk/quota/Azure.ResourceManager.Quota/src/Generated/Models/GroupQuotaEnforcementProperties.cs +++ /dev/null @@ -1,76 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Collections.Generic; - -namespace Azure.ResourceManager.Quota.Models -{ - /// The GroupQuotaEnforcementProperties. - public partial class GroupQuotaEnforcementProperties - { - /// - /// 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 GroupQuotaEnforcementProperties() - { - } - - /// Initializes a new instance of . - /// Is the GroupQuota Enforcement enabled for the Azure region. - /// Request status. - /// Details of the failure. - /// Keeps track of any properties unknown to the library. - internal GroupQuotaEnforcementProperties(GroupQuotaEnforcementState? enforcementEnabled, QuotaRequestStatus? provisioningState, string faultCode, IDictionary serializedAdditionalRawData) - { - EnforcementEnabled = enforcementEnabled; - ProvisioningState = provisioningState; - FaultCode = faultCode; - _serializedAdditionalRawData = serializedAdditionalRawData; - } - - /// Is the GroupQuota Enforcement enabled for the Azure region. - [WirePath("enforcementEnabled")] - public GroupQuotaEnforcementState? EnforcementEnabled { get; set; } - /// Request status. - [WirePath("provisioningState")] - public QuotaRequestStatus? ProvisioningState { get; } - /// Details of the failure. - [WirePath("faultCode")] - public string FaultCode { get; } - } -} diff --git a/sdk/quota/Azure.ResourceManager.Quota/src/Generated/Models/GroupQuotaEnforcementState.cs b/sdk/quota/Azure.ResourceManager.Quota/src/Generated/Models/GroupQuotaEnforcementState.cs deleted file mode 100644 index e56de507f3dc..000000000000 --- a/sdk/quota/Azure.ResourceManager.Quota/src/Generated/Models/GroupQuotaEnforcementState.cs +++ /dev/null @@ -1,54 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ComponentModel; - -namespace Azure.ResourceManager.Quota.Models -{ - /// Enforcement status. - public readonly partial struct GroupQuotaEnforcementState : IEquatable - { - private readonly string _value; - - /// Initializes a new instance of . - /// is null. - public GroupQuotaEnforcementState(string value) - { - _value = value ?? throw new ArgumentNullException(nameof(value)); - } - - private const string EnabledValue = "Enabled"; - private const string DisabledValue = "Disabled"; - private const string NotAvailableValue = "NotAvailable"; - - /// Enabled. - public static GroupQuotaEnforcementState Enabled { get; } = new GroupQuotaEnforcementState(EnabledValue); - /// Disabled. - public static GroupQuotaEnforcementState Disabled { get; } = new GroupQuotaEnforcementState(DisabledValue); - /// NotAvailable. - public static GroupQuotaEnforcementState NotAvailable { get; } = new GroupQuotaEnforcementState(NotAvailableValue); - /// Determines if two values are the same. - public static bool operator ==(GroupQuotaEnforcementState left, GroupQuotaEnforcementState right) => left.Equals(right); - /// Determines if two values are not the same. - public static bool operator !=(GroupQuotaEnforcementState left, GroupQuotaEnforcementState right) => !left.Equals(right); - /// Converts a to a . - public static implicit operator GroupQuotaEnforcementState(string value) => new GroupQuotaEnforcementState(value); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override bool Equals(object obj) => obj is GroupQuotaEnforcementState other && Equals(other); - /// - public bool Equals(GroupQuotaEnforcementState 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/quota/Azure.ResourceManager.Quota/src/Generated/Models/GroupQuotaEntityBase.Serialization.cs b/sdk/quota/Azure.ResourceManager.Quota/src/Generated/Models/GroupQuotaEntityBase.Serialization.cs index f4d9098ee5bd..81f92935c81f 100644 --- a/sdk/quota/Azure.ResourceManager.Quota/src/Generated/Models/GroupQuotaEntityBase.Serialization.cs +++ b/sdk/quota/Azure.ResourceManager.Quota/src/Generated/Models/GroupQuotaEntityBase.Serialization.cs @@ -40,11 +40,6 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit writer.WritePropertyName("displayName"u8); writer.WriteStringValue(DisplayName); } - if (Optional.IsDefined(AdditionalAttributes)) - { - writer.WritePropertyName("additionalAttributes"u8); - writer.WriteObjectValue(AdditionalAttributes, options); - } if (options.Format != "W" && Optional.IsDefined(ProvisioningState)) { writer.WritePropertyName("provisioningState"u8); @@ -88,7 +83,6 @@ internal static GroupQuotaEntityBase DeserializeGroupQuotaEntityBase(JsonElement return null; } string displayName = default; - GroupQuotaAdditionalAttributes additionalAttributes = default; QuotaRequestStatus? provisioningState = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); @@ -99,15 +93,6 @@ internal static GroupQuotaEntityBase DeserializeGroupQuotaEntityBase(JsonElement displayName = property.Value.GetString(); continue; } - if (property.NameEquals("additionalAttributes"u8)) - { - if (property.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - additionalAttributes = GroupQuotaAdditionalAttributes.DeserializeGroupQuotaAdditionalAttributes(property.Value, options); - continue; - } if (property.NameEquals("provisioningState"u8)) { if (property.Value.ValueKind == JsonValueKind.Null) @@ -123,7 +108,7 @@ internal static GroupQuotaEntityBase DeserializeGroupQuotaEntityBase(JsonElement } } serializedAdditionalRawData = rawDataDictionary; - return new GroupQuotaEntityBase(displayName, additionalAttributes, provisioningState, serializedAdditionalRawData); + return new GroupQuotaEntityBase(displayName, provisioningState, serializedAdditionalRawData); } private BinaryData SerializeBicep(ModelReaderWriterOptions options) @@ -160,21 +145,6 @@ private BinaryData SerializeBicep(ModelReaderWriterOptions options) } } - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(AdditionalAttributes), out propertyOverride); - if (hasPropertyOverride) - { - builder.Append(" additionalAttributes: "); - builder.AppendLine(propertyOverride); - } - else - { - if (Optional.IsDefined(AdditionalAttributes)) - { - builder.Append(" additionalAttributes: "); - BicepSerializationHelpers.AppendChildObject(builder, AdditionalAttributes, options, 2, false, " additionalAttributes: "); - } - } - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(ProvisioningState), out propertyOverride); if (hasPropertyOverride) { diff --git a/sdk/quota/Azure.ResourceManager.Quota/src/Generated/Models/GroupQuotaEntityBase.cs b/sdk/quota/Azure.ResourceManager.Quota/src/Generated/Models/GroupQuotaEntityBase.cs index c4dff68aca18..32440c3c64e6 100644 --- a/sdk/quota/Azure.ResourceManager.Quota/src/Generated/Models/GroupQuotaEntityBase.cs +++ b/sdk/quota/Azure.ResourceManager.Quota/src/Generated/Models/GroupQuotaEntityBase.cs @@ -43,7 +43,7 @@ public partial class GroupQuotaEntityBase /// /// /// - private IDictionary _serializedAdditionalRawData; + private protected IDictionary _serializedAdditionalRawData; /// Initializes a new instance of . public GroupQuotaEntityBase() @@ -52,13 +52,11 @@ public GroupQuotaEntityBase() /// Initializes a new instance of . /// Display name of the GroupQuota entity. - /// Additional attributes to filter/restrict the subscriptions, which can be added to the subscriptionIds. /// Provisioning state of the operation. /// Keeps track of any properties unknown to the library. - internal GroupQuotaEntityBase(string displayName, GroupQuotaAdditionalAttributes additionalAttributes, QuotaRequestStatus? provisioningState, IDictionary serializedAdditionalRawData) + internal GroupQuotaEntityBase(string displayName, QuotaRequestStatus? provisioningState, IDictionary serializedAdditionalRawData) { DisplayName = displayName; - AdditionalAttributes = additionalAttributes; ProvisioningState = provisioningState; _serializedAdditionalRawData = serializedAdditionalRawData; } @@ -66,9 +64,6 @@ internal GroupQuotaEntityBase(string displayName, GroupQuotaAdditionalAttributes /// Display name of the GroupQuota entity. [WirePath("displayName")] public string DisplayName { get; set; } - /// Additional attributes to filter/restrict the subscriptions, which can be added to the subscriptionIds. - [WirePath("additionalAttributes")] - public GroupQuotaAdditionalAttributes AdditionalAttributes { get; set; } /// Provisioning state of the operation. [WirePath("provisioningState")] public QuotaRequestStatus? ProvisioningState { get; } diff --git a/sdk/quota/Azure.ResourceManager.Quota/src/Generated/Models/GroupQuotaEntityPatch.Serialization.cs b/sdk/quota/Azure.ResourceManager.Quota/src/Generated/Models/GroupQuotaEntityPatch.Serialization.cs index 58437b6bbd22..04ec8fb16bfa 100644 --- a/sdk/quota/Azure.ResourceManager.Quota/src/Generated/Models/GroupQuotaEntityPatch.Serialization.cs +++ b/sdk/quota/Azure.ResourceManager.Quota/src/Generated/Models/GroupQuotaEntityPatch.Serialization.cs @@ -64,7 +64,7 @@ internal static GroupQuotaEntityPatch DeserializeGroupQuotaEntityPatch(JsonEleme { return null; } - GroupQuotasEntityBasePatch properties = default; + GroupQuotasEntityPatchProperties properties = default; ResourceIdentifier id = default; string name = default; ResourceType type = default; @@ -79,7 +79,7 @@ internal static GroupQuotaEntityPatch DeserializeGroupQuotaEntityPatch(JsonEleme { continue; } - properties = GroupQuotasEntityBasePatch.DeserializeGroupQuotasEntityBasePatch(property.Value, options); + properties = GroupQuotasEntityPatchProperties.DeserializeGroupQuotasEntityPatchProperties(property.Value, options); continue; } if (property.NameEquals("id"u8)) diff --git a/sdk/quota/Azure.ResourceManager.Quota/src/Generated/Models/GroupQuotaEntityPatch.cs b/sdk/quota/Azure.ResourceManager.Quota/src/Generated/Models/GroupQuotaEntityPatch.cs index d221078a2297..3bbbdbd5c65f 100644 --- a/sdk/quota/Azure.ResourceManager.Quota/src/Generated/Models/GroupQuotaEntityPatch.cs +++ b/sdk/quota/Azure.ResourceManager.Quota/src/Generated/Models/GroupQuotaEntityPatch.cs @@ -57,16 +57,16 @@ public GroupQuotaEntityPatch() /// The name. /// The resourceType. /// The systemData. - /// Properties and filters for ShareQuota. The request parameter is optional, if there are no filters specified. + /// Properties. /// Keeps track of any properties unknown to the library. - internal GroupQuotaEntityPatch(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, GroupQuotasEntityBasePatch properties, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData) + internal GroupQuotaEntityPatch(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, GroupQuotasEntityPatchProperties properties, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData) { Properties = properties; _serializedAdditionalRawData = serializedAdditionalRawData; } - /// Properties and filters for ShareQuota. The request parameter is optional, if there are no filters specified. + /// Properties. [WirePath("properties")] - public GroupQuotasEntityBasePatch Properties { get; set; } + public GroupQuotasEntityPatchProperties Properties { get; set; } } } diff --git a/sdk/quota/Azure.ResourceManager.Quota/src/Generated/Models/GroupQuotaEnvironmentType.cs b/sdk/quota/Azure.ResourceManager.Quota/src/Generated/Models/GroupQuotaEnvironmentType.cs deleted file mode 100644 index 9348cde76cec..000000000000 --- a/sdk/quota/Azure.ResourceManager.Quota/src/Generated/Models/GroupQuotaEnvironmentType.cs +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ComponentModel; - -namespace Azure.ResourceManager.Quota.Models -{ - /// Environment name. - public readonly partial struct GroupQuotaEnvironmentType : IEquatable - { - private readonly string _value; - - /// Initializes a new instance of . - /// is null. - public GroupQuotaEnvironmentType(string value) - { - _value = value ?? throw new ArgumentNullException(nameof(value)); - } - - private const string NonProductionValue = "NonProduction"; - private const string ProductionValue = "Production"; - - /// NonProduction. - public static GroupQuotaEnvironmentType NonProduction { get; } = new GroupQuotaEnvironmentType(NonProductionValue); - /// Production. - public static GroupQuotaEnvironmentType Production { get; } = new GroupQuotaEnvironmentType(ProductionValue); - /// Determines if two values are the same. - public static bool operator ==(GroupQuotaEnvironmentType left, GroupQuotaEnvironmentType right) => left.Equals(right); - /// Determines if two values are not the same. - public static bool operator !=(GroupQuotaEnvironmentType left, GroupQuotaEnvironmentType right) => !left.Equals(right); - /// Converts a to a . - public static implicit operator GroupQuotaEnvironmentType(string value) => new GroupQuotaEnvironmentType(value); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override bool Equals(object obj) => obj is GroupQuotaEnvironmentType other && Equals(other); - /// - public bool Equals(GroupQuotaEnvironmentType 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/quota/Azure.ResourceManager.Quota/src/Generated/Models/GroupQuotaGroupingId.cs b/sdk/quota/Azure.ResourceManager.Quota/src/Generated/Models/GroupQuotaGroupingId.cs deleted file mode 100644 index 350d617e5f65..000000000000 --- a/sdk/quota/Azure.ResourceManager.Quota/src/Generated/Models/GroupQuotaGroupingId.cs +++ /dev/null @@ -1,71 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Collections.Generic; - -namespace Azure.ResourceManager.Quota.Models -{ - /// The grouping Id for the group quota. It can be Billing Id or ServiceTreeId if applicable. - public partial class GroupQuotaGroupingId - { - /// - /// 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 GroupQuotaGroupingId() - { - } - - /// Initializes a new instance of . - /// GroupingId type. It is a required property. More types of groupIds can be supported in future. - /// GroupId value based on the groupingType selected - Billing Id or ServiceTreeId. - /// Keeps track of any properties unknown to the library. - internal GroupQuotaGroupingId(GroupQuotaGroupingIdType? groupingIdType, string value, IDictionary serializedAdditionalRawData) - { - GroupingIdType = groupingIdType; - Value = value; - _serializedAdditionalRawData = serializedAdditionalRawData; - } - - /// GroupingId type. It is a required property. More types of groupIds can be supported in future. - [WirePath("groupingIdType")] - public GroupQuotaGroupingIdType? GroupingIdType { get; set; } - /// GroupId value based on the groupingType selected - Billing Id or ServiceTreeId. - [WirePath("value")] - public string Value { get; set; } - } -} diff --git a/sdk/quota/Azure.ResourceManager.Quota/src/Generated/Models/GroupQuotaGroupingIdType.cs b/sdk/quota/Azure.ResourceManager.Quota/src/Generated/Models/GroupQuotaGroupingIdType.cs deleted file mode 100644 index 37ea55bf5a01..000000000000 --- a/sdk/quota/Azure.ResourceManager.Quota/src/Generated/Models/GroupQuotaGroupingIdType.cs +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ComponentModel; - -namespace Azure.ResourceManager.Quota.Models -{ - /// GroupingId type. It is a required property. More types of groupIds can be supported in future. - public readonly partial struct GroupQuotaGroupingIdType : IEquatable - { - private readonly string _value; - - /// Initializes a new instance of . - /// is null. - public GroupQuotaGroupingIdType(string value) - { - _value = value ?? throw new ArgumentNullException(nameof(value)); - } - - private const string ServiceTreeIdValue = "ServiceTreeId"; - private const string BillingIdValue = "BillingId"; - - /// ServiceTreeId. - public static GroupQuotaGroupingIdType ServiceTreeId { get; } = new GroupQuotaGroupingIdType(ServiceTreeIdValue); - /// BillingId. - public static GroupQuotaGroupingIdType BillingId { get; } = new GroupQuotaGroupingIdType(BillingIdValue); - /// Determines if two values are the same. - public static bool operator ==(GroupQuotaGroupingIdType left, GroupQuotaGroupingIdType right) => left.Equals(right); - /// Determines if two values are not the same. - public static bool operator !=(GroupQuotaGroupingIdType left, GroupQuotaGroupingIdType right) => !left.Equals(right); - /// Converts a to a . - public static implicit operator GroupQuotaGroupingIdType(string value) => new GroupQuotaGroupingIdType(value); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override bool Equals(object obj) => obj is GroupQuotaGroupingIdType other && Equals(other); - /// - public bool Equals(GroupQuotaGroupingIdType 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/quota/Azure.ResourceManager.Quota/src/Generated/Models/GroupQuotaAdditionalAttributes.Serialization.cs b/sdk/quota/Azure.ResourceManager.Quota/src/Generated/Models/GroupQuotaLimit.Serialization.cs similarity index 55% rename from sdk/quota/Azure.ResourceManager.Quota/src/Generated/Models/GroupQuotaAdditionalAttributes.Serialization.cs rename to sdk/quota/Azure.ResourceManager.Quota/src/Generated/Models/GroupQuotaLimit.Serialization.cs index 3d8cca2b1d21..185e8ee69442 100644 --- a/sdk/quota/Azure.ResourceManager.Quota/src/Generated/Models/GroupQuotaAdditionalAttributes.Serialization.cs +++ b/sdk/quota/Azure.ResourceManager.Quota/src/Generated/Models/GroupQuotaLimit.Serialization.cs @@ -14,11 +14,11 @@ namespace Azure.ResourceManager.Quota.Models { - public partial class GroupQuotaAdditionalAttributes : IUtf8JsonSerializable, IJsonModel + public partial class GroupQuotaLimit : IUtf8JsonSerializable, IJsonModel { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); - void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) { writer.WriteStartObject(); JsonModelWriteCore(writer, options); @@ -29,18 +29,16 @@ void IJsonModel.Write(Utf8JsonWriter writer, Mod /// 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; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { - throw new FormatException($"The model {nameof(GroupQuotaAdditionalAttributes)} does not support writing '{format}' format."); + throw new FormatException($"The model {nameof(GroupQuotaLimit)} does not support writing '{format}' format."); } - writer.WritePropertyName("groupId"u8); - writer.WriteObjectValue(GroupId, options); - if (Optional.IsDefined(Environment)) + if (Optional.IsDefined(Properties)) { - writer.WritePropertyName("environment"u8); - writer.WriteStringValue(Environment.Value.ToString()); + writer.WritePropertyName("properties"u8); + writer.WriteObjectValue(Properties, options); } if (options.Format != "W" && _serializedAdditionalRawData != null) { @@ -59,19 +57,19 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit } } - GroupQuotaAdditionalAttributes IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + GroupQuotaLimit IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { - throw new FormatException($"The model {nameof(GroupQuotaAdditionalAttributes)} does not support reading '{format}' format."); + throw new FormatException($"The model {nameof(GroupQuotaLimit)} does not support reading '{format}' format."); } using JsonDocument document = JsonDocument.ParseValue(ref reader); - return DeserializeGroupQuotaAdditionalAttributes(document.RootElement, options); + return DeserializeGroupQuotaLimit(document.RootElement, options); } - internal static GroupQuotaAdditionalAttributes DeserializeGroupQuotaAdditionalAttributes(JsonElement element, ModelReaderWriterOptions options = null) + internal static GroupQuotaLimit DeserializeGroupQuotaLimit(JsonElement element, ModelReaderWriterOptions options = null) { options ??= ModelSerializationExtensions.WireOptions; @@ -79,24 +77,18 @@ internal static GroupQuotaAdditionalAttributes DeserializeGroupQuotaAdditionalAt { return null; } - GroupQuotaGroupingId groupId = default; - GroupQuotaEnvironmentType? environment = default; + GroupQuotaLimitProperties properties = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) { - if (property.NameEquals("groupId"u8)) - { - groupId = GroupQuotaGroupingId.DeserializeGroupQuotaGroupingId(property.Value, options); - continue; - } - if (property.NameEquals("environment"u8)) + if (property.NameEquals("properties"u8)) { if (property.Value.ValueKind == JsonValueKind.Null) { continue; } - environment = new GroupQuotaEnvironmentType(property.Value.GetString()); + properties = GroupQuotaLimitProperties.DeserializeGroupQuotaLimitProperties(property.Value, options); continue; } if (options.Format != "W") @@ -105,7 +97,7 @@ internal static GroupQuotaAdditionalAttributes DeserializeGroupQuotaAdditionalAt } } serializedAdditionalRawData = rawDataDictionary; - return new GroupQuotaAdditionalAttributes(groupId, environment, serializedAdditionalRawData); + return new GroupQuotaLimit(properties, serializedAdditionalRawData); } private BinaryData SerializeBicep(ModelReaderWriterOptions options) @@ -119,33 +111,18 @@ private BinaryData SerializeBicep(ModelReaderWriterOptions options) builder.AppendLine("{"); - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(GroupId), out propertyOverride); - if (hasPropertyOverride) - { - builder.Append(" groupId: "); - builder.AppendLine(propertyOverride); - } - else - { - if (Optional.IsDefined(GroupId)) - { - builder.Append(" groupId: "); - BicepSerializationHelpers.AppendChildObject(builder, GroupId, options, 2, false, " groupId: "); - } - } - - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(Environment), out propertyOverride); + hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(Properties), out propertyOverride); if (hasPropertyOverride) { - builder.Append(" environment: "); + builder.Append(" properties: "); builder.AppendLine(propertyOverride); } else { - if (Optional.IsDefined(Environment)) + if (Optional.IsDefined(Properties)) { - builder.Append(" environment: "); - builder.AppendLine($"'{Environment.Value.ToString()}'"); + builder.Append(" properties: "); + BicepSerializationHelpers.AppendChildObject(builder, Properties, options, 2, false, " properties: "); } } @@ -153,9 +130,9 @@ private BinaryData SerializeBicep(ModelReaderWriterOptions options) return BinaryData.FromString(builder.ToString()); } - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { @@ -164,26 +141,26 @@ BinaryData IPersistableModel.Write(ModelReaderWr case "bicep": return SerializeBicep(options); default: - throw new FormatException($"The model {nameof(GroupQuotaAdditionalAttributes)} does not support writing '{options.Format}' format."); + throw new FormatException($"The model {nameof(GroupQuotaLimit)} does not support writing '{options.Format}' format."); } } - GroupQuotaAdditionalAttributes IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + GroupQuotaLimit IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": { using JsonDocument document = JsonDocument.Parse(data); - return DeserializeGroupQuotaAdditionalAttributes(document.RootElement, options); + return DeserializeGroupQuotaLimit(document.RootElement, options); } default: - throw new FormatException($"The model {nameof(GroupQuotaAdditionalAttributes)} does not support reading '{options.Format}' format."); + throw new FormatException($"The model {nameof(GroupQuotaLimit)} does not support reading '{options.Format}' format."); } } - string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; } } diff --git a/sdk/quota/Azure.ResourceManager.Quota/src/Generated/Models/GroupQuotaResourceUsages.cs b/sdk/quota/Azure.ResourceManager.Quota/src/Generated/Models/GroupQuotaLimit.cs similarity index 66% rename from sdk/quota/Azure.ResourceManager.Quota/src/Generated/Models/GroupQuotaResourceUsages.cs rename to sdk/quota/Azure.ResourceManager.Quota/src/Generated/Models/GroupQuotaLimit.cs index 82ecaac0f9b0..178c38411190 100644 --- a/sdk/quota/Azure.ResourceManager.Quota/src/Generated/Models/GroupQuotaResourceUsages.cs +++ b/sdk/quota/Azure.ResourceManager.Quota/src/Generated/Models/GroupQuotaLimit.cs @@ -7,13 +7,11 @@ using System; using System.Collections.Generic; -using Azure.Core; -using Azure.ResourceManager.Models; namespace Azure.ResourceManager.Quota.Models { - /// Resource details with usages and GroupQuota. - public partial class GroupQuotaResourceUsages : ResourceData + /// Group Quota limit. + public partial class GroupQuotaLimit { /// /// Keeps track of any properties unknown to the library. @@ -47,26 +45,22 @@ public partial class GroupQuotaResourceUsages : ResourceData /// private IDictionary _serializedAdditionalRawData; - /// Initializes a new instance of . - public GroupQuotaResourceUsages() + /// Initializes a new instance of . + public GroupQuotaLimit() { } - /// Initializes a new instance of . - /// The id. - /// The name. - /// The resourceType. - /// The systemData. - /// Resource details with usages and GroupQuota. + /// Initializes a new instance of . + /// Group Quota properties for the specified resource. /// Keeps track of any properties unknown to the library. - internal GroupQuotaResourceUsages(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, GroupQuotaUsagesBase properties, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData) + internal GroupQuotaLimit(GroupQuotaLimitProperties properties, IDictionary serializedAdditionalRawData) { Properties = properties; _serializedAdditionalRawData = serializedAdditionalRawData; } - /// Resource details with usages and GroupQuota. + /// Group Quota properties for the specified resource. [WirePath("properties")] - public GroupQuotaUsagesBase Properties { get; set; } + public GroupQuotaLimitProperties Properties { get; set; } } } diff --git a/sdk/quota/Azure.ResourceManager.Quota/src/Generated/Models/GroupQuotaLimitList.Serialization.cs b/sdk/quota/Azure.ResourceManager.Quota/src/Generated/Models/GroupQuotaLimitListProperties.Serialization.cs similarity index 66% rename from sdk/quota/Azure.ResourceManager.Quota/src/Generated/Models/GroupQuotaLimitList.Serialization.cs rename to sdk/quota/Azure.ResourceManager.Quota/src/Generated/Models/GroupQuotaLimitListProperties.Serialization.cs index 2b4c475ca102..17c9597315b7 100644 --- a/sdk/quota/Azure.ResourceManager.Quota/src/Generated/Models/GroupQuotaLimitList.Serialization.cs +++ b/sdk/quota/Azure.ResourceManager.Quota/src/Generated/Models/GroupQuotaLimitListProperties.Serialization.cs @@ -15,11 +15,11 @@ namespace Azure.ResourceManager.Quota.Models { - internal partial class GroupQuotaLimitList : IUtf8JsonSerializable, IJsonModel + public partial class GroupQuotaLimitListProperties : IUtf8JsonSerializable, IJsonModel { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); - void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) { writer.WriteStartObject(); JsonModelWriteCore(writer, options); @@ -30,12 +30,17 @@ void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWri /// 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; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { - throw new FormatException($"The model {nameof(GroupQuotaLimitList)} does not support writing '{format}' format."); + throw new FormatException($"The model {nameof(GroupQuotaLimitListProperties)} does not support writing '{format}' format."); } + if (options.Format != "W" && Optional.IsDefined(ProvisioningState)) + { + writer.WritePropertyName("provisioningState"u8); + writer.WriteStringValue(ProvisioningState.Value.ToString()); + } if (Optional.IsCollectionDefined(Value)) { writer.WritePropertyName("value"u8); @@ -68,19 +73,19 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit } } - GroupQuotaLimitList IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + GroupQuotaLimitListProperties IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { - throw new FormatException($"The model {nameof(GroupQuotaLimitList)} does not support reading '{format}' format."); + throw new FormatException($"The model {nameof(GroupQuotaLimitListProperties)} does not support reading '{format}' format."); } using JsonDocument document = JsonDocument.ParseValue(ref reader); - return DeserializeGroupQuotaLimitList(document.RootElement, options); + return DeserializeGroupQuotaLimitListProperties(document.RootElement, options); } - internal static GroupQuotaLimitList DeserializeGroupQuotaLimitList(JsonElement element, ModelReaderWriterOptions options = null) + internal static GroupQuotaLimitListProperties DeserializeGroupQuotaLimitListProperties(JsonElement element, ModelReaderWriterOptions options = null) { options ??= ModelSerializationExtensions.WireOptions; @@ -88,22 +93,32 @@ internal static GroupQuotaLimitList DeserializeGroupQuotaLimitList(JsonElement e { return null; } - IReadOnlyList value = default; + QuotaRequestStatus? provisioningState = default; + IList value = default; string nextLink = 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 QuotaRequestStatus(property.Value.GetString()); + continue; + } if (property.NameEquals("value"u8)) { if (property.Value.ValueKind == JsonValueKind.Null) { continue; } - List array = new List(); + List array = new List(); foreach (var item in property.Value.EnumerateArray()) { - array.Add(GroupQuotaLimitData.DeserializeGroupQuotaLimitData(item, options)); + array.Add(GroupQuotaLimit.DeserializeGroupQuotaLimit(item, options)); } value = array; continue; @@ -119,7 +134,7 @@ internal static GroupQuotaLimitList DeserializeGroupQuotaLimitList(JsonElement e } } serializedAdditionalRawData = rawDataDictionary; - return new GroupQuotaLimitList(value ?? new ChangeTrackingList(), nextLink, serializedAdditionalRawData); + return new GroupQuotaLimitListProperties(provisioningState, value ?? new ChangeTrackingList(), nextLink, serializedAdditionalRawData); } private BinaryData SerializeBicep(ModelReaderWriterOptions options) @@ -133,6 +148,21 @@ private BinaryData SerializeBicep(ModelReaderWriterOptions options) builder.AppendLine("{"); + hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(ProvisioningState), out propertyOverride); + if (hasPropertyOverride) + { + builder.Append(" provisioningState: "); + builder.AppendLine(propertyOverride); + } + else + { + if (Optional.IsDefined(ProvisioningState)) + { + builder.Append(" provisioningState: "); + builder.AppendLine($"'{ProvisioningState.Value.ToString()}'"); + } + } + hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(Value), out propertyOverride); if (hasPropertyOverride) { @@ -183,9 +213,9 @@ private BinaryData SerializeBicep(ModelReaderWriterOptions options) return BinaryData.FromString(builder.ToString()); } - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { @@ -194,26 +224,26 @@ BinaryData IPersistableModel.Write(ModelReaderWriterOptions case "bicep": return SerializeBicep(options); default: - throw new FormatException($"The model {nameof(GroupQuotaLimitList)} does not support writing '{options.Format}' format."); + throw new FormatException($"The model {nameof(GroupQuotaLimitListProperties)} does not support writing '{options.Format}' format."); } } - GroupQuotaLimitList IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + GroupQuotaLimitListProperties IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": { using JsonDocument document = JsonDocument.Parse(data); - return DeserializeGroupQuotaLimitList(document.RootElement, options); + return DeserializeGroupQuotaLimitListProperties(document.RootElement, options); } default: - throw new FormatException($"The model {nameof(GroupQuotaLimitList)} does not support reading '{options.Format}' format."); + throw new FormatException($"The model {nameof(GroupQuotaLimitListProperties)} does not support reading '{options.Format}' format."); } } - string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; } } diff --git a/sdk/quota/Azure.ResourceManager.Quota/src/Generated/Models/GroupQuotaLimitList.cs b/sdk/quota/Azure.ResourceManager.Quota/src/Generated/Models/GroupQuotaLimitListProperties.cs similarity index 72% rename from sdk/quota/Azure.ResourceManager.Quota/src/Generated/Models/GroupQuotaLimitList.cs rename to sdk/quota/Azure.ResourceManager.Quota/src/Generated/Models/GroupQuotaLimitListProperties.cs index 8b1527ef007e..03d00b249d91 100644 --- a/sdk/quota/Azure.ResourceManager.Quota/src/Generated/Models/GroupQuotaLimitList.cs +++ b/sdk/quota/Azure.ResourceManager.Quota/src/Generated/Models/GroupQuotaLimitListProperties.cs @@ -10,8 +10,8 @@ namespace Azure.ResourceManager.Quota.Models { - /// List of Group Quota Limit details. - internal partial class GroupQuotaLimitList + /// The GroupQuotaLimitListProperties. + public partial class GroupQuotaLimitListProperties { /// /// Keeps track of any properties unknown to the library. @@ -45,26 +45,33 @@ internal partial class GroupQuotaLimitList /// private IDictionary _serializedAdditionalRawData; - /// Initializes a new instance of . - internal GroupQuotaLimitList() + /// Initializes a new instance of . + public GroupQuotaLimitListProperties() { - Value = new ChangeTrackingList(); + Value = new ChangeTrackingList(); } - /// Initializes a new instance of . + /// Initializes a new instance of . + /// Request status. /// List of Group Quota Limit details. /// The URL to use for getting the next set of results. /// Keeps track of any properties unknown to the library. - internal GroupQuotaLimitList(IReadOnlyList value, string nextLink, IDictionary serializedAdditionalRawData) + internal GroupQuotaLimitListProperties(QuotaRequestStatus? provisioningState, IList value, string nextLink, IDictionary serializedAdditionalRawData) { + ProvisioningState = provisioningState; Value = value; NextLink = nextLink; _serializedAdditionalRawData = serializedAdditionalRawData; } + /// Request status. + [WirePath("provisioningState")] + public QuotaRequestStatus? ProvisioningState { get; } /// List of Group Quota Limit details. - public IReadOnlyList Value { get; } + [WirePath("value")] + public IList Value { get; } /// The URL to use for getting the next set of results. + [WirePath("nextLink")] public string NextLink { get; } } } diff --git a/sdk/quota/Azure.ResourceManager.Quota/src/Generated/Models/GroupQuotaLimitProperties.Serialization.cs b/sdk/quota/Azure.ResourceManager.Quota/src/Generated/Models/GroupQuotaLimitProperties.Serialization.cs new file mode 100644 index 000000000000..3d981791505f --- /dev/null +++ b/sdk/quota/Azure.ResourceManager.Quota/src/Generated/Models/GroupQuotaLimitProperties.Serialization.cs @@ -0,0 +1,369 @@ +// 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; +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.Quota.Models +{ + public partial class GroupQuotaLimitProperties : 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(GroupQuotaLimitProperties)} does not support writing '{format}' format."); + } + + base.JsonModelWriteCore(writer, options); + } + + GroupQuotaLimitProperties 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(GroupQuotaLimitProperties)} does not support reading '{format}' format."); + } + + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeGroupQuotaLimitProperties(document.RootElement, options); + } + + internal static GroupQuotaLimitProperties DeserializeGroupQuotaLimitProperties(JsonElement element, ModelReaderWriterOptions options = null) + { + options ??= ModelSerializationExtensions.WireOptions; + + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + string resourceName = default; + long? limit = default; + string comment = default; + string unit = default; + long? availableLimit = default; + AllocatedQuotaToSubscriptionList allocatedToSubscriptions = default; + string value = default; + string localizedValue = default; + IDictionary serializedAdditionalRawData = default; + Dictionary rawDataDictionary = new Dictionary(); + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("resourceName"u8)) + { + resourceName = property.Value.GetString(); + continue; + } + if (property.NameEquals("limit"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + limit = property.Value.GetInt64(); + continue; + } + if (property.NameEquals("comment"u8)) + { + comment = property.Value.GetString(); + continue; + } + if (property.NameEquals("unit"u8)) + { + unit = property.Value.GetString(); + continue; + } + if (property.NameEquals("availableLimit"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + availableLimit = property.Value.GetInt64(); + continue; + } + if (property.NameEquals("allocatedToSubscriptions"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + allocatedToSubscriptions = AllocatedQuotaToSubscriptionList.DeserializeAllocatedQuotaToSubscriptionList(property.Value, options); + continue; + } + if (property.NameEquals("name"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + foreach (var property0 in property.Value.EnumerateObject()) + { + if (property0.NameEquals("value"u8)) + { + value = property0.Value.GetString(); + continue; + } + if (property0.NameEquals("localizedValue"u8)) + { + localizedValue = property0.Value.GetString(); + continue; + } + } + continue; + } + if (options.Format != "W") + { + rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + } + } + serializedAdditionalRawData = rawDataDictionary; + return new GroupQuotaLimitProperties( + resourceName, + limit, + comment, + unit, + availableLimit, + allocatedToSubscriptions, + value, + localizedValue, + serializedAdditionalRawData); + } + + private BinaryData SerializeBicep(ModelReaderWriterOptions options) + { + StringBuilder builder = new StringBuilder(); + BicepModelReaderWriterOptions bicepOptions = options as BicepModelReaderWriterOptions; + IDictionary propertyOverrides = null; + bool hasObjectOverride = bicepOptions != null && bicepOptions.PropertyOverrides.TryGetValue(this, out propertyOverrides); + bool hasPropertyOverride = false; + string propertyOverride = null; + + builder.AppendLine("{"); + + hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(ResourceName), out propertyOverride); + if (hasPropertyOverride) + { + builder.Append(" resourceName: "); + builder.AppendLine(propertyOverride); + } + else + { + if (Optional.IsDefined(ResourceName)) + { + builder.Append(" resourceName: "); + if (ResourceName.Contains(Environment.NewLine)) + { + builder.AppendLine("'''"); + builder.AppendLine($"{ResourceName}'''"); + } + else + { + builder.AppendLine($"'{ResourceName}'"); + } + } + } + + hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(Limit), out propertyOverride); + if (hasPropertyOverride) + { + builder.Append(" limit: "); + builder.AppendLine(propertyOverride); + } + else + { + if (Optional.IsDefined(Limit)) + { + builder.Append(" limit: "); + builder.AppendLine($"'{Limit.Value.ToString()}'"); + } + } + + hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(Comment), out propertyOverride); + if (hasPropertyOverride) + { + builder.Append(" comment: "); + builder.AppendLine(propertyOverride); + } + else + { + if (Optional.IsDefined(Comment)) + { + builder.Append(" comment: "); + if (Comment.Contains(Environment.NewLine)) + { + builder.AppendLine("'''"); + builder.AppendLine($"{Comment}'''"); + } + else + { + builder.AppendLine($"'{Comment}'"); + } + } + } + + hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(Unit), out propertyOverride); + if (hasPropertyOverride) + { + builder.Append(" unit: "); + builder.AppendLine(propertyOverride); + } + else + { + if (Optional.IsDefined(Unit)) + { + builder.Append(" unit: "); + if (Unit.Contains(Environment.NewLine)) + { + builder.AppendLine("'''"); + builder.AppendLine($"{Unit}'''"); + } + else + { + builder.AppendLine($"'{Unit}'"); + } + } + } + + hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(AvailableLimit), out propertyOverride); + if (hasPropertyOverride) + { + builder.Append(" availableLimit: "); + builder.AppendLine(propertyOverride); + } + else + { + if (Optional.IsDefined(AvailableLimit)) + { + builder.Append(" availableLimit: "); + builder.AppendLine($"'{AvailableLimit.Value.ToString()}'"); + } + } + + hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue("AllocatedToSubscriptionsValue", out propertyOverride); + if (hasPropertyOverride) + { + builder.Append(" allocatedToSubscriptions: "); + builder.AppendLine("{"); + builder.Append(" value: "); + builder.AppendLine(propertyOverride); + builder.AppendLine(" }"); + } + else + { + if (Optional.IsDefined(AllocatedToSubscriptions)) + { + builder.Append(" allocatedToSubscriptions: "); + BicepSerializationHelpers.AppendChildObject(builder, AllocatedToSubscriptions, options, 2, false, " allocatedToSubscriptions: "); + } + } + + builder.Append(" name:"); + builder.AppendLine(" {"); + hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(Value), out propertyOverride); + if (hasPropertyOverride) + { + builder.Append(" value: "); + builder.AppendLine(propertyOverride); + } + else + { + if (Optional.IsDefined(Value)) + { + builder.Append(" value: "); + if (Value.Contains(Environment.NewLine)) + { + builder.AppendLine("'''"); + builder.AppendLine($"{Value}'''"); + } + else + { + builder.AppendLine($"'{Value}'"); + } + } + } + + hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(LocalizedValue), out propertyOverride); + if (hasPropertyOverride) + { + builder.Append(" localizedValue: "); + builder.AppendLine(propertyOverride); + } + else + { + if (Optional.IsDefined(LocalizedValue)) + { + builder.Append(" localizedValue: "); + if (LocalizedValue.Contains(Environment.NewLine)) + { + builder.AppendLine("'''"); + builder.AppendLine($"{LocalizedValue}'''"); + } + else + { + builder.AppendLine($"'{LocalizedValue}'"); + } + } + } + + builder.AppendLine(" }"); + builder.AppendLine("}"); + return BinaryData.FromString(builder.ToString()); + } + + 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); + case "bicep": + return SerializeBicep(options); + default: + throw new FormatException($"The model {nameof(GroupQuotaLimitProperties)} does not support writing '{options.Format}' format."); + } + } + + GroupQuotaLimitProperties 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 DeserializeGroupQuotaLimitProperties(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(GroupQuotaLimitProperties)} does not support reading '{options.Format}' format."); + } + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/quota/Azure.ResourceManager.Quota/src/Generated/Models/GroupQuotaLimitProperties.cs b/sdk/quota/Azure.ResourceManager.Quota/src/Generated/Models/GroupQuotaLimitProperties.cs new file mode 100644 index 000000000000..5af835c0378b --- /dev/null +++ b/sdk/quota/Azure.ResourceManager.Quota/src/Generated/Models/GroupQuotaLimitProperties.cs @@ -0,0 +1,35 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; + +namespace Azure.ResourceManager.Quota.Models +{ + /// Group Quota properties for the specified resource. + public partial class GroupQuotaLimitProperties : GroupQuotaDetails + { + /// Initializes a new instance of . + public GroupQuotaLimitProperties() + { + } + + /// Initializes a new instance of . + /// The resource name, such as SKU name. + /// The current Group Quota Limit at the parentId level. + /// Any comment related to quota request. + /// The usages units, such as Count and Bytes. When requesting quota, use the **unit** value returned in the GET response in the request body of your PUT operation. + /// The available Group Quota Limit at the MG level. This Group quota can be allocated to subscription(s). + /// Quota allocated to subscriptions. + /// Resource name. + /// Resource display name. + /// Keeps track of any properties unknown to the library. + internal GroupQuotaLimitProperties(string resourceName, long? limit, string comment, string unit, long? availableLimit, AllocatedQuotaToSubscriptionList allocatedToSubscriptions, string value, string localizedValue, IDictionary serializedAdditionalRawData) : base(resourceName, limit, comment, unit, availableLimit, allocatedToSubscriptions, value, localizedValue, serializedAdditionalRawData) + { + } + } +} diff --git a/sdk/quota/Azure.ResourceManager.Quota/src/Generated/Models/GroupQuotaResourceUsages.Serialization.cs b/sdk/quota/Azure.ResourceManager.Quota/src/Generated/Models/GroupQuotaResourceUsages.Serialization.cs deleted file mode 100644 index 5dbc72fd7940..000000000000 --- a/sdk/quota/Azure.ResourceManager.Quota/src/Generated/Models/GroupQuotaResourceUsages.Serialization.cs +++ /dev/null @@ -1,240 +0,0 @@ -// 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; -using System.Text.Json; -using Azure.Core; -using Azure.ResourceManager.Models; - -namespace Azure.ResourceManager.Quota.Models -{ - public partial class GroupQuotaResourceUsages : 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(GroupQuotaResourceUsages)} does not support writing '{format}' format."); - } - - base.JsonModelWriteCore(writer, options); - if (Optional.IsDefined(Properties)) - { - writer.WritePropertyName("properties"u8); - writer.WriteObjectValue(Properties, options); - } - } - - GroupQuotaResourceUsages 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(GroupQuotaResourceUsages)} does not support reading '{format}' format."); - } - - using JsonDocument document = JsonDocument.ParseValue(ref reader); - return DeserializeGroupQuotaResourceUsages(document.RootElement, options); - } - - internal static GroupQuotaResourceUsages DeserializeGroupQuotaResourceUsages(JsonElement element, ModelReaderWriterOptions options = null) - { - options ??= ModelSerializationExtensions.WireOptions; - - if (element.ValueKind == JsonValueKind.Null) - { - return null; - } - GroupQuotaUsagesBase properties = default; - ResourceIdentifier id = default; - string name = default; - ResourceType type = default; - SystemData systemData = default; - IDictionary serializedAdditionalRawData = default; - Dictionary rawDataDictionary = new Dictionary(); - foreach (var property in element.EnumerateObject()) - { - if (property.NameEquals("properties"u8)) - { - if (property.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - properties = GroupQuotaUsagesBase.DeserializeGroupQuotaUsagesBase(property.Value, options); - continue; - } - if (property.NameEquals("id"u8)) - { - id = new ResourceIdentifier(property.Value.GetString()); - continue; - } - if (property.NameEquals("name"u8)) - { - name = property.Value.GetString(); - continue; - } - if (property.NameEquals("type"u8)) - { - type = new ResourceType(property.Value.GetString()); - continue; - } - if (property.NameEquals("systemData"u8)) - { - if (property.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - systemData = JsonSerializer.Deserialize(property.Value.GetRawText()); - continue; - } - if (options.Format != "W") - { - rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); - } - } - serializedAdditionalRawData = rawDataDictionary; - return new GroupQuotaResourceUsages( - id, - name, - type, - systemData, - properties, - serializedAdditionalRawData); - } - - private BinaryData SerializeBicep(ModelReaderWriterOptions options) - { - StringBuilder builder = new StringBuilder(); - BicepModelReaderWriterOptions bicepOptions = options as BicepModelReaderWriterOptions; - IDictionary propertyOverrides = null; - bool hasObjectOverride = bicepOptions != null && bicepOptions.PropertyOverrides.TryGetValue(this, out propertyOverrides); - bool hasPropertyOverride = false; - string propertyOverride = null; - - builder.AppendLine("{"); - - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(Name), out propertyOverride); - if (hasPropertyOverride) - { - builder.Append(" name: "); - builder.AppendLine(propertyOverride); - } - else - { - if (Optional.IsDefined(Name)) - { - builder.Append(" name: "); - if (Name.Contains(Environment.NewLine)) - { - builder.AppendLine("'''"); - builder.AppendLine($"{Name}'''"); - } - else - { - builder.AppendLine($"'{Name}'"); - } - } - } - - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(Properties), out propertyOverride); - if (hasPropertyOverride) - { - builder.Append(" properties: "); - builder.AppendLine(propertyOverride); - } - else - { - if (Optional.IsDefined(Properties)) - { - builder.Append(" properties: "); - BicepSerializationHelpers.AppendChildObject(builder, Properties, options, 2, false, " properties: "); - } - } - - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(Id), out propertyOverride); - if (hasPropertyOverride) - { - builder.Append(" id: "); - builder.AppendLine(propertyOverride); - } - else - { - if (Optional.IsDefined(Id)) - { - builder.Append(" id: "); - builder.AppendLine($"'{Id.ToString()}'"); - } - } - - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(SystemData), out propertyOverride); - if (hasPropertyOverride) - { - builder.Append(" systemData: "); - builder.AppendLine(propertyOverride); - } - else - { - if (Optional.IsDefined(SystemData)) - { - builder.Append(" systemData: "); - builder.AppendLine($"'{SystemData.ToString()}'"); - } - } - - builder.AppendLine("}"); - return BinaryData.FromString(builder.ToString()); - } - - 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); - case "bicep": - return SerializeBicep(options); - default: - throw new FormatException($"The model {nameof(GroupQuotaResourceUsages)} does not support writing '{options.Format}' format."); - } - } - - GroupQuotaResourceUsages 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 DeserializeGroupQuotaResourceUsages(document.RootElement, options); - } - default: - throw new FormatException($"The model {nameof(GroupQuotaResourceUsages)} does not support reading '{options.Format}' format."); - } - } - - string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; - } -} diff --git a/sdk/quota/Azure.ResourceManager.Quota/src/Generated/Models/GroupQuotaSubscriptionProperties.Serialization.cs b/sdk/quota/Azure.ResourceManager.Quota/src/Generated/Models/GroupQuotaSubscriptionProperties.Serialization.cs index b14ebd53e653..b382ad5ceebd 100644 --- a/sdk/quota/Azure.ResourceManager.Quota/src/Generated/Models/GroupQuotaSubscriptionProperties.Serialization.cs +++ b/sdk/quota/Azure.ResourceManager.Quota/src/Generated/Models/GroupQuotaSubscriptionProperties.Serialization.cs @@ -35,7 +35,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit throw new FormatException($"The model {nameof(GroupQuotaSubscriptionProperties)} does not support writing '{format}' format."); } - if (options.Format != "W" && Optional.IsDefined(SubscriptionId)) + if (Optional.IsDefined(SubscriptionId)) { writer.WritePropertyName("subscriptionId"u8); writer.WriteStringValue(SubscriptionId); diff --git a/sdk/quota/Azure.ResourceManager.Quota/src/Generated/Models/GroupQuotaSubscriptionProperties.cs b/sdk/quota/Azure.ResourceManager.Quota/src/Generated/Models/GroupQuotaSubscriptionProperties.cs index c8b2c624cce8..df1d0346af55 100644 --- a/sdk/quota/Azure.ResourceManager.Quota/src/Generated/Models/GroupQuotaSubscriptionProperties.cs +++ b/sdk/quota/Azure.ResourceManager.Quota/src/Generated/Models/GroupQuotaSubscriptionProperties.cs @@ -63,7 +63,7 @@ internal GroupQuotaSubscriptionProperties(string subscriptionId, QuotaRequestSta /// An Azure subscriptionId. [WirePath("subscriptionId")] - public string SubscriptionId { get; } + public string SubscriptionId { get; set; } /// Status of this subscriptionId being associated with the GroupQuotasEntity. [WirePath("provisioningState")] public QuotaRequestStatus? ProvisioningState { get; } diff --git a/sdk/quota/Azure.ResourceManager.Quota/src/Generated/Models/GroupQuotaUsagesBase.cs b/sdk/quota/Azure.ResourceManager.Quota/src/Generated/Models/GroupQuotaUsagesBase.cs deleted file mode 100644 index d41e004ceb2d..000000000000 --- a/sdk/quota/Azure.ResourceManager.Quota/src/Generated/Models/GroupQuotaUsagesBase.cs +++ /dev/null @@ -1,86 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Collections.Generic; - -namespace Azure.ResourceManager.Quota.Models -{ - /// Resource details with usages and GroupQuota. - public partial class GroupQuotaUsagesBase - { - /// - /// 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 GroupQuotaUsagesBase() - { - } - - /// Initializes a new instance of . - /// Quota/limits for the resource. - /// Usages for the resource. - /// Representing the units of the usage quota. Possible values are: Count, Bytes, Seconds, Percent, CountPerSecond, BytesPerSecond. Based on - https://armwiki.azurewebsites.net/api_contracts/UsagesAPIContract.html?q=usages . Different RPs may have different units, Count, type as int64 should work for most of the integer values. - /// Resource name. - /// Resource display name. - /// Keeps track of any properties unknown to the library. - internal GroupQuotaUsagesBase(long? limit, long? usages, string unit, string value, string localizedValue, IDictionary serializedAdditionalRawData) - { - Limit = limit; - Usages = usages; - Unit = unit; - Value = value; - LocalizedValue = localizedValue; - _serializedAdditionalRawData = serializedAdditionalRawData; - } - - /// Quota/limits for the resource. - [WirePath("limit")] - public long? Limit { get; set; } - /// Usages for the resource. - [WirePath("usages")] - public long? Usages { get; set; } - /// Representing the units of the usage quota. Possible values are: Count, Bytes, Seconds, Percent, CountPerSecond, BytesPerSecond. Based on - https://armwiki.azurewebsites.net/api_contracts/UsagesAPIContract.html?q=usages . Different RPs may have different units, Count, type as int64 should work for most of the integer values. - [WirePath("unit")] - public string Unit { get; } - /// Resource name. - [WirePath("name.value")] - public string Value { get; set; } - /// Resource display name. - [WirePath("name.localizedValue")] - public string LocalizedValue { get; } - } -} diff --git a/sdk/quota/Azure.ResourceManager.Quota/src/Generated/Models/GroupQuotasEnforcementListResponse.Serialization.cs b/sdk/quota/Azure.ResourceManager.Quota/src/Generated/Models/GroupQuotasEnforcementListResponse.Serialization.cs deleted file mode 100644 index c8e73e111973..000000000000 --- a/sdk/quota/Azure.ResourceManager.Quota/src/Generated/Models/GroupQuotasEnforcementListResponse.Serialization.cs +++ /dev/null @@ -1,219 +0,0 @@ -// 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.Linq; -using System.Text; -using System.Text.Json; -using Azure.Core; - -namespace Azure.ResourceManager.Quota.Models -{ - internal partial class GroupQuotasEnforcementListResponse : 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(GroupQuotasEnforcementListResponse)} 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 (options.Format != "W" && 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 - } - } - } - - GroupQuotasEnforcementListResponse 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(GroupQuotasEnforcementListResponse)} does not support reading '{format}' format."); - } - - using JsonDocument document = JsonDocument.ParseValue(ref reader); - return DeserializeGroupQuotasEnforcementListResponse(document.RootElement, options); - } - - internal static GroupQuotasEnforcementListResponse DeserializeGroupQuotasEnforcementListResponse(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(GroupQuotaEnforcementData.DeserializeGroupQuotaEnforcementData(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 GroupQuotasEnforcementListResponse(value ?? new ChangeTrackingList(), nextLink, serializedAdditionalRawData); - } - - private BinaryData SerializeBicep(ModelReaderWriterOptions options) - { - StringBuilder builder = new StringBuilder(); - BicepModelReaderWriterOptions bicepOptions = options as BicepModelReaderWriterOptions; - IDictionary propertyOverrides = null; - bool hasObjectOverride = bicepOptions != null && bicepOptions.PropertyOverrides.TryGetValue(this, out propertyOverrides); - bool hasPropertyOverride = false; - string propertyOverride = null; - - builder.AppendLine("{"); - - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(Value), out propertyOverride); - if (hasPropertyOverride) - { - builder.Append(" value: "); - builder.AppendLine(propertyOverride); - } - else - { - if (Optional.IsCollectionDefined(Value)) - { - if (Value.Any()) - { - builder.Append(" value: "); - builder.AppendLine("["); - foreach (var item in Value) - { - BicepSerializationHelpers.AppendChildObject(builder, item, options, 4, true, " value: "); - } - builder.AppendLine(" ]"); - } - } - } - - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(NextLink), out propertyOverride); - if (hasPropertyOverride) - { - builder.Append(" nextLink: "); - builder.AppendLine(propertyOverride); - } - else - { - if (Optional.IsDefined(NextLink)) - { - builder.Append(" nextLink: "); - if (NextLink.Contains(Environment.NewLine)) - { - builder.AppendLine("'''"); - builder.AppendLine($"{NextLink}'''"); - } - else - { - builder.AppendLine($"'{NextLink}'"); - } - } - } - - builder.AppendLine("}"); - return BinaryData.FromString(builder.ToString()); - } - - 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); - case "bicep": - return SerializeBicep(options); - default: - throw new FormatException($"The model {nameof(GroupQuotasEnforcementListResponse)} does not support writing '{options.Format}' format."); - } - } - - GroupQuotasEnforcementListResponse 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 DeserializeGroupQuotasEnforcementListResponse(document.RootElement, options); - } - default: - throw new FormatException($"The model {nameof(GroupQuotasEnforcementListResponse)} does not support reading '{options.Format}' format."); - } - } - - string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; - } -} diff --git a/sdk/quota/Azure.ResourceManager.Quota/src/Generated/Models/GroupQuotasEnforcementListResponse.cs b/sdk/quota/Azure.ResourceManager.Quota/src/Generated/Models/GroupQuotasEnforcementListResponse.cs deleted file mode 100644 index 4ea6be1f9482..000000000000 --- a/sdk/quota/Azure.ResourceManager.Quota/src/Generated/Models/GroupQuotasEnforcementListResponse.cs +++ /dev/null @@ -1,70 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Collections.Generic; - -namespace Azure.ResourceManager.Quota.Models -{ - /// List of Azure regions, where the group quotas is enabled for enforcement. - internal partial class GroupQuotasEnforcementListResponse - { - /// - /// 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 GroupQuotasEnforcementListResponse() - { - Value = new ChangeTrackingList(); - } - - /// Initializes a new instance of . - /// List of Azure Regions. - /// The URL to use for getting the next set of results. - /// Keeps track of any properties unknown to the library. - internal GroupQuotasEnforcementListResponse(IReadOnlyList value, string nextLink, IDictionary serializedAdditionalRawData) - { - Value = value; - NextLink = nextLink; - _serializedAdditionalRawData = serializedAdditionalRawData; - } - - /// List of Azure Regions. - public IReadOnlyList Value { get; } - /// The URL to use for getting the next set of results. - public string NextLink { get; } - } -} diff --git a/sdk/quota/Azure.ResourceManager.Quota/src/Generated/Models/GroupQuotasEntityBasePatch.Serialization.cs b/sdk/quota/Azure.ResourceManager.Quota/src/Generated/Models/GroupQuotasEntityBasePatch.Serialization.cs index 135154c73bdd..fd5f422c94b4 100644 --- a/sdk/quota/Azure.ResourceManager.Quota/src/Generated/Models/GroupQuotasEntityBasePatch.Serialization.cs +++ b/sdk/quota/Azure.ResourceManager.Quota/src/Generated/Models/GroupQuotasEntityBasePatch.Serialization.cs @@ -40,11 +40,6 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit writer.WritePropertyName("displayName"u8); writer.WriteStringValue(DisplayName); } - if (Optional.IsDefined(AdditionalAttributes)) - { - writer.WritePropertyName("additionalAttributes"u8); - writer.WriteObjectValue(AdditionalAttributes, options); - } if (options.Format != "W" && Optional.IsDefined(ProvisioningState)) { writer.WritePropertyName("provisioningState"u8); @@ -88,7 +83,6 @@ internal static GroupQuotasEntityBasePatch DeserializeGroupQuotasEntityBasePatch return null; } string displayName = default; - GroupQuotaAdditionalAttributesPatch additionalAttributes = default; QuotaRequestStatus? provisioningState = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); @@ -99,15 +93,6 @@ internal static GroupQuotasEntityBasePatch DeserializeGroupQuotasEntityBasePatch displayName = property.Value.GetString(); continue; } - if (property.NameEquals("additionalAttributes"u8)) - { - if (property.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - additionalAttributes = GroupQuotaAdditionalAttributesPatch.DeserializeGroupQuotaAdditionalAttributesPatch(property.Value, options); - continue; - } if (property.NameEquals("provisioningState"u8)) { if (property.Value.ValueKind == JsonValueKind.Null) @@ -123,7 +108,7 @@ internal static GroupQuotasEntityBasePatch DeserializeGroupQuotasEntityBasePatch } } serializedAdditionalRawData = rawDataDictionary; - return new GroupQuotasEntityBasePatch(displayName, additionalAttributes, provisioningState, serializedAdditionalRawData); + return new GroupQuotasEntityBasePatch(displayName, provisioningState, serializedAdditionalRawData); } private BinaryData SerializeBicep(ModelReaderWriterOptions options) @@ -160,21 +145,6 @@ private BinaryData SerializeBicep(ModelReaderWriterOptions options) } } - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(AdditionalAttributes), out propertyOverride); - if (hasPropertyOverride) - { - builder.Append(" additionalAttributes: "); - builder.AppendLine(propertyOverride); - } - else - { - if (Optional.IsDefined(AdditionalAttributes)) - { - builder.Append(" additionalAttributes: "); - BicepSerializationHelpers.AppendChildObject(builder, AdditionalAttributes, options, 2, false, " additionalAttributes: "); - } - } - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(ProvisioningState), out propertyOverride); if (hasPropertyOverride) { diff --git a/sdk/quota/Azure.ResourceManager.Quota/src/Generated/Models/GroupQuotasEntityBasePatch.cs b/sdk/quota/Azure.ResourceManager.Quota/src/Generated/Models/GroupQuotasEntityBasePatch.cs index d1ef31d4bde1..14576dfe9cb8 100644 --- a/sdk/quota/Azure.ResourceManager.Quota/src/Generated/Models/GroupQuotasEntityBasePatch.cs +++ b/sdk/quota/Azure.ResourceManager.Quota/src/Generated/Models/GroupQuotasEntityBasePatch.cs @@ -43,7 +43,7 @@ public partial class GroupQuotasEntityBasePatch /// /// /// - private IDictionary _serializedAdditionalRawData; + private protected IDictionary _serializedAdditionalRawData; /// Initializes a new instance of . public GroupQuotasEntityBasePatch() @@ -52,13 +52,11 @@ public GroupQuotasEntityBasePatch() /// Initializes a new instance of . /// Display name of the GroupQuota entity. - /// Additional attributes to filter/restrict the subscriptions, which can be added to the subscriptionIds. /// Provisioning state of the operation. /// Keeps track of any properties unknown to the library. - internal GroupQuotasEntityBasePatch(string displayName, GroupQuotaAdditionalAttributesPatch additionalAttributes, QuotaRequestStatus? provisioningState, IDictionary serializedAdditionalRawData) + internal GroupQuotasEntityBasePatch(string displayName, QuotaRequestStatus? provisioningState, IDictionary serializedAdditionalRawData) { DisplayName = displayName; - AdditionalAttributes = additionalAttributes; ProvisioningState = provisioningState; _serializedAdditionalRawData = serializedAdditionalRawData; } @@ -66,9 +64,6 @@ internal GroupQuotasEntityBasePatch(string displayName, GroupQuotaAdditionalAttr /// Display name of the GroupQuota entity. [WirePath("displayName")] public string DisplayName { get; set; } - /// Additional attributes to filter/restrict the subscriptions, which can be added to the subscriptionIds. - [WirePath("additionalAttributes")] - public GroupQuotaAdditionalAttributesPatch AdditionalAttributes { get; set; } /// Provisioning state of the operation. [WirePath("provisioningState")] public QuotaRequestStatus? ProvisioningState { get; } diff --git a/sdk/quota/Azure.ResourceManager.Quota/src/Generated/Models/GroupQuotaGroupingId.Serialization.cs b/sdk/quota/Azure.ResourceManager.Quota/src/Generated/Models/GroupQuotasEntityPatchProperties.Serialization.cs similarity index 53% rename from sdk/quota/Azure.ResourceManager.Quota/src/Generated/Models/GroupQuotaGroupingId.Serialization.cs rename to sdk/quota/Azure.ResourceManager.Quota/src/Generated/Models/GroupQuotasEntityPatchProperties.Serialization.cs index fee4c1a000bb..383354a6448d 100644 --- a/sdk/quota/Azure.ResourceManager.Quota/src/Generated/Models/GroupQuotaGroupingId.Serialization.cs +++ b/sdk/quota/Azure.ResourceManager.Quota/src/Generated/Models/GroupQuotasEntityPatchProperties.Serialization.cs @@ -14,11 +14,11 @@ namespace Azure.ResourceManager.Quota.Models { - public partial class GroupQuotaGroupingId : IUtf8JsonSerializable, IJsonModel + public partial class GroupQuotasEntityPatchProperties : IUtf8JsonSerializable, IJsonModel { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); - void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) { writer.WriteStartObject(); JsonModelWriteCore(writer, options); @@ -27,54 +27,30 @@ void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWr /// The JSON writer. /// The client options for reading and writing models. - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) + protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { - throw new FormatException($"The model {nameof(GroupQuotaGroupingId)} does not support writing '{format}' format."); + throw new FormatException($"The model {nameof(GroupQuotasEntityPatchProperties)} does not support writing '{format}' format."); } - if (Optional.IsDefined(GroupingIdType)) - { - writer.WritePropertyName("groupingIdType"u8); - writer.WriteStringValue(GroupingIdType.Value.ToString()); - } - if (Optional.IsDefined(Value)) - { - writer.WritePropertyName("value"u8); - writer.WriteStringValue(Value); - } - if (options.Format != "W" && _serializedAdditionalRawData != null) - { - foreach (var item in _serializedAdditionalRawData) - { - writer.WritePropertyName(item.Key); -#if NET6_0_OR_GREATER - writer.WriteRawValue(item.Value); -#else - using (JsonDocument document = JsonDocument.Parse(item.Value)) - { - JsonSerializer.Serialize(writer, document.RootElement); - } -#endif - } - } + base.JsonModelWriteCore(writer, options); } - GroupQuotaGroupingId IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + GroupQuotasEntityPatchProperties IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { - throw new FormatException($"The model {nameof(GroupQuotaGroupingId)} does not support reading '{format}' format."); + throw new FormatException($"The model {nameof(GroupQuotasEntityPatchProperties)} does not support reading '{format}' format."); } using JsonDocument document = JsonDocument.ParseValue(ref reader); - return DeserializeGroupQuotaGroupingId(document.RootElement, options); + return DeserializeGroupQuotasEntityPatchProperties(document.RootElement, options); } - internal static GroupQuotaGroupingId DeserializeGroupQuotaGroupingId(JsonElement element, ModelReaderWriterOptions options = null) + internal static GroupQuotasEntityPatchProperties DeserializeGroupQuotasEntityPatchProperties(JsonElement element, ModelReaderWriterOptions options = null) { options ??= ModelSerializationExtensions.WireOptions; @@ -82,24 +58,24 @@ internal static GroupQuotaGroupingId DeserializeGroupQuotaGroupingId(JsonElement { return null; } - GroupQuotaGroupingIdType? groupingIdType = default; - string value = default; + string displayName = default; + QuotaRequestStatus? provisioningState = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) { - if (property.NameEquals("groupingIdType"u8)) + if (property.NameEquals("displayName"u8)) + { + displayName = property.Value.GetString(); + continue; + } + if (property.NameEquals("provisioningState"u8)) { if (property.Value.ValueKind == JsonValueKind.Null) { continue; } - groupingIdType = new GroupQuotaGroupingIdType(property.Value.GetString()); - continue; - } - if (property.NameEquals("value"u8)) - { - value = property.Value.GetString(); + provisioningState = new QuotaRequestStatus(property.Value.GetString()); continue; } if (options.Format != "W") @@ -108,7 +84,7 @@ internal static GroupQuotaGroupingId DeserializeGroupQuotaGroupingId(JsonElement } } serializedAdditionalRawData = rawDataDictionary; - return new GroupQuotaGroupingId(groupingIdType, value, serializedAdditionalRawData); + return new GroupQuotasEntityPatchProperties(displayName, provisioningState, serializedAdditionalRawData); } private BinaryData SerializeBicep(ModelReaderWriterOptions options) @@ -122,41 +98,41 @@ private BinaryData SerializeBicep(ModelReaderWriterOptions options) builder.AppendLine("{"); - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(GroupingIdType), out propertyOverride); + hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(DisplayName), out propertyOverride); if (hasPropertyOverride) { - builder.Append(" groupingIdType: "); + builder.Append(" displayName: "); builder.AppendLine(propertyOverride); } else { - if (Optional.IsDefined(GroupingIdType)) + if (Optional.IsDefined(DisplayName)) { - builder.Append(" groupingIdType: "); - builder.AppendLine($"'{GroupingIdType.Value.ToString()}'"); + builder.Append(" displayName: "); + if (DisplayName.Contains(Environment.NewLine)) + { + builder.AppendLine("'''"); + builder.AppendLine($"{DisplayName}'''"); + } + else + { + builder.AppendLine($"'{DisplayName}'"); + } } } - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(Value), out propertyOverride); + hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(ProvisioningState), out propertyOverride); if (hasPropertyOverride) { - builder.Append(" value: "); + builder.Append(" provisioningState: "); builder.AppendLine(propertyOverride); } else { - if (Optional.IsDefined(Value)) + if (Optional.IsDefined(ProvisioningState)) { - builder.Append(" value: "); - if (Value.Contains(Environment.NewLine)) - { - builder.AppendLine("'''"); - builder.AppendLine($"{Value}'''"); - } - else - { - builder.AppendLine($"'{Value}'"); - } + builder.Append(" provisioningState: "); + builder.AppendLine($"'{ProvisioningState.Value.ToString()}'"); } } @@ -164,9 +140,9 @@ private BinaryData SerializeBicep(ModelReaderWriterOptions options) return BinaryData.FromString(builder.ToString()); } - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { @@ -175,26 +151,26 @@ BinaryData IPersistableModel.Write(ModelReaderWriterOption case "bicep": return SerializeBicep(options); default: - throw new FormatException($"The model {nameof(GroupQuotaGroupingId)} does not support writing '{options.Format}' format."); + throw new FormatException($"The model {nameof(GroupQuotasEntityPatchProperties)} does not support writing '{options.Format}' format."); } } - GroupQuotaGroupingId IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + GroupQuotasEntityPatchProperties IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": { using JsonDocument document = JsonDocument.Parse(data); - return DeserializeGroupQuotaGroupingId(document.RootElement, options); + return DeserializeGroupQuotasEntityPatchProperties(document.RootElement, options); } default: - throw new FormatException($"The model {nameof(GroupQuotaGroupingId)} does not support reading '{options.Format}' format."); + throw new FormatException($"The model {nameof(GroupQuotasEntityPatchProperties)} does not support reading '{options.Format}' format."); } } - string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; } } diff --git a/sdk/quota/Azure.ResourceManager.Quota/src/Generated/Models/GroupQuotasEntityPatchProperties.cs b/sdk/quota/Azure.ResourceManager.Quota/src/Generated/Models/GroupQuotasEntityPatchProperties.cs new file mode 100644 index 000000000000..b0b6ff6da948 --- /dev/null +++ b/sdk/quota/Azure.ResourceManager.Quota/src/Generated/Models/GroupQuotasEntityPatchProperties.cs @@ -0,0 +1,29 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; + +namespace Azure.ResourceManager.Quota.Models +{ + /// Properties. + public partial class GroupQuotasEntityPatchProperties : GroupQuotasEntityBasePatch + { + /// Initializes a new instance of . + public GroupQuotasEntityPatchProperties() + { + } + + /// Initializes a new instance of . + /// Display name of the GroupQuota entity. + /// Provisioning state of the operation. + /// Keeps track of any properties unknown to the library. + internal GroupQuotasEntityPatchProperties(string displayName, QuotaRequestStatus? provisioningState, IDictionary serializedAdditionalRawData) : base(displayName, provisioningState, serializedAdditionalRawData) + { + } + } +} diff --git a/sdk/quota/Azure.ResourceManager.Quota/src/Generated/Models/GroupQuotasEntityProperties.Serialization.cs b/sdk/quota/Azure.ResourceManager.Quota/src/Generated/Models/GroupQuotasEntityProperties.Serialization.cs new file mode 100644 index 000000000000..08a5216a3947 --- /dev/null +++ b/sdk/quota/Azure.ResourceManager.Quota/src/Generated/Models/GroupQuotasEntityProperties.Serialization.cs @@ -0,0 +1,176 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ClientModel.Primitives; +using System.Collections.Generic; +using System.Text; +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.Quota.Models +{ + public partial class GroupQuotasEntityProperties : 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(GroupQuotasEntityProperties)} does not support writing '{format}' format."); + } + + base.JsonModelWriteCore(writer, options); + } + + GroupQuotasEntityProperties 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(GroupQuotasEntityProperties)} does not support reading '{format}' format."); + } + + using JsonDocument document = JsonDocument.ParseValue(ref reader); + return DeserializeGroupQuotasEntityProperties(document.RootElement, options); + } + + internal static GroupQuotasEntityProperties DeserializeGroupQuotasEntityProperties(JsonElement element, ModelReaderWriterOptions options = null) + { + options ??= ModelSerializationExtensions.WireOptions; + + if (element.ValueKind == JsonValueKind.Null) + { + return null; + } + string displayName = default; + QuotaRequestStatus? provisioningState = default; + IDictionary serializedAdditionalRawData = default; + Dictionary rawDataDictionary = new Dictionary(); + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("displayName"u8)) + { + displayName = property.Value.GetString(); + continue; + } + if (property.NameEquals("provisioningState"u8)) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + continue; + } + provisioningState = new QuotaRequestStatus(property.Value.GetString()); + continue; + } + if (options.Format != "W") + { + rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText())); + } + } + serializedAdditionalRawData = rawDataDictionary; + return new GroupQuotasEntityProperties(displayName, provisioningState, serializedAdditionalRawData); + } + + private BinaryData SerializeBicep(ModelReaderWriterOptions options) + { + StringBuilder builder = new StringBuilder(); + BicepModelReaderWriterOptions bicepOptions = options as BicepModelReaderWriterOptions; + IDictionary propertyOverrides = null; + bool hasObjectOverride = bicepOptions != null && bicepOptions.PropertyOverrides.TryGetValue(this, out propertyOverrides); + bool hasPropertyOverride = false; + string propertyOverride = null; + + builder.AppendLine("{"); + + hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(DisplayName), out propertyOverride); + if (hasPropertyOverride) + { + builder.Append(" displayName: "); + builder.AppendLine(propertyOverride); + } + else + { + if (Optional.IsDefined(DisplayName)) + { + builder.Append(" displayName: "); + if (DisplayName.Contains(Environment.NewLine)) + { + builder.AppendLine("'''"); + builder.AppendLine($"{DisplayName}'''"); + } + else + { + builder.AppendLine($"'{DisplayName}'"); + } + } + } + + hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(ProvisioningState), out propertyOverride); + if (hasPropertyOverride) + { + builder.Append(" provisioningState: "); + builder.AppendLine(propertyOverride); + } + else + { + if (Optional.IsDefined(ProvisioningState)) + { + builder.Append(" provisioningState: "); + builder.AppendLine($"'{ProvisioningState.Value.ToString()}'"); + } + } + + builder.AppendLine("}"); + return BinaryData.FromString(builder.ToString()); + } + + 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); + case "bicep": + return SerializeBicep(options); + default: + throw new FormatException($"The model {nameof(GroupQuotasEntityProperties)} does not support writing '{options.Format}' format."); + } + } + + GroupQuotasEntityProperties 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 DeserializeGroupQuotasEntityProperties(document.RootElement, options); + } + default: + throw new FormatException($"The model {nameof(GroupQuotasEntityProperties)} does not support reading '{options.Format}' format."); + } + } + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + } +} diff --git a/sdk/quota/Azure.ResourceManager.Quota/src/Generated/Models/GroupQuotasEntityProperties.cs b/sdk/quota/Azure.ResourceManager.Quota/src/Generated/Models/GroupQuotasEntityProperties.cs new file mode 100644 index 000000000000..333d56328189 --- /dev/null +++ b/sdk/quota/Azure.ResourceManager.Quota/src/Generated/Models/GroupQuotasEntityProperties.cs @@ -0,0 +1,29 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; + +namespace Azure.ResourceManager.Quota.Models +{ + /// Properties. + public partial class GroupQuotasEntityProperties : GroupQuotaEntityBase + { + /// Initializes a new instance of . + public GroupQuotasEntityProperties() + { + } + + /// Initializes a new instance of . + /// Display name of the GroupQuota entity. + /// Provisioning state of the operation. + /// Keeps track of any properties unknown to the library. + internal GroupQuotasEntityProperties(string displayName, QuotaRequestStatus? provisioningState, IDictionary serializedAdditionalRawData) : base(displayName, provisioningState, serializedAdditionalRawData) + { + } + } +} diff --git a/sdk/quota/Azure.ResourceManager.Quota/src/Generated/Models/ResourceUsageList.Serialization.cs b/sdk/quota/Azure.ResourceManager.Quota/src/Generated/Models/ResourceUsageList.Serialization.cs deleted file mode 100644 index 34662e7b98cd..000000000000 --- a/sdk/quota/Azure.ResourceManager.Quota/src/Generated/Models/ResourceUsageList.Serialization.cs +++ /dev/null @@ -1,219 +0,0 @@ -// 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.Linq; -using System.Text; -using System.Text.Json; -using Azure.Core; - -namespace Azure.ResourceManager.Quota.Models -{ - internal partial class ResourceUsageList : 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(ResourceUsageList)} 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 (options.Format != "W" && 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 - } - } - } - - ResourceUsageList 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(ResourceUsageList)} does not support reading '{format}' format."); - } - - using JsonDocument document = JsonDocument.ParseValue(ref reader); - return DeserializeResourceUsageList(document.RootElement, options); - } - - internal static ResourceUsageList DeserializeResourceUsageList(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(GroupQuotaResourceUsages.DeserializeGroupQuotaResourceUsages(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 ResourceUsageList(value ?? new ChangeTrackingList(), nextLink, serializedAdditionalRawData); - } - - private BinaryData SerializeBicep(ModelReaderWriterOptions options) - { - StringBuilder builder = new StringBuilder(); - BicepModelReaderWriterOptions bicepOptions = options as BicepModelReaderWriterOptions; - IDictionary propertyOverrides = null; - bool hasObjectOverride = bicepOptions != null && bicepOptions.PropertyOverrides.TryGetValue(this, out propertyOverrides); - bool hasPropertyOverride = false; - string propertyOverride = null; - - builder.AppendLine("{"); - - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(Value), out propertyOverride); - if (hasPropertyOverride) - { - builder.Append(" value: "); - builder.AppendLine(propertyOverride); - } - else - { - if (Optional.IsCollectionDefined(Value)) - { - if (Value.Any()) - { - builder.Append(" value: "); - builder.AppendLine("["); - foreach (var item in Value) - { - BicepSerializationHelpers.AppendChildObject(builder, item, options, 4, true, " value: "); - } - builder.AppendLine(" ]"); - } - } - } - - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(NextLink), out propertyOverride); - if (hasPropertyOverride) - { - builder.Append(" nextLink: "); - builder.AppendLine(propertyOverride); - } - else - { - if (Optional.IsDefined(NextLink)) - { - builder.Append(" nextLink: "); - if (NextLink.Contains(Environment.NewLine)) - { - builder.AppendLine("'''"); - builder.AppendLine($"{NextLink}'''"); - } - else - { - builder.AppendLine($"'{NextLink}'"); - } - } - } - - builder.AppendLine("}"); - return BinaryData.FromString(builder.ToString()); - } - - 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); - case "bicep": - return SerializeBicep(options); - default: - throw new FormatException($"The model {nameof(ResourceUsageList)} does not support writing '{options.Format}' format."); - } - } - - ResourceUsageList 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 DeserializeResourceUsageList(document.RootElement, options); - } - default: - throw new FormatException($"The model {nameof(ResourceUsageList)} does not support reading '{options.Format}' format."); - } - } - - string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; - } -} diff --git a/sdk/quota/Azure.ResourceManager.Quota/src/Generated/Models/GroupQuotaAdditionalAttributesPatch.Serialization.cs b/sdk/quota/Azure.ResourceManager.Quota/src/Generated/Models/SubscriptionQuotaAllocations.Serialization.cs similarity index 52% rename from sdk/quota/Azure.ResourceManager.Quota/src/Generated/Models/GroupQuotaAdditionalAttributesPatch.Serialization.cs rename to sdk/quota/Azure.ResourceManager.Quota/src/Generated/Models/SubscriptionQuotaAllocations.Serialization.cs index d26c8dfd2dbe..d475f5e5f2cc 100644 --- a/sdk/quota/Azure.ResourceManager.Quota/src/Generated/Models/GroupQuotaAdditionalAttributesPatch.Serialization.cs +++ b/sdk/quota/Azure.ResourceManager.Quota/src/Generated/Models/SubscriptionQuotaAllocations.Serialization.cs @@ -14,11 +14,11 @@ namespace Azure.ResourceManager.Quota.Models { - public partial class GroupQuotaAdditionalAttributesPatch : IUtf8JsonSerializable, IJsonModel + public partial class SubscriptionQuotaAllocations : IUtf8JsonSerializable, IJsonModel { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); - void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) { writer.WriteStartObject(); JsonModelWriteCore(writer, options); @@ -29,21 +29,16 @@ void IJsonModel.Write(Utf8JsonWriter 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; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { - throw new FormatException($"The model {nameof(GroupQuotaAdditionalAttributesPatch)} does not support writing '{format}' format."); + throw new FormatException($"The model {nameof(SubscriptionQuotaAllocations)} does not support writing '{format}' format."); } - if (Optional.IsDefined(GroupId)) + if (Optional.IsDefined(Properties)) { - writer.WritePropertyName("groupId"u8); - writer.WriteObjectValue(GroupId, options); - } - if (Optional.IsDefined(Environment)) - { - writer.WritePropertyName("environment"u8); - writer.WriteStringValue(Environment.Value.ToString()); + writer.WritePropertyName("properties"u8); + writer.WriteObjectValue(Properties, options); } if (options.Format != "W" && _serializedAdditionalRawData != null) { @@ -62,19 +57,19 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit } } - GroupQuotaAdditionalAttributesPatch IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + SubscriptionQuotaAllocations IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { - throw new FormatException($"The model {nameof(GroupQuotaAdditionalAttributesPatch)} does not support reading '{format}' format."); + throw new FormatException($"The model {nameof(SubscriptionQuotaAllocations)} does not support reading '{format}' format."); } using JsonDocument document = JsonDocument.ParseValue(ref reader); - return DeserializeGroupQuotaAdditionalAttributesPatch(document.RootElement, options); + return DeserializeSubscriptionQuotaAllocations(document.RootElement, options); } - internal static GroupQuotaAdditionalAttributesPatch DeserializeGroupQuotaAdditionalAttributesPatch(JsonElement element, ModelReaderWriterOptions options = null) + internal static SubscriptionQuotaAllocations DeserializeSubscriptionQuotaAllocations(JsonElement element, ModelReaderWriterOptions options = null) { options ??= ModelSerializationExtensions.WireOptions; @@ -82,28 +77,18 @@ internal static GroupQuotaAdditionalAttributesPatch DeserializeGroupQuotaAdditio { return null; } - GroupQuotaGroupingId groupId = default; - GroupQuotaEnvironmentType? environment = default; + SubscriptionQuotaAllocationsProperties properties = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) { - if (property.NameEquals("groupId"u8)) - { - if (property.Value.ValueKind == JsonValueKind.Null) - { - continue; - } - groupId = GroupQuotaGroupingId.DeserializeGroupQuotaGroupingId(property.Value, options); - continue; - } - if (property.NameEquals("environment"u8)) + if (property.NameEquals("properties"u8)) { if (property.Value.ValueKind == JsonValueKind.Null) { continue; } - environment = new GroupQuotaEnvironmentType(property.Value.GetString()); + properties = SubscriptionQuotaAllocationsProperties.DeserializeSubscriptionQuotaAllocationsProperties(property.Value, options); continue; } if (options.Format != "W") @@ -112,7 +97,7 @@ internal static GroupQuotaAdditionalAttributesPatch DeserializeGroupQuotaAdditio } } serializedAdditionalRawData = rawDataDictionary; - return new GroupQuotaAdditionalAttributesPatch(groupId, environment, serializedAdditionalRawData); + return new SubscriptionQuotaAllocations(properties, serializedAdditionalRawData); } private BinaryData SerializeBicep(ModelReaderWriterOptions options) @@ -126,33 +111,18 @@ private BinaryData SerializeBicep(ModelReaderWriterOptions options) builder.AppendLine("{"); - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(GroupId), out propertyOverride); - if (hasPropertyOverride) - { - builder.Append(" groupId: "); - builder.AppendLine(propertyOverride); - } - else - { - if (Optional.IsDefined(GroupId)) - { - builder.Append(" groupId: "); - BicepSerializationHelpers.AppendChildObject(builder, GroupId, options, 2, false, " groupId: "); - } - } - - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(Environment), out propertyOverride); + hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(Properties), out propertyOverride); if (hasPropertyOverride) { - builder.Append(" environment: "); + builder.Append(" properties: "); builder.AppendLine(propertyOverride); } else { - if (Optional.IsDefined(Environment)) + if (Optional.IsDefined(Properties)) { - builder.Append(" environment: "); - builder.AppendLine($"'{Environment.Value.ToString()}'"); + builder.Append(" properties: "); + BicepSerializationHelpers.AppendChildObject(builder, Properties, options, 2, false, " properties: "); } } @@ -160,9 +130,9 @@ private BinaryData SerializeBicep(ModelReaderWriterOptions options) return BinaryData.FromString(builder.ToString()); } - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { @@ -171,26 +141,26 @@ BinaryData IPersistableModel.Write(ModelRea case "bicep": return SerializeBicep(options); default: - throw new FormatException($"The model {nameof(GroupQuotaAdditionalAttributesPatch)} does not support writing '{options.Format}' format."); + throw new FormatException($"The model {nameof(SubscriptionQuotaAllocations)} does not support writing '{options.Format}' format."); } } - GroupQuotaAdditionalAttributesPatch IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + SubscriptionQuotaAllocations IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": { using JsonDocument document = JsonDocument.Parse(data); - return DeserializeGroupQuotaAdditionalAttributesPatch(document.RootElement, options); + return DeserializeSubscriptionQuotaAllocations(document.RootElement, options); } default: - throw new FormatException($"The model {nameof(GroupQuotaAdditionalAttributesPatch)} does not support reading '{options.Format}' format."); + throw new FormatException($"The model {nameof(SubscriptionQuotaAllocations)} does not support reading '{options.Format}' format."); } } - string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; } } diff --git a/sdk/quota/Azure.ResourceManager.Quota/src/Generated/Models/ResourceUsageList.cs b/sdk/quota/Azure.ResourceManager.Quota/src/Generated/Models/SubscriptionQuotaAllocations.cs similarity index 62% rename from sdk/quota/Azure.ResourceManager.Quota/src/Generated/Models/ResourceUsageList.cs rename to sdk/quota/Azure.ResourceManager.Quota/src/Generated/Models/SubscriptionQuotaAllocations.cs index 25f6034d0d3f..db31e6ce4dce 100644 --- a/sdk/quota/Azure.ResourceManager.Quota/src/Generated/Models/ResourceUsageList.cs +++ b/sdk/quota/Azure.ResourceManager.Quota/src/Generated/Models/SubscriptionQuotaAllocations.cs @@ -10,8 +10,8 @@ namespace Azure.ResourceManager.Quota.Models { - /// List of resource usages and quotas for GroupQuota. - internal partial class ResourceUsageList + /// Quota allocated to a subscription for the specific Resource Provider, Location, ResourceName. This will include the GroupQuota and total quota allocated to the subscription. Only the Group quota allocated to the subscription can be allocated back to the MG Group Quota. + public partial class SubscriptionQuotaAllocations { /// /// Keeps track of any properties unknown to the library. @@ -45,26 +45,22 @@ internal partial class ResourceUsageList /// private IDictionary _serializedAdditionalRawData; - /// Initializes a new instance of . - internal ResourceUsageList() + /// Initializes a new instance of . + public SubscriptionQuotaAllocations() { - Value = new ChangeTrackingList(); } - /// Initializes a new instance of . - /// List of resource usages at Group Quotas. - /// The URL to use for getting the next set of results. + /// Initializes a new instance of . + /// Quota properties for the specified resource. /// Keeps track of any properties unknown to the library. - internal ResourceUsageList(IReadOnlyList value, string nextLink, IDictionary serializedAdditionalRawData) + internal SubscriptionQuotaAllocations(SubscriptionQuotaAllocationsProperties properties, IDictionary serializedAdditionalRawData) { - Value = value; - NextLink = nextLink; + Properties = properties; _serializedAdditionalRawData = serializedAdditionalRawData; } - /// List of resource usages at Group Quotas. - public IReadOnlyList Value { get; } - /// The URL to use for getting the next set of results. - public string NextLink { get; } + /// Quota properties for the specified resource. + [WirePath("properties")] + public SubscriptionQuotaAllocationsProperties Properties { get; set; } } } diff --git a/sdk/quota/Azure.ResourceManager.Quota/src/Generated/Models/SubscriptionQuotaAllocationsList.Serialization.cs b/sdk/quota/Azure.ResourceManager.Quota/src/Generated/Models/SubscriptionQuotaAllocationsListProperties.Serialization.cs similarity index 65% rename from sdk/quota/Azure.ResourceManager.Quota/src/Generated/Models/SubscriptionQuotaAllocationsList.Serialization.cs rename to sdk/quota/Azure.ResourceManager.Quota/src/Generated/Models/SubscriptionQuotaAllocationsListProperties.Serialization.cs index 100b399242a2..8b9ae0e6e8cc 100644 --- a/sdk/quota/Azure.ResourceManager.Quota/src/Generated/Models/SubscriptionQuotaAllocationsList.Serialization.cs +++ b/sdk/quota/Azure.ResourceManager.Quota/src/Generated/Models/SubscriptionQuotaAllocationsListProperties.Serialization.cs @@ -15,11 +15,11 @@ namespace Azure.ResourceManager.Quota.Models { - internal partial class SubscriptionQuotaAllocationsList : IUtf8JsonSerializable, IJsonModel + public partial class SubscriptionQuotaAllocationsListProperties : IUtf8JsonSerializable, IJsonModel { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); - void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) { writer.WriteStartObject(); JsonModelWriteCore(writer, options); @@ -30,12 +30,17 @@ void IJsonModel.Write(Utf8JsonWriter writer, M /// 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; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { - throw new FormatException($"The model {nameof(SubscriptionQuotaAllocationsList)} does not support writing '{format}' format."); + throw new FormatException($"The model {nameof(SubscriptionQuotaAllocationsListProperties)} does not support writing '{format}' format."); } + if (options.Format != "W" && Optional.IsDefined(ProvisioningState)) + { + writer.WritePropertyName("provisioningState"u8); + writer.WriteStringValue(ProvisioningState.Value.ToString()); + } if (Optional.IsCollectionDefined(Value)) { writer.WritePropertyName("value"u8); @@ -68,19 +73,19 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit } } - SubscriptionQuotaAllocationsList IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + SubscriptionQuotaAllocationsListProperties IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { - throw new FormatException($"The model {nameof(SubscriptionQuotaAllocationsList)} does not support reading '{format}' format."); + throw new FormatException($"The model {nameof(SubscriptionQuotaAllocationsListProperties)} does not support reading '{format}' format."); } using JsonDocument document = JsonDocument.ParseValue(ref reader); - return DeserializeSubscriptionQuotaAllocationsList(document.RootElement, options); + return DeserializeSubscriptionQuotaAllocationsListProperties(document.RootElement, options); } - internal static SubscriptionQuotaAllocationsList DeserializeSubscriptionQuotaAllocationsList(JsonElement element, ModelReaderWriterOptions options = null) + internal static SubscriptionQuotaAllocationsListProperties DeserializeSubscriptionQuotaAllocationsListProperties(JsonElement element, ModelReaderWriterOptions options = null) { options ??= ModelSerializationExtensions.WireOptions; @@ -88,22 +93,32 @@ internal static SubscriptionQuotaAllocationsList DeserializeSubscriptionQuotaAll { return null; } - IReadOnlyList value = default; + QuotaRequestStatus? provisioningState = default; + IList value = default; string nextLink = 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 QuotaRequestStatus(property.Value.GetString()); + continue; + } if (property.NameEquals("value"u8)) { if (property.Value.ValueKind == JsonValueKind.Null) { continue; } - List array = new List(); + List array = new List(); foreach (var item in property.Value.EnumerateArray()) { - array.Add(SubscriptionQuotaAllocationData.DeserializeSubscriptionQuotaAllocationData(item, options)); + array.Add(SubscriptionQuotaAllocations.DeserializeSubscriptionQuotaAllocations(item, options)); } value = array; continue; @@ -119,7 +134,7 @@ internal static SubscriptionQuotaAllocationsList DeserializeSubscriptionQuotaAll } } serializedAdditionalRawData = rawDataDictionary; - return new SubscriptionQuotaAllocationsList(value ?? new ChangeTrackingList(), nextLink, serializedAdditionalRawData); + return new SubscriptionQuotaAllocationsListProperties(provisioningState, value ?? new ChangeTrackingList(), nextLink, serializedAdditionalRawData); } private BinaryData SerializeBicep(ModelReaderWriterOptions options) @@ -133,6 +148,21 @@ private BinaryData SerializeBicep(ModelReaderWriterOptions options) builder.AppendLine("{"); + hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(ProvisioningState), out propertyOverride); + if (hasPropertyOverride) + { + builder.Append(" provisioningState: "); + builder.AppendLine(propertyOverride); + } + else + { + if (Optional.IsDefined(ProvisioningState)) + { + builder.Append(" provisioningState: "); + builder.AppendLine($"'{ProvisioningState.Value.ToString()}'"); + } + } + hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(Value), out propertyOverride); if (hasPropertyOverride) { @@ -183,9 +213,9 @@ private BinaryData SerializeBicep(ModelReaderWriterOptions options) return BinaryData.FromString(builder.ToString()); } - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { @@ -194,26 +224,26 @@ BinaryData IPersistableModel.Write(ModelReader case "bicep": return SerializeBicep(options); default: - throw new FormatException($"The model {nameof(SubscriptionQuotaAllocationsList)} does not support writing '{options.Format}' format."); + throw new FormatException($"The model {nameof(SubscriptionQuotaAllocationsListProperties)} does not support writing '{options.Format}' format."); } } - SubscriptionQuotaAllocationsList IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + SubscriptionQuotaAllocationsListProperties IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": { using JsonDocument document = JsonDocument.Parse(data); - return DeserializeSubscriptionQuotaAllocationsList(document.RootElement, options); + return DeserializeSubscriptionQuotaAllocationsListProperties(document.RootElement, options); } default: - throw new FormatException($"The model {nameof(SubscriptionQuotaAllocationsList)} does not support reading '{options.Format}' format."); + throw new FormatException($"The model {nameof(SubscriptionQuotaAllocationsListProperties)} does not support reading '{options.Format}' format."); } } - string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; } } diff --git a/sdk/quota/Azure.ResourceManager.Quota/src/Generated/Models/SubscriptionQuotaAllocationsList.cs b/sdk/quota/Azure.ResourceManager.Quota/src/Generated/Models/SubscriptionQuotaAllocationsListProperties.cs similarity index 72% rename from sdk/quota/Azure.ResourceManager.Quota/src/Generated/Models/SubscriptionQuotaAllocationsList.cs rename to sdk/quota/Azure.ResourceManager.Quota/src/Generated/Models/SubscriptionQuotaAllocationsListProperties.cs index 574386ef0dc5..6d2f45937815 100644 --- a/sdk/quota/Azure.ResourceManager.Quota/src/Generated/Models/SubscriptionQuotaAllocationsList.cs +++ b/sdk/quota/Azure.ResourceManager.Quota/src/Generated/Models/SubscriptionQuotaAllocationsListProperties.cs @@ -10,8 +10,8 @@ namespace Azure.ResourceManager.Quota.Models { - /// Subscription quota list. - internal partial class SubscriptionQuotaAllocationsList + /// The SubscriptionQuotaAllocationsListProperties. + public partial class SubscriptionQuotaAllocationsListProperties { /// /// Keeps track of any properties unknown to the library. @@ -45,26 +45,33 @@ internal partial class SubscriptionQuotaAllocationsList /// private IDictionary _serializedAdditionalRawData; - /// Initializes a new instance of . - internal SubscriptionQuotaAllocationsList() + /// Initializes a new instance of . + public SubscriptionQuotaAllocationsListProperties() { - Value = new ChangeTrackingList(); + Value = new ChangeTrackingList(); } - /// Initializes a new instance of . + /// Initializes a new instance of . + /// Request status. /// Subscription quota list. /// The URL to use for getting the next set of results. /// Keeps track of any properties unknown to the library. - internal SubscriptionQuotaAllocationsList(IReadOnlyList value, string nextLink, IDictionary serializedAdditionalRawData) + internal SubscriptionQuotaAllocationsListProperties(QuotaRequestStatus? provisioningState, IList value, string nextLink, IDictionary serializedAdditionalRawData) { + ProvisioningState = provisioningState; Value = value; NextLink = nextLink; _serializedAdditionalRawData = serializedAdditionalRawData; } + /// Request status. + [WirePath("provisioningState")] + public QuotaRequestStatus? ProvisioningState { get; } /// Subscription quota list. - public IReadOnlyList Value { get; } + [WirePath("value")] + public IList Value { get; } /// The URL to use for getting the next set of results. + [WirePath("nextLink")] public string NextLink { get; } } } diff --git a/sdk/quota/Azure.ResourceManager.Quota/src/Generated/Models/GroupQuotaUsagesBase.Serialization.cs b/sdk/quota/Azure.ResourceManager.Quota/src/Generated/Models/SubscriptionQuotaAllocationsProperties.Serialization.cs similarity index 63% rename from sdk/quota/Azure.ResourceManager.Quota/src/Generated/Models/GroupQuotaUsagesBase.Serialization.cs rename to sdk/quota/Azure.ResourceManager.Quota/src/Generated/Models/SubscriptionQuotaAllocationsProperties.Serialization.cs index 165430f2d3e4..1c446d3b655a 100644 --- a/sdk/quota/Azure.ResourceManager.Quota/src/Generated/Models/GroupQuotaUsagesBase.Serialization.cs +++ b/sdk/quota/Azure.ResourceManager.Quota/src/Generated/Models/SubscriptionQuotaAllocationsProperties.Serialization.cs @@ -14,11 +14,11 @@ namespace Azure.ResourceManager.Quota.Models { - public partial class GroupQuotaUsagesBase : IUtf8JsonSerializable, IJsonModel + public partial class SubscriptionQuotaAllocationsProperties : IUtf8JsonSerializable, IJsonModel { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); - void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) { writer.WriteStartObject(); JsonModelWriteCore(writer, options); @@ -27,72 +27,30 @@ void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWr /// The JSON writer. /// The client options for reading and writing models. - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) + protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { - throw new FormatException($"The model {nameof(GroupQuotaUsagesBase)} does not support writing '{format}' format."); + throw new FormatException($"The model {nameof(SubscriptionQuotaAllocationsProperties)} does not support writing '{format}' format."); } - if (Optional.IsDefined(Limit)) - { - writer.WritePropertyName("limit"u8); - writer.WriteNumberValue(Limit.Value); - } - if (Optional.IsDefined(Usages)) - { - writer.WritePropertyName("usages"u8); - writer.WriteNumberValue(Usages.Value); - } - if (options.Format != "W" && Optional.IsDefined(Unit)) - { - writer.WritePropertyName("unit"u8); - writer.WriteStringValue(Unit); - } - writer.WritePropertyName("name"u8); - writer.WriteStartObject(); - if (Optional.IsDefined(Value)) - { - writer.WritePropertyName("value"u8); - writer.WriteStringValue(Value); - } - if (options.Format != "W" && Optional.IsDefined(LocalizedValue)) - { - writer.WritePropertyName("localizedValue"u8); - writer.WriteStringValue(LocalizedValue); - } - 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 - } - } + base.JsonModelWriteCore(writer, options); } - GroupQuotaUsagesBase IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + SubscriptionQuotaAllocationsProperties IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { - throw new FormatException($"The model {nameof(GroupQuotaUsagesBase)} does not support reading '{format}' format."); + throw new FormatException($"The model {nameof(SubscriptionQuotaAllocationsProperties)} does not support reading '{format}' format."); } using JsonDocument document = JsonDocument.ParseValue(ref reader); - return DeserializeGroupQuotaUsagesBase(document.RootElement, options); + return DeserializeSubscriptionQuotaAllocationsProperties(document.RootElement, options); } - internal static GroupQuotaUsagesBase DeserializeGroupQuotaUsagesBase(JsonElement element, ModelReaderWriterOptions options = null) + internal static SubscriptionQuotaAllocationsProperties DeserializeSubscriptionQuotaAllocationsProperties(JsonElement element, ModelReaderWriterOptions options = null) { options ??= ModelSerializationExtensions.WireOptions; @@ -100,15 +58,20 @@ internal static GroupQuotaUsagesBase DeserializeGroupQuotaUsagesBase(JsonElement { return null; } + string resourceName = default; long? limit = default; - long? usages = default; - string unit = default; + long? shareableQuota = default; string value = default; string localizedValue = default; IDictionary serializedAdditionalRawData = default; Dictionary rawDataDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) { + if (property.NameEquals("resourceName"u8)) + { + resourceName = property.Value.GetString(); + continue; + } if (property.NameEquals("limit"u8)) { if (property.Value.ValueKind == JsonValueKind.Null) @@ -118,18 +81,13 @@ internal static GroupQuotaUsagesBase DeserializeGroupQuotaUsagesBase(JsonElement limit = property.Value.GetInt64(); continue; } - if (property.NameEquals("usages"u8)) + if (property.NameEquals("shareableQuota"u8)) { if (property.Value.ValueKind == JsonValueKind.Null) { continue; } - usages = property.Value.GetInt64(); - continue; - } - if (property.NameEquals("unit"u8)) - { - unit = property.Value.GetString(); + shareableQuota = property.Value.GetInt64(); continue; } if (property.NameEquals("name"u8)) @@ -160,10 +118,10 @@ internal static GroupQuotaUsagesBase DeserializeGroupQuotaUsagesBase(JsonElement } } serializedAdditionalRawData = rawDataDictionary; - return new GroupQuotaUsagesBase( + return new SubscriptionQuotaAllocationsProperties( + resourceName, limit, - usages, - unit, + shareableQuota, value, localizedValue, serializedAdditionalRawData); @@ -180,56 +138,56 @@ private BinaryData SerializeBicep(ModelReaderWriterOptions options) builder.AppendLine("{"); - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(Limit), out propertyOverride); + hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(ResourceName), out propertyOverride); if (hasPropertyOverride) { - builder.Append(" limit: "); + builder.Append(" resourceName: "); builder.AppendLine(propertyOverride); } else { - if (Optional.IsDefined(Limit)) + if (Optional.IsDefined(ResourceName)) { - builder.Append(" limit: "); - builder.AppendLine($"'{Limit.Value.ToString()}'"); + builder.Append(" resourceName: "); + if (ResourceName.Contains(Environment.NewLine)) + { + builder.AppendLine("'''"); + builder.AppendLine($"{ResourceName}'''"); + } + else + { + builder.AppendLine($"'{ResourceName}'"); + } } } - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(Usages), out propertyOverride); + hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(Limit), out propertyOverride); if (hasPropertyOverride) { - builder.Append(" usages: "); + builder.Append(" limit: "); builder.AppendLine(propertyOverride); } else { - if (Optional.IsDefined(Usages)) + if (Optional.IsDefined(Limit)) { - builder.Append(" usages: "); - builder.AppendLine($"'{Usages.Value.ToString()}'"); + builder.Append(" limit: "); + builder.AppendLine($"'{Limit.Value.ToString()}'"); } } - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(Unit), out propertyOverride); + hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(ShareableQuota), out propertyOverride); if (hasPropertyOverride) { - builder.Append(" unit: "); + builder.Append(" shareableQuota: "); builder.AppendLine(propertyOverride); } else { - if (Optional.IsDefined(Unit)) + if (Optional.IsDefined(ShareableQuota)) { - builder.Append(" unit: "); - if (Unit.Contains(Environment.NewLine)) - { - builder.AppendLine("'''"); - builder.AppendLine($"{Unit}'''"); - } - else - { - builder.AppendLine($"'{Unit}'"); - } + builder.Append(" shareableQuota: "); + builder.AppendLine($"'{ShareableQuota.Value.ToString()}'"); } } @@ -286,9 +244,9 @@ private BinaryData SerializeBicep(ModelReaderWriterOptions options) return BinaryData.FromString(builder.ToString()); } - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { @@ -297,26 +255,26 @@ BinaryData IPersistableModel.Write(ModelReaderWriterOption case "bicep": return SerializeBicep(options); default: - throw new FormatException($"The model {nameof(GroupQuotaUsagesBase)} does not support writing '{options.Format}' format."); + throw new FormatException($"The model {nameof(SubscriptionQuotaAllocationsProperties)} does not support writing '{options.Format}' format."); } } - GroupQuotaUsagesBase IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + SubscriptionQuotaAllocationsProperties IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": { using JsonDocument document = JsonDocument.Parse(data); - return DeserializeGroupQuotaUsagesBase(document.RootElement, options); + return DeserializeSubscriptionQuotaAllocationsProperties(document.RootElement, options); } default: - throw new FormatException($"The model {nameof(GroupQuotaUsagesBase)} does not support reading '{options.Format}' format."); + throw new FormatException($"The model {nameof(SubscriptionQuotaAllocationsProperties)} does not support reading '{options.Format}' format."); } } - string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; } } diff --git a/sdk/quota/Azure.ResourceManager.Quota/src/Generated/Models/SubscriptionQuotaAllocationsProperties.cs b/sdk/quota/Azure.ResourceManager.Quota/src/Generated/Models/SubscriptionQuotaAllocationsProperties.cs new file mode 100644 index 000000000000..2a450710596b --- /dev/null +++ b/sdk/quota/Azure.ResourceManager.Quota/src/Generated/Models/SubscriptionQuotaAllocationsProperties.cs @@ -0,0 +1,32 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; + +namespace Azure.ResourceManager.Quota.Models +{ + /// Quota properties for the specified resource. + public partial class SubscriptionQuotaAllocationsProperties : SubscriptionQuotaDetails + { + /// Initializes a new instance of . + public SubscriptionQuotaAllocationsProperties() + { + } + + /// Initializes a new instance of . + /// The resource name, such as SKU name. + /// The total quota limit for the subscription. + /// The shareable quota for the subscription. + /// Resource name. + /// Resource display name. + /// Keeps track of any properties unknown to the library. + internal SubscriptionQuotaAllocationsProperties(string resourceName, long? limit, long? shareableQuota, string value, string localizedValue, IDictionary serializedAdditionalRawData) : base(resourceName, limit, shareableQuota, value, localizedValue, serializedAdditionalRawData) + { + } + } +} diff --git a/sdk/quota/Azure.ResourceManager.Quota/src/Generated/Models/SubscriptionQuotaDetails.Serialization.cs b/sdk/quota/Azure.ResourceManager.Quota/src/Generated/Models/SubscriptionQuotaDetails.Serialization.cs index eeb5ffe35dc4..b253f08c1e10 100644 --- a/sdk/quota/Azure.ResourceManager.Quota/src/Generated/Models/SubscriptionQuotaDetails.Serialization.cs +++ b/sdk/quota/Azure.ResourceManager.Quota/src/Generated/Models/SubscriptionQuotaDetails.Serialization.cs @@ -35,10 +35,10 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit throw new FormatException($"The model {nameof(SubscriptionQuotaDetails)} does not support writing '{format}' format."); } - if (Optional.IsDefined(Region)) + if (Optional.IsDefined(ResourceName)) { - writer.WritePropertyName("region"u8); - writer.WriteStringValue(Region); + writer.WritePropertyName("resourceName"u8); + writer.WriteStringValue(ResourceName); } if (Optional.IsDefined(Limit)) { @@ -100,7 +100,7 @@ internal static SubscriptionQuotaDetails DeserializeSubscriptionQuotaDetails(Jso { return null; } - string region = default; + string resourceName = default; long? limit = default; long? shareableQuota = default; string value = default; @@ -109,9 +109,9 @@ internal static SubscriptionQuotaDetails DeserializeSubscriptionQuotaDetails(Jso Dictionary rawDataDictionary = new Dictionary(); foreach (var property in element.EnumerateObject()) { - if (property.NameEquals("region"u8)) + if (property.NameEquals("resourceName"u8)) { - region = property.Value.GetString(); + resourceName = property.Value.GetString(); continue; } if (property.NameEquals("limit"u8)) @@ -161,7 +161,7 @@ internal static SubscriptionQuotaDetails DeserializeSubscriptionQuotaDetails(Jso } serializedAdditionalRawData = rawDataDictionary; return new SubscriptionQuotaDetails( - region, + resourceName, limit, shareableQuota, value, @@ -180,25 +180,25 @@ private BinaryData SerializeBicep(ModelReaderWriterOptions options) builder.AppendLine("{"); - hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(Region), out propertyOverride); + hasPropertyOverride = hasObjectOverride && propertyOverrides.TryGetValue(nameof(ResourceName), out propertyOverride); if (hasPropertyOverride) { - builder.Append(" region: "); + builder.Append(" resourceName: "); builder.AppendLine(propertyOverride); } else { - if (Optional.IsDefined(Region)) + if (Optional.IsDefined(ResourceName)) { - builder.Append(" region: "); - if (Region.Contains(Environment.NewLine)) + builder.Append(" resourceName: "); + if (ResourceName.Contains(Environment.NewLine)) { builder.AppendLine("'''"); - builder.AppendLine($"{Region}'''"); + builder.AppendLine($"{ResourceName}'''"); } else { - builder.AppendLine($"'{Region}'"); + builder.AppendLine($"'{ResourceName}'"); } } } diff --git a/sdk/quota/Azure.ResourceManager.Quota/src/Generated/Models/SubscriptionQuotaDetails.cs b/sdk/quota/Azure.ResourceManager.Quota/src/Generated/Models/SubscriptionQuotaDetails.cs index b5155074e11f..9aaef0f21c21 100644 --- a/sdk/quota/Azure.ResourceManager.Quota/src/Generated/Models/SubscriptionQuotaDetails.cs +++ b/sdk/quota/Azure.ResourceManager.Quota/src/Generated/Models/SubscriptionQuotaDetails.cs @@ -43,7 +43,7 @@ public partial class SubscriptionQuotaDetails /// /// /// - private IDictionary _serializedAdditionalRawData; + private protected IDictionary _serializedAdditionalRawData; /// Initializes a new instance of . public SubscriptionQuotaDetails() @@ -51,15 +51,15 @@ public SubscriptionQuotaDetails() } /// Initializes a new instance of . - /// Location/Azure region for the quota requested for resource. + /// The resource name, such as SKU name. /// The total quota limit for the subscription. /// The shareable quota for the subscription. /// Resource name. /// Resource display name. /// Keeps track of any properties unknown to the library. - internal SubscriptionQuotaDetails(string region, long? limit, long? shareableQuota, string value, string localizedValue, IDictionary serializedAdditionalRawData) + internal SubscriptionQuotaDetails(string resourceName, long? limit, long? shareableQuota, string value, string localizedValue, IDictionary serializedAdditionalRawData) { - Region = region; + ResourceName = resourceName; Limit = limit; ShareableQuota = shareableQuota; Value = value; @@ -67,9 +67,9 @@ internal SubscriptionQuotaDetails(string region, long? limit, long? shareableQuo _serializedAdditionalRawData = serializedAdditionalRawData; } - /// Location/Azure region for the quota requested for resource. - [WirePath("region")] - public string Region { get; set; } + /// The resource name, such as SKU name. + [WirePath("resourceName")] + public string ResourceName { get; set; } /// The total quota limit for the subscription. [WirePath("limit")] public long? Limit { get; set; } diff --git a/sdk/quota/Azure.ResourceManager.Quota/src/Generated/QuotaAllocationRequestStatusCollection.cs b/sdk/quota/Azure.ResourceManager.Quota/src/Generated/QuotaAllocationRequestStatusCollection.cs index de3013f87bd4..33d7f3a82efd 100644 --- a/sdk/quota/Azure.ResourceManager.Quota/src/Generated/QuotaAllocationRequestStatusCollection.cs +++ b/sdk/quota/Azure.ResourceManager.Quota/src/Generated/QuotaAllocationRequestStatusCollection.cs @@ -9,6 +9,7 @@ using System.Globalization; using System.Threading; using System.Threading.Tasks; +using Autorest.CSharp.Core; using Azure.Core; using Azure.Core.Pipeline; using Azure.ResourceManager.ManagementGroups; @@ -24,6 +25,9 @@ public partial class QuotaAllocationRequestStatusCollection : ArmCollection { private readonly ClientDiagnostics _quotaAllocationRequestStatusGroupQuotaSubscriptionAllocationRequestClientDiagnostics; private readonly GroupQuotaSubscriptionAllocationRequestRestOperations _quotaAllocationRequestStatusGroupQuotaSubscriptionAllocationRequestRestClient; + private readonly string _subscriptionId; + private readonly string _groupQuotaName; + private readonly string _resourceProviderName; /// Initializes a new instance of the class for mocking. protected QuotaAllocationRequestStatusCollection() @@ -33,8 +37,16 @@ protected QuotaAllocationRequestStatusCollection() /// 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 QuotaAllocationRequestStatusCollection(ArmClient client, ResourceIdentifier id) : base(client, id) + /// The ID of the target subscription. The value must be an UUID. + /// The GroupQuota name. The name should be unique for the provided context tenantId/MgId. + /// The resource provider name, such as - Microsoft.Compute. Currently only Microsoft.Compute resource provider supports this API. + /// , or is null. + /// , or is an empty string, and was expected to be non-empty. + internal QuotaAllocationRequestStatusCollection(ArmClient client, ResourceIdentifier id, string subscriptionId, string groupQuotaName, string resourceProviderName) : base(client, id) { + _subscriptionId = subscriptionId; + _groupQuotaName = groupQuotaName; + _resourceProviderName = resourceProviderName; _quotaAllocationRequestStatusGroupQuotaSubscriptionAllocationRequestClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Quota", QuotaAllocationRequestStatusResource.ResourceType.Namespace, Diagnostics); TryGetApiVersion(QuotaAllocationRequestStatusResource.ResourceType, out string quotaAllocationRequestStatusGroupQuotaSubscriptionAllocationRequestApiVersion); _quotaAllocationRequestStatusGroupQuotaSubscriptionAllocationRequestRestClient = new GroupQuotaSubscriptionAllocationRequestRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, quotaAllocationRequestStatusGroupQuotaSubscriptionAllocationRequestApiVersion); @@ -54,7 +66,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Request Path - /// /providers/Microsoft.Management/managementGroups/{managementGroupId}/subscriptions/{subscriptionId}/providers/Microsoft.Quota/groupQuotas/{groupQuotaName}/quotaAllocationRequests/{allocationId} + /// /providers/Microsoft.Management/managementGroups/{managementGroupId}/subscriptions/{subscriptionId}/providers/Microsoft.Quota/groupQuotas/{groupQuotaName}/resourceProviders/{resourceProviderName}/quotaAllocationRequests/{allocationId} /// /// /// Operation Id @@ -62,7 +74,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-06-01-preview + /// 2024-12-12 /// /// /// Resource @@ -70,23 +82,19 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// - /// The ID of the target subscription. The value must be an UUID. - /// The GroupQuota name. The name should be unique for the provided context tenantId/MgId. /// Request Id. /// The cancellation token to use. - /// , or is an empty string, and was expected to be non-empty. - /// , or is null. - public virtual async Task> GetAsync(string subscriptionId, string groupQuotaName, string allocationId, CancellationToken cancellationToken = default) + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual async Task> GetAsync(string allocationId, CancellationToken cancellationToken = default) { - Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - Argument.AssertNotNullOrEmpty(groupQuotaName, nameof(groupQuotaName)); Argument.AssertNotNullOrEmpty(allocationId, nameof(allocationId)); using var scope = _quotaAllocationRequestStatusGroupQuotaSubscriptionAllocationRequestClientDiagnostics.CreateScope("QuotaAllocationRequestStatusCollection.Get"); scope.Start(); try { - var response = await _quotaAllocationRequestStatusGroupQuotaSubscriptionAllocationRequestRestClient.GetAsync(Id.Name, subscriptionId, groupQuotaName, allocationId, cancellationToken).ConfigureAwait(false); + var response = await _quotaAllocationRequestStatusGroupQuotaSubscriptionAllocationRequestRestClient.GetAsync(Id.Name, _subscriptionId, _groupQuotaName, _resourceProviderName, allocationId, cancellationToken).ConfigureAwait(false); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); return Response.FromValue(new QuotaAllocationRequestStatusResource(Client, response.Value), response.GetRawResponse()); @@ -103,7 +111,7 @@ public virtual async Task> GetAsy /// /// /// Request Path - /// /providers/Microsoft.Management/managementGroups/{managementGroupId}/subscriptions/{subscriptionId}/providers/Microsoft.Quota/groupQuotas/{groupQuotaName}/quotaAllocationRequests/{allocationId} + /// /providers/Microsoft.Management/managementGroups/{managementGroupId}/subscriptions/{subscriptionId}/providers/Microsoft.Quota/groupQuotas/{groupQuotaName}/resourceProviders/{resourceProviderName}/quotaAllocationRequests/{allocationId} /// /// /// Operation Id @@ -111,7 +119,7 @@ public virtual async Task> GetAsy /// /// /// Default Api Version - /// 2023-06-01-preview + /// 2024-12-12 /// /// /// Resource @@ -119,23 +127,19 @@ public virtual async Task> GetAsy /// /// /// - /// The ID of the target subscription. The value must be an UUID. - /// The GroupQuota name. The name should be unique for the provided context tenantId/MgId. /// Request Id. /// The cancellation token to use. - /// , or is an empty string, and was expected to be non-empty. - /// , or is null. - public virtual Response Get(string subscriptionId, string groupQuotaName, string allocationId, CancellationToken cancellationToken = default) + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual Response Get(string allocationId, CancellationToken cancellationToken = default) { - Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - Argument.AssertNotNullOrEmpty(groupQuotaName, nameof(groupQuotaName)); Argument.AssertNotNullOrEmpty(allocationId, nameof(allocationId)); using var scope = _quotaAllocationRequestStatusGroupQuotaSubscriptionAllocationRequestClientDiagnostics.CreateScope("QuotaAllocationRequestStatusCollection.Get"); scope.Start(); try { - var response = _quotaAllocationRequestStatusGroupQuotaSubscriptionAllocationRequestRestClient.Get(Id.Name, subscriptionId, groupQuotaName, allocationId, cancellationToken); + var response = _quotaAllocationRequestStatusGroupQuotaSubscriptionAllocationRequestRestClient.Get(Id.Name, _subscriptionId, _groupQuotaName, _resourceProviderName, allocationId, cancellationToken); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); return Response.FromValue(new QuotaAllocationRequestStatusResource(Client, response.Value), response.GetRawResponse()); @@ -147,12 +151,92 @@ public virtual Response Get(string subscri } } + /// + /// Get all the quotaAllocationRequests for a resourceProvider/location. The filter paramter for location is required. + /// + /// + /// Request Path + /// /providers/Microsoft.Management/managementGroups/{managementGroupId}/subscriptions/{subscriptionId}/providers/Microsoft.Quota/groupQuotas/{groupQuotaName}/resourceProviders/{resourceProviderName}/quotaAllocationRequests + /// + /// + /// Operation Id + /// GroupQuotaSubscriptionAllocationRequest_List + /// + /// + /// Default Api Version + /// 2024-12-12 + /// + /// + /// Resource + /// + /// + /// + /// + /// + /// | Field | Supported operators + /// |---------------------|------------------------ + /// + /// location eq {location} + /// Example: $filter=location eq eastus + /// + /// The cancellation token to use. + /// is null. + /// An async collection of that may take multiple service requests to iterate over. + public virtual AsyncPageable GetAllAsync(string filter, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(filter, nameof(filter)); + + HttpMessage FirstPageRequest(int? pageSizeHint) => _quotaAllocationRequestStatusGroupQuotaSubscriptionAllocationRequestRestClient.CreateListRequest(Id.Name, _subscriptionId, _groupQuotaName, _resourceProviderName, filter); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _quotaAllocationRequestStatusGroupQuotaSubscriptionAllocationRequestRestClient.CreateListNextPageRequest(nextLink, Id.Name, _subscriptionId, _groupQuotaName, _resourceProviderName, filter); + return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new QuotaAllocationRequestStatusResource(Client, QuotaAllocationRequestStatusData.DeserializeQuotaAllocationRequestStatusData(e)), _quotaAllocationRequestStatusGroupQuotaSubscriptionAllocationRequestClientDiagnostics, Pipeline, "QuotaAllocationRequestStatusCollection.GetAll", "value", "nextLink", cancellationToken); + } + + /// + /// Get all the quotaAllocationRequests for a resourceProvider/location. The filter paramter for location is required. + /// + /// + /// Request Path + /// /providers/Microsoft.Management/managementGroups/{managementGroupId}/subscriptions/{subscriptionId}/providers/Microsoft.Quota/groupQuotas/{groupQuotaName}/resourceProviders/{resourceProviderName}/quotaAllocationRequests + /// + /// + /// Operation Id + /// GroupQuotaSubscriptionAllocationRequest_List + /// + /// + /// Default Api Version + /// 2024-12-12 + /// + /// + /// Resource + /// + /// + /// + /// + /// + /// | Field | Supported operators + /// |---------------------|------------------------ + /// + /// location eq {location} + /// Example: $filter=location eq eastus + /// + /// The cancellation token to use. + /// is null. + /// A collection of that may take multiple service requests to iterate over. + public virtual Pageable GetAll(string filter, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(filter, nameof(filter)); + + HttpMessage FirstPageRequest(int? pageSizeHint) => _quotaAllocationRequestStatusGroupQuotaSubscriptionAllocationRequestRestClient.CreateListRequest(Id.Name, _subscriptionId, _groupQuotaName, _resourceProviderName, filter); + HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _quotaAllocationRequestStatusGroupQuotaSubscriptionAllocationRequestRestClient.CreateListNextPageRequest(nextLink, Id.Name, _subscriptionId, _groupQuotaName, _resourceProviderName, filter); + return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new QuotaAllocationRequestStatusResource(Client, QuotaAllocationRequestStatusData.DeserializeQuotaAllocationRequestStatusData(e)), _quotaAllocationRequestStatusGroupQuotaSubscriptionAllocationRequestClientDiagnostics, Pipeline, "QuotaAllocationRequestStatusCollection.GetAll", "value", "nextLink", cancellationToken); + } + /// /// Checks to see if the resource exists in azure. /// /// /// Request Path - /// /providers/Microsoft.Management/managementGroups/{managementGroupId}/subscriptions/{subscriptionId}/providers/Microsoft.Quota/groupQuotas/{groupQuotaName}/quotaAllocationRequests/{allocationId} + /// /providers/Microsoft.Management/managementGroups/{managementGroupId}/subscriptions/{subscriptionId}/providers/Microsoft.Quota/groupQuotas/{groupQuotaName}/resourceProviders/{resourceProviderName}/quotaAllocationRequests/{allocationId} /// /// /// Operation Id @@ -160,7 +244,7 @@ public virtual Response Get(string subscri /// /// /// Default Api Version - /// 2023-06-01-preview + /// 2024-12-12 /// /// /// Resource @@ -168,23 +252,19 @@ public virtual Response Get(string subscri /// /// /// - /// The ID of the target subscription. The value must be an UUID. - /// The GroupQuota name. The name should be unique for the provided context tenantId/MgId. /// Request Id. /// The cancellation token to use. - /// , or is an empty string, and was expected to be non-empty. - /// , or is null. - public virtual async Task> ExistsAsync(string subscriptionId, string groupQuotaName, string allocationId, CancellationToken cancellationToken = default) + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual async Task> ExistsAsync(string allocationId, CancellationToken cancellationToken = default) { - Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - Argument.AssertNotNullOrEmpty(groupQuotaName, nameof(groupQuotaName)); Argument.AssertNotNullOrEmpty(allocationId, nameof(allocationId)); using var scope = _quotaAllocationRequestStatusGroupQuotaSubscriptionAllocationRequestClientDiagnostics.CreateScope("QuotaAllocationRequestStatusCollection.Exists"); scope.Start(); try { - var response = await _quotaAllocationRequestStatusGroupQuotaSubscriptionAllocationRequestRestClient.GetAsync(Id.Name, subscriptionId, groupQuotaName, allocationId, cancellationToken: cancellationToken).ConfigureAwait(false); + var response = await _quotaAllocationRequestStatusGroupQuotaSubscriptionAllocationRequestRestClient.GetAsync(Id.Name, _subscriptionId, _groupQuotaName, _resourceProviderName, allocationId, cancellationToken: cancellationToken).ConfigureAwait(false); return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) @@ -199,7 +279,7 @@ public virtual async Task> ExistsAsync(string subscriptionId, str /// /// /// Request Path - /// /providers/Microsoft.Management/managementGroups/{managementGroupId}/subscriptions/{subscriptionId}/providers/Microsoft.Quota/groupQuotas/{groupQuotaName}/quotaAllocationRequests/{allocationId} + /// /providers/Microsoft.Management/managementGroups/{managementGroupId}/subscriptions/{subscriptionId}/providers/Microsoft.Quota/groupQuotas/{groupQuotaName}/resourceProviders/{resourceProviderName}/quotaAllocationRequests/{allocationId} /// /// /// Operation Id @@ -207,7 +287,7 @@ public virtual async Task> ExistsAsync(string subscriptionId, str /// /// /// Default Api Version - /// 2023-06-01-preview + /// 2024-12-12 /// /// /// Resource @@ -215,23 +295,19 @@ public virtual async Task> ExistsAsync(string subscriptionId, str /// /// /// - /// The ID of the target subscription. The value must be an UUID. - /// The GroupQuota name. The name should be unique for the provided context tenantId/MgId. /// Request Id. /// The cancellation token to use. - /// , or is an empty string, and was expected to be non-empty. - /// , or is null. - public virtual Response Exists(string subscriptionId, string groupQuotaName, string allocationId, CancellationToken cancellationToken = default) + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual Response Exists(string allocationId, CancellationToken cancellationToken = default) { - Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - Argument.AssertNotNullOrEmpty(groupQuotaName, nameof(groupQuotaName)); Argument.AssertNotNullOrEmpty(allocationId, nameof(allocationId)); using var scope = _quotaAllocationRequestStatusGroupQuotaSubscriptionAllocationRequestClientDiagnostics.CreateScope("QuotaAllocationRequestStatusCollection.Exists"); scope.Start(); try { - var response = _quotaAllocationRequestStatusGroupQuotaSubscriptionAllocationRequestRestClient.Get(Id.Name, subscriptionId, groupQuotaName, allocationId, cancellationToken: cancellationToken); + var response = _quotaAllocationRequestStatusGroupQuotaSubscriptionAllocationRequestRestClient.Get(Id.Name, _subscriptionId, _groupQuotaName, _resourceProviderName, allocationId, cancellationToken: cancellationToken); return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) @@ -246,7 +322,7 @@ public virtual Response Exists(string subscriptionId, string groupQuotaNam /// /// /// Request Path - /// /providers/Microsoft.Management/managementGroups/{managementGroupId}/subscriptions/{subscriptionId}/providers/Microsoft.Quota/groupQuotas/{groupQuotaName}/quotaAllocationRequests/{allocationId} + /// /providers/Microsoft.Management/managementGroups/{managementGroupId}/subscriptions/{subscriptionId}/providers/Microsoft.Quota/groupQuotas/{groupQuotaName}/resourceProviders/{resourceProviderName}/quotaAllocationRequests/{allocationId} /// /// /// Operation Id @@ -254,7 +330,7 @@ public virtual Response Exists(string subscriptionId, string groupQuotaNam /// /// /// Default Api Version - /// 2023-06-01-preview + /// 2024-12-12 /// /// /// Resource @@ -262,23 +338,19 @@ public virtual Response Exists(string subscriptionId, string groupQuotaNam /// /// /// - /// The ID of the target subscription. The value must be an UUID. - /// The GroupQuota name. The name should be unique for the provided context tenantId/MgId. /// Request Id. /// The cancellation token to use. - /// , or is an empty string, and was expected to be non-empty. - /// , or is null. - public virtual async Task> GetIfExistsAsync(string subscriptionId, string groupQuotaName, string allocationId, CancellationToken cancellationToken = default) + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual async Task> GetIfExistsAsync(string allocationId, CancellationToken cancellationToken = default) { - Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - Argument.AssertNotNullOrEmpty(groupQuotaName, nameof(groupQuotaName)); Argument.AssertNotNullOrEmpty(allocationId, nameof(allocationId)); using var scope = _quotaAllocationRequestStatusGroupQuotaSubscriptionAllocationRequestClientDiagnostics.CreateScope("QuotaAllocationRequestStatusCollection.GetIfExists"); scope.Start(); try { - var response = await _quotaAllocationRequestStatusGroupQuotaSubscriptionAllocationRequestRestClient.GetAsync(Id.Name, subscriptionId, groupQuotaName, allocationId, cancellationToken: cancellationToken).ConfigureAwait(false); + var response = await _quotaAllocationRequestStatusGroupQuotaSubscriptionAllocationRequestRestClient.GetAsync(Id.Name, _subscriptionId, _groupQuotaName, _resourceProviderName, allocationId, cancellationToken: cancellationToken).ConfigureAwait(false); if (response.Value == null) return new NoValueResponse(response.GetRawResponse()); return Response.FromValue(new QuotaAllocationRequestStatusResource(Client, response.Value), response.GetRawResponse()); @@ -295,7 +367,7 @@ public virtual async Task /// /// /// Request Path - /// /providers/Microsoft.Management/managementGroups/{managementGroupId}/subscriptions/{subscriptionId}/providers/Microsoft.Quota/groupQuotas/{groupQuotaName}/quotaAllocationRequests/{allocationId} + /// /providers/Microsoft.Management/managementGroups/{managementGroupId}/subscriptions/{subscriptionId}/providers/Microsoft.Quota/groupQuotas/{groupQuotaName}/resourceProviders/{resourceProviderName}/quotaAllocationRequests/{allocationId} /// /// /// Operation Id @@ -303,7 +375,7 @@ public virtual async Task /// /// /// Default Api Version - /// 2023-06-01-preview + /// 2024-12-12 /// /// /// Resource @@ -311,23 +383,19 @@ public virtual async Task /// /// /// - /// The ID of the target subscription. The value must be an UUID. - /// The GroupQuota name. The name should be unique for the provided context tenantId/MgId. /// Request Id. /// The cancellation token to use. - /// , or is an empty string, and was expected to be non-empty. - /// , or is null. - public virtual NullableResponse GetIfExists(string subscriptionId, string groupQuotaName, string allocationId, CancellationToken cancellationToken = default) + /// is an empty string, and was expected to be non-empty. + /// is null. + public virtual NullableResponse GetIfExists(string allocationId, CancellationToken cancellationToken = default) { - Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - Argument.AssertNotNullOrEmpty(groupQuotaName, nameof(groupQuotaName)); Argument.AssertNotNullOrEmpty(allocationId, nameof(allocationId)); using var scope = _quotaAllocationRequestStatusGroupQuotaSubscriptionAllocationRequestClientDiagnostics.CreateScope("QuotaAllocationRequestStatusCollection.GetIfExists"); scope.Start(); try { - var response = _quotaAllocationRequestStatusGroupQuotaSubscriptionAllocationRequestRestClient.Get(Id.Name, subscriptionId, groupQuotaName, allocationId, cancellationToken: cancellationToken); + var response = _quotaAllocationRequestStatusGroupQuotaSubscriptionAllocationRequestRestClient.Get(Id.Name, _subscriptionId, _groupQuotaName, _resourceProviderName, allocationId, cancellationToken: cancellationToken); if (response.Value == null) return new NoValueResponse(response.GetRawResponse()); return Response.FromValue(new QuotaAllocationRequestStatusResource(Client, response.Value), response.GetRawResponse()); diff --git a/sdk/quota/Azure.ResourceManager.Quota/src/Generated/QuotaAllocationRequestStatusResource.cs b/sdk/quota/Azure.ResourceManager.Quota/src/Generated/QuotaAllocationRequestStatusResource.cs index a0e1ed92dc61..9042e9c235a5 100644 --- a/sdk/quota/Azure.ResourceManager.Quota/src/Generated/QuotaAllocationRequestStatusResource.cs +++ b/sdk/quota/Azure.ResourceManager.Quota/src/Generated/QuotaAllocationRequestStatusResource.cs @@ -27,10 +27,11 @@ public partial class QuotaAllocationRequestStatusResource : ArmResource /// The managementGroupId. /// The subscriptionId. /// The groupQuotaName. + /// The resourceProviderName. /// The allocationId. - public static ResourceIdentifier CreateResourceIdentifier(string managementGroupId, string subscriptionId, string groupQuotaName, string allocationId) + public static ResourceIdentifier CreateResourceIdentifier(string managementGroupId, string subscriptionId, string groupQuotaName, string resourceProviderName, string allocationId) { - var resourceId = $"/providers/Microsoft.Management/managementGroups/{managementGroupId}/subscriptions/{subscriptionId}/providers/Microsoft.Quota/groupQuotas/{groupQuotaName}/quotaAllocationRequests/{allocationId}"; + var resourceId = $"/providers/Microsoft.Management/managementGroups/{managementGroupId}/subscriptions/{subscriptionId}/providers/Microsoft.Quota/groupQuotas/{groupQuotaName}/resourceProviders/{resourceProviderName}/quotaAllocationRequests/{allocationId}"; return new ResourceIdentifier(resourceId); } @@ -39,7 +40,7 @@ public static ResourceIdentifier CreateResourceIdentifier(string managementGroup private readonly QuotaAllocationRequestStatusData _data; /// Gets the resource type for the operations. - public static readonly ResourceType ResourceType = "Microsoft.Quota/groupQuotas/quotaAllocationRequests"; + public static readonly ResourceType ResourceType = "Microsoft.Quota/groupQuotas/resourceProviders/quotaAllocationRequests"; /// Initializes a new instance of the class for mocking. protected QuotaAllocationRequestStatusResource() @@ -94,7 +95,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Request Path - /// /providers/Microsoft.Management/managementGroups/{managementGroupId}/subscriptions/{subscriptionId}/providers/Microsoft.Quota/groupQuotas/{groupQuotaName}/quotaAllocationRequests/{allocationId} + /// /providers/Microsoft.Management/managementGroups/{managementGroupId}/subscriptions/{subscriptionId}/providers/Microsoft.Quota/groupQuotas/{groupQuotaName}/resourceProviders/{resourceProviderName}/quotaAllocationRequests/{allocationId} /// /// /// Operation Id @@ -102,7 +103,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-06-01-preview + /// 2024-12-12 /// /// /// Resource @@ -117,7 +118,7 @@ public virtual async Task> GetAsy scope.Start(); try { - var response = await _quotaAllocationRequestStatusGroupQuotaSubscriptionAllocationRequestRestClient.GetAsync(Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + var response = await _quotaAllocationRequestStatusGroupQuotaSubscriptionAllocationRequestRestClient.GetAsync(Id.Parent.Parent.Parent.Parent.Name, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); return Response.FromValue(new QuotaAllocationRequestStatusResource(Client, response.Value), response.GetRawResponse()); @@ -134,7 +135,7 @@ public virtual async Task> GetAsy /// /// /// Request Path - /// /providers/Microsoft.Management/managementGroups/{managementGroupId}/subscriptions/{subscriptionId}/providers/Microsoft.Quota/groupQuotas/{groupQuotaName}/quotaAllocationRequests/{allocationId} + /// /providers/Microsoft.Management/managementGroups/{managementGroupId}/subscriptions/{subscriptionId}/providers/Microsoft.Quota/groupQuotas/{groupQuotaName}/resourceProviders/{resourceProviderName}/quotaAllocationRequests/{allocationId} /// /// /// Operation Id @@ -142,7 +143,7 @@ public virtual async Task> GetAsy /// /// /// Default Api Version - /// 2023-06-01-preview + /// 2024-12-12 /// /// /// Resource @@ -157,7 +158,7 @@ public virtual Response Get(CancellationTo scope.Start(); try { - var response = _quotaAllocationRequestStatusGroupQuotaSubscriptionAllocationRequestRestClient.Get(Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken); + var response = _quotaAllocationRequestStatusGroupQuotaSubscriptionAllocationRequestRestClient.Get(Id.Parent.Parent.Parent.Parent.Name, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, cancellationToken); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); return Response.FromValue(new QuotaAllocationRequestStatusResource(Client, response.Value), response.GetRawResponse()); diff --git a/sdk/quota/Azure.ResourceManager.Quota/src/Generated/QuotaRequestDetailCollection.cs b/sdk/quota/Azure.ResourceManager.Quota/src/Generated/QuotaRequestDetailCollection.cs index 8c47589fdcc2..64e42af85ebc 100644 --- a/sdk/quota/Azure.ResourceManager.Quota/src/Generated/QuotaRequestDetailCollection.cs +++ b/sdk/quota/Azure.ResourceManager.Quota/src/Generated/QuotaRequestDetailCollection.cs @@ -54,7 +54,7 @@ internal QuotaRequestDetailCollection(ArmClient client, ResourceIdentifier id) : /// /// /// Default Api Version - /// 2023-06-01-preview + /// 2024-12-12 /// /// /// Resource @@ -99,7 +99,7 @@ public virtual async Task> GetAsync(string /// /// /// Default Api Version - /// 2023-06-01-preview + /// 2024-12-12 /// /// /// Resource @@ -144,7 +144,7 @@ public virtual Response Get(string id, CancellationT /// /// /// Default Api Version - /// 2023-06-01-preview + /// 2024-12-12 /// /// /// Resource @@ -185,7 +185,7 @@ public virtual AsyncPageable GetAllAsync(string filt /// /// /// Default Api Version - /// 2023-06-01-preview + /// 2024-12-12 /// /// /// Resource @@ -226,7 +226,7 @@ public virtual Pageable GetAll(string filter = null, /// /// /// Default Api Version - /// 2023-06-01-preview + /// 2024-12-12 /// /// /// Resource @@ -269,7 +269,7 @@ public virtual async Task> ExistsAsync(string id, CancellationTok /// /// /// Default Api Version - /// 2023-06-01-preview + /// 2024-12-12 /// /// /// Resource @@ -312,7 +312,7 @@ public virtual Response Exists(string id, CancellationToken cancellationTo /// /// /// Default Api Version - /// 2023-06-01-preview + /// 2024-12-12 /// /// /// Resource @@ -357,7 +357,7 @@ public virtual async Task> GetIfExi /// /// /// Default Api Version - /// 2023-06-01-preview + /// 2024-12-12 /// /// /// Resource diff --git a/sdk/quota/Azure.ResourceManager.Quota/src/Generated/QuotaRequestDetailResource.cs b/sdk/quota/Azure.ResourceManager.Quota/src/Generated/QuotaRequestDetailResource.cs index c94bde1be168..3a6165b7d008 100644 --- a/sdk/quota/Azure.ResourceManager.Quota/src/Generated/QuotaRequestDetailResource.cs +++ b/sdk/quota/Azure.ResourceManager.Quota/src/Generated/QuotaRequestDetailResource.cs @@ -99,7 +99,7 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// /// Default Api Version - /// 2023-06-01-preview + /// 2024-12-12 /// /// /// Resource @@ -139,7 +139,7 @@ public virtual async Task> GetAsync(Cancell /// /// /// Default Api Version - /// 2023-06-01-preview + /// 2024-12-12 /// /// /// Resource diff --git a/sdk/quota/Azure.ResourceManager.Quota/src/Generated/RestOperations/GroupQuotaLimitsRequestRestOperations.cs b/sdk/quota/Azure.ResourceManager.Quota/src/Generated/RestOperations/GroupQuotaLimitsRequestRestOperations.cs index b57c7f499eb3..4f40a8418064 100644 --- a/sdk/quota/Azure.ResourceManager.Quota/src/Generated/RestOperations/GroupQuotaLimitsRequestRestOperations.cs +++ b/sdk/quota/Azure.ResourceManager.Quota/src/Generated/RestOperations/GroupQuotaLimitsRequestRestOperations.cs @@ -32,11 +32,11 @@ public GroupQuotaLimitsRequestRestOperations(HttpPipeline pipeline, string appli { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-06-01-preview"; + _apiVersion = apiVersion ?? "2024-12-12"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } - internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string managementGroupId, string groupQuotaName, string resourceProviderName, string resourceName, GroupQuotaRequestStatusData data) + internal RequestUriBuilder CreateUpdateRequestUri(string managementGroupId, string groupQuotaName, string resourceProviderName, AzureLocation location, GroupQuotaLimitListData data) { var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); @@ -46,120 +46,13 @@ internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string managementGroup uri.AppendPath(groupQuotaName, true); uri.AppendPath("/resourceProviders/", false); uri.AppendPath(resourceProviderName, true); - uri.AppendPath("/groupQuotaRequests/", false); - uri.AppendPath(resourceName, true); + uri.AppendPath("/groupQuotaLimits/", false); + uri.AppendPath(location, true); uri.AppendQuery("api-version", _apiVersion, true); return uri; } - internal HttpMessage CreateCreateOrUpdateRequest(string managementGroupId, string groupQuotaName, string resourceProviderName, string resourceName, GroupQuotaRequestStatusData data) - { - var message = _pipeline.CreateMessage(); - var request = message.Request; - request.Method = RequestMethod.Put; - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendPath("/providers/Microsoft.Management/managementGroups/", false); - uri.AppendPath(managementGroupId, true); - uri.AppendPath("/providers/Microsoft.Quota/groupQuotas/", false); - uri.AppendPath(groupQuotaName, true); - uri.AppendPath("/resourceProviders/", false); - uri.AppendPath(resourceProviderName, true); - uri.AppendPath("/groupQuotaRequests/", false); - uri.AppendPath(resourceName, true); - uri.AppendQuery("api-version", _apiVersion, true); - request.Uri = uri; - request.Headers.Add("Accept", "application/json"); - if (data != null) - { - 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; - } - - /// - /// Put the GroupQuota requests for a specific ResourceProvider/Location/Resource. the location and resourceName ("name": {"value" : "resourceName") properties are specified in the request body. Only 1 resource quota can be requested. - /// Use the polling API - OperationsStatus URI specified in Azure-AsyncOperation header field, with retry-after duration in seconds to check the intermediate status. This API provides the finals status with the request details and status. - /// - /// Management Group Id. - /// The GroupQuota name. The name should be unique for the provided context tenantId/MgId. - /// The resource provider name, such as - Microsoft.Compute. Currently only Microsoft.Compute resource provider supports this API. - /// Resource name. - /// The GroupQuotaRequest body details for specific resourceProvider/location/resources. - /// The cancellation token to use. - /// , , or is null. - /// , , or is an empty string, and was expected to be non-empty. - public async Task CreateOrUpdateAsync(string managementGroupId, string groupQuotaName, string resourceProviderName, string resourceName, GroupQuotaRequestStatusData data = null, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(managementGroupId, nameof(managementGroupId)); - Argument.AssertNotNullOrEmpty(groupQuotaName, nameof(groupQuotaName)); - Argument.AssertNotNullOrEmpty(resourceProviderName, nameof(resourceProviderName)); - Argument.AssertNotNullOrEmpty(resourceName, nameof(resourceName)); - - using var message = CreateCreateOrUpdateRequest(managementGroupId, groupQuotaName, resourceProviderName, resourceName, 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); - } - } - - /// - /// Put the GroupQuota requests for a specific ResourceProvider/Location/Resource. the location and resourceName ("name": {"value" : "resourceName") properties are specified in the request body. Only 1 resource quota can be requested. - /// Use the polling API - OperationsStatus URI specified in Azure-AsyncOperation header field, with retry-after duration in seconds to check the intermediate status. This API provides the finals status with the request details and status. - /// - /// Management Group Id. - /// The GroupQuota name. The name should be unique for the provided context tenantId/MgId. - /// The resource provider name, such as - Microsoft.Compute. Currently only Microsoft.Compute resource provider supports this API. - /// Resource name. - /// The GroupQuotaRequest body details for specific resourceProvider/location/resources. - /// The cancellation token to use. - /// , , or is null. - /// , , or is an empty string, and was expected to be non-empty. - public Response CreateOrUpdate(string managementGroupId, string groupQuotaName, string resourceProviderName, string resourceName, GroupQuotaRequestStatusData data = null, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(managementGroupId, nameof(managementGroupId)); - Argument.AssertNotNullOrEmpty(groupQuotaName, nameof(groupQuotaName)); - Argument.AssertNotNullOrEmpty(resourceProviderName, nameof(resourceProviderName)); - Argument.AssertNotNullOrEmpty(resourceName, nameof(resourceName)); - - using var message = CreateCreateOrUpdateRequest(managementGroupId, groupQuotaName, resourceProviderName, resourceName, 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 managementGroupId, string groupQuotaName, string resourceProviderName, string resourceName, GroupQuotaRequestStatusData data) - { - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendPath("/providers/Microsoft.Management/managementGroups/", false); - uri.AppendPath(managementGroupId, true); - uri.AppendPath("/providers/Microsoft.Quota/groupQuotas/", false); - uri.AppendPath(groupQuotaName, true); - uri.AppendPath("/resourceProviders/", false); - uri.AppendPath(resourceProviderName, true); - uri.AppendPath("/groupQuotaRequests/", false); - uri.AppendPath(resourceName, true); - uri.AppendQuery("api-version", _apiVersion, true); - return uri; - } - - internal HttpMessage CreateUpdateRequest(string managementGroupId, string groupQuotaName, string resourceProviderName, string resourceName, GroupQuotaRequestStatusData data) + internal HttpMessage CreateUpdateRequest(string managementGroupId, string groupQuotaName, string resourceProviderName, AzureLocation location, GroupQuotaLimitListData data) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -172,42 +65,39 @@ internal HttpMessage CreateUpdateRequest(string managementGroupId, string groupQ uri.AppendPath(groupQuotaName, true); uri.AppendPath("/resourceProviders/", false); uri.AppendPath(resourceProviderName, true); - uri.AppendPath("/groupQuotaRequests/", false); - uri.AppendPath(resourceName, true); + uri.AppendPath("/groupQuotaLimits/", false); + uri.AppendPath(location, true); uri.AppendQuery("api-version", _apiVersion, true); request.Uri = uri; request.Headers.Add("Accept", "application/json"); - if (data != null) - { - request.Headers.Add("Content-Type", "application/json"); - var content = new Utf8JsonRequestContent(); - content.JsonWriter.WriteObjectValue(data, ModelSerializationExtensions.WireOptions); - request.Content = content; - } + request.Headers.Add("Content-Type", "application/json"); + var content = new Utf8JsonRequestContent(); + content.JsonWriter.WriteObjectValue(data, ModelSerializationExtensions.WireOptions); + request.Content = content; _userAgent.Apply(message); return message; } /// - /// Create the GroupQuota requests for a specific ResourceProvider/Location/Resource. the location and resourceName properties are specified in the request body. Only 1 resource quota can be requested. Please note that patch request creates a new groupQuota request. + /// Create the GroupQuota requests for a specific ResourceProvider/Location/Resource. The resourceName properties are specified in the request body. Only 1 resource quota can be requested. Please note that patch request creates a new groupQuota request. /// Use the polling API - OperationsStatus URI specified in Azure-AsyncOperation header field, with retry-after duration in seconds to check the intermediate status. This API provides the finals status with the request details and status. /// /// Management Group Id. /// The GroupQuota name. The name should be unique for the provided context tenantId/MgId. /// The resource provider name, such as - Microsoft.Compute. Currently only Microsoft.Compute resource provider supports this API. - /// Resource name. + /// The name of the Azure region. /// The GroupQuotaRequest body details for specific resourceProvider/location/resources. /// 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 managementGroupId, string groupQuotaName, string resourceProviderName, string resourceName, GroupQuotaRequestStatusData data = null, CancellationToken cancellationToken = default) + /// , , or is null. + /// , or is an empty string, and was expected to be non-empty. + public async Task UpdateAsync(string managementGroupId, string groupQuotaName, string resourceProviderName, AzureLocation location, GroupQuotaLimitListData data, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(managementGroupId, nameof(managementGroupId)); Argument.AssertNotNullOrEmpty(groupQuotaName, nameof(groupQuotaName)); Argument.AssertNotNullOrEmpty(resourceProviderName, nameof(resourceProviderName)); - Argument.AssertNotNullOrEmpty(resourceName, nameof(resourceName)); + Argument.AssertNotNull(data, nameof(data)); - using var message = CreateUpdateRequest(managementGroupId, groupQuotaName, resourceProviderName, resourceName, data); + using var message = CreateUpdateRequest(managementGroupId, groupQuotaName, resourceProviderName, location, data); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -220,25 +110,25 @@ public async Task UpdateAsync(string managementGroupId, string groupQu } /// - /// Create the GroupQuota requests for a specific ResourceProvider/Location/Resource. the location and resourceName properties are specified in the request body. Only 1 resource quota can be requested. Please note that patch request creates a new groupQuota request. + /// Create the GroupQuota requests for a specific ResourceProvider/Location/Resource. The resourceName properties are specified in the request body. Only 1 resource quota can be requested. Please note that patch request creates a new groupQuota request. /// Use the polling API - OperationsStatus URI specified in Azure-AsyncOperation header field, with retry-after duration in seconds to check the intermediate status. This API provides the finals status with the request details and status. /// /// Management Group Id. /// The GroupQuota name. The name should be unique for the provided context tenantId/MgId. /// The resource provider name, such as - Microsoft.Compute. Currently only Microsoft.Compute resource provider supports this API. - /// Resource name. + /// The name of the Azure region. /// The GroupQuotaRequest body details for specific resourceProvider/location/resources. /// The cancellation token to use. - /// , , or is null. - /// , , or is an empty string, and was expected to be non-empty. - public Response Update(string managementGroupId, string groupQuotaName, string resourceProviderName, string resourceName, GroupQuotaRequestStatusData data = null, CancellationToken cancellationToken = default) + /// , , or is null. + /// , or is an empty string, and was expected to be non-empty. + public Response Update(string managementGroupId, string groupQuotaName, string resourceProviderName, AzureLocation location, GroupQuotaLimitListData data, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(managementGroupId, nameof(managementGroupId)); Argument.AssertNotNullOrEmpty(groupQuotaName, nameof(groupQuotaName)); Argument.AssertNotNullOrEmpty(resourceProviderName, nameof(resourceProviderName)); - Argument.AssertNotNullOrEmpty(resourceName, nameof(resourceName)); + Argument.AssertNotNull(data, nameof(data)); - using var message = CreateUpdateRequest(managementGroupId, groupQuotaName, resourceProviderName, resourceName, data); + using var message = CreateUpdateRequest(managementGroupId, groupQuotaName, resourceProviderName, location, data); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { diff --git a/sdk/quota/Azure.ResourceManager.Quota/src/Generated/RestOperations/GroupQuotaLimitsRestOperations.cs b/sdk/quota/Azure.ResourceManager.Quota/src/Generated/RestOperations/GroupQuotaLimitsRestOperations.cs index 0490549ae97d..7aa81ac8edbe 100644 --- a/sdk/quota/Azure.ResourceManager.Quota/src/Generated/RestOperations/GroupQuotaLimitsRestOperations.cs +++ b/sdk/quota/Azure.ResourceManager.Quota/src/Generated/RestOperations/GroupQuotaLimitsRestOperations.cs @@ -11,7 +11,6 @@ using System.Threading.Tasks; using Azure.Core; using Azure.Core.Pipeline; -using Azure.ResourceManager.Quota.Models; namespace Azure.ResourceManager.Quota { @@ -32,11 +31,11 @@ public GroupQuotaLimitsRestOperations(HttpPipeline pipeline, string applicationI { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-06-01-preview"; + _apiVersion = apiVersion ?? "2024-12-12"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } - internal RequestUriBuilder CreateGetRequestUri(string managementGroupId, string groupQuotaName, string resourceProviderName, string resourceName, string filter) + internal RequestUriBuilder CreateListRequestUri(string managementGroupId, string groupQuotaName, string resourceProviderName, AzureLocation location) { var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); @@ -47,13 +46,12 @@ internal RequestUriBuilder CreateGetRequestUri(string managementGroupId, string uri.AppendPath("/resourceProviders/", false); uri.AppendPath(resourceProviderName, true); uri.AppendPath("/groupQuotaLimits/", false); - uri.AppendPath(resourceName, true); + uri.AppendPath(location, true); uri.AppendQuery("api-version", _apiVersion, true); - uri.AppendQuery("$filter", filter, true); return uri; } - internal HttpMessage CreateGetRequest(string managementGroupId, string groupQuotaName, string resourceProviderName, string resourceName, string filter) + internal HttpMessage CreateListRequest(string managementGroupId, string groupQuotaName, string resourceProviderName, AzureLocation location) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -67,322 +65,73 @@ internal HttpMessage CreateGetRequest(string managementGroupId, string groupQuot uri.AppendPath("/resourceProviders/", false); uri.AppendPath(resourceProviderName, true); uri.AppendPath("/groupQuotaLimits/", false); - uri.AppendPath(resourceName, true); + uri.AppendPath(location, true); uri.AppendQuery("api-version", _apiVersion, true); - uri.AppendQuery("$filter", filter, true); request.Uri = uri; request.Headers.Add("Accept", "application/json"); _userAgent.Apply(message); return message; } - /// - /// Gets the GroupQuotaLimits for the specific resource for a specific resource based on the resourceProviders, resourceName and $filter passed. - /// The $filter=location eq {location} is required to location specific resources groupQuota. - /// + /// Gets the GroupQuotaLimits for the specified resource provider and location for resource names passed in $filter=resourceName eq {SKU}. /// Management Group Id. /// The GroupQuota name. The name should be unique for the provided context tenantId/MgId. /// The resource provider name, such as - Microsoft.Compute. Currently only Microsoft.Compute resource provider supports this API. - /// Resource name. - /// - /// | Field | Supported operators - /// |---------------------|------------------------ - /// - /// location eq {location} - /// Example: $filter=location eq eastus - /// + /// The name of the Azure region. /// 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 managementGroupId, string groupQuotaName, string resourceProviderName, string resourceName, string filter, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(managementGroupId, nameof(managementGroupId)); - Argument.AssertNotNullOrEmpty(groupQuotaName, nameof(groupQuotaName)); - Argument.AssertNotNullOrEmpty(resourceProviderName, nameof(resourceProviderName)); - Argument.AssertNotNullOrEmpty(resourceName, nameof(resourceName)); - Argument.AssertNotNull(filter, nameof(filter)); - - using var message = CreateGetRequest(managementGroupId, groupQuotaName, resourceProviderName, resourceName, filter); - await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); - switch (message.Response.Status) - { - case 200: - { - GroupQuotaLimitData value = default; - using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = GroupQuotaLimitData.DeserializeGroupQuotaLimitData(document.RootElement); - return Response.FromValue(value, message.Response); - } - case 404: - return Response.FromValue((GroupQuotaLimitData)null, message.Response); - default: - throw new RequestFailedException(message.Response); - } - } - - /// - /// Gets the GroupQuotaLimits for the specific resource for a specific resource based on the resourceProviders, resourceName and $filter passed. - /// The $filter=location eq {location} is required to location specific resources groupQuota. - /// - /// Management Group Id. - /// The GroupQuota name. The name should be unique for the provided context tenantId/MgId. - /// The resource provider name, such as - Microsoft.Compute. Currently only Microsoft.Compute resource provider supports this API. - /// Resource name. - /// - /// | Field | Supported operators - /// |---------------------|------------------------ - /// - /// location eq {location} - /// Example: $filter=location eq eastus - /// - /// The cancellation token to use. - /// , , , or is null. - /// , , or is an empty string, and was expected to be non-empty. - public Response Get(string managementGroupId, string groupQuotaName, string resourceProviderName, string resourceName, string filter, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(managementGroupId, nameof(managementGroupId)); - Argument.AssertNotNullOrEmpty(groupQuotaName, nameof(groupQuotaName)); - Argument.AssertNotNullOrEmpty(resourceProviderName, nameof(resourceProviderName)); - Argument.AssertNotNullOrEmpty(resourceName, nameof(resourceName)); - Argument.AssertNotNull(filter, nameof(filter)); - - using var message = CreateGetRequest(managementGroupId, groupQuotaName, resourceProviderName, resourceName, filter); - _pipeline.Send(message, cancellationToken); - switch (message.Response.Status) - { - case 200: - { - GroupQuotaLimitData value = default; - using var document = JsonDocument.Parse(message.Response.ContentStream); - value = GroupQuotaLimitData.DeserializeGroupQuotaLimitData(document.RootElement); - return Response.FromValue(value, message.Response); - } - case 404: - return Response.FromValue((GroupQuotaLimitData)null, message.Response); - default: - throw new RequestFailedException(message.Response); - } - } - - internal RequestUriBuilder CreateListRequestUri(string managementGroupId, string groupQuotaName, string resourceProviderName, string filter) - { - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendPath("/providers/Microsoft.Management/managementGroups/", false); - uri.AppendPath(managementGroupId, true); - uri.AppendPath("/providers/Microsoft.Quota/groupQuotas/", false); - uri.AppendPath(groupQuotaName, true); - uri.AppendPath("/resourceProviders/", false); - uri.AppendPath(resourceProviderName, true); - uri.AppendPath("/groupQuotaLimits", false); - uri.AppendQuery("api-version", _apiVersion, true); - uri.AppendQuery("$filter", filter, true); - return uri; - } - - internal HttpMessage CreateListRequest(string managementGroupId, string groupQuotaName, string resourceProviderName, string filter) - { - var message = _pipeline.CreateMessage(); - var request = message.Request; - request.Method = RequestMethod.Get; - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendPath("/providers/Microsoft.Management/managementGroups/", false); - uri.AppendPath(managementGroupId, true); - uri.AppendPath("/providers/Microsoft.Quota/groupQuotas/", false); - uri.AppendPath(groupQuotaName, true); - uri.AppendPath("/resourceProviders/", false); - uri.AppendPath(resourceProviderName, true); - uri.AppendPath("/groupQuotaLimits", false); - uri.AppendQuery("api-version", _apiVersion, true); - uri.AppendQuery("$filter", filter, true); - request.Uri = uri; - request.Headers.Add("Accept", "application/json"); - _userAgent.Apply(message); - return message; - } - - /// - /// Gets the GroupQuotaLimits for the all resource for a specific resourceProvider and $filter passed. - /// The $filter=location eq {location} is required to location specific resources groupQuota. - /// - /// Management Group Id. - /// The GroupQuota name. The name should be unique for the provided context tenantId/MgId. - /// The resource provider name, such as - Microsoft.Compute. Currently only Microsoft.Compute resource provider supports this API. - /// - /// | Field | Supported operators - /// |---------------------|------------------------ - /// - /// location eq {location} - /// Example: $filter=location eq eastus - /// - /// 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 managementGroupId, string groupQuotaName, string resourceProviderName, string filter, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(managementGroupId, nameof(managementGroupId)); - Argument.AssertNotNullOrEmpty(groupQuotaName, nameof(groupQuotaName)); - Argument.AssertNotNullOrEmpty(resourceProviderName, nameof(resourceProviderName)); - Argument.AssertNotNull(filter, nameof(filter)); - - using var message = CreateListRequest(managementGroupId, groupQuotaName, resourceProviderName, filter); - await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); - switch (message.Response.Status) - { - case 200: - { - GroupQuotaLimitList value = default; - using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = GroupQuotaLimitList.DeserializeGroupQuotaLimitList(document.RootElement); - return Response.FromValue(value, message.Response); - } - default: - throw new RequestFailedException(message.Response); - } - } - - /// - /// Gets the GroupQuotaLimits for the all resource for a specific resourceProvider and $filter passed. - /// The $filter=location eq {location} is required to location specific resources groupQuota. - /// - /// Management Group Id. - /// The GroupQuota name. The name should be unique for the provided context tenantId/MgId. - /// The resource provider name, such as - Microsoft.Compute. Currently only Microsoft.Compute resource provider supports this API. - /// - /// | Field | Supported operators - /// |---------------------|------------------------ - /// - /// location eq {location} - /// Example: $filter=location eq eastus - /// - /// The cancellation token to use. - /// , , or is null. - /// , or is an empty string, and was expected to be non-empty. - public Response List(string managementGroupId, string groupQuotaName, string resourceProviderName, string filter, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(managementGroupId, nameof(managementGroupId)); - Argument.AssertNotNullOrEmpty(groupQuotaName, nameof(groupQuotaName)); - Argument.AssertNotNullOrEmpty(resourceProviderName, nameof(resourceProviderName)); - Argument.AssertNotNull(filter, nameof(filter)); - - using var message = CreateListRequest(managementGroupId, groupQuotaName, resourceProviderName, filter); - _pipeline.Send(message, cancellationToken); - switch (message.Response.Status) - { - case 200: - { - GroupQuotaLimitList value = default; - using var document = JsonDocument.Parse(message.Response.ContentStream); - value = GroupQuotaLimitList.DeserializeGroupQuotaLimitList(document.RootElement); - return Response.FromValue(value, message.Response); - } - default: - throw new RequestFailedException(message.Response); - } - } - - internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string managementGroupId, string groupQuotaName, string resourceProviderName, string filter) - { - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendRawNextLink(nextLink, false); - return uri; - } - - internal HttpMessage CreateListNextPageRequest(string nextLink, string managementGroupId, string groupQuotaName, string resourceProviderName, string filter) - { - 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 the GroupQuotaLimits for the all resource for a specific resourceProvider and $filter passed. - /// The $filter=location eq {location} is required to location specific resources groupQuota. - /// - /// The URL to the next page of results. - /// Management Group Id. - /// The GroupQuota name. The name should be unique for the provided context tenantId/MgId. - /// The resource provider name, such as - Microsoft.Compute. Currently only Microsoft.Compute resource provider supports this API. - /// - /// | Field | Supported operators - /// |---------------------|------------------------ - /// - /// location eq {location} - /// Example: $filter=location eq eastus - /// - /// The cancellation token to use. - /// , , , or is null. + /// , or is null. /// , or is an empty string, and was expected to be non-empty. - public async Task> ListNextPageAsync(string nextLink, string managementGroupId, string groupQuotaName, string resourceProviderName, string filter, CancellationToken cancellationToken = default) + public async Task> ListAsync(string managementGroupId, string groupQuotaName, string resourceProviderName, AzureLocation location, CancellationToken cancellationToken = default) { - Argument.AssertNotNull(nextLink, nameof(nextLink)); Argument.AssertNotNullOrEmpty(managementGroupId, nameof(managementGroupId)); Argument.AssertNotNullOrEmpty(groupQuotaName, nameof(groupQuotaName)); Argument.AssertNotNullOrEmpty(resourceProviderName, nameof(resourceProviderName)); - Argument.AssertNotNull(filter, nameof(filter)); - using var message = CreateListNextPageRequest(nextLink, managementGroupId, groupQuotaName, resourceProviderName, filter); + using var message = CreateListRequest(managementGroupId, groupQuotaName, resourceProviderName, location); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { case 200: { - GroupQuotaLimitList value = default; + GroupQuotaLimitListData value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = GroupQuotaLimitList.DeserializeGroupQuotaLimitList(document.RootElement); + value = GroupQuotaLimitListData.DeserializeGroupQuotaLimitListData(document.RootElement); return Response.FromValue(value, message.Response); } + case 404: + return Response.FromValue((GroupQuotaLimitListData)null, message.Response); default: throw new RequestFailedException(message.Response); } } - /// - /// Gets the GroupQuotaLimits for the all resource for a specific resourceProvider and $filter passed. - /// The $filter=location eq {location} is required to location specific resources groupQuota. - /// - /// The URL to the next page of results. + /// Gets the GroupQuotaLimits for the specified resource provider and location for resource names passed in $filter=resourceName eq {SKU}. /// Management Group Id. /// The GroupQuota name. The name should be unique for the provided context tenantId/MgId. /// The resource provider name, such as - Microsoft.Compute. Currently only Microsoft.Compute resource provider supports this API. - /// - /// | Field | Supported operators - /// |---------------------|------------------------ - /// - /// location eq {location} - /// Example: $filter=location eq eastus - /// + /// The name of the Azure region. /// The cancellation token to use. - /// , , , or is null. + /// , or is null. /// , or is an empty string, and was expected to be non-empty. - public Response ListNextPage(string nextLink, string managementGroupId, string groupQuotaName, string resourceProviderName, string filter, CancellationToken cancellationToken = default) + public Response List(string managementGroupId, string groupQuotaName, string resourceProviderName, AzureLocation location, CancellationToken cancellationToken = default) { - Argument.AssertNotNull(nextLink, nameof(nextLink)); Argument.AssertNotNullOrEmpty(managementGroupId, nameof(managementGroupId)); Argument.AssertNotNullOrEmpty(groupQuotaName, nameof(groupQuotaName)); Argument.AssertNotNullOrEmpty(resourceProviderName, nameof(resourceProviderName)); - Argument.AssertNotNull(filter, nameof(filter)); - using var message = CreateListNextPageRequest(nextLink, managementGroupId, groupQuotaName, resourceProviderName, filter); + using var message = CreateListRequest(managementGroupId, groupQuotaName, resourceProviderName, location); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { case 200: { - GroupQuotaLimitList value = default; + GroupQuotaLimitListData value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); - value = GroupQuotaLimitList.DeserializeGroupQuotaLimitList(document.RootElement); + value = GroupQuotaLimitListData.DeserializeGroupQuotaLimitListData(document.RootElement); return Response.FromValue(value, message.Response); } + case 404: + return Response.FromValue((GroupQuotaLimitListData)null, message.Response); default: throw new RequestFailedException(message.Response); } diff --git a/sdk/quota/Azure.ResourceManager.Quota/src/Generated/RestOperations/GroupQuotaLocationSettingsRestOperations.cs b/sdk/quota/Azure.ResourceManager.Quota/src/Generated/RestOperations/GroupQuotaLocationSettingsRestOperations.cs deleted file mode 100644 index 598a32a10d11..000000000000 --- a/sdk/quota/Azure.ResourceManager.Quota/src/Generated/RestOperations/GroupQuotaLocationSettingsRestOperations.cs +++ /dev/null @@ -1,539 +0,0 @@ -// 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.Quota.Models; - -namespace Azure.ResourceManager.Quota -{ - internal partial class GroupQuotaLocationSettingsRestOperations - { - private readonly TelemetryDetails _userAgent; - private readonly HttpPipeline _pipeline; - private readonly Uri _endpoint; - private readonly string _apiVersion; - - /// Initializes a new instance of GroupQuotaLocationSettingsRestOperations. - /// 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 GroupQuotaLocationSettingsRestOperations(HttpPipeline pipeline, string applicationId, Uri endpoint = null, string apiVersion = default) - { - _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); - _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-06-01-preview"; - _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); - } - - internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string managementGroupId, string groupQuotaName, string resourceProviderName, AzureLocation location, GroupQuotaEnforcementData data) - { - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendPath("/providers/Microsoft.Management/managementGroups/", false); - uri.AppendPath(managementGroupId, true); - uri.AppendPath("/providers/Microsoft.Quota/groupQuotas/", false); - uri.AppendPath(groupQuotaName, true); - uri.AppendPath("/resourceProviders/", false); - uri.AppendPath(resourceProviderName, true); - uri.AppendPath("/locationSettings/", false); - uri.AppendPath(location, true); - uri.AppendQuery("api-version", _apiVersion, true); - return uri; - } - - internal HttpMessage CreateCreateOrUpdateRequest(string managementGroupId, string groupQuotaName, string resourceProviderName, AzureLocation location, GroupQuotaEnforcementData data) - { - var message = _pipeline.CreateMessage(); - var request = message.Request; - request.Method = RequestMethod.Put; - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendPath("/providers/Microsoft.Management/managementGroups/", false); - uri.AppendPath(managementGroupId, true); - uri.AppendPath("/providers/Microsoft.Quota/groupQuotas/", false); - uri.AppendPath(groupQuotaName, true); - uri.AppendPath("/resourceProviders/", false); - uri.AppendPath(resourceProviderName, true); - uri.AppendPath("/locationSettings/", false); - uri.AppendPath(location, 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; - } - - /// - /// Enables the GroupQuotas enforcement for the resource provider and the location specified. The resource provider will start using the group quotas as the overall quota for the subscriptions included in the GroupQuota. The subscriptions cannot request quota at subscription level. - /// The subscriptions share the GroupQuotaLimits assigned to the GroupQuota. If the GroupQuotaLimits is used, then submit a groupQuotaLimit request for the specific resource - provider/location/resource. - /// Once the GroupQuota Enforcement is enabled then, it cannot be deleted or reverted back. To disable GroupQuota Enforcement - - /// 1. Remove all the subscriptions from the groupQuota using the delete API for Subscriptions (Check the example - GroupQuotaSubscriptions_Delete). - /// 2. Ten delete the GroupQuota (Check the example - GroupQuotas_Delete). - /// - /// Management Group Id. - /// The GroupQuota name. The name should be unique for the provided context tenantId/MgId. - /// The resource provider name, such as - Microsoft.Compute. Currently only Microsoft.Compute resource provider supports this API. - /// The name of the Azure region. - /// The GroupQuota body details for creation or update of a GroupQuota entity. - /// The cancellation token to use. - /// , , or is null. - /// , or is an empty string, and was expected to be non-empty. - public async Task CreateOrUpdateAsync(string managementGroupId, string groupQuotaName, string resourceProviderName, AzureLocation location, GroupQuotaEnforcementData data, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(managementGroupId, nameof(managementGroupId)); - Argument.AssertNotNullOrEmpty(groupQuotaName, nameof(groupQuotaName)); - Argument.AssertNotNullOrEmpty(resourceProviderName, nameof(resourceProviderName)); - Argument.AssertNotNull(data, nameof(data)); - - using var message = CreateCreateOrUpdateRequest(managementGroupId, groupQuotaName, resourceProviderName, location, 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); - } - } - - /// - /// Enables the GroupQuotas enforcement for the resource provider and the location specified. The resource provider will start using the group quotas as the overall quota for the subscriptions included in the GroupQuota. The subscriptions cannot request quota at subscription level. - /// The subscriptions share the GroupQuotaLimits assigned to the GroupQuota. If the GroupQuotaLimits is used, then submit a groupQuotaLimit request for the specific resource - provider/location/resource. - /// Once the GroupQuota Enforcement is enabled then, it cannot be deleted or reverted back. To disable GroupQuota Enforcement - - /// 1. Remove all the subscriptions from the groupQuota using the delete API for Subscriptions (Check the example - GroupQuotaSubscriptions_Delete). - /// 2. Ten delete the GroupQuota (Check the example - GroupQuotas_Delete). - /// - /// Management Group Id. - /// The GroupQuota name. The name should be unique for the provided context tenantId/MgId. - /// The resource provider name, such as - Microsoft.Compute. Currently only Microsoft.Compute resource provider supports this API. - /// The name of the Azure region. - /// The GroupQuota body details for creation or update of a GroupQuota entity. - /// The cancellation token to use. - /// , , or is null. - /// , or is an empty string, and was expected to be non-empty. - public Response CreateOrUpdate(string managementGroupId, string groupQuotaName, string resourceProviderName, AzureLocation location, GroupQuotaEnforcementData data, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(managementGroupId, nameof(managementGroupId)); - Argument.AssertNotNullOrEmpty(groupQuotaName, nameof(groupQuotaName)); - Argument.AssertNotNullOrEmpty(resourceProviderName, nameof(resourceProviderName)); - Argument.AssertNotNull(data, nameof(data)); - - using var message = CreateCreateOrUpdateRequest(managementGroupId, groupQuotaName, resourceProviderName, location, 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 managementGroupId, string groupQuotaName, string resourceProviderName, AzureLocation location, GroupQuotaEnforcementData data) - { - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendPath("/providers/Microsoft.Management/managementGroups/", false); - uri.AppendPath(managementGroupId, true); - uri.AppendPath("/providers/Microsoft.Quota/groupQuotas/", false); - uri.AppendPath(groupQuotaName, true); - uri.AppendPath("/resourceProviders/", false); - uri.AppendPath(resourceProviderName, true); - uri.AppendPath("/locationSettings/", false); - uri.AppendPath(location, true); - uri.AppendQuery("api-version", _apiVersion, true); - return uri; - } - - internal HttpMessage CreateUpdateRequest(string managementGroupId, string groupQuotaName, string resourceProviderName, AzureLocation location, GroupQuotaEnforcementData data) - { - var message = _pipeline.CreateMessage(); - var request = message.Request; - request.Method = RequestMethod.Patch; - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendPath("/providers/Microsoft.Management/managementGroups/", false); - uri.AppendPath(managementGroupId, true); - uri.AppendPath("/providers/Microsoft.Quota/groupQuotas/", false); - uri.AppendPath(groupQuotaName, true); - uri.AppendPath("/resourceProviders/", false); - uri.AppendPath(resourceProviderName, true); - uri.AppendPath("/locationSettings/", false); - uri.AppendPath(location, 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; - } - - /// - /// Enables the GroupQuotas enforcement for the resource provider and the location specified. The resource provider will start using the group quotas as the overall quota for the subscriptions included in the GroupQuota. The subscriptions cannot request quota at subscription level. - /// The subscriptions share the GroupQuotaLimits assigned to the GroupQuota. If the GroupQuotaLimits is used, then submit a groupQuotaLimit request for the specific resource - provider/location/resource. - /// Once the GroupQuota Enforcement is enabled then, it cannot be deleted or reverted back. To disable GroupQuota Enforcement - - /// 1. Remove all the subscriptions from the groupQuota using the delete API for Subscriptions (Check the example - GroupQuotaSubscriptions_Delete). - /// 2. Ten delete the GroupQuota (Check the example - GroupQuotas_Delete). - /// - /// Management Group Id. - /// The GroupQuota name. The name should be unique for the provided context tenantId/MgId. - /// The resource provider name, such as - Microsoft.Compute. Currently only Microsoft.Compute resource provider supports this API. - /// The name of the Azure region. - /// The GroupQuota body details for creation or update of a GroupQuota entity. - /// 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 managementGroupId, string groupQuotaName, string resourceProviderName, AzureLocation location, GroupQuotaEnforcementData data, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(managementGroupId, nameof(managementGroupId)); - Argument.AssertNotNullOrEmpty(groupQuotaName, nameof(groupQuotaName)); - Argument.AssertNotNullOrEmpty(resourceProviderName, nameof(resourceProviderName)); - Argument.AssertNotNull(data, nameof(data)); - - using var message = CreateUpdateRequest(managementGroupId, groupQuotaName, resourceProviderName, location, data); - await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); - switch (message.Response.Status) - { - case 200: - case 202: - return message.Response; - default: - throw new RequestFailedException(message.Response); - } - } - - /// - /// Enables the GroupQuotas enforcement for the resource provider and the location specified. The resource provider will start using the group quotas as the overall quota for the subscriptions included in the GroupQuota. The subscriptions cannot request quota at subscription level. - /// The subscriptions share the GroupQuotaLimits assigned to the GroupQuota. If the GroupQuotaLimits is used, then submit a groupQuotaLimit request for the specific resource - provider/location/resource. - /// Once the GroupQuota Enforcement is enabled then, it cannot be deleted or reverted back. To disable GroupQuota Enforcement - - /// 1. Remove all the subscriptions from the groupQuota using the delete API for Subscriptions (Check the example - GroupQuotaSubscriptions_Delete). - /// 2. Ten delete the GroupQuota (Check the example - GroupQuotas_Delete). - /// - /// Management Group Id. - /// The GroupQuota name. The name should be unique for the provided context tenantId/MgId. - /// The resource provider name, such as - Microsoft.Compute. Currently only Microsoft.Compute resource provider supports this API. - /// The name of the Azure region. - /// The GroupQuota body details for creation or update of a GroupQuota entity. - /// The cancellation token to use. - /// , , or is null. - /// , or is an empty string, and was expected to be non-empty. - public Response Update(string managementGroupId, string groupQuotaName, string resourceProviderName, AzureLocation location, GroupQuotaEnforcementData data, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(managementGroupId, nameof(managementGroupId)); - Argument.AssertNotNullOrEmpty(groupQuotaName, nameof(groupQuotaName)); - Argument.AssertNotNullOrEmpty(resourceProviderName, nameof(resourceProviderName)); - Argument.AssertNotNull(data, nameof(data)); - - using var message = CreateUpdateRequest(managementGroupId, groupQuotaName, resourceProviderName, location, data); - _pipeline.Send(message, cancellationToken); - switch (message.Response.Status) - { - case 200: - case 202: - return message.Response; - default: - throw new RequestFailedException(message.Response); - } - } - - internal RequestUriBuilder CreateGetRequestUri(string managementGroupId, string groupQuotaName, string resourceProviderName, AzureLocation location) - { - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendPath("/providers/Microsoft.Management/managementGroups/", false); - uri.AppendPath(managementGroupId, true); - uri.AppendPath("/providers/Microsoft.Quota/groupQuotas/", false); - uri.AppendPath(groupQuotaName, true); - uri.AppendPath("/resourceProviders/", false); - uri.AppendPath(resourceProviderName, true); - uri.AppendPath("/locationSettings/", false); - uri.AppendPath(location, true); - uri.AppendQuery("api-version", _apiVersion, true); - return uri; - } - - internal HttpMessage CreateGetRequest(string managementGroupId, string groupQuotaName, string resourceProviderName, AzureLocation location) - { - var message = _pipeline.CreateMessage(); - var request = message.Request; - request.Method = RequestMethod.Get; - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendPath("/providers/Microsoft.Management/managementGroups/", false); - uri.AppendPath(managementGroupId, true); - uri.AppendPath("/providers/Microsoft.Quota/groupQuotas/", false); - uri.AppendPath(groupQuotaName, true); - uri.AppendPath("/resourceProviders/", false); - uri.AppendPath(resourceProviderName, true); - uri.AppendPath("/locationSettings/", false); - uri.AppendPath(location, true); - uri.AppendQuery("api-version", _apiVersion, true); - request.Uri = uri; - request.Headers.Add("Accept", "application/json"); - _userAgent.Apply(message); - return message; - } - - /// Gets the GroupQuotas enforcement settings for the ResourceProvider/location. The locations, where GroupQuota enforcement is not enabled will return Not Found. - /// Management Group Id. - /// The GroupQuota name. The name should be unique for the provided context tenantId/MgId. - /// The resource provider name, such as - Microsoft.Compute. Currently only Microsoft.Compute resource provider supports this API. - /// The name of the Azure region. - /// 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 managementGroupId, string groupQuotaName, string resourceProviderName, AzureLocation location, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(managementGroupId, nameof(managementGroupId)); - Argument.AssertNotNullOrEmpty(groupQuotaName, nameof(groupQuotaName)); - Argument.AssertNotNullOrEmpty(resourceProviderName, nameof(resourceProviderName)); - - using var message = CreateGetRequest(managementGroupId, groupQuotaName, resourceProviderName, location); - await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); - switch (message.Response.Status) - { - case 200: - { - GroupQuotaEnforcementData value = default; - using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = GroupQuotaEnforcementData.DeserializeGroupQuotaEnforcementData(document.RootElement); - return Response.FromValue(value, message.Response); - } - case 404: - return Response.FromValue((GroupQuotaEnforcementData)null, message.Response); - default: - throw new RequestFailedException(message.Response); - } - } - - /// Gets the GroupQuotas enforcement settings for the ResourceProvider/location. The locations, where GroupQuota enforcement is not enabled will return Not Found. - /// Management Group Id. - /// The GroupQuota name. The name should be unique for the provided context tenantId/MgId. - /// The resource provider name, such as - Microsoft.Compute. Currently only Microsoft.Compute resource provider supports this API. - /// The name of the Azure region. - /// The cancellation token to use. - /// , or is null. - /// , or is an empty string, and was expected to be non-empty. - public Response Get(string managementGroupId, string groupQuotaName, string resourceProviderName, AzureLocation location, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(managementGroupId, nameof(managementGroupId)); - Argument.AssertNotNullOrEmpty(groupQuotaName, nameof(groupQuotaName)); - Argument.AssertNotNullOrEmpty(resourceProviderName, nameof(resourceProviderName)); - - using var message = CreateGetRequest(managementGroupId, groupQuotaName, resourceProviderName, location); - _pipeline.Send(message, cancellationToken); - switch (message.Response.Status) - { - case 200: - { - GroupQuotaEnforcementData value = default; - using var document = JsonDocument.Parse(message.Response.ContentStream); - value = GroupQuotaEnforcementData.DeserializeGroupQuotaEnforcementData(document.RootElement); - return Response.FromValue(value, message.Response); - } - case 404: - return Response.FromValue((GroupQuotaEnforcementData)null, message.Response); - default: - throw new RequestFailedException(message.Response); - } - } - - internal RequestUriBuilder CreateListRequestUri(string managementGroupId, string groupQuotaName, string resourceProviderName) - { - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendPath("/providers/Microsoft.Management/managementGroups/", false); - uri.AppendPath(managementGroupId, true); - uri.AppendPath("/providers/Microsoft.Quota/groupQuotas/", false); - uri.AppendPath(groupQuotaName, true); - uri.AppendPath("/resourceProviders/", false); - uri.AppendPath(resourceProviderName, true); - uri.AppendPath("/locationSettings", false); - uri.AppendQuery("api-version", _apiVersion, true); - return uri; - } - - internal HttpMessage CreateListRequest(string managementGroupId, string groupQuotaName, string resourceProviderName) - { - var message = _pipeline.CreateMessage(); - var request = message.Request; - request.Method = RequestMethod.Get; - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendPath("/providers/Microsoft.Management/managementGroups/", false); - uri.AppendPath(managementGroupId, true); - uri.AppendPath("/providers/Microsoft.Quota/groupQuotas/", false); - uri.AppendPath(groupQuotaName, true); - uri.AppendPath("/resourceProviders/", false); - uri.AppendPath(resourceProviderName, true); - uri.AppendPath("/locationSettings", false); - uri.AppendQuery("api-version", _apiVersion, true); - request.Uri = uri; - request.Headers.Add("Accept", "application/json"); - _userAgent.Apply(message); - return message; - } - - /// Returns only the list of the Azure regions settings, where the GroupQuotas enforcement is enabled. The locations not included in GroupQuota Enforcement will not be listed, the regions in failed status with listed as status Failed. - /// Management Group Id. - /// The GroupQuota name. The name should be unique for the provided context tenantId/MgId. - /// The resource provider name, such as - Microsoft.Compute. Currently only Microsoft.Compute resource provider supports this API. - /// 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 managementGroupId, string groupQuotaName, string resourceProviderName, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(managementGroupId, nameof(managementGroupId)); - Argument.AssertNotNullOrEmpty(groupQuotaName, nameof(groupQuotaName)); - Argument.AssertNotNullOrEmpty(resourceProviderName, nameof(resourceProviderName)); - - using var message = CreateListRequest(managementGroupId, groupQuotaName, resourceProviderName); - await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); - switch (message.Response.Status) - { - case 200: - { - GroupQuotasEnforcementListResponse value = default; - using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = GroupQuotasEnforcementListResponse.DeserializeGroupQuotasEnforcementListResponse(document.RootElement); - return Response.FromValue(value, message.Response); - } - default: - throw new RequestFailedException(message.Response); - } - } - - /// Returns only the list of the Azure regions settings, where the GroupQuotas enforcement is enabled. The locations not included in GroupQuota Enforcement will not be listed, the regions in failed status with listed as status Failed. - /// Management Group Id. - /// The GroupQuota name. The name should be unique for the provided context tenantId/MgId. - /// The resource provider name, such as - Microsoft.Compute. Currently only Microsoft.Compute resource provider supports this API. - /// The cancellation token to use. - /// , or is null. - /// , or is an empty string, and was expected to be non-empty. - public Response List(string managementGroupId, string groupQuotaName, string resourceProviderName, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(managementGroupId, nameof(managementGroupId)); - Argument.AssertNotNullOrEmpty(groupQuotaName, nameof(groupQuotaName)); - Argument.AssertNotNullOrEmpty(resourceProviderName, nameof(resourceProviderName)); - - using var message = CreateListRequest(managementGroupId, groupQuotaName, resourceProviderName); - _pipeline.Send(message, cancellationToken); - switch (message.Response.Status) - { - case 200: - { - GroupQuotasEnforcementListResponse value = default; - using var document = JsonDocument.Parse(message.Response.ContentStream); - value = GroupQuotasEnforcementListResponse.DeserializeGroupQuotasEnforcementListResponse(document.RootElement); - return Response.FromValue(value, message.Response); - } - default: - throw new RequestFailedException(message.Response); - } - } - - internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string managementGroupId, string groupQuotaName, string resourceProviderName) - { - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendRawNextLink(nextLink, false); - return uri; - } - - internal HttpMessage CreateListNextPageRequest(string nextLink, string managementGroupId, string groupQuotaName, string resourceProviderName) - { - 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; - } - - /// Returns only the list of the Azure regions settings, where the GroupQuotas enforcement is enabled. The locations not included in GroupQuota Enforcement will not be listed, the regions in failed status with listed as status Failed. - /// The URL to the next page of results. - /// Management Group Id. - /// The GroupQuota name. The name should be unique for the provided context tenantId/MgId. - /// The resource provider name, such as - Microsoft.Compute. Currently only Microsoft.Compute resource provider supports this API. - /// 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 managementGroupId, string groupQuotaName, string resourceProviderName, CancellationToken cancellationToken = default) - { - Argument.AssertNotNull(nextLink, nameof(nextLink)); - Argument.AssertNotNullOrEmpty(managementGroupId, nameof(managementGroupId)); - Argument.AssertNotNullOrEmpty(groupQuotaName, nameof(groupQuotaName)); - Argument.AssertNotNullOrEmpty(resourceProviderName, nameof(resourceProviderName)); - - using var message = CreateListNextPageRequest(nextLink, managementGroupId, groupQuotaName, resourceProviderName); - await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); - switch (message.Response.Status) - { - case 200: - { - GroupQuotasEnforcementListResponse value = default; - using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = GroupQuotasEnforcementListResponse.DeserializeGroupQuotasEnforcementListResponse(document.RootElement); - return Response.FromValue(value, message.Response); - } - default: - throw new RequestFailedException(message.Response); - } - } - - /// Returns only the list of the Azure regions settings, where the GroupQuotas enforcement is enabled. The locations not included in GroupQuota Enforcement will not be listed, the regions in failed status with listed as status Failed. - /// The URL to the next page of results. - /// Management Group Id. - /// The GroupQuota name. The name should be unique for the provided context tenantId/MgId. - /// The resource provider name, such as - Microsoft.Compute. Currently only Microsoft.Compute resource provider supports this API. - /// 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 managementGroupId, string groupQuotaName, string resourceProviderName, CancellationToken cancellationToken = default) - { - Argument.AssertNotNull(nextLink, nameof(nextLink)); - Argument.AssertNotNullOrEmpty(managementGroupId, nameof(managementGroupId)); - Argument.AssertNotNullOrEmpty(groupQuotaName, nameof(groupQuotaName)); - Argument.AssertNotNullOrEmpty(resourceProviderName, nameof(resourceProviderName)); - - using var message = CreateListNextPageRequest(nextLink, managementGroupId, groupQuotaName, resourceProviderName); - _pipeline.Send(message, cancellationToken); - switch (message.Response.Status) - { - case 200: - { - GroupQuotasEnforcementListResponse value = default; - using var document = JsonDocument.Parse(message.Response.ContentStream); - value = GroupQuotasEnforcementListResponse.DeserializeGroupQuotasEnforcementListResponse(document.RootElement); - return Response.FromValue(value, message.Response); - } - default: - throw new RequestFailedException(message.Response); - } - } - } -} diff --git a/sdk/quota/Azure.ResourceManager.Quota/src/Generated/RestOperations/GroupQuotaSubscriptionAllocationRequestRestOperations.cs b/sdk/quota/Azure.ResourceManager.Quota/src/Generated/RestOperations/GroupQuotaSubscriptionAllocationRequestRestOperations.cs index 58bbc0c7ec22..c9eec03310e0 100644 --- a/sdk/quota/Azure.ResourceManager.Quota/src/Generated/RestOperations/GroupQuotaSubscriptionAllocationRequestRestOperations.cs +++ b/sdk/quota/Azure.ResourceManager.Quota/src/Generated/RestOperations/GroupQuotaSubscriptionAllocationRequestRestOperations.cs @@ -32,115 +32,11 @@ public GroupQuotaSubscriptionAllocationRequestRestOperations(HttpPipeline pipeli { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-06-01-preview"; + _apiVersion = apiVersion ?? "2024-12-12"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } - internal RequestUriBuilder CreateGetRequestUri(string managementGroupId, string subscriptionId, string groupQuotaName, string allocationId) - { - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendPath("/providers/Microsoft.Management/managementGroups/", false); - uri.AppendPath(managementGroupId, true); - uri.AppendPath("/subscriptions/", false); - uri.AppendPath(subscriptionId, true); - uri.AppendPath("/providers/Microsoft.Quota/groupQuotas/", false); - uri.AppendPath(groupQuotaName, true); - uri.AppendPath("/quotaAllocationRequests/", false); - uri.AppendPath(allocationId, true); - uri.AppendQuery("api-version", _apiVersion, true); - return uri; - } - - internal HttpMessage CreateGetRequest(string managementGroupId, string subscriptionId, string groupQuotaName, string allocationId) - { - var message = _pipeline.CreateMessage(); - var request = message.Request; - request.Method = RequestMethod.Get; - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendPath("/providers/Microsoft.Management/managementGroups/", false); - uri.AppendPath(managementGroupId, true); - uri.AppendPath("/subscriptions/", false); - uri.AppendPath(subscriptionId, true); - uri.AppendPath("/providers/Microsoft.Quota/groupQuotas/", false); - uri.AppendPath(groupQuotaName, true); - uri.AppendPath("/quotaAllocationRequests/", false); - uri.AppendPath(allocationId, true); - uri.AppendQuery("api-version", _apiVersion, true); - request.Uri = uri; - request.Headers.Add("Accept", "application/json"); - _userAgent.Apply(message); - return message; - } - - /// Get the quota allocation request status for the subscriptionId by allocationId. - /// Management Group Id. - /// The ID of the target subscription. The value must be an UUID. - /// The GroupQuota name. The name should be unique for the provided context tenantId/MgId. - /// Request Id. - /// 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 managementGroupId, string subscriptionId, string groupQuotaName, string allocationId, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(managementGroupId, nameof(managementGroupId)); - Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - Argument.AssertNotNullOrEmpty(groupQuotaName, nameof(groupQuotaName)); - Argument.AssertNotNullOrEmpty(allocationId, nameof(allocationId)); - - using var message = CreateGetRequest(managementGroupId, subscriptionId, groupQuotaName, allocationId); - await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); - switch (message.Response.Status) - { - case 200: - { - QuotaAllocationRequestStatusData value = default; - using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = QuotaAllocationRequestStatusData.DeserializeQuotaAllocationRequestStatusData(document.RootElement); - return Response.FromValue(value, message.Response); - } - case 404: - return Response.FromValue((QuotaAllocationRequestStatusData)null, message.Response); - default: - throw new RequestFailedException(message.Response); - } - } - - /// Get the quota allocation request status for the subscriptionId by allocationId. - /// Management Group Id. - /// The ID of the target subscription. The value must be an UUID. - /// The GroupQuota name. The name should be unique for the provided context tenantId/MgId. - /// Request Id. - /// The cancellation token to use. - /// , , or is null. - /// , , or is an empty string, and was expected to be non-empty. - public Response Get(string managementGroupId, string subscriptionId, string groupQuotaName, string allocationId, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(managementGroupId, nameof(managementGroupId)); - Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - Argument.AssertNotNullOrEmpty(groupQuotaName, nameof(groupQuotaName)); - Argument.AssertNotNullOrEmpty(allocationId, nameof(allocationId)); - - using var message = CreateGetRequest(managementGroupId, subscriptionId, groupQuotaName, allocationId); - _pipeline.Send(message, cancellationToken); - switch (message.Response.Status) - { - case 200: - { - QuotaAllocationRequestStatusData value = default; - using var document = JsonDocument.Parse(message.Response.ContentStream); - value = QuotaAllocationRequestStatusData.DeserializeQuotaAllocationRequestStatusData(document.RootElement); - return Response.FromValue(value, message.Response); - } - case 404: - return Response.FromValue((QuotaAllocationRequestStatusData)null, message.Response); - default: - throw new RequestFailedException(message.Response); - } - } - - internal RequestUriBuilder CreateListRequestUri(string managementGroupId, string subscriptionId, string groupQuotaName, string resourceProviderName, string filter) + internal RequestUriBuilder CreateUpdateRequestUri(string managementGroupId, string subscriptionId, string groupQuotaName, string resourceProviderName, AzureLocation location, SubscriptionQuotaAllocationsListData data) { var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); @@ -152,17 +48,17 @@ internal RequestUriBuilder CreateListRequestUri(string managementGroupId, string uri.AppendPath(groupQuotaName, true); uri.AppendPath("/resourceProviders/", false); uri.AppendPath(resourceProviderName, true); - uri.AppendPath("/quotaAllocationRequests", false); + uri.AppendPath("/quotaAllocations/", false); + uri.AppendPath(location, true); uri.AppendQuery("api-version", _apiVersion, true); - uri.AppendQuery("$filter", filter, true); return uri; } - internal HttpMessage CreateListRequest(string managementGroupId, string subscriptionId, string groupQuotaName, string resourceProviderName, string filter) + internal HttpMessage CreateUpdateRequest(string managementGroupId, string subscriptionId, string groupQuotaName, string resourceProviderName, AzureLocation location, SubscriptionQuotaAllocationsListData data) { var message = _pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethod.Get; + request.Method = RequestMethod.Patch; var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); uri.AppendPath("/providers/Microsoft.Management/managementGroups/", false); @@ -173,94 +69,80 @@ internal HttpMessage CreateListRequest(string managementGroupId, string subscrip uri.AppendPath(groupQuotaName, true); uri.AppendPath("/resourceProviders/", false); uri.AppendPath(resourceProviderName, true); - uri.AppendPath("/quotaAllocationRequests", false); + uri.AppendPath("/quotaAllocations/", false); + uri.AppendPath(location, true); uri.AppendQuery("api-version", _apiVersion, true); - uri.AppendQuery("$filter", filter, 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; } - /// Get all the quotaAllocationRequests for a resourceProvider/location. The filter paramter for location is required. + /// Request to assign quota from group quota to a specific Subscription. The assign GroupQuota to subscriptions or reduce the quota allocated to subscription to give back the unused quota ( quota >= usages) to the groupQuota. So, this API can be used to assign Quota to subscriptions and assign back unused quota to group quota, which can be assigned to another subscriptions in the GroupQuota. User can collect unused quotas from multiple subscriptions within the groupQuota and assign the groupQuota to the subscription, where it's needed. /// Management Group Id. /// The ID of the target subscription. The value must be an UUID. /// The GroupQuota name. The name should be unique for the provided context tenantId/MgId. /// The resource provider name, such as - Microsoft.Compute. Currently only Microsoft.Compute resource provider supports this API. - /// - /// | Field | Supported operators - /// |---------------------|------------------------ - /// - /// location eq {location} - /// Example: $filter=location eq eastus - /// + /// The name of the Azure region. + /// Quota requests payload. /// The cancellation token to use. - /// , , , or is null. + /// , , , or is null. /// , , or is an empty string, and was expected to be non-empty. - public async Task> ListAsync(string managementGroupId, string subscriptionId, string groupQuotaName, string resourceProviderName, string filter, CancellationToken cancellationToken = default) + public async Task UpdateAsync(string managementGroupId, string subscriptionId, string groupQuotaName, string resourceProviderName, AzureLocation location, SubscriptionQuotaAllocationsListData data, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(managementGroupId, nameof(managementGroupId)); Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(groupQuotaName, nameof(groupQuotaName)); Argument.AssertNotNullOrEmpty(resourceProviderName, nameof(resourceProviderName)); - Argument.AssertNotNull(filter, nameof(filter)); + Argument.AssertNotNull(data, nameof(data)); - using var message = CreateListRequest(managementGroupId, subscriptionId, groupQuotaName, resourceProviderName, filter); + using var message = CreateUpdateRequest(managementGroupId, subscriptionId, groupQuotaName, resourceProviderName, location, data); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { case 200: - { - QuotaAllocationRequestStatusList value = default; - using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = QuotaAllocationRequestStatusList.DeserializeQuotaAllocationRequestStatusList(document.RootElement); - return Response.FromValue(value, message.Response); - } + case 202: + return message.Response; default: throw new RequestFailedException(message.Response); } } - /// Get all the quotaAllocationRequests for a resourceProvider/location. The filter paramter for location is required. + /// Request to assign quota from group quota to a specific Subscription. The assign GroupQuota to subscriptions or reduce the quota allocated to subscription to give back the unused quota ( quota >= usages) to the groupQuota. So, this API can be used to assign Quota to subscriptions and assign back unused quota to group quota, which can be assigned to another subscriptions in the GroupQuota. User can collect unused quotas from multiple subscriptions within the groupQuota and assign the groupQuota to the subscription, where it's needed. /// Management Group Id. /// The ID of the target subscription. The value must be an UUID. /// The GroupQuota name. The name should be unique for the provided context tenantId/MgId. /// The resource provider name, such as - Microsoft.Compute. Currently only Microsoft.Compute resource provider supports this API. - /// - /// | Field | Supported operators - /// |---------------------|------------------------ - /// - /// location eq {location} - /// Example: $filter=location eq eastus - /// + /// The name of the Azure region. + /// Quota requests payload. /// The cancellation token to use. - /// , , , or is null. + /// , , , or is null. /// , , or is an empty string, and was expected to be non-empty. - public Response List(string managementGroupId, string subscriptionId, string groupQuotaName, string resourceProviderName, string filter, CancellationToken cancellationToken = default) + public Response Update(string managementGroupId, string subscriptionId, string groupQuotaName, string resourceProviderName, AzureLocation location, SubscriptionQuotaAllocationsListData data, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(managementGroupId, nameof(managementGroupId)); Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(groupQuotaName, nameof(groupQuotaName)); Argument.AssertNotNullOrEmpty(resourceProviderName, nameof(resourceProviderName)); - Argument.AssertNotNull(filter, nameof(filter)); + Argument.AssertNotNull(data, nameof(data)); - using var message = CreateListRequest(managementGroupId, subscriptionId, groupQuotaName, resourceProviderName, filter); + using var message = CreateUpdateRequest(managementGroupId, subscriptionId, groupQuotaName, resourceProviderName, location, data); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { case 200: - { - QuotaAllocationRequestStatusList value = default; - using var document = JsonDocument.Parse(message.Response.ContentStream); - value = QuotaAllocationRequestStatusList.DeserializeQuotaAllocationRequestStatusList(document.RootElement); - return Response.FromValue(value, message.Response); - } + case 202: + return message.Response; default: throw new RequestFailedException(message.Response); } } - internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string managementGroupId, string subscriptionId, string groupQuotaName, string resourceProviderName, string resourceName, QuotaAllocationRequestStatusData data) + internal RequestUriBuilder CreateGetRequestUri(string managementGroupId, string subscriptionId, string groupQuotaName, string resourceProviderName, string allocationId) { var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); @@ -273,16 +155,16 @@ internal RequestUriBuilder CreateCreateOrUpdateRequestUri(string managementGroup uri.AppendPath("/resourceProviders/", false); uri.AppendPath(resourceProviderName, true); uri.AppendPath("/quotaAllocationRequests/", false); - uri.AppendPath(resourceName, true); + uri.AppendPath(allocationId, true); uri.AppendQuery("api-version", _apiVersion, true); return uri; } - internal HttpMessage CreateCreateOrUpdateRequest(string managementGroupId, string subscriptionId, string groupQuotaName, string resourceProviderName, string resourceName, QuotaAllocationRequestStatusData data) + internal HttpMessage CreateGetRequest(string managementGroupId, string subscriptionId, string groupQuotaName, string resourceProviderName, string allocationId) { var message = _pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethod.Put; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); uri.AppendPath("/providers/Microsoft.Management/managementGroups/", false); @@ -294,81 +176,85 @@ internal HttpMessage CreateCreateOrUpdateRequest(string managementGroupId, strin uri.AppendPath("/resourceProviders/", false); uri.AppendPath(resourceProviderName, true); uri.AppendPath("/quotaAllocationRequests/", false); - uri.AppendPath(resourceName, true); + uri.AppendPath(allocationId, 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; } - /// Request to assign quota from group quota to a specific Subscription. The assign GroupQuota to subscriptions or reduce the quota allocated to subscription to give back the unused quota ( quota >= usages) to the groupQuota. So, this API can be used to assign Quota to subscriptions and assign back unused quota to group quota, which can be assigned to another subscriptions in the GroupQuota. + /// Get the quota allocation request status for the subscriptionId by allocationId. /// Management Group Id. /// The ID of the target subscription. The value must be an UUID. /// The GroupQuota name. The name should be unique for the provided context tenantId/MgId. /// The resource provider name, such as - Microsoft.Compute. Currently only Microsoft.Compute resource provider supports this API. - /// Resource name. - /// Quota requests payload. + /// Request Id. /// The cancellation token to use. - /// , , , , or is null. - /// , , , or is an empty string, and was expected to be non-empty. - public async Task CreateOrUpdateAsync(string managementGroupId, string subscriptionId, string groupQuotaName, string resourceProviderName, string resourceName, QuotaAllocationRequestStatusData data, CancellationToken cancellationToken = default) + /// , , , or is null. + /// , , , or is an empty string, and was expected to be non-empty. + public async Task> GetAsync(string managementGroupId, string subscriptionId, string groupQuotaName, string resourceProviderName, string allocationId, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(managementGroupId, nameof(managementGroupId)); Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(groupQuotaName, nameof(groupQuotaName)); Argument.AssertNotNullOrEmpty(resourceProviderName, nameof(resourceProviderName)); - Argument.AssertNotNullOrEmpty(resourceName, nameof(resourceName)); - Argument.AssertNotNull(data, nameof(data)); + Argument.AssertNotNullOrEmpty(allocationId, nameof(allocationId)); - using var message = CreateCreateOrUpdateRequest(managementGroupId, subscriptionId, groupQuotaName, resourceProviderName, resourceName, data); + using var message = CreateGetRequest(managementGroupId, subscriptionId, groupQuotaName, resourceProviderName, allocationId); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { case 200: - case 201: - return message.Response; + { + QuotaAllocationRequestStatusData value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = QuotaAllocationRequestStatusData.DeserializeQuotaAllocationRequestStatusData(document.RootElement); + return Response.FromValue(value, message.Response); + } + case 404: + return Response.FromValue((QuotaAllocationRequestStatusData)null, message.Response); default: throw new RequestFailedException(message.Response); } } - /// Request to assign quota from group quota to a specific Subscription. The assign GroupQuota to subscriptions or reduce the quota allocated to subscription to give back the unused quota ( quota >= usages) to the groupQuota. So, this API can be used to assign Quota to subscriptions and assign back unused quota to group quota, which can be assigned to another subscriptions in the GroupQuota. + /// Get the quota allocation request status for the subscriptionId by allocationId. /// Management Group Id. /// The ID of the target subscription. The value must be an UUID. /// The GroupQuota name. The name should be unique for the provided context tenantId/MgId. /// The resource provider name, such as - Microsoft.Compute. Currently only Microsoft.Compute resource provider supports this API. - /// Resource name. - /// Quota requests payload. + /// Request Id. /// The cancellation token to use. - /// , , , , or is null. - /// , , , or is an empty string, and was expected to be non-empty. - public Response CreateOrUpdate(string managementGroupId, string subscriptionId, string groupQuotaName, string resourceProviderName, string resourceName, QuotaAllocationRequestStatusData data, CancellationToken cancellationToken = default) + /// , , , or is null. + /// , , , or is an empty string, and was expected to be non-empty. + public Response Get(string managementGroupId, string subscriptionId, string groupQuotaName, string resourceProviderName, string allocationId, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(managementGroupId, nameof(managementGroupId)); Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(groupQuotaName, nameof(groupQuotaName)); Argument.AssertNotNullOrEmpty(resourceProviderName, nameof(resourceProviderName)); - Argument.AssertNotNullOrEmpty(resourceName, nameof(resourceName)); - Argument.AssertNotNull(data, nameof(data)); + Argument.AssertNotNullOrEmpty(allocationId, nameof(allocationId)); - using var message = CreateCreateOrUpdateRequest(managementGroupId, subscriptionId, groupQuotaName, resourceProviderName, resourceName, data); + using var message = CreateGetRequest(managementGroupId, subscriptionId, groupQuotaName, resourceProviderName, allocationId); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { case 200: - case 201: - return message.Response; + { + QuotaAllocationRequestStatusData value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = QuotaAllocationRequestStatusData.DeserializeQuotaAllocationRequestStatusData(document.RootElement); + return Response.FromValue(value, message.Response); + } + case 404: + return Response.FromValue((QuotaAllocationRequestStatusData)null, message.Response); default: throw new RequestFailedException(message.Response); } } - internal RequestUriBuilder CreateUpdateRequestUri(string managementGroupId, string subscriptionId, string groupQuotaName, string resourceProviderName, string resourceName, QuotaAllocationRequestStatusData data) + internal RequestUriBuilder CreateListRequestUri(string managementGroupId, string subscriptionId, string groupQuotaName, string resourceProviderName, string filter) { var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); @@ -380,17 +266,17 @@ internal RequestUriBuilder CreateUpdateRequestUri(string managementGroupId, stri uri.AppendPath(groupQuotaName, true); uri.AppendPath("/resourceProviders/", false); uri.AppendPath(resourceProviderName, true); - uri.AppendPath("/quotaAllocationRequests/", false); - uri.AppendPath(resourceName, true); + uri.AppendPath("/quotaAllocationRequests", false); uri.AppendQuery("api-version", _apiVersion, true); + uri.AppendQuery("$filter", filter, true); return uri; } - internal HttpMessage CreateUpdateRequest(string managementGroupId, string subscriptionId, string groupQuotaName, string resourceProviderName, string resourceName, QuotaAllocationRequestStatusData data) + internal HttpMessage CreateListRequest(string managementGroupId, string subscriptionId, string groupQuotaName, string resourceProviderName, string filter) { var message = _pipeline.CreateMessage(); var request = message.Request; - request.Method = RequestMethod.Patch; + request.Method = RequestMethod.Get; var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); uri.AppendPath("/providers/Microsoft.Management/managementGroups/", false); @@ -401,76 +287,88 @@ internal HttpMessage CreateUpdateRequest(string managementGroupId, string subscr uri.AppendPath(groupQuotaName, true); uri.AppendPath("/resourceProviders/", false); uri.AppendPath(resourceProviderName, true); - uri.AppendPath("/quotaAllocationRequests/", false); - uri.AppendPath(resourceName, true); + uri.AppendPath("/quotaAllocationRequests", false); uri.AppendQuery("api-version", _apiVersion, true); + uri.AppendQuery("$filter", filter, 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; } - /// Request to assign quota from group quota to a specific Subscription. The assign GroupQuota to subscriptions or reduce the quota allocated to subscription to give back the unused quota ( quota >= usages) to the groupQuota. So, this API can be used to assign Quota to subscriptions and assign back unused quota to group quota, which can be assigned to another subscriptions in the GroupQuota. User can collect unused quotas from multiple subscriptions within the groupQuota and assign the groupQuota to the subscription, where it's needed. + /// Get all the quotaAllocationRequests for a resourceProvider/location. The filter paramter for location is required. /// Management Group Id. /// The ID of the target subscription. The value must be an UUID. /// The GroupQuota name. The name should be unique for the provided context tenantId/MgId. /// The resource provider name, such as - Microsoft.Compute. Currently only Microsoft.Compute resource provider supports this API. - /// Resource name. - /// Quota requests payload. + /// + /// | Field | Supported operators + /// |---------------------|------------------------ + /// + /// location eq {location} + /// Example: $filter=location eq eastus + /// /// 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 managementGroupId, string subscriptionId, string groupQuotaName, string resourceProviderName, string resourceName, QuotaAllocationRequestStatusData data, CancellationToken cancellationToken = default) + /// , , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public async Task> ListAsync(string managementGroupId, string subscriptionId, string groupQuotaName, string resourceProviderName, string filter, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(managementGroupId, nameof(managementGroupId)); Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(groupQuotaName, nameof(groupQuotaName)); Argument.AssertNotNullOrEmpty(resourceProviderName, nameof(resourceProviderName)); - Argument.AssertNotNullOrEmpty(resourceName, nameof(resourceName)); - Argument.AssertNotNull(data, nameof(data)); + Argument.AssertNotNull(filter, nameof(filter)); - using var message = CreateUpdateRequest(managementGroupId, subscriptionId, groupQuotaName, resourceProviderName, resourceName, data); + using var message = CreateListRequest(managementGroupId, subscriptionId, groupQuotaName, resourceProviderName, filter); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { case 200: - case 202: - return message.Response; + { + QuotaAllocationRequestStatusList value = default; + using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); + value = QuotaAllocationRequestStatusList.DeserializeQuotaAllocationRequestStatusList(document.RootElement); + return Response.FromValue(value, message.Response); + } default: throw new RequestFailedException(message.Response); } } - /// Request to assign quota from group quota to a specific Subscription. The assign GroupQuota to subscriptions or reduce the quota allocated to subscription to give back the unused quota ( quota >= usages) to the groupQuota. So, this API can be used to assign Quota to subscriptions and assign back unused quota to group quota, which can be assigned to another subscriptions in the GroupQuota. User can collect unused quotas from multiple subscriptions within the groupQuota and assign the groupQuota to the subscription, where it's needed. + /// Get all the quotaAllocationRequests for a resourceProvider/location. The filter paramter for location is required. /// Management Group Id. /// The ID of the target subscription. The value must be an UUID. /// The GroupQuota name. The name should be unique for the provided context tenantId/MgId. /// The resource provider name, such as - Microsoft.Compute. Currently only Microsoft.Compute resource provider supports this API. - /// Resource name. - /// Quota requests payload. + /// + /// | Field | Supported operators + /// |---------------------|------------------------ + /// + /// location eq {location} + /// Example: $filter=location eq eastus + /// /// The cancellation token to use. - /// , , , , or is null. - /// , , , or is an empty string, and was expected to be non-empty. - public Response Update(string managementGroupId, string subscriptionId, string groupQuotaName, string resourceProviderName, string resourceName, QuotaAllocationRequestStatusData data, CancellationToken cancellationToken = default) + /// , , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public Response List(string managementGroupId, string subscriptionId, string groupQuotaName, string resourceProviderName, string filter, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(managementGroupId, nameof(managementGroupId)); Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(groupQuotaName, nameof(groupQuotaName)); Argument.AssertNotNullOrEmpty(resourceProviderName, nameof(resourceProviderName)); - Argument.AssertNotNullOrEmpty(resourceName, nameof(resourceName)); - Argument.AssertNotNull(data, nameof(data)); + Argument.AssertNotNull(filter, nameof(filter)); - using var message = CreateUpdateRequest(managementGroupId, subscriptionId, groupQuotaName, resourceProviderName, resourceName, data); + using var message = CreateListRequest(managementGroupId, subscriptionId, groupQuotaName, resourceProviderName, filter); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { case 200: - case 202: - return message.Response; + { + QuotaAllocationRequestStatusList value = default; + using var document = JsonDocument.Parse(message.Response.ContentStream); + value = QuotaAllocationRequestStatusList.DeserializeQuotaAllocationRequestStatusList(document.RootElement); + return Response.FromValue(value, message.Response); + } default: throw new RequestFailedException(message.Response); } diff --git a/sdk/quota/Azure.ResourceManager.Quota/src/Generated/RestOperations/GroupQuotaSubscriptionAllocationRestOperations.cs b/sdk/quota/Azure.ResourceManager.Quota/src/Generated/RestOperations/GroupQuotaSubscriptionAllocationRestOperations.cs index 2e074d82fb6d..43bbf8c321ff 100644 --- a/sdk/quota/Azure.ResourceManager.Quota/src/Generated/RestOperations/GroupQuotaSubscriptionAllocationRestOperations.cs +++ b/sdk/quota/Azure.ResourceManager.Quota/src/Generated/RestOperations/GroupQuotaSubscriptionAllocationRestOperations.cs @@ -11,7 +11,6 @@ using System.Threading.Tasks; using Azure.Core; using Azure.Core.Pipeline; -using Azure.ResourceManager.Quota.Models; namespace Azure.ResourceManager.Quota { @@ -32,123 +31,11 @@ public GroupQuotaSubscriptionAllocationRestOperations(HttpPipeline pipeline, str { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-06-01-preview"; + _apiVersion = apiVersion ?? "2024-12-12"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } - internal RequestUriBuilder CreateListRequestUri(string managementGroupId, string subscriptionId, string groupQuotaName, string filter) - { - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendPath("/providers/Microsoft.Management/managementGroups/", false); - uri.AppendPath(managementGroupId, true); - uri.AppendPath("/subscriptions/", false); - uri.AppendPath(subscriptionId, true); - uri.AppendPath("/providers/Microsoft.Quota/groupQuotas/", false); - uri.AppendPath(groupQuotaName, true); - uri.AppendPath("/quotaAllocations", false); - uri.AppendQuery("api-version", _apiVersion, true); - uri.AppendQuery("$filter", filter, true); - return uri; - } - - internal HttpMessage CreateListRequest(string managementGroupId, string subscriptionId, string groupQuotaName, string filter) - { - var message = _pipeline.CreateMessage(); - var request = message.Request; - request.Method = RequestMethod.Get; - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendPath("/providers/Microsoft.Management/managementGroups/", false); - uri.AppendPath(managementGroupId, true); - uri.AppendPath("/subscriptions/", false); - uri.AppendPath(subscriptionId, true); - uri.AppendPath("/providers/Microsoft.Quota/groupQuotas/", false); - uri.AppendPath(groupQuotaName, true); - uri.AppendPath("/quotaAllocations", false); - uri.AppendQuery("api-version", _apiVersion, true); - uri.AppendQuery("$filter", filter, true); - request.Uri = uri; - request.Headers.Add("Accept", "application/json"); - _userAgent.Apply(message); - return message; - } - - /// Gets all the quota allocated to a subscription for the specific Resource Provider, Location. This will include the GroupQuota and total quota allocated to the subscription. Only the Group quota allocated to the subscription can be allocated back to the MG Group Quota. Use the $filter parameter to filter out the specific resource based on the ResourceProvider/Location. $filter is a required parameter. - /// Management Group Id. - /// The ID of the target subscription. The value must be an UUID. - /// The GroupQuota name. The name should be unique for the provided context tenantId/MgId. - /// - /// | Field | Supported operators - /// |---------------------|------------------------ - /// - /// location eq {location} - /// Example: $filter=location eq eastus - /// - /// 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 managementGroupId, string subscriptionId, string groupQuotaName, string filter, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(managementGroupId, nameof(managementGroupId)); - Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - Argument.AssertNotNullOrEmpty(groupQuotaName, nameof(groupQuotaName)); - Argument.AssertNotNull(filter, nameof(filter)); - - using var message = CreateListRequest(managementGroupId, subscriptionId, groupQuotaName, filter); - await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); - switch (message.Response.Status) - { - case 200: - { - SubscriptionQuotaAllocationsList value = default; - using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = SubscriptionQuotaAllocationsList.DeserializeSubscriptionQuotaAllocationsList(document.RootElement); - return Response.FromValue(value, message.Response); - } - default: - throw new RequestFailedException(message.Response); - } - } - - /// Gets all the quota allocated to a subscription for the specific Resource Provider, Location. This will include the GroupQuota and total quota allocated to the subscription. Only the Group quota allocated to the subscription can be allocated back to the MG Group Quota. Use the $filter parameter to filter out the specific resource based on the ResourceProvider/Location. $filter is a required parameter. - /// Management Group Id. - /// The ID of the target subscription. The value must be an UUID. - /// The GroupQuota name. The name should be unique for the provided context tenantId/MgId. - /// - /// | Field | Supported operators - /// |---------------------|------------------------ - /// - /// location eq {location} - /// Example: $filter=location eq eastus - /// - /// The cancellation token to use. - /// , , or is null. - /// , or is an empty string, and was expected to be non-empty. - public Response List(string managementGroupId, string subscriptionId, string groupQuotaName, string filter, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(managementGroupId, nameof(managementGroupId)); - Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - Argument.AssertNotNullOrEmpty(groupQuotaName, nameof(groupQuotaName)); - Argument.AssertNotNull(filter, nameof(filter)); - - using var message = CreateListRequest(managementGroupId, subscriptionId, groupQuotaName, filter); - _pipeline.Send(message, cancellationToken); - switch (message.Response.Status) - { - case 200: - { - SubscriptionQuotaAllocationsList value = default; - using var document = JsonDocument.Parse(message.Response.ContentStream); - value = SubscriptionQuotaAllocationsList.DeserializeSubscriptionQuotaAllocationsList(document.RootElement); - return Response.FromValue(value, message.Response); - } - default: - throw new RequestFailedException(message.Response); - } - } - - internal RequestUriBuilder CreateGetRequestUri(string managementGroupId, string subscriptionId, string groupQuotaName, string resourceName, string filter) + internal RequestUriBuilder CreateListRequestUri(string managementGroupId, string subscriptionId, string groupQuotaName, string resourceProviderName, AzureLocation location) { var uri = new RawRequestUriBuilder(); uri.Reset(_endpoint); @@ -158,14 +45,15 @@ internal RequestUriBuilder CreateGetRequestUri(string managementGroupId, string uri.AppendPath(subscriptionId, true); uri.AppendPath("/providers/Microsoft.Quota/groupQuotas/", false); uri.AppendPath(groupQuotaName, true); + uri.AppendPath("/resourceProviders/", false); + uri.AppendPath(resourceProviderName, true); uri.AppendPath("/quotaAllocations/", false); - uri.AppendPath(resourceName, true); + uri.AppendPath(location, true); uri.AppendQuery("api-version", _apiVersion, true); - uri.AppendQuery("$filter", filter, true); return uri; } - internal HttpMessage CreateGetRequest(string managementGroupId, string subscriptionId, string groupQuotaName, string resourceName, string filter) + internal HttpMessage CreateListRequest(string managementGroupId, string subscriptionId, string groupQuotaName, string resourceProviderName, AzureLocation location) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -178,193 +66,80 @@ internal HttpMessage CreateGetRequest(string managementGroupId, string subscript uri.AppendPath(subscriptionId, true); uri.AppendPath("/providers/Microsoft.Quota/groupQuotas/", false); uri.AppendPath(groupQuotaName, true); + uri.AppendPath("/resourceProviders/", false); + uri.AppendPath(resourceProviderName, true); uri.AppendPath("/quotaAllocations/", false); - uri.AppendPath(resourceName, true); + uri.AppendPath(location, true); uri.AppendQuery("api-version", _apiVersion, true); - uri.AppendQuery("$filter", filter, true); request.Uri = uri; request.Headers.Add("Accept", "application/json"); _userAgent.Apply(message); return message; } - /// Gets Quota allocated to a subscription for the specific Resource Provider, Location, ResourceName. This will include the GroupQuota and total quota allocated to the subscription. Only the Group quota allocated to the subscription can be allocated back to the MG Group Quota. + /// Gets all the quota allocated to a subscription for the specified resource provider and location for resource names passed in $filter=resourceName eq {SKU}. This will include the GroupQuota and total quota allocated to the subscription. Only the Group quota allocated to the subscription can be allocated back to the MG Group Quota. /// Management Group Id. /// The ID of the target subscription. The value must be an UUID. /// The GroupQuota name. The name should be unique for the provided context tenantId/MgId. - /// Resource name. - /// - /// | Field | Supported operators - /// |---------------------|------------------------ - /// - /// location eq {location} - /// Example: $filter=location eq eastus - /// + /// The resource provider name, such as - Microsoft.Compute. Currently only Microsoft.Compute resource provider supports this API. + /// The name of the Azure region. /// 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 managementGroupId, string subscriptionId, string groupQuotaName, string resourceName, string filter, CancellationToken cancellationToken = default) + /// , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public async Task> ListAsync(string managementGroupId, string subscriptionId, string groupQuotaName, string resourceProviderName, AzureLocation location, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(managementGroupId, nameof(managementGroupId)); Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(groupQuotaName, nameof(groupQuotaName)); - Argument.AssertNotNullOrEmpty(resourceName, nameof(resourceName)); - Argument.AssertNotNull(filter, nameof(filter)); + Argument.AssertNotNullOrEmpty(resourceProviderName, nameof(resourceProviderName)); - using var message = CreateGetRequest(managementGroupId, subscriptionId, groupQuotaName, resourceName, filter); + using var message = CreateListRequest(managementGroupId, subscriptionId, groupQuotaName, resourceProviderName, location); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { case 200: { - SubscriptionQuotaAllocationData value = default; + SubscriptionQuotaAllocationsListData value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = SubscriptionQuotaAllocationData.DeserializeSubscriptionQuotaAllocationData(document.RootElement); + value = SubscriptionQuotaAllocationsListData.DeserializeSubscriptionQuotaAllocationsListData(document.RootElement); return Response.FromValue(value, message.Response); } case 404: - return Response.FromValue((SubscriptionQuotaAllocationData)null, message.Response); + return Response.FromValue((SubscriptionQuotaAllocationsListData)null, message.Response); default: throw new RequestFailedException(message.Response); } } - /// Gets Quota allocated to a subscription for the specific Resource Provider, Location, ResourceName. This will include the GroupQuota and total quota allocated to the subscription. Only the Group quota allocated to the subscription can be allocated back to the MG Group Quota. + /// Gets all the quota allocated to a subscription for the specified resource provider and location for resource names passed in $filter=resourceName eq {SKU}. This will include the GroupQuota and total quota allocated to the subscription. Only the Group quota allocated to the subscription can be allocated back to the MG Group Quota. /// Management Group Id. /// The ID of the target subscription. The value must be an UUID. /// The GroupQuota name. The name should be unique for the provided context tenantId/MgId. - /// Resource name. - /// - /// | Field | Supported operators - /// |---------------------|------------------------ - /// - /// location eq {location} - /// Example: $filter=location eq eastus - /// + /// The resource provider name, such as - Microsoft.Compute. Currently only Microsoft.Compute resource provider supports this API. + /// The name of the Azure region. /// The cancellation token to use. - /// , , , or is null. - /// , , or is an empty string, and was expected to be non-empty. - public Response Get(string managementGroupId, string subscriptionId, string groupQuotaName, string resourceName, string filter, CancellationToken cancellationToken = default) + /// , , or is null. + /// , , or is an empty string, and was expected to be non-empty. + public Response List(string managementGroupId, string subscriptionId, string groupQuotaName, string resourceProviderName, AzureLocation location, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(managementGroupId, nameof(managementGroupId)); Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(groupQuotaName, nameof(groupQuotaName)); - Argument.AssertNotNullOrEmpty(resourceName, nameof(resourceName)); - Argument.AssertNotNull(filter, nameof(filter)); + Argument.AssertNotNullOrEmpty(resourceProviderName, nameof(resourceProviderName)); - using var message = CreateGetRequest(managementGroupId, subscriptionId, groupQuotaName, resourceName, filter); + using var message = CreateListRequest(managementGroupId, subscriptionId, groupQuotaName, resourceProviderName, location); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { case 200: { - SubscriptionQuotaAllocationData value = default; + SubscriptionQuotaAllocationsListData value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); - value = SubscriptionQuotaAllocationData.DeserializeSubscriptionQuotaAllocationData(document.RootElement); + value = SubscriptionQuotaAllocationsListData.DeserializeSubscriptionQuotaAllocationsListData(document.RootElement); return Response.FromValue(value, message.Response); } case 404: - return Response.FromValue((SubscriptionQuotaAllocationData)null, message.Response); - default: - throw new RequestFailedException(message.Response); - } - } - - internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string managementGroupId, string subscriptionId, string groupQuotaName, string filter) - { - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendRawNextLink(nextLink, false); - return uri; - } - - internal HttpMessage CreateListNextPageRequest(string nextLink, string managementGroupId, string subscriptionId, string groupQuotaName, string filter) - { - 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 all the quota allocated to a subscription for the specific Resource Provider, Location. This will include the GroupQuota and total quota allocated to the subscription. Only the Group quota allocated to the subscription can be allocated back to the MG Group Quota. Use the $filter parameter to filter out the specific resource based on the ResourceProvider/Location. $filter is a required parameter. - /// The URL to the next page of results. - /// Management Group Id. - /// The ID of the target subscription. The value must be an UUID. - /// The GroupQuota name. The name should be unique for the provided context tenantId/MgId. - /// - /// | Field | Supported operators - /// |---------------------|------------------------ - /// - /// location eq {location} - /// Example: $filter=location eq eastus - /// - /// 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 managementGroupId, string subscriptionId, string groupQuotaName, string filter, CancellationToken cancellationToken = default) - { - Argument.AssertNotNull(nextLink, nameof(nextLink)); - Argument.AssertNotNullOrEmpty(managementGroupId, nameof(managementGroupId)); - Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - Argument.AssertNotNullOrEmpty(groupQuotaName, nameof(groupQuotaName)); - Argument.AssertNotNull(filter, nameof(filter)); - - using var message = CreateListNextPageRequest(nextLink, managementGroupId, subscriptionId, groupQuotaName, filter); - await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); - switch (message.Response.Status) - { - case 200: - { - SubscriptionQuotaAllocationsList value = default; - using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = SubscriptionQuotaAllocationsList.DeserializeSubscriptionQuotaAllocationsList(document.RootElement); - return Response.FromValue(value, message.Response); - } - default: - throw new RequestFailedException(message.Response); - } - } - - /// Gets all the quota allocated to a subscription for the specific Resource Provider, Location. This will include the GroupQuota and total quota allocated to the subscription. Only the Group quota allocated to the subscription can be allocated back to the MG Group Quota. Use the $filter parameter to filter out the specific resource based on the ResourceProvider/Location. $filter is a required parameter. - /// The URL to the next page of results. - /// Management Group Id. - /// The ID of the target subscription. The value must be an UUID. - /// The GroupQuota name. The name should be unique for the provided context tenantId/MgId. - /// - /// | Field | Supported operators - /// |---------------------|------------------------ - /// - /// location eq {location} - /// Example: $filter=location eq eastus - /// - /// 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 managementGroupId, string subscriptionId, string groupQuotaName, string filter, CancellationToken cancellationToken = default) - { - Argument.AssertNotNull(nextLink, nameof(nextLink)); - Argument.AssertNotNullOrEmpty(managementGroupId, nameof(managementGroupId)); - Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); - Argument.AssertNotNullOrEmpty(groupQuotaName, nameof(groupQuotaName)); - Argument.AssertNotNull(filter, nameof(filter)); - - using var message = CreateListNextPageRequest(nextLink, managementGroupId, subscriptionId, groupQuotaName, filter); - _pipeline.Send(message, cancellationToken); - switch (message.Response.Status) - { - case 200: - { - SubscriptionQuotaAllocationsList value = default; - using var document = JsonDocument.Parse(message.Response.ContentStream); - value = SubscriptionQuotaAllocationsList.DeserializeSubscriptionQuotaAllocationsList(document.RootElement); - return Response.FromValue(value, message.Response); - } + return Response.FromValue((SubscriptionQuotaAllocationsListData)null, message.Response); default: throw new RequestFailedException(message.Response); } diff --git a/sdk/quota/Azure.ResourceManager.Quota/src/Generated/RestOperations/GroupQuotaSubscriptionRequestsRestOperations.cs b/sdk/quota/Azure.ResourceManager.Quota/src/Generated/RestOperations/GroupQuotaSubscriptionRequestsRestOperations.cs index a10af485b4d1..d66c0edeeb85 100644 --- a/sdk/quota/Azure.ResourceManager.Quota/src/Generated/RestOperations/GroupQuotaSubscriptionRequestsRestOperations.cs +++ b/sdk/quota/Azure.ResourceManager.Quota/src/Generated/RestOperations/GroupQuotaSubscriptionRequestsRestOperations.cs @@ -32,7 +32,7 @@ public GroupQuotaSubscriptionRequestsRestOperations(HttpPipeline pipeline, strin { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-06-01-preview"; + _apiVersion = apiVersion ?? "2024-12-12"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/quota/Azure.ResourceManager.Quota/src/Generated/RestOperations/GroupQuotaSubscriptionsRestOperations.cs b/sdk/quota/Azure.ResourceManager.Quota/src/Generated/RestOperations/GroupQuotaSubscriptionsRestOperations.cs index a83e42b124c6..801c2f4b2052 100644 --- a/sdk/quota/Azure.ResourceManager.Quota/src/Generated/RestOperations/GroupQuotaSubscriptionsRestOperations.cs +++ b/sdk/quota/Azure.ResourceManager.Quota/src/Generated/RestOperations/GroupQuotaSubscriptionsRestOperations.cs @@ -32,7 +32,7 @@ public GroupQuotaSubscriptionsRestOperations(HttpPipeline pipeline, string appli { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-06-01-preview"; + _apiVersion = apiVersion ?? "2024-12-12"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/quota/Azure.ResourceManager.Quota/src/Generated/RestOperations/GroupQuotaUsagesRestOperations.cs b/sdk/quota/Azure.ResourceManager.Quota/src/Generated/RestOperations/GroupQuotaUsagesRestOperations.cs deleted file mode 100644 index e1480ff34242..000000000000 --- a/sdk/quota/Azure.ResourceManager.Quota/src/Generated/RestOperations/GroupQuotaUsagesRestOperations.cs +++ /dev/null @@ -1,223 +0,0 @@ -// 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.Quota.Models; - -namespace Azure.ResourceManager.Quota -{ - internal partial class GroupQuotaUsagesRestOperations - { - private readonly TelemetryDetails _userAgent; - private readonly HttpPipeline _pipeline; - private readonly Uri _endpoint; - private readonly string _apiVersion; - - /// Initializes a new instance of GroupQuotaUsagesRestOperations. - /// 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 GroupQuotaUsagesRestOperations(HttpPipeline pipeline, string applicationId, Uri endpoint = null, string apiVersion = default) - { - _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); - _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-06-01-preview"; - _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); - } - - internal RequestUriBuilder CreateListRequestUri(string managementGroupId, string groupQuotaName, string resourceProviderName, AzureLocation location) - { - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendPath("/providers/Microsoft.Management/managementGroups/", false); - uri.AppendPath(managementGroupId, true); - uri.AppendPath("/providers/Microsoft.Quota/groupQuotas/", false); - uri.AppendPath(groupQuotaName, true); - uri.AppendPath("/resourceProviders/", false); - uri.AppendPath(resourceProviderName, true); - uri.AppendPath("/locationUsages/", false); - uri.AppendPath(location, true); - uri.AppendQuery("api-version", _apiVersion, true); - return uri; - } - - internal HttpMessage CreateListRequest(string managementGroupId, string groupQuotaName, string resourceProviderName, AzureLocation location) - { - var message = _pipeline.CreateMessage(); - var request = message.Request; - request.Method = RequestMethod.Get; - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendPath("/providers/Microsoft.Management/managementGroups/", false); - uri.AppendPath(managementGroupId, true); - uri.AppendPath("/providers/Microsoft.Quota/groupQuotas/", false); - uri.AppendPath(groupQuotaName, true); - uri.AppendPath("/resourceProviders/", false); - uri.AppendPath(resourceProviderName, true); - uri.AppendPath("/locationUsages/", false); - uri.AppendPath(location, true); - uri.AppendQuery("api-version", _apiVersion, true); - request.Uri = uri; - request.Headers.Add("Accept", "application/json"); - _userAgent.Apply(message); - return message; - } - - /// Gets the GroupQuotas usages and limits(quota). Location is required paramter. - /// Management Group Id. - /// The GroupQuota name. The name should be unique for the provided context tenantId/MgId. - /// The resource provider name, such as - Microsoft.Compute. Currently only Microsoft.Compute resource provider supports this API. - /// The name of the Azure region. - /// 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 managementGroupId, string groupQuotaName, string resourceProviderName, AzureLocation location, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(managementGroupId, nameof(managementGroupId)); - Argument.AssertNotNullOrEmpty(groupQuotaName, nameof(groupQuotaName)); - Argument.AssertNotNullOrEmpty(resourceProviderName, nameof(resourceProviderName)); - - using var message = CreateListRequest(managementGroupId, groupQuotaName, resourceProviderName, location); - await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); - switch (message.Response.Status) - { - case 200: - { - ResourceUsageList value = default; - using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = ResourceUsageList.DeserializeResourceUsageList(document.RootElement); - return Response.FromValue(value, message.Response); - } - default: - throw new RequestFailedException(message.Response); - } - } - - /// Gets the GroupQuotas usages and limits(quota). Location is required paramter. - /// Management Group Id. - /// The GroupQuota name. The name should be unique for the provided context tenantId/MgId. - /// The resource provider name, such as - Microsoft.Compute. Currently only Microsoft.Compute resource provider supports this API. - /// The name of the Azure region. - /// The cancellation token to use. - /// , or is null. - /// , or is an empty string, and was expected to be non-empty. - public Response List(string managementGroupId, string groupQuotaName, string resourceProviderName, AzureLocation location, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(managementGroupId, nameof(managementGroupId)); - Argument.AssertNotNullOrEmpty(groupQuotaName, nameof(groupQuotaName)); - Argument.AssertNotNullOrEmpty(resourceProviderName, nameof(resourceProviderName)); - - using var message = CreateListRequest(managementGroupId, groupQuotaName, resourceProviderName, location); - _pipeline.Send(message, cancellationToken); - switch (message.Response.Status) - { - case 200: - { - ResourceUsageList value = default; - using var document = JsonDocument.Parse(message.Response.ContentStream); - value = ResourceUsageList.DeserializeResourceUsageList(document.RootElement); - return Response.FromValue(value, message.Response); - } - default: - throw new RequestFailedException(message.Response); - } - } - - internal RequestUriBuilder CreateListNextPageRequestUri(string nextLink, string managementGroupId, string groupQuotaName, string resourceProviderName, AzureLocation location) - { - var uri = new RawRequestUriBuilder(); - uri.Reset(_endpoint); - uri.AppendRawNextLink(nextLink, false); - return uri; - } - - internal HttpMessage CreateListNextPageRequest(string nextLink, string managementGroupId, string groupQuotaName, string resourceProviderName, AzureLocation location) - { - 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 the GroupQuotas usages and limits(quota). Location is required paramter. - /// The URL to the next page of results. - /// Management Group Id. - /// The GroupQuota name. The name should be unique for the provided context tenantId/MgId. - /// The resource provider name, such as - Microsoft.Compute. Currently only Microsoft.Compute resource provider supports this API. - /// The name of the Azure region. - /// 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 managementGroupId, string groupQuotaName, string resourceProviderName, AzureLocation location, CancellationToken cancellationToken = default) - { - Argument.AssertNotNull(nextLink, nameof(nextLink)); - Argument.AssertNotNullOrEmpty(managementGroupId, nameof(managementGroupId)); - Argument.AssertNotNullOrEmpty(groupQuotaName, nameof(groupQuotaName)); - Argument.AssertNotNullOrEmpty(resourceProviderName, nameof(resourceProviderName)); - - using var message = CreateListNextPageRequest(nextLink, managementGroupId, groupQuotaName, resourceProviderName, location); - await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); - switch (message.Response.Status) - { - case 200: - { - ResourceUsageList value = default; - using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = ResourceUsageList.DeserializeResourceUsageList(document.RootElement); - return Response.FromValue(value, message.Response); - } - default: - throw new RequestFailedException(message.Response); - } - } - - /// Gets the GroupQuotas usages and limits(quota). Location is required paramter. - /// The URL to the next page of results. - /// Management Group Id. - /// The GroupQuota name. The name should be unique for the provided context tenantId/MgId. - /// The resource provider name, such as - Microsoft.Compute. Currently only Microsoft.Compute resource provider supports this API. - /// The name of the Azure region. - /// 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 managementGroupId, string groupQuotaName, string resourceProviderName, AzureLocation location, CancellationToken cancellationToken = default) - { - Argument.AssertNotNull(nextLink, nameof(nextLink)); - Argument.AssertNotNullOrEmpty(managementGroupId, nameof(managementGroupId)); - Argument.AssertNotNullOrEmpty(groupQuotaName, nameof(groupQuotaName)); - Argument.AssertNotNullOrEmpty(resourceProviderName, nameof(resourceProviderName)); - - using var message = CreateListNextPageRequest(nextLink, managementGroupId, groupQuotaName, resourceProviderName, location); - _pipeline.Send(message, cancellationToken); - switch (message.Response.Status) - { - case 200: - { - ResourceUsageList value = default; - using var document = JsonDocument.Parse(message.Response.ContentStream); - value = ResourceUsageList.DeserializeResourceUsageList(document.RootElement); - return Response.FromValue(value, message.Response); - } - default: - throw new RequestFailedException(message.Response); - } - } - } -} diff --git a/sdk/quota/Azure.ResourceManager.Quota/src/Generated/RestOperations/GroupQuotasRestOperations.cs b/sdk/quota/Azure.ResourceManager.Quota/src/Generated/RestOperations/GroupQuotasRestOperations.cs index f2ae827198c6..4bb6900a725b 100644 --- a/sdk/quota/Azure.ResourceManager.Quota/src/Generated/RestOperations/GroupQuotasRestOperations.cs +++ b/sdk/quota/Azure.ResourceManager.Quota/src/Generated/RestOperations/GroupQuotasRestOperations.cs @@ -32,7 +32,7 @@ public GroupQuotasRestOperations(HttpPipeline pipeline, string applicationId, Ur { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-06-01-preview"; + _apiVersion = apiVersion ?? "2024-12-12"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/quota/Azure.ResourceManager.Quota/src/Generated/RestOperations/QuotaOperationRestOperations.cs b/sdk/quota/Azure.ResourceManager.Quota/src/Generated/RestOperations/QuotaOperationRestOperations.cs index 6691c773a8b4..9a30a9bc2923 100644 --- a/sdk/quota/Azure.ResourceManager.Quota/src/Generated/RestOperations/QuotaOperationRestOperations.cs +++ b/sdk/quota/Azure.ResourceManager.Quota/src/Generated/RestOperations/QuotaOperationRestOperations.cs @@ -32,7 +32,7 @@ public QuotaOperationRestOperations(HttpPipeline pipeline, string applicationId, { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-06-01-preview"; + _apiVersion = apiVersion ?? "2024-12-12"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/quota/Azure.ResourceManager.Quota/src/Generated/RestOperations/QuotaRequestStatusRestOperations.cs b/sdk/quota/Azure.ResourceManager.Quota/src/Generated/RestOperations/QuotaRequestStatusRestOperations.cs index c7f03c8ff948..6738b790af8f 100644 --- a/sdk/quota/Azure.ResourceManager.Quota/src/Generated/RestOperations/QuotaRequestStatusRestOperations.cs +++ b/sdk/quota/Azure.ResourceManager.Quota/src/Generated/RestOperations/QuotaRequestStatusRestOperations.cs @@ -32,7 +32,7 @@ public QuotaRequestStatusRestOperations(HttpPipeline pipeline, string applicatio { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-06-01-preview"; + _apiVersion = apiVersion ?? "2024-12-12"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/quota/Azure.ResourceManager.Quota/src/Generated/RestOperations/QuotaRestOperations.cs b/sdk/quota/Azure.ResourceManager.Quota/src/Generated/RestOperations/QuotaRestOperations.cs index 6da24f924fe1..7ff375295ce4 100644 --- a/sdk/quota/Azure.ResourceManager.Quota/src/Generated/RestOperations/QuotaRestOperations.cs +++ b/sdk/quota/Azure.ResourceManager.Quota/src/Generated/RestOperations/QuotaRestOperations.cs @@ -32,7 +32,7 @@ public QuotaRestOperations(HttpPipeline pipeline, string applicationId, Uri endp { _pipeline = pipeline ?? throw new ArgumentNullException(nameof(pipeline)); _endpoint = endpoint ?? new Uri("https://management.azure.com"); - _apiVersion = apiVersion ?? "2023-06-01-preview"; + _apiVersion = apiVersion ?? "2024-12-12"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/quota/Azure.ResourceManager.Quota/src/Generated/RestOperations/UsagesRestOperations.cs b/sdk/quota/Azure.ResourceManager.Quota/src/Generated/RestOperations/UsagesRestOperations.cs index 7a0cffd2de74..139f9bdac7de 100644 --- a/sdk/quota/Azure.ResourceManager.Quota/src/Generated/RestOperations/UsagesRestOperations.cs +++ b/sdk/quota/Azure.ResourceManager.Quota/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 ?? "2023-06-01-preview"; + _apiVersion = apiVersion ?? "2024-12-12"; _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } diff --git a/sdk/quota/Azure.ResourceManager.Quota/src/Generated/SubscriptionQuotaAllocationCollection.cs b/sdk/quota/Azure.ResourceManager.Quota/src/Generated/SubscriptionQuotaAllocationCollection.cs deleted file mode 100644 index 542f7f94f762..000000000000 --- a/sdk/quota/Azure.ResourceManager.Quota/src/Generated/SubscriptionQuotaAllocationCollection.cs +++ /dev/null @@ -1,455 +0,0 @@ -// 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 Autorest.CSharp.Core; -using Azure.Core; -using Azure.Core.Pipeline; -using Azure.ResourceManager.ManagementGroups; - -namespace Azure.ResourceManager.Quota -{ - /// - /// 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 GetSubscriptionQuotaAllocations method from an instance of . - /// - public partial class SubscriptionQuotaAllocationCollection : ArmCollection - { - private readonly ClientDiagnostics _subscriptionQuotaAllocationGroupQuotaSubscriptionAllocationClientDiagnostics; - private readonly GroupQuotaSubscriptionAllocationRestOperations _subscriptionQuotaAllocationGroupQuotaSubscriptionAllocationRestClient; - private readonly string _subscriptionId; - private readonly string _groupQuotaName; - - /// Initializes a new instance of the class for mocking. - protected SubscriptionQuotaAllocationCollection() - { - } - - /// 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. - /// The ID of the target subscription. The value must be an UUID. - /// The GroupQuota name. The name should be unique for the provided context tenantId/MgId. - /// or is null. - /// or is an empty string, and was expected to be non-empty. - internal SubscriptionQuotaAllocationCollection(ArmClient client, ResourceIdentifier id, string subscriptionId, string groupQuotaName) : base(client, id) - { - _subscriptionId = subscriptionId; - _groupQuotaName = groupQuotaName; - _subscriptionQuotaAllocationGroupQuotaSubscriptionAllocationClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Quota", SubscriptionQuotaAllocationResource.ResourceType.Namespace, Diagnostics); - TryGetApiVersion(SubscriptionQuotaAllocationResource.ResourceType, out string subscriptionQuotaAllocationGroupQuotaSubscriptionAllocationApiVersion); - _subscriptionQuotaAllocationGroupQuotaSubscriptionAllocationRestClient = new GroupQuotaSubscriptionAllocationRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, subscriptionQuotaAllocationGroupQuotaSubscriptionAllocationApiVersion); -#if DEBUG - ValidateResourceId(Id); -#endif - } - - internal static void ValidateResourceId(ResourceIdentifier id) - { - if (id.ResourceType != ManagementGroupResource.ResourceType) - throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, ManagementGroupResource.ResourceType), nameof(id)); - } - - /// - /// Gets Quota allocated to a subscription for the specific Resource Provider, Location, ResourceName. This will include the GroupQuota and total quota allocated to the subscription. Only the Group quota allocated to the subscription can be allocated back to the MG Group Quota. - /// - /// - /// Request Path - /// /providers/Microsoft.Management/managementGroups/{managementGroupId}/subscriptions/{subscriptionId}/providers/Microsoft.Quota/groupQuotas/{groupQuotaName}/quotaAllocations/{resourceName} - /// - /// - /// Operation Id - /// GroupQuotaSubscriptionAllocation_Get - /// - /// - /// Default Api Version - /// 2023-06-01-preview - /// - /// - /// Resource - /// - /// - /// - /// - /// Resource name. - /// - /// | Field | Supported operators - /// |---------------------|------------------------ - /// - /// location eq {location} - /// Example: $filter=location eq eastus - /// - /// The cancellation token to use. - /// is an empty string, and was expected to be non-empty. - /// or is null. - public virtual async Task> GetAsync(string resourceName, string filter, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(resourceName, nameof(resourceName)); - Argument.AssertNotNull(filter, nameof(filter)); - - using var scope = _subscriptionQuotaAllocationGroupQuotaSubscriptionAllocationClientDiagnostics.CreateScope("SubscriptionQuotaAllocationCollection.Get"); - scope.Start(); - try - { - var response = await _subscriptionQuotaAllocationGroupQuotaSubscriptionAllocationRestClient.GetAsync(Id.Name, _subscriptionId, _groupQuotaName, resourceName, filter, cancellationToken).ConfigureAwait(false); - if (response.Value == null) - throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new SubscriptionQuotaAllocationResource(Client, response.Value), response.GetRawResponse()); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// Gets Quota allocated to a subscription for the specific Resource Provider, Location, ResourceName. This will include the GroupQuota and total quota allocated to the subscription. Only the Group quota allocated to the subscription can be allocated back to the MG Group Quota. - /// - /// - /// Request Path - /// /providers/Microsoft.Management/managementGroups/{managementGroupId}/subscriptions/{subscriptionId}/providers/Microsoft.Quota/groupQuotas/{groupQuotaName}/quotaAllocations/{resourceName} - /// - /// - /// Operation Id - /// GroupQuotaSubscriptionAllocation_Get - /// - /// - /// Default Api Version - /// 2023-06-01-preview - /// - /// - /// Resource - /// - /// - /// - /// - /// Resource name. - /// - /// | Field | Supported operators - /// |---------------------|------------------------ - /// - /// location eq {location} - /// Example: $filter=location eq eastus - /// - /// The cancellation token to use. - /// is an empty string, and was expected to be non-empty. - /// or is null. - public virtual Response Get(string resourceName, string filter, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(resourceName, nameof(resourceName)); - Argument.AssertNotNull(filter, nameof(filter)); - - using var scope = _subscriptionQuotaAllocationGroupQuotaSubscriptionAllocationClientDiagnostics.CreateScope("SubscriptionQuotaAllocationCollection.Get"); - scope.Start(); - try - { - var response = _subscriptionQuotaAllocationGroupQuotaSubscriptionAllocationRestClient.Get(Id.Name, _subscriptionId, _groupQuotaName, resourceName, filter, cancellationToken); - if (response.Value == null) - throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new SubscriptionQuotaAllocationResource(Client, response.Value), response.GetRawResponse()); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// Gets all the quota allocated to a subscription for the specific Resource Provider, Location. This will include the GroupQuota and total quota allocated to the subscription. Only the Group quota allocated to the subscription can be allocated back to the MG Group Quota. Use the $filter parameter to filter out the specific resource based on the ResourceProvider/Location. $filter is a required parameter. - /// - /// - /// Request Path - /// /providers/Microsoft.Management/managementGroups/{managementGroupId}/subscriptions/{subscriptionId}/providers/Microsoft.Quota/groupQuotas/{groupQuotaName}/quotaAllocations - /// - /// - /// Operation Id - /// GroupQuotaSubscriptionAllocation_List - /// - /// - /// Default Api Version - /// 2023-06-01-preview - /// - /// - /// Resource - /// - /// - /// - /// - /// - /// | Field | Supported operators - /// |---------------------|------------------------ - /// - /// location eq {location} - /// Example: $filter=location eq eastus - /// - /// The cancellation token to use. - /// is null. - /// An async collection of that may take multiple service requests to iterate over. - public virtual AsyncPageable GetAllAsync(string filter, CancellationToken cancellationToken = default) - { - Argument.AssertNotNull(filter, nameof(filter)); - - HttpMessage FirstPageRequest(int? pageSizeHint) => _subscriptionQuotaAllocationGroupQuotaSubscriptionAllocationRestClient.CreateListRequest(Id.Name, _subscriptionId, _groupQuotaName, filter); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _subscriptionQuotaAllocationGroupQuotaSubscriptionAllocationRestClient.CreateListNextPageRequest(nextLink, Id.Name, _subscriptionId, _groupQuotaName, filter); - return GeneratorPageableHelpers.CreateAsyncPageable(FirstPageRequest, NextPageRequest, e => new SubscriptionQuotaAllocationResource(Client, SubscriptionQuotaAllocationData.DeserializeSubscriptionQuotaAllocationData(e)), _subscriptionQuotaAllocationGroupQuotaSubscriptionAllocationClientDiagnostics, Pipeline, "SubscriptionQuotaAllocationCollection.GetAll", "value", "nextLink", cancellationToken); - } - - /// - /// Gets all the quota allocated to a subscription for the specific Resource Provider, Location. This will include the GroupQuota and total quota allocated to the subscription. Only the Group quota allocated to the subscription can be allocated back to the MG Group Quota. Use the $filter parameter to filter out the specific resource based on the ResourceProvider/Location. $filter is a required parameter. - /// - /// - /// Request Path - /// /providers/Microsoft.Management/managementGroups/{managementGroupId}/subscriptions/{subscriptionId}/providers/Microsoft.Quota/groupQuotas/{groupQuotaName}/quotaAllocations - /// - /// - /// Operation Id - /// GroupQuotaSubscriptionAllocation_List - /// - /// - /// Default Api Version - /// 2023-06-01-preview - /// - /// - /// Resource - /// - /// - /// - /// - /// - /// | Field | Supported operators - /// |---------------------|------------------------ - /// - /// location eq {location} - /// Example: $filter=location eq eastus - /// - /// The cancellation token to use. - /// is null. - /// A collection of that may take multiple service requests to iterate over. - public virtual Pageable GetAll(string filter, CancellationToken cancellationToken = default) - { - Argument.AssertNotNull(filter, nameof(filter)); - - HttpMessage FirstPageRequest(int? pageSizeHint) => _subscriptionQuotaAllocationGroupQuotaSubscriptionAllocationRestClient.CreateListRequest(Id.Name, _subscriptionId, _groupQuotaName, filter); - HttpMessage NextPageRequest(int? pageSizeHint, string nextLink) => _subscriptionQuotaAllocationGroupQuotaSubscriptionAllocationRestClient.CreateListNextPageRequest(nextLink, Id.Name, _subscriptionId, _groupQuotaName, filter); - return GeneratorPageableHelpers.CreatePageable(FirstPageRequest, NextPageRequest, e => new SubscriptionQuotaAllocationResource(Client, SubscriptionQuotaAllocationData.DeserializeSubscriptionQuotaAllocationData(e)), _subscriptionQuotaAllocationGroupQuotaSubscriptionAllocationClientDiagnostics, Pipeline, "SubscriptionQuotaAllocationCollection.GetAll", "value", "nextLink", cancellationToken); - } - - /// - /// Checks to see if the resource exists in azure. - /// - /// - /// Request Path - /// /providers/Microsoft.Management/managementGroups/{managementGroupId}/subscriptions/{subscriptionId}/providers/Microsoft.Quota/groupQuotas/{groupQuotaName}/quotaAllocations/{resourceName} - /// - /// - /// Operation Id - /// GroupQuotaSubscriptionAllocation_Get - /// - /// - /// Default Api Version - /// 2023-06-01-preview - /// - /// - /// Resource - /// - /// - /// - /// - /// Resource name. - /// - /// | Field | Supported operators - /// |---------------------|------------------------ - /// - /// location eq {location} - /// Example: $filter=location eq eastus - /// - /// The cancellation token to use. - /// is an empty string, and was expected to be non-empty. - /// or is null. - public virtual async Task> ExistsAsync(string resourceName, string filter, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(resourceName, nameof(resourceName)); - Argument.AssertNotNull(filter, nameof(filter)); - - using var scope = _subscriptionQuotaAllocationGroupQuotaSubscriptionAllocationClientDiagnostics.CreateScope("SubscriptionQuotaAllocationCollection.Exists"); - scope.Start(); - try - { - var response = await _subscriptionQuotaAllocationGroupQuotaSubscriptionAllocationRestClient.GetAsync(Id.Name, _subscriptionId, _groupQuotaName, resourceName, filter, 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 - /// /providers/Microsoft.Management/managementGroups/{managementGroupId}/subscriptions/{subscriptionId}/providers/Microsoft.Quota/groupQuotas/{groupQuotaName}/quotaAllocations/{resourceName} - /// - /// - /// Operation Id - /// GroupQuotaSubscriptionAllocation_Get - /// - /// - /// Default Api Version - /// 2023-06-01-preview - /// - /// - /// Resource - /// - /// - /// - /// - /// Resource name. - /// - /// | Field | Supported operators - /// |---------------------|------------------------ - /// - /// location eq {location} - /// Example: $filter=location eq eastus - /// - /// The cancellation token to use. - /// is an empty string, and was expected to be non-empty. - /// or is null. - public virtual Response Exists(string resourceName, string filter, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(resourceName, nameof(resourceName)); - Argument.AssertNotNull(filter, nameof(filter)); - - using var scope = _subscriptionQuotaAllocationGroupQuotaSubscriptionAllocationClientDiagnostics.CreateScope("SubscriptionQuotaAllocationCollection.Exists"); - scope.Start(); - try - { - var response = _subscriptionQuotaAllocationGroupQuotaSubscriptionAllocationRestClient.Get(Id.Name, _subscriptionId, _groupQuotaName, resourceName, filter, 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 - /// /providers/Microsoft.Management/managementGroups/{managementGroupId}/subscriptions/{subscriptionId}/providers/Microsoft.Quota/groupQuotas/{groupQuotaName}/quotaAllocations/{resourceName} - /// - /// - /// Operation Id - /// GroupQuotaSubscriptionAllocation_Get - /// - /// - /// Default Api Version - /// 2023-06-01-preview - /// - /// - /// Resource - /// - /// - /// - /// - /// Resource name. - /// - /// | Field | Supported operators - /// |---------------------|------------------------ - /// - /// location eq {location} - /// Example: $filter=location eq eastus - /// - /// The cancellation token to use. - /// is an empty string, and was expected to be non-empty. - /// or is null. - public virtual async Task> GetIfExistsAsync(string resourceName, string filter, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(resourceName, nameof(resourceName)); - Argument.AssertNotNull(filter, nameof(filter)); - - using var scope = _subscriptionQuotaAllocationGroupQuotaSubscriptionAllocationClientDiagnostics.CreateScope("SubscriptionQuotaAllocationCollection.GetIfExists"); - scope.Start(); - try - { - var response = await _subscriptionQuotaAllocationGroupQuotaSubscriptionAllocationRestClient.GetAsync(Id.Name, _subscriptionId, _groupQuotaName, resourceName, filter, cancellationToken: cancellationToken).ConfigureAwait(false); - if (response.Value == null) - return new NoValueResponse(response.GetRawResponse()); - return Response.FromValue(new SubscriptionQuotaAllocationResource(Client, response.Value), response.GetRawResponse()); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// Tries to get details for this resource from the service. - /// - /// - /// Request Path - /// /providers/Microsoft.Management/managementGroups/{managementGroupId}/subscriptions/{subscriptionId}/providers/Microsoft.Quota/groupQuotas/{groupQuotaName}/quotaAllocations/{resourceName} - /// - /// - /// Operation Id - /// GroupQuotaSubscriptionAllocation_Get - /// - /// - /// Default Api Version - /// 2023-06-01-preview - /// - /// - /// Resource - /// - /// - /// - /// - /// Resource name. - /// - /// | Field | Supported operators - /// |---------------------|------------------------ - /// - /// location eq {location} - /// Example: $filter=location eq eastus - /// - /// The cancellation token to use. - /// is an empty string, and was expected to be non-empty. - /// or is null. - public virtual NullableResponse GetIfExists(string resourceName, string filter, CancellationToken cancellationToken = default) - { - Argument.AssertNotNullOrEmpty(resourceName, nameof(resourceName)); - Argument.AssertNotNull(filter, nameof(filter)); - - using var scope = _subscriptionQuotaAllocationGroupQuotaSubscriptionAllocationClientDiagnostics.CreateScope("SubscriptionQuotaAllocationCollection.GetIfExists"); - scope.Start(); - try - { - var response = _subscriptionQuotaAllocationGroupQuotaSubscriptionAllocationRestClient.Get(Id.Name, _subscriptionId, _groupQuotaName, resourceName, filter, cancellationToken: cancellationToken); - if (response.Value == null) - return new NoValueResponse(response.GetRawResponse()); - return Response.FromValue(new SubscriptionQuotaAllocationResource(Client, response.Value), response.GetRawResponse()); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - } -} diff --git a/sdk/quota/Azure.ResourceManager.Quota/src/Generated/SubscriptionQuotaAllocationData.cs b/sdk/quota/Azure.ResourceManager.Quota/src/Generated/SubscriptionQuotaAllocationData.cs deleted file mode 100644 index c2667486cd17..000000000000 --- a/sdk/quota/Azure.ResourceManager.Quota/src/Generated/SubscriptionQuotaAllocationData.cs +++ /dev/null @@ -1,76 +0,0 @@ -// 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.Quota.Models; - -namespace Azure.ResourceManager.Quota -{ - /// - /// A class representing the SubscriptionQuotaAllocation data model. - /// Quota allocated to a subscription for the specific Resource Provider, Location, ResourceName. This will include the GroupQuota and total quota allocated to the subscription. Only the Group quota allocated to the subscription can be allocated back to the MG Group Quota. - /// - public partial class SubscriptionQuotaAllocationData : 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 SubscriptionQuotaAllocationData() - { - } - - /// Initializes a new instance of . - /// The id. - /// The name. - /// The resourceType. - /// The systemData. - /// Quota properties for the specified resource. - /// Keeps track of any properties unknown to the library. - internal SubscriptionQuotaAllocationData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, SubscriptionQuotaDetails properties, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData) - { - Properties = properties; - _serializedAdditionalRawData = serializedAdditionalRawData; - } - - /// Quota properties for the specified resource. - [WirePath("properties")] - public SubscriptionQuotaDetails Properties { get; set; } - } -} diff --git a/sdk/quota/Azure.ResourceManager.Quota/src/Generated/SubscriptionQuotaAllocationResource.Serialization.cs b/sdk/quota/Azure.ResourceManager.Quota/src/Generated/SubscriptionQuotaAllocationResource.Serialization.cs deleted file mode 100644 index 60fe0871e4fe..000000000000 --- a/sdk/quota/Azure.ResourceManager.Quota/src/Generated/SubscriptionQuotaAllocationResource.Serialization.cs +++ /dev/null @@ -1,26 +0,0 @@ -// 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.Quota -{ - public partial class SubscriptionQuotaAllocationResource : IJsonModel - { - void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) => ((IJsonModel)Data).Write(writer, options); - - SubscriptionQuotaAllocationData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => ((IJsonModel)Data).Create(ref reader, options); - - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => ModelReaderWriter.Write(Data, options); - - SubscriptionQuotaAllocationData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => ModelReaderWriter.Read(data, options); - - string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => ((IPersistableModel)Data).GetFormatFromOptions(options); - } -} diff --git a/sdk/quota/Azure.ResourceManager.Quota/src/Generated/SubscriptionQuotaAllocationResource.cs b/sdk/quota/Azure.ResourceManager.Quota/src/Generated/SubscriptionQuotaAllocationResource.cs deleted file mode 100644 index 927d7b6d5e41..000000000000 --- a/sdk/quota/Azure.ResourceManager.Quota/src/Generated/SubscriptionQuotaAllocationResource.cs +++ /dev/null @@ -1,192 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Globalization; -using System.Threading; -using System.Threading.Tasks; -using Azure.Core; -using Azure.Core.Pipeline; -using Azure.ResourceManager.ManagementGroups; - -namespace Azure.ResourceManager.Quota -{ - /// - /// A Class representing a SubscriptionQuotaAllocation 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 GetSubscriptionQuotaAllocationResource method. - /// Otherwise you can get one from its parent resource using the GetSubscriptionQuotaAllocation method. - /// - public partial class SubscriptionQuotaAllocationResource : ArmResource - { - /// Generate the resource identifier of a instance. - /// The managementGroupId. - /// The subscriptionId. - /// The groupQuotaName. - /// The resourceName. - public static ResourceIdentifier CreateResourceIdentifier(string managementGroupId, string subscriptionId, string groupQuotaName, string resourceName) - { - var resourceId = $"/providers/Microsoft.Management/managementGroups/{managementGroupId}/subscriptions/{subscriptionId}/providers/Microsoft.Quota/groupQuotas/{groupQuotaName}/quotaAllocations/{resourceName}"; - return new ResourceIdentifier(resourceId); - } - - private readonly ClientDiagnostics _subscriptionQuotaAllocationGroupQuotaSubscriptionAllocationClientDiagnostics; - private readonly GroupQuotaSubscriptionAllocationRestOperations _subscriptionQuotaAllocationGroupQuotaSubscriptionAllocationRestClient; - private readonly SubscriptionQuotaAllocationData _data; - - /// Gets the resource type for the operations. - public static readonly ResourceType ResourceType = "Microsoft.Quota/groupQuotas/quotaAllocations"; - - /// Initializes a new instance of the class for mocking. - protected SubscriptionQuotaAllocationResource() - { - } - - /// Initializes a new instance of the class. - /// The client parameters to use in these operations. - /// The resource that is the target of operations. - internal SubscriptionQuotaAllocationResource(ArmClient client, SubscriptionQuotaAllocationData 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 SubscriptionQuotaAllocationResource(ArmClient client, ResourceIdentifier id) : base(client, id) - { - _subscriptionQuotaAllocationGroupQuotaSubscriptionAllocationClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Quota", ResourceType.Namespace, Diagnostics); - TryGetApiVersion(ResourceType, out string subscriptionQuotaAllocationGroupQuotaSubscriptionAllocationApiVersion); - _subscriptionQuotaAllocationGroupQuotaSubscriptionAllocationRestClient = new GroupQuotaSubscriptionAllocationRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, subscriptionQuotaAllocationGroupQuotaSubscriptionAllocationApiVersion); -#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 SubscriptionQuotaAllocationData 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 Quota allocated to a subscription for the specific Resource Provider, Location, ResourceName. This will include the GroupQuota and total quota allocated to the subscription. Only the Group quota allocated to the subscription can be allocated back to the MG Group Quota. - /// - /// - /// Request Path - /// /providers/Microsoft.Management/managementGroups/{managementGroupId}/subscriptions/{subscriptionId}/providers/Microsoft.Quota/groupQuotas/{groupQuotaName}/quotaAllocations/{resourceName} - /// - /// - /// Operation Id - /// GroupQuotaSubscriptionAllocation_Get - /// - /// - /// Default Api Version - /// 2023-06-01-preview - /// - /// - /// Resource - /// - /// - /// - /// - /// - /// | Field | Supported operators - /// |---------------------|------------------------ - /// - /// location eq {location} - /// Example: $filter=location eq eastus - /// - /// The cancellation token to use. - /// is null. - public virtual async Task> GetAsync(string filter, CancellationToken cancellationToken = default) - { - Argument.AssertNotNull(filter, nameof(filter)); - - using var scope = _subscriptionQuotaAllocationGroupQuotaSubscriptionAllocationClientDiagnostics.CreateScope("SubscriptionQuotaAllocationResource.Get"); - scope.Start(); - try - { - var response = await _subscriptionQuotaAllocationGroupQuotaSubscriptionAllocationRestClient.GetAsync(Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, filter, cancellationToken).ConfigureAwait(false); - if (response.Value == null) - throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new SubscriptionQuotaAllocationResource(Client, response.Value), response.GetRawResponse()); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - - /// - /// Gets Quota allocated to a subscription for the specific Resource Provider, Location, ResourceName. This will include the GroupQuota and total quota allocated to the subscription. Only the Group quota allocated to the subscription can be allocated back to the MG Group Quota. - /// - /// - /// Request Path - /// /providers/Microsoft.Management/managementGroups/{managementGroupId}/subscriptions/{subscriptionId}/providers/Microsoft.Quota/groupQuotas/{groupQuotaName}/quotaAllocations/{resourceName} - /// - /// - /// Operation Id - /// GroupQuotaSubscriptionAllocation_Get - /// - /// - /// Default Api Version - /// 2023-06-01-preview - /// - /// - /// Resource - /// - /// - /// - /// - /// - /// | Field | Supported operators - /// |---------------------|------------------------ - /// - /// location eq {location} - /// Example: $filter=location eq eastus - /// - /// The cancellation token to use. - /// is null. - public virtual Response Get(string filter, CancellationToken cancellationToken = default) - { - Argument.AssertNotNull(filter, nameof(filter)); - - using var scope = _subscriptionQuotaAllocationGroupQuotaSubscriptionAllocationClientDiagnostics.CreateScope("SubscriptionQuotaAllocationResource.Get"); - scope.Start(); - try - { - var response = _subscriptionQuotaAllocationGroupQuotaSubscriptionAllocationRestClient.Get(Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, Id.Name, filter, cancellationToken); - if (response.Value == null) - throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new SubscriptionQuotaAllocationResource(Client, response.Value), response.GetRawResponse()); - } - catch (Exception e) - { - scope.Failed(e); - throw; - } - } - } -} diff --git a/sdk/quota/Azure.ResourceManager.Quota/src/Generated/SubscriptionQuotaAllocationsListCollection.cs b/sdk/quota/Azure.ResourceManager.Quota/src/Generated/SubscriptionQuotaAllocationsListCollection.cs new file mode 100644 index 000000000000..2d07bb9c9929 --- /dev/null +++ b/sdk/quota/Azure.ResourceManager.Quota/src/Generated/SubscriptionQuotaAllocationsListCollection.cs @@ -0,0 +1,348 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Globalization; +using System.Threading; +using System.Threading.Tasks; +using Azure.Core; +using Azure.Core.Pipeline; +using Azure.ResourceManager.ManagementGroups; + +namespace Azure.ResourceManager.Quota +{ + /// + /// 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 GetSubscriptionQuotaAllocationsLists method from an instance of . + /// + public partial class SubscriptionQuotaAllocationsListCollection : ArmCollection + { + private readonly ClientDiagnostics _subscriptionQuotaAllocationsListGroupQuotaSubscriptionAllocationClientDiagnostics; + private readonly GroupQuotaSubscriptionAllocationRestOperations _subscriptionQuotaAllocationsListGroupQuotaSubscriptionAllocationRestClient; + + /// Initializes a new instance of the class for mocking. + protected SubscriptionQuotaAllocationsListCollection() + { + } + + /// 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 SubscriptionQuotaAllocationsListCollection(ArmClient client, ResourceIdentifier id) : base(client, id) + { + _subscriptionQuotaAllocationsListGroupQuotaSubscriptionAllocationClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Quota", SubscriptionQuotaAllocationsListResource.ResourceType.Namespace, Diagnostics); + TryGetApiVersion(SubscriptionQuotaAllocationsListResource.ResourceType, out string subscriptionQuotaAllocationsListGroupQuotaSubscriptionAllocationApiVersion); + _subscriptionQuotaAllocationsListGroupQuotaSubscriptionAllocationRestClient = new GroupQuotaSubscriptionAllocationRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, subscriptionQuotaAllocationsListGroupQuotaSubscriptionAllocationApiVersion); +#if DEBUG + ValidateResourceId(Id); +#endif + } + + internal static void ValidateResourceId(ResourceIdentifier id) + { + if (id.ResourceType != ManagementGroupResource.ResourceType) + throw new ArgumentException(string.Format(CultureInfo.CurrentCulture, "Invalid resource type {0} expected {1}", id.ResourceType, ManagementGroupResource.ResourceType), nameof(id)); + } + + /// + /// Gets all the quota allocated to a subscription for the specified resource provider and location for resource names passed in $filter=resourceName eq {SKU}. This will include the GroupQuota and total quota allocated to the subscription. Only the Group quota allocated to the subscription can be allocated back to the MG Group Quota. + /// + /// + /// Request Path + /// /providers/Microsoft.Management/managementGroups/{managementGroupId}/subscriptions/{subscriptionId}/providers/Microsoft.Quota/groupQuotas/{groupQuotaName}/resourceProviders/{resourceProviderName}/quotaAllocations/{location} + /// + /// + /// Operation Id + /// GroupQuotaSubscriptionAllocation_List + /// + /// + /// Default Api Version + /// 2024-12-12 + /// + /// + /// Resource + /// + /// + /// + /// + /// The ID of the target subscription. The value must be an UUID. + /// The GroupQuota name. The name should be unique for the provided context tenantId/MgId. + /// The resource provider name, such as - Microsoft.Compute. Currently only Microsoft.Compute resource provider supports this API. + /// The name of the Azure region. + /// The cancellation token to use. + /// , or is an empty string, and was expected to be non-empty. + /// , or is null. + public virtual async Task> GetAsync(string subscriptionId, string groupQuotaName, string resourceProviderName, AzureLocation location, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(groupQuotaName, nameof(groupQuotaName)); + Argument.AssertNotNullOrEmpty(resourceProviderName, nameof(resourceProviderName)); + + using var scope = _subscriptionQuotaAllocationsListGroupQuotaSubscriptionAllocationClientDiagnostics.CreateScope("SubscriptionQuotaAllocationsListCollection.Get"); + scope.Start(); + try + { + var response = await _subscriptionQuotaAllocationsListGroupQuotaSubscriptionAllocationRestClient.ListAsync(Id.Name, subscriptionId, groupQuotaName, resourceProviderName, location, cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw new RequestFailedException(response.GetRawResponse()); + return Response.FromValue(new SubscriptionQuotaAllocationsListResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Gets all the quota allocated to a subscription for the specified resource provider and location for resource names passed in $filter=resourceName eq {SKU}. This will include the GroupQuota and total quota allocated to the subscription. Only the Group quota allocated to the subscription can be allocated back to the MG Group Quota. + /// + /// + /// Request Path + /// /providers/Microsoft.Management/managementGroups/{managementGroupId}/subscriptions/{subscriptionId}/providers/Microsoft.Quota/groupQuotas/{groupQuotaName}/resourceProviders/{resourceProviderName}/quotaAllocations/{location} + /// + /// + /// Operation Id + /// GroupQuotaSubscriptionAllocation_List + /// + /// + /// Default Api Version + /// 2024-12-12 + /// + /// + /// Resource + /// + /// + /// + /// + /// The ID of the target subscription. The value must be an UUID. + /// The GroupQuota name. The name should be unique for the provided context tenantId/MgId. + /// The resource provider name, such as - Microsoft.Compute. Currently only Microsoft.Compute resource provider supports this API. + /// The name of the Azure region. + /// The cancellation token to use. + /// , or is an empty string, and was expected to be non-empty. + /// , or is null. + public virtual Response Get(string subscriptionId, string groupQuotaName, string resourceProviderName, AzureLocation location, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(groupQuotaName, nameof(groupQuotaName)); + Argument.AssertNotNullOrEmpty(resourceProviderName, nameof(resourceProviderName)); + + using var scope = _subscriptionQuotaAllocationsListGroupQuotaSubscriptionAllocationClientDiagnostics.CreateScope("SubscriptionQuotaAllocationsListCollection.Get"); + scope.Start(); + try + { + var response = _subscriptionQuotaAllocationsListGroupQuotaSubscriptionAllocationRestClient.List(Id.Name, subscriptionId, groupQuotaName, resourceProviderName, location, cancellationToken); + if (response.Value == null) + throw new RequestFailedException(response.GetRawResponse()); + return Response.FromValue(new SubscriptionQuotaAllocationsListResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Checks to see if the resource exists in azure. + /// + /// + /// Request Path + /// /providers/Microsoft.Management/managementGroups/{managementGroupId}/subscriptions/{subscriptionId}/providers/Microsoft.Quota/groupQuotas/{groupQuotaName}/resourceProviders/{resourceProviderName}/quotaAllocations/{location} + /// + /// + /// Operation Id + /// GroupQuotaSubscriptionAllocation_List + /// + /// + /// Default Api Version + /// 2024-12-12 + /// + /// + /// Resource + /// + /// + /// + /// + /// The ID of the target subscription. The value must be an UUID. + /// The GroupQuota name. The name should be unique for the provided context tenantId/MgId. + /// The resource provider name, such as - Microsoft.Compute. Currently only Microsoft.Compute resource provider supports this API. + /// The name of the Azure region. + /// The cancellation token to use. + /// , or is an empty string, and was expected to be non-empty. + /// , or is null. + public virtual async Task> ExistsAsync(string subscriptionId, string groupQuotaName, string resourceProviderName, AzureLocation location, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(groupQuotaName, nameof(groupQuotaName)); + Argument.AssertNotNullOrEmpty(resourceProviderName, nameof(resourceProviderName)); + + using var scope = _subscriptionQuotaAllocationsListGroupQuotaSubscriptionAllocationClientDiagnostics.CreateScope("SubscriptionQuotaAllocationsListCollection.Exists"); + scope.Start(); + try + { + var response = await _subscriptionQuotaAllocationsListGroupQuotaSubscriptionAllocationRestClient.ListAsync(Id.Name, subscriptionId, groupQuotaName, resourceProviderName, location, 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 + /// /providers/Microsoft.Management/managementGroups/{managementGroupId}/subscriptions/{subscriptionId}/providers/Microsoft.Quota/groupQuotas/{groupQuotaName}/resourceProviders/{resourceProviderName}/quotaAllocations/{location} + /// + /// + /// Operation Id + /// GroupQuotaSubscriptionAllocation_List + /// + /// + /// Default Api Version + /// 2024-12-12 + /// + /// + /// Resource + /// + /// + /// + /// + /// The ID of the target subscription. The value must be an UUID. + /// The GroupQuota name. The name should be unique for the provided context tenantId/MgId. + /// The resource provider name, such as - Microsoft.Compute. Currently only Microsoft.Compute resource provider supports this API. + /// The name of the Azure region. + /// The cancellation token to use. + /// , or is an empty string, and was expected to be non-empty. + /// , or is null. + public virtual Response Exists(string subscriptionId, string groupQuotaName, string resourceProviderName, AzureLocation location, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(groupQuotaName, nameof(groupQuotaName)); + Argument.AssertNotNullOrEmpty(resourceProviderName, nameof(resourceProviderName)); + + using var scope = _subscriptionQuotaAllocationsListGroupQuotaSubscriptionAllocationClientDiagnostics.CreateScope("SubscriptionQuotaAllocationsListCollection.Exists"); + scope.Start(); + try + { + var response = _subscriptionQuotaAllocationsListGroupQuotaSubscriptionAllocationRestClient.List(Id.Name, subscriptionId, groupQuotaName, resourceProviderName, location, 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 + /// /providers/Microsoft.Management/managementGroups/{managementGroupId}/subscriptions/{subscriptionId}/providers/Microsoft.Quota/groupQuotas/{groupQuotaName}/resourceProviders/{resourceProviderName}/quotaAllocations/{location} + /// + /// + /// Operation Id + /// GroupQuotaSubscriptionAllocation_List + /// + /// + /// Default Api Version + /// 2024-12-12 + /// + /// + /// Resource + /// + /// + /// + /// + /// The ID of the target subscription. The value must be an UUID. + /// The GroupQuota name. The name should be unique for the provided context tenantId/MgId. + /// The resource provider name, such as - Microsoft.Compute. Currently only Microsoft.Compute resource provider supports this API. + /// The name of the Azure region. + /// The cancellation token to use. + /// , or is an empty string, and was expected to be non-empty. + /// , or is null. + public virtual async Task> GetIfExistsAsync(string subscriptionId, string groupQuotaName, string resourceProviderName, AzureLocation location, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(groupQuotaName, nameof(groupQuotaName)); + Argument.AssertNotNullOrEmpty(resourceProviderName, nameof(resourceProviderName)); + + using var scope = _subscriptionQuotaAllocationsListGroupQuotaSubscriptionAllocationClientDiagnostics.CreateScope("SubscriptionQuotaAllocationsListCollection.GetIfExists"); + scope.Start(); + try + { + var response = await _subscriptionQuotaAllocationsListGroupQuotaSubscriptionAllocationRestClient.ListAsync(Id.Name, subscriptionId, groupQuotaName, resourceProviderName, location, cancellationToken: cancellationToken).ConfigureAwait(false); + if (response.Value == null) + return new NoValueResponse(response.GetRawResponse()); + return Response.FromValue(new SubscriptionQuotaAllocationsListResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Tries to get details for this resource from the service. + /// + /// + /// Request Path + /// /providers/Microsoft.Management/managementGroups/{managementGroupId}/subscriptions/{subscriptionId}/providers/Microsoft.Quota/groupQuotas/{groupQuotaName}/resourceProviders/{resourceProviderName}/quotaAllocations/{location} + /// + /// + /// Operation Id + /// GroupQuotaSubscriptionAllocation_List + /// + /// + /// Default Api Version + /// 2024-12-12 + /// + /// + /// Resource + /// + /// + /// + /// + /// The ID of the target subscription. The value must be an UUID. + /// The GroupQuota name. The name should be unique for the provided context tenantId/MgId. + /// The resource provider name, such as - Microsoft.Compute. Currently only Microsoft.Compute resource provider supports this API. + /// The name of the Azure region. + /// The cancellation token to use. + /// , or is an empty string, and was expected to be non-empty. + /// , or is null. + public virtual NullableResponse GetIfExists(string subscriptionId, string groupQuotaName, string resourceProviderName, AzureLocation location, CancellationToken cancellationToken = default) + { + Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); + Argument.AssertNotNullOrEmpty(groupQuotaName, nameof(groupQuotaName)); + Argument.AssertNotNullOrEmpty(resourceProviderName, nameof(resourceProviderName)); + + using var scope = _subscriptionQuotaAllocationsListGroupQuotaSubscriptionAllocationClientDiagnostics.CreateScope("SubscriptionQuotaAllocationsListCollection.GetIfExists"); + scope.Start(); + try + { + var response = _subscriptionQuotaAllocationsListGroupQuotaSubscriptionAllocationRestClient.List(Id.Name, subscriptionId, groupQuotaName, resourceProviderName, location, cancellationToken: cancellationToken); + if (response.Value == null) + return new NoValueResponse(response.GetRawResponse()); + return Response.FromValue(new SubscriptionQuotaAllocationsListResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + } +} diff --git a/sdk/quota/Azure.ResourceManager.Quota/src/Generated/SubscriptionQuotaAllocationData.Serialization.cs b/sdk/quota/Azure.ResourceManager.Quota/src/Generated/SubscriptionQuotaAllocationsListData.Serialization.cs similarity index 78% rename from sdk/quota/Azure.ResourceManager.Quota/src/Generated/SubscriptionQuotaAllocationData.Serialization.cs rename to sdk/quota/Azure.ResourceManager.Quota/src/Generated/SubscriptionQuotaAllocationsListData.Serialization.cs index 5b206f171a14..2d8a29997ce8 100644 --- a/sdk/quota/Azure.ResourceManager.Quota/src/Generated/SubscriptionQuotaAllocationData.Serialization.cs +++ b/sdk/quota/Azure.ResourceManager.Quota/src/Generated/SubscriptionQuotaAllocationsListData.Serialization.cs @@ -16,11 +16,11 @@ namespace Azure.ResourceManager.Quota { - public partial class SubscriptionQuotaAllocationData : IUtf8JsonSerializable, IJsonModel + public partial class SubscriptionQuotaAllocationsListData : IUtf8JsonSerializable, IJsonModel { - void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); + void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); - void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) { writer.WriteStartObject(); JsonModelWriteCore(writer, options); @@ -31,10 +31,10 @@ void IJsonModel.Write(Utf8JsonWriter writer, Mo /// 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; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { - throw new FormatException($"The model {nameof(SubscriptionQuotaAllocationData)} does not support writing '{format}' format."); + throw new FormatException($"The model {nameof(SubscriptionQuotaAllocationsListData)} does not support writing '{format}' format."); } base.JsonModelWriteCore(writer, options); @@ -45,19 +45,19 @@ protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWri } } - SubscriptionQuotaAllocationData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) + SubscriptionQuotaAllocationsListData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") { - throw new FormatException($"The model {nameof(SubscriptionQuotaAllocationData)} does not support reading '{format}' format."); + throw new FormatException($"The model {nameof(SubscriptionQuotaAllocationsListData)} does not support reading '{format}' format."); } using JsonDocument document = JsonDocument.ParseValue(ref reader); - return DeserializeSubscriptionQuotaAllocationData(document.RootElement, options); + return DeserializeSubscriptionQuotaAllocationsListData(document.RootElement, options); } - internal static SubscriptionQuotaAllocationData DeserializeSubscriptionQuotaAllocationData(JsonElement element, ModelReaderWriterOptions options = null) + internal static SubscriptionQuotaAllocationsListData DeserializeSubscriptionQuotaAllocationsListData(JsonElement element, ModelReaderWriterOptions options = null) { options ??= ModelSerializationExtensions.WireOptions; @@ -65,7 +65,7 @@ internal static SubscriptionQuotaAllocationData DeserializeSubscriptionQuotaAllo { return null; } - SubscriptionQuotaDetails properties = default; + SubscriptionQuotaAllocationsListProperties properties = default; ResourceIdentifier id = default; string name = default; ResourceType type = default; @@ -80,7 +80,7 @@ internal static SubscriptionQuotaAllocationData DeserializeSubscriptionQuotaAllo { continue; } - properties = SubscriptionQuotaDetails.DeserializeSubscriptionQuotaDetails(property.Value, options); + properties = SubscriptionQuotaAllocationsListProperties.DeserializeSubscriptionQuotaAllocationsListProperties(property.Value, options); continue; } if (property.NameEquals("id"u8)) @@ -113,7 +113,7 @@ internal static SubscriptionQuotaAllocationData DeserializeSubscriptionQuotaAllo } } serializedAdditionalRawData = rawDataDictionary; - return new SubscriptionQuotaAllocationData( + return new SubscriptionQuotaAllocationsListData( id, name, type, @@ -205,9 +205,9 @@ private BinaryData SerializeBicep(ModelReaderWriterOptions options) return BinaryData.FromString(builder.ToString()); } - BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { @@ -216,26 +216,26 @@ BinaryData IPersistableModel.Write(ModelReaderW case "bicep": return SerializeBicep(options); default: - throw new FormatException($"The model {nameof(SubscriptionQuotaAllocationData)} does not support writing '{options.Format}' format."); + throw new FormatException($"The model {nameof(SubscriptionQuotaAllocationsListData)} does not support writing '{options.Format}' format."); } } - SubscriptionQuotaAllocationData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) + SubscriptionQuotaAllocationsListData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) { - var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; + var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; switch (format) { case "J": { using JsonDocument document = JsonDocument.Parse(data); - return DeserializeSubscriptionQuotaAllocationData(document.RootElement, options); + return DeserializeSubscriptionQuotaAllocationsListData(document.RootElement, options); } default: - throw new FormatException($"The model {nameof(SubscriptionQuotaAllocationData)} does not support reading '{options.Format}' format."); + throw new FormatException($"The model {nameof(SubscriptionQuotaAllocationsListData)} does not support reading '{options.Format}' format."); } } - string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J"; } } diff --git a/sdk/quota/Azure.ResourceManager.Quota/src/Generated/GroupQuotaLimitData.cs b/sdk/quota/Azure.ResourceManager.Quota/src/Generated/SubscriptionQuotaAllocationsListData.cs similarity index 70% rename from sdk/quota/Azure.ResourceManager.Quota/src/Generated/GroupQuotaLimitData.cs rename to sdk/quota/Azure.ResourceManager.Quota/src/Generated/SubscriptionQuotaAllocationsListData.cs index 22858e54e8f8..a00dfa6132dc 100644 --- a/sdk/quota/Azure.ResourceManager.Quota/src/Generated/GroupQuotaLimitData.cs +++ b/sdk/quota/Azure.ResourceManager.Quota/src/Generated/SubscriptionQuotaAllocationsListData.cs @@ -14,10 +14,10 @@ namespace Azure.ResourceManager.Quota { /// - /// A class representing the GroupQuotaLimit data model. - /// Group Quota limit. + /// A class representing the SubscriptionQuotaAllocationsList data model. + /// Subscription quota list. /// - public partial class GroupQuotaLimitData : ResourceData + public partial class SubscriptionQuotaAllocationsListData : ResourceData { /// /// Keeps track of any properties unknown to the library. @@ -51,26 +51,26 @@ public partial class GroupQuotaLimitData : ResourceData /// private IDictionary _serializedAdditionalRawData; - /// Initializes a new instance of . - public GroupQuotaLimitData() + /// Initializes a new instance of . + public SubscriptionQuotaAllocationsListData() { } - /// Initializes a new instance of . + /// Initializes a new instance of . /// The id. /// The name. /// The resourceType. /// The systemData. - /// Group Quota properties for the specified resource. + /// /// Keeps track of any properties unknown to the library. - internal GroupQuotaLimitData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, GroupQuotaDetails properties, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData) + internal SubscriptionQuotaAllocationsListData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, SubscriptionQuotaAllocationsListProperties properties, IDictionary serializedAdditionalRawData) : base(id, name, resourceType, systemData) { Properties = properties; _serializedAdditionalRawData = serializedAdditionalRawData; } - /// Group Quota properties for the specified resource. + /// Gets or sets the properties. [WirePath("properties")] - public GroupQuotaDetails Properties { get; set; } + public SubscriptionQuotaAllocationsListProperties Properties { get; set; } } } diff --git a/sdk/quota/Azure.ResourceManager.Quota/src/Generated/SubscriptionQuotaAllocationsListResource.Serialization.cs b/sdk/quota/Azure.ResourceManager.Quota/src/Generated/SubscriptionQuotaAllocationsListResource.Serialization.cs new file mode 100644 index 000000000000..6b172587bdfa --- /dev/null +++ b/sdk/quota/Azure.ResourceManager.Quota/src/Generated/SubscriptionQuotaAllocationsListResource.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.Quota +{ + public partial class SubscriptionQuotaAllocationsListResource : IJsonModel + { + void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) => ((IJsonModel)Data).Write(writer, options); + + SubscriptionQuotaAllocationsListData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => ((IJsonModel)Data).Create(ref reader, options); + + BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => ModelReaderWriter.Write(Data, options); + + SubscriptionQuotaAllocationsListData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => ModelReaderWriter.Read(data, options); + + string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => ((IPersistableModel)Data).GetFormatFromOptions(options); + } +} diff --git a/sdk/quota/Azure.ResourceManager.Quota/src/Generated/SubscriptionQuotaAllocationsListResource.cs b/sdk/quota/Azure.ResourceManager.Quota/src/Generated/SubscriptionQuotaAllocationsListResource.cs new file mode 100644 index 000000000000..a4420c1d5ed3 --- /dev/null +++ b/sdk/quota/Azure.ResourceManager.Quota/src/Generated/SubscriptionQuotaAllocationsListResource.cs @@ -0,0 +1,270 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Globalization; +using System.Threading; +using System.Threading.Tasks; +using Azure.Core; +using Azure.Core.Pipeline; +using Azure.ResourceManager.ManagementGroups; + +namespace Azure.ResourceManager.Quota +{ + /// + /// A Class representing a SubscriptionQuotaAllocationsList 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 GetSubscriptionQuotaAllocationsListResource method. + /// Otherwise you can get one from its parent resource using the GetSubscriptionQuotaAllocationsList method. + /// + public partial class SubscriptionQuotaAllocationsListResource : ArmResource + { + /// Generate the resource identifier of a instance. + /// The managementGroupId. + /// The subscriptionId. + /// The groupQuotaName. + /// The resourceProviderName. + /// The location. + public static ResourceIdentifier CreateResourceIdentifier(string managementGroupId, string subscriptionId, string groupQuotaName, string resourceProviderName, AzureLocation location) + { + var resourceId = $"/providers/Microsoft.Management/managementGroups/{managementGroupId}/subscriptions/{subscriptionId}/providers/Microsoft.Quota/groupQuotas/{groupQuotaName}/resourceProviders/{resourceProviderName}/quotaAllocations/{location}"; + return new ResourceIdentifier(resourceId); + } + + private readonly ClientDiagnostics _subscriptionQuotaAllocationsListGroupQuotaSubscriptionAllocationClientDiagnostics; + private readonly GroupQuotaSubscriptionAllocationRestOperations _subscriptionQuotaAllocationsListGroupQuotaSubscriptionAllocationRestClient; + private readonly ClientDiagnostics _subscriptionQuotaAllocationsListGroupQuotaSubscriptionAllocationRequestClientDiagnostics; + private readonly GroupQuotaSubscriptionAllocationRequestRestOperations _subscriptionQuotaAllocationsListGroupQuotaSubscriptionAllocationRequestRestClient; + private readonly SubscriptionQuotaAllocationsListData _data; + + /// Gets the resource type for the operations. + public static readonly ResourceType ResourceType = "Microsoft.Quota/groupQuotas/resourceProviders/quotaAllocations"; + + /// Initializes a new instance of the class for mocking. + protected SubscriptionQuotaAllocationsListResource() + { + } + + /// Initializes a new instance of the class. + /// The client parameters to use in these operations. + /// The resource that is the target of operations. + internal SubscriptionQuotaAllocationsListResource(ArmClient client, SubscriptionQuotaAllocationsListData 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 SubscriptionQuotaAllocationsListResource(ArmClient client, ResourceIdentifier id) : base(client, id) + { + _subscriptionQuotaAllocationsListGroupQuotaSubscriptionAllocationClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Quota", ResourceType.Namespace, Diagnostics); + TryGetApiVersion(ResourceType, out string subscriptionQuotaAllocationsListGroupQuotaSubscriptionAllocationApiVersion); + _subscriptionQuotaAllocationsListGroupQuotaSubscriptionAllocationRestClient = new GroupQuotaSubscriptionAllocationRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, subscriptionQuotaAllocationsListGroupQuotaSubscriptionAllocationApiVersion); + _subscriptionQuotaAllocationsListGroupQuotaSubscriptionAllocationRequestClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Quota", ResourceType.Namespace, Diagnostics); + TryGetApiVersion(ResourceType, out string subscriptionQuotaAllocationsListGroupQuotaSubscriptionAllocationRequestApiVersion); + _subscriptionQuotaAllocationsListGroupQuotaSubscriptionAllocationRequestRestClient = new GroupQuotaSubscriptionAllocationRequestRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, subscriptionQuotaAllocationsListGroupQuotaSubscriptionAllocationRequestApiVersion); +#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 SubscriptionQuotaAllocationsListData 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 all the quota allocated to a subscription for the specified resource provider and location for resource names passed in $filter=resourceName eq {SKU}. This will include the GroupQuota and total quota allocated to the subscription. Only the Group quota allocated to the subscription can be allocated back to the MG Group Quota. + /// + /// + /// Request Path + /// /providers/Microsoft.Management/managementGroups/{managementGroupId}/subscriptions/{subscriptionId}/providers/Microsoft.Quota/groupQuotas/{groupQuotaName}/resourceProviders/{resourceProviderName}/quotaAllocations/{location} + /// + /// + /// Operation Id + /// GroupQuotaSubscriptionAllocation_List + /// + /// + /// Default Api Version + /// 2024-12-12 + /// + /// + /// Resource + /// + /// + /// + /// + /// The cancellation token to use. + public virtual async Task> GetAsync(CancellationToken cancellationToken = default) + { + using var scope = _subscriptionQuotaAllocationsListGroupQuotaSubscriptionAllocationClientDiagnostics.CreateScope("SubscriptionQuotaAllocationsListResource.Get"); + scope.Start(); + try + { + var response = await _subscriptionQuotaAllocationsListGroupQuotaSubscriptionAllocationRestClient.ListAsync(Id.Parent.Parent.Parent.Parent.Name, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, new AzureLocation(Id.Name), cancellationToken).ConfigureAwait(false); + if (response.Value == null) + throw new RequestFailedException(response.GetRawResponse()); + return Response.FromValue(new SubscriptionQuotaAllocationsListResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Gets all the quota allocated to a subscription for the specified resource provider and location for resource names passed in $filter=resourceName eq {SKU}. This will include the GroupQuota and total quota allocated to the subscription. Only the Group quota allocated to the subscription can be allocated back to the MG Group Quota. + /// + /// + /// Request Path + /// /providers/Microsoft.Management/managementGroups/{managementGroupId}/subscriptions/{subscriptionId}/providers/Microsoft.Quota/groupQuotas/{groupQuotaName}/resourceProviders/{resourceProviderName}/quotaAllocations/{location} + /// + /// + /// Operation Id + /// GroupQuotaSubscriptionAllocation_List + /// + /// + /// Default Api Version + /// 2024-12-12 + /// + /// + /// Resource + /// + /// + /// + /// + /// The cancellation token to use. + public virtual Response Get(CancellationToken cancellationToken = default) + { + using var scope = _subscriptionQuotaAllocationsListGroupQuotaSubscriptionAllocationClientDiagnostics.CreateScope("SubscriptionQuotaAllocationsListResource.Get"); + scope.Start(); + try + { + var response = _subscriptionQuotaAllocationsListGroupQuotaSubscriptionAllocationRestClient.List(Id.Parent.Parent.Parent.Parent.Name, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, new AzureLocation(Id.Name), cancellationToken); + if (response.Value == null) + throw new RequestFailedException(response.GetRawResponse()); + return Response.FromValue(new SubscriptionQuotaAllocationsListResource(Client, response.Value), response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Request to assign quota from group quota to a specific Subscription. The assign GroupQuota to subscriptions or reduce the quota allocated to subscription to give back the unused quota ( quota >= usages) to the groupQuota. So, this API can be used to assign Quota to subscriptions and assign back unused quota to group quota, which can be assigned to another subscriptions in the GroupQuota. User can collect unused quotas from multiple subscriptions within the groupQuota and assign the groupQuota to the subscription, where it's needed. + /// + /// + /// Request Path + /// /providers/Microsoft.Management/managementGroups/{managementGroupId}/subscriptions/{subscriptionId}/providers/Microsoft.Quota/groupQuotas/{groupQuotaName}/resourceProviders/{resourceProviderName}/quotaAllocations/{location} + /// + /// + /// Operation Id + /// GroupQuotaSubscriptionAllocationRequest_Update + /// + /// + /// Default Api Version + /// 2024-12-12 + /// + /// + /// 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. + /// Quota requests payload. + /// The cancellation token to use. + /// is null. + public virtual async Task> UpdateAsync(WaitUntil waitUntil, SubscriptionQuotaAllocationsListData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(data, nameof(data)); + + using var scope = _subscriptionQuotaAllocationsListGroupQuotaSubscriptionAllocationRequestClientDiagnostics.CreateScope("SubscriptionQuotaAllocationsListResource.Update"); + scope.Start(); + try + { + var response = await _subscriptionQuotaAllocationsListGroupQuotaSubscriptionAllocationRequestRestClient.UpdateAsync(Id.Parent.Parent.Parent.Parent.Name, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, new AzureLocation(Id.Name), data, cancellationToken).ConfigureAwait(false); + var operation = new QuotaArmOperation(new SubscriptionQuotaAllocationsListOperationSource(Client), _subscriptionQuotaAllocationsListGroupQuotaSubscriptionAllocationRequestClientDiagnostics, Pipeline, _subscriptionQuotaAllocationsListGroupQuotaSubscriptionAllocationRequestRestClient.CreateUpdateRequest(Id.Parent.Parent.Parent.Parent.Name, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, new AzureLocation(Id.Name), data).Request, response, OperationFinalStateVia.Location); + if (waitUntil == WaitUntil.Completed) + await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + + /// + /// Request to assign quota from group quota to a specific Subscription. The assign GroupQuota to subscriptions or reduce the quota allocated to subscription to give back the unused quota ( quota >= usages) to the groupQuota. So, this API can be used to assign Quota to subscriptions and assign back unused quota to group quota, which can be assigned to another subscriptions in the GroupQuota. User can collect unused quotas from multiple subscriptions within the groupQuota and assign the groupQuota to the subscription, where it's needed. + /// + /// + /// Request Path + /// /providers/Microsoft.Management/managementGroups/{managementGroupId}/subscriptions/{subscriptionId}/providers/Microsoft.Quota/groupQuotas/{groupQuotaName}/resourceProviders/{resourceProviderName}/quotaAllocations/{location} + /// + /// + /// Operation Id + /// GroupQuotaSubscriptionAllocationRequest_Update + /// + /// + /// Default Api Version + /// 2024-12-12 + /// + /// + /// 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. + /// Quota requests payload. + /// The cancellation token to use. + /// is null. + public virtual ArmOperation Update(WaitUntil waitUntil, SubscriptionQuotaAllocationsListData data, CancellationToken cancellationToken = default) + { + Argument.AssertNotNull(data, nameof(data)); + + using var scope = _subscriptionQuotaAllocationsListGroupQuotaSubscriptionAllocationRequestClientDiagnostics.CreateScope("SubscriptionQuotaAllocationsListResource.Update"); + scope.Start(); + try + { + var response = _subscriptionQuotaAllocationsListGroupQuotaSubscriptionAllocationRequestRestClient.Update(Id.Parent.Parent.Parent.Parent.Name, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, new AzureLocation(Id.Name), data, cancellationToken); + var operation = new QuotaArmOperation(new SubscriptionQuotaAllocationsListOperationSource(Client), _subscriptionQuotaAllocationsListGroupQuotaSubscriptionAllocationRequestClientDiagnostics, Pipeline, _subscriptionQuotaAllocationsListGroupQuotaSubscriptionAllocationRequestRestClient.CreateUpdateRequest(Id.Parent.Parent.Parent.Parent.Name, Id.Parent.Parent.Parent.Name, Id.Parent.Parent.Name, Id.Parent.Name, new AzureLocation(Id.Name), data).Request, response, OperationFinalStateVia.Location); + if (waitUntil == WaitUntil.Completed) + operation.WaitForCompletion(cancellationToken); + return operation; + } + catch (Exception e) + { + scope.Failed(e); + throw; + } + } + } +} diff --git a/sdk/quota/Azure.ResourceManager.Quota/src/autorest.md b/sdk/quota/Azure.ResourceManager.Quota/src/autorest.md index f04b9a41b701..224a5a99842e 100644 --- a/sdk/quota/Azure.ResourceManager.Quota/src/autorest.md +++ b/sdk/quota/Azure.ResourceManager.Quota/src/autorest.md @@ -8,7 +8,7 @@ azure-arm: true csharp: true library-name: Quota namespace: Azure.ResourceManager.Quota -require: https://github.com/Azure/azure-rest-api-specs/blob/d1f4d6fcf1bbb2e71a32bb2079de12f17fedf56a/specification/quota/resource-manager/readme.md +require: /mnt/vss/_work/1/s/azure-rest-api-specs/specification/quota/resource-manager/readme.md #tag: package-2023-06-01-preview output-folder: $(this-folder)/Generated clear-output-folder: true 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/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: