Skip to content

Commit

Permalink
CodeGen from PR 21565 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Merge 9d604aef48007ddf3b95bd27a95618f0ab193919 into be6cd9ccfcb6ba08c1c206627026eabfbff31fc1
  • Loading branch information
SDKAuto committed Nov 19, 2022
1 parent 9811d74 commit 6181e89
Show file tree
Hide file tree
Showing 26 changed files with 1,056 additions and 1,649 deletions.
114 changes: 114 additions & 0 deletions sdk/resourcemanager/reservations/armreservations/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,119 @@
# Release History

## 2.0.0 (2022-11-19)
### Breaking Changes

- Type of `PurchaseRequest.Location` has been changed from `*string` to `*Location`
- Type of `Properties.UserFriendlyAppliedScopeType` has been changed from `*string` to `*UserFriendlyAppliedScopeType`
- Type of `Properties.UserFriendlyRenewState` has been changed from `*string` to `*UserFriendlyRenewState`
- Type of `Properties.Capabilities` has been changed from `*string` to `*Capabilities`
- Type of `Properties.ProvisioningSubState` has been changed from `*string` to `*ProvisioningSubState`
- Type of `Properties.DisplayProvisioningState` has been changed from `*string` to `*DisplayProvisioningState`
- Type of `ReservationResponse.Location` has been changed from `*string` to `*Location`
- Function `*CalculateRefundClient.Post` has been removed
- Function `NewCalculateRefundClient` has been removed
- Function `*CalculateExchangeClient.BeginPost` has been removed
- Function `*ReturnClient.Post` has been removed
- Function `NewExchangeClient` has been removed
- Function `NewReturnClient` has been removed
- Function `*ExchangeClient.BeginPost` has been removed
- Function `NewCalculateExchangeClient` has been removed
- Function `*ReservationOrderClient.Calculate` has been removed
- Struct `CalculateExchangeClient` has been removed
- Struct `CalculateExchangeClientBeginPostOptions` has been removed
- Struct `CalculateExchangeClientPostResponse` has been removed
- Struct `CalculateRefundClient` has been removed
- Struct `CalculateRefundClientPostOptions` has been removed
- Struct `CalculateRefundClientPostResponse` has been removed
- Struct `ExchangeClient` has been removed
- Struct `ExchangeClientBeginPostOptions` has been removed
- Struct `ExchangeClientPostResponse` has been removed
- Struct `ReservationOrderClientCalculateOptions` has been removed
- Struct `ReservationOrderClientCalculateResponse` has been removed
- Struct `ReturnClient` has been removed
- Struct `ReturnClientPostOptions` has been removed
- Struct `ReturnClientPostResponse` has been removed
- Field `ExpiryDate` of struct `Properties` has been removed
- Field `PurchaseDate` of struct `Properties` has been removed
- Field `OfferID` of struct `AzureReservationAPIClientGetCatalogOptions` has been removed
- Field `PlanID` of struct `AzureReservationAPIClientGetCatalogOptions` has been removed
- Field `PublisherID` of struct `AzureReservationAPIClientGetCatalogOptions` has been removed
- Field `CatalogArray` of struct `AzureReservationAPIClientGetCatalogResponse` has been removed
- Field `ExpiryDate` of struct `ReservationOrderProperties` has been removed

### Features Added

- New const `ProvisioningSubStatePending`
- New const `CapabilitiesNone`
- New const `ProvisioningSubStateOrphaned`
- New const `ProvisioningSubStateAppliedBenefits`
- New const `BillingPlanP1M`
- New const `ProvisioningSubStateNone`
- New const `SavingsPlanTermP1Y`
- New const `ProvisioningSubStateWarning`
- New const `CapabilitiesAPIExchangeEnabled`
- New const `SavingsPlanTermP3Y`
- New const `DisplayProvisioningStateNoBenefit`
- New const `CapabilitiesAPIReturnEnabled`
- New const `ProvisioningSubStateActive`
- New const `AppliedScopeTypeManagementGroup`
- New const `DisplayProvisioningStateWarning`
- New const `CommitmentGrainHourly`
- New type alias `CommitmentGrain`
- New type alias `BillingPlan`
- New type alias `Capabilities`
- New type alias `SavingsPlanTerm`
- New type alias `ProvisioningSubState`
- New function `PossibleCommitmentGrainValues() []CommitmentGrain`
- New function `*ReservationOrderClient.Return(context.Context, string, RefundRequest, *ReservationOrderClientReturnOptions) (ReservationOrderClientReturnResponse, error)`
- New function `PossibleProvisioningSubStateValues() []ProvisioningSubState`
- New function `PossibleSavingsPlanTermValues() []SavingsPlanTerm`
- New function `*ReservationOrderClient.CalculatePrice(context.Context, PurchaseRequest, *ReservationOrderClientCalculatePriceOptions) (ReservationOrderClientCalculatePriceResponse, error)`
- New function `*AzureReservationAPIClient.BeginCalculateExchange(context.Context, CalculateExchangeRequest, *AzureReservationAPIClientBeginCalculateExchangeOptions) (*runtime.Poller[AzureReservationAPIClientCalculateExchangeResponse], error)`
- New function `*AzureReservationAPIClient.BeginExchange(context.Context, ExchangeRequest, *AzureReservationAPIClientBeginExchangeOptions) (*runtime.Poller[AzureReservationAPIClientExchangeResponse], error)`
- New function `*ReservationOrderClient.CalculateRefund(context.Context, string, CalculateRefundRequest, *ReservationOrderClientCalculateRefundOptions) (ReservationOrderClientCalculateRefundResponse, error)`
- New function `PossibleCapabilitiesValues() []Capabilities`
- New function `PossibleBillingPlanValues() []BillingPlan`
- New struct `AppliedScopeProperties`
- New struct `AzureReservationAPIClientBeginCalculateExchangeOptions`
- New struct `AzureReservationAPIClientBeginExchangeOptions`
- New struct `AzureReservationAPIClientCalculateExchangeResponse`
- New struct `AzureReservationAPIClientExchangeResponse`
- New struct `CatalogsResult`
- New struct `Commitment`
- New struct `ReservationOrderClientCalculatePriceOptions`
- New struct `ReservationOrderClientCalculatePriceResponse`
- New struct `ReservationOrderClientCalculateRefundOptions`
- New struct `ReservationOrderClientCalculateRefundResponse`
- New struct `ReservationOrderClientReturnOptions`
- New struct `ReservationOrderClientReturnResponse`
- New struct `ReservationSwapProperties`
- New struct `SavingsPlanPurchaseRequest`
- New struct `SavingsPlanPurchaseRequestProperties`
- New struct `SavingsPlanToPurchaseCalculateExchange`
- New struct `SavingsPlanToPurchaseExchange`
- New field `SavingsPlansToPurchase` in struct `CalculateExchangeRequestProperties`
- New field `ReviewDateTime` in struct `PurchaseRequestProperties`
- New field `AppliedScopeProperties` in struct `PurchaseRequestProperties`
- New field `AppliedScopeProperties` in struct `Properties`
- New field `PurchaseDateTime` in struct `Properties`
- New field `SwapProperties` in struct `Properties`
- New field `ReviewDateTime` in struct `Properties`
- New field `ExpiryDateTime` in struct `Properties`
- New field `AppliedScopeProperties` in struct `PatchProperties`
- New field `ReviewDateTime` in struct `PatchProperties`
- New field `SavingsPlansToPurchase` in struct `CalculateExchangeResponseProperties`
- New field `ExpiryDateTime` in struct `ReservationOrderProperties`
- New field `ReviewDateTime` in struct `ReservationOrderProperties`
- New field `NoBenefitCount` in struct `ReservationSummary`
- New field `WarningCount` in struct `ReservationSummary`
- New anonymous field `CatalogsResult` in struct `AzureReservationAPIClientGetCatalogResponse`
- New field `SavingsPlansToPurchase` in struct `ExchangeResponseProperties`
- New field `Take` in struct `AzureReservationAPIClientGetCatalogOptions`
- New field `Filter` in struct `AzureReservationAPIClientGetCatalogOptions`
- New field `Skip` in struct `AzureReservationAPIClientGetCatalogOptions`


## 1.1.0 (2022-09-16)
### Features Added

Expand Down
6 changes: 3 additions & 3 deletions sdk/resourcemanager/reservations/armreservations/autorest.md
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/0507c3d410681049bb5cd9545b49a7578a91d3d0/specification/reservations/resource-manager/readme.md
- https://github.com/Azure/azure-rest-api-specs/blob/0507c3d410681049bb5cd9545b49a7578a91d3d0/specification/reservations/resource-manager/readme.go.md
- /mnt/vss/_work/1/s/azure-rest-api-specs/specification/reservations/resource-manager/readme.md
- /mnt/vss/_work/1/s/azure-rest-api-specs/specification/reservations/resource-manager/readme.go.md
license-header: MICROSOFT_MIT_NO_VERSION
module-version: 1.1.0
module-version: 2.0.0

```

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

This file was deleted.

Loading

0 comments on commit 6181e89

Please sign in to comment.