@@ -619,16 +619,21 @@ class Database(TrackedResource):
619619 may be routed to a readonly secondary replica in the same region. Possible
620620 values include: 'Enabled', 'Disabled'
621621 :type read_scale: str or ~azure.mgmt.sql.models.DatabaseReadScale
622- :param read_replica_count: The number of readonly secondary replicas
623- associated with the database.
624- :type read_replica_count: int
622+ :param high_availability_replica_count: The number of secondary replicas
623+ associated with the database that are used to provide high availability.
624+ :type high_availability_replica_count: int
625+ :param secondary_type: The secondary type of the database if it is a
626+ secondary. Valid values are Geo and Named. Possible values include:
627+ 'Geo', 'Named'
628+ :type secondary_type: str or ~azure.mgmt.sql.models.SecondaryType
625629 :ivar current_sku: The name and tier of the SKU.
626630 :vartype current_sku: ~azure.mgmt.sql.models.Sku
627631 :param auto_pause_delay: Time in minutes after which database is
628632 automatically paused. A value of -1 means that automatic pause is disabled
629633 :type auto_pause_delay: int
630634 :param storage_account_type: The storage account type used to store
631- backups for this database. Possible values include: 'GRS', 'LRS', 'ZRS'
635+ backups for this database. Currently the only supported option is GRS
636+ (GeoRedundantStorage). Possible values include: 'GRS', 'LRS', 'ZRS'
632637 :type storage_account_type: str or
633638 ~azure.mgmt.sql.models.StorageAccountType
634639 :param min_capacity: Minimal capacity that database will always have
@@ -640,6 +645,10 @@ class Database(TrackedResource):
640645 :ivar resumed_date: The date when database was resumed by user action or
641646 database login (ISO8601 format). Null if the database is paused.
642647 :vartype resumed_date: datetime
648+ :param maintenance_configuration_id: Maintenance configuration id assigned
649+ to the database. This configuration defines the period when the
650+ maintenance updates will be rolled out.
651+ :type maintenance_configuration_id: str
643652 """
644653
645654 _validation = {
@@ -697,13 +706,15 @@ class Database(TrackedResource):
697706 'max_log_size_bytes' : {'key' : 'properties.maxLogSizeBytes' , 'type' : 'long' },
698707 'earliest_restore_date' : {'key' : 'properties.earliestRestoreDate' , 'type' : 'iso-8601' },
699708 'read_scale' : {'key' : 'properties.readScale' , 'type' : 'str' },
700- 'read_replica_count' : {'key' : 'properties.readReplicaCount' , 'type' : 'int' },
709+ 'high_availability_replica_count' : {'key' : 'properties.highAvailabilityReplicaCount' , 'type' : 'int' },
710+ 'secondary_type' : {'key' : 'properties.secondaryType' , 'type' : 'str' },
701711 'current_sku' : {'key' : 'properties.currentSku' , 'type' : 'Sku' },
702712 'auto_pause_delay' : {'key' : 'properties.autoPauseDelay' , 'type' : 'int' },
703713 'storage_account_type' : {'key' : 'properties.storageAccountType' , 'type' : 'str' },
704714 'min_capacity' : {'key' : 'properties.minCapacity' , 'type' : 'float' },
705715 'paused_date' : {'key' : 'properties.pausedDate' , 'type' : 'iso-8601' },
706716 'resumed_date' : {'key' : 'properties.resumedDate' , 'type' : 'iso-8601' },
717+ 'maintenance_configuration_id' : {'key' : 'properties.maintenanceConfigurationId' , 'type' : 'str' },
707718 }
708719
709720 def __init__ (self , ** kwargs ):
@@ -736,13 +747,15 @@ def __init__(self, **kwargs):
736747 self .max_log_size_bytes = None
737748 self .earliest_restore_date = None
738749 self .read_scale = kwargs .get ('read_scale' , None )
739- self .read_replica_count = kwargs .get ('read_replica_count' , None )
750+ self .high_availability_replica_count = kwargs .get ('high_availability_replica_count' , None )
751+ self .secondary_type = kwargs .get ('secondary_type' , None )
740752 self .current_sku = None
741753 self .auto_pause_delay = kwargs .get ('auto_pause_delay' , None )
742754 self .storage_account_type = kwargs .get ('storage_account_type' , None )
743755 self .min_capacity = kwargs .get ('min_capacity' , None )
744756 self .paused_date = None
745757 self .resumed_date = None
758+ self .maintenance_configuration_id = kwargs .get ('maintenance_configuration_id' , None )
746759
747760
748761class DatabaseAutomaticTuning (ProxyResource ):
@@ -1270,16 +1283,21 @@ class DatabaseUpdate(Model):
12701283 may be routed to a readonly secondary replica in the same region. Possible
12711284 values include: 'Enabled', 'Disabled'
12721285 :type read_scale: str or ~azure.mgmt.sql.models.DatabaseReadScale
1273- :param read_replica_count: The number of readonly secondary replicas
1274- associated with the database.
1275- :type read_replica_count: int
1286+ :param high_availability_replica_count: The number of secondary replicas
1287+ associated with the database that are used to provide high availability.
1288+ :type high_availability_replica_count: int
1289+ :param secondary_type: The secondary type of the database if it is a
1290+ secondary. Valid values are Geo and Named. Possible values include:
1291+ 'Geo', 'Named'
1292+ :type secondary_type: str or ~azure.mgmt.sql.models.SecondaryType
12761293 :ivar current_sku: The name and tier of the SKU.
12771294 :vartype current_sku: ~azure.mgmt.sql.models.Sku
12781295 :param auto_pause_delay: Time in minutes after which database is
12791296 automatically paused. A value of -1 means that automatic pause is disabled
12801297 :type auto_pause_delay: int
12811298 :param storage_account_type: The storage account type used to store
1282- backups for this database. Possible values include: 'GRS', 'LRS', 'ZRS'
1299+ backups for this database. Currently the only supported option is GRS
1300+ (GeoRedundantStorage). Possible values include: 'GRS', 'LRS', 'ZRS'
12831301 :type storage_account_type: str or
12841302 ~azure.mgmt.sql.models.StorageAccountType
12851303 :param min_capacity: Minimal capacity that database will always have
@@ -1291,6 +1309,10 @@ class DatabaseUpdate(Model):
12911309 :ivar resumed_date: The date when database was resumed by user action or
12921310 database login (ISO8601 format). Null if the database is paused.
12931311 :vartype resumed_date: datetime
1312+ :param maintenance_configuration_id: Maintenance configuration id assigned
1313+ to the database. This configuration defines the period when the
1314+ maintenance updates will be rolled out.
1315+ :type maintenance_configuration_id: str
12941316 :param tags: Resource tags.
12951317 :type tags: dict[str, str]
12961318 """
@@ -1337,13 +1359,15 @@ class DatabaseUpdate(Model):
13371359 'max_log_size_bytes' : {'key' : 'properties.maxLogSizeBytes' , 'type' : 'long' },
13381360 'earliest_restore_date' : {'key' : 'properties.earliestRestoreDate' , 'type' : 'iso-8601' },
13391361 'read_scale' : {'key' : 'properties.readScale' , 'type' : 'str' },
1340- 'read_replica_count' : {'key' : 'properties.readReplicaCount' , 'type' : 'int' },
1362+ 'high_availability_replica_count' : {'key' : 'properties.highAvailabilityReplicaCount' , 'type' : 'int' },
1363+ 'secondary_type' : {'key' : 'properties.secondaryType' , 'type' : 'str' },
13411364 'current_sku' : {'key' : 'properties.currentSku' , 'type' : 'Sku' },
13421365 'auto_pause_delay' : {'key' : 'properties.autoPauseDelay' , 'type' : 'int' },
13431366 'storage_account_type' : {'key' : 'properties.storageAccountType' , 'type' : 'str' },
13441367 'min_capacity' : {'key' : 'properties.minCapacity' , 'type' : 'float' },
13451368 'paused_date' : {'key' : 'properties.pausedDate' , 'type' : 'iso-8601' },
13461369 'resumed_date' : {'key' : 'properties.resumedDate' , 'type' : 'iso-8601' },
1370+ 'maintenance_configuration_id' : {'key' : 'properties.maintenanceConfigurationId' , 'type' : 'str' },
13471371 'tags' : {'key' : 'tags' , 'type' : '{str}' },
13481372 }
13491373
@@ -1375,13 +1399,15 @@ def __init__(self, **kwargs):
13751399 self .max_log_size_bytes = None
13761400 self .earliest_restore_date = None
13771401 self .read_scale = kwargs .get ('read_scale' , None )
1378- self .read_replica_count = kwargs .get ('read_replica_count' , None )
1402+ self .high_availability_replica_count = kwargs .get ('high_availability_replica_count' , None )
1403+ self .secondary_type = kwargs .get ('secondary_type' , None )
13791404 self .current_sku = None
13801405 self .auto_pause_delay = kwargs .get ('auto_pause_delay' , None )
13811406 self .storage_account_type = kwargs .get ('storage_account_type' , None )
13821407 self .min_capacity = kwargs .get ('min_capacity' , None )
13831408 self .paused_date = None
13841409 self .resumed_date = None
1410+ self .maintenance_configuration_id = kwargs .get ('maintenance_configuration_id' , None )
13851411 self .tags = kwargs .get ('tags' , None )
13861412
13871413
@@ -1884,6 +1910,10 @@ class ElasticPool(TrackedResource):
18841910 :param license_type: The license type to apply for this elastic pool.
18851911 Possible values include: 'LicenseIncluded', 'BasePrice'
18861912 :type license_type: str or ~azure.mgmt.sql.models.ElasticPoolLicenseType
1913+ :param maintenance_configuration_id: Maintenance configuration id assigned
1914+ to the elastic pool. This configuration defines the period when the
1915+ maintenance updates will be rolled out.
1916+ :type maintenance_configuration_id: str
18871917 """
18881918
18891919 _validation = {
@@ -1910,6 +1940,7 @@ class ElasticPool(TrackedResource):
19101940 'per_database_settings' : {'key' : 'properties.perDatabaseSettings' , 'type' : 'ElasticPoolPerDatabaseSettings' },
19111941 'zone_redundant' : {'key' : 'properties.zoneRedundant' , 'type' : 'bool' },
19121942 'license_type' : {'key' : 'properties.licenseType' , 'type' : 'str' },
1943+ 'maintenance_configuration_id' : {'key' : 'properties.maintenanceConfigurationId' , 'type' : 'str' },
19131944 }
19141945
19151946 def __init__ (self , ** kwargs ):
@@ -1922,6 +1953,7 @@ def __init__(self, **kwargs):
19221953 self .per_database_settings = kwargs .get ('per_database_settings' , None )
19231954 self .zone_redundant = kwargs .get ('zone_redundant' , None )
19241955 self .license_type = kwargs .get ('license_type' , None )
1956+ self .maintenance_configuration_id = kwargs .get ('maintenance_configuration_id' , None )
19251957
19261958
19271959class ElasticPoolActivity (ProxyResource ):
@@ -2530,6 +2562,10 @@ class ElasticPoolUpdate(Model):
25302562 :param license_type: The license type to apply for this elastic pool.
25312563 Possible values include: 'LicenseIncluded', 'BasePrice'
25322564 :type license_type: str or ~azure.mgmt.sql.models.ElasticPoolLicenseType
2565+ :param maintenance_configuration_id: Maintenance configuration id assigned
2566+ to the elastic pool. This configuration defines the period when the
2567+ maintenance updates will be rolled out.
2568+ :type maintenance_configuration_id: str
25332569 :param tags: Resource tags.
25342570 :type tags: dict[str, str]
25352571 """
@@ -2540,6 +2576,7 @@ class ElasticPoolUpdate(Model):
25402576 'per_database_settings' : {'key' : 'properties.perDatabaseSettings' , 'type' : 'ElasticPoolPerDatabaseSettings' },
25412577 'zone_redundant' : {'key' : 'properties.zoneRedundant' , 'type' : 'bool' },
25422578 'license_type' : {'key' : 'properties.licenseType' , 'type' : 'str' },
2579+ 'maintenance_configuration_id' : {'key' : 'properties.maintenanceConfigurationId' , 'type' : 'str' },
25432580 'tags' : {'key' : 'tags' , 'type' : '{str}' },
25442581 }
25452582
@@ -2550,6 +2587,7 @@ def __init__(self, **kwargs):
25502587 self .per_database_settings = kwargs .get ('per_database_settings' , None )
25512588 self .zone_redundant = kwargs .get ('zone_redundant' , None )
25522589 self .license_type = kwargs .get ('license_type' , None )
2590+ self .maintenance_configuration_id = kwargs .get ('maintenance_configuration_id' , None )
25532591 self .tags = kwargs .get ('tags' , None )
25542592
25552593
0 commit comments