
com.azure.resourcemanager.billing.fluent.BillingRoleDefinitionsClient 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.BillingRoleDefinitionInner;
/**
* An instance of this class provides access to all the operations defined in BillingRoleDefinitionsClient.
*/
public interface BillingRoleDefinitionsClient {
/**
* Gets the definition for a role on a billing profile. The operation is supported for billing accounts with
* agreement type Microsoft Partner Agreement or Microsoft Customer Agreement.
*
* @param billingAccountName The ID that uniquely identifies a billing account.
* @param billingProfileName The ID that uniquely identifies a billing profile.
* @param roleDefinitionName The ID that uniquely identifies a role definition.
* @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 definition for a role on a billing profile along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response getByBillingProfileWithResponse(String billingAccountName,
String billingProfileName, String roleDefinitionName, Context context);
/**
* Gets the definition for a role on a billing profile. The operation is supported for billing accounts with
* agreement type Microsoft Partner Agreement or Microsoft Customer Agreement.
*
* @param billingAccountName The ID that uniquely identifies a billing account.
* @param billingProfileName The ID that uniquely identifies a billing profile.
* @param roleDefinitionName The ID that uniquely identifies a role definition.
* @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 definition for a role on a billing profile.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
BillingRoleDefinitionInner getByBillingProfile(String billingAccountName, String billingProfileName,
String roleDefinitionName);
/**
* Lists the role definitions for a billing profile. The operation is supported for billing accounts with agreement
* type Microsoft Partner Agreement, Microsoft Customer Agreement or Enterprise Agreement.
*
* @param billingAccountName The ID that uniquely identifies a billing account.
* @param billingProfileName The ID that uniquely identifies a billing profile.
* @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}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByBillingProfile(String billingAccountName,
String billingProfileName);
/**
* Lists the role definitions for a billing profile. The operation is supported for billing accounts with agreement
* type Microsoft Partner Agreement, Microsoft Customer Agreement or Enterprise Agreement.
*
* @param billingAccountName The ID that uniquely identifies a billing account.
* @param billingProfileName The ID that uniquely identifies a billing profile.
* @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}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByBillingProfile(String billingAccountName, String billingProfileName,
Context context);
/**
* Gets the definition for a role on a customer. The operation is supported only for billing accounts with agreement
* type Microsoft Partner Agreement.
*
* @param billingAccountName The ID that uniquely identifies a billing account.
* @param billingProfileName The ID that uniquely identifies a billing profile.
* @param customerName The ID that uniquely identifies a customer.
* @param roleDefinitionName The ID that uniquely identifies a role definition.
* @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 definition for a role on a customer along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response getByCustomerWithResponse(String billingAccountName, String billingProfileName,
String customerName, String roleDefinitionName, Context context);
/**
* Gets the definition for a role on a customer. The operation is supported only for billing accounts with agreement
* type Microsoft Partner Agreement.
*
* @param billingAccountName The ID that uniquely identifies a billing account.
* @param billingProfileName The ID that uniquely identifies a billing profile.
* @param customerName The ID that uniquely identifies a customer.
* @param roleDefinitionName The ID that uniquely identifies a role definition.
* @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 definition for a role on a customer.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
BillingRoleDefinitionInner getByCustomer(String billingAccountName, String billingProfileName, String customerName,
String roleDefinitionName);
/**
* Lists the role definitions for a customer. The operation is supported for billing accounts with agreement type
* Microsoft Partner Agreement.
*
* @param billingAccountName The ID that uniquely identifies a billing account.
* @param billingProfileName The ID that uniquely identifies a billing profile.
* @param customerName The ID that uniquely identifies a customer.
* @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}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByCustomer(String billingAccountName, String billingProfileName,
String customerName);
/**
* Lists the role definitions for a customer. The operation is supported for billing accounts with agreement type
* Microsoft Partner Agreement.
*
* @param billingAccountName The ID that uniquely identifies a billing account.
* @param billingProfileName The ID that uniquely identifies a billing profile.
* @param customerName The ID that uniquely identifies a customer.
* @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}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByCustomer(String billingAccountName, String billingProfileName,
String customerName, Context context);
/**
* Gets the definition for a role on an invoice section. The operation is supported only for billing accounts with
* agreement type Microsoft Customer Agreement.
*
* @param billingAccountName The ID that uniquely identifies a billing account.
* @param billingProfileName The ID that uniquely identifies a billing profile.
* @param invoiceSectionName The ID that uniquely identifies an invoice section.
* @param roleDefinitionName The ID that uniquely identifies a role definition.
* @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 definition for a role on an invoice section along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response getByInvoiceSectionWithResponse(String billingAccountName,
String billingProfileName, String invoiceSectionName, String roleDefinitionName, Context context);
/**
* Gets the definition for a role on an invoice section. The operation is supported only for billing accounts with
* agreement type Microsoft Customer Agreement.
*
* @param billingAccountName The ID that uniquely identifies a billing account.
* @param billingProfileName The ID that uniquely identifies a billing profile.
* @param invoiceSectionName The ID that uniquely identifies an invoice section.
* @param roleDefinitionName The ID that uniquely identifies a role definition.
* @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 definition for a role on an invoice section.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
BillingRoleDefinitionInner getByInvoiceSection(String billingAccountName, String billingProfileName,
String invoiceSectionName, String roleDefinitionName);
/**
* Lists the role definitions for an invoice section. The operation is supported for billing accounts with agreement
* type Microsoft Partner Agreement or Microsoft Customer Agreement.
*
* @param billingAccountName The ID that uniquely identifies a billing account.
* @param billingProfileName The ID that uniquely identifies a billing profile.
* @param invoiceSectionName The ID that uniquely identifies an invoice section.
* @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}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByInvoiceSection(String billingAccountName, String billingProfileName,
String invoiceSectionName);
/**
* Lists the role definitions for an invoice section. The operation is supported for billing accounts with agreement
* type Microsoft Partner Agreement or Microsoft Customer Agreement.
*
* @param billingAccountName The ID that uniquely identifies a billing account.
* @param billingProfileName The ID that uniquely identifies a billing profile.
* @param invoiceSectionName The ID that uniquely identifies an invoice section.
* @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}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByInvoiceSection(String billingAccountName, String billingProfileName,
String invoiceSectionName, Context context);
/**
* Gets the definition for a role on a billing account. The operation is supported for billing accounts with
* agreement type Microsoft Partner Agreement, Microsoft Customer Agreement or Enterprise Agreement.
*
* @param billingAccountName The ID that uniquely identifies a billing account.
* @param roleDefinitionName The ID that uniquely identifies a role definition.
* @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 definition for a role on a billing account along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response getByBillingAccountWithResponse(String billingAccountName,
String roleDefinitionName, Context context);
/**
* Gets the definition for a role on a billing account. The operation is supported for billing accounts with
* agreement type Microsoft Partner Agreement, Microsoft Customer Agreement or Enterprise Agreement.
*
* @param billingAccountName The ID that uniquely identifies a billing account.
* @param roleDefinitionName The ID that uniquely identifies a role definition.
* @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 definition for a role on a billing account.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
BillingRoleDefinitionInner getByBillingAccount(String billingAccountName, String roleDefinitionName);
/**
* Lists the role definitions for a billing account. The operation is supported for billing accounts with agreement
* type Microsoft Partner Agreement, Microsoft Customer Agreement or 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}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByBillingAccount(String billingAccountName);
/**
* Lists the role definitions for a billing account. The operation is supported for billing accounts with agreement
* type Microsoft Partner Agreement, Microsoft Customer Agreement or Enterprise Agreement.
*
* @param billingAccountName The ID that uniquely identifies a billing account.
* @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}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByBillingAccount(String billingAccountName, Context context);
/**
* Gets the definition for a role on a department. The operation is supported 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 roleDefinitionName The ID that uniquely identifies a role definition.
* @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 definition for a role on a department along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response getByDepartmentWithResponse(String billingAccountName, String departmentName,
String roleDefinitionName, Context context);
/**
* Gets the definition for a role on a department. The operation is supported 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 roleDefinitionName The ID that uniquely identifies a role definition.
* @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 definition for a role on a department.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
BillingRoleDefinitionInner getByDepartment(String billingAccountName, String departmentName,
String roleDefinitionName);
/**
* List the definition for a department. The operation is supported 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 container for a list of resources as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByDepartment(String billingAccountName, String departmentName);
/**
* List the definition for a department. The operation is supported 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 container for a list of resources as paginated response with {@link PagedIterable}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByDepartment(String billingAccountName, String departmentName,
Context context);
/**
* Gets the definition for a role on an enrollment account. The operation is supported for billing accounts with
* agreement type Enterprise Agreement.
*
* @param billingAccountName The ID that uniquely identifies a billing account.
* @param enrollmentAccountName The name of the enrollment account.
* @param roleDefinitionName The ID that uniquely identifies a role definition.
* @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 definition for a role on an enrollment account along with {@link Response}.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
Response getByEnrollmentAccountWithResponse(String billingAccountName,
String enrollmentAccountName, String roleDefinitionName, Context context);
/**
* Gets the definition for a role on an enrollment account. The operation is supported for billing accounts with
* agreement type Enterprise Agreement.
*
* @param billingAccountName The ID that uniquely identifies a billing account.
* @param enrollmentAccountName The name of the enrollment account.
* @param roleDefinitionName The ID that uniquely identifies a role definition.
* @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 definition for a role on an enrollment account.
*/
@ServiceMethod(returns = ReturnType.SINGLE)
BillingRoleDefinitionInner getByEnrollmentAccount(String billingAccountName, String enrollmentAccountName,
String roleDefinitionName);
/**
* List the definition for an enrollment account. The operation is supported for billing accounts with agreement
* type Enterprise Agreement.
*
* @param billingAccountName The ID that uniquely identifies a billing account.
* @param enrollmentAccountName The name of the enrollment 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}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByEnrollmentAccount(String billingAccountName,
String enrollmentAccountName);
/**
* List the definition for an enrollment account. The operation is supported for billing accounts with agreement
* type Enterprise Agreement.
*
* @param billingAccountName The ID that uniquely identifies a billing account.
* @param enrollmentAccountName The name of the enrollment account.
* @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}.
*/
@ServiceMethod(returns = ReturnType.COLLECTION)
PagedIterable listByEnrollmentAccount(String billingAccountName,
String enrollmentAccountName, Context context);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy