Skip to content
This repository was archived by the owner on May 5, 2023. It is now read-only.
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
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class DatabaseSecurityAlertPolicy extends models['ProxyResource'] {
* @member {string} [disabledAlerts] Specifies the semicolon-separated list
* of alerts that are disabled, or empty string to disable no alerts.
* Possible values: Sql_Injection; Sql_Injection_Vulnerability;
* Access_Anomaly; Usage_Anomaly.
* Access_Anomaly; Data_Exfiltration; Unsafe_Action.
* @member {string} [emailAddresses] Specifies the semicolon-separated list
* of e-mail addresses to which the alert is sent.
* @member {string} [emailAccountAdmins] Specifies that the alert is sent to
Expand Down
2 changes: 0 additions & 2 deletions lib/services/sqlManagement2/lib/models/databaseUpdate.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@

'use strict';

const models = require('./index');

/**
* A database resource.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,13 @@ class DatabaseVulnerabilityAssessment extends models['ProxyResource'] {
* @member {string} storageContainerPath A blob storage container path to
* hold the scan results (e.g.
* https://myStorage.blob.core.windows.net/VaScans/).
* @member {string} storageContainerSasKey A shared access signature (SAS
* @member {string} [storageContainerSasKey] A shared access signature (SAS
* Key) that has write access to the blob container specified in
* 'storageContainerPath' parameter.
* 'storageContainerPath' parameter. If 'storageAccountAccessKey' isn't
* specified, StorageContainerSasKey is required.
* @member {string} [storageAccountAccessKey] Specifies the identifier key of
* the vulnerability assessment storage account. If 'StorageContainerSasKey'
* isn't specified, storageAccountAccessKey is required.
* @member {object} [recurringScans] The recurring scans settings
* @member {boolean} [recurringScans.isEnabled] Recurring scans state.
* @member {boolean} [recurringScans.emailSubscriptionAdmins] Specifies that
Expand Down Expand Up @@ -84,12 +88,19 @@ class DatabaseVulnerabilityAssessment extends models['ProxyResource'] {
}
},
storageContainerSasKey: {
required: true,
required: false,
serializedName: 'properties.storageContainerSasKey',
type: {
name: 'String'
}
},
storageAccountAccessKey: {
required: false,
serializedName: 'properties.storageAccountAccessKey',
type: {
name: 'String'
}
},
recurringScans: {
required: false,
serializedName: 'properties.recurringScans',
Expand Down
2 changes: 0 additions & 2 deletions lib/services/sqlManagement2/lib/models/editionCapability.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@

'use strict';

const models = require('./index');

/**
* The edition capability.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@

'use strict';

const models = require('./index');

/**
* The elastic pool edition capability.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@

'use strict';

const models = require('./index');

/**
* The max per-database performance level capability.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@

'use strict';

const models = require('./index');

/**
* The Elastic Pool performance level capability.
*
Expand Down
2 changes: 0 additions & 2 deletions lib/services/sqlManagement2/lib/models/elasticPoolUpdate.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@

'use strict';

const models = require('./index');

/**
* An elastic pool update.
*
Expand Down
2 changes: 0 additions & 2 deletions lib/services/sqlManagement2/lib/models/failoverGroupUpdate.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@

'use strict';

const models = require('./index');

/**
* A failover group update request.
*
Expand Down
127 changes: 95 additions & 32 deletions lib/services/sqlManagement2/lib/models/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ export interface ServerConnectionPolicy extends ProxyResource {
* @member {string} [disabledAlerts] Specifies the semicolon-separated list of
* alerts that are disabled, or empty string to disable no alerts. Possible
* values: Sql_Injection; Sql_Injection_Vulnerability; Access_Anomaly;
* Usage_Anomaly.
* Data_Exfiltration; Unsafe_Action.
* @member {string} [emailAddresses] Specifies the semicolon-separated list of
* e-mail addresses to which the alert is sent.
* @member {string} [emailAccountAdmins] Specifies that the alert is sent to
Expand Down Expand Up @@ -1342,6 +1342,10 @@ export interface Sku {
* 'LicenseIncluded' and 'BasePrice'.
* @member {number} [vCores] The number of VCores.
* @member {number} [storageSizeInGB] The maximum storage size in GB.
* @member {string} [collation] Collation of the managed instance.
* @member {string} [dnsZone] The Dns Zone that the managed instance is in.
* @member {string} [dnsZonePartner] The resource id of another managed
* instance whose DNS zone this managed instance will share after creation.
*/
export interface ManagedInstance extends TrackedResource {
identity?: ResourceIdentity;
Expand All @@ -1354,6 +1358,9 @@ export interface ManagedInstance extends TrackedResource {
licenseType?: string;
vCores?: number;
storageSizeInGB?: number;
readonly collation?: string;
readonly dnsZone?: string;
dnsZonePartner?: string;
}

/**
Expand Down Expand Up @@ -1388,6 +1395,10 @@ export interface ManagedInstance extends TrackedResource {
* 'LicenseIncluded' and 'BasePrice'.
* @member {number} [vCores] The number of VCores.
* @member {number} [storageSizeInGB] The maximum storage size in GB.
* @member {string} [collation] Collation of the managed instance.
* @member {string} [dnsZone] The Dns Zone that the managed instance is in.
* @member {string} [dnsZonePartner] The resource id of another managed
* instance whose DNS zone this managed instance will share after creation.
* @member {object} [tags] Resource tags.
*/
export interface ManagedInstanceUpdate {
Expand All @@ -1400,6 +1411,9 @@ export interface ManagedInstanceUpdate {
licenseType?: string;
vCores?: number;
storageSizeInGB?: number;
readonly collation?: string;
readonly dnsZone?: string;
dnsZonePartner?: string;
tags?: { [propertyName: string]: string };
}

Expand Down Expand Up @@ -2331,9 +2345,13 @@ export interface VulnerabilityAssessmentRecurringScansProperties {
*
* @member {string} storageContainerPath A blob storage container path to hold
* the scan results (e.g. https://myStorage.blob.core.windows.net/VaScans/).
* @member {string} storageContainerSasKey A shared access signature (SAS Key)
* that has write access to the blob container specified in
* 'storageContainerPath' parameter.
* @member {string} [storageContainerSasKey] A shared access signature (SAS
* Key) that has write access to the blob container specified in
* 'storageContainerPath' parameter. If 'storageAccountAccessKey' isn't
* specified, StorageContainerSasKey is required.
* @member {string} [storageAccountAccessKey] Specifies the identifier key of
* the vulnerability assessment storage account. If 'StorageContainerSasKey'
* isn't specified, storageAccountAccessKey is required.
* @member {object} [recurringScans] The recurring scans settings
* @member {boolean} [recurringScans.isEnabled] Recurring scans state.
* @member {boolean} [recurringScans.emailSubscriptionAdmins] Specifies that
Expand All @@ -2344,7 +2362,8 @@ export interface VulnerabilityAssessmentRecurringScansProperties {
*/
export interface DatabaseVulnerabilityAssessment extends ProxyResource {
storageContainerPath: string;
storageContainerSasKey: string;
storageContainerSasKey?: string;
storageAccountAccessKey?: string;
recurringScans?: VulnerabilityAssessmentRecurringScansProperties;
}

Expand Down Expand Up @@ -2862,20 +2881,6 @@ export interface ManagedDatabaseUpdate {
tags?: { [propertyName: string]: string };
}

/**
* @class
* Initializes a new instance of the SensitivityLabel class.
* @constructor
* A sensitivity label.
*
* @member {string} [labelName] The label name.
* @member {string} [informationType] The information type.
*/
export interface SensitivityLabel extends ProxyResource {
labelName?: string;
informationType?: string;
}

/**
* @class
* Initializes a new instance of the AutomaticTuningServerOptions class.
Expand Down Expand Up @@ -2952,7 +2957,7 @@ export interface ServerDnsAliasAcquisition {
* enabled or disabled. Possible values include: 'New', 'Enabled', 'Disabled'
* @member {array} [disabledAlerts] Specifies an array of alerts that are
* disabled. Allowed values are: Sql_Injection, Sql_Injection_Vulnerability,
* Access_Anomaly
* Access_Anomaly, Data_Exfiltration, Unsafe_Action
* @member {array} [emailAddresses] Specifies an array of e-mail addresses to
* which the alert is sent.
* @member {boolean} [emailAccountAdmins] Specifies that the alert is sent to
Expand Down Expand Up @@ -4151,6 +4156,52 @@ export interface TdeCertificate extends ProxyResource {
certPassword?: string;
}

/**
* @class
* Initializes a new instance of the ManagedInstanceKey class.
* @constructor
* A managed instance key.
*
* @member {string} [kind] Kind of encryption protector. This is metadata used
* for the Azure portal experience.
* @member {string} serverKeyType The key type like 'ServiceManaged',
* 'AzureKeyVault'. Possible values include: 'ServiceManaged', 'AzureKeyVault'
* @member {string} [uri] The URI of the key. If the ServerKeyType is
* AzureKeyVault, then the URI is required.
* @member {string} [thumbprint] Thumbprint of the key.
* @member {date} [creationDate] The key creation date.
*/
export interface ManagedInstanceKey extends ProxyResource {
readonly kind?: string;
serverKeyType: string;
uri?: string;
readonly thumbprint?: string;
readonly creationDate?: Date;
}

/**
* @class
* Initializes a new instance of the ManagedInstanceEncryptionProtector class.
* @constructor
* The managed instance encryption protector.
*
* @member {string} [kind] Kind of encryption protector. This is metadata used
* for the Azure portal experience.
* @member {string} [serverKeyName] The name of the managed instance key.
* @member {string} serverKeyType The encryption protector type like
* 'ServiceManaged', 'AzureKeyVault'. Possible values include:
* 'ServiceManaged', 'AzureKeyVault'
* @member {string} [uri] The URI of the server key.
* @member {string} [thumbprint] Thumbprint of the server key.
*/
export interface ManagedInstanceEncryptionProtector extends ProxyResource {
readonly kind?: string;
serverKeyName?: string;
serverKeyType: string;
readonly uri?: string;
readonly thumbprint?: string;
}


/**
* @class
Expand Down Expand Up @@ -4655,18 +4706,6 @@ export interface ManagedDatabaseListResult extends Array<ManagedDatabase> {
readonly nextLink?: string;
}

/**
* @class
* Initializes a new instance of the SensitivityLabelListResult class.
* @constructor
* A list of sensitivity labels.
*
* @member {string} [nextLink] Link to retrieve next page of results.
*/
export interface SensitivityLabelListResult extends Array<SensitivityLabel> {
readonly nextLink?: string;
}

/**
* @class
* Initializes a new instance of the ServerDnsAliasListResult class.
Expand Down Expand Up @@ -4750,3 +4789,27 @@ export interface InstanceFailoverGroupListResult extends Array<InstanceFailoverG
export interface BackupShortTermRetentionPolicyListResult extends Array<BackupShortTermRetentionPolicy> {
readonly nextLink?: string;
}

/**
* @class
* Initializes a new instance of the ManagedInstanceKeyListResult class.
* @constructor
* A list of managed instance keys.
*
* @member {string} [nextLink] Link to retrieve next page of results.
*/
export interface ManagedInstanceKeyListResult extends Array<ManagedInstanceKey> {
readonly nextLink?: string;
}

/**
* @class
* Initializes a new instance of the ManagedInstanceEncryptionProtectorListResult class.
* @constructor
* A list of managed instance encryption protectors.
*
* @member {string} [nextLink] Link to retrieve next page of results.
*/
export interface ManagedInstanceEncryptionProtectorListResult extends Array<ManagedInstanceEncryptionProtector> {
readonly nextLink?: string;
}
6 changes: 4 additions & 2 deletions lib/services/sqlManagement2/lib/models/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,6 @@ exports.BackupLongTermRetentionPolicy = require('./backupLongTermRetentionPolicy
exports.CompleteDatabaseRestoreDefinition = require('./completeDatabaseRestoreDefinition');
exports.ManagedDatabase = require('./managedDatabase');
exports.ManagedDatabaseUpdate = require('./managedDatabaseUpdate');
exports.SensitivityLabel = require('./sensitivityLabel');
exports.AutomaticTuningServerOptions = require('./automaticTuningServerOptions');
exports.ServerAutomaticTuning = require('./serverAutomaticTuning');
exports.ServerDnsAlias = require('./serverDnsAlias');
Expand Down Expand Up @@ -158,6 +157,8 @@ exports.ManagedInstancePairInfo = require('./managedInstancePairInfo');
exports.InstanceFailoverGroup = require('./instanceFailoverGroup');
exports.BackupShortTermRetentionPolicy = require('./backupShortTermRetentionPolicy');
exports.TdeCertificate = require('./tdeCertificate');
exports.ManagedInstanceKey = require('./managedInstanceKey');
exports.ManagedInstanceEncryptionProtector = require('./managedInstanceEncryptionProtector');
exports.RecoverableDatabaseListResult = require('./recoverableDatabaseListResult');
exports.RestorableDroppedDatabaseListResult = require('./restorableDroppedDatabaseListResult');
exports.ServerListResult = require('./serverListResult');
Expand Down Expand Up @@ -203,11 +204,12 @@ exports.JobTargetGroupListResult = require('./jobTargetGroupListResult');
exports.JobVersionListResult = require('./jobVersionListResult');
exports.LongTermRetentionBackupListResult = require('./longTermRetentionBackupListResult');
exports.ManagedDatabaseListResult = require('./managedDatabaseListResult');
exports.SensitivityLabelListResult = require('./sensitivityLabelListResult');
exports.ServerDnsAliasListResult = require('./serverDnsAliasListResult');
exports.RestorePointListResult = require('./restorePointListResult');
exports.DatabaseOperationListResult = require('./databaseOperationListResult');
exports.ElasticPoolOperationListResult = require('./elasticPoolOperationListResult');
exports.VulnerabilityAssessmentScanRecordListResult = require('./vulnerabilityAssessmentScanRecordListResult');
exports.InstanceFailoverGroupListResult = require('./instanceFailoverGroupListResult');
exports.BackupShortTermRetentionPolicyListResult = require('./backupShortTermRetentionPolicyListResult');
exports.ManagedInstanceKeyListResult = require('./managedInstanceKeyListResult');
exports.ManagedInstanceEncryptionProtectorListResult = require('./managedInstanceEncryptionProtectorListResult');
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@

'use strict';

const models = require('./index');

/**
* The location capability.
*
Expand Down
27 changes: 27 additions & 0 deletions lib/services/sqlManagement2/lib/models/managedInstance.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,10 @@ class ManagedInstance extends models['TrackedResource'] {
* 'LicenseIncluded' and 'BasePrice'.
* @member {number} [vCores] The number of VCores.
* @member {number} [storageSizeInGB] The maximum storage size in GB.
* @member {string} [collation] Collation of the managed instance.
* @member {string} [dnsZone] The Dns Zone that the managed instance is in.
* @member {string} [dnsZonePartner] The resource id of another managed
* instance whose DNS zone this managed instance will share after creation.
*/
constructor() {
super();
Expand Down Expand Up @@ -193,6 +197,29 @@ class ManagedInstance extends models['TrackedResource'] {
type: {
name: 'Number'
}
},
collation: {
required: false,
readOnly: true,
serializedName: 'properties.collation',
type: {
name: 'String'
}
},
dnsZone: {
required: false,
readOnly: true,
serializedName: 'properties.dnsZone',
type: {
name: 'String'
}
},
dnsZonePartner: {
required: false,
serializedName: 'properties.dnsZonePartner',
type: {
name: 'String'
}
}
}
}
Expand Down
Loading