Skip to content

Commit 3f10acd

Browse files
msyycSDK Automation
andauthored
[T1] sql 2020 10 29 (Azure#14822)
* Generated from 18068a88771f5df534aacf246416dcab4e1ff3d0 * test,version, changelog Co-authored-by: SDK Automation <sdkautomation@microsoft.com>
1 parent 05ce688 commit 3f10acd

File tree

10 files changed

+602
-531
lines changed

10 files changed

+602
-531
lines changed

sdk/sql/azure-mgmt-sql/CHANGELOG.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,24 @@
11
# Release History
2+
3+
## 0.23.0 (2020-10-29)
4+
5+
**Features**
6+
7+
- Model Database has a new parameter secondary_type
8+
- Model Database has a new parameter maintenance_configuration_id
9+
- Model Database has a new parameter high_availability_replica_count
10+
- Model DatabaseUpdate has a new parameter secondary_type
11+
- Model DatabaseUpdate has a new parameter maintenance_configuration_id
12+
- Model DatabaseUpdate has a new parameter high_availability_replica_count
13+
- Model ElasticPoolUpdate has a new parameter maintenance_configuration_id
14+
- Model ElasticPool has a new parameter maintenance_configuration_id
15+
16+
**Breaking changes**
17+
18+
- Model Database no longer has parameter read_replica_count
19+
- Model DatabaseUpdate no longer has parameter read_replica_count
20+
- Removed operation DatabasesOperations.list_inaccessible_by_server
21+
222
## 0.22.0 (2020-10-09)
323

424
**Features**

sdk/sql/azure-mgmt-sql/azure/mgmt/sql/models/__init__.py

Lines changed: 22 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -517,22 +517,13 @@
517517
RestorePointType,
518518
SensitivityLabelRank,
519519
ManagementOperationState,
520-
ElasticPoolState,
521-
ElasticPoolLicenseType,
522520
VulnerabilityAssessmentScanTriggerType,
523521
VulnerabilityAssessmentScanState,
524522
InstanceFailoverGroupReplicationRole,
525523
InstancePoolLicenseType,
526524
PrivateLinkServiceConnectionStateStatus,
527525
PrivateLinkServiceConnectionStateActionsRequire,
528526
PrivateEndpointProvisioningState,
529-
CreateMode,
530-
SampleName,
531-
DatabaseStatus,
532-
CatalogCollationType,
533-
DatabaseLicenseType,
534-
DatabaseReadScale,
535-
StorageAccountType,
536527
IdentityType,
537528
ServerPublicNetworkAccess,
538529
CheckNameAvailabilityReason,
@@ -547,22 +538,32 @@
547538
SyncDirection,
548539
SyncMemberState,
549540
ManagedDatabaseStatus,
541+
CatalogCollationType,
550542
ManagedDatabaseCreateMode,
551543
ManagedServerCreateMode,
552544
ManagedInstanceLicenseType,
553545
ManagedInstanceProxyOverride,
546+
StorageAccountType,
554547
StorageKeyType,
548+
CreateMode,
549+
SampleName,
550+
DatabaseStatus,
551+
DatabaseLicenseType,
552+
DatabaseReadScale,
553+
SecondaryType,
554+
ElasticPoolState,
555+
ElasticPoolLicenseType,
555556
LongTermRetentionDatabaseState,
556557
VulnerabilityAssessmentPolicyBaselineName,
557558
SensitivityLabelSource,
558-
ReplicaType,
559559
CapabilityGroup,
560560
DatabaseState1,
561561
DatabaseState2,
562562
DatabaseState3,
563563
DatabaseState4,
564564
DatabaseState5,
565565
DatabaseState6,
566+
ReplicaType,
566567
)
567568

568569
__all__ = [
@@ -883,22 +884,13 @@
883884
'RestorePointType',
884885
'SensitivityLabelRank',
885886
'ManagementOperationState',
886-
'ElasticPoolState',
887-
'ElasticPoolLicenseType',
888887
'VulnerabilityAssessmentScanTriggerType',
889888
'VulnerabilityAssessmentScanState',
890889
'InstanceFailoverGroupReplicationRole',
891890
'InstancePoolLicenseType',
892891
'PrivateLinkServiceConnectionStateStatus',
893892
'PrivateLinkServiceConnectionStateActionsRequire',
894893
'PrivateEndpointProvisioningState',
895-
'CreateMode',
896-
'SampleName',
897-
'DatabaseStatus',
898-
'CatalogCollationType',
899-
'DatabaseLicenseType',
900-
'DatabaseReadScale',
901-
'StorageAccountType',
902894
'IdentityType',
903895
'ServerPublicNetworkAccess',
904896
'CheckNameAvailabilityReason',
@@ -913,20 +905,30 @@
913905
'SyncDirection',
914906
'SyncMemberState',
915907
'ManagedDatabaseStatus',
908+
'CatalogCollationType',
916909
'ManagedDatabaseCreateMode',
917910
'ManagedServerCreateMode',
918911
'ManagedInstanceLicenseType',
919912
'ManagedInstanceProxyOverride',
913+
'StorageAccountType',
920914
'StorageKeyType',
915+
'CreateMode',
916+
'SampleName',
917+
'DatabaseStatus',
918+
'DatabaseLicenseType',
919+
'DatabaseReadScale',
920+
'SecondaryType',
921+
'ElasticPoolState',
922+
'ElasticPoolLicenseType',
921923
'LongTermRetentionDatabaseState',
922924
'VulnerabilityAssessmentPolicyBaselineName',
923925
'SensitivityLabelSource',
924-
'ReplicaType',
925926
'CapabilityGroup',
926927
'DatabaseState1',
927928
'DatabaseState2',
928929
'DatabaseState3',
929930
'DatabaseState4',
930931
'DatabaseState5',
931932
'DatabaseState6',
933+
'ReplicaType',
932934
]

sdk/sql/azure-mgmt-sql/azure/mgmt/sql/models/_models.py

Lines changed: 50 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -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

748761
class 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

19271959
class 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

Comments
 (0)