From 97a4cd33e9db2d4cacd10c1087f90e5c616401e2 Mon Sep 17 00:00:00 2001 From: Azure SDK Bot Date: Thu, 17 Oct 2019 18:01:53 +0000 Subject: [PATCH] Generated from 1175f21020d781bcd32041246ab560177fe3edcf Updating swagger spec to fix billing plans schema in catalogs response. --- .../mgmt/reservations/models/__init__.py | 3 -- .../azure/mgmt/reservations/models/_models.py | 29 ++----------------- .../mgmt/reservations/models/_models_py3.py | 29 ++----------------- 3 files changed, 6 insertions(+), 55 deletions(-) diff --git a/sdk/reservations/azure-mgmt-reservations/azure/mgmt/reservations/models/__init__.py b/sdk/reservations/azure-mgmt-reservations/azure/mgmt/reservations/models/__init__.py index 26dff26dac8..a01006e0d7b 100644 --- a/sdk/reservations/azure-mgmt-reservations/azure/mgmt/reservations/models/__init__.py +++ b/sdk/reservations/azure-mgmt-reservations/azure/mgmt/reservations/models/__init__.py @@ -17,7 +17,6 @@ from ._models_py3 import CalculatePriceResponsePropertiesBillingCurrencyTotal from ._models_py3 import CalculatePriceResponsePropertiesPricingCurrencyTotal from ._models_py3 import Catalog - from ._models_py3 import CatalogBillingPlansItem from ._models_py3 import Error, ErrorException from ._models_py3 import ExtendedErrorInfo from ._models_py3 import ExtendedStatusInfo @@ -54,7 +53,6 @@ from ._models import CalculatePriceResponsePropertiesBillingCurrencyTotal from ._models import CalculatePriceResponsePropertiesPricingCurrencyTotal from ._models import Catalog - from ._models import CatalogBillingPlansItem from ._models import Error, ErrorException from ._models import ExtendedErrorInfo from ._models import ExtendedStatusInfo @@ -105,7 +103,6 @@ 'CalculatePriceResponsePropertiesBillingCurrencyTotal', 'CalculatePriceResponsePropertiesPricingCurrencyTotal', 'Catalog', - 'CatalogBillingPlansItem', 'Error', 'ErrorException', 'ExtendedErrorInfo', 'ExtendedStatusInfo', diff --git a/sdk/reservations/azure-mgmt-reservations/azure/mgmt/reservations/models/_models.py b/sdk/reservations/azure-mgmt-reservations/azure/mgmt/reservations/models/_models.py index e18fb68f978..5489a136050 100644 --- a/sdk/reservations/azure-mgmt-reservations/azure/mgmt/reservations/models/_models.py +++ b/sdk/reservations/azure-mgmt-reservations/azure/mgmt/reservations/models/_models.py @@ -188,8 +188,8 @@ class Catalog(Model): :ivar name: The name of SKU :vartype name: str :param billing_plans: The billing plan options available for this SKU. - :type billing_plans: - list[~azure.mgmt.reservations.models.CatalogBillingPlansItem] + :type billing_plans: dict[str, list[str or + ~azure.mgmt.reservations.models.ReservationBillingPlan]] :ivar terms: Available reservation terms for this resource :vartype terms: list[str or ~azure.mgmt.reservations.models.ReservationTerm] @@ -214,7 +214,7 @@ class Catalog(Model): _attribute_map = { 'resource_type': {'key': 'resourceType', 'type': 'str'}, 'name': {'key': 'name', 'type': 'str'}, - 'billing_plans': {'key': 'billingPlans', 'type': '[CatalogBillingPlansItem]'}, + 'billing_plans': {'key': 'billingPlans', 'type': '{[str]}'}, 'terms': {'key': 'terms', 'type': '[str]'}, 'locations': {'key': 'locations', 'type': '[str]'}, 'sku_properties': {'key': 'skuProperties', 'type': '[SkuProperty]'}, @@ -232,29 +232,6 @@ def __init__(self, **kwargs): self.restrictions = None -class CatalogBillingPlansItem(Model): - """CatalogBillingPlansItem. - - :param additional_properties: Unmatched properties from the message are - deserialized this collection - :type additional_properties: dict[str, list[str or - ~azure.mgmt.reservations.models.ReservationBillingPlan]] - :param name: The term for the billing SKU is available for. Possible - values include: 'P1Y', 'P3Y' - :type name: str or ~azure.mgmt.reservations.models.ReservationTerm - """ - - _attribute_map = { - 'additional_properties': {'key': '', 'type': '{[str]}'}, - 'name': {'key': 'name', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(CatalogBillingPlansItem, self).__init__(**kwargs) - self.additional_properties = kwargs.get('additional_properties', None) - self.name = kwargs.get('name', None) - - class CloudError(Model): """CloudError. """ diff --git a/sdk/reservations/azure-mgmt-reservations/azure/mgmt/reservations/models/_models_py3.py b/sdk/reservations/azure-mgmt-reservations/azure/mgmt/reservations/models/_models_py3.py index af871bedb7b..f33c6cee610 100644 --- a/sdk/reservations/azure-mgmt-reservations/azure/mgmt/reservations/models/_models_py3.py +++ b/sdk/reservations/azure-mgmt-reservations/azure/mgmt/reservations/models/_models_py3.py @@ -188,8 +188,8 @@ class Catalog(Model): :ivar name: The name of SKU :vartype name: str :param billing_plans: The billing plan options available for this SKU. - :type billing_plans: - list[~azure.mgmt.reservations.models.CatalogBillingPlansItem] + :type billing_plans: dict[str, list[str or + ~azure.mgmt.reservations.models.ReservationBillingPlan]] :ivar terms: Available reservation terms for this resource :vartype terms: list[str or ~azure.mgmt.reservations.models.ReservationTerm] @@ -214,7 +214,7 @@ class Catalog(Model): _attribute_map = { 'resource_type': {'key': 'resourceType', 'type': 'str'}, 'name': {'key': 'name', 'type': 'str'}, - 'billing_plans': {'key': 'billingPlans', 'type': '[CatalogBillingPlansItem]'}, + 'billing_plans': {'key': 'billingPlans', 'type': '{[str]}'}, 'terms': {'key': 'terms', 'type': '[str]'}, 'locations': {'key': 'locations', 'type': '[str]'}, 'sku_properties': {'key': 'skuProperties', 'type': '[SkuProperty]'}, @@ -232,29 +232,6 @@ def __init__(self, *, billing_plans=None, **kwargs) -> None: self.restrictions = None -class CatalogBillingPlansItem(Model): - """CatalogBillingPlansItem. - - :param additional_properties: Unmatched properties from the message are - deserialized this collection - :type additional_properties: dict[str, list[str or - ~azure.mgmt.reservations.models.ReservationBillingPlan]] - :param name: The term for the billing SKU is available for. Possible - values include: 'P1Y', 'P3Y' - :type name: str or ~azure.mgmt.reservations.models.ReservationTerm - """ - - _attribute_map = { - 'additional_properties': {'key': '', 'type': '{[str]}'}, - 'name': {'key': 'name', 'type': 'str'}, - } - - def __init__(self, *, additional_properties=None, name=None, **kwargs) -> None: - super(CatalogBillingPlansItem, self).__init__(**kwargs) - self.additional_properties = additional_properties - self.name = name - - class CloudError(Model): """CloudError. """