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

[AutoPR] sql/resource-manager #3994

Merged
3 commits merged into from
Oct 31, 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
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,18 @@ const models = require('./index');
class DatabaseVulnerabilityAssessment extends models['ProxyResource'] {
/**
* Create a DatabaseVulnerabilityAssessment.
* @member {string} storageContainerPath A blob storage container path to
* @member {string} [storageContainerPath] A blob storage container path to
* hold the scan results (e.g.
* https://myStorage.blob.core.windows.net/VaScans/).
* https://myStorage.blob.core.windows.net/VaScans/). It is required if
* server level vulnerability assessment policy doesn't set
* @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.
* the storage account for vulnerability assessment scan results. 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 @@ -81,7 +83,7 @@ class DatabaseVulnerabilityAssessment extends models['ProxyResource'] {
}
},
storageContainerPath: {
required: true,
required: false,
serializedName: 'properties.storageContainerPath',
type: {
name: 'String'
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/

'use strict';

/**
* A list of the database's vulnerability assessments.
*/
class DatabaseVulnerabilityAssessmentListResult extends Array {
/**
* Create a DatabaseVulnerabilityAssessmentListResult.
* @member {string} [nextLink] Link to retrieve next page of results.
*/
constructor() {
super();
}

/**
* Defines the metadata of DatabaseVulnerabilityAssessmentListResult
*
* @returns {object} metadata of DatabaseVulnerabilityAssessmentListResult
*
*/
mapper() {
return {
required: false,
serializedName: 'DatabaseVulnerabilityAssessmentListResult',
type: {
name: 'Composite',
className: 'DatabaseVulnerabilityAssessmentListResult',
modelProperties: {
value: {
required: false,
readOnly: true,
serializedName: '',
type: {
name: 'Sequence',
element: {
required: false,
serializedName: 'DatabaseVulnerabilityAssessmentElementType',
type: {
name: 'Composite',
className: 'DatabaseVulnerabilityAssessment'
}
}
}
},
nextLink: {
required: false,
readOnly: true,
serializedName: 'nextLink',
type: {
name: 'String'
}
}
}
}
};
}
}

module.exports = DatabaseVulnerabilityAssessmentListResult;
25 changes: 20 additions & 5 deletions lib/services/sqlManagement2/lib/models/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2419,15 +2419,18 @@ export interface VulnerabilityAssessmentRecurringScansProperties {
* @constructor
* A database vulnerability assessment.
*
* @member {string} storageContainerPath A blob storage container path to hold
* the scan results (e.g. https://myStorage.blob.core.windows.net/VaScans/).
* @member {string} [storageContainerPath] A blob storage container path to
* hold the scan results (e.g.
* https://myStorage.blob.core.windows.net/VaScans/). It is required if server
* level vulnerability assessment policy doesn't set
* @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.
* the storage account for vulnerability assessment scan results. 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 @@ -2437,7 +2440,7 @@ export interface VulnerabilityAssessmentRecurringScansProperties {
* addresses to which the scan notification is sent.
*/
export interface DatabaseVulnerabilityAssessment extends ProxyResource {
storageContainerPath: string;
storageContainerPath?: string;
storageContainerSasKey?: string;
storageAccountAccessKey?: string;
recurringScans?: VulnerabilityAssessmentRecurringScansProperties;
Expand Down Expand Up @@ -4674,6 +4677,18 @@ export interface VirtualNetworkRuleListResult extends Array<VirtualNetworkRule>
readonly nextLink?: string;
}

/**
* @class
* Initializes a new instance of the DatabaseVulnerabilityAssessmentListResult class.
* @constructor
* A list of the database's vulnerability assessments.
*
* @member {string} [nextLink] Link to retrieve next page of results.
*/
export interface DatabaseVulnerabilityAssessmentListResult extends Array<DatabaseVulnerabilityAssessment> {
readonly nextLink?: string;
}

/**
* @class
* Initializes a new instance of the JobAgentListResult class.
Expand Down
1 change: 1 addition & 0 deletions lib/services/sqlManagement2/lib/models/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,7 @@ exports.SyncGroupListResult = require('./syncGroupListResult');
exports.SyncMemberListResult = require('./syncMemberListResult');
exports.SubscriptionUsageListResult = require('./subscriptionUsageListResult');
exports.VirtualNetworkRuleListResult = require('./virtualNetworkRuleListResult');
exports.DatabaseVulnerabilityAssessmentListResult = require('./databaseVulnerabilityAssessmentListResult');
exports.JobAgentListResult = require('./jobAgentListResult');
exports.JobCredentialListResult = require('./jobCredentialListResult');
exports.JobExecutionListResult = require('./jobExecutionListResult');
Expand Down
Loading