BillingPropertyOperations Class

Warning

DO NOT instantiate this class directly.

Instead, you should access the following operations through

BillingManagementClient's

<xref:billing_property> attribute.

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

Keyword-Only Parameters

Name Description
include_billing_country

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

Default value: False
include_transition_status

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

Default value: False

Returns

Type Description

BillingProperty. The BillingProperty is compatible with MutableMapping

Exceptions

Type Description

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
BillingProperty or <xref:JSON> or IO[bytes]

A billing property. Is one of the following types: BillingProperty, JSON, IO[bytes] Required.

Returns

Type Description

BillingProperty. The BillingProperty is compatible with MutableMapping

Exceptions

Type Description