@@ -54,13 +54,21 @@ class Server(TrackedResource):
54
54
:type earliest_restore_date: datetime
55
55
:param storage_profile: Storage profile of a server.
56
56
:type storage_profile: ~azure.mgmt.rdbms.mariadb.models.StorageProfile
57
+ :param replication_role: The replication role of the server.
58
+ :type replication_role: str
59
+ :param master_server_id: The master server id of a replica server.
60
+ :type master_server_id: str
61
+ :param replica_capacity: The maximum number of replicas that a master
62
+ server can have.
63
+ :type replica_capacity: int
57
64
"""
58
65
59
66
_validation = {
60
67
'id' : {'readonly' : True },
61
68
'name' : {'readonly' : True },
62
69
'type' : {'readonly' : True },
63
70
'location' : {'required' : True },
71
+ 'replica_capacity' : {'minimum' : 0 },
64
72
}
65
73
66
74
_attribute_map = {
@@ -77,9 +85,12 @@ class Server(TrackedResource):
77
85
'fully_qualified_domain_name' : {'key' : 'properties.fullyQualifiedDomainName' , 'type' : 'str' },
78
86
'earliest_restore_date' : {'key' : 'properties.earliestRestoreDate' , 'type' : 'iso-8601' },
79
87
'storage_profile' : {'key' : 'properties.storageProfile' , 'type' : 'StorageProfile' },
88
+ 'replication_role' : {'key' : 'properties.replicationRole' , 'type' : 'str' },
89
+ 'master_server_id' : {'key' : 'properties.masterServerId' , 'type' : 'str' },
90
+ 'replica_capacity' : {'key' : 'properties.replicaCapacity' , 'type' : 'int' },
80
91
}
81
92
82
- def __init__ (self , * , location : str , tags = None , sku = None , administrator_login : str = None , version = None , ssl_enforcement = None , user_visible_state = None , fully_qualified_domain_name : str = None , earliest_restore_date = None , storage_profile = None , ** kwargs ) -> None :
93
+ def __init__ (self , * , location : str , tags = None , sku = None , administrator_login : str = None , version = None , ssl_enforcement = None , user_visible_state = None , fully_qualified_domain_name : str = None , earliest_restore_date = None , storage_profile = None , replication_role : str = None , master_server_id : str = None , replica_capacity : int = None , ** kwargs ) -> None :
83
94
super (Server , self ).__init__ (location = location , tags = tags , ** kwargs )
84
95
self .sku = sku
85
96
self .administrator_login = administrator_login
@@ -89,3 +100,6 @@ def __init__(self, *, location: str, tags=None, sku=None, administrator_login: s
89
100
self .fully_qualified_domain_name = fully_qualified_domain_name
90
101
self .earliest_restore_date = earliest_restore_date
91
102
self .storage_profile = storage_profile
103
+ self .replication_role = replication_role
104
+ self .master_server_id = master_server_id
105
+ self .replica_capacity = replica_capacity
0 commit comments