BillingPropertyOperations Class

Warning

DO NOT instantiate this class directly.

Instead, you should access the following operations through

BillingManagementClient's

<xref:billing_property> attribute.

Inheritance
builtins.object
BillingPropertyOperations

Constructor

BillingPropertyOperations(*args, **kwargs)

Methods

get

Gets the billing properties for a subscription.

update

Updates the billing property of a subscription. Currently, cost center can be updated for billing accounts with agreement type Microsoft Customer Agreement and subscription service usage address can be updated for billing accounts with agreement type Microsoft Online Service Program.

get

Gets the billing properties for a subscription.

get(include_billing_country: bool = False, include_transition_status: bool = False, **kwargs: Any) -> BillingProperty

Parameters

Name Description
include_billing_country
Required

A flag that specifies whether or not to include billing country. Default value is False.

include_transition_status
Required

A flag that specifies whether or not to include transition status for billing accounts with agreement type Microsoft Customer Agreement. Default value is False.

Returns

Type Description

BillingProperty or the result of cls(response)

Exceptions

Type Description
See also

update

Updates the billing property of a subscription. Currently, cost center can be updated for billing accounts with agreement type Microsoft Customer Agreement and subscription service usage address can be updated for billing accounts with agreement type Microsoft Online Service Program.

update(parameters: _models.BillingProperty, *, content_type: str = 'application/json', **kwargs: Any) -> _models.BillingProperty

Parameters

Name Description
parameters
Required

A billing property. Is either a BillingProperty type or a IO[bytes] type. Required.

Returns

Type Description

BillingProperty or the result of cls(response)

Exceptions

Type Description
See also

Attributes

models

models = <module 'azure.mgmt.billing.models' from 'C:\\hostedtoolcache\\windows\\Python\\3.11.9\\x64\\Lib\\site-packages\\azure\\mgmt\\billing\\models\\__init__.py'>