@azure/arm-reservations 7.2.1-alpha.20230202.1 → 8.0.0-alpha.20230210.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (128) hide show
  1. package/CHANGELOG.md +71 -8
  2. package/LICENSE +1 -1
  3. package/dist/index.js +942 -224
  4. package/dist/index.js.map +1 -1
  5. package/dist/index.min.js +1 -1
  6. package/dist/index.min.js.map +1 -1
  7. package/dist-esm/samples-dev/calculateExchangePostSample.js +22 -2
  8. package/dist-esm/samples-dev/calculateExchangePostSample.js.map +1 -1
  9. package/dist-esm/samples-dev/calculateRefundPostSample.js +10 -3
  10. package/dist-esm/samples-dev/calculateRefundPostSample.js.map +1 -1
  11. package/dist-esm/samples-dev/exchangePostSample.js +9 -2
  12. package/dist-esm/samples-dev/exchangePostSample.js.map +1 -1
  13. package/dist-esm/samples-dev/getAppliedReservationListSample.js +9 -2
  14. package/dist-esm/samples-dev/getAppliedReservationListSample.js.map +1 -1
  15. package/dist-esm/samples-dev/getCatalogSample.js +26 -5
  16. package/dist-esm/samples-dev/getCatalogSample.js.map +1 -1
  17. package/dist-esm/samples-dev/operationListSample.js +9 -2
  18. package/dist-esm/samples-dev/operationListSample.js.map +1 -1
  19. package/dist-esm/samples-dev/quotaCreateOrUpdateSample.js +10 -3
  20. package/dist-esm/samples-dev/quotaCreateOrUpdateSample.js.map +1 -1
  21. package/dist-esm/samples-dev/quotaGetSample.js +8 -1
  22. package/dist-esm/samples-dev/quotaGetSample.js.map +1 -1
  23. package/dist-esm/samples-dev/quotaListSample.js +9 -2
  24. package/dist-esm/samples-dev/quotaListSample.js.map +1 -1
  25. package/dist-esm/samples-dev/quotaRequestStatusGetSample.js +10 -3
  26. package/dist-esm/samples-dev/quotaRequestStatusGetSample.js.map +1 -1
  27. package/dist-esm/samples-dev/quotaRequestStatusListSample.js +8 -1
  28. package/dist-esm/samples-dev/quotaRequestStatusListSample.js.map +1 -1
  29. package/dist-esm/samples-dev/quotaUpdateSample.js +8 -1
  30. package/dist-esm/samples-dev/quotaUpdateSample.js.map +1 -1
  31. package/dist-esm/samples-dev/reservationArchiveSample.js +9 -2
  32. package/dist-esm/samples-dev/reservationArchiveSample.js.map +1 -1
  33. package/dist-esm/samples-dev/reservationAvailableScopesSample.js +11 -4
  34. package/dist-esm/samples-dev/reservationAvailableScopesSample.js.map +1 -1
  35. package/dist-esm/samples-dev/reservationGetSample.js +11 -4
  36. package/dist-esm/samples-dev/reservationGetSample.js.map +1 -1
  37. package/dist-esm/samples-dev/reservationListAllSample.js +10 -3
  38. package/dist-esm/samples-dev/reservationListAllSample.js.map +1 -1
  39. package/dist-esm/samples-dev/reservationListRevisionsSample.js +11 -4
  40. package/dist-esm/samples-dev/reservationListRevisionsSample.js.map +1 -1
  41. package/dist-esm/samples-dev/reservationListSample.js +9 -2
  42. package/dist-esm/samples-dev/reservationListSample.js.map +1 -1
  43. package/dist-esm/samples-dev/reservationMergeSample.js +9 -2
  44. package/dist-esm/samples-dev/reservationMergeSample.js.map +1 -1
  45. package/dist-esm/samples-dev/reservationOrderCalculateSample.js +10 -3
  46. package/dist-esm/samples-dev/reservationOrderCalculateSample.js.map +1 -1
  47. package/dist-esm/samples-dev/reservationOrderChangeDirectorySample.js +9 -2
  48. package/dist-esm/samples-dev/reservationOrderChangeDirectorySample.js.map +1 -1
  49. package/dist-esm/samples-dev/reservationOrderGetSample.js +12 -5
  50. package/dist-esm/samples-dev/reservationOrderGetSample.js.map +1 -1
  51. package/dist-esm/samples-dev/reservationOrderListSample.js +9 -2
  52. package/dist-esm/samples-dev/reservationOrderListSample.js.map +1 -1
  53. package/dist-esm/samples-dev/reservationOrderPurchaseSample.js +9 -2
  54. package/dist-esm/samples-dev/reservationOrderPurchaseSample.js.map +1 -1
  55. package/dist-esm/samples-dev/reservationSplitSample.js +9 -2
  56. package/dist-esm/samples-dev/reservationSplitSample.js.map +1 -1
  57. package/dist-esm/samples-dev/reservationUnarchiveSample.js +11 -4
  58. package/dist-esm/samples-dev/reservationUnarchiveSample.js.map +1 -1
  59. package/dist-esm/samples-dev/reservationUpdateSample.js +9 -2
  60. package/dist-esm/samples-dev/reservationUpdateSample.js.map +1 -1
  61. package/dist-esm/samples-dev/returnPostSample.js +14 -7
  62. package/dist-esm/samples-dev/returnPostSample.js.map +1 -1
  63. package/dist-esm/src/azureReservationAPI.d.ts +18 -2
  64. package/dist-esm/src/azureReservationAPI.d.ts.map +1 -1
  65. package/dist-esm/src/azureReservationAPI.js +101 -15
  66. package/dist-esm/src/azureReservationAPI.js.map +1 -1
  67. package/dist-esm/src/index.d.ts +1 -0
  68. package/dist-esm/src/index.d.ts.map +1 -1
  69. package/dist-esm/src/index.js +1 -0
  70. package/dist-esm/src/index.js.map +1 -1
  71. package/dist-esm/src/models/index.d.ts +372 -101
  72. package/dist-esm/src/models/index.d.ts.map +1 -1
  73. package/dist-esm/src/models/index.js +26 -0
  74. package/dist-esm/src/models/index.js.map +1 -1
  75. package/dist-esm/src/models/mappers.d.ts +14 -1
  76. package/dist-esm/src/models/mappers.d.ts.map +1 -1
  77. package/dist-esm/src/models/mappers.js +510 -70
  78. package/dist-esm/src/models/mappers.js.map +1 -1
  79. package/dist-esm/src/models/parameters.d.ts +2 -1
  80. package/dist-esm/src/models/parameters.d.ts.map +1 -1
  81. package/dist-esm/src/models/parameters.js +18 -9
  82. package/dist-esm/src/models/parameters.js.map +1 -1
  83. package/dist-esm/src/operations/operation.d.ts.map +1 -1
  84. package/dist-esm/src/operations/operation.js +19 -8
  85. package/dist-esm/src/operations/operation.js.map +1 -1
  86. package/dist-esm/src/operations/quota.d.ts.map +1 -1
  87. package/dist-esm/src/operations/quota.js +19 -8
  88. package/dist-esm/src/operations/quota.js.map +1 -1
  89. package/dist-esm/src/operations/quotaRequestStatus.d.ts.map +1 -1
  90. package/dist-esm/src/operations/quotaRequestStatus.js +19 -13
  91. package/dist-esm/src/operations/quotaRequestStatus.js.map +1 -1
  92. package/dist-esm/src/operations/reservation.d.ts +17 -17
  93. package/dist-esm/src/operations/reservation.d.ts.map +1 -1
  94. package/dist-esm/src/operations/reservation.js +83 -59
  95. package/dist-esm/src/operations/reservation.js.map +1 -1
  96. package/dist-esm/src/operations/reservationOrder.d.ts.map +1 -1
  97. package/dist-esm/src/operations/reservationOrder.js +20 -9
  98. package/dist-esm/src/operations/reservationOrder.js.map +1 -1
  99. package/dist-esm/src/operations/return.d.ts +10 -2
  100. package/dist-esm/src/operations/return.d.ts.map +1 -1
  101. package/dist-esm/src/operations/return.js +61 -3
  102. package/dist-esm/src/operations/return.js.map +1 -1
  103. package/dist-esm/src/operationsInterfaces/reservation.d.ts +15 -15
  104. package/dist-esm/src/operationsInterfaces/reservation.d.ts.map +1 -1
  105. package/dist-esm/src/operationsInterfaces/return.d.ts +10 -2
  106. package/dist-esm/src/operationsInterfaces/return.d.ts.map +1 -1
  107. package/dist-esm/src/pagingHelper.d.ts +13 -0
  108. package/dist-esm/src/pagingHelper.d.ts.map +1 -0
  109. package/dist-esm/src/pagingHelper.js +32 -0
  110. package/dist-esm/src/pagingHelper.js.map +1 -0
  111. package/package.json +6 -4
  112. package/review/arm-reservations.api.md +194 -94
  113. package/src/azureReservationAPI.ts +119 -15
  114. package/src/index.ts +1 -0
  115. package/src/models/index.ts +397 -107
  116. package/src/models/mappers.ts +536 -71
  117. package/src/models/parameters.ts +19 -9
  118. package/src/operations/operation.ts +21 -9
  119. package/src/operations/quota.ts +23 -15
  120. package/src/operations/quotaRequestStatus.ts +23 -20
  121. package/src/operations/reservation.ts +97 -69
  122. package/src/operations/reservationOrder.ts +23 -11
  123. package/src/operations/return.ts +82 -4
  124. package/src/operationsInterfaces/reservation.ts +15 -15
  125. package/src/operationsInterfaces/return.ts +16 -2
  126. package/src/pagingHelper.ts +39 -0
  127. package/types/arm-reservations.d.ts +432 -109
  128. package/types/tsdoc-metadata.json +1 -1
package/CHANGELOG.md CHANGED
@@ -1,15 +1,78 @@
1
1
  # Release History
2
+
3
+ ## 8.0.0 (2023-02-01)
4
+
5
+ **Features**
2
6
 
3
- ## 7.2.1 (Unreleased)
4
-
5
- ### Features Added
6
-
7
- ### Breaking Changes
8
-
9
- ### Bugs Fixed
7
+ - Added operation Return.beginPost
8
+ - Added operation Return.beginPostAndWait
9
+ - Added Interface AppliedScopeProperties
10
+ - Added Interface CatalogsResult
11
+ - Added Interface Commitment
12
+ - Added Interface GetCatalogNextOptionalParams
13
+ - Added Interface ProxyResource
14
+ - Added Interface ReservationMergeHeaders
15
+ - Added Interface ReservationOrderPurchaseHeaders
16
+ - Added Interface ReservationSplitHeaders
17
+ - Added Interface ReservationSwapProperties
18
+ - Added Interface ReservationUpdateHeaders
19
+ - Added Interface Resource
20
+ - Added Interface SavingsPlanPurchaseRequest
21
+ - Added Interface SavingsPlanToPurchaseCalculateExchange
22
+ - Added Interface SavingsPlanToPurchaseExchange
23
+ - Added Type Alias BillingPlan
24
+ - Added Type Alias CommitmentGrain
25
+ - Added Type Alias GetCatalogNextResponse
26
+ - Added Type Alias SavingsPlanTerm
27
+ - Interface CalculateExchangeRequestProperties has a new optional parameter savingsPlansToPurchase
28
+ - Interface CalculateExchangeResponseProperties has a new optional parameter savingsPlansToPurchase
29
+ - Interface ExchangeResponseProperties has a new optional parameter savingsPlansToPurchase
30
+ - Interface GetCatalogOptionalParams has a new optional parameter filter
31
+ - Interface GetCatalogOptionalParams has a new optional parameter skip
32
+ - Interface GetCatalogOptionalParams has a new optional parameter take
33
+ - Interface Patch has a new optional parameter appliedScopeProperties
34
+ - Interface Patch has a new optional parameter reviewDateTime
35
+ - Interface PurchaseRequest has a new optional parameter appliedScopeProperties
36
+ - Interface PurchaseRequest has a new optional parameter reviewDateTime
37
+ - Interface ReservationOrderResponse has a new optional parameter expiryDateTime
38
+ - Interface ReservationOrderResponse has a new optional parameter reviewDateTime
39
+ - Interface ReservationsProperties has a new optional parameter appliedScopeProperties
40
+ - Interface ReservationsProperties has a new optional parameter expiryDateTime
41
+ - Interface ReservationsProperties has a new optional parameter purchaseDateTime
42
+ - Interface ReservationsProperties has a new optional parameter reviewDateTime
43
+ - Interface ReservationsProperties has a new optional parameter swapProperties
44
+ - Interface ReservationSummary has a new optional parameter noBenefitCount
45
+ - Interface ReservationSummary has a new optional parameter warningCount
46
+ - Interface ReturnPostOptionalParams has a new optional parameter resumeFrom
47
+ - Interface ReturnPostOptionalParams has a new optional parameter updateIntervalInMs
48
+ - Added Enum KnownBillingPlan
49
+ - Added Enum KnownCommitmentGrain
50
+ - Added Enum KnownSavingsPlanTerm
51
+ - Enum KnownAppliedScopeType has a new value ManagementGroup
52
+ - Enum KnownDisplayProvisioningState has a new value NoBenefit
53
+ - Enum KnownDisplayProvisioningState has a new value Warning
54
+ - Added function getContinuationToken
55
+ - Interface QuotaRequestStatusListNextOptionalParams no longer has parameter filter
56
+ - Interface QuotaRequestStatusListNextOptionalParams no longer has parameter skiptoken
57
+ - Interface QuotaRequestStatusListNextOptionalParams no longer has parameter top
58
+ - Interface ReservationListAllNextOptionalParams no longer has parameter filter
59
+ - Interface ReservationListAllNextOptionalParams no longer has parameter orderby
60
+ - Interface ReservationListAllNextOptionalParams no longer has parameter refreshSummary
61
+ - Interface ReservationListAllNextOptionalParams no longer has parameter selectedState
62
+ - Interface ReservationListAllNextOptionalParams no longer has parameter skiptoken
63
+ - Interface ReservationListAllNextOptionalParams no longer has parameter take
64
+ - Interface ReservationResponse no longer has parameter id
65
+ - Interface ReservationResponse no longer has parameter name
66
+ - Interface ReservationResponse no longer has parameter systemData
67
+ - Interface ReservationResponse no longer has parameter type
10
68
 
11
- ### Other Changes
69
+ **Breaking Changes**
12
70
 
71
+ - Removed operation Return.post
72
+ - Operation Reservation.listRevisions has a new signature
73
+ - Operation Reservation.get has a new signature
74
+
75
+
13
76
  ## 7.2.0 (2022-09-19)
14
77
 
15
78
  **Features**
package/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  The MIT License (MIT)
2
2
 
3
- Copyright (c) 2022 Microsoft
3
+ Copyright (c) 2023 Microsoft
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal