Skip to content

Commit

Permalink
[T1] sql 2020 10 29 (#14822)
Browse files Browse the repository at this point in the history
* Generated from 18068a88771f5df534aacf246416dcab4e1ff3d0

* test,version, changelog

Co-authored-by: SDK Automation <[email protected]>
  • Loading branch information
msyyc and SDK Automation authored Oct 29, 2020
1 parent 05ce688 commit 3f10acd
Show file tree
Hide file tree
Showing 10 changed files with 602 additions and 531 deletions.
20 changes: 20 additions & 0 deletions sdk/sql/azure-mgmt-sql/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,24 @@
# Release History

## 0.23.0 (2020-10-29)

**Features**

- Model Database has a new parameter secondary_type
- Model Database has a new parameter maintenance_configuration_id
- Model Database has a new parameter high_availability_replica_count
- Model DatabaseUpdate has a new parameter secondary_type
- Model DatabaseUpdate has a new parameter maintenance_configuration_id
- Model DatabaseUpdate has a new parameter high_availability_replica_count
- Model ElasticPoolUpdate has a new parameter maintenance_configuration_id
- Model ElasticPool has a new parameter maintenance_configuration_id

**Breaking changes**

- Model Database no longer has parameter read_replica_count
- Model DatabaseUpdate no longer has parameter read_replica_count
- Removed operation DatabasesOperations.list_inaccessible_by_server

## 0.22.0 (2020-10-09)

**Features**
Expand Down
42 changes: 22 additions & 20 deletions sdk/sql/azure-mgmt-sql/azure/mgmt/sql/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -517,22 +517,13 @@
RestorePointType,
SensitivityLabelRank,
ManagementOperationState,
ElasticPoolState,
ElasticPoolLicenseType,
VulnerabilityAssessmentScanTriggerType,
VulnerabilityAssessmentScanState,
InstanceFailoverGroupReplicationRole,
InstancePoolLicenseType,
PrivateLinkServiceConnectionStateStatus,
PrivateLinkServiceConnectionStateActionsRequire,
PrivateEndpointProvisioningState,
CreateMode,
SampleName,
DatabaseStatus,
CatalogCollationType,
DatabaseLicenseType,
DatabaseReadScale,
StorageAccountType,
IdentityType,
ServerPublicNetworkAccess,
CheckNameAvailabilityReason,
Expand All @@ -547,22 +538,32 @@
SyncDirection,
SyncMemberState,
ManagedDatabaseStatus,
CatalogCollationType,
ManagedDatabaseCreateMode,
ManagedServerCreateMode,
ManagedInstanceLicenseType,
ManagedInstanceProxyOverride,
StorageAccountType,
StorageKeyType,
CreateMode,
SampleName,
DatabaseStatus,
DatabaseLicenseType,
DatabaseReadScale,
SecondaryType,
ElasticPoolState,
ElasticPoolLicenseType,
LongTermRetentionDatabaseState,
VulnerabilityAssessmentPolicyBaselineName,
SensitivityLabelSource,
ReplicaType,
CapabilityGroup,
DatabaseState1,
DatabaseState2,
DatabaseState3,
DatabaseState4,
DatabaseState5,
DatabaseState6,
ReplicaType,
)

__all__ = [
Expand Down Expand Up @@ -883,22 +884,13 @@
'RestorePointType',
'SensitivityLabelRank',
'ManagementOperationState',
'ElasticPoolState',
'ElasticPoolLicenseType',
'VulnerabilityAssessmentScanTriggerType',
'VulnerabilityAssessmentScanState',
'InstanceFailoverGroupReplicationRole',
'InstancePoolLicenseType',
'PrivateLinkServiceConnectionStateStatus',
'PrivateLinkServiceConnectionStateActionsRequire',
'PrivateEndpointProvisioningState',
'CreateMode',
'SampleName',
'DatabaseStatus',
'CatalogCollationType',
'DatabaseLicenseType',
'DatabaseReadScale',
'StorageAccountType',
'IdentityType',
'ServerPublicNetworkAccess',
'CheckNameAvailabilityReason',
Expand All @@ -913,20 +905,30 @@
'SyncDirection',
'SyncMemberState',
'ManagedDatabaseStatus',
'CatalogCollationType',
'ManagedDatabaseCreateMode',
'ManagedServerCreateMode',
'ManagedInstanceLicenseType',
'ManagedInstanceProxyOverride',
'StorageAccountType',
'StorageKeyType',
'CreateMode',
'SampleName',
'DatabaseStatus',
'DatabaseLicenseType',
'DatabaseReadScale',
'SecondaryType',
'ElasticPoolState',
'ElasticPoolLicenseType',
'LongTermRetentionDatabaseState',
'VulnerabilityAssessmentPolicyBaselineName',
'SensitivityLabelSource',
'ReplicaType',
'CapabilityGroup',
'DatabaseState1',
'DatabaseState2',
'DatabaseState3',
'DatabaseState4',
'DatabaseState5',
'DatabaseState6',
'ReplicaType',
]
62 changes: 50 additions & 12 deletions sdk/sql/azure-mgmt-sql/azure/mgmt/sql/models/_models.py
Original file line number Diff line number Diff line change
Expand Up @@ -619,16 +619,21 @@ class Database(TrackedResource):
may be routed to a readonly secondary replica in the same region. Possible
values include: 'Enabled', 'Disabled'
:type read_scale: str or ~azure.mgmt.sql.models.DatabaseReadScale
:param read_replica_count: The number of readonly secondary replicas
associated with the database.
:type read_replica_count: int
:param high_availability_replica_count: The number of secondary replicas
associated with the database that are used to provide high availability.
:type high_availability_replica_count: int
:param secondary_type: The secondary type of the database if it is a
secondary. Valid values are Geo and Named. Possible values include:
'Geo', 'Named'
:type secondary_type: str or ~azure.mgmt.sql.models.SecondaryType
:ivar current_sku: The name and tier of the SKU.
:vartype current_sku: ~azure.mgmt.sql.models.Sku
:param auto_pause_delay: Time in minutes after which database is
automatically paused. A value of -1 means that automatic pause is disabled
:type auto_pause_delay: int
:param storage_account_type: The storage account type used to store
backups for this database. Possible values include: 'GRS', 'LRS', 'ZRS'
backups for this database. Currently the only supported option is GRS
(GeoRedundantStorage). Possible values include: 'GRS', 'LRS', 'ZRS'
:type storage_account_type: str or
~azure.mgmt.sql.models.StorageAccountType
:param min_capacity: Minimal capacity that database will always have
Expand All @@ -640,6 +645,10 @@ class Database(TrackedResource):
:ivar resumed_date: The date when database was resumed by user action or
database login (ISO8601 format). Null if the database is paused.
:vartype resumed_date: datetime
:param maintenance_configuration_id: Maintenance configuration id assigned
to the database. This configuration defines the period when the
maintenance updates will be rolled out.
:type maintenance_configuration_id: str
"""

_validation = {
Expand Down Expand Up @@ -697,13 +706,15 @@ class Database(TrackedResource):
'max_log_size_bytes': {'key': 'properties.maxLogSizeBytes', 'type': 'long'},
'earliest_restore_date': {'key': 'properties.earliestRestoreDate', 'type': 'iso-8601'},
'read_scale': {'key': 'properties.readScale', 'type': 'str'},
'read_replica_count': {'key': 'properties.readReplicaCount', 'type': 'int'},
'high_availability_replica_count': {'key': 'properties.highAvailabilityReplicaCount', 'type': 'int'},
'secondary_type': {'key': 'properties.secondaryType', 'type': 'str'},
'current_sku': {'key': 'properties.currentSku', 'type': 'Sku'},
'auto_pause_delay': {'key': 'properties.autoPauseDelay', 'type': 'int'},
'storage_account_type': {'key': 'properties.storageAccountType', 'type': 'str'},
'min_capacity': {'key': 'properties.minCapacity', 'type': 'float'},
'paused_date': {'key': 'properties.pausedDate', 'type': 'iso-8601'},
'resumed_date': {'key': 'properties.resumedDate', 'type': 'iso-8601'},
'maintenance_configuration_id': {'key': 'properties.maintenanceConfigurationId', 'type': 'str'},
}

def __init__(self, **kwargs):
Expand Down Expand Up @@ -736,13 +747,15 @@ def __init__(self, **kwargs):
self.max_log_size_bytes = None
self.earliest_restore_date = None
self.read_scale = kwargs.get('read_scale', None)
self.read_replica_count = kwargs.get('read_replica_count', None)
self.high_availability_replica_count = kwargs.get('high_availability_replica_count', None)
self.secondary_type = kwargs.get('secondary_type', None)
self.current_sku = None
self.auto_pause_delay = kwargs.get('auto_pause_delay', None)
self.storage_account_type = kwargs.get('storage_account_type', None)
self.min_capacity = kwargs.get('min_capacity', None)
self.paused_date = None
self.resumed_date = None
self.maintenance_configuration_id = kwargs.get('maintenance_configuration_id', None)


class DatabaseAutomaticTuning(ProxyResource):
Expand Down Expand Up @@ -1270,16 +1283,21 @@ class DatabaseUpdate(Model):
may be routed to a readonly secondary replica in the same region. Possible
values include: 'Enabled', 'Disabled'
:type read_scale: str or ~azure.mgmt.sql.models.DatabaseReadScale
:param read_replica_count: The number of readonly secondary replicas
associated with the database.
:type read_replica_count: int
:param high_availability_replica_count: The number of secondary replicas
associated with the database that are used to provide high availability.
:type high_availability_replica_count: int
:param secondary_type: The secondary type of the database if it is a
secondary. Valid values are Geo and Named. Possible values include:
'Geo', 'Named'
:type secondary_type: str or ~azure.mgmt.sql.models.SecondaryType
:ivar current_sku: The name and tier of the SKU.
:vartype current_sku: ~azure.mgmt.sql.models.Sku
:param auto_pause_delay: Time in minutes after which database is
automatically paused. A value of -1 means that automatic pause is disabled
:type auto_pause_delay: int
:param storage_account_type: The storage account type used to store
backups for this database. Possible values include: 'GRS', 'LRS', 'ZRS'
backups for this database. Currently the only supported option is GRS
(GeoRedundantStorage). Possible values include: 'GRS', 'LRS', 'ZRS'
:type storage_account_type: str or
~azure.mgmt.sql.models.StorageAccountType
:param min_capacity: Minimal capacity that database will always have
Expand All @@ -1291,6 +1309,10 @@ class DatabaseUpdate(Model):
:ivar resumed_date: The date when database was resumed by user action or
database login (ISO8601 format). Null if the database is paused.
:vartype resumed_date: datetime
:param maintenance_configuration_id: Maintenance configuration id assigned
to the database. This configuration defines the period when the
maintenance updates will be rolled out.
:type maintenance_configuration_id: str
:param tags: Resource tags.
:type tags: dict[str, str]
"""
Expand Down Expand Up @@ -1337,13 +1359,15 @@ class DatabaseUpdate(Model):
'max_log_size_bytes': {'key': 'properties.maxLogSizeBytes', 'type': 'long'},
'earliest_restore_date': {'key': 'properties.earliestRestoreDate', 'type': 'iso-8601'},
'read_scale': {'key': 'properties.readScale', 'type': 'str'},
'read_replica_count': {'key': 'properties.readReplicaCount', 'type': 'int'},
'high_availability_replica_count': {'key': 'properties.highAvailabilityReplicaCount', 'type': 'int'},
'secondary_type': {'key': 'properties.secondaryType', 'type': 'str'},
'current_sku': {'key': 'properties.currentSku', 'type': 'Sku'},
'auto_pause_delay': {'key': 'properties.autoPauseDelay', 'type': 'int'},
'storage_account_type': {'key': 'properties.storageAccountType', 'type': 'str'},
'min_capacity': {'key': 'properties.minCapacity', 'type': 'float'},
'paused_date': {'key': 'properties.pausedDate', 'type': 'iso-8601'},
'resumed_date': {'key': 'properties.resumedDate', 'type': 'iso-8601'},
'maintenance_configuration_id': {'key': 'properties.maintenanceConfigurationId', 'type': 'str'},
'tags': {'key': 'tags', 'type': '{str}'},
}

Expand Down Expand Up @@ -1375,13 +1399,15 @@ def __init__(self, **kwargs):
self.max_log_size_bytes = None
self.earliest_restore_date = None
self.read_scale = kwargs.get('read_scale', None)
self.read_replica_count = kwargs.get('read_replica_count', None)
self.high_availability_replica_count = kwargs.get('high_availability_replica_count', None)
self.secondary_type = kwargs.get('secondary_type', None)
self.current_sku = None
self.auto_pause_delay = kwargs.get('auto_pause_delay', None)
self.storage_account_type = kwargs.get('storage_account_type', None)
self.min_capacity = kwargs.get('min_capacity', None)
self.paused_date = None
self.resumed_date = None
self.maintenance_configuration_id = kwargs.get('maintenance_configuration_id', None)
self.tags = kwargs.get('tags', None)


Expand Down Expand Up @@ -1884,6 +1910,10 @@ class ElasticPool(TrackedResource):
:param license_type: The license type to apply for this elastic pool.
Possible values include: 'LicenseIncluded', 'BasePrice'
:type license_type: str or ~azure.mgmt.sql.models.ElasticPoolLicenseType
:param maintenance_configuration_id: Maintenance configuration id assigned
to the elastic pool. This configuration defines the period when the
maintenance updates will be rolled out.
:type maintenance_configuration_id: str
"""

_validation = {
Expand All @@ -1910,6 +1940,7 @@ class ElasticPool(TrackedResource):
'per_database_settings': {'key': 'properties.perDatabaseSettings', 'type': 'ElasticPoolPerDatabaseSettings'},
'zone_redundant': {'key': 'properties.zoneRedundant', 'type': 'bool'},
'license_type': {'key': 'properties.licenseType', 'type': 'str'},
'maintenance_configuration_id': {'key': 'properties.maintenanceConfigurationId', 'type': 'str'},
}

def __init__(self, **kwargs):
Expand All @@ -1922,6 +1953,7 @@ def __init__(self, **kwargs):
self.per_database_settings = kwargs.get('per_database_settings', None)
self.zone_redundant = kwargs.get('zone_redundant', None)
self.license_type = kwargs.get('license_type', None)
self.maintenance_configuration_id = kwargs.get('maintenance_configuration_id', None)


class ElasticPoolActivity(ProxyResource):
Expand Down Expand Up @@ -2530,6 +2562,10 @@ class ElasticPoolUpdate(Model):
:param license_type: The license type to apply for this elastic pool.
Possible values include: 'LicenseIncluded', 'BasePrice'
:type license_type: str or ~azure.mgmt.sql.models.ElasticPoolLicenseType
:param maintenance_configuration_id: Maintenance configuration id assigned
to the elastic pool. This configuration defines the period when the
maintenance updates will be rolled out.
:type maintenance_configuration_id: str
:param tags: Resource tags.
:type tags: dict[str, str]
"""
Expand All @@ -2540,6 +2576,7 @@ class ElasticPoolUpdate(Model):
'per_database_settings': {'key': 'properties.perDatabaseSettings', 'type': 'ElasticPoolPerDatabaseSettings'},
'zone_redundant': {'key': 'properties.zoneRedundant', 'type': 'bool'},
'license_type': {'key': 'properties.licenseType', 'type': 'str'},
'maintenance_configuration_id': {'key': 'properties.maintenanceConfigurationId', 'type': 'str'},
'tags': {'key': 'tags', 'type': '{str}'},
}

Expand All @@ -2550,6 +2587,7 @@ def __init__(self, **kwargs):
self.per_database_settings = kwargs.get('per_database_settings', None)
self.zone_redundant = kwargs.get('zone_redundant', None)
self.license_type = kwargs.get('license_type', None)
self.maintenance_configuration_id = kwargs.get('maintenance_configuration_id', None)
self.tags = kwargs.get('tags', None)


Expand Down
Loading

0 comments on commit 3f10acd

Please sign in to comment.