Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Generated from 469707fc77ddb1e4989140acd566312a7f170318 (#3807)
Don't make ResourceReference id readonly, it's causing a bug in the SDK where an Logic Apps with integration accounts can't be saved
  • Loading branch information
AutorestCI authored Nov 16, 2018
commit f2a4c5ee08c3351431592be46265eadc52d33e71
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,15 @@ class KeyVaultReference(ResourceReference):
Variables are only populated by the server, and will be ignored when
sending a request.

:ivar id: The resource id.
:vartype id: str
:param id: The resource id.
:type id: str
:ivar name: Gets the resource name.
:vartype name: str
:ivar type: Gets the resource type.
:vartype type: str
"""

_validation = {
'id': {'readonly': True},
'name': {'readonly': True},
'type': {'readonly': True},
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,15 @@ class KeyVaultReference(ResourceReference):
Variables are only populated by the server, and will be ignored when
sending a request.

:ivar id: The resource id.
:vartype id: str
:param id: The resource id.
:type id: str
:ivar name: Gets the resource name.
:vartype name: str
:ivar type: Gets the resource type.
:vartype type: str
"""

_validation = {
'id': {'readonly': True},
'name': {'readonly': True},
'type': {'readonly': True},
}
Expand All @@ -38,5 +37,5 @@ class KeyVaultReference(ResourceReference):
'type': {'key': 'type', 'type': 'str'},
}

def __init__(self, **kwargs) -> None:
super(KeyVaultReference, self).__init__(**kwargs)
def __init__(self, *, id: str=None, **kwargs) -> None:
super(KeyVaultReference, self).__init__(id=id, **kwargs)
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,15 @@ class ResourceReference(Model):
Variables are only populated by the server, and will be ignored when
sending a request.

:ivar id: The resource id.
:vartype id: str
:param id: The resource id.
:type id: str
:ivar name: Gets the resource name.
:vartype name: str
:ivar type: Gets the resource type.
:vartype type: str
"""

_validation = {
'id': {'readonly': True},
'name': {'readonly': True},
'type': {'readonly': True},
}
Expand All @@ -40,6 +39,6 @@ class ResourceReference(Model):

def __init__(self, **kwargs):
super(ResourceReference, self).__init__(**kwargs)
self.id = None
self.id = kwargs.get('id', None)
self.name = None
self.type = None
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,15 @@ class ResourceReference(Model):
Variables are only populated by the server, and will be ignored when
sending a request.

:ivar id: The resource id.
:vartype id: str
:param id: The resource id.
:type id: str
:ivar name: Gets the resource name.
:vartype name: str
:ivar type: Gets the resource type.
:vartype type: str
"""

_validation = {
'id': {'readonly': True},
'name': {'readonly': True},
'type': {'readonly': True},
}
Expand All @@ -38,8 +37,8 @@ class ResourceReference(Model):
'type': {'key': 'type', 'type': 'str'},
}

def __init__(self, **kwargs) -> None:
def __init__(self, *, id: str=None, **kwargs) -> None:
super(ResourceReference, self).__init__(**kwargs)
self.id = None
self.id = id
self.name = None
self.type = None