Skip to content

Commit 64f6440

Browse files
author
SDKAuto
committed
CodeGen from PR 21677 in Azure/azure-rest-api-specs
Merge cada74c6d637d5b6c8dcf114543d4385c6669875 into a80de12c16d6d9c3545bdc3e2b6c1d4ca6739876
1 parent a14c17b commit 64f6440

Some content is hidden

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

45 files changed

+5372
-2943
lines changed

sdk/resourcemanager/consumption/armconsumption/CHANGELOG.md

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

3+
## 2.0.0 (2022-12-01)
4+
### Breaking Changes
5+
6+
- Type of `ModernReservationRecommendation.Properties` has been changed from `*ModernReservationRecommendationProperties` to `ModernReservationRecommendationPropertiesClassification`
7+
- Field `ETag` of struct `ChargeSummary` has been removed
8+
- Field `Etag` of struct `CreditSummary` has been removed
9+
- Field `Tags` of struct `CreditSummary` has been removed
10+
- Field `ETag` of struct `LegacyChargeSummary` has been removed
11+
- Field `MarketplaceCharges` of struct `LegacyChargeSummaryProperties` has been removed
12+
- Field `ETag` of struct `ModernChargeSummary` has been removed
13+
14+
### Features Added
15+
16+
- New const `EventTypeCreditExpired`
17+
- New function `*ModernReservationRecommendationProperties.GetModernReservationRecommendationProperties() *ModernReservationRecommendationProperties`
18+
- New function `*ModernSharedScopeReservationRecommendationProperties.GetModernReservationRecommendationProperties() *ModernReservationRecommendationProperties`
19+
- New function `*ModernSingleScopeReservationRecommendationProperties.GetModernReservationRecommendationProperties() *ModernReservationRecommendationProperties`
20+
- New struct `ModernSharedScopeReservationRecommendationProperties`
21+
- New struct `ModernSingleScopeReservationRecommendationProperties`
22+
- New field `Etag` in struct `ChargeSummary`
23+
- New field `Tags` in struct `ChargeSummary`
24+
- New field `ETag` in struct `CreditSummary`
25+
- New field `Etag` in struct `LegacyChargeSummary`
26+
- New field `Tags` in struct `LegacyChargeSummary`
27+
- New field `AzureMarketplaceCharges` in struct `LegacyChargeSummaryProperties`
28+
- New field `Etag` in struct `ModernChargeSummary`
29+
- New field `Tags` in struct `ModernChargeSummary`
30+
- New field `ResourceType` in struct `ModernReservationRecommendationProperties`
31+
32+
333
## 1.0.0 (2022-05-18)
434

535
The package of `github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/consumption/armconsumption` is using our [next generation design principles](https://azure.github.io/azure-sdk/general_introduction.html) since version 1.0.0, which contains breaking changes.

sdk/resourcemanager/consumption/armconsumption/zz_generated_aggregatedcost_client.go renamed to sdk/resourcemanager/consumption/armconsumption/aggregatedcost_client.go

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sdk/resourcemanager/consumption/armconsumption/autorest.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
``` yaml
66
azure-arm: true
77
require:
8-
- https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/consumption/resource-manager/readme.md
9-
- https://github.com/Azure/azure-rest-api-specs/blob/d55b8005f05b040b852c15e74a0f3e36494a15e1/specification/consumption/resource-manager/readme.go.md
8+
- /mnt/vss/_work/1/s/azure-rest-api-specs/specification/consumption/resource-manager/readme.md
9+
- /mnt/vss/_work/1/s/azure-rest-api-specs/specification/consumption/resource-manager/readme.go.md
1010
license-header: MICROSOFT_MIT_NO_VERSION
11-
module-version: 1.0.0
11+
module-version: 2.0.0
1212
```

sdk/resourcemanager/consumption/armconsumption/zz_generated_balances_client.go renamed to sdk/resourcemanager/consumption/armconsumption/balances_client.go

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sdk/resourcemanager/consumption/armconsumption/zz_generated_budgets_client.go renamed to sdk/resourcemanager/consumption/armconsumption/budgets_client.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sdk/resourcemanager/consumption/armconsumption/zz_generated_charges_client.go renamed to sdk/resourcemanager/consumption/armconsumption/charges_client.go

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sdk/resourcemanager/consumption/armconsumption/zz_generated_constants.go renamed to sdk/resourcemanager/consumption/armconsumption/constants.go

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

sdk/resourcemanager/consumption/armconsumption/zz_generated_credits_client.go renamed to sdk/resourcemanager/consumption/armconsumption/credits_client.go

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sdk/resourcemanager/consumption/armconsumption/zz_generated_events_client.go renamed to sdk/resourcemanager/consumption/armconsumption/events_client.go

Lines changed: 1 addition & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,13 @@
1-
module github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/consumption/armconsumption
1+
module github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/consumption/armconsumption/v2
22

33
go 1.18
44

5-
require (
6-
github.com/Azure/azure-sdk-for-go/sdk/azcore v1.0.0
7-
github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.0.0
8-
)
5+
require github.com/Azure/azure-sdk-for-go/sdk/azcore v1.0.0
96

107
require (
118
github.com/Azure/azure-sdk-for-go/sdk/internal v1.0.0 // indirect
12-
github.com/AzureAD/microsoft-authentication-library-for-go v0.4.0 // indirect
13-
github.com/golang-jwt/jwt v3.2.1+incompatible // indirect
14-
github.com/google/uuid v1.1.1 // indirect
15-
github.com/kylelemons/godebug v1.1.0 // indirect
16-
github.com/pkg/browser v0.0.0-20210115035449-ce105d075bb4 // indirect
17-
golang.org/x/crypto v0.0.0-20220511200225-c6db032c6c88 // indirect
9+
github.com/davecgh/go-spew v1.1.1 // indirect
1810
golang.org/x/net v0.0.0-20220425223048-2871e0cb64e4 // indirect
19-
golang.org/x/sys v0.0.0-20211216021012-1d35b9e2eb4e // indirect
2011
golang.org/x/text v0.3.7 // indirect
12+
gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b // indirect
2113
)
Lines changed: 3 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,15 @@
11
github.com/Azure/azure-sdk-for-go/sdk/azcore v1.0.0 h1:sVPhtT2qjO86rTUaWMr4WoES4TkjGnzcioXcnHV9s5k=
22
github.com/Azure/azure-sdk-for-go/sdk/azcore v1.0.0/go.mod h1:uGG2W01BaETf0Ozp+QxxKJdMBNRWPdstHG0Fmdwn1/U=
3-
github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.0.0 h1:Yoicul8bnVdQrhDMTHxdEckRGX01XvwXDHUT9zYZ3k0=
4-
github.com/Azure/azure-sdk-for-go/sdk/azidentity v1.0.0/go.mod h1:+6sju8gk8FRmSajX3Oz4G5Gm7P+mbqE9FVaXXFYTkCM=
53
github.com/Azure/azure-sdk-for-go/sdk/internal v1.0.0 h1:jp0dGvZ7ZK0mgqnTSClMxa5xuRL7NZgHameVYF6BurY=
64
github.com/Azure/azure-sdk-for-go/sdk/internal v1.0.0/go.mod h1:eWRD7oawr1Mu1sLCawqVc0CUiF43ia3qQMxLscsKQ9w=
7-
github.com/AzureAD/microsoft-authentication-library-for-go v0.4.0 h1:WVsrXCnHlDDX8ls+tootqRE87/hL9S/g4ewig9RsD/c=
8-
github.com/AzureAD/microsoft-authentication-library-for-go v0.4.0/go.mod h1:Vt9sXTKwMyGcOxSmLDMnGPgqsUg7m8pe215qMLrDXw4=
95
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
10-
github.com/dnaeon/go-vcr v1.1.0 h1:ReYa/UBrRyQdant9B4fNHGoCNKw6qh6P0fsdGmZpR7c=
11-
github.com/golang-jwt/jwt v3.2.1+incompatible h1:73Z+4BJcrTC+KczS6WvTPvRGOp1WmfEP4Q1lOd9Z/+c=
12-
github.com/golang-jwt/jwt v3.2.1+incompatible/go.mod h1:8pz2t5EyA70fFQQSrl6XZXzqecmYZeUEB8OUGHkxJ+I=
13-
github.com/golang-jwt/jwt/v4 v4.2.0 h1:besgBTC8w8HjP6NzQdxwKH9Z5oQMZ24ThTrHp3cZ8eU=
14-
github.com/google/uuid v1.1.1 h1:Gkbcsh/GbpXz7lPftLA3P6TYMwjCLYm83jiFQZF/3gY=
15-
github.com/google/uuid v1.1.1/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=
16-
github.com/kylelemons/godebug v1.1.0 h1:RPNrshWIDI6G2gRW9EHilWtl7Z6Sb1BR0xunSBf0SNc=
17-
github.com/kylelemons/godebug v1.1.0/go.mod h1:9/0rRGxNHcop5bhtWyNeEfOS8JIWk580+fNqagV/RAw=
18-
github.com/montanaflynn/stats v0.6.6/go.mod h1:etXPPgVO6n31NxCd9KQUMvCM+ve0ruNzt6R8Bnaayow=
19-
github.com/pkg/browser v0.0.0-20210115035449-ce105d075bb4 h1:Qj1ukM4GlMWXNdMBuXcXfz/Kw9s1qm0CLY32QxuSImI=
20-
github.com/pkg/browser v0.0.0-20210115035449-ce105d075bb4/go.mod h1:N6UoU20jOqggOuDwUaBQpluzLNDqif3kq9z2wpdYEfQ=
6+
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
217
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
228
github.com/stretchr/testify v1.7.0 h1:nwc3DEeHmmLAfoZucVR881uASk0Mfjw8xYJ99tb5CcY=
23-
golang.org/x/crypto v0.0.0-20220511200225-c6db032c6c88 h1:Tgea0cVUD0ivh5ADBX4WwuI12DUd2to3nCYe2eayMIw=
24-
golang.org/x/crypto v0.0.0-20220511200225-c6db032c6c88/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4=
259
golang.org/x/net v0.0.0-20220425223048-2871e0cb64e4 h1:HVyaeDAYux4pnY+D/SiwmLOR36ewZ4iGQIIrtnuCjFA=
2610
golang.org/x/net v0.0.0-20220425223048-2871e0cb64e4/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk=
27-
golang.org/x/sys v0.0.0-20210124154548-22da62e12c0c/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs=
28-
golang.org/x/sys v0.0.0-20211216021012-1d35b9e2eb4e h1:fLOSk5Q00efkSvAm+4xcoXD+RRmLmmulPn5I3Y9F2EM=
29-
golang.org/x/sys v0.0.0-20211216021012-1d35b9e2eb4e/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
3011
golang.org/x/text v0.3.7 h1:olpwvP2KacW1ZWvsR7uQhoyTYvKAupfQrRGBFM352Gk=
3112
golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ=
32-
gopkg.in/yaml.v2 v2.4.0 h1:D8xgwECY7CYvx+Y2n4sBz93Jn9JRvxdiyyo8CTfuKaY=
13+
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
3314
gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b h1:h8qDotaEPuJATrMmW04NCwg7v22aHH28wwpauUhK9Oo=
15+
gopkg.in/yaml.v3 v3.0.0-20210107192922-496545a6307b/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=

sdk/resourcemanager/consumption/armconsumption/zz_generated_lots_client.go renamed to sdk/resourcemanager/consumption/armconsumption/lots_client.go

Lines changed: 1 addition & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sdk/resourcemanager/consumption/armconsumption/zz_generated_marketplaces_client.go renamed to sdk/resourcemanager/consumption/armconsumption/marketplaces_client.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)