Skip to content

Commit

Permalink
CodeGen from PR 32829 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Merge b8e27981b70e6bbcf7d720a98bbc46c3975631a7 into 15af9f5125486f6fe45fcd4730a3803c4b6c81ee
  • Loading branch information
SDKAuto committed Feb 26, 2025
1 parent bf35e0c commit 44521f1
Show file tree
Hide file tree
Showing 41 changed files with 3,974 additions and 1,961 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,76 @@
# Release History

## 3.0.0-beta.1 (2025-02-26)
### Breaking Changes

- Type of `PurchaseRequest.SKU` has been changed from `*SKU` to `*ResourceSKU`
- Type of `ReservationOrderAliasRequest.SKU` has been changed from `*SKU` to `*ResourceSKU`
- Type of `ReservationOrderAliasResponse.SKU` has been changed from `*SKU` to `*ResourceSKU`
- Type of `SavingsPlanModel.SKU` has been changed from `*SKU` to `*ResourceSKU`
- Type of `SavingsPlanOrderAliasModel.SKU` has been changed from `*SKU` to `*ResourceSKU`
- Type of `SavingsPlanOrderModel.SKU` has been changed from `*SKU` to `*ResourceSKU`
- Operation `*SavingsPlanClient.Update` has been changed to LRO, use `*SavingsPlanClient.BeginUpdate` instead.

### Features Added

- New value `CommitmentGrainFullTerm`, `CommitmentGrainUnknown` added to enum type `CommitmentGrain`
- New enum type `ApplyDiscountOn` with values `ApplyDiscountOnConsume`, `ApplyDiscountOnPurchase`, `ApplyDiscountOnRenew`
- New enum type `DiscountAppliedScopeType` with values `DiscountAppliedScopeTypeBillingAccount`, `DiscountAppliedScopeTypeBillingProfile`, `DiscountAppliedScopeTypeCustomer`
- New enum type `DiscountCombinationRule` with values `DiscountCombinationRuleBestOf`, `DiscountCombinationRuleStackable`
- New enum type `DiscountEntityType` with values `DiscountEntityTypeAffiliate`, `DiscountEntityTypePrimary`
- New enum type `DiscountProvisioningState` with values `DiscountProvisioningStateCanceled`, `DiscountProvisioningStateFailed`, `DiscountProvisioningStatePending`, `DiscountProvisioningStateSucceeded`, `DiscountProvisioningStateUnknown`
- New enum type `DiscountRuleType` with values `DiscountRuleTypeFixedListPrice`, `DiscountRuleTypeFixedPriceLock`, `DiscountRuleTypePriceCeiling`
- New enum type `DiscountStatus` with values `DiscountStatusActive`, `DiscountStatusCanceled`, `DiscountStatusExpired`, `DiscountStatusFailed`, `DiscountStatusPending`
- New enum type `DiscountType` with values `DiscountTypeCustomPrice`, `DiscountTypeCustomPriceMultiCurrency`, `DiscountTypeProduct`, `DiscountTypeProductFamily`, `DiscountTypeSKU`
- New enum type `ManagedServiceIdentityType` with values `ManagedServiceIdentityTypeNone`, `ManagedServiceIdentityTypeSystemAssigned`, `ManagedServiceIdentityTypeSystemAssignedUserAssigned`, `ManagedServiceIdentityTypeUserAssigned`
- New enum type `PricingPolicy` with values `PricingPolicyLocked`, `PricingPolicyProtected`
- New enum type `SKUTier` with values `SKUTierBasic`, `SKUTierFree`, `SKUTierPremium`, `SKUTierStandard`
- New function `*ClientFactory.NewDiscountClient(string) *DiscountClient`
- New function `*ClientFactory.NewDiscountsClient(string) *DiscountsClient`
- New function `NewDiscountClient(string, azcore.TokenCredential, *arm.ClientOptions) (*DiscountClient, error)`
- New function `*DiscountClient.Get(context.Context, string, string, *DiscountClientGetOptions) (DiscountClientGetResponse, error)`
- New function `*DiscountClient.BeginUpdate(context.Context, string, string, DiscountPatchRequest, *DiscountClientBeginUpdateOptions) (*runtime.Poller[DiscountClientUpdateResponse], error)`
- New function `*DiscountProperties.GetDiscountProperties() *DiscountProperties`
- New function `*DiscountTypeCustomPrice.GetDiscountTypeCustomPrice() *DiscountTypeCustomPrice`
- New function `*DiscountTypeCustomPrice.GetDiscountTypeProperties() *DiscountTypeProperties`
- New function `*DiscountTypeCustomPriceMultiCurrency.GetDiscountTypeCustomPrice() *DiscountTypeCustomPrice`
- New function `*DiscountTypeCustomPriceMultiCurrency.GetDiscountTypeProperties() *DiscountTypeProperties`
- New function `*DiscountTypeProduct.GetDiscountTypeProperties() *DiscountTypeProperties`
- New function `*DiscountTypeProductFamily.GetDiscountTypeProperties() *DiscountTypeProperties`
- New function `*DiscountTypeProductSKU.GetDiscountTypeProperties() *DiscountTypeProperties`
- New function `*DiscountTypeProperties.GetDiscountTypeProperties() *DiscountTypeProperties`
- New function `NewDiscountsClient(string, azcore.TokenCredential, *arm.ClientOptions) (*DiscountsClient, error)`
- New function `*DiscountsClient.BeginCancel(context.Context, string, string, *DiscountsClientBeginCancelOptions) (*runtime.Poller[DiscountsClientCancelResponse], error)`
- New function `*DiscountsClient.BeginCreate(context.Context, string, string, Discount, *DiscountsClientBeginCreateOptions) (*runtime.Poller[DiscountsClientCreateResponse], error)`
- New function `*DiscountsClient.BeginDelete(context.Context, string, string, *DiscountsClientBeginDeleteOptions) (*runtime.Poller[DiscountsClientDeleteResponse], error)`
- New function `*DiscountsClient.NewResourceGroupListPager(string, *DiscountsClientResourceGroupListOptions) *runtime.Pager[DiscountsClientResourceGroupListResponse]`
- New function `*DiscountsClient.NewScopeListPager(string, *DiscountsClientScopeListOptions) *runtime.Pager[DiscountsClientScopeListResponse]`
- New function `*DiscountsClient.NewSubscriptionListPager(*DiscountsClientSubscriptionListOptions) *runtime.Pager[DiscountsClientSubscriptionListResponse]`
- New function `*EntityTypeAffiliateDiscount.GetDiscountProperties() *DiscountProperties`
- New function `*EntityTypePrimaryDiscount.GetDiscountProperties() *DiscountProperties`
- New struct `CatalogClaimsItem`
- New struct `ConditionsItem`
- New struct `CustomPriceProperties`
- New struct `Discount`
- New struct `DiscountList`
- New struct `DiscountPatchRequest`
- New struct `DiscountPatchRequestProperties`
- New struct `DiscountTypeCustomPriceMultiCurrency`
- New struct `DiscountTypeProduct`
- New struct `DiscountTypeProductFamily`
- New struct `DiscountTypeProductSKU`
- New struct `EntityTypeAffiliateDiscount`
- New struct `EntityTypePrimaryDiscount`
- New struct `ManagedServiceIdentity`
- New struct `MarketSetPricesItems`
- New struct `Plan`
- New struct `PriceGuaranteeProperties`
- New struct `ResourceSKU`
- New struct `UserAssignedIdentity`
- New field `Capacity`, `Family`, `Size`, `Tier` in struct `SKU`
- New field `Renew` in struct `SavingsPlanOrderAliasProperties`


## 2.1.0 (2023-11-24)
### Features Added

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ This project uses [Go modules](https://github.com/golang/go/wiki/Modules) for ve
Install the Azure Billingbenefits module:

```sh
go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/billingbenefits/armbillingbenefits/v2
go get github.com/Azure/azure-sdk-for-go/sdk/resourcemanager/billingbenefits/armbillingbenefits/v3
```

## Authorization
Expand Down Expand Up @@ -55,7 +55,7 @@ clientFactory, err := armbillingbenefits.NewClientFactory(<subscription ID>, cre
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.

```go
client := clientFactory.NewRPClient()
client := clientFactory.NewDiscountClient()
```

## Fakes
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
``` yaml
azure-arm: true
require:
- https://github.com/Azure/azure-rest-api-specs/blob/f790e624d0d080b89d962a3bd19c65bc6a6b2f5e/specification/billingbenefits/resource-manager/readme.md
- https://github.com/Azure/azure-rest-api-specs/blob/f790e624d0d080b89d962a3bd19c65bc6a6b2f5e/specification/billingbenefits/resource-manager/readme.go.md
- /mnt/vss/_work/1/s/azure-rest-api-specs/specification/billingbenefits/resource-manager/readme.md
- /mnt/vss/_work/1/s/azure-rest-api-specs/specification/billingbenefits/resource-manager/readme.go.md
license-header: MICROSOFT_MIT_NO_VERSION
module-version: 2.1.0
module-version: 3.0.0-beta.1

```

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 44521f1

Please sign in to comment.