
com.azure.resourcemanager.billing.models.Departments 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.models;
import com.azure.core.http.rest.PagedIterable;
import com.azure.core.http.rest.Response;
import com.azure.core.util.Context;
/**
* Resource collection API of Departments.
*/
public interface Departments {
/**
* Gets a department by ID. The operation is supported only for billing accounts with agreement type Enterprise
* Agreement.
*
* @param billingAccountName The ID that uniquely identifies a billing account.
* @param departmentName The name of the department.
* @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 department by ID along with {@link Response}.
*/
Response getWithResponse(String billingAccountName, String departmentName, Context context);
/**
* Gets a department by ID. The operation is supported only for billing accounts with agreement type Enterprise
* Agreement.
*
* @param billingAccountName The ID that uniquely identifies a billing account.
* @param departmentName The name of the department.
* @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 department by ID.
*/
Department get(String billingAccountName, String departmentName);
/**
* Lists the departments that a user has access to. The operation is supported only for billing accounts with
* agreement type Enterprise Agreement.
*
* @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 a container for a list of resources as paginated response with {@link PagedIterable}.
*/
PagedIterable listByBillingAccount(String billingAccountName);
/**
* Lists the departments that a user has access to. The operation is supported only for billing accounts with
* agreement type Enterprise Agreement.
*
* @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 top The top query option requests the number of items in the queried collection to be included in the
* result. The maximum supported value for top is 50.
* @param skip The skip query option requests the number of items in the queried collection that are to be skipped
* and not included in the result.
* @param search The search query option allows clients to request items within a collection matching a free-text
* search expression. search is only supported for string fields.
* @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 container for a list of resources as paginated response with {@link PagedIterable}.
*/
PagedIterable listByBillingAccount(String billingAccountName, String filter, String orderBy, Long top,
Long skip, String search, Context context);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy