
com.azure.resourcemanager.billing.fluent.ReservationOrdersClient Maven / Gradle / Ivy
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.billing.fluent;
import com.azure.core.annotation.ReturnType;
import com.azure.core.annotation.ServiceMethod;
import com.azure.core.http.rest.PagedIterable;
import com.azure.core.http.rest.Response;
import com.azure.core.util.Context;
import com.azure.resourcemanager.billing.fluent.models.ReservationOrderInner;
/**
* An instance of this class provides access to all the operations defined in ReservationOrdersClient.
*/
public interface ReservationOrdersClient {
/**
* Get a specific ReservationOrder in the billing account.
*
* Get the details of the ReservationOrder in the billing account.
*
* @param billingAccountName The ID that uniquely identifies a billing account.
* @param reservationOrderId Order Id of the reservation.
* @param expand May be used to expand the detail information of some properties.
* @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 the details of the ReservationOrder in the billing account along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response getByBillingAccountWithResponse(String billingAccountName,
String reservationOrderId, String expand, Context context);
/**
* Get a specific ReservationOrder in the billing account.
*
* Get the details of the ReservationOrder in the billing account.
*
* @param billingAccountName The ID that uniquely identifies a billing account.
* @param reservationOrderId Order Id of the reservation.
* @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 details of the ReservationOrder in the billing account.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
ReservationOrderInner getByBillingAccount(String billingAccountName, String reservationOrderId);
/**
* Get all `ReservationOrders in the billing account.
*
* List all the `ReservationOrders in the billing account.
*
* @param billingAccountName The ID that uniquely identifies a billing account.
* @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 list of ReservationOrders as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByBillingAccount(String billingAccountName);
/**
* Get all `ReservationOrders in the billing account.
*
* List all the `ReservationOrders in the billing account.
*
* @param billingAccountName The ID that uniquely identifies a billing account.
* @param filter The filter query option allows clients to filter a collection of resources that are addressed by a
* request URL.
* @param orderBy The orderby query option allows clients to request resources in a particular order.
* @param skiptoken The number of reservations to skip from the list before returning results.
* @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 list of ReservationOrders as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByBillingAccount(String billingAccountName, String filter, String orderBy,
Float skiptoken, Context context);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy