Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AutoPR azure-resourcemanager-consumption] [Hub Generated] Review request for Microsoft.Consumption to add version stable/2021-05-01 #8022

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
# Release History

## 1.0.0-beta.2 (Unreleased)
## 1.0.0-beta.1 (2021-05-05)

- 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-2021-05. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).

## 1.0.0-beta.1 (2021-04-13)

Expand Down
4 changes: 2 additions & 2 deletions sdk/consumption/azure-resourcemanager-consumption/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

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-2019-10. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).
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-05. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).

## We'd love to hear your feedback

Expand Down Expand Up @@ -32,7 +32,7 @@ Various documentation is available to help you get started
<dependency>
<groupId>com.azure.resourcemanager</groupId>
<artifactId>azure-resourcemanager-consumption</artifactId>
<version>1.0.0-beta.1</version>
<version>1.0.0-beta.2</version>
</dependency>
```
[//]: # ({x-version-update-end})
Expand Down
2 changes: 1 addition & 1 deletion sdk/consumption/azure-resourcemanager-consumption/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<packaging>jar</packaging>

<name>Microsoft Azure SDK for Consumption Management</name>
<description>This package contains Microsoft Azure SDK for Consumption Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Consumption management client provides access to consumption resources for Azure Enterprise Subscriptions. Package tag package-2019-10.</description>
<description>This package contains Microsoft Azure SDK for Consumption Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Consumption management client provides access to consumption resources for Azure Enterprise Subscriptions. Package tag package-2021-05.</description>
<url>https://github.com/Azure/azure-sdk-for-java</url>

<licenses>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,33 +15,27 @@ public interface CreditsClient {
/**
* The credit summary by billingAccountId and billingProfileId.
*
* @param scope The scope associated with credits operations. This includes
* '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfile/{billingProfileId}' for
* Billing Profile scope, and
* 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/customers/{customerId}' specific for
* partners.
* @param billingAccountId BillingAccount ID.
* @param billingProfileId Azure Billing Profile ID.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return a credit summary resource.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
CreditSummaryInner get(String scope);
CreditSummaryInner get(String billingAccountId, String billingProfileId);

/**
* The credit summary by billingAccountId and billingProfileId.
*
* @param scope The scope associated with credits operations. This includes
* '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfile/{billingProfileId}' for
* Billing Profile scope, and
* 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/customers/{customerId}' specific for
* partners.
* @param billingAccountId BillingAccount ID.
* @param billingProfileId Azure Billing Profile ID.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return a credit summary resource.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response<CreditSummaryInner> getWithResponse(String scope, Context context);
Response<CreditSummaryInner> getWithResponse(String billingAccountId, String billingProfileId, Context context);
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,39 +13,67 @@
/** An instance of this class provides access to all the operations defined in EventsOperationsClient. */
public interface EventsOperationsClient {
/**
* Lists the events by billingAccountId and billingProfileId for given start and end date.
* Lists the events that decrements Azure credits or Microsoft Azure consumption commitment for a billing account or
* a billing profile for a given start and end date.
*
* @param billingAccountId BillingAccount ID.
* @param billingProfileId Azure Billing Profile ID.
* @param startDate Start date.
* @param endDate End date.
* @param scope The scope associated with events operations. This includes
* '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfile/{billingProfileId}' for
* Billing Profile scope, and
* 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/customers/{customerId}' specific for
* partners.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return result of listing event summary.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable<EventSummaryInner> list(String startDate, String endDate, String scope);
PagedIterable<EventSummaryInner> listByBillingProfile(
String billingAccountId, String billingProfileId, String startDate, String endDate);

/**
* Lists the events by billingAccountId and billingProfileId for given start and end date.
* Lists the events that decrements Azure credits or Microsoft Azure consumption commitment for a billing account or
* a billing profile for a given start and end date.
*
* @param billingAccountId BillingAccount ID.
* @param billingProfileId Azure Billing Profile ID.
* @param startDate Start date.
* @param endDate End date.
* @param scope The scope associated with events operations. This includes
* '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfile/{billingProfileId}' for
* Billing Profile scope, and
* 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/customers/{customerId}' specific for
* partners.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return result of listing event summary.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable<EventSummaryInner> list(String startDate, String endDate, String scope, Context context);
PagedIterable<EventSummaryInner> listByBillingProfile(
String billingAccountId, String billingProfileId, String startDate, String endDate, Context context);

/**
* Lists the events that decrements Azure credits or Microsoft Azure consumption commitment for a billing account or
* a billing profile for a given start and end date.
*
* @param billingAccountId BillingAccount ID.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return result of listing event summary.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable<EventSummaryInner> listByBillingAccount(String billingAccountId);

/**
* Lists the events that decrements Azure credits or Microsoft Azure consumption commitment for a billing account or
* a billing profile for a given start and end date.
*
* @param billingAccountId BillingAccount ID.
* @param filter May be used to filter the events by lotId, lotSource etc. The filter supports 'eq', 'lt', 'gt',
* 'le', 'ge', and 'and'. It does not currently support 'ne', 'or', or 'not'. Tag filter is a key value pair
* string where key and value is separated by a colon (:).
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return result of listing event summary.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable<EventSummaryInner> listByBillingAccount(String billingAccountId, String filter, Context context);
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,35 +13,62 @@
/** An instance of this class provides access to all the operations defined in LotsOperationsClient. */
public interface LotsOperationsClient {
/**
* Lists the lots by billingAccountId and billingProfileId.
* Lists all Azure credits and Microsoft Azure consumption commitments for a billing account or a billing profile.
* Microsoft Azure consumption commitments are only supported for the billing account scope.
*
* @param scope The scope associated with Lots operations. This includes
* '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfile/{billingProfileId}' for
* Billing Profile scope, and
* 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/customers/{customerId}' specific for
* partners.
* @param billingAccountId BillingAccount ID.
* @param billingProfileId Azure Billing Profile ID.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return result of listing lot summary.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable<LotSummaryInner> list(String scope);
PagedIterable<LotSummaryInner> listByBillingProfile(String billingAccountId, String billingProfileId);

/**
* Lists the lots by billingAccountId and billingProfileId.
* Lists all Azure credits and Microsoft Azure consumption commitments for a billing account or a billing profile.
* Microsoft Azure consumption commitments are only supported for the billing account scope.
*
* @param scope The scope associated with Lots operations. This includes
* '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfile/{billingProfileId}' for
* Billing Profile scope, and
* 'providers/Microsoft.Billing/billingAccounts/{billingAccountId}/customers/{customerId}' specific for
* partners.
* @param billingAccountId BillingAccount ID.
* @param billingProfileId Azure Billing Profile ID.
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return result of listing lot summary.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable<LotSummaryInner> list(String scope, Context context);
PagedIterable<LotSummaryInner> listByBillingProfile(
String billingAccountId, String billingProfileId, Context context);

/**
* Lists all Azure credits and Microsoft Azure consumption commitments for a billing account or a billing profile.
* Microsoft Azure consumption commitments are only supported for the billing account scope.
*
* @param billingAccountId BillingAccount ID.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return result of listing lot summary.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable<LotSummaryInner> listByBillingAccount(String billingAccountId);

/**
* Lists all Azure credits and Microsoft Azure consumption commitments for a billing account or a billing profile.
* Microsoft Azure consumption commitments are only supported for the billing account scope.
*
* @param billingAccountId BillingAccount ID.
* @param filter May be used to filter the lots by Status, Source etc. The filter supports 'eq', 'lt', 'gt', 'le',
* 'ge', and 'and'. It does not currently support 'ne', 'or', or 'not'. Tag filter is a key value pair string
* where key and value is separated by a colon (:).
* @param context The context to associate with this operation.
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return result of listing lot summary.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable<LotSummaryInner> listByBillingAccount(String billingAccountId, String filter, Context context);
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,17 @@
/** An instance of this class provides access to all the operations defined in PriceSheetsClient. */
public interface PriceSheetsClient {
/**
* Gets the price sheet for a scope by subscriptionId. Price sheet is available via this API only for May 1, 2014 or
* later.
* Gets the price sheet for a subscription. Price sheet is available via this API only for May 1, 2014 or later.
*
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the price sheet for a scope by subscriptionId.
* @return the price sheet for a subscription.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
PriceSheetResultInner get();

/**
* Gets the price sheet for a scope by subscriptionId. Price sheet is available via this API only for May 1, 2014 or
* later.
* Gets the price sheet for a subscription. Price sheet is available via this API only for May 1, 2014 or later.
*
* @param expand May be used to expand the properties/meterDetails within a price sheet. By default, these fields
* are not included when returning price sheet.
Expand All @@ -37,7 +35,7 @@ public interface PriceSheetsClient {
* @throws IllegalArgumentException thrown if parameters fail the validation.
* @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
* @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
* @return the price sheet for a scope by subscriptionId.
* @return the price sheet for a subscription.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response<PriceSheetResultInner> getWithResponse(String expand, String skiptoken, Integer top, Context context);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@ public interface ReservationRecommendationDetailsClient {
/**
* Details of a reservation recommendation for what-if analysis of reserved instances.
*
* @param billingScope The scope associated with reservation recommendation details operations. This includes
* @param scope The scope associated with reservation recommendation details operations. This includes
* '/subscriptions/{subscriptionId}/' for subscription scope,
* '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resource group scope,
* /providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for BillingAccount scope, and
* '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for
* billingProfile scope.
* @param scope Scope of the reservation.
* @param scope1 Scope of the reservation.
* @param region Used to select the region the recommendation should be generated for.
* @param term Specify length of reservation recommendation term.
* @param lookBackPeriod Filter the time period on which reservation recommendation results are based.
Expand All @@ -39,18 +39,18 @@ public interface ReservationRecommendationDetailsClient {
*/
@ServiceMethod(returns = ReturnType.SINGLE)
ReservationRecommendationDetailsModelInner get(
String billingScope, Scope scope, String region, Term term, LookBackPeriod lookBackPeriod, String product);
String scope, Scope scope1, String region, Term term, LookBackPeriod lookBackPeriod, String product);

/**
* Details of a reservation recommendation for what-if analysis of reserved instances.
*
* @param billingScope The scope associated with reservation recommendation details operations. This includes
* @param scope The scope associated with reservation recommendation details operations. This includes
* '/subscriptions/{subscriptionId}/' for subscription scope,
* '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}' for resource group scope,
* /providers/Microsoft.Billing/billingAccounts/{billingAccountId}' for BillingAccount scope, and
* '/providers/Microsoft.Billing/billingAccounts/{billingAccountId}/billingProfiles/{billingProfileId}' for
* billingProfile scope.
* @param scope Scope of the reservation.
* @param scope1 Scope of the reservation.
* @param region Used to select the region the recommendation should be generated for.
* @param term Specify length of reservation recommendation term.
* @param lookBackPeriod Filter the time period on which reservation recommendation results are based.
Expand All @@ -64,8 +64,8 @@ ReservationRecommendationDetailsModelInner get(
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response<ReservationRecommendationDetailsModelInner> getWithResponse(
String billingScope,
Scope scope,
String scope,
Scope scope1,
String region,
Term term,
LookBackPeriod lookBackPeriod,
Expand Down
Loading