Skip to content

Commit 2d89e45

Browse files
mitesh-pvmvishwakarma
andauthored
Azure SQL API Parity (#38442)
* Azure SQL API Parity * avocado error update * fixes lint diff errors --------- Co-authored-by: mvishwakarma <[email protected]>
1 parent 9ede12c commit 2d89e45

File tree

76 files changed

+610
-137
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

76 files changed

+610
-137
lines changed

specification/sql/resource-manager/Microsoft.Sql/preview/2025-02-01-preview/DatabaseEncryptionProtectorRevalidate.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

specification/sql/resource-manager/Microsoft.Sql/preview/2025-02-01-preview/DatabaseEncryptionProtectorRevert.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

specification/sql/resource-manager/Microsoft.Sql/preview/2025-02-01-preview/Databases.json

Lines changed: 39 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,32 @@
3131
"$ref": "#/parameters/ServerNameParameter"
3232
},
3333
{
34-
"name": "$skipToken",
34+
"name": "$top",
3535
"in": "query",
36+
"description": "The number of elements to return from the collection.",
37+
"required": false,
38+
"type": "integer",
39+
"format": "int64"
40+
},
41+
{
42+
"name": "$skip",
43+
"in": "query",
44+
"description": "The number of elements in the collection to skip.",
45+
"required": false,
46+
"type": "integer",
47+
"format": "int64"
48+
},
49+
{
50+
"name": "$filter",
51+
"in": "query",
52+
"description": "An OData filter expression that filters elements in the collection.",
53+
"required": false,
54+
"type": "string"
55+
},
56+
{
57+
"name": "$orderby",
58+
"in": "query",
59+
"description": "How the results should be ordered.",
3660
"required": false,
3761
"type": "string"
3862
},
@@ -57,10 +81,14 @@
5781
}
5882
}
5983
},
84+
"x-ms-odata": "#/definitions/Database",
6085
"x-ms-pageable": {
6186
"nextLinkName": "nextLink"
6287
},
6388
"x-ms-examples": {
89+
"Gets a list of databases with OData filtering.": {
90+
"$ref": "./examples/ListVCoreDatabasesByServerWithOdata.json"
91+
},
6492
"Gets a list of databases.": {
6593
"$ref": "./examples/ListVCoreDatabasesByServer.json"
6694
},
@@ -87,20 +115,6 @@
87115
{
88116
"$ref": "#/parameters/DatabaseNameParameter"
89117
},
90-
{
91-
"name": "$expand",
92-
"in": "query",
93-
"description": "The child resources to include in the response.",
94-
"required": false,
95-
"type": "string"
96-
},
97-
{
98-
"name": "$filter",
99-
"in": "query",
100-
"description": "An OData filter expression that filters elements in the collection.",
101-
"required": false,
102-
"type": "string"
103-
},
104118
{
105119
"$ref": "../../../common/v1/types.json#/parameters/SubscriptionIdParameter"
106120
},
@@ -122,7 +136,6 @@
122136
}
123137
}
124138
},
125-
"x-ms-odata": "#/definitions/Database",
126139
"x-ms-examples": {
127140
"Gets a database configured with Default enclave type.": {
128141
"$ref": "./examples/GetVCoreDatabaseDefaultEnclave.json"
@@ -133,9 +146,6 @@
133146
"Gets a database.": {
134147
"$ref": "./examples/GetVCoreDatabase.json"
135148
},
136-
"Gets a database with database level keys expanded.": {
137-
"$ref": "./examples/GetVCoreDatabaseWithExpandEqualsKeys.json"
138-
},
139149
"Gets a database with Availability zone specified.": {
140150
"$ref": "./examples/GetDatabaseWithAvailabilityZone.json"
141151
},
@@ -1500,6 +1510,11 @@
15001510
"encryptionProtectorAutoRotation": {
15011511
"description": "The flag to enable or disable auto rotation of database encryption protector AKV key.",
15021512
"type": "boolean"
1513+
},
1514+
"provisioningState": {
1515+
"description": "Specifies the provisioning state for this resource",
1516+
"type": "string",
1517+
"readOnly": true
15031518
}
15041519
}
15051520
},
@@ -1929,6 +1944,11 @@
19291944
"encryptionProtectorAutoRotation": {
19301945
"description": "The flag to enable or disable auto rotation of database encryption protector AKV key.",
19311946
"type": "boolean"
1947+
},
1948+
"provisioningState": {
1949+
"description": "Specifies the provisioning state for this resource",
1950+
"type": "string",
1951+
"readOnly": true
19321952
}
19331953
}
19341954
},

specification/sql/resource-manager/Microsoft.Sql/preview/2025-02-01-preview/DistributedAvailabilityGroups.json

Lines changed: 7 additions & 7 deletions
Large diffs are not rendered by default.

specification/sql/resource-manager/Microsoft.Sql/preview/2025-02-01-preview/ElasticPools.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -591,6 +591,11 @@
591591
"name": "AvailabilityZoneType",
592592
"modelAsString": true
593593
}
594+
},
595+
"currentSku": {
596+
"$ref": "../../../common/v1/types.json#/definitions/Sku",
597+
"description": "The name and tier of the current SKU.",
598+
"readOnly": true
594599
}
595600
}
596601
},
@@ -688,6 +693,11 @@
688693
"name": "AvailabilityZoneType",
689694
"modelAsString": true
690695
}
696+
},
697+
"currentSku": {
698+
"$ref": "../../../common/v1/types.json#/definitions/Sku",
699+
"description": "The name and tier of the current SKU.",
700+
"readOnly": true
691701
}
692702
}
693703
}

specification/sql/resource-manager/Microsoft.Sql/preview/2025-02-01-preview/EncryptionProtectors.json

Lines changed: 2 additions & 2 deletions
Large diffs are not rendered by default.

specification/sql/resource-manager/Microsoft.Sql/preview/2025-02-01-preview/InstanceFailoverGroups.json

Lines changed: 6 additions & 6 deletions
Large diffs are not rendered by default.

specification/sql/resource-manager/Microsoft.Sql/preview/2025-02-01-preview/Jobs.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -315,13 +315,13 @@
315315
"startTime": {
316316
"format": "date-time",
317317
"description": "Schedule start time.",
318-
"default": "0001-01-01T16:00:00-08:00",
318+
"default": "0001-01-01T05:30:00+05:30",
319319
"type": "string"
320320
},
321321
"endTime": {
322322
"format": "date-time",
323323
"description": "Schedule end time.",
324-
"default": "9999-12-31T03:59:59-08:00",
324+
"default": "9999-12-31T17:29:59+05:30",
325325
"type": "string"
326326
},
327327
"type": {

specification/sql/resource-manager/Microsoft.Sql/preview/2025-02-01-preview/ManagedDatabaseMoveOperations.json

Lines changed: 2 additions & 2 deletions
Large diffs are not rendered by default.

specification/sql/resource-manager/Microsoft.Sql/preview/2025-02-01-preview/ManagedDatabaseRestoreDetails.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
}
6363
},
6464
"default": {
65-
"description": "*** Error Responses: ***\n\n * 400 RestoreDetailsNotAvailableOrExpired - Requested restore details are not available, or have expired.\n\n * 400 TimeoutDuringRestore - A timeout was encountered while trying to connect to the restore target.\n\n * 400 AutoCompleteMissingLastBackupName - Auto complete restore request must have lastBackupName parameter provided.\n\n * 400 MissingThumbprint - Can not find server certificate.\n\n * 400 BlobStorageServerFailure - Blob storage server failure has occurred.\n\n * 400 BackupSetNotFound - No backups were found to restore the database. Please contact support to restore the database.\n\n * 400 FullBackupNotFound - Full backup can not be found.\n\n * 400 RestoreFromStripedBackupsNotEnabled - Restoring from striped backups is not supported.\n\n * 400 BrokenRestorePlanNoFullBackup - The restore plan is broken because there is no full backup.\n\n * 400 BrokenRestorePlanWrongLogBackupLSN - The restore plan is broken because firstLsn of current log backup is not <= lastLsn of next log backup.\n\n * 400 BrokenRestorePlanWrongDiffBackupLSN - The restore plan is broken because firstLsn of diff backup is not >= firstLsn of full backup.\n\n * 400 BrokenRestorePlanGapInLogBackups - The restore plan is broken because firstLsn of current log backup is not equal to lastLsn of prev log backup.\n\n * 400 TargetServerDoesNotExist - The target server {0} does not exist or is not ready yet. Please check that it exists and retry the restore request.\n\n * 400 TargetServerRestoreNotAllowed - The target server {0} is currently not in a state that allows a restore to be started.\n\n * 400 XtpInitializedDuringRestore - Memory-optimized filegroup must be empty in order to be restored on General Purpose tier of SQL Database Managed Instance.\n\n * 400 FullBackupMissingChecksum - Provided full backup is missing checksum.\n\n * 400 FullBackupDamaged - Provided full backup is damaged.\n\n * 400 MissingStripeInBackupSet - Provided backup set has one or more missing stripes.\n\n * 400 BackupsFromMultipleDatabasesDetectedInTheContainerWhileRestoreInProgress - There are backups from multiple databases in the container folder. Please make sure the container folder has backups from a single database.{0}\n\n * 400 BrokenRestorePlanWrongDiffBaseGUID - The restore plan is broken because DifferentialBaseGuid of diff backup does not match BackupSetGuid of full backup.\n\n * 400 CorruptedPagesInBackupSet - Operation was aborted because RESTORE detected one or more corrupted pages in the backup set.\n\n * 400 ManagedIdentityIssueDetectedWhileRestoreInProgress - Managed identity is not set up properly. Please verify and try again.\n\n * 400 CorruptedPagesListMaintenance - Operation was aborted because an internal error occurred while processing the backup taken without checksum.\n\n * 400 StorageBrokenIssueDetectedWhileInProgress - Storage connection is broken. Retrying automatically...\n\n * 400 PartiallyContainedDatabaseUnsupported - \"Backup for a partially contained database is not supported.\"\n\n * 400 RequiredBackupIsNotLastRestored - Migration cannot be completed because provided backup file name is not the name of the last backup file that is restored.\n\n * 400 ManagedInstanceStorageLimitHit - The managed instance has reached its storage limit.\n\n * 400 IncompatiblePhysicalLayoutTooFewDataFiles - Database backup contains incompatible physical layout. No data files are found in the backup.\n\n * 400 IncompatiblePhysicalLayoutNonOnlineDataFilesExist - Database backup contains incompatible physical layout. Non-online data files exist.\n\n * 400 IncompatiblePhysicalLayoutWrongNumberOfLogFiles - Database backup contains incompatible physical layout. Multiple log files are not supported.\n\n * 400 IncompatiblePhysicalLayoutNonOnlineLogFilesExist - Database backup contains incompatible physical layout. Non-online log files exist.\n\n * 400 IncompatiblePhysicalLayoutTooManyNonDataLogFiles - Database backup contains incompatible physical layout. Too many non-data/log files.\n\n * 400 ExternalBackupAlreadySignaledToComplete - The restore request has already been signaled to complete.\n\n * 400 ExternalBackupRestoreHasNotBeenStarted - The restore request can only be completed once the restore has started.\n\n * 400 ExternalBackupUpgradeInProgress - The restore request cannot be completed, since upgrade is in progress.\n\n * 400 IncompatiblePhysicalLayoutTooManyXTPFiles - Database backup contains incompatible physical layout. Multiple files found in the filegroup that contains MEMORY_OPTIMIZED_DATA.\n\n * 400 BlobStorageFailure - Blob storage failure has occurred.\n\n * 400 BackupsFromMultipleDatabasesDetectedInTheContainerFromTheStart - There are backups from multiple databases in the container folder. Please make sure the container folder has backups from a single database.{0}\n\n * 400 ManagedIdentityIssueDetectedFromTheStart - Managed identity is not set up properly. Please verify and try again.\n\n * 400 StorageBrokenIssueDetectedAtTheStart - Storage connection is broken. Please verify and try again.\n\n * 400 StorageBrokenIssueDetectedTerminateRetries - Storage connection is still broken. Please verify and try again.\n\n * 400 BackupSetBroken - Backup set is broken.\n\n * 400 SqlRestoreError - Non retriable error occurred while restoring backup.\n\n * 400 ManagedDatabaseNotInRestoringState - Managed database is not in Restoring state.",
65+
"description": "*** Error Responses: ***\n\n * 400 RestoreDetailsNotAvailableOrExpired - Requested restore details are not available, or have expired.\n\n * 400 TimeoutDuringRestore - A timeout was encountered while trying to connect to the restore target.\n\n * 400 AutoCompleteMissingLastBackupName - Auto complete restore request must have lastBackupName parameter provided.\n\n * 400 MissingThumbprint - Can not find server certificate.\n\n * 400 BlobStorageServerFailure - Blob storage server failure has occurred.\n\n * 400 MissingIdentityForAzureKeyVault - Target server does not have an identity to access Azure Key Vault\n\n * 400 BackupSetNotFound - No backups were found to restore the database. Please contact support to restore the database.\n\n * 400 FullBackupNotFound - Full backup can not be found.\n\n * 400 RestoreFromStripedBackupsNotEnabled - Restoring from striped backups is not supported.\n\n * 400 BrokenRestorePlanNoFullBackup - The restore plan is broken because there is no full backup.\n\n * 400 BrokenRestorePlanWrongLogBackupLSN - The restore plan is broken because firstLsn of current log backup is not <= lastLsn of next log backup.\n\n * 400 BrokenRestorePlanWrongDiffBackupLSN - The restore plan is broken because firstLsn of diff backup is not >= firstLsn of full backup.\n\n * 400 BrokenRestorePlanGapInLogBackups - The restore plan is broken because firstLsn of current log backup is not equal to lastLsn of prev log backup.\n\n * 400 TargetServerDoesNotExist - The target server {0} does not exist or is not ready yet. Please check that it exists and retry the restore request.\n\n * 400 TargetServerRestoreNotAllowed - The target server {0} is currently not in a state that allows a restore to be started.\n\n * 400 XtpInitializedDuringRestore - Memory-optimized filegroup must be empty in order to be restored on General Purpose tier of SQL Database Managed Instance.\n\n * 400 FullBackupMissingChecksum - Provided full backup is missing checksum.\n\n * 400 FullBackupDamaged - Provided full backup is damaged.\n\n * 400 MissingStripeInBackupSet - Provided backup set has one or more missing stripes.\n\n * 400 BackupsFromMultipleDatabasesDetectedInTheContainerWhileRestoreInProgress - There are backups from multiple databases in the container folder. Please make sure the container folder has backups from a single database.{0}\n\n * 400 BrokenRestorePlanWrongDiffBaseGUID - The restore plan is broken because DifferentialBaseGuid of diff backup does not match BackupSetGuid of full backup.\n\n * 400 CorruptedPagesInBackupSet - Operation was aborted because RESTORE detected one or more corrupted pages in the backup set.\n\n * 400 ManagedIdentityIssueDetectedWhileRestoreInProgress - Managed identity is not set up properly. Please verify and try again.\n\n * 400 CorruptedPagesListMaintenance - Operation was aborted because an internal error occurred while processing the backup taken without checksum.\n\n * 400 StorageBrokenIssueDetectedWhileInProgress - Storage connection is broken. Retrying automatically...\n\n * 400 PartiallyContainedDatabaseUnsupported - \"Backup for a partially contained database is not supported.\"\n\n * 400 RequiredBackupIsNotLastRestored - Migration cannot be completed because provided backup file name is not the name of the last backup file that is restored.\n\n * 400 ManagedInstanceStorageLimitHit - The managed instance has reached its storage limit.\n\n * 400 IncompatiblePhysicalLayoutTooFewDataFiles - Database backup contains incompatible physical layout. No data files are found in the backup.\n\n * 400 IncompatiblePhysicalLayoutNonOnlineDataFilesExist - Database backup contains incompatible physical layout. Non-online data files exist.\n\n * 400 IncompatiblePhysicalLayoutWrongNumberOfLogFiles - Database backup contains incompatible physical layout. Multiple log files are not supported.\n\n * 400 IncompatiblePhysicalLayoutNonOnlineLogFilesExist - Database backup contains incompatible physical layout. Non-online log files exist.\n\n * 400 IncompatiblePhysicalLayoutTooManyNonDataLogFiles - Database backup contains incompatible physical layout. Too many non-data/log files.\n\n * 400 ExternalBackupAlreadySignaledToComplete - The restore request has already been signaled to complete.\n\n * 400 ExternalBackupRestoreHasNotBeenStarted - The restore request can only be completed once the restore has started.\n\n * 400 ExternalBackupUpgradeInProgress - The restore request cannot be completed, since upgrade is in progress.\n\n * 400 IncompatiblePhysicalLayoutTooManyXTPFiles - Database backup contains incompatible physical layout. Multiple files found in the filegroup that contains MEMORY_OPTIMIZED_DATA.\n\n * 400 BlobStorageFailure - Blob storage failure has occurred.\n\n * 400 BackupsFromMultipleDatabasesDetectedInTheContainerFromTheStart - There are backups from multiple databases in the container folder. Please make sure the container folder has backups from a single database.{0}\n\n * 400 ManagedIdentityIssueDetectedFromTheStart - Managed identity is not set up properly. Please verify and try again.\n\n * 400 StorageBrokenIssueDetectedAtTheStart - Storage connection is broken. Please verify and try again.\n\n * 400 StorageBrokenIssueDetectedTerminateRetries - Storage connection is still broken. Please verify and try again.\n\n * 400 BackupSetBroken - Backup set is broken.\n\n * 400 SqlRestoreError - Non retriable error occurred while restoring backup.\n\n * 400 ManagedDatabaseNotInRestoringState - Managed database is not in Restoring state.",
6666
"schema": {
6767
"$ref": "../../../../../common-types/resource-management/v5/types.json#/definitions/ErrorResponse"
6868
}

0 commit comments

Comments
 (0)