BillingPropertyOperations Class
BillingPropertyOperations operations.
You should not instantiate this class directly. Instead, you should create a Client instance that instantiates it for you and attaches it as an attribute.
- Inheritance
-
builtins.objectBillingPropertyOperations
Constructor
BillingPropertyOperations(client, config, serializer, deserializer)
Parameters
- client
Client for service requests.
- config
Configuration of service client.
- serializer
An object model serializer.
- deserializer
An object model deserializer.
Variables
- models
Alias to model classes used in this operation group.
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) -> _models.BillingProperty
Parameters
- cls
- callable
A custom type or function that will be passed the direct response
Returns
BillingProperty, or the result of cls(response)
Return type
Exceptions
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, **kwargs: Any) -> _models.BillingProperty
Parameters
- parameters
- BillingProperty
Request parameters that are provided to the update billing property operation.
- cls
- callable
A custom type or function that will be passed the direct response
Returns
BillingProperty, or the result of cls(response)
Return type
Exceptions
Attributes
models
models = <module 'azure.mgmt.billing.models' from 'C:\\hostedtoolcache\\windows\\Python\\3.9.13\\x64\\lib\\site-packages\\azure\\mgmt\\billing\\models\\__init__.py'>
Feedback
Submit and view feedback for