Skip to content

Commit

Permalink
CodeGen from PR 13895 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Task 9639284: Swagger changes for new UK agreement templates (Azure#13895)

* Task 9639284: Swagger changes for new UK agreement templates

* Renamed as per comments.

Co-authored-by: Umang Shah <umangshah@microsoft.com>
  • Loading branch information
SDKAuto and Umang Shah committed Apr 14, 2021
1 parent 1051a43 commit ad42847
Show file tree
Hide file tree
Showing 11 changed files with 945 additions and 45 deletions.
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": "ea5bc27ee9cadeb67767d774c82095be2420bcad",
"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 Expand Up @@ -252,9 +264,12 @@ class ViewCharges(str, Enum):

class Category(str, Enum):

microsoft_customer_agreement = "MicrosoftCustomerAgreement"
affiliate_purchase_terms = "AffiliatePurchaseTerms"
indirect_for_government_agreement = "IndirectForGovernmentAgreement"
microsoft_customer_agreement = "MicrosoftCustomerAgreement"
microsoft_partner_agreement = "MicrosoftPartnerAgreement"
other = "Other"
uk_cloud_compute_framework = "UKCloudComputeFramework"


class AcceptanceMode(str, Enum):
Expand Down
Loading

0 comments on commit ad42847

Please sign in to comment.