Skip to content
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,6 +1,8 @@
# Release History

## 1.0.0-beta.2 (Unreleased)
## 1.0.0-beta.1 (2023-03-18)

- Azure Resource Manager reservations client library for Java. This package contains Microsoft Azure SDK for reservations Management SDK. This API describe Azure Reservation. Package tag package-2022-11. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt).

### Features Added

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ Various documentation is available to help you get started
<dependency>
<groupId>com.azure.resourcemanager</groupId>
<artifactId>azure-resourcemanager-reservations</artifactId>
<version>1.0.0-beta.1</version>
<version>1.0.0-beta.2</version>
</dependency>
```
[//]: # ({x-version-update-end})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -473,7 +473,7 @@ public final class QuotaRequestStatusGetSamples {
.getWithResponse(
"00000000-0000-0000-0000-000000000000",
"Microsoft.Compute",
"eastus",
"westus",
"2B5C8515-37D8-4B6A-879B-CD641A2CF605",
com.azure.core.util.Context.NONE);
}
Expand Down
8 changes: 7 additions & 1 deletion sdk/reservations/azure-resourcemanager-reservations/pom.xml
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
<!--
~ Copyright (c) Microsoft Corporation. All rights reserved.
~ Licensed under the MIT License.
~ Code generated by Microsoft (R) AutoRest Code Generator.
-->
<project xmlns="http://maven.apache.org/POM/4.0.0" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<modelVersion>4.0.0</modelVersion>
<parent>
Expand Down Expand Up @@ -38,7 +43,8 @@
</developers>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<jacoco.skip>true</jacoco.skip>
<jacoco.min.linecoverage>0</jacoco.min.linecoverage>
<jacoco.min.branchcoverage>0</jacoco.min.branchcoverage>
</properties>
<dependencies>
<dependency>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import com.azure.core.management.polling.PollResult;
import com.azure.core.util.Context;
import com.azure.core.util.polling.SyncPoller;
import com.azure.resourcemanager.reservations.fluent.models.RefundResponseInner;
import com.azure.resourcemanager.reservations.fluent.models.ReservationOrderResponseInner;
import com.azure.resourcemanager.reservations.models.RefundRequest;

/** An instance of this class provides access to all the operations defined in ReturnsClient. */
Expand All @@ -24,11 +24,10 @@ public interface ReturnsClient {
* @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 {@link SyncPoller} for polling of the response of refund request containing refund information of
* reservation.
* @return the {@link SyncPoller} for polling of details of a reservation order being returned.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller<PollResult<RefundResponseInner>, RefundResponseInner> beginPost(
SyncPoller<PollResult<ReservationOrderResponseInner>, ReservationOrderResponseInner> beginPost(
String reservationOrderId, RefundRequest body);

/**
Expand All @@ -42,11 +41,10 @@ SyncPoller<PollResult<RefundResponseInner>, RefundResponseInner> beginPost(
* @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 {@link SyncPoller} for polling of the response of refund request containing refund information of
* reservation.
* @return the {@link SyncPoller} for polling of details of a reservation order being returned.
*/
@ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
SyncPoller<PollResult<RefundResponseInner>, RefundResponseInner> beginPost(
SyncPoller<PollResult<ReservationOrderResponseInner>, ReservationOrderResponseInner> beginPost(
String reservationOrderId, RefundRequest body, Context context);

/**
Expand All @@ -59,10 +57,10 @@ SyncPoller<PollResult<RefundResponseInner>, RefundResponseInner> beginPost(
* @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 response of refund request containing refund information of reservation.
* @return details of a reservation order being returned.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
RefundResponseInner post(String reservationOrderId, RefundRequest body);
ReservationOrderResponseInner post(String reservationOrderId, RefundRequest body);

/**
* Return a reservation.
Expand All @@ -75,8 +73,8 @@ SyncPoller<PollResult<RefundResponseInner>, RefundResponseInner> beginPost(
* @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 response of refund request containing refund information of reservation.
* @return details of a reservation order being returned.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
RefundResponseInner post(String reservationOrderId, RefundRequest body, Context context);
ReservationOrderResponseInner post(String reservationOrderId, RefundRequest body, Context context);
}
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ public final class PatchProperties {
private AppliedScopeType appliedScopeType;

/*
* List of the subscriptions that the benefit will be applied. Do not specify if AppliedScopeType is Shared.
* List of the subscriptions that the benefit will be applied. Do not specify if AppliedScopeType is Shared. This
* property will be deprecated and replaced by appliedScopeProperties instead for Single AppliedScopeType.
*/
@JsonProperty(value = "appliedScopes")
private List<String> appliedScopes;
Expand Down Expand Up @@ -92,7 +93,8 @@ public PatchProperties withAppliedScopeType(AppliedScopeType appliedScopeType) {

/**
* Get the appliedScopes property: List of the subscriptions that the benefit will be applied. Do not specify if
* AppliedScopeType is Shared.
* AppliedScopeType is Shared. This property will be deprecated and replaced by appliedScopeProperties instead for
* Single AppliedScopeType.
*
* @return the appliedScopes value.
*/
Expand All @@ -102,7 +104,8 @@ public List<String> appliedScopes() {

/**
* Set the appliedScopes property: List of the subscriptions that the benefit will be applied. Do not specify if
* AppliedScopeType is Shared.
* AppliedScopeType is Shared. This property will be deprecated and replaced by appliedScopeProperties instead for
* Single AppliedScopeType.
*
* @param appliedScopes the appliedScopes value to set.
* @return the PatchProperties object itself.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,8 @@ public final class PurchaseRequestProperties {
private AppliedScopeType appliedScopeType;

/*
* List of the subscriptions that the benefit will be applied. Do not specify if AppliedScopeType is Shared.
* List of the subscriptions that the benefit will be applied. Do not specify if AppliedScopeType is Shared. This
* property will be deprecated and replaced by appliedScopeProperties instead for Single AppliedScopeType.
*/
@JsonProperty(value = "appliedScopes")
private List<String> appliedScopes;
Expand Down Expand Up @@ -237,7 +238,8 @@ public PurchaseRequestProperties withAppliedScopeType(AppliedScopeType appliedSc

/**
* Get the appliedScopes property: List of the subscriptions that the benefit will be applied. Do not specify if
* AppliedScopeType is Shared.
* AppliedScopeType is Shared. This property will be deprecated and replaced by appliedScopeProperties instead for
* Single AppliedScopeType.
*
* @return the appliedScopes value.
*/
Expand All @@ -247,7 +249,8 @@ public List<String> appliedScopes() {

/**
* Set the appliedScopes property: List of the subscriptions that the benefit will be applied. Do not specify if
* AppliedScopeType is Shared.
* AppliedScopeType is Shared. This property will be deprecated and replaced by appliedScopeProperties instead for
* Single AppliedScopeType.
*
* @param appliedScopes the appliedScopes value to set.
* @return the PurchaseRequestProperties object itself.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,7 @@ public final class QuotaRequestStatusClientImpl implements QuotaRequestStatusCli
public interface QuotaRequestStatusService {
@Headers({"Content-Type: application/json"})
@Get(
"/subscriptions/{subscriptionId}/providers/Microsoft.Capacity/resourceProviders/{providerId}/locations"
+ "/{location}/serviceLimitsRequests/{id}")
"/subscriptions/{subscriptionId}/providers/Microsoft.Capacity/resourceProviders/{providerId}/locations/{location}/serviceLimitsRequests/{id}")
@ExpectedResponses({200})
@UnexpectedResponseExceptionType(ManagementException.class)
Mono<Response<QuotaRequestDetailsInner>> get(
Expand All @@ -74,8 +73,7 @@ Mono<Response<QuotaRequestDetailsInner>> get(

@Headers({"Content-Type: application/json"})
@Get(
"/subscriptions/{subscriptionId}/providers/Microsoft.Capacity/resourceProviders/{providerId}/locations"
+ "/{location}/serviceLimitsRequests")
"/subscriptions/{subscriptionId}/providers/Microsoft.Capacity/resourceProviders/{providerId}/locations/{location}/serviceLimitsRequests")
@ExpectedResponses({200})
@UnexpectedResponseExceptionType(ManagementException.class)
Mono<Response<QuotaRequestDetailsList>> list(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,7 @@ public final class QuotasClientImpl implements QuotasClient {
public interface QuotasService {
@Headers({"Content-Type: application/json"})
@Get(
"/subscriptions/{subscriptionId}/providers/Microsoft.Capacity/resourceProviders/{providerId}/locations"
+ "/{location}/serviceLimits/{resourceName}")
"/subscriptions/{subscriptionId}/providers/Microsoft.Capacity/resourceProviders/{providerId}/locations/{location}/serviceLimits/{resourceName}")
@ExpectedResponses({200})
@UnexpectedResponseExceptionType(ManagementException.class)
Mono<QuotasGetResponse> get(
Expand All @@ -83,8 +82,7 @@ Mono<QuotasGetResponse> get(

@Headers({"Content-Type: application/json"})
@Put(
"/subscriptions/{subscriptionId}/providers/Microsoft.Capacity/resourceProviders/{providerId}/locations"
+ "/{location}/serviceLimits/{resourceName}")
"/subscriptions/{subscriptionId}/providers/Microsoft.Capacity/resourceProviders/{providerId}/locations/{location}/serviceLimits/{resourceName}")
@ExpectedResponses({200, 201})
@UnexpectedResponseExceptionType(ManagementException.class)
Mono<Response<Flux<ByteBuffer>>> createOrUpdate(
Expand All @@ -100,8 +98,7 @@ Mono<Response<Flux<ByteBuffer>>> createOrUpdate(

@Headers({"Content-Type: application/json"})
@Patch(
"/subscriptions/{subscriptionId}/providers/Microsoft.Capacity/resourceProviders/{providerId}/locations"
+ "/{location}/serviceLimits/{resourceName}")
"/subscriptions/{subscriptionId}/providers/Microsoft.Capacity/resourceProviders/{providerId}/locations/{location}/serviceLimits/{resourceName}")
@ExpectedResponses({200, 201})
@UnexpectedResponseExceptionType(ManagementException.class)
Mono<Response<Flux<ByteBuffer>>> update(
Expand All @@ -117,8 +114,7 @@ Mono<Response<Flux<ByteBuffer>>> update(

@Headers({"Content-Type: application/json"})
@Get(
"/subscriptions/{subscriptionId}/providers/Microsoft.Capacity/resourceProviders/{providerId}/locations"
+ "/{location}/serviceLimits")
"/subscriptions/{subscriptionId}/providers/Microsoft.Capacity/resourceProviders/{providerId}/locations/{location}/serviceLimits")
@ExpectedResponses({200})
@UnexpectedResponseExceptionType(ManagementException.class)
Mono<QuotasListResponse> list(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,7 @@ public final class ReservationsClientImpl implements ReservationsClient {
public interface ReservationsService {
@Headers({"Content-Type: application/json"})
@Post(
"/providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}/reservations/{reservationId}"
+ "/availableScopes")
"/providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}/reservations/{reservationId}/availableScopes")
@ExpectedResponses({200})
@UnexpectedResponseExceptionType(ManagementException.class)
Mono<Response<Flux<ByteBuffer>>> availableScopes(
Expand Down Expand Up @@ -163,8 +162,7 @@ Mono<Response<Void>> archive(

@Headers({"Content-Type: application/json"})
@Post(
"/providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}/reservations/{reservationId}"
+ "/unarchive")
"/providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}/reservations/{reservationId}/unarchive")
@ExpectedResponses({200})
@UnexpectedResponseExceptionType(ManagementException.class)
Mono<Response<Void>> unarchive(
Expand All @@ -177,8 +175,7 @@ Mono<Response<Void>> unarchive(

@Headers({"Content-Type: application/json"})
@Get(
"/providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}/reservations/{reservationId}"
+ "/revisions")
"/providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}/reservations/{reservationId}/revisions")
@ExpectedResponses({200})
@UnexpectedResponseExceptionType(ManagementException.class)
Mono<Response<ReservationList>> listRevisions(
Expand Down
Loading