BillingManagementClient Class
Documentation for Microsoft.Billing.
Constructor
BillingManagementClient(credential: AsyncTokenCredential, subscription_id: str, base_url: str | None = None, *, cloud_setting: AzureClouds | None = None, **kwargs: Any)
Parameters
| Name | Description |
|---|---|
|
credential
Required
|
Credential used to authenticate requests to the service. Required. |
|
subscription_id
Required
|
The ID that uniquely identifies a billing subscription. Required. |
|
base_url
|
Service host. Default value is None. Default value: None
|
Keyword-Only Parameters
| Name | Description |
|---|---|
|
cloud_setting
|
The cloud setting for which to get the ARM endpoint. Default value is None. Default value: None
|
|
api_version
|
The API version to use for this operation. Known values are "2024-04-01" and None. Default value is None. If not set, the operation's default API version will be used. Note that overriding this default value may result in unsupported behavior. |
|
polling_interval
|
Default waiting time between two polls for LRO operations if no Retry-After header is present. |
Variables
| Name | Description |
|---|---|
|
operations
|
Operations operations |
|
agreements
|
AgreementsOperations operations |
|
billing_requests
|
BillingRequestsOperations operations |
|
billing_role_assignments
|
BillingRoleAssignmentsOperations operations |
|
invoices
|
InvoicesOperations operations |
|
reservations
|
ReservationsOperations operations |
|
billing_accounts
|
BillingAccountsOperations operations |
|
associated_tenants
|
AssociatedTenantsOperations operations |
|
available_balances
|
AvailableBalancesOperations operations |
|
products
|
ProductsOperations operations |
|
billing_profiles
|
BillingProfilesOperations operations |
|
billing_subscriptions
|
BillingSubscriptionsOperations operations |
|
policies
|
PoliciesOperations operations |
|
customers
|
CustomersOperations operations |
|
departments
|
DepartmentsOperations operations |
|
enrollment_accounts
|
EnrollmentAccountsOperations operations |
|
invoice_sections
|
InvoiceSectionsOperations operations |
|
payment_methods
|
PaymentMethodsOperations operations |
|
reservation_orders
|
ReservationOrdersOperations operations |
|
transfers
|
TransfersOperations operations |
|
partner_transfers
|
PartnerTransfersOperations operations |
|
recipient_transfers
|
RecipientTransfersOperations operations |
|
transactions
|
TransactionsOperations operations |
|
billing_permissions
|
BillingPermissionsOperations operations |
|
savings_plans
|
SavingsPlansOperations operations |
|
billing_property
|
BillingPropertyOperations operations |
|
billing_role_definition
|
BillingRoleDefinitionOperations operations |
|
savings_plan_orders
|
SavingsPlanOrdersOperations operations |
|
billing_subscriptions_aliases
|
BillingSubscriptionsAliasesOperations operations |
|
address
|
AddressOperations operations |
Methods
| close | |
| send_request |
Runs the network request through the client's chained policies.
For more information on this code flow, see https://aka.ms/azsdk/dpcodegen/python/send_request |
close
async close() -> None
send_request
Runs the network request through the client's chained policies.
>>> from azure.core.rest import HttpRequest
>>> request = HttpRequest("GET", "https://www.example.org/")
<HttpRequest [GET], url: 'https://www.example.org/'>
>>> response = await client.send_request(request)
<AsyncHttpResponse: 200 OK>
For more information on this code flow, see https://aka.ms/azsdk/dpcodegen/python/send_request
send_request(request: HttpRequest, *, stream: bool = False, **kwargs: Any) -> Awaitable[AsyncHttpResponse]
Parameters
| Name | Description |
|---|---|
|
request
Required
|
The network request you want to make. Required. |
Keyword-Only Parameters
| Name | Description |
|---|---|
|
stream
|
Whether the response payload will be streamed. Defaults to False. Default value: False
|
Returns
| Type | Description |
|---|---|
|
The response of your network call. Does not do error handling on your response. |