Skip to content

Commit

Permalink
Generated from 497f37d011e45d90e7a5f190b1326ec89e2719c8
Browse files Browse the repository at this point in the history
Merge pull request #6 from Khushboo-Baheti/master

merge
  • Loading branch information
SDK Automation committed Feb 24, 2020
1 parent a25a803 commit 454e375
Show file tree
Hide file tree
Showing 50 changed files with 14,905 additions and 1,100 deletions.
7 changes: 4 additions & 3 deletions sdk/billing/azure-mgmt-billing/azure/mgmt/billing/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,11 @@
# regenerated.
# --------------------------------------------------------------------------

from .billing_management_client import BillingManagementClient
from .version import VERSION
from ._configuration import BillingManagementClientConfiguration
from ._billing_management_client import BillingManagementClient
__all__ = ['BillingManagementClient', 'BillingManagementClientConfiguration']

__all__ = ['BillingManagementClient']
from .version import VERSION

__version__ = VERSION

Original file line number Diff line number Diff line change
@@ -0,0 +1,169 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------

from msrest.service_client import SDKClient
from msrest import Serializer, Deserializer

from ._configuration import BillingManagementClientConfiguration
from .operations import BillingAccountsOperations
from .operations import PaymentMethodsOperations
from .operations import AddressOperations
from .operations import AvailableBalancesOperations
from .operations import InstructionsOperations
from .operations import BillingProfilesOperations
from .operations import CustomersOperations
from .operations import InvoiceSectionsOperations
from .operations import BillingPermissionsOperations
from .operations import BillingSubscriptionsOperations
from .operations import ProductsOperations
from .operations import TransactionsOperations
from .operations import DepartmentsOperations
from .operations import EnrollmentAccountsOperations
from .operations import InvoicesOperations
from .operations import PriceSheetOperations
from .operations import PoliciesOperations
from .operations import BillingPropertyOperations
from .operations import TransfersOperations
from .operations import PartnerTransfersOperations
from .operations import RecipientTransfersOperations
from .operations import Operations
from .operations import BillingRoleDefinitionsOperations
from .operations import BillingRoleAssignmentsOperations
from .operations import AgreementsOperations
from . import models


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 instructions: Instructions operations
:vartype instructions: azure.mgmt.billing.operations.InstructionsOperations
: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 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 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
:param credentials: Credentials needed for the client to connect to Azure.
:type credentials: :mod:`A msrestazure Credentials
object<msrestazure.azure_active_directory>`
:param subscription_id: Azure Subscription ID.
:type subscription_id: str
:param str base_url: Service URL
"""

def __init__(
self, credentials, subscription_id, base_url=None):

self.config = BillingManagementClientConfiguration(credentials, subscription_id, base_url)
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 = '2019-10-01-preview'
self._serialize = Serializer(client_models)
self._deserialize = Deserializer(client_models)

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.instructions = InstructionsOperations(
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.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.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)
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------
from msrestazure import AzureConfiguration

from .version import VERSION


class BillingManagementClientConfiguration(AzureConfiguration):
"""Configuration for BillingManagementClient
Note that all parameters used to create this instance are saved as instance
attributes.
:param credentials: Credentials needed for the client to connect to Azure.
:type credentials: :mod:`A msrestazure Credentials
object<msrestazure.azure_active_directory>`
:param subscription_id: Azure Subscription ID.
:type subscription_id: str
:param str base_url: Service URL
"""

def __init__(
self, credentials, subscription_id, base_url=None):

if credentials is None:
raise ValueError("Parameter 'credentials' must not be None.")
if subscription_id is None:
raise ValueError("Parameter 'subscription_id' must not be None.")
if not base_url:
base_url = 'https://management.azure.com'

super(BillingManagementClientConfiguration, self).__init__(base_url)

# Starting Autorest.Python 4.0.64, make connection pool activated by default
self.keep_alive = True

self.add_user_agent('azure-mgmt-billing/{}'.format(VERSION))
self.add_user_agent('Azure-SDK-For-Python')

self.credentials = credentials
self.subscription_id = subscription_id

This file was deleted.

Loading

0 comments on commit 454e375

Please sign in to comment.