BillingProfilesOperations Class
Warning
DO NOT instantiate this class directly.
Instead, you should access the following operations through
<xref:billing_profiles> attribute.
Constructor
BillingProfilesOperations(*args, **kwargs)
Methods
| begin_create_or_update |
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. |
| begin_delete |
Deletes a billing profile. The operation is supported for billing accounts with agreement type Microsoft Customer Agreement and Microsoft Partner Agreement. |
| get |
Gets a billing profile by its ID. The operation is supported for billing accounts with agreement type Microsoft Customer Agreement and Microsoft Partner Agreement. |
| list_by_billing_account |
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. |
| validate_delete_eligibility |
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. |
begin_create_or_update
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.
async begin_create_or_update(billing_account_name: str, billing_profile_name: str, parameters: _models.BillingProfile, *, content_type: str = 'application/json', **kwargs: Any) -> AsyncLROPoller[_models.BillingProfile]
Parameters
| Name | Description |
|---|---|
|
billing_account_name
Required
|
The ID that uniquely identifies a billing account. Required. |
|
billing_profile_name
Required
|
The ID that uniquely identifies a billing profile. Required. |
|
parameters
Required
|
A billing profile. Is one of the following types: BillingProfile, JSON, IO[bytes] Required. |
Returns
| Type | Description |
|---|---|
|
An instance of AsyncLROPoller that returns BillingProfile. The BillingProfile is compatible with MutableMapping |
Exceptions
| Type | Description |
|---|---|
begin_delete
Deletes a billing profile. The operation is supported for billing accounts with agreement type Microsoft Customer Agreement and Microsoft Partner Agreement.
async begin_delete(billing_account_name: str, billing_profile_name: str, **kwargs: Any) -> AsyncLROPoller[None]
Parameters
| Name | Description |
|---|---|
|
billing_account_name
Required
|
The ID that uniquely identifies a billing account. Required. |
|
billing_profile_name
Required
|
The ID that uniquely identifies a billing profile. Required. |
Returns
| Type | Description |
|---|---|
|
An instance of AsyncLROPoller that returns None |
Exceptions
| Type | Description |
|---|---|
get
Gets a billing profile by its ID. The operation is supported for billing accounts with agreement type Microsoft Customer Agreement and Microsoft Partner Agreement.
async get(billing_account_name: str, billing_profile_name: str, **kwargs: Any) -> BillingProfile
Parameters
| Name | Description |
|---|---|
|
billing_account_name
Required
|
The ID that uniquely identifies a billing account. Required. |
|
billing_profile_name
Required
|
The ID that uniquely identifies a billing profile. Required. |
Returns
| Type | Description |
|---|---|
|
BillingProfile. The BillingProfile is compatible with MutableMapping |
Exceptions
| Type | Description |
|---|---|
list_by_billing_account
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.
list_by_billing_account(billing_account_name: str, *, include_deleted: bool = False, filter: str | None = None, order_by: str | None = None, top: int | None = None, skip: int | None = None, count: bool | None = None, search: str | None = None, **kwargs: Any) -> AsyncItemPaged[BillingProfile]
Parameters
| Name | Description |
|---|---|
|
billing_account_name
Required
|
The ID that uniquely identifies a billing account. Required. |
Keyword-Only Parameters
| Name | Description |
|---|---|
|
include_deleted
|
Can be used to get deleted billing profiles. Default value is False. Default value: False
|
|
filter
|
The filter query option allows clients to filter a collection of resources that are addressed by a request URL. Default value is None. Default value: None
|
|
order_by
|
The orderby query option allows clients to request resources in a particular order. Default value is None. Default value: None
|
|
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. Default value is None. Default value: None
|
|
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. Default value is None. Default value: None
|
|
count
|
The count query option allows clients to request a count of the matching resources included with the resources in the response. Default value is None. Default value: None
|
|
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. Default value is None. Default value: None
|
Returns
| Type | Description |
|---|---|
|
An iterator like instance of BillingProfile |
Exceptions
| Type | Description |
|---|---|
validate_delete_eligibility
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.
async validate_delete_eligibility(billing_account_name: str, billing_profile_name: str, **kwargs: Any) -> DeleteBillingProfileEligibilityResult
Parameters
| Name | Description |
|---|---|
|
billing_account_name
Required
|
The ID that uniquely identifies a billing account. Required. |
|
billing_profile_name
Required
|
The ID that uniquely identifies a billing profile. Required. |
Returns
| Type | Description |
|---|---|
|
DeleteBillingProfileEligibilityResult. The DeleteBillingProfileEligibilityResult is compatible with MutableMapping |
Exceptions
| Type | Description |
|---|---|