diff --git a/sdk/sql/arm-sql/src/models/index.ts b/sdk/sql/arm-sql/src/models/index.ts index c30b3d6582d9..0bfb09229416 100644 --- a/sdk/sql/arm-sql/src/models/index.ts +++ b/sdk/sql/arm-sql/src/models/index.ts @@ -5732,250 +5732,6 @@ export interface WorkloadClassifier extends ProxyResource { importance?: string; } -/** - * A managed database restore details. - */ -export interface ManagedDatabaseRestoreDetailsResult extends ProxyResource { - /** - * Restore status. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly status?: string; - /** - * Current restoring file name. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly currentRestoringFileName?: string; - /** - * Last restored file name. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly lastRestoredFileName?: string; - /** - * Last restored file time. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly lastRestoredFileTime?: Date; - /** - * Percent completed. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly percentCompleted?: number; - /** - * List of unrestorable files. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly unrestorableFiles?: string[]; - /** - * Number of files detected. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly numberOfFilesDetected?: number; - /** - * Last uploaded file name. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly lastUploadedFileName?: string; - /** - * Last uploaded file time. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly lastUploadedFileTime?: Date; - /** - * The reason why restore is in Blocked state. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly blockReason?: string; -} - -/** - * A managed database resource. - */ -export interface ManagedDatabase extends TrackedResource { - /** - * Collation of the managed database. - */ - collation?: string; - /** - * Status of the database. Possible values include: 'Online', 'Offline', 'Shutdown', 'Creating', - * 'Inaccessible', 'Restoring', 'Updating' - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly status?: ManagedDatabaseStatus; - /** - * Creation date of the database. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly creationDate?: Date; - /** - * Earliest restore point in time for point in time restore. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly earliestRestorePoint?: Date; - /** - * Conditional. If createMode is PointInTimeRestore, this value is required. Specifies the point - * in time (ISO8601 format) of the source database that will be restored to create the new - * database. - */ - restorePointInTime?: Date; - /** - * Geo paired region. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly defaultSecondaryLocation?: string; - /** - * Collation of the metadata catalog. Possible values include: 'DATABASE_DEFAULT', - * 'SQL_Latin1_General_CP1_CI_AS' - */ - catalogCollation?: CatalogCollationType; - /** - * Managed database create mode. PointInTimeRestore: Create a database by restoring a point in - * time backup of an existing 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. Recovery: Creates a database by restoring a geo-replicated backup. - * RecoverableDatabaseId must be specified as the recoverable database resource ID to restore. - * RestoreLongTermRetentionBackup: Create a database by restoring from a long term retention - * backup (longTermRetentionBackupResourceId required). Possible values include: 'Default', - * 'RestoreExternalBackup', 'PointInTimeRestore', 'Recovery', 'RestoreLongTermRetentionBackup' - */ - createMode?: ManagedDatabaseCreateMode; - /** - * Conditional. If createMode is RestoreExternalBackup, this value is required. Specifies the uri - * of the storage container where backups for this restore are stored. - */ - storageContainerUri?: string; - /** - * The resource identifier of the source database associated with create operation of this - * database. - */ - sourceDatabaseId?: string; - /** - * The restorable dropped database resource id to restore when creating this database. - */ - restorableDroppedDatabaseId?: string; - /** - * Conditional. If createMode is RestoreExternalBackup, this value is required. Specifies the - * storage container sas token. - */ - storageContainerSasToken?: string; - /** - * Instance Failover Group resource identifier that this managed database belongs to. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly failoverGroupId?: string; - /** - * The resource identifier of the recoverable database associated with create operation of this - * database. - */ - recoverableDatabaseId?: string; - /** - * The name of the Long Term Retention backup to be used for restore of this managed database. - */ - longTermRetentionBackupResourceId?: string; -} - -/** - * An managed database update. - */ -export interface ManagedDatabaseUpdate { - /** - * Collation of the managed database. - */ - collation?: string; - /** - * Status of the database. Possible values include: 'Online', 'Offline', 'Shutdown', 'Creating', - * 'Inaccessible', 'Restoring', 'Updating' - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly status?: ManagedDatabaseStatus; - /** - * Creation date of the database. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly creationDate?: Date; - /** - * Earliest restore point in time for point in time restore. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly earliestRestorePoint?: Date; - /** - * Conditional. If createMode is PointInTimeRestore, this value is required. Specifies the point - * in time (ISO8601 format) of the source database that will be restored to create the new - * database. - */ - restorePointInTime?: Date; - /** - * Geo paired region. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly defaultSecondaryLocation?: string; - /** - * Collation of the metadata catalog. Possible values include: 'DATABASE_DEFAULT', - * 'SQL_Latin1_General_CP1_CI_AS' - */ - catalogCollation?: CatalogCollationType; - /** - * Managed database create mode. PointInTimeRestore: Create a database by restoring a point in - * time backup of an existing 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. Recovery: Creates a database by restoring a geo-replicated backup. - * RecoverableDatabaseId must be specified as the recoverable database resource ID to restore. - * RestoreLongTermRetentionBackup: Create a database by restoring from a long term retention - * backup (longTermRetentionBackupResourceId required). Possible values include: 'Default', - * 'RestoreExternalBackup', 'PointInTimeRestore', 'Recovery', 'RestoreLongTermRetentionBackup' - */ - createMode?: ManagedDatabaseCreateMode; - /** - * Conditional. If createMode is RestoreExternalBackup, this value is required. Specifies the uri - * of the storage container where backups for this restore are stored. - */ - storageContainerUri?: string; - /** - * The resource identifier of the source database associated with create operation of this - * database. - */ - sourceDatabaseId?: string; - /** - * The restorable dropped database resource id to restore when creating this database. - */ - restorableDroppedDatabaseId?: string; - /** - * Conditional. If createMode is RestoreExternalBackup, this value is required. Specifies the - * storage container sas token. - */ - storageContainerSasToken?: string; - /** - * Instance Failover Group resource identifier that this managed database belongs to. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly failoverGroupId?: string; - /** - * The resource identifier of the recoverable database associated with create operation of this - * database. - */ - recoverableDatabaseId?: string; - /** - * The name of the Long Term Retention backup to be used for restore of this managed database. - */ - longTermRetentionBackupResourceId?: string; - /** - * Resource tags. - */ - tags?: { [propertyName: string]: string }; -} - -/** - * Contains the information necessary to perform a complete database restore operation. - */ -export interface CompleteDatabaseRestoreDefinition { - /** - * The last backup name to apply - */ - lastBackupName: string; -} - /** * Azure Active Directory administrator. */ @@ -6257,170 +6013,430 @@ export interface SyncGroupLogProperties { * Source of the sync group log. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly source?: string; + readonly source?: string; + /** + * Details of the sync group log. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly details?: string; + /** + * TracingId of the sync group log. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly tracingId?: string; + /** + * OperationStatus of the sync group log. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly operationStatus?: string; +} + +/** + * Properties of column in sync group table. + */ +export interface SyncGroupSchemaTableColumn { + /** + * Quoted name of sync group table column. + */ + quotedName?: string; + /** + * Data size of the column. + */ + dataSize?: string; + /** + * Data type of the column. + */ + dataType?: string; +} + +/** + * Properties of table in sync group schema. + */ +export interface SyncGroupSchemaTable { + /** + * List of columns in sync group schema. + */ + columns?: SyncGroupSchemaTableColumn[]; + /** + * Quoted name of sync group schema table. + */ + quotedName?: string; +} + +/** + * Properties of sync group schema. + */ +export interface SyncGroupSchema { + /** + * List of tables in sync group schema. + */ + tables?: SyncGroupSchemaTable[]; + /** + * Name of master sync member where the schema is from. + */ + masterSyncMemberName?: string; +} + +/** + * An Azure SQL Database sync group. + */ +export interface SyncGroup extends ProxyResource { + /** + * Sync interval of the sync group. + */ + interval?: number; + /** + * Last sync time of the sync group. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly lastSyncTime?: Date; + /** + * Conflict resolution policy of the sync group. Possible values include: 'HubWin', 'MemberWin' + */ + conflictResolutionPolicy?: SyncConflictResolutionPolicy; + /** + * ARM resource id of the sync database in the sync group. + */ + syncDatabaseId?: string; + /** + * User name for the sync group hub database credential. + */ + hubDatabaseUserName?: string; + /** + * Password for the sync group hub database credential. + */ + hubDatabasePassword?: string; + /** + * Sync state of the sync group. Possible values include: 'NotReady', 'Error', 'Warning', + * 'Progressing', 'Good' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly syncState?: SyncGroupState; + /** + * Sync schema of the sync group. + */ + schema?: SyncGroupSchema; + /** + * If use private link connection is enabled. + */ + usePrivateLinkConnection?: boolean; +} + +/** + * An Azure SQL Database sync member. + */ +export interface SyncMember extends ProxyResource { + /** + * Database type of the sync member. Possible values include: 'AzureSqlDatabase', + * 'SqlServerDatabase' + */ + databaseType?: SyncMemberDbType; + /** + * ARM resource id of the sync agent in the sync member. + */ + syncAgentId?: string; + /** + * SQL Server database id of the sync member. + */ + sqlServerDatabaseId?: string; + /** + * ARM resource id of the sync member logical database, for sync members in Azure. + */ + syncMemberAzureDatabaseResourceId?: string; + /** + * Whether to use private link connection. + */ + usePrivateLinkConnection?: boolean; + /** + * Server name of the member database in the sync member + */ + serverName?: string; + /** + * Database name of the member database in the sync member. + */ + databaseName?: string; + /** + * User name of the member database in the sync member. + */ + userName?: string; + /** + * Password of the member database in the sync member. + */ + password?: string; + /** + * Sync direction of the sync member. Possible values include: 'Bidirectional', + * 'OneWayMemberToHub', 'OneWayHubToMember' + */ + syncDirection?: SyncDirection; + /** + * Sync state of the sync member. Possible values include: 'SyncInProgress', 'SyncSucceeded', + * 'SyncFailed', 'DisabledTombstoneCleanup', 'DisabledBackupRestore', + * 'SyncSucceededWithWarnings', 'SyncCancelling', 'SyncCancelled', 'UnProvisioned', + * 'Provisioning', 'Provisioned', 'ProvisionFailed', 'DeProvisioning', 'DeProvisioned', + * 'DeProvisionFailed', 'Reprovisioning', 'ReprovisionFailed', 'UnReprovisioned' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly syncState?: SyncMemberState; +} + +/** + * A managed database restore details. + */ +export interface ManagedDatabaseRestoreDetailsResult extends ProxyResource { + /** + * Restore status. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly status?: string; + /** + * Current restoring file name. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly currentRestoringFileName?: string; + /** + * Last restored file name. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly lastRestoredFileName?: string; + /** + * Last restored file time. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly lastRestoredFileTime?: Date; + /** + * Percent completed. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly percentCompleted?: number; + /** + * List of unrestorable files. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly unrestorableFiles?: string[]; + /** + * Number of files detected. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly numberOfFilesDetected?: number; + /** + * Last uploaded file name. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly lastUploadedFileName?: string; + /** + * Last uploaded file time. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly lastUploadedFileTime?: Date; + /** + * The reason why restore is in Blocked state. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly blockReason?: string; +} + +/** + * A managed database resource. + */ +export interface ManagedDatabase extends TrackedResource { + /** + * Collation of the managed database. + */ + collation?: string; + /** + * Status of the database. Possible values include: 'Online', 'Offline', 'Shutdown', 'Creating', + * 'Inaccessible', 'Restoring', 'Updating' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly status?: ManagedDatabaseStatus; + /** + * Creation date of the database. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly creationDate?: Date; + /** + * Earliest restore point in time for point in time restore. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly earliestRestorePoint?: Date; + /** + * Conditional. If createMode is PointInTimeRestore, this value is required. Specifies the point + * in time (ISO8601 format) of the source database that will be restored to create the new + * database. + */ + restorePointInTime?: Date; + /** + * Geo paired region. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly defaultSecondaryLocation?: string; + /** + * Collation of the metadata catalog. Possible values include: 'DATABASE_DEFAULT', + * 'SQL_Latin1_General_CP1_CI_AS' + */ + catalogCollation?: CatalogCollationType; /** - * Details of the sync group log. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Managed database create mode. PointInTimeRestore: Create a database by restoring a point in + * time backup of an existing 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. Recovery: Creates a database by restoring a geo-replicated backup. + * RecoverableDatabaseId must be specified as the recoverable database resource ID to restore. + * RestoreLongTermRetentionBackup: Create a database by restoring from a long term retention + * backup (longTermRetentionBackupResourceId required). Possible values include: 'Default', + * 'RestoreExternalBackup', 'PointInTimeRestore', 'Recovery', 'RestoreLongTermRetentionBackup' */ - readonly details?: string; + createMode?: ManagedDatabaseCreateMode; /** - * TracingId of the sync group log. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * Conditional. If createMode is RestoreExternalBackup, this value is required. Specifies the uri + * of the storage container where backups for this restore are stored. */ - readonly tracingId?: string; + storageContainerUri?: string; /** - * OperationStatus of the sync group log. - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The resource identifier of the source database associated with create operation of this + * database. */ - readonly operationStatus?: string; -} - -/** - * Properties of column in sync group table. - */ -export interface SyncGroupSchemaTableColumn { + sourceDatabaseId?: string; /** - * Quoted name of sync group table column. + * The restorable dropped database resource id to restore when creating this database. */ - quotedName?: string; + restorableDroppedDatabaseId?: string; /** - * Data size of the column. + * Conditional. If createMode is RestoreExternalBackup, this value is required. Specifies the + * storage container sas token. */ - dataSize?: string; + storageContainerSasToken?: string; /** - * Data type of the column. + * Instance Failover Group resource identifier that this managed database belongs to. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - dataType?: string; -} - -/** - * Properties of table in sync group schema. - */ -export interface SyncGroupSchemaTable { + readonly failoverGroupId?: string; /** - * List of columns in sync group schema. + * The resource identifier of the recoverable database associated with create operation of this + * database. */ - columns?: SyncGroupSchemaTableColumn[]; + recoverableDatabaseId?: string; /** - * Quoted name of sync group schema table. + * The name of the Long Term Retention backup to be used for restore of this managed database. */ - quotedName?: string; -} - -/** - * Properties of sync group schema. - */ -export interface SyncGroupSchema { + longTermRetentionBackupResourceId?: string; /** - * List of tables in sync group schema. + * Whether to auto complete restore of this managed database. */ - tables?: SyncGroupSchemaTable[]; + autoCompleteRestore?: boolean; /** - * Name of master sync member where the schema is from. + * Last backup file name for restore of this managed database. */ - masterSyncMemberName?: string; + lastBackupName?: string; } /** - * An Azure SQL Database sync group. + * An managed database update. */ -export interface SyncGroup extends ProxyResource { +export interface ManagedDatabaseUpdate { /** - * Sync interval of the sync group. + * Collation of the managed database. */ - interval?: number; + collation?: string; /** - * Last sync time of the sync group. + * Status of the database. Possible values include: 'Online', 'Offline', 'Shutdown', 'Creating', + * 'Inaccessible', 'Restoring', 'Updating' * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly lastSyncTime?: Date; - /** - * Conflict resolution policy of the sync group. Possible values include: 'HubWin', 'MemberWin' - */ - conflictResolutionPolicy?: SyncConflictResolutionPolicy; + readonly status?: ManagedDatabaseStatus; /** - * ARM resource id of the sync database in the sync group. + * Creation date of the database. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - syncDatabaseId?: string; + readonly creationDate?: Date; /** - * User name for the sync group hub database credential. + * Earliest restore point in time for point in time restore. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - hubDatabaseUserName?: string; + readonly earliestRestorePoint?: Date; /** - * Password for the sync group hub database credential. + * Conditional. If createMode is PointInTimeRestore, this value is required. Specifies the point + * in time (ISO8601 format) of the source database that will be restored to create the new + * database. */ - hubDatabasePassword?: string; + restorePointInTime?: Date; /** - * Sync state of the sync group. Possible values include: 'NotReady', 'Error', 'Warning', - * 'Progressing', 'Good' + * Geo paired region. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly syncState?: SyncGroupState; + readonly defaultSecondaryLocation?: string; /** - * Sync schema of the sync group. + * Collation of the metadata catalog. Possible values include: 'DATABASE_DEFAULT', + * 'SQL_Latin1_General_CP1_CI_AS' */ - schema?: SyncGroupSchema; + catalogCollation?: CatalogCollationType; /** - * If use private link connection is enabled. + * Managed database create mode. PointInTimeRestore: Create a database by restoring a point in + * time backup of an existing 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. Recovery: Creates a database by restoring a geo-replicated backup. + * RecoverableDatabaseId must be specified as the recoverable database resource ID to restore. + * RestoreLongTermRetentionBackup: Create a database by restoring from a long term retention + * backup (longTermRetentionBackupResourceId required). Possible values include: 'Default', + * 'RestoreExternalBackup', 'PointInTimeRestore', 'Recovery', 'RestoreLongTermRetentionBackup' */ - usePrivateLinkConnection?: boolean; -} - -/** - * An Azure SQL Database sync member. - */ -export interface SyncMember extends ProxyResource { + createMode?: ManagedDatabaseCreateMode; /** - * Database type of the sync member. Possible values include: 'AzureSqlDatabase', - * 'SqlServerDatabase' + * Conditional. If createMode is RestoreExternalBackup, this value is required. Specifies the uri + * of the storage container where backups for this restore are stored. */ - databaseType?: SyncMemberDbType; + storageContainerUri?: string; /** - * ARM resource id of the sync agent in the sync member. + * The resource identifier of the source database associated with create operation of this + * database. */ - syncAgentId?: string; + sourceDatabaseId?: string; /** - * SQL Server database id of the sync member. + * The restorable dropped database resource id to restore when creating this database. */ - sqlServerDatabaseId?: string; + restorableDroppedDatabaseId?: string; /** - * ARM resource id of the sync member logical database, for sync members in Azure. + * Conditional. If createMode is RestoreExternalBackup, this value is required. Specifies the + * storage container sas token. */ - syncMemberAzureDatabaseResourceId?: string; + storageContainerSasToken?: string; /** - * Whether to use private link connection. + * Instance Failover Group resource identifier that this managed database belongs to. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - usePrivateLinkConnection?: boolean; + readonly failoverGroupId?: string; /** - * Server name of the member database in the sync member + * The resource identifier of the recoverable database associated with create operation of this + * database. */ - serverName?: string; + recoverableDatabaseId?: string; /** - * Database name of the member database in the sync member. + * The name of the Long Term Retention backup to be used for restore of this managed database. */ - databaseName?: string; + longTermRetentionBackupResourceId?: string; /** - * User name of the member database in the sync member. + * Whether to auto complete restore of this managed database. */ - userName?: string; + autoCompleteRestore?: boolean; /** - * Password of the member database in the sync member. + * Last backup file name for restore of this managed database. */ - password?: string; + lastBackupName?: string; /** - * Sync direction of the sync member. Possible values include: 'Bidirectional', - * 'OneWayMemberToHub', 'OneWayHubToMember' + * Resource tags. */ - syncDirection?: SyncDirection; + tags?: { [propertyName: string]: string }; +} + +/** + * Contains the information necessary to perform a complete database restore operation. + */ +export interface CompleteDatabaseRestoreDefinition { /** - * Sync state of the sync member. Possible values include: 'SyncInProgress', 'SyncSucceeded', - * 'SyncFailed', 'DisabledTombstoneCleanup', 'DisabledBackupRestore', - * 'SyncSucceededWithWarnings', 'SyncCancelling', 'SyncCancelled', 'UnProvisioned', - * 'Provisioning', 'Provisioned', 'ProvisionFailed', 'DeProvisioning', 'DeProvisioned', - * 'DeProvisionFailed', 'Reprovisioning', 'ReprovisionFailed', 'UnReprovisioned' - * **NOTE: This property will not be serialized. It can only be populated by the server.** + * The last backup name to apply */ - readonly syncState?: SyncMemberState; + lastBackupName: string; } /** @@ -7756,19 +7772,6 @@ export interface WorkloadClassifierListResult extends Array readonly nextLink?: string; } -/** - * @interface - * A list of managed databases. - * @extends Array - */ -export interface ManagedDatabaseListResult extends Array { - /** - * Link to retrieve next page of results. - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly nextLink?: string; -} - /** * @interface * A list of active directory administrators. @@ -7860,6 +7863,19 @@ export interface SyncMemberListResult extends Array { readonly nextLink?: string; } +/** + * @interface + * A list of managed databases. + * @extends Array + */ +export interface ManagedDatabaseListResult extends Array { + /** + * Link to retrieve next page of results. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; +} + /** * Defines values for ServerConnectionType. * Possible values include: 'Default', 'Proxy', 'Redirect' @@ -8489,24 +8505,6 @@ export type PerformanceLevelUnit = 'DTU' | 'VCores'; */ export type PauseDelayTimeUnit = 'Minutes'; -/** - * Defines values for ManagedDatabaseStatus. - * Possible values include: 'Online', 'Offline', 'Shutdown', 'Creating', 'Inaccessible', - * 'Restoring', 'Updating' - * @readonly - * @enum {string} - */ -export type ManagedDatabaseStatus = 'Online' | 'Offline' | 'Shutdown' | 'Creating' | 'Inaccessible' | 'Restoring' | 'Updating'; - -/** - * Defines values for ManagedDatabaseCreateMode. - * Possible values include: 'Default', 'RestoreExternalBackup', 'PointInTimeRestore', 'Recovery', - * 'RestoreLongTermRetentionBackup' - * @readonly - * @enum {string} - */ -export type ManagedDatabaseCreateMode = 'Default' | 'RestoreExternalBackup' | 'PointInTimeRestore' | 'Recovery' | 'RestoreLongTermRetentionBackup'; - /** * Defines values for SyncGroupLogType. * Possible values include: 'All', 'Error', 'Warning', 'Success' @@ -8537,19 +8535,37 @@ export type SyncGroupState = 'NotReady' | 'Error' | 'Warning' | 'Progressing' | * @readonly * @enum {string} */ -export type SyncDirection = 'Bidirectional' | 'OneWayMemberToHub' | 'OneWayHubToMember'; +export type SyncDirection = 'Bidirectional' | 'OneWayMemberToHub' | 'OneWayHubToMember'; + +/** + * Defines values for SyncMemberState. + * Possible values include: 'SyncInProgress', 'SyncSucceeded', 'SyncFailed', + * 'DisabledTombstoneCleanup', 'DisabledBackupRestore', 'SyncSucceededWithWarnings', + * 'SyncCancelling', 'SyncCancelled', 'UnProvisioned', 'Provisioning', 'Provisioned', + * 'ProvisionFailed', 'DeProvisioning', 'DeProvisioned', 'DeProvisionFailed', 'Reprovisioning', + * 'ReprovisionFailed', 'UnReprovisioned' + * @readonly + * @enum {string} + */ +export type SyncMemberState = 'SyncInProgress' | 'SyncSucceeded' | 'SyncFailed' | 'DisabledTombstoneCleanup' | 'DisabledBackupRestore' | 'SyncSucceededWithWarnings' | 'SyncCancelling' | 'SyncCancelled' | 'UnProvisioned' | 'Provisioning' | 'Provisioned' | 'ProvisionFailed' | 'DeProvisioning' | 'DeProvisioned' | 'DeProvisionFailed' | 'Reprovisioning' | 'ReprovisionFailed' | 'UnReprovisioned'; + +/** + * Defines values for ManagedDatabaseStatus. + * Possible values include: 'Online', 'Offline', 'Shutdown', 'Creating', 'Inaccessible', + * 'Restoring', 'Updating' + * @readonly + * @enum {string} + */ +export type ManagedDatabaseStatus = 'Online' | 'Offline' | 'Shutdown' | 'Creating' | 'Inaccessible' | 'Restoring' | 'Updating'; /** - * Defines values for SyncMemberState. - * Possible values include: 'SyncInProgress', 'SyncSucceeded', 'SyncFailed', - * 'DisabledTombstoneCleanup', 'DisabledBackupRestore', 'SyncSucceededWithWarnings', - * 'SyncCancelling', 'SyncCancelled', 'UnProvisioned', 'Provisioning', 'Provisioned', - * 'ProvisionFailed', 'DeProvisioning', 'DeProvisioned', 'DeProvisionFailed', 'Reprovisioning', - * 'ReprovisionFailed', 'UnReprovisioned' + * Defines values for ManagedDatabaseCreateMode. + * Possible values include: 'Default', 'RestoreExternalBackup', 'PointInTimeRestore', 'Recovery', + * 'RestoreLongTermRetentionBackup' * @readonly * @enum {string} */ -export type SyncMemberState = 'SyncInProgress' | 'SyncSucceeded' | 'SyncFailed' | 'DisabledTombstoneCleanup' | 'DisabledBackupRestore' | 'SyncSucceededWithWarnings' | 'SyncCancelling' | 'SyncCancelled' | 'UnProvisioned' | 'Provisioning' | 'Provisioned' | 'ProvisionFailed' | 'DeProvisioning' | 'DeProvisioned' | 'DeProvisionFailed' | 'Reprovisioning' | 'ReprovisionFailed' | 'UnReprovisioned'; +export type ManagedDatabaseCreateMode = 'Default' | 'RestoreExternalBackup' | 'PointInTimeRestore' | 'Recovery' | 'RestoreLongTermRetentionBackup'; /** * Defines values for LongTermRetentionDatabaseState. @@ -16429,7 +16445,7 @@ export type WorkloadClassifiersListByWorkloadGroupNextResponse = WorkloadClassif /** * Contains response data for the get operation. */ -export type ManagedDatabaseRestoreDetailsGetResponse = ManagedDatabaseRestoreDetailsResult & { +export type ServerAzureADAdministratorsGetResponse = ServerAzureADAdministrator & { /** * The underlying HTTP response. */ @@ -16442,14 +16458,14 @@ export type ManagedDatabaseRestoreDetailsGetResponse = ManagedDatabaseRestoreDet /** * The response body as parsed JSON or XML */ - parsedBody: ManagedDatabaseRestoreDetailsResult; + parsedBody: ServerAzureADAdministrator; }; }; /** - * Contains response data for the listByInstance operation. + * Contains response data for the createOrUpdate operation. */ -export type ManagedDatabasesListByInstanceResponse = ManagedDatabaseListResult & { +export type ServerAzureADAdministratorsCreateOrUpdateResponse = ServerAzureADAdministrator & { /** * The underlying HTTP response. */ @@ -16462,14 +16478,14 @@ export type ManagedDatabasesListByInstanceResponse = ManagedDatabaseListResult & /** * The response body as parsed JSON or XML */ - parsedBody: ManagedDatabaseListResult; + parsedBody: ServerAzureADAdministrator; }; }; /** - * Contains response data for the get operation. + * Contains response data for the listByServer operation. */ -export type ManagedDatabasesGetResponse = ManagedDatabase & { +export type ServerAzureADAdministratorsListByServerResponse = AdministratorListResult & { /** * The underlying HTTP response. */ @@ -16482,14 +16498,14 @@ export type ManagedDatabasesGetResponse = ManagedDatabase & { /** * The response body as parsed JSON or XML */ - parsedBody: ManagedDatabase; + parsedBody: AdministratorListResult; }; }; /** - * Contains response data for the createOrUpdate operation. + * Contains response data for the disableAzureADOnlyAuthentication operation. */ -export type ManagedDatabasesCreateOrUpdateResponse = ManagedDatabase & { +export type ServerAzureADAdministratorsDisableAzureADOnlyAuthenticationResponse = ServerAzureADAdministrator & { /** * The underlying HTTP response. */ @@ -16502,14 +16518,14 @@ export type ManagedDatabasesCreateOrUpdateResponse = ManagedDatabase & { /** * The response body as parsed JSON or XML */ - parsedBody: ManagedDatabase; + parsedBody: ServerAzureADAdministrator; }; }; /** - * Contains response data for the update operation. + * Contains response data for the beginCreateOrUpdate operation. */ -export type ManagedDatabasesUpdateResponse = ManagedDatabase & { +export type ServerAzureADAdministratorsBeginCreateOrUpdateResponse = ServerAzureADAdministrator & { /** * The underlying HTTP response. */ @@ -16522,14 +16538,14 @@ export type ManagedDatabasesUpdateResponse = ManagedDatabase & { /** * The response body as parsed JSON or XML */ - parsedBody: ManagedDatabase; + parsedBody: ServerAzureADAdministrator; }; }; /** - * Contains response data for the listInaccessibleByInstance operation. + * Contains response data for the beginDisableAzureADOnlyAuthentication operation. */ -export type ManagedDatabasesListInaccessibleByInstanceResponse = ManagedDatabaseListResult & { +export type ServerAzureADAdministratorsBeginDisableAzureADOnlyAuthenticationResponse = ServerAzureADAdministrator & { /** * The underlying HTTP response. */ @@ -16542,14 +16558,14 @@ export type ManagedDatabasesListInaccessibleByInstanceResponse = ManagedDatabase /** * The response body as parsed JSON or XML */ - parsedBody: ManagedDatabaseListResult; + parsedBody: ServerAzureADAdministrator; }; }; /** - * Contains response data for the beginCreateOrUpdate operation. + * Contains response data for the listByServerNext operation. */ -export type ManagedDatabasesBeginCreateOrUpdateResponse = ManagedDatabase & { +export type ServerAzureADAdministratorsListByServerNextResponse = AdministratorListResult & { /** * The underlying HTTP response. */ @@ -16562,14 +16578,14 @@ export type ManagedDatabasesBeginCreateOrUpdateResponse = ManagedDatabase & { /** * The response body as parsed JSON or XML */ - parsedBody: ManagedDatabase; + parsedBody: AdministratorListResult; }; }; /** - * Contains response data for the beginUpdate operation. + * Contains response data for the listByManagedInstance operation. */ -export type ManagedDatabasesBeginUpdateResponse = ManagedDatabase & { +export type ManagedInstanceOperationsListByManagedInstanceResponse = ManagedInstanceOperationListResult & { /** * The underlying HTTP response. */ @@ -16582,14 +16598,14 @@ export type ManagedDatabasesBeginUpdateResponse = ManagedDatabase & { /** * The response body as parsed JSON or XML */ - parsedBody: ManagedDatabase; + parsedBody: ManagedInstanceOperationListResult; }; }; /** - * Contains response data for the listByInstanceNext operation. + * Contains response data for the get operation. */ -export type ManagedDatabasesListByInstanceNextResponse = ManagedDatabaseListResult & { +export type ManagedInstanceOperationsGetResponse = ManagedInstanceOperation & { /** * The underlying HTTP response. */ @@ -16602,14 +16618,14 @@ export type ManagedDatabasesListByInstanceNextResponse = ManagedDatabaseListResu /** * The response body as parsed JSON or XML */ - parsedBody: ManagedDatabaseListResult; + parsedBody: ManagedInstanceOperation; }; }; /** - * Contains response data for the listInaccessibleByInstanceNext operation. + * Contains response data for the listByManagedInstanceNext operation. */ -export type ManagedDatabasesListInaccessibleByInstanceNextResponse = ManagedDatabaseListResult & { +export type ManagedInstanceOperationsListByManagedInstanceNextResponse = ManagedInstanceOperationListResult & { /** * The underlying HTTP response. */ @@ -16622,14 +16638,14 @@ export type ManagedDatabasesListInaccessibleByInstanceNextResponse = ManagedData /** * The response body as parsed JSON or XML */ - parsedBody: ManagedDatabaseListResult; + parsedBody: ManagedInstanceOperationListResult; }; }; /** - * Contains response data for the get operation. + * Contains response data for the listSyncDatabaseIds operation. */ -export type ServerAzureADAdministratorsGetResponse = ServerAzureADAdministrator & { +export type SyncGroupsListSyncDatabaseIdsResponse = SyncDatabaseIdListResult & { /** * The underlying HTTP response. */ @@ -16642,14 +16658,14 @@ export type ServerAzureADAdministratorsGetResponse = ServerAzureADAdministrator /** * The response body as parsed JSON or XML */ - parsedBody: ServerAzureADAdministrator; + parsedBody: SyncDatabaseIdListResult; }; }; /** - * Contains response data for the createOrUpdate operation. + * Contains response data for the listHubSchemas operation. */ -export type ServerAzureADAdministratorsCreateOrUpdateResponse = ServerAzureADAdministrator & { +export type SyncGroupsListHubSchemasResponse = SyncFullSchemaPropertiesListResult & { /** * The underlying HTTP response. */ @@ -16662,14 +16678,14 @@ export type ServerAzureADAdministratorsCreateOrUpdateResponse = ServerAzureADAdm /** * The response body as parsed JSON or XML */ - parsedBody: ServerAzureADAdministrator; + parsedBody: SyncFullSchemaPropertiesListResult; }; }; /** - * Contains response data for the listByServer operation. + * Contains response data for the listLogs operation. */ -export type ServerAzureADAdministratorsListByServerResponse = AdministratorListResult & { +export type SyncGroupsListLogsResponse = SyncGroupLogListResult & { /** * The underlying HTTP response. */ @@ -16682,14 +16698,14 @@ export type ServerAzureADAdministratorsListByServerResponse = AdministratorListR /** * The response body as parsed JSON or XML */ - parsedBody: AdministratorListResult; + parsedBody: SyncGroupLogListResult; }; }; /** - * Contains response data for the disableAzureADOnlyAuthentication operation. + * Contains response data for the get operation. */ -export type ServerAzureADAdministratorsDisableAzureADOnlyAuthenticationResponse = ServerAzureADAdministrator & { +export type SyncGroupsGetResponse = SyncGroup & { /** * The underlying HTTP response. */ @@ -16702,14 +16718,14 @@ export type ServerAzureADAdministratorsDisableAzureADOnlyAuthenticationResponse /** * The response body as parsed JSON or XML */ - parsedBody: ServerAzureADAdministrator; + parsedBody: SyncGroup; }; }; /** - * Contains response data for the beginCreateOrUpdate operation. + * Contains response data for the createOrUpdate operation. */ -export type ServerAzureADAdministratorsBeginCreateOrUpdateResponse = ServerAzureADAdministrator & { +export type SyncGroupsCreateOrUpdateResponse = SyncGroup & { /** * The underlying HTTP response. */ @@ -16722,14 +16738,14 @@ export type ServerAzureADAdministratorsBeginCreateOrUpdateResponse = ServerAzure /** * The response body as parsed JSON or XML */ - parsedBody: ServerAzureADAdministrator; + parsedBody: SyncGroup; }; }; /** - * Contains response data for the beginDisableAzureADOnlyAuthentication operation. + * Contains response data for the update operation. */ -export type ServerAzureADAdministratorsBeginDisableAzureADOnlyAuthenticationResponse = ServerAzureADAdministrator & { +export type SyncGroupsUpdateResponse = SyncGroup & { /** * The underlying HTTP response. */ @@ -16742,14 +16758,14 @@ export type ServerAzureADAdministratorsBeginDisableAzureADOnlyAuthenticationResp /** * The response body as parsed JSON or XML */ - parsedBody: ServerAzureADAdministrator; + parsedBody: SyncGroup; }; }; /** - * Contains response data for the listByServerNext operation. + * Contains response data for the listByDatabase operation. */ -export type ServerAzureADAdministratorsListByServerNextResponse = AdministratorListResult & { +export type SyncGroupsListByDatabaseResponse = SyncGroupListResult & { /** * The underlying HTTP response. */ @@ -16762,14 +16778,14 @@ export type ServerAzureADAdministratorsListByServerNextResponse = AdministratorL /** * The response body as parsed JSON or XML */ - parsedBody: AdministratorListResult; + parsedBody: SyncGroupListResult; }; }; /** - * Contains response data for the listByManagedInstance operation. + * Contains response data for the beginCreateOrUpdate operation. */ -export type ManagedInstanceOperationsListByManagedInstanceResponse = ManagedInstanceOperationListResult & { +export type SyncGroupsBeginCreateOrUpdateResponse = SyncGroup & { /** * The underlying HTTP response. */ @@ -16782,14 +16798,14 @@ export type ManagedInstanceOperationsListByManagedInstanceResponse = ManagedInst /** * The response body as parsed JSON or XML */ - parsedBody: ManagedInstanceOperationListResult; + parsedBody: SyncGroup; }; }; /** - * Contains response data for the get operation. + * Contains response data for the beginUpdate operation. */ -export type ManagedInstanceOperationsGetResponse = ManagedInstanceOperation & { +export type SyncGroupsBeginUpdateResponse = SyncGroup & { /** * The underlying HTTP response. */ @@ -16802,14 +16818,14 @@ export type ManagedInstanceOperationsGetResponse = ManagedInstanceOperation & { /** * The response body as parsed JSON or XML */ - parsedBody: ManagedInstanceOperation; + parsedBody: SyncGroup; }; }; /** - * Contains response data for the listByManagedInstanceNext operation. + * Contains response data for the listSyncDatabaseIdsNext operation. */ -export type ManagedInstanceOperationsListByManagedInstanceNextResponse = ManagedInstanceOperationListResult & { +export type SyncGroupsListSyncDatabaseIdsNextResponse = SyncDatabaseIdListResult & { /** * The underlying HTTP response. */ @@ -16822,14 +16838,14 @@ export type ManagedInstanceOperationsListByManagedInstanceNextResponse = Managed /** * The response body as parsed JSON or XML */ - parsedBody: ManagedInstanceOperationListResult; + parsedBody: SyncDatabaseIdListResult; }; }; /** - * Contains response data for the listSyncDatabaseIds operation. + * Contains response data for the listHubSchemasNext operation. */ -export type SyncGroupsListSyncDatabaseIdsResponse = SyncDatabaseIdListResult & { +export type SyncGroupsListHubSchemasNextResponse = SyncFullSchemaPropertiesListResult & { /** * The underlying HTTP response. */ @@ -16842,14 +16858,14 @@ export type SyncGroupsListSyncDatabaseIdsResponse = SyncDatabaseIdListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: SyncDatabaseIdListResult; + parsedBody: SyncFullSchemaPropertiesListResult; }; }; /** - * Contains response data for the listHubSchemas operation. + * Contains response data for the listLogsNext operation. */ -export type SyncGroupsListHubSchemasResponse = SyncFullSchemaPropertiesListResult & { +export type SyncGroupsListLogsNextResponse = SyncGroupLogListResult & { /** * The underlying HTTP response. */ @@ -16862,14 +16878,14 @@ export type SyncGroupsListHubSchemasResponse = SyncFullSchemaPropertiesListResul /** * The response body as parsed JSON or XML */ - parsedBody: SyncFullSchemaPropertiesListResult; + parsedBody: SyncGroupLogListResult; }; }; /** - * Contains response data for the listLogs operation. + * Contains response data for the listByDatabaseNext operation. */ -export type SyncGroupsListLogsResponse = SyncGroupLogListResult & { +export type SyncGroupsListByDatabaseNextResponse = SyncGroupListResult & { /** * The underlying HTTP response. */ @@ -16882,14 +16898,14 @@ export type SyncGroupsListLogsResponse = SyncGroupLogListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: SyncGroupLogListResult; + parsedBody: SyncGroupListResult; }; }; /** * Contains response data for the get operation. */ -export type SyncGroupsGetResponse = SyncGroup & { +export type SyncMembersGetResponse = SyncMember & { /** * The underlying HTTP response. */ @@ -16902,14 +16918,14 @@ export type SyncGroupsGetResponse = SyncGroup & { /** * The response body as parsed JSON or XML */ - parsedBody: SyncGroup; + parsedBody: SyncMember; }; }; /** * Contains response data for the createOrUpdate operation. */ -export type SyncGroupsCreateOrUpdateResponse = SyncGroup & { +export type SyncMembersCreateOrUpdateResponse = SyncMember & { /** * The underlying HTTP response. */ @@ -16922,14 +16938,14 @@ export type SyncGroupsCreateOrUpdateResponse = SyncGroup & { /** * The response body as parsed JSON or XML */ - parsedBody: SyncGroup; + parsedBody: SyncMember; }; }; /** * Contains response data for the update operation. */ -export type SyncGroupsUpdateResponse = SyncGroup & { +export type SyncMembersUpdateResponse = SyncMember & { /** * The underlying HTTP response. */ @@ -16942,14 +16958,14 @@ export type SyncGroupsUpdateResponse = SyncGroup & { /** * The response body as parsed JSON or XML */ - parsedBody: SyncGroup; + parsedBody: SyncMember; }; }; /** - * Contains response data for the listByDatabase operation. + * Contains response data for the listBySyncGroup operation. */ -export type SyncGroupsListByDatabaseResponse = SyncGroupListResult & { +export type SyncMembersListBySyncGroupResponse = SyncMemberListResult & { /** * The underlying HTTP response. */ @@ -16962,14 +16978,14 @@ export type SyncGroupsListByDatabaseResponse = SyncGroupListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: SyncGroupListResult; + parsedBody: SyncMemberListResult; }; }; /** - * Contains response data for the beginCreateOrUpdate operation. + * Contains response data for the listMemberSchemas operation. */ -export type SyncGroupsBeginCreateOrUpdateResponse = SyncGroup & { +export type SyncMembersListMemberSchemasResponse = SyncFullSchemaPropertiesListResult & { /** * The underlying HTTP response. */ @@ -16982,14 +16998,14 @@ export type SyncGroupsBeginCreateOrUpdateResponse = SyncGroup & { /** * The response body as parsed JSON or XML */ - parsedBody: SyncGroup; + parsedBody: SyncFullSchemaPropertiesListResult; }; }; /** - * Contains response data for the beginUpdate operation. + * Contains response data for the beginCreateOrUpdate operation. */ -export type SyncGroupsBeginUpdateResponse = SyncGroup & { +export type SyncMembersBeginCreateOrUpdateResponse = SyncMember & { /** * The underlying HTTP response. */ @@ -17002,14 +17018,14 @@ export type SyncGroupsBeginUpdateResponse = SyncGroup & { /** * The response body as parsed JSON or XML */ - parsedBody: SyncGroup; + parsedBody: SyncMember; }; }; /** - * Contains response data for the listSyncDatabaseIdsNext operation. + * Contains response data for the beginUpdate operation. */ -export type SyncGroupsListSyncDatabaseIdsNextResponse = SyncDatabaseIdListResult & { +export type SyncMembersBeginUpdateResponse = SyncMember & { /** * The underlying HTTP response. */ @@ -17022,14 +17038,14 @@ export type SyncGroupsListSyncDatabaseIdsNextResponse = SyncDatabaseIdListResult /** * The response body as parsed JSON or XML */ - parsedBody: SyncDatabaseIdListResult; + parsedBody: SyncMember; }; }; /** - * Contains response data for the listHubSchemasNext operation. + * Contains response data for the listBySyncGroupNext operation. */ -export type SyncGroupsListHubSchemasNextResponse = SyncFullSchemaPropertiesListResult & { +export type SyncMembersListBySyncGroupNextResponse = SyncMemberListResult & { /** * The underlying HTTP response. */ @@ -17042,14 +17058,14 @@ export type SyncGroupsListHubSchemasNextResponse = SyncFullSchemaPropertiesListR /** * The response body as parsed JSON or XML */ - parsedBody: SyncFullSchemaPropertiesListResult; + parsedBody: SyncMemberListResult; }; }; /** - * Contains response data for the listLogsNext operation. + * Contains response data for the listMemberSchemasNext operation. */ -export type SyncGroupsListLogsNextResponse = SyncGroupLogListResult & { +export type SyncMembersListMemberSchemasNextResponse = SyncFullSchemaPropertiesListResult & { /** * The underlying HTTP response. */ @@ -17062,14 +17078,14 @@ export type SyncGroupsListLogsNextResponse = SyncGroupLogListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: SyncGroupLogListResult; + parsedBody: SyncFullSchemaPropertiesListResult; }; }; /** - * Contains response data for the listByDatabaseNext operation. + * Contains response data for the get operation. */ -export type SyncGroupsListByDatabaseNextResponse = SyncGroupListResult & { +export type ManagedDatabaseRestoreDetailsGetResponse = ManagedDatabaseRestoreDetailsResult & { /** * The underlying HTTP response. */ @@ -17082,14 +17098,14 @@ export type SyncGroupsListByDatabaseNextResponse = SyncGroupListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: SyncGroupListResult; + parsedBody: ManagedDatabaseRestoreDetailsResult; }; }; /** - * Contains response data for the get operation. + * Contains response data for the listByInstance operation. */ -export type SyncMembersGetResponse = SyncMember & { +export type ManagedDatabasesListByInstanceResponse = ManagedDatabaseListResult & { /** * The underlying HTTP response. */ @@ -17102,14 +17118,14 @@ export type SyncMembersGetResponse = SyncMember & { /** * The response body as parsed JSON or XML */ - parsedBody: SyncMember; + parsedBody: ManagedDatabaseListResult; }; }; /** - * Contains response data for the createOrUpdate operation. + * Contains response data for the get operation. */ -export type SyncMembersCreateOrUpdateResponse = SyncMember & { +export type ManagedDatabasesGetResponse = ManagedDatabase & { /** * The underlying HTTP response. */ @@ -17122,14 +17138,14 @@ export type SyncMembersCreateOrUpdateResponse = SyncMember & { /** * The response body as parsed JSON or XML */ - parsedBody: SyncMember; + parsedBody: ManagedDatabase; }; }; /** - * Contains response data for the update operation. + * Contains response data for the createOrUpdate operation. */ -export type SyncMembersUpdateResponse = SyncMember & { +export type ManagedDatabasesCreateOrUpdateResponse = ManagedDatabase & { /** * The underlying HTTP response. */ @@ -17142,14 +17158,14 @@ export type SyncMembersUpdateResponse = SyncMember & { /** * The response body as parsed JSON or XML */ - parsedBody: SyncMember; + parsedBody: ManagedDatabase; }; }; /** - * Contains response data for the listBySyncGroup operation. + * Contains response data for the update operation. */ -export type SyncMembersListBySyncGroupResponse = SyncMemberListResult & { +export type ManagedDatabasesUpdateResponse = ManagedDatabase & { /** * The underlying HTTP response. */ @@ -17162,14 +17178,14 @@ export type SyncMembersListBySyncGroupResponse = SyncMemberListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: SyncMemberListResult; + parsedBody: ManagedDatabase; }; }; /** - * Contains response data for the listMemberSchemas operation. + * Contains response data for the listInaccessibleByInstance operation. */ -export type SyncMembersListMemberSchemasResponse = SyncFullSchemaPropertiesListResult & { +export type ManagedDatabasesListInaccessibleByInstanceResponse = ManagedDatabaseListResult & { /** * The underlying HTTP response. */ @@ -17182,14 +17198,14 @@ export type SyncMembersListMemberSchemasResponse = SyncFullSchemaPropertiesListR /** * The response body as parsed JSON or XML */ - parsedBody: SyncFullSchemaPropertiesListResult; + parsedBody: ManagedDatabaseListResult; }; }; /** * Contains response data for the beginCreateOrUpdate operation. */ -export type SyncMembersBeginCreateOrUpdateResponse = SyncMember & { +export type ManagedDatabasesBeginCreateOrUpdateResponse = ManagedDatabase & { /** * The underlying HTTP response. */ @@ -17202,14 +17218,14 @@ export type SyncMembersBeginCreateOrUpdateResponse = SyncMember & { /** * The response body as parsed JSON or XML */ - parsedBody: SyncMember; + parsedBody: ManagedDatabase; }; }; /** * Contains response data for the beginUpdate operation. */ -export type SyncMembersBeginUpdateResponse = SyncMember & { +export type ManagedDatabasesBeginUpdateResponse = ManagedDatabase & { /** * The underlying HTTP response. */ @@ -17222,14 +17238,14 @@ export type SyncMembersBeginUpdateResponse = SyncMember & { /** * The response body as parsed JSON or XML */ - parsedBody: SyncMember; + parsedBody: ManagedDatabase; }; }; /** - * Contains response data for the listBySyncGroupNext operation. + * Contains response data for the listByInstanceNext operation. */ -export type SyncMembersListBySyncGroupNextResponse = SyncMemberListResult & { +export type ManagedDatabasesListByInstanceNextResponse = ManagedDatabaseListResult & { /** * The underlying HTTP response. */ @@ -17242,14 +17258,14 @@ export type SyncMembersListBySyncGroupNextResponse = SyncMemberListResult & { /** * The response body as parsed JSON or XML */ - parsedBody: SyncMemberListResult; + parsedBody: ManagedDatabaseListResult; }; }; /** - * Contains response data for the listMemberSchemasNext operation. + * Contains response data for the listInaccessibleByInstanceNext operation. */ -export type SyncMembersListMemberSchemasNextResponse = SyncFullSchemaPropertiesListResult & { +export type ManagedDatabasesListInaccessibleByInstanceNextResponse = ManagedDatabaseListResult & { /** * The underlying HTTP response. */ @@ -17262,6 +17278,6 @@ export type SyncMembersListMemberSchemasNextResponse = SyncFullSchemaPropertiesL /** * The response body as parsed JSON or XML */ - parsedBody: SyncFullSchemaPropertiesListResult; + parsedBody: ManagedDatabaseListResult; }; }; diff --git a/sdk/sql/arm-sql/src/models/mappers.ts b/sdk/sql/arm-sql/src/models/mappers.ts index 72d012fd8ede..707dd14c21db 100644 --- a/sdk/sql/arm-sql/src/models/mappers.ts +++ b/sdk/sql/arm-sql/src/models/mappers.ts @@ -8424,457 +8424,580 @@ export const WorkloadClassifier: msRest.CompositeMapper = { } }; -export const ManagedDatabaseRestoreDetailsResult: msRest.CompositeMapper = { - serializedName: "ManagedDatabaseRestoreDetailsResult", +export const ServerAzureADAdministrator: msRest.CompositeMapper = { + serializedName: "ServerAzureADAdministrator", type: { name: "Composite", - className: "ManagedDatabaseRestoreDetailsResult", + className: "ServerAzureADAdministrator", modelProperties: { ...ProxyResource.type.modelProperties, - status: { - readOnly: true, - serializedName: "properties.status", + administratorType: { + required: true, + isConstant: true, + serializedName: "properties.administratorType", + defaultValue: 'ActiveDirectory', type: { name: "String" } }, - currentRestoringFileName: { - readOnly: true, - serializedName: "properties.currentRestoringFileName", + login: { + required: true, + serializedName: "properties.login", type: { name: "String" } }, - lastRestoredFileName: { - readOnly: true, - serializedName: "properties.lastRestoredFileName", + sid: { + required: true, + serializedName: "properties.sid", + type: { + name: "Uuid" + } + }, + tenantId: { + serializedName: "properties.tenantId", + type: { + name: "Uuid" + } + }, + azureADOnlyAuthentication: { + serializedName: "properties.azureADOnlyAuthentication", + type: { + name: "Boolean" + } + } + } + } +}; + +export const UpsertManagedServerOperationParameters: msRest.CompositeMapper = { + serializedName: "UpsertManagedServerOperationParameters", + type: { + name: "Composite", + className: "UpsertManagedServerOperationParameters", + modelProperties: { + family: { + serializedName: "family", type: { name: "String" } }, - lastRestoredFileTime: { - readOnly: true, - serializedName: "properties.lastRestoredFileTime", + tier: { + serializedName: "tier", type: { - name: "DateTime" + name: "String" } }, - percentCompleted: { - readOnly: true, - serializedName: "properties.percentCompleted", + vCores: { + serializedName: "vCores", type: { name: "Number" } }, - unrestorableFiles: { + storageSizeInGB: { + serializedName: "storageSizeInGB", + type: { + name: "Number" + } + } + } + } +}; + +export const ManagedInstanceOperationParametersPair: msRest.CompositeMapper = { + serializedName: "ManagedInstanceOperationParametersPair", + type: { + name: "Composite", + className: "ManagedInstanceOperationParametersPair", + modelProperties: { + currentParameters: { readOnly: true, - serializedName: "properties.unrestorableFiles", + serializedName: "currentParameters", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "Composite", + className: "UpsertManagedServerOperationParameters" } }, - numberOfFilesDetected: { + requestedParameters: { readOnly: true, - serializedName: "properties.numberOfFilesDetected", + serializedName: "requestedParameters", + type: { + name: "Composite", + className: "UpsertManagedServerOperationParameters" + } + } + } + } +}; + +export const UpsertManagedServerOperationStep: msRest.CompositeMapper = { + serializedName: "UpsertManagedServerOperationStep", + type: { + name: "Composite", + className: "UpsertManagedServerOperationStep", + modelProperties: { + order: { + serializedName: "order", type: { name: "Number" } }, - lastUploadedFileName: { + name: { + serializedName: "name", + type: { + name: "String" + } + }, + status: { + serializedName: "status", + type: { + name: "String" + } + } + } + } +}; + +export const ManagedInstanceOperationSteps: msRest.CompositeMapper = { + serializedName: "ManagedInstanceOperationSteps", + type: { + name: "Composite", + className: "ManagedInstanceOperationSteps", + modelProperties: { + totalSteps: { readOnly: true, - serializedName: "properties.lastUploadedFileName", + serializedName: "totalSteps", type: { name: "String" } }, - lastUploadedFileTime: { + currentStep: { readOnly: true, - serializedName: "properties.lastUploadedFileTime", + serializedName: "currentStep", type: { - name: "DateTime" + name: "Number" } }, - blockReason: { + stepsList: { readOnly: true, - serializedName: "properties.blockReason", + serializedName: "stepsList", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "UpsertManagedServerOperationStep" + } + } } } } } }; -export const ManagedDatabase: msRest.CompositeMapper = { - serializedName: "ManagedDatabase", +export const ManagedInstanceOperation: msRest.CompositeMapper = { + serializedName: "ManagedInstanceOperation", type: { name: "Composite", - className: "ManagedDatabase", + className: "ManagedInstanceOperation", modelProperties: { - ...TrackedResource.type.modelProperties, - collation: { - serializedName: "properties.collation", + ...ProxyResource.type.modelProperties, + managedInstanceName: { + readOnly: true, + serializedName: "properties.managedInstanceName", type: { name: "String" } }, - status: { + operation: { readOnly: true, - serializedName: "properties.status", + serializedName: "properties.operation", type: { name: "String" } }, - creationDate: { + operationFriendlyName: { readOnly: true, - serializedName: "properties.creationDate", + serializedName: "properties.operationFriendlyName", type: { - name: "DateTime" + name: "String" } }, - earliestRestorePoint: { + percentComplete: { readOnly: true, - serializedName: "properties.earliestRestorePoint", + serializedName: "properties.percentComplete", type: { - name: "DateTime" + name: "Number" } }, - restorePointInTime: { - serializedName: "properties.restorePointInTime", + startTime: { + readOnly: true, + serializedName: "properties.startTime", type: { name: "DateTime" } }, - defaultSecondaryLocation: { + state: { readOnly: true, - serializedName: "properties.defaultSecondaryLocation", + serializedName: "properties.state", type: { name: "String" } }, - catalogCollation: { - serializedName: "properties.catalogCollation", + errorCode: { + readOnly: true, + serializedName: "properties.errorCode", type: { - name: "String" + name: "Number" } }, - createMode: { - serializedName: "properties.createMode", + errorDescription: { + readOnly: true, + serializedName: "properties.errorDescription", type: { name: "String" } }, - storageContainerUri: { - serializedName: "properties.storageContainerUri", + errorSeverity: { + readOnly: true, + serializedName: "properties.errorSeverity", type: { - name: "String" + name: "Number" } }, - sourceDatabaseId: { - serializedName: "properties.sourceDatabaseId", + isUserError: { + readOnly: true, + serializedName: "properties.isUserError", type: { - name: "String" + name: "Boolean" } }, - restorableDroppedDatabaseId: { - serializedName: "properties.restorableDroppedDatabaseId", + estimatedCompletionTime: { + readOnly: true, + serializedName: "properties.estimatedCompletionTime", type: { - name: "String" + name: "DateTime" } }, - storageContainerSasToken: { - serializedName: "properties.storageContainerSasToken", + description: { + readOnly: true, + serializedName: "properties.description", type: { name: "String" } }, - failoverGroupId: { + isCancellable: { readOnly: true, - serializedName: "properties.failoverGroupId", + serializedName: "properties.isCancellable", type: { - name: "String" + name: "Boolean" } }, - recoverableDatabaseId: { - serializedName: "properties.recoverableDatabaseId", + operationParameters: { + readOnly: true, + serializedName: "properties.operationParameters", type: { - name: "String" + name: "Composite", + className: "ManagedInstanceOperationParametersPair" } }, - longTermRetentionBackupResourceId: { - serializedName: "properties.longTermRetentionBackupResourceId", + operationSteps: { + readOnly: true, + serializedName: "properties.operationSteps", type: { - name: "String" + name: "Composite", + className: "ManagedInstanceOperationSteps" } } } } }; -export const ManagedDatabaseUpdate: msRest.CompositeMapper = { - serializedName: "ManagedDatabaseUpdate", +export const SyncDatabaseIdProperties: msRest.CompositeMapper = { + serializedName: "SyncDatabaseIdProperties", type: { name: "Composite", - className: "ManagedDatabaseUpdate", + className: "SyncDatabaseIdProperties", modelProperties: { - collation: { - serializedName: "properties.collation", - type: { - name: "String" - } - }, - status: { + id: { readOnly: true, - serializedName: "properties.status", + serializedName: "id", type: { name: "String" } - }, - creationDate: { + } + } + } +}; + +export const SyncFullSchemaTableColumn: msRest.CompositeMapper = { + serializedName: "SyncFullSchemaTableColumn", + type: { + name: "Composite", + className: "SyncFullSchemaTableColumn", + modelProperties: { + dataSize: { readOnly: true, - serializedName: "properties.creationDate", + serializedName: "dataSize", type: { - name: "DateTime" + name: "String" } }, - earliestRestorePoint: { + dataType: { readOnly: true, - serializedName: "properties.earliestRestorePoint", - type: { - name: "DateTime" - } - }, - restorePointInTime: { - serializedName: "properties.restorePointInTime", + serializedName: "dataType", type: { - name: "DateTime" + name: "String" } }, - defaultSecondaryLocation: { + errorId: { readOnly: true, - serializedName: "properties.defaultSecondaryLocation", + serializedName: "errorId", type: { name: "String" } }, - catalogCollation: { - serializedName: "properties.catalogCollation", + hasError: { + readOnly: true, + serializedName: "hasError", type: { - name: "String" + name: "Boolean" } }, - createMode: { - serializedName: "properties.createMode", + isPrimaryKey: { + readOnly: true, + serializedName: "isPrimaryKey", type: { - name: "String" + name: "Boolean" } }, - storageContainerUri: { - serializedName: "properties.storageContainerUri", + name: { + readOnly: true, + serializedName: "name", type: { name: "String" } }, - sourceDatabaseId: { - serializedName: "properties.sourceDatabaseId", + quotedName: { + readOnly: true, + serializedName: "quotedName", type: { name: "String" } - }, - restorableDroppedDatabaseId: { - serializedName: "properties.restorableDroppedDatabaseId", + } + } + } +}; + +export const SyncFullSchemaTable: msRest.CompositeMapper = { + serializedName: "SyncFullSchemaTable", + type: { + name: "Composite", + className: "SyncFullSchemaTable", + modelProperties: { + columns: { + readOnly: true, + serializedName: "columns", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SyncFullSchemaTableColumn" + } + } } }, - storageContainerSasToken: { - serializedName: "properties.storageContainerSasToken", + errorId: { + readOnly: true, + serializedName: "errorId", type: { name: "String" } }, - failoverGroupId: { + hasError: { readOnly: true, - serializedName: "properties.failoverGroupId", + serializedName: "hasError", type: { - name: "String" + name: "Boolean" } }, - recoverableDatabaseId: { - serializedName: "properties.recoverableDatabaseId", + name: { + readOnly: true, + serializedName: "name", type: { name: "String" } }, - longTermRetentionBackupResourceId: { - serializedName: "properties.longTermRetentionBackupResourceId", + quotedName: { + readOnly: true, + serializedName: "quotedName", type: { name: "String" } - }, - tags: { - serializedName: "tags", + } + } + } +}; + +export const SyncFullSchemaProperties: msRest.CompositeMapper = { + serializedName: "SyncFullSchemaProperties", + type: { + name: "Composite", + className: "SyncFullSchemaProperties", + modelProperties: { + tables: { + readOnly: true, + serializedName: "tables", type: { - name: "Dictionary", - value: { + name: "Sequence", + element: { type: { - name: "String" + name: "Composite", + className: "SyncFullSchemaTable" } } } + }, + lastUpdateTime: { + readOnly: true, + serializedName: "lastUpdateTime", + type: { + name: "DateTime" + } } } } }; -export const CompleteDatabaseRestoreDefinition: msRest.CompositeMapper = { - serializedName: "CompleteDatabaseRestoreDefinition", +export const SyncGroupLogProperties: msRest.CompositeMapper = { + serializedName: "SyncGroupLogProperties", type: { name: "Composite", - className: "CompleteDatabaseRestoreDefinition", + className: "SyncGroupLogProperties", modelProperties: { - lastBackupName: { - required: true, - serializedName: "lastBackupName", + timestamp: { + readOnly: true, + serializedName: "timestamp", type: { - name: "String" + name: "DateTime" } - } - } - } -}; - -export const ServerAzureADAdministrator: msRest.CompositeMapper = { - serializedName: "ServerAzureADAdministrator", - type: { - name: "Composite", - className: "ServerAzureADAdministrator", - modelProperties: { - ...ProxyResource.type.modelProperties, - administratorType: { - required: true, - isConstant: true, - serializedName: "properties.administratorType", - defaultValue: 'ActiveDirectory', + }, + type: { + readOnly: true, + serializedName: "type", type: { name: "String" } }, - login: { - required: true, - serializedName: "properties.login", + source: { + readOnly: true, + serializedName: "source", type: { name: "String" } }, - sid: { - required: true, - serializedName: "properties.sid", + details: { + readOnly: true, + serializedName: "details", type: { - name: "Uuid" + name: "String" } }, - tenantId: { - serializedName: "properties.tenantId", + tracingId: { + readOnly: true, + serializedName: "tracingId", type: { name: "Uuid" } }, - azureADOnlyAuthentication: { - serializedName: "properties.azureADOnlyAuthentication", + operationStatus: { + readOnly: true, + serializedName: "operationStatus", type: { - name: "Boolean" + name: "String" } } } } }; -export const UpsertManagedServerOperationParameters: msRest.CompositeMapper = { - serializedName: "UpsertManagedServerOperationParameters", +export const SyncGroupSchemaTableColumn: msRest.CompositeMapper = { + serializedName: "SyncGroupSchemaTableColumn", type: { name: "Composite", - className: "UpsertManagedServerOperationParameters", + className: "SyncGroupSchemaTableColumn", modelProperties: { - family: { - serializedName: "family", + quotedName: { + serializedName: "quotedName", type: { name: "String" } }, - tier: { - serializedName: "tier", + dataSize: { + serializedName: "dataSize", type: { name: "String" } }, - vCores: { - serializedName: "vCores", - type: { - name: "Number" - } - }, - storageSizeInGB: { - serializedName: "storageSizeInGB", + dataType: { + serializedName: "dataType", type: { - name: "Number" + name: "String" } } } } }; -export const ManagedInstanceOperationParametersPair: msRest.CompositeMapper = { - serializedName: "ManagedInstanceOperationParametersPair", +export const SyncGroupSchemaTable: msRest.CompositeMapper = { + serializedName: "SyncGroupSchemaTable", type: { name: "Composite", - className: "ManagedInstanceOperationParametersPair", + className: "SyncGroupSchemaTable", modelProperties: { - currentParameters: { - readOnly: true, - serializedName: "currentParameters", + columns: { + serializedName: "columns", type: { - name: "Composite", - className: "UpsertManagedServerOperationParameters" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SyncGroupSchemaTableColumn" + } + } } }, - requestedParameters: { - readOnly: true, - serializedName: "requestedParameters", + quotedName: { + serializedName: "quotedName", type: { - name: "Composite", - className: "UpsertManagedServerOperationParameters" + name: "String" } } } } }; -export const UpsertManagedServerOperationStep: msRest.CompositeMapper = { - serializedName: "UpsertManagedServerOperationStep", +export const SyncGroupSchema: msRest.CompositeMapper = { + serializedName: "SyncGroupSchema", type: { name: "Composite", - className: "UpsertManagedServerOperationStep", + className: "SyncGroupSchema", modelProperties: { - order: { - serializedName: "order", - type: { - name: "Number" - } - }, - name: { - serializedName: "name", + tables: { + serializedName: "tables", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SyncGroupSchemaTable" + } + } } }, - status: { - serializedName: "status", + masterSyncMemberName: { + serializedName: "masterSyncMemberName", type: { name: "String" } @@ -8883,170 +9006,144 @@ export const UpsertManagedServerOperationStep: msRest.CompositeMapper = { } }; -export const ManagedInstanceOperationSteps: msRest.CompositeMapper = { - serializedName: "ManagedInstanceOperationSteps", +export const SyncGroup: msRest.CompositeMapper = { + serializedName: "SyncGroup", type: { name: "Composite", - className: "ManagedInstanceOperationSteps", + className: "SyncGroup", modelProperties: { - totalSteps: { - readOnly: true, - serializedName: "totalSteps", + ...ProxyResource.type.modelProperties, + interval: { + serializedName: "properties.interval", type: { - name: "String" + name: "Number" } }, - currentStep: { + lastSyncTime: { readOnly: true, - serializedName: "currentStep", + serializedName: "properties.lastSyncTime", type: { - name: "Number" + name: "DateTime" } }, - stepsList: { - readOnly: true, - serializedName: "stepsList", + conflictResolutionPolicy: { + serializedName: "properties.conflictResolutionPolicy", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "UpsertManagedServerOperationStep" - } - } + name: "String" } - } - } - } -}; - -export const ManagedInstanceOperation: msRest.CompositeMapper = { - serializedName: "ManagedInstanceOperation", - type: { - name: "Composite", - className: "ManagedInstanceOperation", - modelProperties: { - ...ProxyResource.type.modelProperties, - managedInstanceName: { - readOnly: true, - serializedName: "properties.managedInstanceName", + }, + syncDatabaseId: { + serializedName: "properties.syncDatabaseId", type: { name: "String" } }, - operation: { - readOnly: true, - serializedName: "properties.operation", + hubDatabaseUserName: { + serializedName: "properties.hubDatabaseUserName", type: { name: "String" } }, - operationFriendlyName: { - readOnly: true, - serializedName: "properties.operationFriendlyName", + hubDatabasePassword: { + serializedName: "properties.hubDatabasePassword", type: { name: "String" } }, - percentComplete: { + syncState: { readOnly: true, - serializedName: "properties.percentComplete", + serializedName: "properties.syncState", type: { - name: "Number" + name: "String" } }, - startTime: { - readOnly: true, - serializedName: "properties.startTime", + schema: { + serializedName: "properties.schema", type: { - name: "DateTime" + name: "Composite", + className: "SyncGroupSchema" } }, - state: { - readOnly: true, - serializedName: "properties.state", + usePrivateLinkConnection: { + serializedName: "properties.usePrivateLinkConnection", + type: { + name: "Boolean" + } + } + } + } +}; + +export const SyncMember: msRest.CompositeMapper = { + serializedName: "SyncMember", + type: { + name: "Composite", + className: "SyncMember", + modelProperties: { + ...ProxyResource.type.modelProperties, + databaseType: { + serializedName: "properties.databaseType", type: { name: "String" } }, - errorCode: { - readOnly: true, - serializedName: "properties.errorCode", + syncAgentId: { + serializedName: "properties.syncAgentId", type: { - name: "Number" + name: "String" } }, - errorDescription: { - readOnly: true, - serializedName: "properties.errorDescription", + sqlServerDatabaseId: { + serializedName: "properties.sqlServerDatabaseId", type: { - name: "String" + name: "Uuid" } }, - errorSeverity: { - readOnly: true, - serializedName: "properties.errorSeverity", + syncMemberAzureDatabaseResourceId: { + serializedName: "properties.syncMemberAzureDatabaseResourceId", type: { - name: "Number" + name: "String" } }, - isUserError: { - readOnly: true, - serializedName: "properties.isUserError", + usePrivateLinkConnection: { + serializedName: "properties.usePrivateLinkConnection", type: { name: "Boolean" } }, - estimatedCompletionTime: { - readOnly: true, - serializedName: "properties.estimatedCompletionTime", + serverName: { + serializedName: "properties.serverName", type: { - name: "DateTime" + name: "String" } }, - description: { - readOnly: true, - serializedName: "properties.description", + databaseName: { + serializedName: "properties.databaseName", type: { name: "String" } }, - isCancellable: { - readOnly: true, - serializedName: "properties.isCancellable", + userName: { + serializedName: "properties.userName", type: { - name: "Boolean" + name: "String" } }, - operationParameters: { - readOnly: true, - serializedName: "properties.operationParameters", + password: { + serializedName: "properties.password", type: { - name: "Composite", - className: "ManagedInstanceOperationParametersPair" + name: "String" } }, - operationSteps: { - readOnly: true, - serializedName: "properties.operationSteps", + syncDirection: { + serializedName: "properties.syncDirection", type: { - name: "Composite", - className: "ManagedInstanceOperationSteps" + name: "String" } - } - } - } -}; - -export const SyncDatabaseIdProperties: msRest.CompositeMapper = { - serializedName: "SyncDatabaseIdProperties", - type: { - name: "Composite", - className: "SyncDatabaseIdProperties", - modelProperties: { - id: { + }, + syncState: { readOnly: true, - serializedName: "id", + serializedName: "properties.syncState", type: { name: "String" } @@ -9055,108 +9152,84 @@ export const SyncDatabaseIdProperties: msRest.CompositeMapper = { } }; -export const SyncFullSchemaTableColumn: msRest.CompositeMapper = { - serializedName: "SyncFullSchemaTableColumn", +export const ManagedDatabaseRestoreDetailsResult: msRest.CompositeMapper = { + serializedName: "ManagedDatabaseRestoreDetailsResult", type: { name: "Composite", - className: "SyncFullSchemaTableColumn", + className: "ManagedDatabaseRestoreDetailsResult", modelProperties: { - dataSize: { + ...ProxyResource.type.modelProperties, + status: { readOnly: true, - serializedName: "dataSize", + serializedName: "properties.status", type: { name: "String" } }, - dataType: { + currentRestoringFileName: { readOnly: true, - serializedName: "dataType", + serializedName: "properties.currentRestoringFileName", type: { name: "String" } }, - errorId: { + lastRestoredFileName: { readOnly: true, - serializedName: "errorId", + serializedName: "properties.lastRestoredFileName", type: { name: "String" } }, - hasError: { - readOnly: true, - serializedName: "hasError", - type: { - name: "Boolean" - } - }, - isPrimaryKey: { + lastRestoredFileTime: { readOnly: true, - serializedName: "isPrimaryKey", + serializedName: "properties.lastRestoredFileTime", type: { - name: "Boolean" + name: "DateTime" } }, - name: { + percentCompleted: { readOnly: true, - serializedName: "name", + serializedName: "properties.percentCompleted", type: { - name: "String" + name: "Number" } }, - quotedName: { - readOnly: true, - serializedName: "quotedName", - type: { - name: "String" - } - } - } - } -}; - -export const SyncFullSchemaTable: msRest.CompositeMapper = { - serializedName: "SyncFullSchemaTable", - type: { - name: "Composite", - className: "SyncFullSchemaTable", - modelProperties: { - columns: { + unrestorableFiles: { readOnly: true, - serializedName: "columns", + serializedName: "properties.unrestorableFiles", type: { name: "Sequence", element: { type: { - name: "Composite", - className: "SyncFullSchemaTableColumn" + name: "String" } } } }, - errorId: { + numberOfFilesDetected: { readOnly: true, - serializedName: "errorId", + serializedName: "properties.numberOfFilesDetected", type: { - name: "String" + name: "Number" } }, - hasError: { + lastUploadedFileName: { readOnly: true, - serializedName: "hasError", + serializedName: "properties.lastUploadedFileName", type: { - name: "Boolean" + name: "String" } }, - name: { + lastUploadedFileTime: { readOnly: true, - serializedName: "name", + serializedName: "properties.lastUploadedFileTime", type: { - name: "String" + name: "DateTime" } }, - quotedName: { + blockReason: { readOnly: true, - serializedName: "quotedName", + serializedName: "properties.blockReason", type: { name: "String" } @@ -9165,136 +9238,116 @@ export const SyncFullSchemaTable: msRest.CompositeMapper = { } }; -export const SyncFullSchemaProperties: msRest.CompositeMapper = { - serializedName: "SyncFullSchemaProperties", +export const ManagedDatabase: msRest.CompositeMapper = { + serializedName: "ManagedDatabase", type: { name: "Composite", - className: "SyncFullSchemaProperties", + className: "ManagedDatabase", modelProperties: { - tables: { + ...TrackedResource.type.modelProperties, + collation: { + serializedName: "properties.collation", + type: { + name: "String" + } + }, + status: { readOnly: true, - serializedName: "tables", + serializedName: "properties.status", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SyncFullSchemaTable" - } - } + name: "String" } }, - lastUpdateTime: { + creationDate: { readOnly: true, - serializedName: "lastUpdateTime", + serializedName: "properties.creationDate", type: { name: "DateTime" } - } - } - } -}; - -export const SyncGroupLogProperties: msRest.CompositeMapper = { - serializedName: "SyncGroupLogProperties", - type: { - name: "Composite", - className: "SyncGroupLogProperties", - modelProperties: { - timestamp: { + }, + earliestRestorePoint: { readOnly: true, - serializedName: "timestamp", + serializedName: "properties.earliestRestorePoint", type: { name: "DateTime" } }, - type: { + restorePointInTime: { + serializedName: "properties.restorePointInTime", + type: { + name: "DateTime" + } + }, + defaultSecondaryLocation: { readOnly: true, - serializedName: "type", + serializedName: "properties.defaultSecondaryLocation", type: { name: "String" } }, - source: { - readOnly: true, - serializedName: "source", + catalogCollation: { + serializedName: "properties.catalogCollation", type: { name: "String" } }, - details: { - readOnly: true, - serializedName: "details", + createMode: { + serializedName: "properties.createMode", type: { name: "String" } }, - tracingId: { - readOnly: true, - serializedName: "tracingId", + storageContainerUri: { + serializedName: "properties.storageContainerUri", type: { - name: "Uuid" + name: "String" } }, - operationStatus: { - readOnly: true, - serializedName: "operationStatus", + sourceDatabaseId: { + serializedName: "properties.sourceDatabaseId", type: { name: "String" } - } - } - } -}; - -export const SyncGroupSchemaTableColumn: msRest.CompositeMapper = { - serializedName: "SyncGroupSchemaTableColumn", - type: { - name: "Composite", - className: "SyncGroupSchemaTableColumn", - modelProperties: { - quotedName: { - serializedName: "quotedName", + }, + restorableDroppedDatabaseId: { + serializedName: "properties.restorableDroppedDatabaseId", type: { name: "String" } }, - dataSize: { - serializedName: "dataSize", + storageContainerSasToken: { + serializedName: "properties.storageContainerSasToken", + type: { + name: "String" + } + }, + failoverGroupId: { + readOnly: true, + serializedName: "properties.failoverGroupId", + type: { + name: "String" + } + }, + recoverableDatabaseId: { + serializedName: "properties.recoverableDatabaseId", type: { name: "String" } }, - dataType: { - serializedName: "dataType", + longTermRetentionBackupResourceId: { + serializedName: "properties.longTermRetentionBackupResourceId", type: { name: "String" } - } - } - } -}; - -export const SyncGroupSchemaTable: msRest.CompositeMapper = { - serializedName: "SyncGroupSchemaTable", - type: { - name: "Composite", - className: "SyncGroupSchemaTable", - modelProperties: { - columns: { - serializedName: "columns", + }, + autoCompleteRestore: { + serializedName: "properties.autoCompleteRestore", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SyncGroupSchemaTableColumn" - } - } + name: "Boolean" } }, - quotedName: { - serializedName: "quotedName", + lastBackupName: { + serializedName: "properties.lastBackupName", type: { name: "String" } @@ -9303,172 +9356,143 @@ export const SyncGroupSchemaTable: msRest.CompositeMapper = { } }; -export const SyncGroupSchema: msRest.CompositeMapper = { - serializedName: "SyncGroupSchema", +export const ManagedDatabaseUpdate: msRest.CompositeMapper = { + serializedName: "ManagedDatabaseUpdate", type: { name: "Composite", - className: "SyncGroupSchema", + className: "ManagedDatabaseUpdate", modelProperties: { - tables: { - serializedName: "tables", + collation: { + serializedName: "properties.collation", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SyncGroupSchemaTable" - } - } + name: "String" } }, - masterSyncMemberName: { - serializedName: "masterSyncMemberName", + status: { + readOnly: true, + serializedName: "properties.status", type: { name: "String" } - } - } - } -}; - -export const SyncGroup: msRest.CompositeMapper = { - serializedName: "SyncGroup", - type: { - name: "Composite", - className: "SyncGroup", - modelProperties: { - ...ProxyResource.type.modelProperties, - interval: { - serializedName: "properties.interval", - type: { - name: "Number" - } }, - lastSyncTime: { + creationDate: { readOnly: true, - serializedName: "properties.lastSyncTime", + serializedName: "properties.creationDate", type: { name: "DateTime" } }, - conflictResolutionPolicy: { - serializedName: "properties.conflictResolutionPolicy", + earliestRestorePoint: { + readOnly: true, + serializedName: "properties.earliestRestorePoint", type: { - name: "String" + name: "DateTime" } }, - syncDatabaseId: { - serializedName: "properties.syncDatabaseId", + restorePointInTime: { + serializedName: "properties.restorePointInTime", type: { - name: "String" + name: "DateTime" } }, - hubDatabaseUserName: { - serializedName: "properties.hubDatabaseUserName", + defaultSecondaryLocation: { + readOnly: true, + serializedName: "properties.defaultSecondaryLocation", type: { name: "String" } }, - hubDatabasePassword: { - serializedName: "properties.hubDatabasePassword", + catalogCollation: { + serializedName: "properties.catalogCollation", type: { name: "String" } }, - syncState: { - readOnly: true, - serializedName: "properties.syncState", + createMode: { + serializedName: "properties.createMode", type: { name: "String" } }, - schema: { - serializedName: "properties.schema", - type: { - name: "Composite", - className: "SyncGroupSchema" - } - }, - usePrivateLinkConnection: { - serializedName: "properties.usePrivateLinkConnection", - type: { - name: "Boolean" - } - } - } - } -}; - -export const SyncMember: msRest.CompositeMapper = { - serializedName: "SyncMember", - type: { - name: "Composite", - className: "SyncMember", - modelProperties: { - ...ProxyResource.type.modelProperties, - databaseType: { - serializedName: "properties.databaseType", + storageContainerUri: { + serializedName: "properties.storageContainerUri", type: { name: "String" } }, - syncAgentId: { - serializedName: "properties.syncAgentId", + sourceDatabaseId: { + serializedName: "properties.sourceDatabaseId", type: { name: "String" } }, - sqlServerDatabaseId: { - serializedName: "properties.sqlServerDatabaseId", + restorableDroppedDatabaseId: { + serializedName: "properties.restorableDroppedDatabaseId", type: { - name: "Uuid" + name: "String" } }, - syncMemberAzureDatabaseResourceId: { - serializedName: "properties.syncMemberAzureDatabaseResourceId", + storageContainerSasToken: { + serializedName: "properties.storageContainerSasToken", type: { name: "String" } }, - usePrivateLinkConnection: { - serializedName: "properties.usePrivateLinkConnection", + failoverGroupId: { + readOnly: true, + serializedName: "properties.failoverGroupId", type: { - name: "Boolean" + name: "String" } }, - serverName: { - serializedName: "properties.serverName", + recoverableDatabaseId: { + serializedName: "properties.recoverableDatabaseId", type: { name: "String" } }, - databaseName: { - serializedName: "properties.databaseName", + longTermRetentionBackupResourceId: { + serializedName: "properties.longTermRetentionBackupResourceId", type: { name: "String" } }, - userName: { - serializedName: "properties.userName", + autoCompleteRestore: { + serializedName: "properties.autoCompleteRestore", type: { - name: "String" + name: "Boolean" } }, - password: { - serializedName: "properties.password", + lastBackupName: { + serializedName: "properties.lastBackupName", type: { name: "String" } }, - syncDirection: { - serializedName: "properties.syncDirection", + tags: { + serializedName: "tags", type: { - name: "String" + name: "Dictionary", + value: { + type: { + name: "String" + } + } } - }, - syncState: { - readOnly: true, - serializedName: "properties.syncState", + } + } + } +}; + +export const CompleteDatabaseRestoreDefinition: msRest.CompositeMapper = { + serializedName: "CompleteDatabaseRestoreDefinition", + type: { + name: "Composite", + className: "CompleteDatabaseRestoreDefinition", + modelProperties: { + lastBackupName: { + required: true, + serializedName: "lastBackupName", type: { name: "String" } @@ -11469,36 +11493,6 @@ export const WorkloadClassifierListResult: msRest.CompositeMapper = { } }; -export const ManagedDatabaseListResult: msRest.CompositeMapper = { - serializedName: "ManagedDatabaseListResult", - type: { - name: "Composite", - className: "ManagedDatabaseListResult", - modelProperties: { - value: { - readOnly: true, - serializedName: "", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ManagedDatabase" - } - } - } - }, - nextLink: { - readOnly: true, - serializedName: "nextLink", - type: { - name: "String" - } - } - } - } -}; - export const AdministratorListResult: msRest.CompositeMapper = { serializedName: "AdministratorListResult", type: { @@ -11708,3 +11702,33 @@ export const SyncMemberListResult: msRest.CompositeMapper = { } } }; + +export const ManagedDatabaseListResult: msRest.CompositeMapper = { + serializedName: "ManagedDatabaseListResult", + type: { + name: "Composite", + className: "ManagedDatabaseListResult", + modelProperties: { + value: { + readOnly: true, + serializedName: "", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ManagedDatabase" + } + } + } + }, + nextLink: { + readOnly: true, + serializedName: "nextLink", + type: { + name: "String" + } + } + } + } +}; diff --git a/sdk/sql/arm-sql/src/models/parameters.ts b/sdk/sql/arm-sql/src/models/parameters.ts index 2f0f9683c42c..ac6c5f7b722b 100644 --- a/sdk/sql/arm-sql/src/models/parameters.ts +++ b/sdk/sql/arm-sql/src/models/parameters.ts @@ -119,6 +119,21 @@ export const apiVersion6: msRest.OperationQueryParameter = { } } }; +export const apiVersion7: msRest.OperationQueryParameter = { + parameterPath: "apiVersion", + mapper: { + required: true, + isConstant: true, + serializedName: "api-version", + defaultValue: '2020-02-02-preview', + constraints: { + MinLength: 1 + }, + type: { + name: "String" + } + } +}; export const backupName: msRest.OperationURLParameter = { parameterPath: "backupName", mapper: { diff --git a/sdk/sql/arm-sql/src/operations/index.ts b/sdk/sql/arm-sql/src/operations/index.ts index c1d61e412252..d4e21caa576e 100644 --- a/sdk/sql/arm-sql/src/operations/index.ts +++ b/sdk/sql/arm-sql/src/operations/index.ts @@ -93,9 +93,9 @@ export * from "./longTermRetentionManagedInstanceBackups"; export * from "./managedInstanceLongTermRetentionPolicies"; export * from "./workloadGroups"; export * from "./workloadClassifiers"; -export * from "./managedDatabaseRestoreDetails"; -export * from "./managedDatabases"; export * from "./serverAzureADAdministrators"; export * from "./managedInstanceOperations"; export * from "./syncGroups"; export * from "./syncMembers"; +export * from "./managedDatabaseRestoreDetails"; +export * from "./managedDatabases"; diff --git a/sdk/sql/arm-sql/src/operations/managedDatabaseRestoreDetails.ts b/sdk/sql/arm-sql/src/operations/managedDatabaseRestoreDetails.ts index 733b2715c6d1..287f8280ed4d 100644 --- a/sdk/sql/arm-sql/src/operations/managedDatabaseRestoreDetails.ts +++ b/sdk/sql/arm-sql/src/operations/managedDatabaseRestoreDetails.ts @@ -28,8 +28,7 @@ export class ManagedDatabaseRestoreDetails { /** * Gets managed database restore details. - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param managedInstanceName The name of the managed instance. * @param databaseName The name of the database. * @param [options] The optional parameters @@ -37,16 +36,14 @@ export class ManagedDatabaseRestoreDetails { */ get(resourceGroupName: string, managedInstanceName: string, databaseName: string, options?: msRest.RequestOptionsBase): Promise; /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param managedInstanceName The name of the managed instance. * @param databaseName The name of the database. * @param callback The callback */ get(resourceGroupName: string, managedInstanceName: string, databaseName: string, callback: msRest.ServiceCallback): void; /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param managedInstanceName The name of the managed instance. * @param databaseName The name of the database. * @param options The optional parameters @@ -72,14 +69,14 @@ const getOperationSpec: msRest.OperationSpec = { httpMethod: "GET", path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/restoreDetails/{restoreDetailsName}", urlParameters: [ - Parameters.resourceGroupName0, + Parameters.resourceGroupName1, Parameters.managedInstanceName, Parameters.databaseName, Parameters.restoreDetailsName, Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion6 + Parameters.apiVersion7 ], headerParameters: [ Parameters.acceptLanguage diff --git a/sdk/sql/arm-sql/src/operations/managedDatabases.ts b/sdk/sql/arm-sql/src/operations/managedDatabases.ts index 381dc93bc9f9..e3e234281343 100644 --- a/sdk/sql/arm-sql/src/operations/managedDatabases.ts +++ b/sdk/sql/arm-sql/src/operations/managedDatabases.ts @@ -29,23 +29,20 @@ export class ManagedDatabases { /** * Gets a list of managed databases. - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param managedInstanceName The name of the managed instance. * @param [options] The optional parameters * @returns Promise */ listByInstance(resourceGroupName: string, managedInstanceName: string, options?: msRest.RequestOptionsBase): Promise; /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param managedInstanceName The name of the managed instance. * @param callback The callback */ listByInstance(resourceGroupName: string, managedInstanceName: string, callback: msRest.ServiceCallback): void; /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param managedInstanceName The name of the managed instance. * @param options The optional parameters * @param callback The callback @@ -64,8 +61,7 @@ export class ManagedDatabases { /** * Gets a managed database. - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param managedInstanceName The name of the managed instance. * @param databaseName The name of the database. * @param [options] The optional parameters @@ -73,16 +69,14 @@ export class ManagedDatabases { */ get(resourceGroupName: string, managedInstanceName: string, databaseName: string, options?: msRest.RequestOptionsBase): Promise; /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param managedInstanceName The name of the managed instance. * @param databaseName The name of the database. * @param callback The callback */ get(resourceGroupName: string, managedInstanceName: string, databaseName: string, callback: msRest.ServiceCallback): void; /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param managedInstanceName The name of the managed instance. * @param databaseName The name of the database. * @param options The optional parameters @@ -103,8 +97,7 @@ export class ManagedDatabases { /** * Creates a new database or updates an existing database. - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param managedInstanceName The name of the managed instance. * @param databaseName The name of the database. * @param parameters The requested database resource state. @@ -118,8 +111,7 @@ export class ManagedDatabases { /** * Deletes a managed database. - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param managedInstanceName The name of the managed instance. * @param databaseName The name of the database. * @param [options] The optional parameters @@ -132,8 +124,7 @@ export class ManagedDatabases { /** * Updates an existing database. - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param managedInstanceName The name of the managed instance. * @param databaseName The name of the database. * @param parameters The requested database resource state. @@ -147,23 +138,20 @@ export class ManagedDatabases { /** * Gets a list of inaccessible managed databases in a managed instance - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param managedInstanceName The name of the managed instance. * @param [options] The optional parameters * @returns Promise */ listInaccessibleByInstance(resourceGroupName: string, managedInstanceName: string, options?: msRest.RequestOptionsBase): Promise; /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param managedInstanceName The name of the managed instance. * @param callback The callback */ listInaccessibleByInstance(resourceGroupName: string, managedInstanceName: string, callback: msRest.ServiceCallback): void; /** - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param managedInstanceName The name of the managed instance. * @param options The optional parameters * @param callback The callback @@ -182,8 +170,7 @@ export class ManagedDatabases { /** * Completes the restore operation on a managed database. - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param managedInstanceName The name of the managed instance. * @param databaseName The name of the database. * @param parameters The definition for completing the restore of this managed database. @@ -197,8 +184,7 @@ export class ManagedDatabases { /** * Creates a new database or updates an existing database. - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param managedInstanceName The name of the managed instance. * @param databaseName The name of the database. * @param parameters The requested database resource state. @@ -220,8 +206,7 @@ export class ManagedDatabases { /** * Deletes a managed database. - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param managedInstanceName The name of the managed instance. * @param databaseName The name of the database. * @param [options] The optional parameters @@ -241,8 +226,7 @@ export class ManagedDatabases { /** * Updates an existing database. - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param managedInstanceName The name of the managed instance. * @param databaseName The name of the database. * @param parameters The requested database resource state. @@ -264,8 +248,7 @@ export class ManagedDatabases { /** * Completes the restore operation on a managed database. - * @param resourceGroupName The name of the resource group that contains the resource. You can - * obtain this value from the Azure Resource Manager API or the portal. + * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param managedInstanceName The name of the managed instance. * @param databaseName The name of the database. * @param parameters The definition for completing the restore of this managed database. @@ -348,12 +331,12 @@ const listByInstanceOperationSpec: msRest.OperationSpec = { httpMethod: "GET", path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases", urlParameters: [ - Parameters.resourceGroupName0, + Parameters.resourceGroupName1, Parameters.managedInstanceName, Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion6 + Parameters.apiVersion7 ], headerParameters: [ Parameters.acceptLanguage @@ -373,13 +356,13 @@ const getOperationSpec: msRest.OperationSpec = { httpMethod: "GET", path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}", urlParameters: [ - Parameters.resourceGroupName0, + Parameters.resourceGroupName1, Parameters.managedInstanceName, Parameters.databaseName, Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion6 + Parameters.apiVersion7 ], headerParameters: [ Parameters.acceptLanguage @@ -399,12 +382,12 @@ const listInaccessibleByInstanceOperationSpec: msRest.OperationSpec = { httpMethod: "GET", path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/inaccessibleManagedDatabases", urlParameters: [ - Parameters.resourceGroupName0, + Parameters.resourceGroupName1, Parameters.managedInstanceName, Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion6 + Parameters.apiVersion7 ], headerParameters: [ Parameters.acceptLanguage @@ -424,13 +407,13 @@ const beginCreateOrUpdateOperationSpec: msRest.OperationSpec = { httpMethod: "PUT", path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}", urlParameters: [ - Parameters.resourceGroupName0, + Parameters.resourceGroupName1, Parameters.managedInstanceName, Parameters.databaseName, Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion6 + Parameters.apiVersion7 ], headerParameters: [ Parameters.acceptLanguage @@ -461,13 +444,13 @@ const beginDeleteMethodOperationSpec: msRest.OperationSpec = { httpMethod: "DELETE", path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}", urlParameters: [ - Parameters.resourceGroupName0, + Parameters.resourceGroupName1, Parameters.managedInstanceName, Parameters.databaseName, Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion6 + Parameters.apiVersion7 ], headerParameters: [ Parameters.acceptLanguage @@ -487,13 +470,13 @@ const beginUpdateOperationSpec: msRest.OperationSpec = { httpMethod: "PATCH", path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}", urlParameters: [ - Parameters.resourceGroupName0, + Parameters.resourceGroupName1, Parameters.managedInstanceName, Parameters.databaseName, Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion6 + Parameters.apiVersion7 ], headerParameters: [ Parameters.acceptLanguage @@ -521,13 +504,13 @@ const beginCompleteRestoreOperationSpec: msRest.OperationSpec = { httpMethod: "POST", path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Sql/managedInstances/{managedInstanceName}/databases/{databaseName}/completeRestore", urlParameters: [ - Parameters.resourceGroupName0, + Parameters.resourceGroupName1, Parameters.managedInstanceName, Parameters.databaseName, Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion6 + Parameters.apiVersion7 ], headerParameters: [ Parameters.acceptLanguage diff --git a/sdk/sql/arm-sql/src/sqlManagementClient.ts b/sdk/sql/arm-sql/src/sqlManagementClient.ts index 35a16e8e3b61..a574f0b389e9 100644 --- a/sdk/sql/arm-sql/src/sqlManagementClient.ts +++ b/sdk/sql/arm-sql/src/sqlManagementClient.ts @@ -102,12 +102,12 @@ class SqlManagementClient extends SqlManagementClientContext { managedInstanceLongTermRetentionPolicies: operations.ManagedInstanceLongTermRetentionPolicies; workloadGroups: operations.WorkloadGroups; workloadClassifiers: operations.WorkloadClassifiers; - managedDatabaseRestoreDetails: operations.ManagedDatabaseRestoreDetails; - managedDatabases: operations.ManagedDatabases; serverAzureADAdministrators: operations.ServerAzureADAdministrators; managedInstanceOperations: operations.ManagedInstanceOperations; syncGroups: operations.SyncGroups; syncMembers: operations.SyncMembers; + managedDatabaseRestoreDetails: operations.ManagedDatabaseRestoreDetails; + managedDatabases: operations.ManagedDatabases; /** * Initializes a new instance of the SqlManagementClient class. @@ -202,12 +202,12 @@ class SqlManagementClient extends SqlManagementClientContext { this.managedInstanceLongTermRetentionPolicies = new operations.ManagedInstanceLongTermRetentionPolicies(this); this.workloadGroups = new operations.WorkloadGroups(this); this.workloadClassifiers = new operations.WorkloadClassifiers(this); - this.managedDatabaseRestoreDetails = new operations.ManagedDatabaseRestoreDetails(this); - this.managedDatabases = new operations.ManagedDatabases(this); this.serverAzureADAdministrators = new operations.ServerAzureADAdministrators(this); this.managedInstanceOperations = new operations.ManagedInstanceOperations(this); this.syncGroups = new operations.SyncGroups(this); this.syncMembers = new operations.SyncMembers(this); + this.managedDatabaseRestoreDetails = new operations.ManagedDatabaseRestoreDetails(this); + this.managedDatabases = new operations.ManagedDatabases(this); } }