Share via


AgreementsOperations Class

Warning

DO NOT instantiate this class directly.

Instead, you should access the following operations through

BillingManagementClient's

<xref:agreements> attribute.

Constructor

AgreementsOperations(*args, **kwargs)

Methods

get

Gets an agreement by ID.

list_by_billing_account

Lists the agreements for a billing account.

get

Gets an agreement by ID.

async get(billing_account_name: str, agreement_name: str, **kwargs: Any) -> Agreement

Parameters

Name Description
billing_account_name
Required
str

The ID that uniquely identifies a billing account. Required.

agreement_name
Required
str

The ID that uniquely identifies an agreement. Required.

Returns

Type Description

Agreement or the result of cls(response)

Exceptions

Type Description
See also

list_by_billing_account

Lists the agreements for a billing account.

list_by_billing_account(billing_account_name: str, expand: str | None = None, **kwargs: Any) -> AsyncIterable[Agreement]

Parameters

Name Description
billing_account_name
Required
str

The ID that uniquely identifies a billing account. Required.

expand
str

May be used to expand the participants. Default value is None.

Default value: None

Returns

Type Description

An iterator like instance of either Agreement 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.10\\x64\\Lib\\site-packages\\py2docfx\\venv\\venv76\\Lib\\site-packages\\azure\\mgmt\\billing\\models\\__init__.py'>