BillingAccountsOperations Class
Warning
DO NOT instantiate this class directly.
Instead, you should access the following operations through
<xref:billing_accounts> attribute.
Constructor
BillingAccountsOperations(*args, **kwargs)
Methods
begin_update |
Updates the properties of a billing account. Currently, displayName and address can be updated. The operation is supported only for billing accounts with agreement type Microsoft Customer Agreement. |
get |
Gets a billing account by its ID. |
list |
Lists the billing accounts that a user has access to. |
list_invoice_sections_by_create_subscription_permission |
Lists the invoice sections for which the user has permission to create Azure subscriptions. The operation is supported only for billing accounts with agreement type Microsoft Customer Agreement. |
begin_update
Updates the properties of a billing account. Currently, displayName and address can be updated. The operation is supported only for billing accounts with agreement type Microsoft Customer Agreement.
begin_update(billing_account_name: str, parameters: _models.BillingAccountUpdateRequest, *, content_type: str = 'application/json', **kwargs: Any) -> LROPoller[_models.BillingAccount]
Parameters
Name | Description |
---|---|
billing_account_name
Required
|
The ID that uniquely identifies a billing account. Required. |
parameters
Required
|
Request parameters that are provided to the update billing account operation. Is either a model type or a IO type. Required. |
Keyword-Only Parameters
Name | Description |
---|---|
content_type
|
Body Parameter content-type. Known values are: 'application/json'. Default value is None. |
cls
|
A custom type or function that will be passed the direct response |
continuation_token
|
A continuation token to restart a poller from a saved state. |
polling
|
By default, your polling method will be ARMPolling. Pass in False for this operation to not poll, or pass in your own initialized polling object for a personal polling strategy. |
polling_interval
|
Default waiting time between two polls for LRO operations if no Retry-After header is present. |
Returns
Type | Description |
---|---|
An instance of LROPoller that returns either BillingAccount or the result of cls(response) |
Exceptions
Type | Description |
---|---|
get
Gets a billing account by its ID.
get(billing_account_name: str, expand: str | None = None, **kwargs: Any) -> BillingAccount
Parameters
Name | Description |
---|---|
billing_account_name
Required
|
The ID that uniquely identifies a billing account. Required. |
expand
Required
|
May be used to expand the soldTo, invoice sections and billing profiles. Default value is None. |
Keyword-Only Parameters
Name | Description |
---|---|
cls
|
A custom type or function that will be passed the direct response |
Returns
Type | Description |
---|---|
BillingAccount or the result of cls(response) |
Exceptions
Type | Description |
---|---|
list
Lists the billing accounts that a user has access to.
list(expand: str | None = None, **kwargs: Any) -> Iterable[BillingAccount]
Parameters
Name | Description |
---|---|
expand
Required
|
May be used to expand the soldTo, invoice sections and billing profiles. Default value is None. |
Keyword-Only Parameters
Name | Description |
---|---|
cls
|
A custom type or function that will be passed the direct response |
Returns
Type | Description |
---|---|
An iterator like instance of either BillingAccount or the result of cls(response) |
Exceptions
Type | Description |
---|---|
list_invoice_sections_by_create_subscription_permission
Lists the invoice sections for which the user has permission to create Azure subscriptions. The operation is supported only for billing accounts with agreement type Microsoft Customer Agreement.
list_invoice_sections_by_create_subscription_permission(billing_account_name: str, **kwargs: Any) -> Iterable[InvoiceSectionWithCreateSubPermission]
Parameters
Name | Description |
---|---|
billing_account_name
Required
|
The ID that uniquely identifies a billing account. Required. |
Keyword-Only Parameters
Name | Description |
---|---|
cls
|
A custom type or function that will be passed the direct response |
Returns
Type | Description |
---|---|
An iterator like instance of either InvoiceSectionWithCreateSubPermission or the result of cls(response) |
Exceptions
Type | Description |
---|---|
Attributes
models
models = <module 'azure.mgmt.billing.models' from 'C:\\hostedtoolcache\\windows\\Python\\3.11.10\\x64\\Lib\\site-packages\\py2docfx\\venv\\venv72\\Lib\\site-packages\\azure\\mgmt\\billing\\models\\__init__.py'>
Azure SDK for Python