Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
Closed
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
48 changes: 36 additions & 12 deletions packages/@azure/arm-sql/lib/models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4360,9 +4360,9 @@ export interface ManagedDatabase extends TrackedResource {
*/
collation?: string;
/**
* @member {ManagedDatabaseStatus} [status] Status for the database. Possible
* @member {ManagedDatabaseStatus} [status] Status of the database. Possible
* values include: 'Online', 'Offline', 'Shutdown', 'Creating',
* 'Inaccessible'
* 'Inaccessible', 'Updating'
* **NOTE: This property will not be serialized. It can only be populated by
* the server.**
*/
Expand Down Expand Up @@ -4406,8 +4406,10 @@ export interface ManagedDatabase extends TrackedResource {
* 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'
* 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'
*/
createMode?: ManagedDatabaseCreateMode;
/**
Expand All @@ -4421,6 +4423,11 @@ export interface ManagedDatabase extends TrackedResource {
* database associated with create operation of this database.
*/
sourceDatabaseId?: string;
/**
* @member {string} [restorableDroppedDatabaseId] The restorable dropped
* database resource id to restore when creating this database.
*/
restorableDroppedDatabaseId?: string;
/**
* @member {string} [storageContainerSasToken] Conditional. If createMode is
* RestoreExternalBackup, this value is required. Specifies the storage
Expand All @@ -4434,6 +4441,11 @@ export interface ManagedDatabase extends TrackedResource {
* the server.**
*/
readonly failoverGroupId?: string;
/**
* @member {string} [recoverableDatabaseId] The resource identifier of the
* recoverable database associated with create operation of this database.
*/
recoverableDatabaseId?: string;
}

/**
Expand All @@ -4448,9 +4460,9 @@ export interface ManagedDatabaseUpdate {
*/
collation?: string;
/**
* @member {ManagedDatabaseStatus} [status] Status for the database. Possible
* @member {ManagedDatabaseStatus} [status] Status of the database. Possible
* values include: 'Online', 'Offline', 'Shutdown', 'Creating',
* 'Inaccessible'
* 'Inaccessible', 'Updating'
* **NOTE: This property will not be serialized. It can only be populated by
* the server.**
*/
Expand Down Expand Up @@ -4494,8 +4506,10 @@ export interface ManagedDatabaseUpdate {
* 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'
* 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'
*/
createMode?: ManagedDatabaseCreateMode;
/**
Expand All @@ -4509,6 +4523,11 @@ export interface ManagedDatabaseUpdate {
* database associated with create operation of this database.
*/
sourceDatabaseId?: string;
/**
* @member {string} [restorableDroppedDatabaseId] The restorable dropped
* database resource id to restore when creating this database.
*/
restorableDroppedDatabaseId?: string;
/**
* @member {string} [storageContainerSasToken] Conditional. If createMode is
* RestoreExternalBackup, this value is required. Specifies the storage
Expand All @@ -4522,6 +4541,11 @@ export interface ManagedDatabaseUpdate {
* the server.**
*/
readonly failoverGroupId?: string;
/**
* @member {string} [recoverableDatabaseId] The resource identifier of the
* recoverable database associated with create operation of this database.
*/
recoverableDatabaseId?: string;
/**
* @member {{ [propertyName: string]: string }} [tags] Resource tags.
*/
Expand Down Expand Up @@ -8181,11 +8205,11 @@ export type JobTargetGroupMembershipType = 'Include' | 'Exclude';

/**
* Defines values for ManagedDatabaseStatus.
* Possible values include: 'Online', 'Offline', 'Shutdown', 'Creating', 'Inaccessible'
* Possible values include: 'Online', 'Offline', 'Shutdown', 'Creating', 'Inaccessible', 'Updating'
* @readonly
* @enum {string}
*/
export type ManagedDatabaseStatus = 'Online' | 'Offline' | 'Shutdown' | 'Creating' | 'Inaccessible';
export type ManagedDatabaseStatus = 'Online' | 'Offline' | 'Shutdown' | 'Creating' | 'Inaccessible' | 'Updating';

/**
* Defines values for CatalogCollationType.
Expand All @@ -8197,11 +8221,11 @@ export type CatalogCollationType = 'DATABASE_DEFAULT' | 'SQL_Latin1_General_CP1_

/**
* Defines values for ManagedDatabaseCreateMode.
* Possible values include: 'Default', 'RestoreExternalBackup', 'PointInTimeRestore'
* Possible values include: 'Default', 'RestoreExternalBackup', 'PointInTimeRestore', 'Recovery'
* @readonly
* @enum {string}
*/
export type ManagedDatabaseCreateMode = 'Default' | 'RestoreExternalBackup' | 'PointInTimeRestore';
export type ManagedDatabaseCreateMode = 'Default' | 'RestoreExternalBackup' | 'PointInTimeRestore' | 'Recovery';

/**
* Defines values for AutomaticTuningServerMode.
Expand Down
24 changes: 24 additions & 0 deletions packages/@azure/arm-sql/lib/models/mappers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4952,6 +4952,12 @@ export const ManagedDatabase: msRest.CompositeMapper = {
name: "String"
}
},
restorableDroppedDatabaseId: {
serializedName: "properties.restorableDroppedDatabaseId",
type: {
name: "String"
}
},
storageContainerSasToken: {
serializedName: "properties.storageContainerSasToken",
type: {
Expand All @@ -4964,6 +4970,12 @@ export const ManagedDatabase: msRest.CompositeMapper = {
type: {
name: "String"
}
},
recoverableDatabaseId: {
serializedName: "properties.recoverableDatabaseId",
type: {
name: "String"
}
}
}
}
Expand Down Expand Up @@ -5039,6 +5051,12 @@ export const ManagedDatabaseUpdate: msRest.CompositeMapper = {
name: "String"
}
},
restorableDroppedDatabaseId: {
serializedName: "properties.restorableDroppedDatabaseId",
type: {
name: "String"
}
},
storageContainerSasToken: {
serializedName: "properties.storageContainerSasToken",
type: {
Expand All @@ -5052,6 +5070,12 @@ export const ManagedDatabaseUpdate: msRest.CompositeMapper = {
name: "String"
}
},
recoverableDatabaseId: {
serializedName: "properties.recoverableDatabaseId",
type: {
name: "String"
}
},
tags: {
serializedName: "tags",
type: {
Expand Down
4 changes: 2 additions & 2 deletions packages/@azure/arm-sql/lib/operations/managedDatabases.ts
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ export class ManagedDatabases {
}

/**
* Deletes the managed database.
* 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 managedInstanceName The name of the managed instance.
Expand Down Expand Up @@ -202,7 +202,7 @@ export class ManagedDatabases {
}

/**
* Deletes the managed database.
* 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 managedInstanceName The name of the managed instance.
Expand Down