|
| 1 | +# coding=utf-8 |
| 2 | +# -------------------------------------------------------------------------- |
| 3 | +# Copyright (c) Microsoft Corporation. All rights reserved. |
| 4 | +# Licensed under the MIT License. See License.txt in the project root for |
| 5 | +# license information. |
| 6 | +# |
| 7 | +# Code generated by Microsoft (R) AutoRest Code Generator. |
| 8 | +# Changes may cause incorrect behavior and will be lost if the code is |
| 9 | +# regenerated. |
| 10 | +# -------------------------------------------------------------------------- |
| 11 | + |
| 12 | +from msrest.service_client import SDKClient |
| 13 | +from msrest import Serializer, Deserializer |
| 14 | + |
| 15 | +from ._configuration import BillingManagementClientConfiguration |
| 16 | +from .operations import BillingAccountsOperations |
| 17 | +from .operations import AddressOperations |
| 18 | +from .operations import AvailableBalancesOperations |
| 19 | +from .operations import InstructionsOperations |
| 20 | +from .operations import BillingProfilesOperations |
| 21 | +from .operations import CustomersOperations |
| 22 | +from .operations import InvoiceSectionsOperations |
| 23 | +from .operations import BillingPermissionsOperations |
| 24 | +from .operations import BillingSubscriptionsOperations |
| 25 | +from .operations import ProductsOperations |
| 26 | +from .operations import InvoicesOperations |
| 27 | +from .operations import TransactionsOperations |
| 28 | +from .operations import PoliciesOperations |
| 29 | +from .operations import BillingPropertyOperations |
| 30 | +from .operations import Operations |
| 31 | +from .operations import BillingRoleDefinitionsOperations |
| 32 | +from .operations import BillingRoleAssignmentsOperations |
| 33 | +from .operations import AgreementsOperations |
| 34 | +from .operations import EnrollmentAccountsOperations |
| 35 | +from .operations import BillingPeriodsOperations |
| 36 | +from . import models |
| 37 | + |
| 38 | + |
| 39 | +class BillingManagementClient(SDKClient): |
| 40 | + """Billing client provides access to billing resources for Azure subscriptions. |
| 41 | +
|
| 42 | + :ivar config: Configuration for client. |
| 43 | + :vartype config: BillingManagementClientConfiguration |
| 44 | +
|
| 45 | + :ivar billing_accounts: BillingAccounts operations |
| 46 | + :vartype billing_accounts: azure.mgmt.billing.operations.BillingAccountsOperations |
| 47 | + :ivar address: Address operations |
| 48 | + :vartype address: azure.mgmt.billing.operations.AddressOperations |
| 49 | + :ivar available_balances: AvailableBalances operations |
| 50 | + :vartype available_balances: azure.mgmt.billing.operations.AvailableBalancesOperations |
| 51 | + :ivar instructions: Instructions operations |
| 52 | + :vartype instructions: azure.mgmt.billing.operations.InstructionsOperations |
| 53 | + :ivar billing_profiles: BillingProfiles operations |
| 54 | + :vartype billing_profiles: azure.mgmt.billing.operations.BillingProfilesOperations |
| 55 | + :ivar customers: Customers operations |
| 56 | + :vartype customers: azure.mgmt.billing.operations.CustomersOperations |
| 57 | + :ivar invoice_sections: InvoiceSections operations |
| 58 | + :vartype invoice_sections: azure.mgmt.billing.operations.InvoiceSectionsOperations |
| 59 | + :ivar billing_permissions: BillingPermissions operations |
| 60 | + :vartype billing_permissions: azure.mgmt.billing.operations.BillingPermissionsOperations |
| 61 | + :ivar billing_subscriptions: BillingSubscriptions operations |
| 62 | + :vartype billing_subscriptions: azure.mgmt.billing.operations.BillingSubscriptionsOperations |
| 63 | + :ivar products: Products operations |
| 64 | + :vartype products: azure.mgmt.billing.operations.ProductsOperations |
| 65 | + :ivar invoices: Invoices operations |
| 66 | + :vartype invoices: azure.mgmt.billing.operations.InvoicesOperations |
| 67 | + :ivar transactions: Transactions operations |
| 68 | + :vartype transactions: azure.mgmt.billing.operations.TransactionsOperations |
| 69 | + :ivar policies: Policies operations |
| 70 | + :vartype policies: azure.mgmt.billing.operations.PoliciesOperations |
| 71 | + :ivar billing_property: BillingProperty operations |
| 72 | + :vartype billing_property: azure.mgmt.billing.operations.BillingPropertyOperations |
| 73 | + :ivar operations: Operations operations |
| 74 | + :vartype operations: azure.mgmt.billing.operations.Operations |
| 75 | + :ivar billing_role_definitions: BillingRoleDefinitions operations |
| 76 | + :vartype billing_role_definitions: azure.mgmt.billing.operations.BillingRoleDefinitionsOperations |
| 77 | + :ivar billing_role_assignments: BillingRoleAssignments operations |
| 78 | + :vartype billing_role_assignments: azure.mgmt.billing.operations.BillingRoleAssignmentsOperations |
| 79 | + :ivar agreements: Agreements operations |
| 80 | + :vartype agreements: azure.mgmt.billing.operations.AgreementsOperations |
| 81 | + :ivar enrollment_accounts: EnrollmentAccounts operations |
| 82 | + :vartype enrollment_accounts: azure.mgmt.billing.operations.EnrollmentAccountsOperations |
| 83 | + :ivar billing_periods: BillingPeriods operations |
| 84 | + :vartype billing_periods: azure.mgmt.billing.operations.BillingPeriodsOperations |
| 85 | +
|
| 86 | + :param credentials: Credentials needed for the client to connect to Azure. |
| 87 | + :type credentials: :mod:`A msrestazure Credentials |
| 88 | + object<msrestazure.azure_active_directory>` |
| 89 | + :param subscription_id: The ID that uniquely identifies an Azure |
| 90 | + subscription. |
| 91 | + :type subscription_id: str |
| 92 | + :param str base_url: Service URL |
| 93 | + """ |
| 94 | + |
| 95 | + def __init__( |
| 96 | + self, credentials, subscription_id, base_url=None): |
| 97 | + |
| 98 | + self.config = BillingManagementClientConfiguration(credentials, subscription_id, base_url) |
| 99 | + super(BillingManagementClient, self).__init__(self.config.credentials, self.config) |
| 100 | + |
| 101 | + client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)} |
| 102 | + self._serialize = Serializer(client_models) |
| 103 | + self._deserialize = Deserializer(client_models) |
| 104 | + |
| 105 | + self.billing_accounts = BillingAccountsOperations( |
| 106 | + self._client, self.config, self._serialize, self._deserialize) |
| 107 | + self.address = AddressOperations( |
| 108 | + self._client, self.config, self._serialize, self._deserialize) |
| 109 | + self.available_balances = AvailableBalancesOperations( |
| 110 | + self._client, self.config, self._serialize, self._deserialize) |
| 111 | + self.instructions = InstructionsOperations( |
| 112 | + self._client, self.config, self._serialize, self._deserialize) |
| 113 | + self.billing_profiles = BillingProfilesOperations( |
| 114 | + self._client, self.config, self._serialize, self._deserialize) |
| 115 | + self.customers = CustomersOperations( |
| 116 | + self._client, self.config, self._serialize, self._deserialize) |
| 117 | + self.invoice_sections = InvoiceSectionsOperations( |
| 118 | + self._client, self.config, self._serialize, self._deserialize) |
| 119 | + self.billing_permissions = BillingPermissionsOperations( |
| 120 | + self._client, self.config, self._serialize, self._deserialize) |
| 121 | + self.billing_subscriptions = BillingSubscriptionsOperations( |
| 122 | + self._client, self.config, self._serialize, self._deserialize) |
| 123 | + self.products = ProductsOperations( |
| 124 | + self._client, self.config, self._serialize, self._deserialize) |
| 125 | + self.invoices = InvoicesOperations( |
| 126 | + self._client, self.config, self._serialize, self._deserialize) |
| 127 | + self.transactions = TransactionsOperations( |
| 128 | + self._client, self.config, self._serialize, self._deserialize) |
| 129 | + self.policies = PoliciesOperations( |
| 130 | + self._client, self.config, self._serialize, self._deserialize) |
| 131 | + self.billing_property = BillingPropertyOperations( |
| 132 | + self._client, self.config, self._serialize, self._deserialize) |
| 133 | + self.operations = Operations( |
| 134 | + self._client, self.config, self._serialize, self._deserialize) |
| 135 | + self.billing_role_definitions = BillingRoleDefinitionsOperations( |
| 136 | + self._client, self.config, self._serialize, self._deserialize) |
| 137 | + self.billing_role_assignments = BillingRoleAssignmentsOperations( |
| 138 | + self._client, self.config, self._serialize, self._deserialize) |
| 139 | + self.agreements = AgreementsOperations( |
| 140 | + self._client, self.config, self._serialize, self._deserialize) |
| 141 | + self.enrollment_accounts = EnrollmentAccountsOperations( |
| 142 | + self._client, self.config, self._serialize, self._deserialize) |
| 143 | + self.billing_periods = BillingPeriodsOperations( |
| 144 | + self._client, self.config, self._serialize, self._deserialize) |
0 commit comments