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

Commit

Permalink
Merge pull request #3293 from Azure/restapi_auto_sql/resource-manager
Browse files Browse the repository at this point in the history
[AutoPR] sql/resource-manager
  • Loading branch information
Dan Schulte authored Aug 28, 2018
2 parents 8acfd4b + af6526f commit 2e8e0b0
Show file tree
Hide file tree
Showing 29 changed files with 710 additions and 69 deletions.
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
13 changes: 9 additions & 4 deletions lib/services/sqlManagement2/lib/models/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2331,9 +2331,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 +2348,8 @@ export interface VulnerabilityAssessmentRecurringScansProperties {
*/
export interface DatabaseVulnerabilityAssessment extends ProxyResource {
storageContainerPath: string;
storageContainerSasKey: string;
storageContainerSasKey?: string;
storageAccountAccessKey?: string;
recurringScans?: VulnerabilityAssessmentRecurringScansProperties;
}

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 location 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 managed server 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 managed server family 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');

/**
* An update request for an Azure SQL Database managed instance.
*
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 managed instance 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 maximum size range capability.
*
Expand Down
2 changes: 0 additions & 2 deletions lib/services/sqlManagement2/lib/models/metric.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@

'use strict';

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

/**
* Database metrics.
*
Expand Down
2 changes: 0 additions & 2 deletions lib/services/sqlManagement2/lib/models/metricDefinition.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 metric definition.
*
Expand Down
2 changes: 0 additions & 2 deletions lib/services/sqlManagement2/lib/models/operation.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@

'use strict';

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

/**
* SQL REST API operation definition.
*
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 server 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 service objectives 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');

/**
* Properties of the database full schema.
*
Expand Down
2 changes: 0 additions & 2 deletions lib/services/sqlManagement2/lib/models/syncFullSchemaTable.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@

'use strict';

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

/**
* Properties of the table in the database full schema.
*
Expand Down
2 changes: 0 additions & 2 deletions lib/services/sqlManagement2/lib/models/syncGroupSchema.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@

'use strict';

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

/**
* Properties of sync group schema.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@

'use strict';

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

/**
* Properties of table in sync group schema.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -187,9 +187,15 @@ function _get(resourceGroupName, serverName, databaseName, options, callback) {
* path to hold the scan results (e.g.
* https://myStorage.blob.core.windows.net/VaScans/).
*
* @param {string} parameters.storageContainerSasKey A shared access signature
* (SAS Key) that has write access to the blob container specified in
* 'storageContainerPath' parameter.
* @param {string} [parameters.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.
*
* @param {string} [parameters.storageAccountAccessKey] Specifies the
* identifier key of the vulnerability assessment storage account. If
* 'StorageContainerSasKey' isn't specified, storageAccountAccessKey is
* required.
*
* @param {object} [parameters.recurringScans] The recurring scans settings
*
Expand Down Expand Up @@ -644,9 +650,15 @@ class DatabaseVulnerabilityAssessments {
* path to hold the scan results (e.g.
* https://myStorage.blob.core.windows.net/VaScans/).
*
* @param {string} parameters.storageContainerSasKey A shared access signature
* (SAS Key) that has write access to the blob container specified in
* 'storageContainerPath' parameter.
* @param {string} [parameters.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.
*
* @param {string} [parameters.storageAccountAccessKey] Specifies the
* identifier key of the vulnerability assessment storage account. If
* 'StorageContainerSasKey' isn't specified, storageAccountAccessKey is
* required.
*
* @param {object} [parameters.recurringScans] The recurring scans settings
*
Expand Down Expand Up @@ -703,9 +715,15 @@ class DatabaseVulnerabilityAssessments {
* path to hold the scan results (e.g.
* https://myStorage.blob.core.windows.net/VaScans/).
*
* @param {string} parameters.storageContainerSasKey A shared access signature
* (SAS Key) that has write access to the blob container specified in
* 'storageContainerPath' parameter.
* @param {string} [parameters.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.
*
* @param {string} [parameters.storageAccountAccessKey] Specifies the
* identifier key of the vulnerability assessment storage account. If
* 'StorageContainerSasKey' isn't specified, storageAccountAccessKey is
* required.
*
* @param {object} [parameters.recurringScans] The recurring scans settings
*
Expand Down
Loading

0 comments on commit 2e8e0b0

Please sign in to comment.