Skip to content

Commit

Permalink
[AutoPR billing/resource-manager] Billing RP spec changes for GTM Fie…
Browse files Browse the repository at this point in the history
…ldLed-Go-Big (#6397)

* Generated from 967bc1303f9d53c4b90d8b99c4faae3c79adc8f8

Billing RP spec changes for GTM FieldLed-Go-Big

Billing RP spec changes for GTM FieldLed-Go-Big

* Generated from d03bdfdbfa03bc69371ac55b5cea86958a4d79ca

Fixed build errors

* Generated from 12a3f4c2d0f0aef8f7f234edb51c3f7827dee716

Update billing.json

* Generated from 0a3d64eb9ccc600dc982bb778223c2f3de38b6de

Updated policy properties

Updated policy properties

* Generated from aa563c57138bdbbe0239bc88f677eceff72ed420

Incorporated review comments

Incorporated review comments

* Generated from cf675f37afa739fa046b09c9623e3e366007cd5e

Updated autorenew request params

Updated autorenew request params

* Generated from f192330d3afec7a8f1283d9a5978e2399bf1b7b2

Updated types for payment methods and available balance

Updated types for payment methods and available balance

* Generated from c018eb9e097a219934be08933636eaa8546f2914

Updated invoice section list examples

Updated invoice section list examples

* Generated from 5275e24316fffeb0b90572c5a0489621c5869ea3

Fixed few errors

* Generated from 09d21178677c38f079ec5f83bb8d242243f326a6

Updated transaction api examples

Updated transaction api examples

* Generated from 1790ba79f9d9f149fa1916e94d8a1c886ecd4305

Incorporated review coments

* Generated from d0721ddc7c577d30f8286ad1ce552c09affcca72

Incorporated review comments

* Generated from 5091b5f1f0e8a217df5b395b6ff10a0fd0766e67

Fixed build errors

Fixed build errors

* Generated from 3559e48931a1b39939120514a3061ac5967e4488

Fixed build errors

Fixed build errors

* Generated from a30934cc61a460b5f57b8b63e27de5eda2471b81

Updated BillingRoleAssignments actions

Updated BillingRoleAssignments actions

* Generated from 09cbd07fe21dc46ceeca0ebd07deb6138f72d74d

Added Transfer apis for partner led

Added Transfer apis for partner led

* Generated from be18185f872a258d97270fa97a93e77e9da6478f

Removing listInvoiceSectionsWithCreateSubscriptionPermission

Removing listInvoiceSectionsWithCreateSubscriptionPermission

* Generated from 1527d6f586844418db402545d7c692cbe0e06c7d

Removed unused property, billing profile id is not required in the request body
  • Loading branch information
AutorestCI authored Aug 6, 2019
1 parent 87ea734 commit 4342235
Show file tree
Hide file tree
Showing 84 changed files with 1,511 additions and 1,066 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
from .version import VERSION
from .operations.billing_accounts_operations import BillingAccountsOperations
from .operations.payment_methods_operations import PaymentMethodsOperations
from .operations.addresses_operations import AddressesOperations
from .operations.address_operations import AddressOperations
from .operations.available_balances_operations import AvailableBalancesOperations
from .operations.billing_profiles_operations import BillingProfilesOperations
from .operations.invoice_sections_operations import InvoiceSectionsOperations
Expand All @@ -29,6 +29,8 @@
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_permissions_operations import BillingPermissionsOperations
Expand Down Expand Up @@ -81,8 +83,8 @@ class BillingManagementClient(SDKClient):
:vartype billing_accounts: azure.mgmt.billing.operations.BillingAccountsOperations
:ivar payment_methods: PaymentMethods operations
:vartype payment_methods: azure.mgmt.billing.operations.PaymentMethodsOperations
:ivar addresses: Addresses operations
:vartype addresses: azure.mgmt.billing.operations.AddressesOperations
: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
Expand All @@ -109,6 +111,10 @@ class BillingManagementClient(SDKClient):
: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
Expand Down Expand Up @@ -139,15 +145,15 @@ def __init__(
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-11-01-preview'
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.addresses = AddressesOperations(
self.address = AddressOperations(
self._client, self.config, self._serialize, self._deserialize)
self.available_balances = AvailableBalancesOperations(
self._client, self.config, self._serialize, self._deserialize)
Expand Down Expand Up @@ -175,6 +181,10 @@ def __init__(
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(
Expand Down
101 changes: 56 additions & 45 deletions sdk/billing/azure-mgmt-billing/azure/mgmt/billing/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

try:
from .initiate_transfer_request_py3 import InitiateTransferRequest
from .address_py3 import Address
from .address_details_py3 import AddressDetails
from .validate_address_response_py3 import ValidateAddressResponse
from .product_details_py3 import ProductDetails
from .accept_transfer_request_py3 import AcceptTransferRequest
Expand All @@ -25,43 +25,42 @@
from .transfer_billing_subscription_request_py3 import TransferBillingSubscriptionRequest
from .validate_subscription_transfer_eligibility_error_py3 import ValidateSubscriptionTransferEligibilityError
from .validate_subscription_transfer_eligibility_result_py3 import ValidateSubscriptionTransferEligibilityResult
from .update_auto_renew_operation_summary_py3 import UpdateAutoRenewOperationSummary
from .enabled_azure_sk_us_py3 import EnabledAzureSKUs
from .billing_profile_py3 import BillingProfile
from .update_auto_renew_operation_py3 import UpdateAutoRenewOperation
from .azure_plan_py3 import AzurePlan
from .invoice_section_py3 import InvoiceSection
from .billing_profile_py3 import BillingProfile
from .enrollment_policies_py3 import EnrollmentPolicies
from .enrollment_py3 import Enrollment
from .enrollment_account_py3 import EnrollmentAccount
from .department_py3 import Department
from .billing_account_py3 import BillingAccount
from .billing_account_list_result_py3 import BillingAccountListResult
from .billing_account_update_properties_py3 import BillingAccountUpdateProperties
from .billing_account_update_request_py3 import BillingAccountUpdateRequest
from .billing_property_py3 import BillingProperty
from .department_list_result_py3 import DepartmentListResult
from .enrollment_account_list_result_py3 import EnrollmentAccountListResult
from .billing_profile_list_result_py3 import BillingProfileListResult
from .billing_profile_creation_parameters_py3 import BillingProfileCreationParameters
from .billing_profile_creation_request_py3 import BillingProfileCreationRequest
from .invoice_section_creation_request_py3 import InvoiceSectionCreationRequest
from .invoice_section_list_result_py3 import InvoiceSectionListResult
from .operation_status_py3 import OperationStatus
from .download_url_py3 import DownloadUrl
from .error_details_py3 import ErrorDetails
from .error_response_py3 import ErrorResponse, ErrorResponseException
from .resource_py3 import Resource
from .amount_py3 import Amount
from .download_properties_py3 import DownloadProperties
from .document_py3 import Document
from .payment_properties_py3 import PaymentProperties
from .invoice_summary_py3 import InvoiceSummary
from .invoice_py3 import Invoice
from .invoice_list_result_py3 import InvoiceListResult
from .product_summary_py3 import ProductSummary
from .product_py3 import Product
from .products_list_result_py3 import ProductsListResult
from .validate_product_transfer_eligibility_error_py3 import ValidateProductTransferEligibilityError
from .validate_product_transfer_eligibility_result_py3 import ValidateProductTransferEligibilityResult
from .billing_subscription_summary_py3 import BillingSubscriptionSummary
from .billing_subscription_py3 import BillingSubscription
from .billing_subscriptions_list_result_py3 import BillingSubscriptionsListResult
from .enrollment_account_context_py3 import EnrollmentAccountContext
from .transactions_summary_py3 import TransactionsSummary
from .transactions_list_result_py3 import TransactionsListResult
from .transaction_py3 import Transaction
from .transaction_list_result_py3 import TransactionListResult
from .policy_py3 import Policy
from .available_balance_py3 import AvailableBalance
from .payment_method_py3 import PaymentMethod
Expand All @@ -81,7 +80,7 @@
from .line_of_credit_py3 import LineOfCredit
except (SyntaxError, ImportError):
from .initiate_transfer_request import InitiateTransferRequest
from .address import Address
from .address_details import AddressDetails
from .validate_address_response import ValidateAddressResponse
from .product_details import ProductDetails
from .accept_transfer_request import AcceptTransferRequest
Expand All @@ -95,43 +94,42 @@
from .transfer_billing_subscription_request import TransferBillingSubscriptionRequest
from .validate_subscription_transfer_eligibility_error import ValidateSubscriptionTransferEligibilityError
from .validate_subscription_transfer_eligibility_result import ValidateSubscriptionTransferEligibilityResult
from .update_auto_renew_operation_summary import UpdateAutoRenewOperationSummary
from .enabled_azure_sk_us import EnabledAzureSKUs
from .billing_profile import BillingProfile
from .update_auto_renew_operation import UpdateAutoRenewOperation
from .azure_plan import AzurePlan
from .invoice_section import InvoiceSection
from .billing_profile import BillingProfile
from .enrollment_policies import EnrollmentPolicies
from .enrollment import Enrollment
from .enrollment_account import EnrollmentAccount
from .department import Department
from .billing_account import BillingAccount
from .billing_account_list_result import BillingAccountListResult
from .billing_account_update_properties import BillingAccountUpdateProperties
from .billing_account_update_request import BillingAccountUpdateRequest
from .billing_property import BillingProperty
from .department_list_result import DepartmentListResult
from .enrollment_account_list_result import EnrollmentAccountListResult
from .billing_profile_list_result import BillingProfileListResult
from .billing_profile_creation_parameters import BillingProfileCreationParameters
from .billing_profile_creation_request import BillingProfileCreationRequest
from .invoice_section_creation_request import InvoiceSectionCreationRequest
from .invoice_section_list_result import InvoiceSectionListResult
from .operation_status import OperationStatus
from .download_url import DownloadUrl
from .error_details import ErrorDetails
from .error_response import ErrorResponse, ErrorResponseException
from .resource import Resource
from .amount import Amount
from .download_properties import DownloadProperties
from .document import Document
from .payment_properties import PaymentProperties
from .invoice_summary import InvoiceSummary
from .invoice import Invoice
from .invoice_list_result import InvoiceListResult
from .product_summary import ProductSummary
from .product import Product
from .products_list_result import ProductsListResult
from .validate_product_transfer_eligibility_error import ValidateProductTransferEligibilityError
from .validate_product_transfer_eligibility_result import ValidateProductTransferEligibilityResult
from .billing_subscription_summary import BillingSubscriptionSummary
from .billing_subscription import BillingSubscription
from .billing_subscriptions_list_result import BillingSubscriptionsListResult
from .enrollment_account_context import EnrollmentAccountContext
from .transactions_summary import TransactionsSummary
from .transactions_list_result import TransactionsListResult
from .transaction import Transaction
from .transaction_list_result import TransactionListResult
from .policy import Policy
from .available_balance import AvailableBalance
from .payment_method import PaymentMethod
Expand All @@ -150,9 +148,9 @@
from .agreement_list_result import AgreementListResult
from .line_of_credit import LineOfCredit
from .payment_method_paged import PaymentMethodPaged
from .billing_subscription_summary_paged import BillingSubscriptionSummaryPaged
from .product_summary_paged import ProductSummaryPaged
from .transactions_summary_paged import TransactionsSummaryPaged
from .billing_subscription_paged import BillingSubscriptionPaged
from .product_paged import ProductPaged
from .transaction_paged import TransactionPaged
from .transfer_details_paged import TransferDetailsPaged
from .recipient_transfer_details_paged import RecipientTransferDetailsPaged
from .operation_paged import OperationPaged
Expand All @@ -163,20 +161,27 @@
ProductTransferStatus,
EligibleProductType,
SubscriptionTransferValidationErrorCode,
AgreementType,
CustomerType,
InvoiceStatus,
DocumentType,
ProductStatusType,
BillingFrequency,
ProductTransferValidationErrorCode,
BillingSubscriptionStatusType,
TransactionTypeKind,
ReservationType,
MarketplacePurchasesPolicy,
ReservationPurchasesPolicy,
ViewChargesPolicy,
PaymentMethodType,
UpdateAutoRenew,
Status,
)

__all__ = [
'InitiateTransferRequest',
'Address',
'AddressDetails',
'ValidateAddressResponse',
'ProductDetails',
'AcceptTransferRequest',
Expand All @@ -190,43 +195,42 @@
'TransferBillingSubscriptionRequest',
'ValidateSubscriptionTransferEligibilityError',
'ValidateSubscriptionTransferEligibilityResult',
'UpdateAutoRenewOperationSummary',
'EnabledAzureSKUs',
'BillingProfile',
'UpdateAutoRenewOperation',
'AzurePlan',
'InvoiceSection',
'BillingProfile',
'EnrollmentPolicies',
'Enrollment',
'EnrollmentAccount',
'Department',
'BillingAccount',
'BillingAccountListResult',
'BillingAccountUpdateProperties',
'BillingAccountUpdateRequest',
'BillingProperty',
'DepartmentListResult',
'EnrollmentAccountListResult',
'BillingProfileListResult',
'BillingProfileCreationParameters',
'BillingProfileCreationRequest',
'InvoiceSectionCreationRequest',
'InvoiceSectionListResult',
'OperationStatus',
'DownloadUrl',
'ErrorDetails',
'ErrorResponse', 'ErrorResponseException',
'Resource',
'Amount',
'DownloadProperties',
'Document',
'PaymentProperties',
'InvoiceSummary',
'Invoice',
'InvoiceListResult',
'ProductSummary',
'Product',
'ProductsListResult',
'ValidateProductTransferEligibilityError',
'ValidateProductTransferEligibilityResult',
'BillingSubscriptionSummary',
'BillingSubscription',
'BillingSubscriptionsListResult',
'EnrollmentAccountContext',
'TransactionsSummary',
'TransactionsListResult',
'Transaction',
'TransactionListResult',
'Policy',
'AvailableBalance',
'PaymentMethod',
Expand All @@ -245,9 +249,9 @@
'AgreementListResult',
'LineOfCredit',
'PaymentMethodPaged',
'BillingSubscriptionSummaryPaged',
'ProductSummaryPaged',
'TransactionsSummaryPaged',
'BillingSubscriptionPaged',
'ProductPaged',
'TransactionPaged',
'TransferDetailsPaged',
'RecipientTransferDetailsPaged',
'OperationPaged',
Expand All @@ -257,12 +261,19 @@
'ProductTransferStatus',
'EligibleProductType',
'SubscriptionTransferValidationErrorCode',
'AgreementType',
'CustomerType',
'InvoiceStatus',
'DocumentType',
'ProductStatusType',
'BillingFrequency',
'ProductTransferValidationErrorCode',
'BillingSubscriptionStatusType',
'TransactionTypeKind',
'ReservationType',
'MarketplacePurchasesPolicy',
'ReservationPurchasesPolicy',
'ViewChargesPolicy',
'PaymentMethodType',
'UpdateAutoRenew',
'Status',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
from msrest.serialization import Model


class Address(Model):
class AddressDetails(Model):
"""Address details.
:param first_name: First Name.
Expand Down Expand Up @@ -51,7 +51,7 @@ class Address(Model):
}

def __init__(self, **kwargs):
super(Address, self).__init__(**kwargs)
super(AddressDetails, self).__init__(**kwargs)
self.first_name = kwargs.get('first_name', None)
self.last_name = kwargs.get('last_name', None)
self.company_name = kwargs.get('company_name', None)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
from msrest.serialization import Model


class Address(Model):
class AddressDetails(Model):
"""Address details.
:param first_name: First Name.
Expand Down Expand Up @@ -51,7 +51,7 @@ class Address(Model):
}

def __init__(self, *, first_name: str=None, last_name: str=None, company_name: str=None, address_line1: str=None, address_line2: str=None, address_line3: str=None, city: str=None, region: str=None, country: str=None, postal_code: str=None, **kwargs) -> None:
super(Address, self).__init__(**kwargs)
super(AddressDetails, self).__init__(**kwargs)
self.first_name = first_name
self.last_name = last_name
self.company_name = company_name
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
from msrest.serialization import Model


class EnabledAzureSKUs(Model):
"""Details about the enabled azure sku.
class AzurePlan(Model):
"""Details about the azure plan.
Variables are only populated by the server, and will be ignored when
sending a request.
Expand All @@ -34,6 +34,6 @@ class EnabledAzureSKUs(Model):
}

def __init__(self, **kwargs):
super(EnabledAzureSKUs, self).__init__(**kwargs)
super(AzurePlan, self).__init__(**kwargs)
self.sku_id = kwargs.get('sku_id', None)
self.sku_description = None
Loading

0 comments on commit 4342235

Please sign in to comment.