diff --git a/azure-mgmt-reservations/azure/mgmt/reservations/models/__init__.py b/azure-mgmt-reservations/azure/mgmt/reservations/models/__init__.py index c8647aeb9744..a76ccf5b03e7 100644 --- a/azure-mgmt-reservations/azure/mgmt/reservations/models/__init__.py +++ b/azure-mgmt-reservations/azure/mgmt/reservations/models/__init__.py @@ -17,6 +17,11 @@ from .extended_status_info_py3 import ExtendedStatusInfo from .reservation_split_properties_py3 import ReservationSplitProperties from .reservation_merge_properties_py3 import ReservationMergeProperties + from .purchase_request_properties_reserved_resource_properties_py3 import PurchaseRequestPropertiesReservedResourceProperties + from .purchase_request_py3 import PurchaseRequest + from .renew_properties_response_locked_price_total_py3 import RenewPropertiesResponseLockedPriceTotal + from .renew_properties_response_links_py3 import RenewPropertiesResponseLinks + from .renew_properties_response_py3 import RenewPropertiesResponse from .reservation_properties_py3 import ReservationProperties from .reservation_response_py3 import ReservationResponse from .reservation_order_response_py3 import ReservationOrderResponse @@ -24,9 +29,7 @@ from .calculate_price_response_properties_pricing_currency_total_py3 import CalculatePriceResponsePropertiesPricingCurrencyTotal from .calculate_price_response_properties_py3 import CalculatePriceResponseProperties from .calculate_price_response_py3 import CalculatePriceResponse - from .purchase_request_properties_reserved_resource_properties_py3 import PurchaseRequestPropertiesReservedResourceProperties from .merge_request_py3 import MergeRequest - from .purchase_request_py3 import PurchaseRequest from .patch_py3 import Patch from .split_request_py3 import SplitRequest from .extended_error_info_py3 import ExtendedErrorInfo @@ -43,6 +46,11 @@ from .extended_status_info import ExtendedStatusInfo from .reservation_split_properties import ReservationSplitProperties from .reservation_merge_properties import ReservationMergeProperties + from .purchase_request_properties_reserved_resource_properties import PurchaseRequestPropertiesReservedResourceProperties + from .purchase_request import PurchaseRequest + from .renew_properties_response_locked_price_total import RenewPropertiesResponseLockedPriceTotal + from .renew_properties_response_links import RenewPropertiesResponseLinks + from .renew_properties_response import RenewPropertiesResponse from .reservation_properties import ReservationProperties from .reservation_response import ReservationResponse from .reservation_order_response import ReservationOrderResponse @@ -50,9 +58,7 @@ from .calculate_price_response_properties_pricing_currency_total import CalculatePriceResponsePropertiesPricingCurrencyTotal from .calculate_price_response_properties import CalculatePriceResponseProperties from .calculate_price_response import CalculatePriceResponse - from .purchase_request_properties_reserved_resource_properties import PurchaseRequestPropertiesReservedResourceProperties from .merge_request import MergeRequest - from .purchase_request import PurchaseRequest from .patch import Patch from .split_request import SplitRequest from .extended_error_info import ExtendedErrorInfo @@ -81,6 +87,11 @@ 'ExtendedStatusInfo', 'ReservationSplitProperties', 'ReservationMergeProperties', + 'PurchaseRequestPropertiesReservedResourceProperties', + 'PurchaseRequest', + 'RenewPropertiesResponseLockedPriceTotal', + 'RenewPropertiesResponseLinks', + 'RenewPropertiesResponse', 'ReservationProperties', 'ReservationResponse', 'ReservationOrderResponse', @@ -88,9 +99,7 @@ 'CalculatePriceResponsePropertiesPricingCurrencyTotal', 'CalculatePriceResponseProperties', 'CalculatePriceResponse', - 'PurchaseRequestPropertiesReservedResourceProperties', 'MergeRequest', - 'PurchaseRequest', 'Patch', 'SplitRequest', 'ExtendedErrorInfo', diff --git a/azure-mgmt-reservations/azure/mgmt/reservations/models/patch.py b/azure-mgmt-reservations/azure/mgmt/reservations/models/patch.py index 339253285ada..e48b292741fb 100644 --- a/azure-mgmt-reservations/azure/mgmt/reservations/models/patch.py +++ b/azure-mgmt-reservations/azure/mgmt/reservations/models/patch.py @@ -20,6 +20,10 @@ class Patch(Model): ~azure.mgmt.reservations.models.AppliedScopeType :param applied_scopes: :type applied_scopes: list[str] + :param renew: + :type renew: bool + :param renew_properties: + :type renew_properties: ~azure.mgmt.reservations.models.PurchaseRequest :param instance_flexibility: Possible values include: 'On', 'Off' :type instance_flexibility: str or ~azure.mgmt.reservations.models.InstanceFlexibility @@ -30,6 +34,8 @@ class Patch(Model): _attribute_map = { 'applied_scope_type': {'key': 'properties.appliedScopeType', 'type': 'str'}, 'applied_scopes': {'key': 'properties.appliedScopes', 'type': '[str]'}, + 'renew': {'key': 'properties.renew', 'type': 'bool'}, + 'renew_properties': {'key': 'properties.renewProperties', 'type': 'PurchaseRequest'}, 'instance_flexibility': {'key': 'properties.instanceFlexibility', 'type': 'str'}, 'name': {'key': 'properties.name', 'type': 'str'}, } @@ -38,5 +44,7 @@ def __init__(self, **kwargs): super(Patch, self).__init__(**kwargs) self.applied_scope_type = kwargs.get('applied_scope_type', None) self.applied_scopes = kwargs.get('applied_scopes', None) + self.renew = kwargs.get('renew', None) + self.renew_properties = kwargs.get('renew_properties', None) self.instance_flexibility = kwargs.get('instance_flexibility', None) self.name = kwargs.get('name', None) diff --git a/azure-mgmt-reservations/azure/mgmt/reservations/models/patch_py3.py b/azure-mgmt-reservations/azure/mgmt/reservations/models/patch_py3.py index e4dd27f9735c..ac15dca9eac0 100644 --- a/azure-mgmt-reservations/azure/mgmt/reservations/models/patch_py3.py +++ b/azure-mgmt-reservations/azure/mgmt/reservations/models/patch_py3.py @@ -20,6 +20,10 @@ class Patch(Model): ~azure.mgmt.reservations.models.AppliedScopeType :param applied_scopes: :type applied_scopes: list[str] + :param renew: + :type renew: bool + :param renew_properties: + :type renew_properties: ~azure.mgmt.reservations.models.PurchaseRequest :param instance_flexibility: Possible values include: 'On', 'Off' :type instance_flexibility: str or ~azure.mgmt.reservations.models.InstanceFlexibility @@ -30,13 +34,17 @@ class Patch(Model): _attribute_map = { 'applied_scope_type': {'key': 'properties.appliedScopeType', 'type': 'str'}, 'applied_scopes': {'key': 'properties.appliedScopes', 'type': '[str]'}, + 'renew': {'key': 'properties.renew', 'type': 'bool'}, + 'renew_properties': {'key': 'properties.renewProperties', 'type': 'PurchaseRequest'}, 'instance_flexibility': {'key': 'properties.instanceFlexibility', 'type': 'str'}, 'name': {'key': 'properties.name', 'type': 'str'}, } - def __init__(self, *, applied_scope_type=None, applied_scopes=None, instance_flexibility=None, name: str=None, **kwargs) -> None: + def __init__(self, *, applied_scope_type=None, applied_scopes=None, renew: bool=None, renew_properties=None, instance_flexibility=None, name: str=None, **kwargs) -> None: super(Patch, self).__init__(**kwargs) self.applied_scope_type = applied_scope_type self.applied_scopes = applied_scopes + self.renew = renew + self.renew_properties = renew_properties self.instance_flexibility = instance_flexibility self.name = name diff --git a/azure-mgmt-reservations/azure/mgmt/reservations/models/purchase_request.py b/azure-mgmt-reservations/azure/mgmt/reservations/models/purchase_request.py index 88be65ce3d8b..817d109e4a9e 100644 --- a/azure-mgmt-reservations/azure/mgmt/reservations/models/purchase_request.py +++ b/azure-mgmt-reservations/azure/mgmt/reservations/models/purchase_request.py @@ -36,6 +36,8 @@ class PurchaseRequest(Model): ~azure.mgmt.reservations.models.AppliedScopeType :param applied_scopes: :type applied_scopes: list[str] + :param renew: + :type renew: bool :param reserved_resource_properties: Properties specific to each reserved resource type. Not required if not applicable. :type reserved_resource_properties: @@ -52,6 +54,7 @@ class PurchaseRequest(Model): 'display_name': {'key': 'properties.displayName', 'type': 'str'}, 'applied_scope_type': {'key': 'properties.appliedScopeType', 'type': 'str'}, 'applied_scopes': {'key': 'properties.appliedScopes', 'type': '[str]'}, + 'renew': {'key': 'properties.renew', 'type': 'bool'}, 'reserved_resource_properties': {'key': 'properties.reservedResourceProperties', 'type': 'PurchaseRequestPropertiesReservedResourceProperties'}, } @@ -66,4 +69,5 @@ def __init__(self, **kwargs): self.display_name = kwargs.get('display_name', None) self.applied_scope_type = kwargs.get('applied_scope_type', None) self.applied_scopes = kwargs.get('applied_scopes', None) + self.renew = kwargs.get('renew', None) self.reserved_resource_properties = kwargs.get('reserved_resource_properties', None) diff --git a/azure-mgmt-reservations/azure/mgmt/reservations/models/purchase_request_py3.py b/azure-mgmt-reservations/azure/mgmt/reservations/models/purchase_request_py3.py index 6f4c95af5ec8..13158edc8bce 100644 --- a/azure-mgmt-reservations/azure/mgmt/reservations/models/purchase_request_py3.py +++ b/azure-mgmt-reservations/azure/mgmt/reservations/models/purchase_request_py3.py @@ -36,6 +36,8 @@ class PurchaseRequest(Model): ~azure.mgmt.reservations.models.AppliedScopeType :param applied_scopes: :type applied_scopes: list[str] + :param renew: + :type renew: bool :param reserved_resource_properties: Properties specific to each reserved resource type. Not required if not applicable. :type reserved_resource_properties: @@ -52,10 +54,11 @@ class PurchaseRequest(Model): 'display_name': {'key': 'properties.displayName', 'type': 'str'}, 'applied_scope_type': {'key': 'properties.appliedScopeType', 'type': 'str'}, 'applied_scopes': {'key': 'properties.appliedScopes', 'type': '[str]'}, + 'renew': {'key': 'properties.renew', 'type': 'bool'}, 'reserved_resource_properties': {'key': 'properties.reservedResourceProperties', 'type': 'PurchaseRequestPropertiesReservedResourceProperties'}, } - def __init__(self, *, sku=None, location: str=None, reserved_resource_type=None, billing_scope_id: str=None, term=None, quantity: int=None, display_name: str=None, applied_scope_type=None, applied_scopes=None, reserved_resource_properties=None, **kwargs) -> None: + def __init__(self, *, sku=None, location: str=None, reserved_resource_type=None, billing_scope_id: str=None, term=None, quantity: int=None, display_name: str=None, applied_scope_type=None, applied_scopes=None, renew: bool=None, reserved_resource_properties=None, **kwargs) -> None: super(PurchaseRequest, self).__init__(**kwargs) self.sku = sku self.location = location @@ -66,4 +69,5 @@ def __init__(self, *, sku=None, location: str=None, reserved_resource_type=None, self.display_name = display_name self.applied_scope_type = applied_scope_type self.applied_scopes = applied_scopes + self.renew = renew self.reserved_resource_properties = reserved_resource_properties diff --git a/azure-mgmt-reservations/azure/mgmt/reservations/models/renew_properties_response.py b/azure-mgmt-reservations/azure/mgmt/reservations/models/renew_properties_response.py new file mode 100644 index 000000000000..69d138409e0c --- /dev/null +++ b/azure-mgmt-reservations/azure/mgmt/reservations/models/renew_properties_response.py @@ -0,0 +1,39 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class RenewPropertiesResponse(Model): + """RenewPropertiesResponse. + + :param purchase_properties: + :type purchase_properties: ~azure.mgmt.reservations.models.PurchaseRequest + :param locked_price_total: Locked currency & amount for new reservation + purchase at the time of renewal. Price is locked 30 days before expiry + date time if renew is true. + :type locked_price_total: + ~azure.mgmt.reservations.models.RenewPropertiesResponseLockedPriceTotal + :param links: Contains prev and next reservation Ids' because of renewal. + :type links: ~azure.mgmt.reservations.models.RenewPropertiesResponseLinks + """ + + _attribute_map = { + 'purchase_properties': {'key': 'purchaseProperties', 'type': 'PurchaseRequest'}, + 'locked_price_total': {'key': 'lockedPriceTotal', 'type': 'RenewPropertiesResponseLockedPriceTotal'}, + 'links': {'key': 'links', 'type': 'RenewPropertiesResponseLinks'}, + } + + def __init__(self, **kwargs): + super(RenewPropertiesResponse, self).__init__(**kwargs) + self.purchase_properties = kwargs.get('purchase_properties', None) + self.locked_price_total = kwargs.get('locked_price_total', None) + self.links = kwargs.get('links', None) diff --git a/azure-mgmt-reservations/azure/mgmt/reservations/models/renew_properties_response_links.py b/azure-mgmt-reservations/azure/mgmt/reservations/models/renew_properties_response_links.py new file mode 100644 index 000000000000..343c385a6b73 --- /dev/null +++ b/azure-mgmt-reservations/azure/mgmt/reservations/models/renew_properties_response_links.py @@ -0,0 +1,36 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class RenewPropertiesResponseLinks(Model): + """Contains prev and next reservation Ids' because of renewal. + + :param renew_source: Reservation Id of the reservation from which this + reservation is renewed. Format of the resource Id is + /providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}/reservations/{reservationId}. + :type renew_source: str + :param renew_destination: Reservation Id of the reservation which is + purchased because of renew. Format of the resource Id is + /providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}/reservations/{reservationId}. + :type renew_destination: str + """ + + _attribute_map = { + 'renew_source': {'key': 'renewSource', 'type': 'str'}, + 'renew_destination': {'key': 'renewDestination', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(RenewPropertiesResponseLinks, self).__init__(**kwargs) + self.renew_source = kwargs.get('renew_source', None) + self.renew_destination = kwargs.get('renew_destination', None) diff --git a/azure-mgmt-reservations/azure/mgmt/reservations/models/renew_properties_response_links_py3.py b/azure-mgmt-reservations/azure/mgmt/reservations/models/renew_properties_response_links_py3.py new file mode 100644 index 000000000000..c89fdb090df3 --- /dev/null +++ b/azure-mgmt-reservations/azure/mgmt/reservations/models/renew_properties_response_links_py3.py @@ -0,0 +1,36 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class RenewPropertiesResponseLinks(Model): + """Contains prev and next reservation Ids' because of renewal. + + :param renew_source: Reservation Id of the reservation from which this + reservation is renewed. Format of the resource Id is + /providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}/reservations/{reservationId}. + :type renew_source: str + :param renew_destination: Reservation Id of the reservation which is + purchased because of renew. Format of the resource Id is + /providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}/reservations/{reservationId}. + :type renew_destination: str + """ + + _attribute_map = { + 'renew_source': {'key': 'renewSource', 'type': 'str'}, + 'renew_destination': {'key': 'renewDestination', 'type': 'str'}, + } + + def __init__(self, *, renew_source: str=None, renew_destination: str=None, **kwargs) -> None: + super(RenewPropertiesResponseLinks, self).__init__(**kwargs) + self.renew_source = renew_source + self.renew_destination = renew_destination diff --git a/azure-mgmt-reservations/azure/mgmt/reservations/models/renew_properties_response_locked_price_total.py b/azure-mgmt-reservations/azure/mgmt/reservations/models/renew_properties_response_locked_price_total.py new file mode 100644 index 000000000000..6c7a64282d68 --- /dev/null +++ b/azure-mgmt-reservations/azure/mgmt/reservations/models/renew_properties_response_locked_price_total.py @@ -0,0 +1,33 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class RenewPropertiesResponseLockedPriceTotal(Model): + """Locked currency & amount for new reservation purchase at the time of + renewal. Price is locked 30 days before expiry date time if renew is true. + + :param currency_code: + :type currency_code: str + :param amount: + :type amount: str + """ + + _attribute_map = { + 'currency_code': {'key': 'currencyCode', 'type': 'str'}, + 'amount': {'key': 'amount', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(RenewPropertiesResponseLockedPriceTotal, self).__init__(**kwargs) + self.currency_code = kwargs.get('currency_code', None) + self.amount = kwargs.get('amount', None) diff --git a/azure-mgmt-reservations/azure/mgmt/reservations/models/renew_properties_response_locked_price_total_py3.py b/azure-mgmt-reservations/azure/mgmt/reservations/models/renew_properties_response_locked_price_total_py3.py new file mode 100644 index 000000000000..71136264db2c --- /dev/null +++ b/azure-mgmt-reservations/azure/mgmt/reservations/models/renew_properties_response_locked_price_total_py3.py @@ -0,0 +1,33 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class RenewPropertiesResponseLockedPriceTotal(Model): + """Locked currency & amount for new reservation purchase at the time of + renewal. Price is locked 30 days before expiry date time if renew is true. + + :param currency_code: + :type currency_code: str + :param amount: + :type amount: str + """ + + _attribute_map = { + 'currency_code': {'key': 'currencyCode', 'type': 'str'}, + 'amount': {'key': 'amount', 'type': 'str'}, + } + + def __init__(self, *, currency_code: str=None, amount: str=None, **kwargs) -> None: + super(RenewPropertiesResponseLockedPriceTotal, self).__init__(**kwargs) + self.currency_code = currency_code + self.amount = amount diff --git a/azure-mgmt-reservations/azure/mgmt/reservations/models/renew_properties_response_py3.py b/azure-mgmt-reservations/azure/mgmt/reservations/models/renew_properties_response_py3.py new file mode 100644 index 000000000000..ae519de5d20e --- /dev/null +++ b/azure-mgmt-reservations/azure/mgmt/reservations/models/renew_properties_response_py3.py @@ -0,0 +1,39 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model + + +class RenewPropertiesResponse(Model): + """RenewPropertiesResponse. + + :param purchase_properties: + :type purchase_properties: ~azure.mgmt.reservations.models.PurchaseRequest + :param locked_price_total: Locked currency & amount for new reservation + purchase at the time of renewal. Price is locked 30 days before expiry + date time if renew is true. + :type locked_price_total: + ~azure.mgmt.reservations.models.RenewPropertiesResponseLockedPriceTotal + :param links: Contains prev and next reservation Ids' because of renewal. + :type links: ~azure.mgmt.reservations.models.RenewPropertiesResponseLinks + """ + + _attribute_map = { + 'purchase_properties': {'key': 'purchaseProperties', 'type': 'PurchaseRequest'}, + 'locked_price_total': {'key': 'lockedPriceTotal', 'type': 'RenewPropertiesResponseLockedPriceTotal'}, + 'links': {'key': 'links', 'type': 'RenewPropertiesResponseLinks'}, + } + + def __init__(self, *, purchase_properties=None, locked_price_total=None, links=None, **kwargs) -> None: + super(RenewPropertiesResponse, self).__init__(**kwargs) + self.purchase_properties = purchase_properties + self.locked_price_total = locked_price_total + self.links = links diff --git a/azure-mgmt-reservations/azure/mgmt/reservations/models/reservation_properties.py b/azure-mgmt-reservations/azure/mgmt/reservations/models/reservation_properties.py index b93304409a65..00500072d095 100644 --- a/azure-mgmt-reservations/azure/mgmt/reservations/models/reservation_properties.py +++ b/azure-mgmt-reservations/azure/mgmt/reservations/models/reservation_properties.py @@ -56,6 +56,11 @@ class ReservationProperties(Model): :param merge_properties: :type merge_properties: ~azure.mgmt.reservations.models.ReservationMergeProperties + :param renew: + :type renew: bool + :param renew_properties: + :type renew_properties: + ~azure.mgmt.reservations.models.RenewPropertiesResponse """ _validation = { @@ -77,6 +82,8 @@ class ReservationProperties(Model): 'extended_status_info': {'key': 'extendedStatusInfo', 'type': 'ExtendedStatusInfo'}, 'split_properties': {'key': 'splitProperties', 'type': 'ReservationSplitProperties'}, 'merge_properties': {'key': 'mergeProperties', 'type': 'ReservationMergeProperties'}, + 'renew': {'key': 'renew', 'type': 'bool'}, + 'renew_properties': {'key': 'renewProperties', 'type': 'RenewPropertiesResponse'}, } def __init__(self, **kwargs): @@ -95,3 +102,5 @@ def __init__(self, **kwargs): self.extended_status_info = kwargs.get('extended_status_info', None) self.split_properties = kwargs.get('split_properties', None) self.merge_properties = kwargs.get('merge_properties', None) + self.renew = kwargs.get('renew', None) + self.renew_properties = kwargs.get('renew_properties', None) diff --git a/azure-mgmt-reservations/azure/mgmt/reservations/models/reservation_properties_py3.py b/azure-mgmt-reservations/azure/mgmt/reservations/models/reservation_properties_py3.py index 5e04154ba3af..d1b838ca6ba7 100644 --- a/azure-mgmt-reservations/azure/mgmt/reservations/models/reservation_properties_py3.py +++ b/azure-mgmt-reservations/azure/mgmt/reservations/models/reservation_properties_py3.py @@ -56,6 +56,11 @@ class ReservationProperties(Model): :param merge_properties: :type merge_properties: ~azure.mgmt.reservations.models.ReservationMergeProperties + :param renew: + :type renew: bool + :param renew_properties: + :type renew_properties: + ~azure.mgmt.reservations.models.RenewPropertiesResponse """ _validation = { @@ -77,9 +82,11 @@ class ReservationProperties(Model): 'extended_status_info': {'key': 'extendedStatusInfo', 'type': 'ExtendedStatusInfo'}, 'split_properties': {'key': 'splitProperties', 'type': 'ReservationSplitProperties'}, 'merge_properties': {'key': 'mergeProperties', 'type': 'ReservationMergeProperties'}, + 'renew': {'key': 'renew', 'type': 'bool'}, + 'renew_properties': {'key': 'renewProperties', 'type': 'RenewPropertiesResponse'}, } - def __init__(self, *, reserved_resource_type=None, instance_flexibility=None, display_name: str=None, applied_scopes=None, applied_scope_type=None, quantity: int=None, provisioning_state: str=None, effective_date_time=None, expiry_date=None, sku_description: str=None, extended_status_info=None, split_properties=None, merge_properties=None, **kwargs) -> None: + def __init__(self, *, reserved_resource_type=None, instance_flexibility=None, display_name: str=None, applied_scopes=None, applied_scope_type=None, quantity: int=None, provisioning_state: str=None, effective_date_time=None, expiry_date=None, sku_description: str=None, extended_status_info=None, split_properties=None, merge_properties=None, renew: bool=None, renew_properties=None, **kwargs) -> None: super(ReservationProperties, self).__init__(**kwargs) self.reserved_resource_type = reserved_resource_type self.instance_flexibility = instance_flexibility @@ -95,3 +102,5 @@ def __init__(self, *, reserved_resource_type=None, instance_flexibility=None, di self.extended_status_info = extended_status_info self.split_properties = split_properties self.merge_properties = merge_properties + self.renew = renew + self.renew_properties = renew_properties diff --git a/azure-mgmt-reservations/azure/mgmt/reservations/operations/reservation_operations.py b/azure-mgmt-reservations/azure/mgmt/reservations/operations/reservation_operations.py index c999c29f0908..c60511b5f6ec 100644 --- a/azure-mgmt-reservations/azure/mgmt/reservations/operations/reservation_operations.py +++ b/azure-mgmt-reservations/azure/mgmt/reservations/operations/reservation_operations.py @@ -311,7 +311,7 @@ def internal_paging(next_link=None, raw=False): list.metadata = {'url': '/providers/Microsoft.Capacity/reservationOrders/{reservationOrderId}/reservations'} def get( - self, reservation_id, reservation_order_id, custom_headers=None, raw=False, **operation_config): + self, reservation_id, reservation_order_id, append=None, custom_headers=None, raw=False, **operation_config): """Get `Reservation` details. Get specific `Reservation` details. @@ -320,6 +320,8 @@ def get( :type reservation_id: str :param reservation_order_id: Order Id of the reservation :type reservation_order_id: str + :param append: Supported value of this query is renewProperties + :type append: str :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response @@ -342,6 +344,8 @@ def get( # Construct parameters query_parameters = {} query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + if append is not None: + query_parameters['append'] = self._serialize.query("append", append, 'str') # Construct headers header_parameters = {}