Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AutoPR track2_azure-mgmt-billing] Revert "Task 9639284: Swagger changes for new UK agreement templates" #5153

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
1 change: 1 addition & 0 deletions sdk/billing/azure-mgmt-billing/MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
include _meta.json
recursive-include tests *.py *.yaml
include *.md
include azure/__init__.py
Expand Down
8 changes: 8 additions & 0 deletions sdk/billing/azure-mgmt-billing/_meta.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"autorest": "V2",
"use": "@microsoft.azure/autorest.python@~4.0.71",
"commit": "b81bd01311671cd7ee35dfb39bb31df5d64b4dbe",
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
"autorest_command": "autorest specification/billing/resource-manager/readme.md --keep-version-file --multiapi --no-async --python --python-mode=update --python-sdks-folder=/home/vsts/work/1/s/azure-sdk-for-python/sdk --use=@microsoft.azure/autorest.python@~4.0.71 --version=V2",
"readme": "specification/billing/resource-manager/readme.md"
}
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
from .operations import BillingRoleDefinitionsOperations
from .operations import BillingRoleAssignmentsOperations
from .operations import AgreementsOperations
from .operations import ReservationsOperations
from .operations import EnrollmentAccountsOperations
from .operations import BillingPeriodsOperations
from . import models
Expand Down Expand Up @@ -78,6 +79,8 @@ class BillingManagementClient(SDKClient):
:vartype billing_role_assignments: azure.mgmt.billing.operations.BillingRoleAssignmentsOperations
:ivar agreements: Agreements operations
:vartype agreements: azure.mgmt.billing.operations.AgreementsOperations
:ivar reservations: Reservations operations
:vartype reservations: azure.mgmt.billing.operations.ReservationsOperations
:ivar enrollment_accounts: EnrollmentAccounts operations
:vartype enrollment_accounts: azure.mgmt.billing.operations.EnrollmentAccountsOperations
:ivar billing_periods: BillingPeriods operations
Expand Down Expand Up @@ -138,6 +141,8 @@ def __init__(
self._client, self.config, self._serialize, self._deserialize)
self.agreements = AgreementsOperations(
self._client, self.config, self._serialize, self._deserialize)
self.reservations = ReservationsOperations(
self._client, self.config, self._serialize, self._deserialize)
self.enrollment_accounts = EnrollmentAccountsOperations(
self._client, self.config, self._serialize, self._deserialize)
self.billing_periods = BillingPeriodsOperations(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,11 @@
from ._models_py3 import Product
from ._models_py3 import RebillDetails
from ._models_py3 import Reseller
from ._models_py3 import Reservation
from ._models_py3 import ReservationPropertyUtilization
from ._models_py3 import ReservationSkuProperty
from ._models_py3 import ReservationSummary
from ._models_py3 import ReservationUtilizationAggregates
from ._models_py3 import Resource
from ._models_py3 import Transaction
from ._models_py3 import TransferBillingSubscriptionRequestProperties
Expand Down Expand Up @@ -108,6 +113,11 @@
from ._models import Product
from ._models import RebillDetails
from ._models import Reseller
from ._models import Reservation
from ._models import ReservationPropertyUtilization
from ._models import ReservationSkuProperty
from ._models import ReservationSummary
from ._models import ReservationUtilizationAggregates
from ._models import Resource
from ._models import Transaction
from ._models import TransferBillingSubscriptionRequestProperties
Expand All @@ -133,6 +143,7 @@
from ._paged_models import InvoiceSectionWithCreateSubPermissionPaged
from ._paged_models import OperationPaged
from ._paged_models import ProductPaged
from ._paged_models import ReservationPaged
from ._paged_models import TransactionPaged
from ._billing_management_client_enums import (
AddressValidationStatus,
Expand Down Expand Up @@ -216,6 +227,11 @@
'Product',
'RebillDetails',
'Reseller',
'Reservation',
'ReservationPropertyUtilization',
'ReservationSkuProperty',
'ReservationSummary',
'ReservationUtilizationAggregates',
'Resource',
'Transaction',
'TransferBillingSubscriptionRequestProperties',
Expand All @@ -240,6 +256,7 @@
'BillingRoleDefinitionPaged',
'BillingRoleAssignmentPaged',
'AgreementPaged',
'ReservationPaged',
'EnrollmentAccountSummaryPaged',
'BillingPeriodPaged',
'AddressValidationStatus',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,26 @@ class AddressValidationStatus(str, Enum):

class SubscriptionTransferValidationErrorCode(str, Enum):

billing_account_inactive = "BillingAccountInactive"
cross_billing_account_not_allowed = "CrossBillingAccountNotAllowed"
destination_billing_profile_inactive = "DestinationBillingProfileInactive"
destination_billing_profile_not_found = "DestinationBillingProfileNotFound"
destination_billing_profile_past_due = "DestinationBillingProfilePastDue"
destination_invoice_section_inactive = "DestinationInvoiceSectionInactive"
destination_invoice_section_not_found = "DestinationInvoiceSectionNotFound"
insufficient_permission_on_destination = "InsufficientPermissionOnDestination"
insufficient_permission_on_source = "InsufficientPermissionOnSource"
invalid_destination = "InvalidDestination"
invalid_source = "InvalidSource"
marketplace_not_enabled_on_destination = "MarketplaceNotEnabledOnDestination"
not_available_for_destination_market = "NotAvailableForDestinationMarket"
product_inactive = "ProductInactive"
product_not_found = "ProductNotFound"
product_type_not_supported = "ProductTypeNotSupported"
source_billing_profile_past_due = "SourceBillingProfilePastDue"
source_invoice_section_inactive = "SourceInvoiceSectionInactive"
subscription_not_active = "SubscriptionNotActive"
insufficient_permission_on_source = "InsufficientPermissionOnSource"
insufficient_permission_on_destination = "InsufficientPermissionOnDestination"
destination_billing_profile_past_due = "DestinationBillingProfilePastDue"
subscription_type_not_supported = "SubscriptionTypeNotSupported"
cross_billing_account_not_allowed = "CrossBillingAccountNotAllowed"
not_available_for_destination_market = "NotAvailableForDestinationMarket"


class AgreementType(str, Enum):
Expand Down
Loading