LotsOperations Class 
Warning
DO NOT instantiate this class directly.
Instead, you should access the following operations through
<xref:lots> attribute.
Constructor
LotsOperations(*args, **kwargs)Methods
| list_by_billing_account | Lists all Microsoft Azure consumption commitments for a billing account. The API is only supported for Microsoft Customer Agreements (MCA) and Direct Enterprise Agreement (EA) billing accounts. | 
| list_by_billing_profile | Lists all Azure credits for a billing account or a billing profile. The API is only supported for Microsoft Customer Agreements (MCA) billing accounts. | 
| list_by_customer | Lists all Azure credits for a customer. The API is only supported for Microsoft Partner Agreements (MPA) billing accounts. | 
list_by_billing_account
Lists all Microsoft Azure consumption commitments for a billing account. The API is only supported for Microsoft Customer Agreements (MCA) and Direct Enterprise Agreement (EA) billing accounts.
list_by_billing_account(billing_account_id: str, filter: str | None = None, **kwargs: Any) -> Iterable[Lots]Parameters
| Name | Description | 
|---|---|
| billing_account_id 
				Required
			 | BillingAccount ID. | 
| filter | May be used to filter the lots by Status, Source etc. The filter supports 'eq', 'lt', 'gt', 'le', 'ge', and 'and'. It does not currently support 'ne', 'or', or 'not'. Tag filter is a key value pair string where key and value is separated by a colon (:). Default value is None. Default value: None | 
Keyword-Only Parameters
| Name | Description | 
|---|---|
| cls | A custom type or function that will be passed the direct response | 
Returns
| Type | Description | 
|---|---|
| An iterator like instance of either Lots or the result of cls(response) | 
Exceptions
| Type | Description | 
|---|---|
list_by_billing_profile
Lists all Azure credits for a billing account or a billing profile. The API is only supported for Microsoft Customer Agreements (MCA) billing accounts.
list_by_billing_profile(billing_account_id: str, billing_profile_id: str, **kwargs: Any) -> Iterable[Lots]Parameters
| Name | Description | 
|---|---|
| billing_account_id 
				Required
			 | BillingAccount ID. | 
| billing_profile_id 
				Required
			 | Azure Billing Profile ID. | 
Keyword-Only Parameters
| Name | Description | 
|---|---|
| cls | A custom type or function that will be passed the direct response | 
Returns
| Type | Description | 
|---|---|
| An iterator like instance of either Lots or the result of cls(response) | 
Exceptions
| Type | Description | 
|---|---|
list_by_customer
Lists all Azure credits for a customer. The API is only supported for Microsoft Partner Agreements (MPA) billing accounts.
list_by_customer(billing_account_id: str, customer_id: str, filter: str | None = None, **kwargs: Any) -> Iterable[Lots]Parameters
| Name | Description | 
|---|---|
| billing_account_id 
				Required
			 | BillingAccount ID. | 
| customer_id 
				Required
			 | Customer ID. | 
| filter | May be used to filter the lots by Status, Source etc. The filter supports 'eq', 'lt', 'gt', 'le', 'ge', and 'and'. Tag filter is a key value pair string where key and value is separated by a colon (:). Default value is None. Default value: None | 
Keyword-Only Parameters
| Name | Description | 
|---|---|
| cls | A custom type or function that will be passed the direct response | 
Returns
| Type | Description | 
|---|---|
| An iterator like instance of either Lots or the result of cls(response) | 
Exceptions
| Type | Description | 
|---|---|
Attributes
models
models = <module 'azure.mgmt.consumption.models' from 'C:\\ToolCache\\Python\\3.11.9\\x64\\Lib\\site-packages\\py2docfx\\venv\\venv95\\Lib\\site-packages\\azure\\mgmt\\consumption\\models\\__init__.py'>