Skip to content

Commit 5f0c45b

Browse files
author
SDKAuto
committed
CodeGen from PR 33626 in Azure/azure-rest-api-specs
Merge 2d3b313c51a1202c0117371683c0c1e4c728a12f into ff761e7c771e6e57442ade02e86a063ec9e7276c
1 parent 3f1d7a8 commit 5f0c45b

File tree

187 files changed

+1689
-3784
lines changed

Some content is hidden

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

187 files changed

+1689
-3784
lines changed

sdk/consumption/azure-resourcemanager-consumption/CHANGELOG.md

Lines changed: 63 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,73 @@
11
# Release History
22

3-
## 1.1.0-beta.1 (Unreleased)
3+
## 1.0.0-beta.1 (2025-04-01)
44

5-
### Features Added
5+
- Azure Resource Manager Consumption client library for Java. This package contains Microsoft Azure SDK for Consumption Management SDK. Consumption management client provides access to consumption resources for Azure Enterprise Subscriptions. Package tag package-2025-04-01. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
66

77
### Breaking Changes
88

9-
### Bugs Fixed
9+
#### `models.ReservationRecommendationDetails` was modified
10+
11+
* `getWithResponse(java.lang.String,models.Scope,java.lang.String,models.Term,models.LookBackPeriod,java.lang.String,com.azure.core.util.Context)` was removed
12+
13+
#### `models.EventSummary` was modified
14+
15+
* `closedBalance()` was removed
16+
* `charges()` was removed
17+
18+
#### `models.ReservationTransactions` was modified
19+
20+
* `list(java.lang.String,java.lang.String,com.azure.core.util.Context)` was removed
21+
22+
### Features Added
23+
24+
* `models.SavingsPlan` was added
25+
26+
* `models.OrganizationType` was added
27+
28+
#### `models.LotSummary` was modified
29+
30+
* `usedAmount()` was added
31+
* `isEstimatedBalance()` was added
32+
* `organizationType()` was added
33+
34+
#### `models.PriceSheetProperties` was modified
35+
36+
* `savingsPlan()` was added
37+
38+
#### `models.ReservationRecommendationDetails` was modified
39+
40+
* `getWithResponse(java.lang.String,models.Scope,java.lang.String,models.Term,models.LookBackPeriod,java.lang.String,java.lang.String,com.azure.core.util.Context)` was added
41+
42+
#### `models.Balance` was modified
43+
44+
* `overageRefund()` was added
45+
46+
#### `models.EventSummary` was modified
47+
48+
* `chargesInLotCurrency()` was added
49+
* `billingAccountId()` was added
50+
* `closedBalanceInLotCurrency()` was added
51+
* `billingAccountDisplayName()` was added
52+
* `isEstimatedBalance()` was added
53+
54+
#### `models.ReservationTransactions` was modified
55+
56+
* `list(java.lang.String,java.lang.String,java.lang.Boolean,java.math.BigDecimal,com.azure.core.util.Context)` was added
57+
58+
#### `models.ModernReservationRecommendationProperties` was modified
59+
60+
* `totalHours()` was added
61+
* `lastUsageDate()` was added
62+
63+
#### `models.CreditSummary` was modified
64+
65+
* `isEstimatedBalance()` was added
66+
67+
#### `models.LegacyReservationRecommendationProperties` was modified
1068

11-
### Other Changes
69+
* `lastUsageDate()` was added
70+
* `totalHours()` was added
1271

1372
## 1.0.0 (2024-12-24)
1473

sdk/consumption/azure-resourcemanager-consumption/README.md

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
Azure Resource Manager Consumption client library for Java.
44

5-
This package contains Microsoft Azure SDK for Consumption Management SDK. Consumption management client provides access to consumption resources for Azure Enterprise Subscriptions. Package tag package-2021-10. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
5+
This package contains Microsoft Azure SDK for Consumption Management SDK. Consumption management client provides access to consumption resources for Azure Enterprise Subscriptions. Package tag package-2025-04-01. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
66

77
## We'd love to hear your feedback
88

@@ -52,15 +52,15 @@ Azure subscription ID can be configured via `AZURE_SUBSCRIPTION_ID` environment
5252
Assuming the use of the `DefaultAzureCredential` credential class, the client can be authenticated using the following code:
5353

5454
```java
55-
AzureProfile profile = new AzureProfile(AzureEnvironment.AZURE);
55+
AzureProfile profile = new AzureProfile(AzureCloud.AZURE_PUBLIC_CLOUD);
5656
TokenCredential credential = new DefaultAzureCredentialBuilder()
5757
.authorityHost(profile.getEnvironment().getActiveDirectoryEndpoint())
5858
.build();
5959
ConsumptionManager manager = ConsumptionManager
6060
.authenticate(credential, profile);
6161
```
6262

63-
The sample code assumes global Azure. Please change `AzureEnvironment.AZURE` variable if otherwise.
63+
The sample code assumes global Azure. Please change the `AzureCloud.AZURE_PUBLIC_CLOUD` variable if otherwise.
6464

6565
See [Authentication][authenticate] for more options.
6666

@@ -100,5 +100,3 @@ This project has adopted the [Microsoft Open Source Code of Conduct][coc]. For m
100100
[cg]: https://github.com/Azure/azure-sdk-for-java/blob/main/CONTRIBUTING.md
101101
[coc]: https://opensource.microsoft.com/codeofconduct/
102102
[coc_faq]: https://opensource.microsoft.com/codeofconduct/faq/
103-
104-

0 commit comments

Comments
 (0)