Skip to content

Commit

Permalink
Generated from b7aef768dbdc3340c95a027ff0f3b5d927752108 (#4732)
Browse files Browse the repository at this point in the history
added missed parameters in Update Server API to stop PG replication
  • Loading branch information
AutorestCI committed Apr 1, 2019
1 parent e03ca73 commit 3f3d7ce
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 @@ -29,6 +29,8 @@ class ServerUpdateParameters(Model):
server. Possible values include: 'Enabled', 'Disabled'
:type ssl_enforcement: str or
~azure.mgmt.rdbms.postgresql.models.SslEnforcementEnum
:param replication_role: The replication role of the server.
:type replication_role: str
:param tags: Application-specific metadata in the form of key-value pairs.
:type tags: dict[str, str]
"""
Expand All @@ -39,6 +41,7 @@ class ServerUpdateParameters(Model):
'administrator_login_password': {'key': 'properties.administratorLoginPassword', 'type': 'str'},
'version': {'key': 'properties.version', 'type': 'str'},
'ssl_enforcement': {'key': 'properties.sslEnforcement', 'type': 'SslEnforcementEnum'},
'replication_role': {'key': 'properties.replicationRole', 'type': 'str'},
'tags': {'key': 'tags', 'type': '{str}'},
}

Expand All @@ -49,4 +52,5 @@ def __init__(self, **kwargs):
self.administrator_login_password = kwargs.get('administrator_login_password', None)
self.version = kwargs.get('version', None)
self.ssl_enforcement = kwargs.get('ssl_enforcement', None)
self.replication_role = kwargs.get('replication_role', None)
self.tags = kwargs.get('tags', None)
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ class ServerUpdateParameters(Model):
server. Possible values include: 'Enabled', 'Disabled'
:type ssl_enforcement: str or
~azure.mgmt.rdbms.postgresql.models.SslEnforcementEnum
:param replication_role: The replication role of the server.
:type replication_role: str
:param tags: Application-specific metadata in the form of key-value pairs.
:type tags: dict[str, str]
"""
Expand All @@ -39,14 +41,16 @@ class ServerUpdateParameters(Model):
'administrator_login_password': {'key': 'properties.administratorLoginPassword', 'type': 'str'},
'version': {'key': 'properties.version', 'type': 'str'},
'ssl_enforcement': {'key': 'properties.sslEnforcement', 'type': 'SslEnforcementEnum'},
'replication_role': {'key': 'properties.replicationRole', 'type': 'str'},
'tags': {'key': 'tags', 'type': '{str}'},
}

def __init__(self, *, sku=None, storage_profile=None, administrator_login_password: str=None, version=None, ssl_enforcement=None, tags=None, **kwargs) -> None:
def __init__(self, *, sku=None, storage_profile=None, administrator_login_password: str=None, version=None, ssl_enforcement=None, replication_role: str=None, tags=None, **kwargs) -> None:
super(ServerUpdateParameters, self).__init__(**kwargs)
self.sku = sku
self.storage_profile = storage_profile
self.administrator_login_password = administrator_login_password
self.version = version
self.ssl_enforcement = ssl_enforcement
self.replication_role = replication_role
self.tags = tags

0 comments on commit 3f3d7ce

Please sign in to comment.