Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion sdk/billing/azure-mgmt-billing/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ This is the Microsoft Azure Billing Client Library.
Azure Resource Manager (ARM) is the next generation of management APIs that
replace the old Azure Service Management (ASM).

This package has been tested with Python 2.7, 3.4, 3.5, 3.6 and 3.7.
This package has been tested with Python 2.7, 3.5, 3.6 and 3.7.

For the older Azure Service Management (ASM) libraries, see
`azure-servicemanagement-legacy <https://pypi.python.org/pypi/azure-servicemanagement-legacy>`__ library.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,36 @@
# regenerated.
# --------------------------------------------------------------------------

from msrest.service_client import ServiceClient
from msrest.service_client import SDKClient
from msrest import Serializer, Deserializer
from msrestazure import AzureConfiguration
from .version import VERSION
from .operations.billing_accounts_operations import BillingAccountsOperations
from .operations.payment_methods_operations import PaymentMethodsOperations
from .operations.address_operations import AddressOperations
from .operations.available_balances_operations import AvailableBalancesOperations
from .operations.billing_profiles_operations import BillingProfilesOperations
from .operations.customers_operations import CustomersOperations
from .operations.invoice_sections_operations import InvoiceSectionsOperations
from .operations.billing_permissions_operations import BillingPermissionsOperations
from .operations.billing_subscriptions_operations import BillingSubscriptionsOperations
from .operations.products_operations import ProductsOperations
from .operations.transactions_operations import TransactionsOperations
from .operations.departments_operations import DepartmentsOperations
from .operations.enrollment_accounts_operations import EnrollmentAccountsOperations
from .operations.billing_periods_operations import BillingPeriodsOperations
from .operations.invoices_operations import InvoicesOperations
from .operations.price_sheet_operations import PriceSheetOperations
from .operations.policies_operations import PoliciesOperations
from .operations.billing_property_operations import BillingPropertyOperations
from .operations.transfers_operations import TransfersOperations
from .operations.partner_transfers_operations import PartnerTransfersOperations
from .operations.partner_transfers_transfers_operations import PartnerTransfersTransfersOperations
from .operations.recipient_transfers_operations import RecipientTransfersOperations
from .operations.operations import Operations
from .operations.billing_role_definitions_operations import BillingRoleDefinitionsOperations
from .operations.billing_role_assignments_operations import BillingRoleAssignmentsOperations
from .operations.agreements_operations import AgreementsOperations
from .operations.line_of_credits_operations import LineOfCreditsOperations
from . import models


Expand Down Expand Up @@ -52,20 +74,64 @@ def __init__(
self.subscription_id = subscription_id


class BillingManagementClient(object):
class BillingManagementClient(SDKClient):
"""Billing client provides access to billing resources for Azure subscriptions.

:ivar config: Configuration for client.
:vartype config: BillingManagementClientConfiguration

:ivar billing_accounts: BillingAccounts operations
:vartype billing_accounts: azure.mgmt.billing.operations.BillingAccountsOperations
:ivar payment_methods: PaymentMethods operations
:vartype payment_methods: azure.mgmt.billing.operations.PaymentMethodsOperations
:ivar address: Address operations
:vartype address: azure.mgmt.billing.operations.AddressOperations
:ivar available_balances: AvailableBalances operations
:vartype available_balances: azure.mgmt.billing.operations.AvailableBalancesOperations
:ivar billing_profiles: BillingProfiles operations
:vartype billing_profiles: azure.mgmt.billing.operations.BillingProfilesOperations
:ivar customers: Customers operations
:vartype customers: azure.mgmt.billing.operations.CustomersOperations
:ivar invoice_sections: InvoiceSections operations
:vartype invoice_sections: azure.mgmt.billing.operations.InvoiceSectionsOperations
:ivar billing_permissions: BillingPermissions operations
:vartype billing_permissions: azure.mgmt.billing.operations.BillingPermissionsOperations
:ivar billing_subscriptions: BillingSubscriptions operations
:vartype billing_subscriptions: azure.mgmt.billing.operations.BillingSubscriptionsOperations
:ivar products: Products operations
:vartype products: azure.mgmt.billing.operations.ProductsOperations
:ivar transactions: Transactions operations
:vartype transactions: azure.mgmt.billing.operations.TransactionsOperations
:ivar departments: Departments operations
:vartype departments: azure.mgmt.billing.operations.DepartmentsOperations
:ivar enrollment_accounts: EnrollmentAccounts operations
:vartype enrollment_accounts: azure.mgmt.billing.operations.EnrollmentAccountsOperations
:ivar billing_periods: BillingPeriods operations
:vartype billing_periods: azure.mgmt.billing.operations.BillingPeriodsOperations
:ivar invoices: Invoices operations
:vartype invoices: azure.mgmt.billing.operations.InvoicesOperations
:ivar price_sheet: PriceSheet operations
:vartype price_sheet: azure.mgmt.billing.operations.PriceSheetOperations
:ivar policies: Policies operations
:vartype policies: azure.mgmt.billing.operations.PoliciesOperations
:ivar billing_property: BillingProperty operations
:vartype billing_property: azure.mgmt.billing.operations.BillingPropertyOperations
:ivar transfers: Transfers operations
:vartype transfers: azure.mgmt.billing.operations.TransfersOperations
:ivar partner_transfers: PartnerTransfers operations
:vartype partner_transfers: azure.mgmt.billing.operations.PartnerTransfersOperations
:ivar partner_transfers_transfers: PartnerTransfersTransfers operations
:vartype partner_transfers_transfers: azure.mgmt.billing.operations.PartnerTransfersTransfersOperations
:ivar recipient_transfers: RecipientTransfers operations
:vartype recipient_transfers: azure.mgmt.billing.operations.RecipientTransfersOperations
:ivar operations: Operations operations
:vartype operations: azure.mgmt.billing.operations.Operations
:ivar billing_role_definitions: BillingRoleDefinitions operations
:vartype billing_role_definitions: azure.mgmt.billing.operations.BillingRoleDefinitionsOperations
:ivar billing_role_assignments: BillingRoleAssignments operations
:vartype billing_role_assignments: azure.mgmt.billing.operations.BillingRoleAssignmentsOperations
:ivar agreements: Agreements operations
:vartype agreements: azure.mgmt.billing.operations.AgreementsOperations
:ivar line_of_credits: LineOfCredits operations
:vartype line_of_credits: azure.mgmt.billing.operations.LineOfCreditsOperations

:param credentials: Credentials needed for the client to connect to Azure.
:type credentials: :mod:`A msrestazure Credentials
Expand All @@ -79,18 +145,62 @@ def __init__(
self, credentials, subscription_id, base_url=None):

self.config = BillingManagementClientConfiguration(credentials, subscription_id, base_url)
self._client = ServiceClient(self.config.credentials, self.config)
super(BillingManagementClient, self).__init__(self.config.credentials, self.config)

client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)}
self.api_version = '2018-03-01-preview'
self.api_version = '2019-10-01-preview'
self._serialize = Serializer(client_models)
self._deserialize = Deserializer(client_models)

self.enrollment_accounts = EnrollmentAccountsOperations(
self.billing_accounts = BillingAccountsOperations(
self._client, self.config, self._serialize, self._deserialize)
self.payment_methods = PaymentMethodsOperations(
self._client, self.config, self._serialize, self._deserialize)
self.address = AddressOperations(
self._client, self.config, self._serialize, self._deserialize)
self.available_balances = AvailableBalancesOperations(
self._client, self.config, self._serialize, self._deserialize)
self.billing_profiles = BillingProfilesOperations(
self._client, self.config, self._serialize, self._deserialize)
self.customers = CustomersOperations(
self._client, self.config, self._serialize, self._deserialize)
self.invoice_sections = InvoiceSectionsOperations(
self._client, self.config, self._serialize, self._deserialize)
self.billing_permissions = BillingPermissionsOperations(
self._client, self.config, self._serialize, self._deserialize)
self.billing_subscriptions = BillingSubscriptionsOperations(
self._client, self.config, self._serialize, self._deserialize)
self.products = ProductsOperations(
self._client, self.config, self._serialize, self._deserialize)
self.transactions = TransactionsOperations(
self._client, self.config, self._serialize, self._deserialize)
self.departments = DepartmentsOperations(
self._client, self.config, self._serialize, self._deserialize)
self.billing_periods = BillingPeriodsOperations(
self.enrollment_accounts = EnrollmentAccountsOperations(
self._client, self.config, self._serialize, self._deserialize)
self.invoices = InvoicesOperations(
self._client, self.config, self._serialize, self._deserialize)
self.price_sheet = PriceSheetOperations(
self._client, self.config, self._serialize, self._deserialize)
self.policies = PoliciesOperations(
self._client, self.config, self._serialize, self._deserialize)
self.billing_property = BillingPropertyOperations(
self._client, self.config, self._serialize, self._deserialize)
self.transfers = TransfersOperations(
self._client, self.config, self._serialize, self._deserialize)
self.partner_transfers = PartnerTransfersOperations(
self._client, self.config, self._serialize, self._deserialize)
self.partner_transfers_transfers = PartnerTransfersTransfersOperations(
self._client, self.config, self._serialize, self._deserialize)
self.recipient_transfers = RecipientTransfersOperations(
self._client, self.config, self._serialize, self._deserialize)
self.operations = Operations(
self._client, self.config, self._serialize, self._deserialize)
self.billing_role_definitions = BillingRoleDefinitionsOperations(
self._client, self.config, self._serialize, self._deserialize)
self.billing_role_assignments = BillingRoleAssignmentsOperations(
self._client, self.config, self._serialize, self._deserialize)
self.agreements = AgreementsOperations(
self._client, self.config, self._serialize, self._deserialize)
self.line_of_credits = LineOfCreditsOperations(
self._client, self.config, self._serialize, self._deserialize)
Loading