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

Commit

Permalink
[AutoPR sql/resource-manager] [DO NOT MERGE] Update jobs.json to late…
Browse files Browse the repository at this point in the history
…st generated swagger file as well as it's updated examples (#2764)

* Generated from 17163e4990a1c6b6e1238bdcf78a15d4e0948130

Updated readme.md to include jobs.json for 2017-03-01-preview where necessary.

Regenerated swagger to include job step and target executions, sku name and capacity support in agent createOrUpdate and get, as well as filter for top executions.

Job examples were updated to reflect correct json request and response paramters for agent and target group.

* Generated from 734f2e9aca7cddbc2e2a673f6c18e211fce7079b

Updates to jobs.json as well as examples, this time keeping out readme.md until ready to publish sdk

* Generated from 748aec06ad4c47bd52dee94d189d9c3d7f391bca

Updated readme.md to include jobs.json. Fixed job step output examples

* Generated from a74684ba52dc7e4ea8b566425d98629cfcf4d01e

Fixing readme.md based on feedback. Ordered jobs.json alphabetically in it's 2017-03-01-preview regions as well as removed comment for difference between v3 and v2
  • Loading branch information
AutorestCI authored May 17, 2018
1 parent 9aa91cc commit 4b96410
Show file tree
Hide file tree
Showing 48 changed files with 27,524 additions and 1,368 deletions.
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

0 comments on commit 4b96410

Please sign in to comment.