Skip to content
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
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