Skip to content
This repository has been archived by the owner on May 5, 2023. It is now read-only.

[AutoPR sql/resource-manager] Updating managed database swagger #4450

Merged
merged 1 commit into from
Dec 13, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 24 additions & 8 deletions lib/services/sqlManagement2/lib/models/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2901,8 +2901,8 @@ export interface CompleteDatabaseRestoreDefinition {
* A managed database resource.
*
* @property {string} [collation] Collation of the managed database.
* @property {string} [status] Status for the database. Possible values
* include: 'Online', 'Offline', 'Shutdown', 'Creating', 'Inaccessible'
* @property {string} [status] Status of the database. Possible values include:
* 'Online', 'Offline', 'Shutdown', 'Creating', 'Inaccessible', 'Updating'
* @property {date} [creationDate] Creation date of the database.
* @property {date} [earliestRestorePoint] Earliest restore point in time for
* point in time restore.
Expand All @@ -2918,18 +2918,24 @@ export interface CompleteDatabaseRestoreDefinition {
* 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. Possible values include:
* 'Default', 'RestoreExternalBackup', 'PointInTimeRestore'
* StorageContainerSasToken must be specified. Recovery: Creates a database by
* restoring a geo-replicated backup. RecoverableDatabaseId must be specified
* as the recoverable database resource ID to restore. Possible values include:
* 'Default', 'RestoreExternalBackup', 'PointInTimeRestore', 'Recovery'
* @property {string} [storageContainerUri] Conditional. If createMode is
* RestoreExternalBackup, this value is required. Specifies the uri of the
* storage container where backups for this restore are stored.
* @property {string} [sourceDatabaseId] The resource identifier of the source
* database associated with create operation of this database.
* @property {string} [restorableDroppedDatabaseId] The restorable dropped
* database resource id to restore when creating this database.
* @property {string} [storageContainerSasToken] Conditional. If createMode is
* RestoreExternalBackup, this value is required. Specifies the storage
* container sas token.
* @property {string} [failoverGroupId] Instance Failover Group resource
* identifier that this managed database belongs to.
* @property {string} [recoverableDatabaseId] The resource identifier of the
* recoverable database associated with create operation of this database.
*/
export interface ManagedDatabase extends TrackedResource {
collation?: string;
Expand All @@ -2942,8 +2948,10 @@ export interface ManagedDatabase extends TrackedResource {
createMode?: string;
storageContainerUri?: string;
sourceDatabaseId?: string;
restorableDroppedDatabaseId?: string;
storageContainerSasToken?: string;
readonly failoverGroupId?: string;
recoverableDatabaseId?: string;
}

/**
Expand All @@ -2953,8 +2961,8 @@ export interface ManagedDatabase extends TrackedResource {
* An managed database update.
*
* @property {string} [collation] Collation of the managed database.
* @property {string} [status] Status for the database. Possible values
* include: 'Online', 'Offline', 'Shutdown', 'Creating', 'Inaccessible'
* @property {string} [status] Status of the database. Possible values include:
* 'Online', 'Offline', 'Shutdown', 'Creating', 'Inaccessible', 'Updating'
* @property {date} [creationDate] Creation date of the database.
* @property {date} [earliestRestorePoint] Earliest restore point in time for
* point in time restore.
Expand All @@ -2970,18 +2978,24 @@ export interface ManagedDatabase extends TrackedResource {
* 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. Possible values include:
* 'Default', 'RestoreExternalBackup', 'PointInTimeRestore'
* StorageContainerSasToken must be specified. Recovery: Creates a database by
* restoring a geo-replicated backup. RecoverableDatabaseId must be specified
* as the recoverable database resource ID to restore. Possible values include:
* 'Default', 'RestoreExternalBackup', 'PointInTimeRestore', 'Recovery'
* @property {string} [storageContainerUri] Conditional. If createMode is
* RestoreExternalBackup, this value is required. Specifies the uri of the
* storage container where backups for this restore are stored.
* @property {string} [sourceDatabaseId] The resource identifier of the source
* database associated with create operation of this database.
* @property {string} [restorableDroppedDatabaseId] The restorable dropped
* database resource id to restore when creating this database.
* @property {string} [storageContainerSasToken] Conditional. If createMode is
* RestoreExternalBackup, this value is required. Specifies the storage
* container sas token.
* @property {string} [failoverGroupId] Instance Failover Group resource
* identifier that this managed database belongs to.
* @property {string} [recoverableDatabaseId] The resource identifier of the
* recoverable database associated with create operation of this database.
* @property {object} [tags] Resource tags.
*/
export interface ManagedDatabaseUpdate {
Expand All @@ -2995,8 +3009,10 @@ export interface ManagedDatabaseUpdate {
createMode?: string;
storageContainerUri?: string;
sourceDatabaseId?: string;
restorableDroppedDatabaseId?: string;
storageContainerSasToken?: string;
readonly failoverGroupId?: string;
recoverableDatabaseId?: string;
tags?: { [propertyName: string]: string };
}

Expand Down
30 changes: 26 additions & 4 deletions lib/services/sqlManagement2/lib/models/managedDatabase.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,9 @@ class ManagedDatabase extends models['TrackedResource'] {
/**
* Create a ManagedDatabase.
* @property {string} [collation] Collation of the managed database.
* @property {string} [status] Status for the database. Possible values
* include: 'Online', 'Offline', 'Shutdown', 'Creating', 'Inaccessible'
* @property {string} [status] Status of the database. Possible values
* include: 'Online', 'Offline', 'Shutdown', 'Creating', 'Inaccessible',
* 'Updating'
* @property {date} [creationDate] Creation date of the database.
* @property {date} [earliestRestorePoint] Earliest restore point in time for
* point in time restore.
Expand All @@ -39,18 +40,25 @@ class ManagedDatabase extends models['TrackedResource'] {
* 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. Possible values include:
* 'Default', 'RestoreExternalBackup', 'PointInTimeRestore'
* StorageContainerSasToken must be specified. Recovery: Creates a database
* by restoring a geo-replicated backup. RecoverableDatabaseId must be
* specified as the recoverable database resource ID to restore. Possible
* values include: 'Default', 'RestoreExternalBackup', 'PointInTimeRestore',
* 'Recovery'
* @property {string} [storageContainerUri] Conditional. If createMode is
* RestoreExternalBackup, this value is required. Specifies the uri of the
* storage container where backups for this restore are stored.
* @property {string} [sourceDatabaseId] The resource identifier of the
* source database associated with create operation of this database.
* @property {string} [restorableDroppedDatabaseId] The restorable dropped
* database resource id to restore when creating this database.
* @property {string} [storageContainerSasToken] Conditional. If createMode
* is RestoreExternalBackup, this value is required. Specifies the storage
* container sas token.
* @property {string} [failoverGroupId] Instance Failover Group resource
* identifier that this managed database belongs to.
* @property {string} [recoverableDatabaseId] The resource identifier of the
* recoverable database associated with create operation of this database.
*/
constructor() {
super();
Expand Down Expand Up @@ -189,6 +197,13 @@ class ManagedDatabase extends models['TrackedResource'] {
name: 'String'
}
},
restorableDroppedDatabaseId: {
required: false,
serializedName: 'properties.restorableDroppedDatabaseId',
type: {
name: 'String'
}
},
storageContainerSasToken: {
required: false,
serializedName: 'properties.storageContainerSasToken',
Expand All @@ -203,6 +218,13 @@ class ManagedDatabase extends models['TrackedResource'] {
type: {
name: 'String'
}
},
recoverableDatabaseId: {
required: false,
serializedName: 'properties.recoverableDatabaseId',
type: {
name: 'String'
}
}
}
}
Expand Down
30 changes: 26 additions & 4 deletions lib/services/sqlManagement2/lib/models/managedDatabaseUpdate.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,9 @@ class ManagedDatabaseUpdate {
/**
* Create a ManagedDatabaseUpdate.
* @property {string} [collation] Collation of the managed database.
* @property {string} [status] Status for the database. Possible values
* include: 'Online', 'Offline', 'Shutdown', 'Creating', 'Inaccessible'
* @property {string} [status] Status of the database. Possible values
* include: 'Online', 'Offline', 'Shutdown', 'Creating', 'Inaccessible',
* 'Updating'
* @property {date} [creationDate] Creation date of the database.
* @property {date} [earliestRestorePoint] Earliest restore point in time for
* point in time restore.
Expand All @@ -36,18 +37,25 @@ class ManagedDatabaseUpdate {
* 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. Possible values include:
* 'Default', 'RestoreExternalBackup', 'PointInTimeRestore'
* StorageContainerSasToken must be specified. Recovery: Creates a database
* by restoring a geo-replicated backup. RecoverableDatabaseId must be
* specified as the recoverable database resource ID to restore. Possible
* values include: 'Default', 'RestoreExternalBackup', 'PointInTimeRestore',
* 'Recovery'
* @property {string} [storageContainerUri] Conditional. If createMode is
* RestoreExternalBackup, this value is required. Specifies the uri of the
* storage container where backups for this restore are stored.
* @property {string} [sourceDatabaseId] The resource identifier of the
* source database associated with create operation of this database.
* @property {string} [restorableDroppedDatabaseId] The restorable dropped
* database resource id to restore when creating this database.
* @property {string} [storageContainerSasToken] Conditional. If createMode
* is RestoreExternalBackup, this value is required. Specifies the storage
* container sas token.
* @property {string} [failoverGroupId] Instance Failover Group resource
* identifier that this managed database belongs to.
* @property {string} [recoverableDatabaseId] The resource identifier of the
* recoverable database associated with create operation of this database.
* @property {object} [tags] Resource tags.
*/
constructor() {
Expand Down Expand Up @@ -141,6 +149,13 @@ class ManagedDatabaseUpdate {
name: 'String'
}
},
restorableDroppedDatabaseId: {
required: false,
serializedName: 'properties.restorableDroppedDatabaseId',
type: {
name: 'String'
}
},
storageContainerSasToken: {
required: false,
serializedName: 'properties.storageContainerSasToken',
Expand All @@ -156,6 +171,13 @@ class ManagedDatabaseUpdate {
name: 'String'
}
},
recoverableDatabaseId: {
required: false,
serializedName: 'properties.recoverableDatabaseId',
type: {
name: 'String'
}
},
tags: {
required: false,
serializedName: 'tags',
Expand Down
Loading