Skip to content
This repository was archived by the owner on May 5, 2023. It is now read-only.
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
119 changes: 105 additions & 14 deletions lib/services/sqlManagement2/lib/models/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -550,7 +550,7 @@ export interface MetricAvailability {
* @property {string} [unit] The unit of the metric. Possible values include:
* 'Count', 'Bytes', 'Seconds', 'Percent', 'CountPerSecond', 'BytesPerSecond'
* @property {array} [metricAvailabilities] The list of database metric
* availabities for the metric.
* availabilities for the metric.
*/
export interface MetricDefinition {
readonly name?: MetricName;
Expand Down Expand Up @@ -582,7 +582,7 @@ export interface RecommendedElasticPoolMetric {
* @class
* Initializes a new instance of the RecommendedElasticPool class.
* @constructor
* Represents a recommented elastic pool.
* Represents a recommended elastic pool.
*
* @property {string} [databaseEdition] The edition of the recommended elastic
* pool. The ElasticPoolEdition enumeration contains all the valid editions.
Expand Down Expand Up @@ -2606,7 +2606,7 @@ export interface JobExecution extends ProxyResource {
* 'Once', 'Recurring'. Default value: 'Once' .
* @property {boolean} [enabled] Whether or not the schedule is enabled.
* @property {string} [interval] Value of the schedule's recurring interval, if
* the scheduletype is recurring. ISO8601 duration format.
* the schedule type is recurring. ISO8601 duration format.
*/
export interface JobSchedule {
startTime?: Date;
Expand All @@ -2633,7 +2633,7 @@ export interface JobSchedule {
* @property {boolean} [schedule.enabled] Whether or not the schedule is
* enabled.
* @property {string} [schedule.interval] Value of the schedule's recurring
* interval, if the scheduletype is recurring. ISO8601 duration format.
* interval, if the schedule type is recurring. ISO8601 duration format.
*/
export interface Job extends ProxyResource {
description?: string;
Expand Down 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 Expand Up @@ -3088,6 +3104,8 @@ export interface ServerDnsAliasAcquisition {
* the Threat Detection audit storage account.
* @property {number} [retentionDays] Specifies the number of days to keep in
* the Threat Detection audit logs.
* @property {date} [creationTime] Specifies the UTC creation time of the
* policy.
*/
export interface ServerSecurityAlertPolicy extends ProxyResource {
state: string;
Expand All @@ -3097,6 +3115,7 @@ export interface ServerSecurityAlertPolicy extends ProxyResource {
storageEndpoint?: string;
storageAccountAccessKey?: string;
retentionDays?: number;
readonly creationTime?: Date;
}

/**
Expand Down Expand Up @@ -3135,6 +3154,78 @@ export interface CreateDatabaseRestorePointDefinition {
restorePointLabel: string;
}

/**
* @class
* Initializes a new instance of the ManagedDatabaseSecurityAlertPolicy class.
* @constructor
* A managed database security alert policy.
*
* @property {string} state Specifies the state of the policy, whether it is
* enabled or disabled. Possible values include: 'New', 'Enabled', 'Disabled'
* @property {array} [disabledAlerts] Specifies an array of alerts that are
* disabled. Allowed values are: Sql_Injection, Sql_Injection_Vulnerability,
* Access_Anomaly, Data_Exfiltration, Unsafe_Action
* @property {array} [emailAddresses] Specifies an array of e-mail addresses to
* which the alert is sent.
* @property {boolean} [emailAccountAdmins] Specifies that the alert is sent to
* the account administrators.
* @property {string} [storageEndpoint] Specifies the blob storage endpoint
* (e.g. https://MyAccount.blob.core.windows.net). This blob storage will hold
* all Threat Detection audit logs.
* @property {string} [storageAccountAccessKey] Specifies the identifier key of
* the Threat Detection audit storage account.
* @property {number} [retentionDays] Specifies the number of days to keep in
* the Threat Detection audit logs.
* @property {date} [creationTime] Specifies the UTC creation time of the
* policy.
*/
export interface ManagedDatabaseSecurityAlertPolicy extends ProxyResource {
state: string;
disabledAlerts?: string[];
emailAddresses?: string[];
emailAccountAdmins?: boolean;
storageEndpoint?: string;
storageAccountAccessKey?: string;
retentionDays?: number;
readonly creationTime?: Date;
}

/**
* @class
* Initializes a new instance of the ManagedServerSecurityAlertPolicy class.
* @constructor
* A managed server security alert policy.
*
* @property {string} state Specifies the state of the policy, whether it is
* enabled or disabled. Possible values include: 'New', 'Enabled', 'Disabled'
* @property {array} [disabledAlerts] Specifies an array of alerts that are
* disabled. Allowed values are: Sql_Injection, Sql_Injection_Vulnerability,
* Access_Anomaly, Data_Exfiltration, Unsafe_Action
* @property {array} [emailAddresses] Specifies an array of e-mail addresses to
* which the alert is sent.
* @property {boolean} [emailAccountAdmins] Specifies that the alert is sent to
* the account administrators.
* @property {string} [storageEndpoint] Specifies the blob storage endpoint
* (e.g. https://MyAccount.blob.core.windows.net). This blob storage will hold
* all Threat Detection audit logs.
* @property {string} [storageAccountAccessKey] Specifies the identifier key of
* the Threat Detection audit storage account.
* @property {number} [retentionDays] Specifies the number of days to keep in
* the Threat Detection audit logs.
* @property {date} [creationTime] Specifies the UTC creation time of the
* policy.
*/
export interface ManagedServerSecurityAlertPolicy extends ProxyResource {
state: string;
disabledAlerts?: string[];
emailAddresses?: string[];
emailAccountAdmins?: boolean;
storageEndpoint?: string;
storageAccountAccessKey?: string;
retentionDays?: number;
readonly creationTime?: Date;
}

/**
* @class
* Initializes a new instance of the DatabaseOperation class.
Expand Down Expand Up @@ -4902,7 +4993,7 @@ export interface JobVersionListResult extends Array<JobVersion> {
* @class
* Initializes a new instance of the LongTermRetentionBackupListResult class.
* @constructor
* A list of long term retention bacukps.
* A list of long term retention backups.
*
* @property {string} [nextLink] Link to retrieve next page of results.
*/
Expand Down Expand Up @@ -4950,7 +5041,7 @@ export interface ServerDnsAliasListResult extends Array<ServerDnsAlias> {
* @class
* Initializes a new instance of the RestorePointListResult class.
* @constructor
* A list of long term retention bacukps.
* A list of long term retention backups.
*
* @property {string} [nextLink] Link to retrieve next page of results.
*/
Expand Down
2 changes: 2 additions & 0 deletions lib/services/sqlManagement2/lib/models/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,8 @@ exports.ServerDnsAliasAcquisition = require('./serverDnsAliasAcquisition');
exports.ServerSecurityAlertPolicy = require('./serverSecurityAlertPolicy');
exports.RestorePoint = require('./restorePoint');
exports.CreateDatabaseRestorePointDefinition = require('./createDatabaseRestorePointDefinition');
exports.ManagedDatabaseSecurityAlertPolicy = require('./managedDatabaseSecurityAlertPolicy');
exports.ManagedServerSecurityAlertPolicy = require('./managedServerSecurityAlertPolicy');
exports.DatabaseOperation = require('./databaseOperation');
exports.ElasticPoolOperation = require('./elasticPoolOperation');
exports.MaxSizeCapability = require('./maxSizeCapability');
Expand Down
2 changes: 1 addition & 1 deletion lib/services/sqlManagement2/lib/models/job.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class Job extends models['ProxyResource'] {
* @property {boolean} [schedule.enabled] Whether or not the schedule is
* enabled.
* @property {string} [schedule.interval] Value of the schedule's recurring
* interval, if the scheduletype is recurring. ISO8601 duration format.
* interval, if the schedule type is recurring. ISO8601 duration format.
*/
constructor() {
super();
Expand Down
2 changes: 1 addition & 1 deletion lib/services/sqlManagement2/lib/models/jobSchedule.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class JobSchedule {
* 'Once', 'Recurring'. Default value: 'Once' .
* @property {boolean} [enabled] Whether or not the schedule is enabled.
* @property {string} [interval] Value of the schedule's recurring interval,
* if the scheduletype is recurring. ISO8601 duration format.
* if the schedule type is recurring. ISO8601 duration format.
*/
constructor() {
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
'use strict';

/**
* A list of long term retention bacukps.
* A list of long term retention backups.
*/
class LongTermRetentionBackupListResult extends Array {
/**
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
Loading