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

[AutoPR sql/resource-manager] [DO NOT MERGE] Update jobs.json to latest generated swagger file as well as it's updated examples #2764

Merged
merged 4 commits into from
May 17, 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
@@ -0,0 +1,107 @@
/*
* 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';

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

/**
* A database vulnerability assessment.
*
* @extends models['ProxyResource']
*/
class DatabaseVulnerabilityAssessment extends models['ProxyResource'] {
/**
* Create a DatabaseVulnerabilityAssessment.
* @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 {object} [recurringScans] The recurring scans settings
* @member {boolean} [recurringScans.isEnabled] Recurring scans state.
* @member {boolean} [recurringScans.emailSubscriptionAdmins] Specifies that
* the schedule scan notification will be is sent to the subscription
* administrators.
* @member {array} [recurringScans.emails] Specifies an array of e-mail
* addresses to which the scan notification is sent.
*/
constructor() {
super();
}

/**
* Defines the metadata of DatabaseVulnerabilityAssessment
*
* @returns {object} metadata of DatabaseVulnerabilityAssessment
*
*/
mapper() {
return {
required: false,
serializedName: 'DatabaseVulnerabilityAssessment',
type: {
name: 'Composite',
className: 'DatabaseVulnerabilityAssessment',
modelProperties: {
id: {
required: false,
readOnly: true,
serializedName: 'id',
type: {
name: 'String'
}
},
name: {
required: false,
readOnly: true,
serializedName: 'name',
type: {
name: 'String'
}
},
type: {
required: false,
readOnly: true,
serializedName: 'type',
type: {
name: 'String'
}
},
storageContainerPath: {
required: false,
serializedName: 'properties.storageContainerPath',
type: {
name: 'String'
}
},
storageContainerSasKey: {
required: false,
serializedName: 'properties.storageContainerSasKey',
type: {
name: 'String'
}
},
recurringScans: {
required: false,
serializedName: 'properties.recurringScans',
type: {
name: 'Composite',
className: 'VulnerabilityAssessmentRecurringScansProperties'
}
}
}
}
};
}
}

module.exports = DatabaseVulnerabilityAssessment;
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
/*
* 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';

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

/**
* A database vulnerability assessment rule baseline.
*
* @extends models['ProxyResource']
*/
class DatabaseVulnerabilityAssessmentRuleBaseline extends models['ProxyResource'] {
/**
* Create a DatabaseVulnerabilityAssessmentRuleBaseline.
* @member {array} baselineResults The rule baseline result
*/
constructor() {
super();
}

/**
* Defines the metadata of DatabaseVulnerabilityAssessmentRuleBaseline
*
* @returns {object} metadata of DatabaseVulnerabilityAssessmentRuleBaseline
*
*/
mapper() {
return {
required: false,
serializedName: 'DatabaseVulnerabilityAssessmentRuleBaseline',
type: {
name: 'Composite',
className: 'DatabaseVulnerabilityAssessmentRuleBaseline',
modelProperties: {
id: {
required: false,
readOnly: true,
serializedName: 'id',
type: {
name: 'String'
}
},
name: {
required: false,
readOnly: true,
serializedName: 'name',
type: {
name: 'String'
}
},
type: {
required: false,
readOnly: true,
serializedName: 'type',
type: {
name: 'String'
}
},
baselineResults: {
required: true,
serializedName: 'properties.baselineResults',
type: {
name: 'Sequence',
element: {
required: false,
serializedName: 'DatabaseVulnerabilityAssessmentRuleBaselineItemElementType',
type: {
name: 'Composite',
className: 'DatabaseVulnerabilityAssessmentRuleBaselineItem'
}
}
}
}
}
}
};
}
}

module.exports = DatabaseVulnerabilityAssessmentRuleBaseline;
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
/*
* 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';

/**
* Properties for an Azure SQL Database Vulnerability Assessment rule
* baseline's result.
*
*/
class DatabaseVulnerabilityAssessmentRuleBaselineItem {
/**
* Create a DatabaseVulnerabilityAssessmentRuleBaselineItem.
* @member {array} result The rule baseline result
*/
constructor() {
}

/**
* Defines the metadata of DatabaseVulnerabilityAssessmentRuleBaselineItem
*
* @returns {object} metadata of DatabaseVulnerabilityAssessmentRuleBaselineItem
*
*/
mapper() {
return {
required: false,
serializedName: 'DatabaseVulnerabilityAssessmentRuleBaselineItem',
type: {
name: 'Composite',
className: 'DatabaseVulnerabilityAssessmentRuleBaselineItem',
modelProperties: {
result: {
required: true,
serializedName: 'result',
type: {
name: 'Sequence',
element: {
required: false,
serializedName: 'StringElementType',
type: {
name: 'String'
}
}
}
}
}
}
};
}
}

module.exports = DatabaseVulnerabilityAssessmentRuleBaselineItem;
Original file line number Diff line number Diff line change
@@ -0,0 +1,83 @@
/*
* 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';

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

/**
* A database Vulnerability Assessment scan export resource.
*
* @extends models['ProxyResource']
*/
class DatabaseVulnerabilityAssessmentScansExport extends models['ProxyResource'] {
/**
* Create a DatabaseVulnerabilityAssessmentScansExport.
* @member {string} [exportedReportLocation] Location of the exported report
* (e.g.
* https://myStorage.blob.core.windows.net/VaScans/scans/serverName/databaseName/scan_scanId.xlsx).
*/
constructor() {
super();
}

/**
* Defines the metadata of DatabaseVulnerabilityAssessmentScansExport
*
* @returns {object} metadata of DatabaseVulnerabilityAssessmentScansExport
*
*/
mapper() {
return {
required: false,
serializedName: 'DatabaseVulnerabilityAssessmentScansExport',
type: {
name: 'Composite',
className: 'DatabaseVulnerabilityAssessmentScansExport',
modelProperties: {
id: {
required: false,
readOnly: true,
serializedName: 'id',
type: {
name: 'String'
}
},
name: {
required: false,
readOnly: true,
serializedName: 'name',
type: {
name: 'String'
}
},
type: {
required: false,
readOnly: true,
serializedName: 'type',
type: {
name: 'String'
}
},
exportedReportLocation: {
required: false,
readOnly: true,
serializedName: 'properties.exportedReportLocation',
type: {
name: 'String'
}
}
}
}
};
}
}

module.exports = DatabaseVulnerabilityAssessmentScansExport;
Loading