Skip to content

Commit

Permalink
Generated from 9c61d69a19c13e40a8468ea21c909aa677ac4678 (#6502)
Browse files Browse the repository at this point in the history
Task 4957070: ARM swagger update to include term in get reservation response.
  • Loading branch information
AutorestCI authored and Zim Kalinowski committed Sep 9, 2019
1 parent 5dae118 commit 361587b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -761,6 +761,8 @@ class ReservationProperties(Model):
:param renew_properties:
:type renew_properties:
~azure.mgmt.reservations.models.RenewPropertiesResponse
:param term: Possible values include: 'P1Y', 'P3Y'
:type term: str or ~azure.mgmt.reservations.models.ReservationTerm
"""

_validation = {
Expand All @@ -787,6 +789,7 @@ class ReservationProperties(Model):
'renew_source': {'key': 'renewSource', 'type': 'str'},
'renew_destination': {'key': 'renewDestination', 'type': 'str'},
'renew_properties': {'key': 'renewProperties', 'type': 'RenewPropertiesResponse'},
'term': {'key': 'term', 'type': 'str'},
}

def __init__(self, **kwargs):
Expand All @@ -810,6 +813,7 @@ def __init__(self, **kwargs):
self.renew_source = kwargs.get('renew_source', None)
self.renew_destination = kwargs.get('renew_destination', None)
self.renew_properties = kwargs.get('renew_properties', None)
self.term = kwargs.get('term', None)


class ReservationResponse(Model):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -761,6 +761,8 @@ class ReservationProperties(Model):
:param renew_properties:
:type renew_properties:
~azure.mgmt.reservations.models.RenewPropertiesResponse
:param term: Possible values include: 'P1Y', 'P3Y'
:type term: str or ~azure.mgmt.reservations.models.ReservationTerm
"""

_validation = {
Expand All @@ -787,9 +789,10 @@ class ReservationProperties(Model):
'renew_source': {'key': 'renewSource', 'type': 'str'},
'renew_destination': {'key': 'renewDestination', 'type': 'str'},
'renew_properties': {'key': 'renewProperties', 'type': 'RenewPropertiesResponse'},
'term': {'key': 'term', 'type': 'str'},
}

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, billing_scope_id: str=None, renew: bool=None, renew_source: str=None, renew_destination: str=None, renew_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, billing_scope_id: str=None, renew: bool=None, renew_source: str=None, renew_destination: str=None, renew_properties=None, term=None, **kwargs) -> None:
super(ReservationProperties, self).__init__(**kwargs)
self.reserved_resource_type = reserved_resource_type
self.instance_flexibility = instance_flexibility
Expand All @@ -810,6 +813,7 @@ def __init__(self, *, reserved_resource_type=None, instance_flexibility=None, di
self.renew_source = renew_source
self.renew_destination = renew_destination
self.renew_properties = renew_properties
self.term = term


class ReservationResponse(Model):
Expand Down

0 comments on commit 361587b

Please sign in to comment.