-
Notifications
You must be signed in to change notification settings - Fork 5.1k
Upgrade Microsoft.Quota API version to 2025-09-01 #52680
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
ArcturusZhang
merged 8 commits into
main
from
dev/bethelarthur/microsoft-quota-stable-2025-09-01
Sep 19, 2025
Merged
Changes from 5 commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
70d4f89
Upgrade Microsoft.Quota API version to 2025-09-01
9e61076
Update sdk version.
eb824a9
Update change log
8aab5bf
Regenerate with updated code
d968eba
Revert change to api version
dc8edd6
Add EditorBrowsable attribute to factory methods.
0c20f51
Add EditorBrowsable attribute to API surface files
d0d0db5
Update sdk/quota/Azure.ResourceManager.Quota/src/Custom/ArmQuotaModel…
ArcturusZhang File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
146 changes: 141 additions & 5 deletions
146
sdk/quota/Azure.ResourceManager.Quota/api/Azure.ResourceManager.Quota.net8.0.cs
Large diffs are not rendered by default.
Oops, something went wrong.
146 changes: 141 additions & 5 deletions
146
sdk/quota/Azure.ResourceManager.Quota/api/Azure.ResourceManager.Quota.netstandard2.0.cs
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
78 changes: 78 additions & 0 deletions
78
sdk/quota/Azure.ResourceManager.Quota/src/Custom/ArmQuotaModelFactory.cs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,78 @@ | ||
| // Copyright (c) Microsoft Corporation. All rights reserved. | ||
| // Licensed under the MIT License. | ||
|
|
||
| #nullable disable | ||
|
|
||
| using System.Collections.Generic; | ||
| using System.Linq; | ||
|
|
||
| namespace Azure.ResourceManager.Quota.Models | ||
| { | ||
| public static partial class ArmQuotaModelFactory | ||
| { | ||
| /// <summary> Initializes a new instance of <see cref="Models.GroupQuotaDetails"/>. </summary> | ||
| /// <param name="resourceName"> The resource name, such as SKU name. </param> | ||
| /// <param name="limit"> The current Group Quota Limit at the parentId level. </param> | ||
| /// <param name="comment"> Any comment related to quota request. </param> | ||
| /// <param name="unit"> 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. </param> | ||
| /// <param name="value"> Resource name. </param> | ||
| /// <param name="localizedValue"> Resource display name. </param> | ||
| /// <param name="availableLimit"> The available Group Quota Limit at the MG level. This Group quota can be allocated to subscription(s). </param> | ||
| /// <param name="allocatedToSubscriptionsValue"> Quota allocated to subscriptions. </param> | ||
| /// <returns> A new <see cref="Models.GroupQuotaDetails"/> instance for mocking. </returns> | ||
| public static GroupQuotaDetails GroupQuotaDetails(string resourceName, long? limit, string comment, string unit, long? availableLimit = null, System.Collections.Generic.IEnumerable<Azure.ResourceManager.Quota.Models.SubscriptionAllocatedQuota> allocatedToSubscriptionsValue = null, string value = null, string localizedValue = null) | ||
| { | ||
| return GroupQuotaDetails( | ||
| resourceName, | ||
| limit, | ||
| comment, | ||
| unit, | ||
| value, | ||
| localizedValue, | ||
| availableLimit, | ||
| allocatedToSubscriptionsValue); | ||
| } | ||
|
|
||
| /// <summary> Initializes a new instance of <see cref="Models.GroupQuotaLimitProperties"/>. </summary> | ||
| /// <param name="resourceName"> The resource name, such as SKU name. </param> | ||
| /// <param name="limit"> The current Group Quota Limit at the parentId level. </param> | ||
| /// <param name="comment"> Any comment related to quota request. </param> | ||
| /// <param name="unit"> 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. </param> | ||
| /// <param name="value"> Resource name. </param> | ||
| /// <param name="localizedValue"> Resource display name. </param> | ||
| /// <param name="availableLimit"> The available Group Quota Limit at the MG level. This Group quota can be allocated to subscription(s). </param> | ||
| /// <param name="allocatedToSubscriptionsValue"> Quota allocated to subscriptions. </param> | ||
| /// <returns> A new <see cref="Models.GroupQuotaLimitProperties"/> instance for mocking. </returns> | ||
| public static GroupQuotaLimitProperties GroupQuotaLimitProperties(string resourceName, long? limit, string comment, string unit, long? availableLimit = null, System.Collections.Generic.IEnumerable<Azure.ResourceManager.Quota.Models.SubscriptionAllocatedQuota> allocatedToSubscriptionsValue = null, string value = null, string localizedValue = null) | ||
| { | ||
| return GroupQuotaLimitProperties( | ||
| resourceName, | ||
| limit, | ||
| comment, | ||
| unit, | ||
| value, | ||
| localizedValue, | ||
| availableLimit, | ||
| allocatedToSubscriptionsValue); | ||
ArcturusZhang marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| } | ||
|
|
||
| // Add this custom code because its properties order changed, but the changed properties are all string, this actually replaces its generated overload. | ||
| /// <summary> Initializes a new instance of <see cref="Models.GroupQuotaRequestBase"/>. </summary> | ||
| /// <param name="limit"> The new quota limit for the subscription. The incremental quota will be allocated from pre-approved group quota. </param> | ||
| /// <param name="value"> Resource name. </param> | ||
| /// <param name="localizedValue"> Resource display name. </param> | ||
| /// <param name="region"> Location/Azure region for the quota requested for resource. </param> | ||
| /// <param name="comments"> GroupQuota Request comments and details for request. This is optional paramter to provide more details related to the requested resource. </param> | ||
| /// <returns> A new <see cref="Models.GroupQuotaRequestBase"/> instance for mocking. </returns> | ||
| public static GroupQuotaRequestBase GroupQuotaRequestBase(long? limit = default(long?), string region = null, string comments = null, string value = null, string localizedValue = null) | ||
| { | ||
| return new GroupQuotaRequestBase( | ||
| limit, | ||
| value, | ||
| localizedValue, | ||
| region, | ||
| comments, | ||
| serializedAdditionalRawData: null); | ||
ArcturusZhang marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| } | ||
| } | ||
| } | ||
15 changes: 15 additions & 0 deletions
15
sdk/quota/Azure.ResourceManager.Quota/src/Custom/Models/UnknownLimitJsonObject.cs
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| // Copyright (c) Microsoft Corporation. All rights reserved. | ||
| // Licensed under the MIT License. | ||
|
|
||
| #nullable disable | ||
|
|
||
| using Azure.Core; | ||
|
|
||
| namespace Azure.ResourceManager.Quota.Models | ||
| { | ||
| // This is a workaround for the code generator does not support to rename the type UnknownQuotaLimitJsonObject | ||
| [CodeGenType("UnknownQuotaLimitJsonObject")] | ||
| internal partial class UnknownLimitJsonObject | ||
| { | ||
| } | ||
| } |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.