Skip to content

Commit 35bf7ea

Browse files
author
SDKAuto
committed
CodeGen from PR 34160 in Azure/azure-rest-api-specs
Merge 88f4af1c57d0557d9ed70faaf568984a8b329dc5 into 5802c95f18bfba1003be50e545d07f8bb679c857
1 parent b429a1d commit 35bf7ea

File tree

54 files changed

+6813
-3154
lines changed

Some content is hidden

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

54 files changed

+6813
-3154
lines changed

sdk/resourcemanager/billingbenefits/armbillingbenefits/CHANGELOG.md

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

3+
## 3.0.0-beta.1 (2025-05-12)
4+
### Breaking Changes
5+
6+
- Function `NewClientFactory` parameter(s) have been changed from `(azcore.TokenCredential, *arm.ClientOptions)` to `(string, azcore.TokenCredential, *arm.ClientOptions)`
7+
- Type of `PurchaseRequest.SKU` has been changed from `*SKU` to `*ResourceSKU`
8+
- Type of `ReservationOrderAliasRequest.SKU` has been changed from `*SKU` to `*ResourceSKU`
9+
- Type of `ReservationOrderAliasResponse.SKU` has been changed from `*SKU` to `*ResourceSKU`
10+
- Type of `SavingsPlanModel.SKU` has been changed from `*SKU` to `*ResourceSKU`
11+
- Type of `SavingsPlanOrderAliasModel.SKU` has been changed from `*SKU` to `*ResourceSKU`
12+
- Type of `SavingsPlanOrderModel.SKU` has been changed from `*SKU` to `*ResourceSKU`
13+
- Function `*ClientFactory.NewRPClient` has been removed
14+
- Function `*ClientFactory.NewReservationOrderAliasClient` has been removed
15+
- Function `*ClientFactory.NewSavingsPlanClient` has been removed
16+
- Function `*ClientFactory.NewSavingsPlanOrderAliasClient` has been removed
17+
- Function `*ClientFactory.NewSavingsPlanOrderClient` has been removed
18+
- Function `NewRPClient` has been removed
19+
- Function `*RPClient.ValidatePurchase` has been removed
20+
- Function `NewReservationOrderAliasClient` has been removed
21+
- Function `*ReservationOrderAliasClient.BeginCreate` has been removed
22+
- Function `*ReservationOrderAliasClient.Get` has been removed
23+
- Function `NewSavingsPlanClient` has been removed
24+
- Function `*SavingsPlanClient.Get` has been removed
25+
- Function `*SavingsPlanClient.NewListAllPager` has been removed
26+
- Function `*SavingsPlanClient.NewListPager` has been removed
27+
- Function `*SavingsPlanClient.Update` has been removed
28+
- Function `*SavingsPlanClient.ValidateUpdate` has been removed
29+
- Function `NewSavingsPlanOrderAliasClient` has been removed
30+
- Function `*SavingsPlanOrderAliasClient.BeginCreate` has been removed
31+
- Function `*SavingsPlanOrderAliasClient.Get` has been removed
32+
- Function `NewSavingsPlanOrderClient` has been removed
33+
- Function `*SavingsPlanOrderClient.Elevate` has been removed
34+
- Function `*SavingsPlanOrderClient.Get` has been removed
35+
- Function `*SavingsPlanOrderClient.NewListPager` has been removed
36+
- Struct `SKU` has been removed
37+
38+
### Features Added
39+
40+
- New value `CommitmentGrainFullTerm`, `CommitmentGrainUnknown` added to enum type `CommitmentGrain`
41+
- New enum type `ApplyDiscountOn` with values `ApplyDiscountOnConsume`, `ApplyDiscountOnPurchase`, `ApplyDiscountOnRenew`
42+
- New enum type `DiscountAppliedScopeType` with values `DiscountAppliedScopeTypeBillingAccount`, `DiscountAppliedScopeTypeBillingProfile`, `DiscountAppliedScopeTypeCustomer`
43+
- New enum type `DiscountCombinationRule` with values `DiscountCombinationRuleBestOf`, `DiscountCombinationRuleStackable`
44+
- New enum type `DiscountEntityType` with values `DiscountEntityTypeAffiliate`, `DiscountEntityTypePrimary`
45+
- New enum type `DiscountProvisioningState` with values `DiscountProvisioningStateCanceled`, `DiscountProvisioningStateFailed`, `DiscountProvisioningStatePending`, `DiscountProvisioningStateSucceeded`, `DiscountProvisioningStateUnknown`
46+
- New enum type `DiscountStatus` with values `DiscountStatusActive`, `DiscountStatusCanceled`, `DiscountStatusExpired`, `DiscountStatusFailed`, `DiscountStatusPending`
47+
- New enum type `DiscountType` with values `DiscountTypeCustomPrice`, `DiscountTypeCustomPriceMultiCurrency`, `DiscountTypeProduct`, `DiscountTypeProductFamily`, `DiscountTypeSKU`
48+
- New enum type `PricingPolicy` with values `PricingPolicyLocked`, `PricingPolicyProtected`
49+
- New function `*ClientFactory.NewDiscountsClient() *DiscountsClient`
50+
- New function `*ClientFactory.NewDiscountsOperationGroupClient() *DiscountsOperationGroupClient`
51+
- New function `*ClientFactory.NewReservationOrderAliasResponsesClient() *ReservationOrderAliasResponsesClient`
52+
- New function `*ClientFactory.NewSavingsPlanModelsClient() *SavingsPlanModelsClient`
53+
- New function `*ClientFactory.NewSavingsPlanOperationGroupClient() *SavingsPlanOperationGroupClient`
54+
- New function `*ClientFactory.NewSavingsPlanOrderAliasModelsClient() *SavingsPlanOrderAliasModelsClient`
55+
- New function `*ClientFactory.NewSavingsPlanOrderModelsClient() *SavingsPlanOrderModelsClient`
56+
- New function `*DiscountProperties.GetDiscountProperties() *DiscountProperties`
57+
- New function `*DiscountTypeProduct.GetDiscountTypeProperties() *DiscountTypeProperties`
58+
- New function `*DiscountTypeProductFamily.GetDiscountTypeProperties() *DiscountTypeProperties`
59+
- New function `*DiscountTypeProductSKU.GetDiscountTypeProperties() *DiscountTypeProperties`
60+
- New function `*DiscountTypeProperties.GetDiscountTypeProperties() *DiscountTypeProperties`
61+
- New function `NewDiscountsClient(string, azcore.TokenCredential, *arm.ClientOptions) (*DiscountsClient, error)`
62+
- New function `*DiscountsClient.BeginCancel(context.Context, string, string, *DiscountsClientBeginCancelOptions) (*runtime.Poller[DiscountsClientCancelResponse], error)`
63+
- New function `*DiscountsClient.BeginCreate(context.Context, string, string, Discount, *DiscountsClientBeginCreateOptions) (*runtime.Poller[DiscountsClientCreateResponse], error)`
64+
- New function `*DiscountsClient.BeginDelete(context.Context, string, string, *DiscountsClientBeginDeleteOptions) (*runtime.Poller[DiscountsClientDeleteResponse], error)`
65+
- New function `*DiscountsClient.Get(context.Context, string, string, *DiscountsClientGetOptions) (DiscountsClientGetResponse, error)`
66+
- New function `*DiscountsClient.NewResourceGroupListPager(string, *DiscountsClientResourceGroupListOptions) *runtime.Pager[DiscountsClientResourceGroupListResponse]`
67+
- New function `*DiscountsClient.NewSubscriptionListPager(*DiscountsClientSubscriptionListOptions) *runtime.Pager[DiscountsClientSubscriptionListResponse]`
68+
- New function `*DiscountsClient.BeginUpdate(context.Context, string, string, DiscountPatchRequest, *DiscountsClientBeginUpdateOptions) (*runtime.Poller[DiscountsClientUpdateResponse], error)`
69+
- New function `NewDiscountsOperationGroupClient(azcore.TokenCredential, *arm.ClientOptions) (*DiscountsOperationGroupClient, error)`
70+
- New function `*DiscountsOperationGroupClient.NewScopeListPager(string, *DiscountsOperationGroupClientScopeListOptions) *runtime.Pager[DiscountsOperationGroupClientScopeListResponse]`
71+
- New function `*EntityTypeAffiliateDiscount.GetDiscountProperties() *DiscountProperties`
72+
- New function `*EntityTypePrimaryDiscount.GetDiscountProperties() *DiscountProperties`
73+
- New function `NewReservationOrderAliasResponsesClient(azcore.TokenCredential, *arm.ClientOptions) (*ReservationOrderAliasResponsesClient, error)`
74+
- New function `*ReservationOrderAliasResponsesClient.BeginCreate(context.Context, string, ReservationOrderAliasRequest, *ReservationOrderAliasResponsesClientBeginCreateOptions) (*runtime.Poller[ReservationOrderAliasResponsesClientCreateResponse], error)`
75+
- New function `*ReservationOrderAliasResponsesClient.Get(context.Context, string, *ReservationOrderAliasResponsesClientGetOptions) (ReservationOrderAliasResponsesClientGetResponse, error)`
76+
- New function `NewSavingsPlanModelsClient(azcore.TokenCredential, *arm.ClientOptions) (*SavingsPlanModelsClient, error)`
77+
- New function `*SavingsPlanModelsClient.Get(context.Context, string, string, *SavingsPlanModelsClientGetOptions) (SavingsPlanModelsClientGetResponse, error)`
78+
- New function `*SavingsPlanModelsClient.NewListPager(string, *SavingsPlanModelsClientListOptions) *runtime.Pager[SavingsPlanModelsClientListResponse]`
79+
- New function `*SavingsPlanModelsClient.BeginUpdate(context.Context, string, string, SavingsPlanUpdateRequest, *SavingsPlanModelsClientBeginUpdateOptions) (*runtime.Poller[SavingsPlanModelsClientUpdateResponse], error)`
80+
- New function `*SavingsPlanModelsClient.ValidateUpdate(context.Context, string, string, SavingsPlanUpdateValidateRequest, *SavingsPlanModelsClientValidateUpdateOptions) (SavingsPlanModelsClientValidateUpdateResponse, error)`
81+
- New function `NewSavingsPlanOperationGroupClient(azcore.TokenCredential, *arm.ClientOptions) (*SavingsPlanOperationGroupClient, error)`
82+
- New function `*SavingsPlanOperationGroupClient.NewListAllPager(*SavingsPlanOperationGroupClientListAllOptions) *runtime.Pager[SavingsPlanOperationGroupClientListAllResponse]`
83+
- New function `*SavingsPlanOperationGroupClient.ValidatePurchase(context.Context, SavingsPlanPurchaseValidateRequest, *SavingsPlanOperationGroupClientValidatePurchaseOptions) (SavingsPlanOperationGroupClientValidatePurchaseResponse, error)`
84+
- New function `NewSavingsPlanOrderAliasModelsClient(azcore.TokenCredential, *arm.ClientOptions) (*SavingsPlanOrderAliasModelsClient, error)`
85+
- New function `*SavingsPlanOrderAliasModelsClient.BeginCreate(context.Context, string, SavingsPlanOrderAliasModel, *SavingsPlanOrderAliasModelsClientBeginCreateOptions) (*runtime.Poller[SavingsPlanOrderAliasModelsClientCreateResponse], error)`
86+
- New function `*SavingsPlanOrderAliasModelsClient.Get(context.Context, string, *SavingsPlanOrderAliasModelsClientGetOptions) (SavingsPlanOrderAliasModelsClientGetResponse, error)`
87+
- New function `NewSavingsPlanOrderModelsClient(azcore.TokenCredential, *arm.ClientOptions) (*SavingsPlanOrderModelsClient, error)`
88+
- New function `*SavingsPlanOrderModelsClient.Elevate(context.Context, string, *SavingsPlanOrderModelsClientElevateOptions) (SavingsPlanOrderModelsClientElevateResponse, error)`
89+
- New function `*SavingsPlanOrderModelsClient.Get(context.Context, string, *SavingsPlanOrderModelsClientGetOptions) (SavingsPlanOrderModelsClientGetResponse, error)`
90+
- New function `*SavingsPlanOrderModelsClient.NewListPager(*SavingsPlanOrderModelsClientListOptions) *runtime.Pager[SavingsPlanOrderModelsClientListResponse]`
91+
- New struct `ConditionsItem`
92+
- New struct `Discount`
93+
- New struct `DiscountList`
94+
- New struct `DiscountPatchRequest`
95+
- New struct `DiscountPatchRequestProperties`
96+
- New struct `DiscountTypeProduct`
97+
- New struct `DiscountTypeProductFamily`
98+
- New struct `DiscountTypeProductSKU`
99+
- New struct `EntityTypeAffiliateDiscount`
100+
- New struct `EntityTypePrimaryDiscount`
101+
- New struct `PriceGuaranteeProperties`
102+
- New struct `ResourceSKU`
103+
- New field `Renew` in struct `SavingsPlanOrderAliasProperties`
104+
105+
3106
## 2.1.0 (2023-11-24)
4107
### Features Added
5108

sdk/resourcemanager/billingbenefits/armbillingbenefits/README.md

Lines changed: 2 additions & 2 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 Billingbenefits module:
1919

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

2424
## Authorization
@@ -55,7 +55,7 @@ clientFactory, err := armbillingbenefits.NewClientFactory(<subscription ID>, cre
5555
A client groups a set of related APIs, providing access to its functionality. Create one or more clients to access the APIs you require using client factory.
5656

5757
```go
58-
client := clientFactory.NewRPClient()
58+
client := clientFactory.NewDiscountsClient()
5959
```
6060

6161
## Fakes

sdk/resourcemanager/billingbenefits/armbillingbenefits/autorest.md

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

sdk/resourcemanager/billingbenefits/armbillingbenefits/build.go

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

sdk/resourcemanager/billingbenefits/armbillingbenefits/client_factory.go

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

0 commit comments

Comments
 (0)