Partager via


BillingProfilesClient Interface

public interface BillingProfilesClient

An instance of this class provides access to all the operations defined in BillingProfilesClient.

Method Summary

Modifier and Type Method and Description
abstract SyncPoller<PollResult<BillingProfileInner>,BillingProfileInner> beginCreateOrUpdate(String billingAccountName, String billingProfileName, BillingProfileInner parameters)

Creates or updates a billing profile.

abstract SyncPoller<PollResult<BillingProfileInner>,BillingProfileInner> beginCreateOrUpdate(String billingAccountName, String billingProfileName, BillingProfileInner parameters, Context context)

Creates or updates a billing profile.

abstract SyncPoller<PollResult<Void>,Void> beginDelete(String billingAccountName, String billingProfileName)

Deletes a billing profile.

abstract SyncPoller<PollResult<Void>,Void> beginDelete(String billingAccountName, String billingProfileName, Context context)

Deletes a billing profile.

abstract BillingProfileInner createOrUpdate(String billingAccountName, String billingProfileName, BillingProfileInner parameters)

Creates or updates a billing profile.

abstract BillingProfileInner createOrUpdate(String billingAccountName, String billingProfileName, BillingProfileInner parameters, Context context)

Creates or updates a billing profile.

abstract void delete(String billingAccountName, String billingProfileName)

Deletes a billing profile.

abstract void delete(String billingAccountName, String billingProfileName, Context context)

Deletes a billing profile.

abstract BillingProfileInner get(String billingAccountName, String billingProfileName)

Gets a billing profile by its ID.

abstract Response<BillingProfileInner> getWithResponse(String billingAccountName, String billingProfileName, Context context)

Gets a billing profile by its ID.

abstract PagedIterable<BillingProfileInner> listByBillingAccount(String billingAccountName)

Lists the billing profiles that a user has access to.

abstract PagedIterable<BillingProfileInner> listByBillingAccount(String billingAccountName, Boolean includeDeleted, String filter, String orderBy, Long top, Long skip, Boolean count, String search, Context context)

Lists the billing profiles that a user has access to.

abstract DeleteBillingProfileEligibilityResultInner validateDeleteEligibility(String billingAccountName, String billingProfileName)

Validates if the billing profile can be deleted.

abstract Response<DeleteBillingProfileEligibilityResultInner> validateDeleteEligibilityWithResponse(String billingAccountName, String billingProfileName, Context context)

Validates if the billing profile can be deleted.

Method Details

beginCreateOrUpdate

public abstract SyncPoller<PollResult<BillingProfileInner>,BillingProfileInner> beginCreateOrUpdate(String billingAccountName, String billingProfileName, BillingProfileInner parameters)

Creates or updates a billing profile. The operation is supported for billing accounts with agreement type Microsoft Customer Agreement and Microsoft Partner Agreement. If you are a MCA Individual (Pay-as-you-go) customer, then please use the Azure portal experience to create the billing profile.

Parameters:

billingAccountName - The ID that uniquely identifies a billing account.
billingProfileName - The ID that uniquely identifies a billing profile.
parameters - A billing profile.

Returns:

the SyncPoller<T,U> for polling of a billing profile.

beginCreateOrUpdate

public abstract SyncPoller<PollResult<BillingProfileInner>,BillingProfileInner> beginCreateOrUpdate(String billingAccountName, String billingProfileName, BillingProfileInner parameters, Context context)

Creates or updates a billing profile. The operation is supported for billing accounts with agreement type Microsoft Customer Agreement and Microsoft Partner Agreement. If you are a MCA Individual (Pay-as-you-go) customer, then please use the Azure portal experience to create the billing profile.

Parameters:

billingAccountName - The ID that uniquely identifies a billing account.
billingProfileName - The ID that uniquely identifies a billing profile.
parameters - A billing profile.
context - The context to associate with this operation.

Returns:

the SyncPoller<T,U> for polling of a billing profile.

beginDelete

public abstract SyncPoller<PollResult<Void>,Void> beginDelete(String billingAccountName, String billingProfileName)

Deletes a billing profile. The operation is supported for billing accounts with agreement type Microsoft Customer Agreement and Microsoft Partner Agreement.

Parameters:

billingAccountName - The ID that uniquely identifies a billing account.
billingProfileName - The ID that uniquely identifies a billing profile.

Returns:

the SyncPoller<T,U> for polling of long-running operation.

beginDelete

public abstract SyncPoller<PollResult<Void>,Void> beginDelete(String billingAccountName, String billingProfileName, Context context)

Deletes a billing profile. The operation is supported for billing accounts with agreement type Microsoft Customer Agreement and Microsoft Partner Agreement.

Parameters:

billingAccountName - The ID that uniquely identifies a billing account.
billingProfileName - The ID that uniquely identifies a billing profile.
context - The context to associate with this operation.

Returns:

the SyncPoller<T,U> for polling of long-running operation.

createOrUpdate

public abstract BillingProfileInner createOrUpdate(String billingAccountName, String billingProfileName, BillingProfileInner parameters)

Creates or updates a billing profile. The operation is supported for billing accounts with agreement type Microsoft Customer Agreement and Microsoft Partner Agreement. If you are a MCA Individual (Pay-as-you-go) customer, then please use the Azure portal experience to create the billing profile.

Parameters:

billingAccountName - The ID that uniquely identifies a billing account.
billingProfileName - The ID that uniquely identifies a billing profile.
parameters - A billing profile.

Returns:

a billing profile.

createOrUpdate

public abstract BillingProfileInner createOrUpdate(String billingAccountName, String billingProfileName, BillingProfileInner parameters, Context context)

Creates or updates a billing profile. The operation is supported for billing accounts with agreement type Microsoft Customer Agreement and Microsoft Partner Agreement. If you are a MCA Individual (Pay-as-you-go) customer, then please use the Azure portal experience to create the billing profile.

Parameters:

billingAccountName - The ID that uniquely identifies a billing account.
billingProfileName - The ID that uniquely identifies a billing profile.
parameters - A billing profile.
context - The context to associate with this operation.

Returns:

a billing profile.

delete

public abstract void delete(String billingAccountName, String billingProfileName)

Deletes a billing profile. The operation is supported for billing accounts with agreement type Microsoft Customer Agreement and Microsoft Partner Agreement.

Parameters:

billingAccountName - The ID that uniquely identifies a billing account.
billingProfileName - The ID that uniquely identifies a billing profile.

delete

public abstract void delete(String billingAccountName, String billingProfileName, Context context)

Deletes a billing profile. The operation is supported for billing accounts with agreement type Microsoft Customer Agreement and Microsoft Partner Agreement.

Parameters:

billingAccountName - The ID that uniquely identifies a billing account.
billingProfileName - The ID that uniquely identifies a billing profile.
context - The context to associate with this operation.

get

public abstract BillingProfileInner get(String billingAccountName, String billingProfileName)

Gets a billing profile by its ID. The operation is supported for billing accounts with agreement type Microsoft Customer Agreement and Microsoft Partner Agreement.

Parameters:

billingAccountName - The ID that uniquely identifies a billing account.
billingProfileName - The ID that uniquely identifies a billing profile.

Returns:

a billing profile by its ID.

getWithResponse

public abstract Response<BillingProfileInner> getWithResponse(String billingAccountName, String billingProfileName, Context context)

Gets a billing profile by its ID. The operation is supported for billing accounts with agreement type Microsoft Customer Agreement and Microsoft Partner Agreement.

Parameters:

billingAccountName - The ID that uniquely identifies a billing account.
billingProfileName - The ID that uniquely identifies a billing profile.
context - The context to associate with this operation.

Returns:

a billing profile by its ID along with Response<T>.

listByBillingAccount

public abstract PagedIterable<BillingProfileInner> listByBillingAccount(String billingAccountName)

Lists the billing profiles that a user has access to. The operation is supported for billing accounts with agreement of type Microsoft Customer Agreement and Microsoft Partner Agreement.

Parameters:

billingAccountName - The ID that uniquely identifies a billing account.

Returns:

a container for a list of resources as paginated response with PagedIterable<T>.

listByBillingAccount

public abstract PagedIterable<BillingProfileInner> listByBillingAccount(String billingAccountName, Boolean includeDeleted, String filter, String orderBy, Long top, Long skip, Boolean count, String search, Context context)

Lists the billing profiles that a user has access to. The operation is supported for billing accounts with agreement of type Microsoft Customer Agreement and Microsoft Partner Agreement.

Parameters:

billingAccountName - The ID that uniquely identifies a billing account.
includeDeleted - Can be used to get deleted billing profiles.
filter - The filter query option allows clients to filter a collection of resources that are addressed by a request URL.
orderBy - The orderby query option allows clients to request resources in a particular order.
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.
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.
count - The count query option allows clients to request a count of the matching resources included with the resources in the response.
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.
context - The context to associate with this operation.

Returns:

a container for a list of resources as paginated response with PagedIterable<T>.

validateDeleteEligibility

public abstract DeleteBillingProfileEligibilityResultInner validateDeleteEligibility(String billingAccountName, String billingProfileName)

Validates if the billing profile can be deleted. The operation is supported for billing accounts with agreement type Microsoft Customer Agreement and Microsoft Partner Agreement.

Parameters:

billingAccountName - The ID that uniquely identifies a billing account.
billingProfileName - The ID that uniquely identifies a billing profile.

Returns:

eligibility to delete a billing profile result.

validateDeleteEligibilityWithResponse

public abstract Response<DeleteBillingProfileEligibilityResultInner> validateDeleteEligibilityWithResponse(String billingAccountName, String billingProfileName, Context context)

Validates if the billing profile can be deleted. The operation is supported for billing accounts with agreement type Microsoft Customer Agreement and Microsoft Partner Agreement.

Parameters:

billingAccountName - The ID that uniquely identifies a billing account.
billingProfileName - The ID that uniquely identifies a billing profile.
context - The context to associate with this operation.

Returns:

eligibility to delete a billing profile result along with Response<T>.

Applies to