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 reservations/resource-manager] Updating swagger spec to fix billing plans schema in catalogs response. #7984

Merged
merged 2 commits into from
Oct 24, 2019
Merged
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
11 changes: 11 additions & 0 deletions sdk/reservations/azure-mgmt-reservations/HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,17 @@
Release History
===============

0.6.0 (2019-10-24)
++++++++++++++++++

**Bugfix**

- Fixed Catalog model structure not matching actual API

**Breaking changes**

- Removed CatalogBillingPlansItem that could be considered a breaking change

0.5.0 (2019-10-04)
++++++++++++++++++

Expand Down
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
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@
# regenerated.
# --------------------------------------------------------------------------

VERSION = "0.5.0"
VERSION = "0.6.0"