Skip to content

Commit

Permalink
Generated from 1175f21020d781bcd32041246ab560177fe3edcf
Browse files Browse the repository at this point in the history
Updating swagger spec to fix billing plans schema in catalogs response.
  • Loading branch information
AutorestCI authored and Zim Kalinowski committed Oct 24, 2019
1 parent bb9792a commit 97a4cd3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 55 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -105,7 +103,6 @@
'CalculatePriceResponsePropertiesBillingCurrencyTotal',
'CalculatePriceResponsePropertiesPricingCurrencyTotal',
'Catalog',
'CatalogBillingPlansItem',
'Error', 'ErrorException',
'ExtendedErrorInfo',
'ExtendedStatusInfo',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand All @@ -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]'},
Expand All @@ -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.
"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand All @@ -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]'},
Expand All @@ -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.
"""
Expand Down

0 comments on commit 97a4cd3

Please sign in to comment.