BillingPropertyOperations Class
Warning
DO NOT instantiate this class directly.
Instead, you should access the following operations through
<xref:billing_property> attribute.
Constructor
BillingPropertyOperations(*args, **kwargs)
Methods
get |
Get the billing properties for a subscription. This operation is not supported for billing accounts with agreement type Enterprise Agreement. |
update |
Updates the billing property of a subscription. Currently, cost center can be updated. The operation is supported only for billing accounts with agreement type Microsoft Customer Agreement. |
get
Get the billing properties for a subscription. This operation is not supported for billing accounts with agreement type Enterprise Agreement.
get(**kwargs: Any) -> BillingProperty
Keyword-Only Parameters
Name | Description |
---|---|
cls
|
A custom type or function that will be passed the direct response |
Returns
Type | Description |
---|---|
BillingProperty or the result of cls(response) |
Exceptions
Type | Description |
---|---|
update
Updates the billing property of a subscription. Currently, cost center can be updated. The operation is supported only for billing accounts with agreement type Microsoft Customer Agreement.
update(parameters: _models.BillingProperty, *, content_type: str = 'application/json', **kwargs: Any) -> _models.BillingProperty
Parameters
Name | Description |
---|---|
parameters
Required
|
Request parameters that are provided to the update billing property 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 |
Returns
Type | Description |
---|---|
BillingProperty 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\\azure\\mgmt\\billing\\models\\__init__.py'>
Azure SDK for Python