Skip to content

Commit 90580f4

Browse files
authored
[Release] sdk/resourcemanager/quota/armquota/2.0.0 (#25286)
* [Release] sdk/resourcemanager/quota/armquota/2.0.0 generation from spec commit: 180b3d38b484507810c2ed2f747dd7cd11443cca * fix test * fix test * fix test
1 parent d7742ab commit 90580f4

File tree

61 files changed

+4403
-4701
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

61 files changed

+4403
-4701
lines changed

sdk/resourcemanager/quota/armquota/CHANGELOG.md

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,61 @@
11
# Release History
22

3+
## 2.0.0 (2025-09-19)
4+
### Breaking Changes
5+
6+
- Function `*GroupQuotaLimitsRequestClient.BeginUpdate` parameter(s) have been changed from `(context.Context, string, string, string, string, *GroupQuotaLimitsRequestClientBeginUpdateOptions)` to `(context.Context, string, string, string, string, GroupQuotaLimitList, *GroupQuotaLimitsRequestClientBeginUpdateOptions)`
7+
- Function `*GroupQuotasClient.BeginCreateOrUpdate` parameter(s) have been changed from `(context.Context, string, string, *GroupQuotasClientBeginCreateOrUpdateOptions)` to `(context.Context, string, string, GroupQuotasEntity, *GroupQuotasClientBeginCreateOrUpdateOptions)`
8+
- Function `*GroupQuotasClient.BeginUpdate` parameter(s) have been changed from `(context.Context, string, string, *GroupQuotasClientBeginUpdateOptions)` to `(context.Context, string, string, GroupQuotasEntityPatch, *GroupQuotasClientBeginUpdateOptions)`
9+
- Struct `CommonResourceProperties` has been removed
10+
- Struct `CreateGenericQuotaRequestParameters` has been removed
11+
- Struct `ErrorAdditionalInfo` has been removed
12+
- Struct `ErrorDetail` has been removed
13+
- Struct `ErrorResponse` has been removed
14+
- Struct `ExceptionResponse` has been removed
15+
- Struct `GroupQuotaDetails` has been removed
16+
- Struct `GroupQuotasEntityBase` has been removed
17+
- Struct `GroupQuotasEntityBasePatch` has been removed
18+
- Struct `LROResponse` has been removed
19+
- Struct `LROResponseProperties` has been removed
20+
- Struct `LimitsResponse` has been removed
21+
- Struct `ProxyResource` has been removed
22+
- Struct `RequestOneResourceProperties` has been removed
23+
- Struct `RequestOneResourceSubmitResponse` has been removed
24+
- Struct `RequestStatusDetails` has been removed
25+
- Struct `RequestSubmitResponse` has been removed
26+
- Struct `RequestSubmitResponse202` has been removed
27+
- Struct `Resource` has been removed
28+
- Struct `ResourceBaseRequest` has been removed
29+
- Struct `ServiceError` has been removed
30+
- Struct `SubscriptionGroupQuotaAssignment` has been removed
31+
- Struct `SubscriptionQuotaAllocationRequestList` has been removed
32+
- Struct `SubscriptionQuotaAllocationsStatusList` has been removed
33+
- Struct `SubscriptionQuotaDetails` has been removed
34+
- Field `GroupQuotaRequest` of struct `GroupQuotaLimitsRequestClientBeginUpdateOptions` has been removed
35+
- Field `GroupQuotaPutRequestBody` of struct `GroupQuotasClientBeginCreateOrUpdateOptions` has been removed
36+
- Field `GroupQuotasPatchRequestBody` of struct `GroupQuotasClientBeginUpdateOptions` has been removed
37+
38+
### Features Added
39+
40+
- New value `RequestStateEscalated` added to enum type `RequestState`
41+
- New enum type `EnforcementState` with values `EnforcementStateDisabled`, `EnforcementStateEnabled`, `EnforcementStateNotAvailable`
42+
- New enum type `GroupType` with values `GroupTypeAllocationGroup`, `GroupTypeEnforcedGroup`
43+
- New function `*ClientFactory.NewGroupQuotaLocationSettingsClient() *GroupQuotaLocationSettingsClient`
44+
- New function `*ClientFactory.NewGroupQuotaUsagesClient() *GroupQuotaUsagesClient`
45+
- New function `NewGroupQuotaLocationSettingsClient(azcore.TokenCredential, *arm.ClientOptions) (*GroupQuotaLocationSettingsClient, error)`
46+
- New function `*GroupQuotaLocationSettingsClient.BeginCreateOrUpdate(context.Context, string, string, string, string, GroupQuotasEnforcementStatus, *GroupQuotaLocationSettingsClientBeginCreateOrUpdateOptions) (*runtime.Poller[GroupQuotaLocationSettingsClientCreateOrUpdateResponse], error)`
47+
- New function `*GroupQuotaLocationSettingsClient.Get(context.Context, string, string, string, string, *GroupQuotaLocationSettingsClientGetOptions) (GroupQuotaLocationSettingsClientGetResponse, error)`
48+
- New function `*GroupQuotaLocationSettingsClient.BeginUpdate(context.Context, string, string, string, string, GroupQuotasEnforcementStatus, *GroupQuotaLocationSettingsClientBeginUpdateOptions) (*runtime.Poller[GroupQuotaLocationSettingsClientUpdateResponse], error)`
49+
- New function `NewGroupQuotaUsagesClient(azcore.TokenCredential, *arm.ClientOptions) (*GroupQuotaUsagesClient, error)`
50+
- New function `*GroupQuotaUsagesClient.NewListPager(string, string, string, string, *GroupQuotaUsagesClientListOptions) *runtime.Pager[GroupQuotaUsagesClientListResponse]`
51+
- New struct `GroupQuotasEnforcementStatus`
52+
- New struct `GroupQuotasEnforcementStatusProperties`
53+
- New field `SystemData` in struct `CurrentQuotaLimitBase`
54+
- New field `SystemData` in struct `CurrentUsagesBase`
55+
- New field `GroupType` in struct `GroupQuotasEntityProperties`
56+
- New field `SystemData` in struct `RequestDetails`
57+
58+
359
## 1.1.0 (2025-02-25)
460
### Features Added
561

sdk/resourcemanager/quota/armquota/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ This project uses [Go modules](https://github.com/golang/go/wiki/Modules) for ve
1818
Install the Azure Quota module:
1919

2020
```sh
21-
go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/quota/armquota
21+
go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/quota/armquota/v2
2222
```
2323

2424
## Authorization
@@ -36,7 +36,7 @@ For more information on authentication, please see the documentation for `aziden
3636
Azure Quota module consists of one or more clients. We provide a client factory which could be used to create any client in this module.
3737

3838
```go
39-
clientFactory, err := armquota.NewClientFactory(<subscription ID>, cred, nil)
39+
clientFactory, err := armquota.NewClientFactory(cred, nil)
4040
```
4141

4242
You can use `ClientOptions` in package `github.com/Azure/azure-sdk-for-go/sdk/azcore/arm` to set endpoint to connect with public and sovereign clouds as well as Azure Stack. For more information, please see the documentation for `azcore` at [pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/azcore](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/azcore).
@@ -47,7 +47,7 @@ options := arm.ClientOptions {
4747
Cloud: cloud.AzureChina,
4848
},
4949
}
50-
clientFactory, err := armquota.NewClientFactory(<subscription ID>, cred, &options)
50+
clientFactory, err := armquota.NewClientFactory(cred, &options)
5151
```
5252

5353
## Clients

sdk/resourcemanager/quota/armquota/autorest.md

Lines changed: 0 additions & 13 deletions
This file was deleted.

sdk/resourcemanager/quota/armquota/build.go

Lines changed: 0 additions & 7 deletions
This file was deleted.

sdk/resourcemanager/quota/armquota/client.go

Lines changed: 20 additions & 50 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)