Skip to content

Commit

Permalink
CodeGen from PR 13689 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Dev sql microsoft.sql 2020 11 01 preview minor change (Azure#13689)

* Adds base for updating Microsoft.Sql from version preview/2020-08-01-preview to version 2020-11-01-preview

* Updates readme

* Updates API version in new specs and examples

* Add updated 2020-11-01-preview versions of LongTermRetenionBackups.json and Databases.json (Azure#12146)

* add updated databases.json swagger

* update readme with new package

* v4 -> v5

* add missing chunk in readme

* add correct swaggeR

* add examples

* add correct examplese

* remove unreferenced examples

* update swagger and examples. add 2020-11 pure package

* Fix reference to 2020-08-01 reference to ElasticPools.json

* update Databases.json name

* update examples

* remove nonexistant swagger

* fixed reference capitals in readme

* update package composite and fix ref to ManagedInstances.jsON

* make backupstorageredundancy settings consistent

* add requestedBackupStorageRedundancy to properties object in example

* add LTR swagger and examples

* add LTR Policies swagger and examples

* make v5 match v4

* add updated Databses.json

* merge conflicts in LTR Policies swagger'

* take out comments in readme

* taking ImportExport.json out from 2020-11 package

* remove duplicate 2020-11 tag in readme

* modify Databases_legacy.json to exclude ImportExport-related APIs

* add servers.json for IE APIS and remove unused databases examples

* fix model & prettier errors; add missing server example

* add missing servers examples

* fix example to exclude property from server obj

* change RecommendedActions definitoins

* change tag to composite v4

* Add missing properties for api version 2020-02-02-preview of securityAlertPolicies (Azure#13117)

* Add missing properties for api version 2020-02-02-preview

* fix checks

* fix according to prettier check

* Add the change to version 2020-08-01-preview and version 2020-11-01-preview

* remove changes in package-lock

* Add new line at the end of file

* update version 2020-11-01-preview

* Update the ref to system data in serverdevopsaudit

* add missing point

* fix the validation errors

* Delete ServerDevOpsAudit.json

* fix the validation errors

* re add ServerDevOpsAudit.json

* fix the validation errors (Azure#13325)

* fix the validation errors

* Delete ServerDevOpsAudit.json

* fix the validation errors

* re add ServerDevOpsAudit.json

* address PrivateEndpointConnections.json validation issues in v3, v2 and v1

* Address Private Endpoint validation issues in V3, V2 and V1 SDK tags (Azure#13404)

* fix the validation errors

* Delete ServerDevOpsAudit.json

* fix the validation errors

* re add ServerDevOpsAudit.json

* address PrivateEndpointConnections.json validation issues in v3, v2 and v1

* Identity/Key/external Admin API (Azure#13411)

* Add examples for sql mi remove maintenance configuration (Azure#13390)

* Add missing specs 2020 11 01 (Azure#13488)

* fix the validation errors

* Delete ServerDevOpsAudit.json

* fix the validation errors

* re add ServerDevOpsAudit.json

* address PrivateEndpointConnections.json validation issues in v3, v2 and v1

* add missing specs in 2020-11-01-preview

* update the validation errors

* update systemData and sync with global common/v1/types.json

* update legacy to match the latest database specs

* remove RestorableDroppedManagedInstances due to it should be internal

* Updated database extensions (Azure#13584)

Co-authored-by: Geetha Athreya <geathrey@microsoft.com>

Co-authored-by: xaliciayang <59986952+xaliciayang@users.noreply.github.com>
Co-authored-by: ayeletshpigelman <ayshpige@microsoft.com>
Co-authored-by: strehan1993 <70013163+strehan1993@users.noreply.github.com>
Co-authored-by: Ivan Kulezic <72797230+kukislav@users.noreply.github.com>
Co-authored-by: Geetha Athreya <43223869+athreya-geetha@users.noreply.github.com>
Co-authored-by: Geetha Athreya <geathrey@microsoft.com>
  • Loading branch information
7 people committed Mar 29, 2021
1 parent 7273df1 commit 9a69d40
Show file tree
Hide file tree
Showing 14 changed files with 1,663 additions and 844 deletions.
35 changes: 20 additions & 15 deletions sdk/sql/azure-mgmt-sql/azure/mgmt/sql/_sql_management_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,6 @@
from .operations import JobTargetExecutionsOperations
from .operations import JobTargetGroupsOperations
from .operations import JobVersionsOperations
from .operations import LongTermRetentionBackupsOperations
from .operations import BackupLongTermRetentionPoliciesOperations
from .operations import ManagedBackupShortTermRetentionPoliciesOperations
from .operations import ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesOperations
from .operations import ServerAutomaticTuningOperations
Expand Down Expand Up @@ -89,7 +87,6 @@
from .operations import ManagedDatabaseSensitivityLabelsOperations
from .operations import InstancePoolsOperations
from .operations import UsagesOperations
from .operations import PrivateEndpointConnectionsOperations
from .operations import PrivateLinkResourcesOperations
from .operations import ServersOperations
from .operations import CapabilitiesOperations
Expand All @@ -101,13 +98,17 @@
from .operations import ServerAzureADAdministratorsOperations
from .operations import SyncGroupsOperations
from .operations import SyncMembersOperations
from .operations import ImportExportOperations
from .operations import ManagedDatabasesOperations
from .operations import ManagedDatabaseRestoreDetailsOperations
from .operations import ServerAzureADOnlyAuthenticationsOperations
from .operations import ManagedInstancesOperations
from .operations import ManagedInstanceAzureADOnlyAuthenticationsOperations
from .operations import ServerTrustGroupsOperations
from .operations import ServerDevOpsAuditSettingsOperations
from .operations import LongTermRetentionBackupsOperations
from .operations import LongTermRetentionPoliciesOperations
from .operations import PrivateEndpointConnectionsOperations
from . import models


Expand Down Expand Up @@ -207,10 +208,6 @@ class SqlManagementClient(SDKClient):
:vartype job_target_groups: azure.mgmt.sql.operations.JobTargetGroupsOperations
:ivar job_versions: JobVersions operations
:vartype job_versions: azure.mgmt.sql.operations.JobVersionsOperations
:ivar long_term_retention_backups: LongTermRetentionBackups operations
:vartype long_term_retention_backups: azure.mgmt.sql.operations.LongTermRetentionBackupsOperations
:ivar backup_long_term_retention_policies: BackupLongTermRetentionPolicies operations
:vartype backup_long_term_retention_policies: azure.mgmt.sql.operations.BackupLongTermRetentionPoliciesOperations
:ivar managed_backup_short_term_retention_policies: ManagedBackupShortTermRetentionPolicies operations
:vartype managed_backup_short_term_retention_policies: azure.mgmt.sql.operations.ManagedBackupShortTermRetentionPoliciesOperations
:ivar managed_restorable_dropped_database_backup_short_term_retention_policies: ManagedRestorableDroppedDatabaseBackupShortTermRetentionPolicies operations
Expand Down Expand Up @@ -269,8 +266,6 @@ class SqlManagementClient(SDKClient):
:vartype instance_pools: azure.mgmt.sql.operations.InstancePoolsOperations
:ivar usages: Usages operations
:vartype usages: azure.mgmt.sql.operations.UsagesOperations
:ivar private_endpoint_connections: PrivateEndpointConnections operations
:vartype private_endpoint_connections: azure.mgmt.sql.operations.PrivateEndpointConnectionsOperations
:ivar private_link_resources: PrivateLinkResources operations
:vartype private_link_resources: azure.mgmt.sql.operations.PrivateLinkResourcesOperations
:ivar servers: Servers operations
Expand All @@ -293,6 +288,8 @@ class SqlManagementClient(SDKClient):
:vartype sync_groups: azure.mgmt.sql.operations.SyncGroupsOperations
:ivar sync_members: SyncMembers operations
:vartype sync_members: azure.mgmt.sql.operations.SyncMembersOperations
:ivar import_export: ImportExport operations
:vartype import_export: azure.mgmt.sql.operations.ImportExportOperations
:ivar managed_databases: ManagedDatabases operations
:vartype managed_databases: azure.mgmt.sql.operations.ManagedDatabasesOperations
:ivar managed_database_restore_details: ManagedDatabaseRestoreDetails operations
Expand All @@ -307,6 +304,12 @@ class SqlManagementClient(SDKClient):
:vartype server_trust_groups: azure.mgmt.sql.operations.ServerTrustGroupsOperations
:ivar server_dev_ops_audit_settings: ServerDevOpsAuditSettings operations
:vartype server_dev_ops_audit_settings: azure.mgmt.sql.operations.ServerDevOpsAuditSettingsOperations
:ivar long_term_retention_backups: LongTermRetentionBackups operations
:vartype long_term_retention_backups: azure.mgmt.sql.operations.LongTermRetentionBackupsOperations
:ivar long_term_retention_policies: LongTermRetentionPolicies operations
:vartype long_term_retention_policies: azure.mgmt.sql.operations.LongTermRetentionPoliciesOperations
:ivar private_endpoint_connections: PrivateEndpointConnections operations
:vartype private_endpoint_connections: azure.mgmt.sql.operations.PrivateEndpointConnectionsOperations
:param credentials: Credentials needed for the client to connect to Azure.
:type credentials: :mod:`A msrestazure Credentials
Expand Down Expand Up @@ -417,10 +420,6 @@ def __init__(
self._client, self.config, self._serialize, self._deserialize)
self.job_versions = JobVersionsOperations(
self._client, self.config, self._serialize, self._deserialize)
self.long_term_retention_backups = LongTermRetentionBackupsOperations(
self._client, self.config, self._serialize, self._deserialize)
self.backup_long_term_retention_policies = BackupLongTermRetentionPoliciesOperations(
self._client, self.config, self._serialize, self._deserialize)
self.managed_backup_short_term_retention_policies = ManagedBackupShortTermRetentionPoliciesOperations(
self._client, self.config, self._serialize, self._deserialize)
self.managed_restorable_dropped_database_backup_short_term_retention_policies = ManagedRestorableDroppedDatabaseBackupShortTermRetentionPoliciesOperations(
Expand Down Expand Up @@ -479,8 +478,6 @@ def __init__(
self._client, self.config, self._serialize, self._deserialize)
self.usages = UsagesOperations(
self._client, self.config, self._serialize, self._deserialize)
self.private_endpoint_connections = PrivateEndpointConnectionsOperations(
self._client, self.config, self._serialize, self._deserialize)
self.private_link_resources = PrivateLinkResourcesOperations(
self._client, self.config, self._serialize, self._deserialize)
self.servers = ServersOperations(
Expand All @@ -503,6 +500,8 @@ def __init__(
self._client, self.config, self._serialize, self._deserialize)
self.sync_members = SyncMembersOperations(
self._client, self.config, self._serialize, self._deserialize)
self.import_export = ImportExportOperations(
self._client, self.config, self._serialize, self._deserialize)
self.managed_databases = ManagedDatabasesOperations(
self._client, self.config, self._serialize, self._deserialize)
self.managed_database_restore_details = ManagedDatabaseRestoreDetailsOperations(
Expand All @@ -517,3 +516,9 @@ def __init__(
self._client, self.config, self._serialize, self._deserialize)
self.server_dev_ops_audit_settings = ServerDevOpsAuditSettingsOperations(
self._client, self.config, self._serialize, self._deserialize)
self.long_term_retention_backups = LongTermRetentionBackupsOperations(
self._client, self.config, self._serialize, self._deserialize)
self.long_term_retention_policies = LongTermRetentionPoliciesOperations(
self._client, self.config, self._serialize, self._deserialize)
self.private_endpoint_connections = PrivateEndpointConnectionsOperations(
self._client, self.config, self._serialize, self._deserialize)
65 changes: 36 additions & 29 deletions sdk/sql/azure-mgmt-sql/azure/mgmt/sql/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@
from ._models_py3 import AutomaticTuningOptions
from ._models_py3 import AutomaticTuningServerOptions
from ._models_py3 import AutoPauseDelayTimeRange
from ._models_py3 import BackupLongTermRetentionPolicy
from ._models_py3 import BackupShortTermRetentionPolicy
from ._models_py3 import CheckNameAvailabilityRequest
from ._models_py3 import CheckNameAvailabilityResponse
from ._models_py3 import CompleteDatabaseRestoreDefinition
from ._models_py3 import CopyLongTermRetentionBackupParameters
from ._models_py3 import CreateDatabaseRestorePointDefinition
from ._models_py3 import Database
from ._models_py3 import DatabaseAutomaticTuning
Expand Down Expand Up @@ -82,6 +82,8 @@
from ._models_py3 import LocationCapabilities
from ._models_py3 import LogSizeCapability
from ._models_py3 import LongTermRetentionBackup
from ._models_py3 import LongTermRetentionBackupOperationResult
from ._models_py3 import LongTermRetentionPolicy
from ._models_py3 import MaintenanceConfigurationCapability
from ._models_py3 import ManagedBackupShortTermRetentionPolicy
from ._models_py3 import ManagedDatabase
Expand Down Expand Up @@ -198,6 +200,7 @@
from ._models_py3 import TransparentDataEncryption
from ._models_py3 import TransparentDataEncryptionActivity
from ._models_py3 import UnlinkParameters
from ._models_py3 import UpdateLongTermRetentionBackupParameters
from ._models_py3 import UpsertManagedServerOperationParameters
from ._models_py3 import UpsertManagedServerOperationStep
from ._models_py3 import Usage
Expand All @@ -213,11 +216,11 @@
from ._models import AutomaticTuningOptions
from ._models import AutomaticTuningServerOptions
from ._models import AutoPauseDelayTimeRange
from ._models import BackupLongTermRetentionPolicy
from ._models import BackupShortTermRetentionPolicy
from ._models import CheckNameAvailabilityRequest
from ._models import CheckNameAvailabilityResponse
from ._models import CompleteDatabaseRestoreDefinition
from ._models import CopyLongTermRetentionBackupParameters
from ._models import CreateDatabaseRestorePointDefinition
from ._models import Database
from ._models import DatabaseAutomaticTuning
Expand Down Expand Up @@ -282,6 +285,8 @@
from ._models import LocationCapabilities
from ._models import LogSizeCapability
from ._models import LongTermRetentionBackup
from ._models import LongTermRetentionBackupOperationResult
from ._models import LongTermRetentionPolicy
from ._models import MaintenanceConfigurationCapability
from ._models import ManagedBackupShortTermRetentionPolicy
from ._models import ManagedDatabase
Expand Down Expand Up @@ -398,6 +403,7 @@
from ._models import TransparentDataEncryption
from ._models import TransparentDataEncryptionActivity
from ._models import UnlinkParameters
from ._models import UpdateLongTermRetentionBackupParameters
from ._models import UpsertManagedServerOperationParameters
from ._models import UpsertManagedServerOperationStep
from ._models import Usage
Expand Down Expand Up @@ -436,6 +442,7 @@
from ._paged_models import JobTargetGroupPaged
from ._paged_models import JobVersionPaged
from ._paged_models import LongTermRetentionBackupPaged
from ._paged_models import LongTermRetentionPolicyPaged
from ._paged_models import ManagedBackupShortTermRetentionPolicyPaged
from ._paged_models import ManagedDatabasePaged
from ._paged_models import ManagedDatabaseSecurityAlertPolicyPaged
Expand Down Expand Up @@ -545,10 +552,10 @@
VulnerabilityAssessmentScanState,
InstanceFailoverGroupReplicationRole,
InstancePoolLicenseType,
IdentityType,
PrivateLinkServiceConnectionStateStatus,
PrivateLinkServiceConnectionStateActionsRequire,
PrivateEndpointProvisioningState,
IdentityType,
ServerPublicNetworkAccess,
CheckNameAvailabilityReason,
MaxSizeUnit,
Expand All @@ -561,6 +568,7 @@
SyncGroupState,
SyncDirection,
SyncMemberState,
StorageKeyType,
ManagedDatabaseStatus,
CatalogCollationType,
ManagedDatabaseCreateMode,
Expand All @@ -570,26 +578,23 @@
StorageAccountType,
QueryTimeGrainType,
QueryMetricUnitType,
ElasticPoolState,
ElasticPoolLicenseType,
CreatedByType,
CreateMode,
SampleName,
DatabaseStatus,
DatabaseLicenseType,
DatabaseReadScale,
SecondaryType,
StorageKeyType,
ElasticPoolState,
ElasticPoolLicenseType,
CreatedByType,
LongTermRetentionDatabaseState,
CurrentBackupStorageRedundancy,
RequestedBackupStorageRedundancy,
TargetBackupStorageRedundancy,
BackupStorageRedundancy,
VulnerabilityAssessmentPolicyBaselineName,
SensitivityLabelSource,
CapabilityGroup,
DatabaseState1,
DatabaseState2,
DatabaseState3,
DatabaseState4,
DatabaseState5,
DatabaseState6,
DatabaseState,
AggregationFunctionType,
MetricType,
ReplicaType,
Expand All @@ -599,11 +604,11 @@
'AutomaticTuningOptions',
'AutomaticTuningServerOptions',
'AutoPauseDelayTimeRange',
'BackupLongTermRetentionPolicy',
'BackupShortTermRetentionPolicy',
'CheckNameAvailabilityRequest',
'CheckNameAvailabilityResponse',
'CompleteDatabaseRestoreDefinition',
'CopyLongTermRetentionBackupParameters',
'CreateDatabaseRestorePointDefinition',
'Database',
'DatabaseAutomaticTuning',
Expand Down Expand Up @@ -668,6 +673,8 @@
'LocationCapabilities',
'LogSizeCapability',
'LongTermRetentionBackup',
'LongTermRetentionBackupOperationResult',
'LongTermRetentionPolicy',
'MaintenanceConfigurationCapability',
'ManagedBackupShortTermRetentionPolicy',
'ManagedDatabase',
Expand Down Expand Up @@ -784,6 +791,7 @@
'TransparentDataEncryption',
'TransparentDataEncryptionActivity',
'UnlinkParameters',
'UpdateLongTermRetentionBackupParameters',
'UpsertManagedServerOperationParameters',
'UpsertManagedServerOperationStep',
'Usage',
Expand Down Expand Up @@ -836,7 +844,6 @@
'JobStepPaged',
'JobTargetGroupPaged',
'JobVersionPaged',
'LongTermRetentionBackupPaged',
'ManagedBackupShortTermRetentionPolicyPaged',
'ServerDnsAliasPaged',
'ServerSecurityAlertPolicyPaged',
Expand All @@ -858,7 +865,6 @@
'ServerVulnerabilityAssessmentPaged',
'InstancePoolPaged',
'UsagePaged',
'PrivateEndpointConnectionPaged',
'PrivateLinkResourcePaged',
'ServerPaged',
'ManagedInstanceLongTermRetentionBackupPaged',
Expand All @@ -879,6 +885,9 @@
'ManagedInstanceAzureADOnlyAuthenticationPaged',
'ServerTrustGroupPaged',
'ServerDevOpsAuditingSettingsPaged',
'LongTermRetentionBackupPaged',
'LongTermRetentionPolicyPaged',
'PrivateEndpointConnectionPaged',
'ServerConnectionType',
'SecurityAlertPolicyState',
'SecurityAlertPolicyEmailAccountAdmins',
Expand Down Expand Up @@ -930,10 +939,10 @@
'VulnerabilityAssessmentScanState',
'InstanceFailoverGroupReplicationRole',
'InstancePoolLicenseType',
'IdentityType',
'PrivateLinkServiceConnectionStateStatus',
'PrivateLinkServiceConnectionStateActionsRequire',
'PrivateEndpointProvisioningState',
'IdentityType',
'ServerPublicNetworkAccess',
'CheckNameAvailabilityReason',
'MaxSizeUnit',
Expand All @@ -946,6 +955,7 @@
'SyncGroupState',
'SyncDirection',
'SyncMemberState',
'StorageKeyType',
'ManagedDatabaseStatus',
'CatalogCollationType',
'ManagedDatabaseCreateMode',
Expand All @@ -955,26 +965,23 @@
'StorageAccountType',
'QueryTimeGrainType',
'QueryMetricUnitType',
'ElasticPoolState',
'ElasticPoolLicenseType',
'CreatedByType',
'CreateMode',
'SampleName',
'DatabaseStatus',
'DatabaseLicenseType',
'DatabaseReadScale',
'SecondaryType',
'StorageKeyType',
'ElasticPoolState',
'ElasticPoolLicenseType',
'CreatedByType',
'LongTermRetentionDatabaseState',
'CurrentBackupStorageRedundancy',
'RequestedBackupStorageRedundancy',
'TargetBackupStorageRedundancy',
'BackupStorageRedundancy',
'VulnerabilityAssessmentPolicyBaselineName',
'SensitivityLabelSource',
'CapabilityGroup',
'DatabaseState1',
'DatabaseState2',
'DatabaseState3',
'DatabaseState4',
'DatabaseState5',
'DatabaseState6',
'DatabaseState',
'AggregationFunctionType',
'MetricType',
'ReplicaType',
Expand Down

0 comments on commit 9a69d40

Please sign in to comment.