Skip to content

Commit

Permalink
[AutoPR] sql/resource-manager (#3769)
Browse files Browse the repository at this point in the history
* Generated from 53c4ddeb556f158661ff82f16e58f8cfdbcaa9ff (#3768)

Adding ManagedInstanceVulnerabilityAssessments and ServerVulnerabilityAssessments

* [AutoPR sql/resource-manager] Add sensitivityLabels.json to readme.md (#3799)

* Generated from b8e6c4911efd549979ebcce9c50e36a057ece9bf

Add sensitivityLabels.json to readme.md

Removing duplication of sensitivityLabels.json files, and updating readme.md

* Generated from d79e4cd0187a08200653542680abbd47cb32e4b6

Update sensitivityLabels.json

* Generated from 84012574cb3538ae51ddae58ef738caf7df7a924

Update readme.md

* Generated from 9d8ee581a6a578917bf10678c5d69d7e08d57c7f (#4059)

Updating managed database swagger

* [AutoPR sql/resource-manager] Add ManagedServerSecurityAlertPolicy and ManagedDatabaseSecurityAlert… (#3840)

* Generated from 69697620093621367cb2abf50a9cbe0f752b5176

fix incompatible values in swagger

* Generated from 9d6a28b409c220cdac4477e608e14fbed6bd7c6e

Fix ManagedDatabaseSecurityAlertCreateMin example file

* [AutoPR sql/resource-manager] typo: sql/resource-manager/Microsoft.Sql (#4004)

* Generated from 08257e28e384f2beb81968710092f57a5404893c

typo: sql/resource-manager/Microsoft.Sql

- inhertied -> inherited
- heirarchy -> hierarchy
- succesfully -> successfully
- explicity -> explicitly
- Elatic -> Elastic
- mising -> missing
- updatess -> updates
- scheduletype -> schedule type
- bacukps -> backups
- recoverabel -> recoverable
- mininum -> minimum
- recommented -> recommended
- availabities -> availabilities
- properites -> properties
- servers's -> server's
- maxiumum -> maximum
- consuption -> consumption
- historica -> historical

* Generated from 08257e28e384f2beb81968710092f57a5404893c

typo: sql/resource-manager/Microsoft.Sql

- inhertied -> inherited
- heirarchy -> hierarchy
- succesfully -> successfully
- explicity -> explicitly
- Elatic -> Elastic
- mising -> missing
- updatess -> updates
- scheduletype -> schedule type
- bacukps -> backups
- recoverabel -> recoverable
- mininum -> minimum
- recommented -> recommended
- availabities -> availabilities
- properites -> properties
- servers's -> server's
- maxiumum -> maximum
- consuption -> consumption
- historica -> historical

* Generated from d82d1491879729cdf44da9a664e815112acde158 (#4163)

Fix set LTR policy example

* [AutoPR sql/resource-manager] Added support for dropped databases on Managed Instance (#4103)

* Generated from b69193acc6a531e053151c7ba4aaffb07cb218a0

Added support for dropped databases on Managed Instance

* Generated from 676178334abdb40ac47516783d789272008e8488

Adding support for dropped databases on Managed Instance

* [AutoPR sql/resource-manager] Managed Instance GeoRestore Cmds (#4135)

* Generated from 6bb8cd671fb641dad3af4d4b557d6230c99237af

Modify example files and readme.md

Modify example files and readme.md for get recoverable managed databases

* Generated from 6bb8cd671fb641dad3af4d4b557d6230c99237af

Modify example files and readme.md

Modify example files and readme.md for get recoverable managed databases

* Generated from 056912d8e7565bffe7b39979ad9e6e2d69a69014

Update recoverableManagedDatabaseName to recoverableDatabaseName

Update recoverableManagedDatabaseName to recoverableDatabaseName

* [AutoPR sql/resource-manager] Update managedInstances.json (#4267)

* Generated from 45f508a8851c33aa3d6e6901127de68e75ed596d

Update managedInstances.json

Adding two new ManagedInstance properties

* Packaging update of azure-mgmt-sql

* [AutoPR sql/resource-manager] Updating Data Classification Swaggers. (#4310)

* Generated from 9a4696a8261d1a8ffb771c7ba666c29908489691

Update managedDatabaseSensitivityLabels.json

* Generated from 619c3d4fb99420ee18d6d6c6b8d7a89756d46772

Updating examples.

* [AutoPR sql/resource-manager] Updated managed instance swagger and examples (#4290)

* Generated from 397e372b335b8b28c566beae751fa5d83e008345

Swagger change for Managed Instance

*Update of ProxyOverride property for Managed Instance
*Update of examples

* Generated from b7c9dedf9adce2cc6594c33d8b74913ebc6a9c08

Update managedInstances.json

* Generated from 8ac3ee015780aeac53d6a812e2abe5f6911a7b4c (#4380)

Update swagger file and examples with time zone parameter

* Generated from a03ebb5e6ea5c7aa1585f40be78db1703c328084 (#4424)

Adding virtualclusters.json to readme.md

* [AutoPR sql/resource-manager] typo: Winodws -> Windows (#4482)

* Generated from 39d85959039807f8041821deb29f2a20093c4d4e

typo: Winodws -> Windows

* Packaging update of azure-mgmt-sql

* Packaging update of azure-mgmt-sql

* Rebuild by #3769

* updated versioning and change log
  • Loading branch information
AutorestCI authored and lmazuel committed Mar 28, 2019
1 parent 5a6932e commit 2a1223d
Show file tree
Hide file tree
Showing 66 changed files with 5,145 additions and 62 deletions.
27 changes: 27 additions & 0 deletions azure-mgmt-sql/HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,33 @@
Release History
===============

0.12.0 (2019-03-28)
+++++++++++++++++++

**Features**

- Model ManagedDatabase has a new parameter recoverable_database_id
- Model ManagedDatabase has a new parameter restorable_dropped_database_id
- Model ServerSecurityAlertPolicy has a new parameter creation_time
- Model ManagedInstanceUpdate has a new parameter public_data_endpoint_enabled
- Model ManagedInstanceUpdate has a new parameter proxy_override
- Model ManagedInstanceUpdate has a new parameter timezone_id
- Model ManagedDatabaseUpdate has a new parameter recoverable_database_id
- Model ManagedDatabaseUpdate has a new parameter restorable_dropped_database_id
- Model ManagedInstance has a new parameter public_data_endpoint_enabled
- Model ManagedInstance has a new parameter proxy_override
- Model ManagedInstance has a new parameter timezone_id
- Added operation group ManagedServerSecurityAlertPoliciesOperations
- Added operation group VirtualClustersOperations
- Added operation group ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesOperations
- Added operation group RestorableDroppedManagedDatabasesOperations
- Added operation group ManagedDatabaseSensitivityLabelsOperations
- Added operation group RecoverableManagedDatabasesOperations
- Added operation group ServerVulnerabilityAssessmentsOperations
- Added operation group ManagedInstanceVulnerabilityAssessmentsOperations
- Added operation group ManagedDatabaseSecurityAlertPoliciesOperations
- Added operation group SensitivityLabelsOperations

0.11.0 (2018-11-08)
+++++++++++++++++++

Expand Down
1 change: 1 addition & 0 deletions azure-mgmt-sql/MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
recursive-include tests *.py *.yaml
include *.rst
include azure/__init__.py
include azure/mgmt/__init__.py
Expand Down
19 changes: 0 additions & 19 deletions azure-mgmt-sql/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,25 +14,6 @@ For the older Azure Service Management (ASM) libraries, see
For a more complete set of Azure libraries, see the `azure <https://pypi.python.org/pypi/azure>`__ bundle package.


Compatibility
=============

**IMPORTANT**: If you have an earlier version of the azure package
(version < 1.0), you should uninstall it before installing this package.

You can check the version using pip:

.. code:: shell
pip freeze
If you see azure==0.11.0 (or any version below 1.0), uninstall it first:

.. code:: shell
pip uninstall azure
Usage
=====

Expand Down
49 changes: 49 additions & 0 deletions azure-mgmt-sql/azure/mgmt/sql/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,8 @@
from .sync_group_py3 import SyncGroup
from .sync_member_py3 import SyncMember
from .subscription_usage_py3 import SubscriptionUsage
from .virtual_cluster_py3 import VirtualCluster
from .virtual_cluster_update_py3 import VirtualClusterUpdate
from .virtual_network_rule_py3 import VirtualNetworkRule
from .extended_database_blob_auditing_policy_py3 import ExtendedDatabaseBlobAuditingPolicy
from .extended_server_blob_auditing_policy_py3 import ExtendedServerBlobAuditingPolicy
Expand Down Expand Up @@ -113,8 +115,12 @@
from .server_dns_alias_py3 import ServerDnsAlias
from .server_dns_alias_acquisition_py3 import ServerDnsAliasAcquisition
from .server_security_alert_policy_py3 import ServerSecurityAlertPolicy
from .restorable_dropped_managed_database_py3 import RestorableDroppedManagedDatabase
from .restore_point_py3 import RestorePoint
from .create_database_restore_point_definition_py3 import CreateDatabaseRestorePointDefinition
from .managed_database_security_alert_policy_py3 import ManagedDatabaseSecurityAlertPolicy
from .managed_server_security_alert_policy_py3 import ManagedServerSecurityAlertPolicy
from .sensitivity_label_py3 import SensitivityLabel
from .database_operation_py3 import DatabaseOperation
from .elastic_pool_operation_py3 import ElasticPoolOperation
from .max_size_capability_py3 import MaxSizeCapability
Expand Down Expand Up @@ -152,6 +158,9 @@
from .tde_certificate_py3 import TdeCertificate
from .managed_instance_key_py3 import ManagedInstanceKey
from .managed_instance_encryption_protector_py3 import ManagedInstanceEncryptionProtector
from .recoverable_managed_database_py3 import RecoverableManagedDatabase
from .managed_instance_vulnerability_assessment_py3 import ManagedInstanceVulnerabilityAssessment
from .server_vulnerability_assessment_py3 import ServerVulnerabilityAssessment
except (SyntaxError, ImportError):
from .recoverable_database import RecoverableDatabase
from .restorable_dropped_database import RestorableDroppedDatabase
Expand Down Expand Up @@ -222,6 +231,8 @@
from .sync_group import SyncGroup
from .sync_member import SyncMember
from .subscription_usage import SubscriptionUsage
from .virtual_cluster import VirtualCluster
from .virtual_cluster_update import VirtualClusterUpdate
from .virtual_network_rule import VirtualNetworkRule
from .extended_database_blob_auditing_policy import ExtendedDatabaseBlobAuditingPolicy
from .extended_server_blob_auditing_policy import ExtendedServerBlobAuditingPolicy
Expand Down Expand Up @@ -256,8 +267,12 @@
from .server_dns_alias import ServerDnsAlias
from .server_dns_alias_acquisition import ServerDnsAliasAcquisition
from .server_security_alert_policy import ServerSecurityAlertPolicy
from .restorable_dropped_managed_database import RestorableDroppedManagedDatabase
from .restore_point import RestorePoint
from .create_database_restore_point_definition import CreateDatabaseRestorePointDefinition
from .managed_database_security_alert_policy import ManagedDatabaseSecurityAlertPolicy
from .managed_server_security_alert_policy import ManagedServerSecurityAlertPolicy
from .sensitivity_label import SensitivityLabel
from .database_operation import DatabaseOperation
from .elastic_pool_operation import ElasticPoolOperation
from .max_size_capability import MaxSizeCapability
Expand Down Expand Up @@ -295,6 +310,9 @@
from .tde_certificate import TdeCertificate
from .managed_instance_key import ManagedInstanceKey
from .managed_instance_encryption_protector import ManagedInstanceEncryptionProtector
from .recoverable_managed_database import RecoverableManagedDatabase
from .managed_instance_vulnerability_assessment import ManagedInstanceVulnerabilityAssessment
from .server_vulnerability_assessment import ServerVulnerabilityAssessment
from .recoverable_database_paged import RecoverableDatabasePaged
from .restorable_dropped_database_paged import RestorableDroppedDatabasePaged
from .server_paged import ServerPaged
Expand Down Expand Up @@ -330,6 +348,7 @@
from .sync_group_paged import SyncGroupPaged
from .sync_member_paged import SyncMemberPaged
from .subscription_usage_paged import SubscriptionUsagePaged
from .virtual_cluster_paged import VirtualClusterPaged
from .virtual_network_rule_paged import VirtualNetworkRulePaged
from .database_vulnerability_assessment_paged import DatabaseVulnerabilityAssessmentPaged
from .job_agent_paged import JobAgentPaged
Expand All @@ -343,14 +362,22 @@
from .managed_backup_short_term_retention_policy_paged import ManagedBackupShortTermRetentionPolicyPaged
from .managed_database_paged import ManagedDatabasePaged
from .server_dns_alias_paged import ServerDnsAliasPaged
from .server_security_alert_policy_paged import ServerSecurityAlertPolicyPaged
from .restorable_dropped_managed_database_paged import RestorableDroppedManagedDatabasePaged
from .restore_point_paged import RestorePointPaged
from .managed_database_security_alert_policy_paged import ManagedDatabaseSecurityAlertPolicyPaged
from .managed_server_security_alert_policy_paged import ManagedServerSecurityAlertPolicyPaged
from .sensitivity_label_paged import SensitivityLabelPaged
from .database_operation_paged import DatabaseOperationPaged
from .elastic_pool_operation_paged import ElasticPoolOperationPaged
from .vulnerability_assessment_scan_record_paged import VulnerabilityAssessmentScanRecordPaged
from .instance_failover_group_paged import InstanceFailoverGroupPaged
from .backup_short_term_retention_policy_paged import BackupShortTermRetentionPolicyPaged
from .managed_instance_key_paged import ManagedInstanceKeyPaged
from .managed_instance_encryption_protector_paged import ManagedInstanceEncryptionProtectorPaged
from .recoverable_managed_database_paged import RecoverableManagedDatabasePaged
from .managed_instance_vulnerability_assessment_paged import ManagedInstanceVulnerabilityAssessmentPaged
from .server_vulnerability_assessment_paged import ServerVulnerabilityAssessmentPaged
from .sql_management_client_enums import (
CheckNameAvailabilityReason,
ServerConnectionType,
Expand Down Expand Up @@ -385,6 +412,7 @@
ReadOnlyEndpointFailoverPolicy,
FailoverGroupReplicationRole,
IdentityType,
ManagedInstanceProxyOverride,
OperationOrigin,
SyncAgentState,
SyncMemberDbType,
Expand Down Expand Up @@ -427,6 +455,7 @@
InstanceFailoverGroupReplicationRole,
LongTermRetentionDatabaseState,
VulnerabilityAssessmentPolicyBaselineName,
SensitivityLabelSource,
CapabilityGroup,
)

Expand Down Expand Up @@ -500,6 +529,8 @@
'SyncGroup',
'SyncMember',
'SubscriptionUsage',
'VirtualCluster',
'VirtualClusterUpdate',
'VirtualNetworkRule',
'ExtendedDatabaseBlobAuditingPolicy',
'ExtendedServerBlobAuditingPolicy',
Expand Down Expand Up @@ -534,8 +565,12 @@
'ServerDnsAlias',
'ServerDnsAliasAcquisition',
'ServerSecurityAlertPolicy',
'RestorableDroppedManagedDatabase',
'RestorePoint',
'CreateDatabaseRestorePointDefinition',
'ManagedDatabaseSecurityAlertPolicy',
'ManagedServerSecurityAlertPolicy',
'SensitivityLabel',
'DatabaseOperation',
'ElasticPoolOperation',
'MaxSizeCapability',
Expand Down Expand Up @@ -573,6 +608,9 @@
'TdeCertificate',
'ManagedInstanceKey',
'ManagedInstanceEncryptionProtector',
'RecoverableManagedDatabase',
'ManagedInstanceVulnerabilityAssessment',
'ServerVulnerabilityAssessment',
'RecoverableDatabasePaged',
'RestorableDroppedDatabasePaged',
'ServerPaged',
Expand Down Expand Up @@ -608,6 +646,7 @@
'SyncGroupPaged',
'SyncMemberPaged',
'SubscriptionUsagePaged',
'VirtualClusterPaged',
'VirtualNetworkRulePaged',
'DatabaseVulnerabilityAssessmentPaged',
'JobAgentPaged',
Expand All @@ -621,14 +660,22 @@
'ManagedBackupShortTermRetentionPolicyPaged',
'ManagedDatabasePaged',
'ServerDnsAliasPaged',
'ServerSecurityAlertPolicyPaged',
'RestorableDroppedManagedDatabasePaged',
'RestorePointPaged',
'ManagedDatabaseSecurityAlertPolicyPaged',
'ManagedServerSecurityAlertPolicyPaged',
'SensitivityLabelPaged',
'DatabaseOperationPaged',
'ElasticPoolOperationPaged',
'VulnerabilityAssessmentScanRecordPaged',
'InstanceFailoverGroupPaged',
'BackupShortTermRetentionPolicyPaged',
'ManagedInstanceKeyPaged',
'ManagedInstanceEncryptionProtectorPaged',
'RecoverableManagedDatabasePaged',
'ManagedInstanceVulnerabilityAssessmentPaged',
'ServerVulnerabilityAssessmentPaged',
'CheckNameAvailabilityReason',
'ServerConnectionType',
'SecurityAlertPolicyState',
Expand Down Expand Up @@ -662,6 +709,7 @@
'ReadOnlyEndpointFailoverPolicy',
'FailoverGroupReplicationRole',
'IdentityType',
'ManagedInstanceProxyOverride',
'OperationOrigin',
'SyncAgentState',
'SyncMemberDbType',
Expand Down Expand Up @@ -704,5 +752,6 @@
'InstanceFailoverGroupReplicationRole',
'LongTermRetentionDatabaseState',
'VulnerabilityAssessmentPolicyBaselineName',
'SensitivityLabelSource',
'CapabilityGroup',
]
2 changes: 1 addition & 1 deletion azure-mgmt-sql/azure/mgmt/sql/models/job_schedule.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class JobSchedule(Model):
:param enabled: Whether or not the schedule is enabled.
:type enabled: bool
:param interval: Value of the schedule's recurring interval, if the
scheduletype is recurring. ISO8601 duration format.
schedule type is recurring. ISO8601 duration format.
:type interval: str
"""

Expand Down
2 changes: 1 addition & 1 deletion azure-mgmt-sql/azure/mgmt/sql/models/job_schedule_py3.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class JobSchedule(Model):
:param enabled: Whether or not the schedule is enabled.
:type enabled: bool
:param interval: Value of the schedule's recurring interval, if the
scheduletype is recurring. ISO8601 duration format.
schedule type is recurring. ISO8601 duration format.
:type interval: str
"""

Expand Down
21 changes: 17 additions & 4 deletions azure-mgmt-sql/azure/mgmt/sql/models/managed_database.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ class ManagedDatabase(TrackedResource):
:type tags: dict[str, str]
:param collation: Collation of the managed database.
:type collation: str
:ivar status: Status for the database. Possible values include: 'Online',
'Offline', 'Shutdown', 'Creating', 'Inaccessible'
:ivar status: Status of the database. Possible values include: 'Online',
'Offline', 'Shutdown', 'Creating', 'Inaccessible', 'Updating'
:vartype status: str or ~azure.mgmt.sql.models.ManagedDatabaseStatus
:ivar creation_date: Creation date of the database.
:vartype creation_date: datetime
Expand All @@ -56,8 +56,11 @@ class ManagedDatabase(TrackedResource):
database. SourceDatabaseName, SourceManagedInstanceName and PointInTime
must be specified. RestoreExternalBackup: Create a database by restoring
from external backup files. Collation, StorageContainerUri and
StorageContainerSasToken must be specified. Possible values include:
'Default', 'RestoreExternalBackup', 'PointInTimeRestore'
StorageContainerSasToken must be specified. Recovery: Creates a database
by restoring a geo-replicated backup. RecoverableDatabaseId must be
specified as the recoverable database resource ID to restore. Possible
values include: 'Default', 'RestoreExternalBackup', 'PointInTimeRestore',
'Recovery'
:type create_mode: str or ~azure.mgmt.sql.models.ManagedDatabaseCreateMode
:param storage_container_uri: Conditional. If createMode is
RestoreExternalBackup, this value is required. Specifies the uri of the
Expand All @@ -66,13 +69,19 @@ class ManagedDatabase(TrackedResource):
:param source_database_id: The resource identifier of the source database
associated with create operation of this database.
:type source_database_id: str
:param restorable_dropped_database_id: The restorable dropped database
resource id to restore when creating this database.
:type restorable_dropped_database_id: str
:param storage_container_sas_token: Conditional. If createMode is
RestoreExternalBackup, this value is required. Specifies the storage
container sas token.
:type storage_container_sas_token: str
:ivar failover_group_id: Instance Failover Group resource identifier that
this managed database belongs to.
:vartype failover_group_id: str
:param recoverable_database_id: The resource identifier of the recoverable
database associated with create operation of this database.
:type recoverable_database_id: str
"""

_validation = {
Expand Down Expand Up @@ -103,8 +112,10 @@ class ManagedDatabase(TrackedResource):
'create_mode': {'key': 'properties.createMode', 'type': 'str'},
'storage_container_uri': {'key': 'properties.storageContainerUri', 'type': 'str'},
'source_database_id': {'key': 'properties.sourceDatabaseId', 'type': 'str'},
'restorable_dropped_database_id': {'key': 'properties.restorableDroppedDatabaseId', 'type': 'str'},
'storage_container_sas_token': {'key': 'properties.storageContainerSasToken', 'type': 'str'},
'failover_group_id': {'key': 'properties.failoverGroupId', 'type': 'str'},
'recoverable_database_id': {'key': 'properties.recoverableDatabaseId', 'type': 'str'},
}

def __init__(self, **kwargs):
Expand All @@ -119,5 +130,7 @@ def __init__(self, **kwargs):
self.create_mode = kwargs.get('create_mode', None)
self.storage_container_uri = kwargs.get('storage_container_uri', None)
self.source_database_id = kwargs.get('source_database_id', None)
self.restorable_dropped_database_id = kwargs.get('restorable_dropped_database_id', None)
self.storage_container_sas_token = kwargs.get('storage_container_sas_token', None)
self.failover_group_id = None
self.recoverable_database_id = kwargs.get('recoverable_database_id', None)
Loading

0 comments on commit 2a1223d

Please sign in to comment.