Skip to content

Commit

Permalink
[AutoPR cosmos-db/resource-manager] Fixing incorrectly formatted Cosm…
Browse files Browse the repository at this point in the history
…os DB list keys response (#6290)

* Generated from f8bd523610424b4f132e310df45ccbec4e828e0c

fixing Cosmos account keys response

* Packaging update of azure-mgmt-cosmosdb

* Generated from f8bd523610424b4f132e310df45ccbec4e828e0c

fixing Cosmos account keys response
  • Loading branch information
AutorestCI authored and Zim Kalinowski committed Aug 15, 2019
1 parent ed764f7 commit 64ec68c
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 28 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,46 +9,44 @@
# regenerated.
# --------------------------------------------------------------------------

from msrest.serialization import Model
from .database_account_list_read_only_keys_result import DatabaseAccountListReadOnlyKeysResult


class DatabaseAccountListKeysResult(Model):
class DatabaseAccountListKeysResult(DatabaseAccountListReadOnlyKeysResult):
"""The access keys for the given database account.
Variables are only populated by the server, and will be ignored when
sending a request.
:ivar primary_master_key: Base 64 encoded value of the primary read-write
key.
:vartype primary_master_key: str
:ivar secondary_master_key: Base 64 encoded value of the secondary
read-write key.
:vartype secondary_master_key: str
:ivar primary_readonly_master_key: Base 64 encoded value of the primary
read-only key.
:vartype primary_readonly_master_key: str
:ivar secondary_readonly_master_key: Base 64 encoded value of the
secondary read-only key.
:vartype secondary_readonly_master_key: str
:ivar primary_master_key: Base 64 encoded value of the primary read-write
key.
:vartype primary_master_key: str
:ivar secondary_master_key: Base 64 encoded value of the secondary
read-write key.
:vartype secondary_master_key: str
"""

_validation = {
'primary_master_key': {'readonly': True},
'secondary_master_key': {'readonly': True},
'primary_readonly_master_key': {'readonly': True},
'secondary_readonly_master_key': {'readonly': True},
'primary_master_key': {'readonly': True},
'secondary_master_key': {'readonly': True},
}

_attribute_map = {
'primary_readonly_master_key': {'key': 'primaryReadonlyMasterKey', 'type': 'str'},
'secondary_readonly_master_key': {'key': 'secondaryReadonlyMasterKey', 'type': 'str'},
'primary_master_key': {'key': 'primaryMasterKey', 'type': 'str'},
'secondary_master_key': {'key': 'secondaryMasterKey', 'type': 'str'},
'primary_readonly_master_key': {'key': 'properties.primaryReadonlyMasterKey', 'type': 'str'},
'secondary_readonly_master_key': {'key': 'properties.secondaryReadonlyMasterKey', 'type': 'str'},
}

def __init__(self, **kwargs):
super(DatabaseAccountListKeysResult, self).__init__(**kwargs)
self.primary_master_key = None
self.secondary_master_key = None
self.primary_readonly_master_key = None
self.secondary_readonly_master_key = None
Original file line number Diff line number Diff line change
Expand Up @@ -9,46 +9,44 @@
# regenerated.
# --------------------------------------------------------------------------

from msrest.serialization import Model
from .database_account_list_read_only_keys_result_py3 import DatabaseAccountListReadOnlyKeysResult


class DatabaseAccountListKeysResult(Model):
class DatabaseAccountListKeysResult(DatabaseAccountListReadOnlyKeysResult):
"""The access keys for the given database account.
Variables are only populated by the server, and will be ignored when
sending a request.
:ivar primary_master_key: Base 64 encoded value of the primary read-write
key.
:vartype primary_master_key: str
:ivar secondary_master_key: Base 64 encoded value of the secondary
read-write key.
:vartype secondary_master_key: str
:ivar primary_readonly_master_key: Base 64 encoded value of the primary
read-only key.
:vartype primary_readonly_master_key: str
:ivar secondary_readonly_master_key: Base 64 encoded value of the
secondary read-only key.
:vartype secondary_readonly_master_key: str
:ivar primary_master_key: Base 64 encoded value of the primary read-write
key.
:vartype primary_master_key: str
:ivar secondary_master_key: Base 64 encoded value of the secondary
read-write key.
:vartype secondary_master_key: str
"""

_validation = {
'primary_master_key': {'readonly': True},
'secondary_master_key': {'readonly': True},
'primary_readonly_master_key': {'readonly': True},
'secondary_readonly_master_key': {'readonly': True},
'primary_master_key': {'readonly': True},
'secondary_master_key': {'readonly': True},
}

_attribute_map = {
'primary_readonly_master_key': {'key': 'primaryReadonlyMasterKey', 'type': 'str'},
'secondary_readonly_master_key': {'key': 'secondaryReadonlyMasterKey', 'type': 'str'},
'primary_master_key': {'key': 'primaryMasterKey', 'type': 'str'},
'secondary_master_key': {'key': 'secondaryMasterKey', 'type': 'str'},
'primary_readonly_master_key': {'key': 'properties.primaryReadonlyMasterKey', 'type': 'str'},
'secondary_readonly_master_key': {'key': 'properties.secondaryReadonlyMasterKey', 'type': 'str'},
}

def __init__(self, **kwargs) -> None:
super(DatabaseAccountListKeysResult, self).__init__(**kwargs)
self.primary_master_key = None
self.secondary_master_key = None
self.primary_readonly_master_key = None
self.secondary_readonly_master_key = None

0 comments on commit 64ec68c

Please sign in to comment.