diff --git a/lib/services/securityManagement/LICENSE.txt b/lib/services/securityManagement/LICENSE.txt index 5431ba98b9..8f3d856145 100644 --- a/lib/services/securityManagement/LICENSE.txt +++ b/lib/services/securityManagement/LICENSE.txt @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2018 Microsoft +Copyright (c) 2019 Microsoft Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/lib/services/securityManagement/README.md b/lib/services/securityManagement/README.md index 636422a121..610757bf6c 100644 --- a/lib/services/securityManagement/README.md +++ b/lib/services/securityManagement/README.md @@ -3,38 +3,41 @@ uid: azure-arm-security summary: *content --- -# Microsoft Azure SDK for Node.js - SecurityCenter +**This SDK will be deprecated next year and will be replaced by a new TypeScript-based isomorphic SDK (found at https://github.com/Azure/azure-sdk-for-js) which works on Node.js and browsers.** +## Microsoft Azure SDK for Node.js - SecurityCenter + This project provides a Node.js package for accessing Azure. Right now it supports: - **Node.js version 6.x.x or higher** -## Features +### Features -## How to Install +### How to Install ```bash npm install azure-arm-security ``` -## How to use +### How to use -### Authentication, client creation and list pricings as an example. +#### Authentication, client creation, and list pricings as an example. ```javascript const msRestAzure = require("ms-rest-azure"); const SecurityCenter = require("azure-arm-security"); msRestAzure.interactiveLogin().then((creds) => { - const subscriptionId = ""; - const client = new SecurityCenter(creds, subscriptionId); - return client.pricings.list().then((result) => { - console.log("The result is:"); - console.log(result); - }); + const subscriptionId = ""; + const client = new SecurityCenter(creds, subscriptionId); + + return client.pricings.list().then((result) => { + console.log("The result is:"); + console.log(result); + }); }).catch((err) => { console.log('An error occurred:'); console.dir(err, {depth: null, colors: true}); }); - -## Related projects +``` +### Related projects - [Microsoft Azure SDK for Node.js](https://github.com/Azure/azure-sdk-for-node) diff --git a/lib/services/securityManagement/lib/models/aadConnectivityState1.js b/lib/services/securityManagement/lib/models/aadConnectivityState1.js index 348aacf4ce..e6c12ea546 100644 --- a/lib/services/securityManagement/lib/models/aadConnectivityState1.js +++ b/lib/services/securityManagement/lib/models/aadConnectivityState1.js @@ -17,7 +17,7 @@ class AadConnectivityState1 { /** * Create a AadConnectivityState1. - * @member {string} [connectivityState] The connectivity state of the + * @property {string} [connectivityState] The connectivity state of the * external AAD solution . Possible values include: 'Discovered', * 'NotLicensed', 'Connected' */ diff --git a/lib/services/securityManagement/lib/models/aadExternalSecuritySolution.js b/lib/services/securityManagement/lib/models/aadExternalSecuritySolution.js index 59c451177c..5dfbcafc91 100644 --- a/lib/services/securityManagement/lib/models/aadExternalSecuritySolution.js +++ b/lib/services/securityManagement/lib/models/aadExternalSecuritySolution.js @@ -21,13 +21,13 @@ const models = require('./index'); class AadExternalSecuritySolution extends models['ExternalSecuritySolution'] { /** * Create a AadExternalSecuritySolution. - * @member {object} [properties] - * @member {string} [properties.deviceVendor] - * @member {string} [properties.deviceType] - * @member {object} [properties.workspace] - * @member {string} [properties.workspace.id] Azure resource ID of the + * @property {object} [properties] + * @property {string} [properties.deviceVendor] + * @property {string} [properties.deviceType] + * @property {object} [properties.workspace] + * @property {string} [properties.workspace.id] Azure resource ID of the * connected OMS workspace - * @member {string} [properties.connectivityState] Possible values include: + * @property {string} [properties.connectivityState] Possible values include: * 'Discovered', 'NotLicensed', 'Connected' */ constructor() { diff --git a/lib/services/securityManagement/lib/models/aadSolutionProperties.js b/lib/services/securityManagement/lib/models/aadSolutionProperties.js index ab4bf04131..23c704d711 100644 --- a/lib/services/securityManagement/lib/models/aadSolutionProperties.js +++ b/lib/services/securityManagement/lib/models/aadSolutionProperties.js @@ -17,12 +17,12 @@ class AadSolutionProperties { /** * Create a AadSolutionProperties. - * @member {string} [deviceVendor] - * @member {string} [deviceType] - * @member {object} [workspace] - * @member {string} [workspace.id] Azure resource ID of the connected OMS + * @property {string} [deviceVendor] + * @property {string} [deviceType] + * @property {object} [workspace] + * @property {string} [workspace.id] Azure resource ID of the connected OMS * workspace - * @member {string} [connectivityState] The connectivity state of the + * @property {string} [connectivityState] The connectivity state of the * external AAD solution . Possible values include: 'Discovered', * 'NotLicensed', 'Connected' */ diff --git a/lib/services/securityManagement/lib/models/advancedThreatProtectionSetting.js b/lib/services/securityManagement/lib/models/advancedThreatProtectionSetting.js index 72087c6aba..516f188e1b 100644 --- a/lib/services/securityManagement/lib/models/advancedThreatProtectionSetting.js +++ b/lib/services/securityManagement/lib/models/advancedThreatProtectionSetting.js @@ -20,8 +20,8 @@ const models = require('./index'); class AdvancedThreatProtectionSetting extends models['Resource'] { /** * Create a AdvancedThreatProtectionSetting. - * @member {boolean} [isEnabled] Indicates whether Advanced Threat Protection - * is enabled. + * @property {boolean} [isEnabled] Indicates whether Advanced Threat + * Protection is enabled. */ constructor() { super(); diff --git a/lib/services/securityManagement/lib/models/alert.js b/lib/services/securityManagement/lib/models/alert.js index 88749cc4c9..0b7b5624ee 100644 --- a/lib/services/securityManagement/lib/models/alert.js +++ b/lib/services/securityManagement/lib/models/alert.js @@ -20,42 +20,45 @@ const models = require('./index'); class Alert extends models['Resource'] { /** * Create a Alert. - * @member {string} [state] State of the alert (Active, Dismissed etc.) - * @member {date} [reportedTimeUtc] The time the incident was reported to + * @property {string} [state] State of the alert (Active, Dismissed etc.) + * @property {date} [reportedTimeUtc] The time the incident was reported to * Microsoft.Security in UTC - * @member {string} [vendorName] Name of the vendor that discovered the + * @property {string} [vendorName] Name of the vendor that discovered the * incident - * @member {string} [alertName] Name of the alert type - * @member {string} [alertDisplayName] Display name of the alert type - * @member {date} [detectedTimeUtc] The time the incident was detected by the - * vendor - * @member {string} [description] Description of the incident and what it + * @property {string} [alertName] Name of the alert type + * @property {string} [alertDisplayName] Display name of the alert type + * @property {date} [detectedTimeUtc] The time the incident was detected by + * the vendor + * @property {string} [description] Description of the incident and what it * means - * @member {string} [remediationSteps] Recommended steps to reradiate the + * @property {string} [remediationSteps] Recommended steps to reradiate the * incident - * @member {string} [actionTaken] The action that was taken as a response to - * the alert (Active, Blocked etc.) - * @member {string} [reportedSeverity] Estimated severity of this alert - * @member {string} [compromisedEntity] The entity that the incident happened - * on - * @member {string} [associatedResource] Azure resource ID of the associated - * resource - * @member {object} [extendedProperties] - * @member {string} [systemSource] The type of the alerted resource (Azure, + * @property {string} [actionTaken] The action that was taken as a response + * to the alert (Active, Blocked etc.) + * @property {string} [reportedSeverity] Estimated severity of this alert. + * Possible values include: 'Silent', 'Information', 'Low', 'High' + * @property {string} [compromisedEntity] The entity that the incident + * happened on + * @property {string} [associatedResource] Azure resource ID of the + * associated resource + * @property {object} [extendedProperties] + * @property {string} [systemSource] The type of the alerted resource (Azure, * Non-Azure) - * @member {boolean} [canBeInvestigated] Whether this alert can be + * @property {boolean} [canBeInvestigated] Whether this alert can be * investigated with Azure Security Center - * @member {array} [entities] objects that are related to this alerts - * @member {number} [confidenceScore] level of confidence we have on the + * @property {boolean} [isIncident] Whether this alert is for incident type + * or not (otherwise - single alert) + * @property {array} [entities] objects that are related to this alerts + * @property {number} [confidenceScore] level of confidence we have on the * alert - * @member {array} [confidenceReasons] reasons the alert got the + * @property {array} [confidenceReasons] reasons the alert got the * confidenceScore value - * @member {string} [subscriptionId] Azure subscription ID of the resource + * @property {string} [subscriptionId] Azure subscription ID of the resource * that had the security alert or the subscription ID of the workspace that * this resource reports to - * @member {string} [instanceId] Instance ID of the alert. - * @member {string} [workspaceArmId] Azure resource ID of the workspace that - * the alert was reported to. + * @property {string} [instanceId] Instance ID of the alert. + * @property {string} [workspaceArmId] Azure resource ID of the workspace + * that the alert was reported to. */ constructor() { super(); @@ -225,6 +228,14 @@ class Alert extends models['Resource'] { name: 'Boolean' } }, + isIncident: { + required: false, + readOnly: true, + serializedName: 'properties.isIncident', + type: { + name: 'Boolean' + } + }, entities: { required: false, serializedName: 'properties.entities', diff --git a/lib/services/securityManagement/lib/models/alertConfidenceReason.js b/lib/services/securityManagement/lib/models/alertConfidenceReason.js index 05b837a842..e9b9286466 100644 --- a/lib/services/securityManagement/lib/models/alertConfidenceReason.js +++ b/lib/services/securityManagement/lib/models/alertConfidenceReason.js @@ -17,8 +17,8 @@ class AlertConfidenceReason { /** * Create a AlertConfidenceReason. - * @member {string} [type] Type of confidence factor - * @member {string} [reason] description of the confidence reason + * @property {string} [type] Type of confidence factor + * @property {string} [reason] description of the confidence reason */ constructor() { } diff --git a/lib/services/securityManagement/lib/models/alertEntity.js b/lib/services/securityManagement/lib/models/alertEntity.js index c314366704..bc671fcc37 100644 --- a/lib/services/securityManagement/lib/models/alertEntity.js +++ b/lib/services/securityManagement/lib/models/alertEntity.js @@ -17,7 +17,7 @@ class AlertEntity { /** * Create a AlertEntity. - * @member {string} [type] Type of entity + * @property {string} [type] Type of entity */ constructor() { } diff --git a/lib/services/securityManagement/lib/models/alertList.js b/lib/services/securityManagement/lib/models/alertList.js index d3dc06babd..5747823bbc 100644 --- a/lib/services/securityManagement/lib/models/alertList.js +++ b/lib/services/securityManagement/lib/models/alertList.js @@ -16,7 +16,7 @@ class AlertList extends Array { /** * Create a AlertList. - * @member {string} [nextLink] The URI to fetch the next page. + * @property {string} [nextLink] The URI to fetch the next page. */ constructor() { super(); diff --git a/lib/services/securityManagement/lib/models/allowedConnectionsList.js b/lib/services/securityManagement/lib/models/allowedConnectionsList.js index 7c7cf3c642..3ffe045e48 100644 --- a/lib/services/securityManagement/lib/models/allowedConnectionsList.js +++ b/lib/services/securityManagement/lib/models/allowedConnectionsList.js @@ -16,7 +16,7 @@ class AllowedConnectionsList extends Array { /** * Create a AllowedConnectionsList. - * @member {string} [nextLink] The URI to fetch the next page. + * @property {string} [nextLink] The URI to fetch the next page. */ constructor() { super(); diff --git a/lib/services/securityManagement/lib/models/allowedConnectionsResource.js b/lib/services/securityManagement/lib/models/allowedConnectionsResource.js index 5e2cf970bf..c77c0879fd 100644 --- a/lib/services/securityManagement/lib/models/allowedConnectionsResource.js +++ b/lib/services/securityManagement/lib/models/allowedConnectionsResource.js @@ -18,13 +18,13 @@ class AllowedConnectionsResource { /** * Create a AllowedConnectionsResource. - * @member {string} [id] Resource Id - * @member {string} [name] Resource name - * @member {string} [type] Resource type - * @member {string} [location] Location where the resource is stored - * @member {date} [calculatedDateTime] The UTC time on which the allowed + * @property {string} [id] Resource Id + * @property {string} [name] Resource name + * @property {string} [type] Resource type + * @property {string} [location] Location where the resource is stored + * @property {date} [calculatedDateTime] The UTC time on which the allowed * connections resource was calculated - * @member {array} [connectableResources] List of connectable resources + * @property {array} [connectableResources] List of connectable resources */ constructor() { } diff --git a/lib/services/securityManagement/lib/models/ascLocation.js b/lib/services/securityManagement/lib/models/ascLocation.js index 22219c21b7..debe28a3c6 100644 --- a/lib/services/securityManagement/lib/models/ascLocation.js +++ b/lib/services/securityManagement/lib/models/ascLocation.js @@ -20,7 +20,7 @@ const models = require('./index'); class AscLocation extends models['Resource'] { /** * Create a AscLocation. - * @member {object} [properties] + * @property {object} [properties] */ constructor() { super(); diff --git a/lib/services/securityManagement/lib/models/ascLocationList.js b/lib/services/securityManagement/lib/models/ascLocationList.js index af27700684..938a0f6e7e 100644 --- a/lib/services/securityManagement/lib/models/ascLocationList.js +++ b/lib/services/securityManagement/lib/models/ascLocationList.js @@ -16,7 +16,7 @@ class AscLocationList extends Array { /** * Create a AscLocationList. - * @member {string} [nextLink] The URI to fetch the next page. + * @property {string} [nextLink] The URI to fetch the next page. */ constructor() { super(); diff --git a/lib/services/securityManagement/lib/models/ataExternalSecuritySolution.js b/lib/services/securityManagement/lib/models/ataExternalSecuritySolution.js index 3af8920bf4..1795307b42 100644 --- a/lib/services/securityManagement/lib/models/ataExternalSecuritySolution.js +++ b/lib/services/securityManagement/lib/models/ataExternalSecuritySolution.js @@ -20,8 +20,8 @@ const models = require('./index'); class AtaExternalSecuritySolution extends models['ExternalSecuritySolution'] { /** * Create a AtaExternalSecuritySolution. - * @member {object} [properties] - * @member {string} [properties.lastEventReceived] + * @property {object} [properties] + * @property {string} [properties.lastEventReceived] */ constructor() { super(); diff --git a/lib/services/securityManagement/lib/models/ataSolutionProperties.js b/lib/services/securityManagement/lib/models/ataSolutionProperties.js index 6257db3058..61e1c4284b 100644 --- a/lib/services/securityManagement/lib/models/ataSolutionProperties.js +++ b/lib/services/securityManagement/lib/models/ataSolutionProperties.js @@ -20,7 +20,7 @@ const models = require('./index'); class AtaSolutionProperties extends models['ExternalSecuritySolutionProperties'] { /** * Create a AtaSolutionProperties. - * @member {string} [lastEventReceived] + * @property {string} [lastEventReceived] */ constructor() { super(); diff --git a/lib/services/securityManagement/lib/models/autoProvisioningSetting.js b/lib/services/securityManagement/lib/models/autoProvisioningSetting.js index 87afc3136a..8c6907cfba 100644 --- a/lib/services/securityManagement/lib/models/autoProvisioningSetting.js +++ b/lib/services/securityManagement/lib/models/autoProvisioningSetting.js @@ -20,7 +20,7 @@ const models = require('./index'); class AutoProvisioningSetting extends models['Resource'] { /** * Create a AutoProvisioningSetting. - * @member {string} autoProvision Describes what kind of security agent + * @property {string} autoProvision Describes what kind of security agent * provisioning action to take. Possible values include: 'On', 'Off' */ constructor() { diff --git a/lib/services/securityManagement/lib/models/autoProvisioningSettingList.js b/lib/services/securityManagement/lib/models/autoProvisioningSettingList.js index f7cfe0b985..38ae123485 100644 --- a/lib/services/securityManagement/lib/models/autoProvisioningSettingList.js +++ b/lib/services/securityManagement/lib/models/autoProvisioningSettingList.js @@ -16,7 +16,7 @@ class AutoProvisioningSettingList extends Array { /** * Create a AutoProvisioningSettingList. - * @member {string} [nextLink] The URI to fetch the next page. + * @property {string} [nextLink] The URI to fetch the next page. */ constructor() { super(); diff --git a/lib/services/securityManagement/lib/models/cefExternalSecuritySolution.js b/lib/services/securityManagement/lib/models/cefExternalSecuritySolution.js index 948150931d..ae3f291585 100644 --- a/lib/services/securityManagement/lib/models/cefExternalSecuritySolution.js +++ b/lib/services/securityManagement/lib/models/cefExternalSecuritySolution.js @@ -20,10 +20,10 @@ const models = require('./index'); class CefExternalSecuritySolution extends models['ExternalSecuritySolution'] { /** * Create a CefExternalSecuritySolution. - * @member {object} [properties] - * @member {string} [properties.hostname] - * @member {string} [properties.agent] - * @member {string} [properties.lastEventReceived] + * @property {object} [properties] + * @property {string} [properties.hostname] + * @property {string} [properties.agent] + * @property {string} [properties.lastEventReceived] */ constructor() { super(); diff --git a/lib/services/securityManagement/lib/models/cefSolutionProperties.js b/lib/services/securityManagement/lib/models/cefSolutionProperties.js index 2efdc15360..6e409e5bf7 100644 --- a/lib/services/securityManagement/lib/models/cefSolutionProperties.js +++ b/lib/services/securityManagement/lib/models/cefSolutionProperties.js @@ -20,9 +20,9 @@ const models = require('./index'); class CefSolutionProperties extends models['ExternalSecuritySolutionProperties'] { /** * Create a CefSolutionProperties. - * @member {string} [hostname] - * @member {string} [agent] - * @member {string} [lastEventReceived] + * @property {string} [hostname] + * @property {string} [agent] + * @property {string} [lastEventReceived] */ constructor() { super(); diff --git a/lib/services/securityManagement/lib/models/compliance.js b/lib/services/securityManagement/lib/models/compliance.js index f0f1157fe2..3e2dfa9bfb 100644 --- a/lib/services/securityManagement/lib/models/compliance.js +++ b/lib/services/securityManagement/lib/models/compliance.js @@ -20,12 +20,12 @@ const models = require('./index'); class Compliance extends models['Resource'] { /** * Create a Compliance. - * @member {date} [assessmentTimestampUtcDate] The timestamp when the + * @property {date} [assessmentTimestampUtcDate] The timestamp when the * Compliance calculation was conducted. - * @member {number} [resourceCount] The resource count of the given + * @property {number} [resourceCount] The resource count of the given * subscription for which the Compliance calculation was conducted (needed * for Management Group Compliance calculation). - * @member {array} [assessmentResult] An array of segment, which is the + * @property {array} [assessmentResult] An array of segment, which is the * actually the compliance assessment. */ constructor() { diff --git a/lib/services/securityManagement/lib/models/complianceList.js b/lib/services/securityManagement/lib/models/complianceList.js index da7c9b3822..a014696259 100644 --- a/lib/services/securityManagement/lib/models/complianceList.js +++ b/lib/services/securityManagement/lib/models/complianceList.js @@ -16,7 +16,7 @@ class ComplianceList extends Array { /** * Create a ComplianceList. - * @member {string} [nextLink] The URI to fetch the next page. + * @property {string} [nextLink] The URI to fetch the next page. */ constructor() { super(); diff --git a/lib/services/securityManagement/lib/models/complianceSegment.js b/lib/services/securityManagement/lib/models/complianceSegment.js index c33dd4a4e1..02bf54e17c 100644 --- a/lib/services/securityManagement/lib/models/complianceSegment.js +++ b/lib/services/securityManagement/lib/models/complianceSegment.js @@ -17,9 +17,9 @@ class ComplianceSegment { /** * Create a ComplianceSegment. - * @member {string} [segmentType] The segment type, e.g. compliant, + * @property {string} [segmentType] The segment type, e.g. compliant, * non-compliance, insufficient coverage, N/A, etc. - * @member {number} [percentage] The size (%) of the segment. + * @property {number} [percentage] The size (%) of the segment. */ constructor() { } diff --git a/lib/services/securityManagement/lib/models/connectableResource.js b/lib/services/securityManagement/lib/models/connectableResource.js index 29f7c08bce..97c012eb2b 100644 --- a/lib/services/securityManagement/lib/models/connectableResource.js +++ b/lib/services/securityManagement/lib/models/connectableResource.js @@ -17,10 +17,10 @@ class ConnectableResource { /** * Create a ConnectableResource. - * @member {string} [id] The Azure resource id - * @member {array} [inboundConnectedResources] The list of Azure resources + * @property {string} [id] The Azure resource id + * @property {array} [inboundConnectedResources] The list of Azure resources * that the resource has inbound allowed connection from - * @member {array} [outboundConnectedResources] The list of Azure resources + * @property {array} [outboundConnectedResources] The list of Azure resources * that the resource has outbound allowed connection to */ constructor() { diff --git a/lib/services/securityManagement/lib/models/connectedResource.js b/lib/services/securityManagement/lib/models/connectedResource.js index 06a6399542..95fe90fcb9 100644 --- a/lib/services/securityManagement/lib/models/connectedResource.js +++ b/lib/services/securityManagement/lib/models/connectedResource.js @@ -17,10 +17,10 @@ class ConnectedResource { /** * Create a ConnectedResource. - * @member {string} [connectedResourceId] The Azure resource id of the + * @property {string} [connectedResourceId] The Azure resource id of the * connected resource - * @member {string} [tcpPorts] The allowed tcp ports - * @member {string} [udpPorts] The allowed udp ports + * @property {string} [tcpPorts] The allowed tcp ports + * @property {string} [udpPorts] The allowed udp ports */ constructor() { } diff --git a/lib/services/securityManagement/lib/models/connectedWorkspace.js b/lib/services/securityManagement/lib/models/connectedWorkspace.js index d2c7e8276a..5738e817a6 100644 --- a/lib/services/securityManagement/lib/models/connectedWorkspace.js +++ b/lib/services/securityManagement/lib/models/connectedWorkspace.js @@ -17,7 +17,7 @@ class ConnectedWorkspace { /** * Create a ConnectedWorkspace. - * @member {string} [id] Azure resource ID of the connected OMS workspace + * @property {string} [id] Azure resource ID of the connected OMS workspace */ constructor() { } diff --git a/lib/services/securityManagement/lib/models/dataExportSetting.js b/lib/services/securityManagement/lib/models/dataExportSetting.js index 3641d31a83..cd688e51fa 100644 --- a/lib/services/securityManagement/lib/models/dataExportSetting.js +++ b/lib/services/securityManagement/lib/models/dataExportSetting.js @@ -20,7 +20,7 @@ const models = require('./index'); class DataExportSetting extends models['Setting'] { /** * Create a DataExportSetting. - * @member {boolean} enabled Is the data export setting is enabled + * @property {boolean} enabled Is the data export setting is enabled */ constructor() { super(); @@ -38,11 +38,6 @@ class DataExportSetting extends models['Setting'] { serializedName: 'DataExportSetting', type: { name: 'Composite', - polymorphicDiscriminator: { - serializedName: 'kind', - clientName: 'kind' - }, - uberParent: 'Setting', className: 'DataExportSetting', modelProperties: { id: { @@ -72,7 +67,6 @@ class DataExportSetting extends models['Setting'] { kind: { required: true, serializedName: 'kind', - isPolymorphicDiscriminator: true, type: { name: 'String' } diff --git a/lib/services/securityManagement/lib/models/discoveredSecuritySolution.js b/lib/services/securityManagement/lib/models/discoveredSecuritySolution.js index 1a8681dab8..f3ea919215 100644 --- a/lib/services/securityManagement/lib/models/discoveredSecuritySolution.js +++ b/lib/services/securityManagement/lib/models/discoveredSecuritySolution.js @@ -16,15 +16,15 @@ class DiscoveredSecuritySolution { /** * Create a DiscoveredSecuritySolution. - * @member {string} [id] Resource Id - * @member {string} [name] Resource name - * @member {string} [type] Resource type - * @member {string} [location] Location where the resource is stored - * @member {string} securityFamily The security family of the discovered + * @property {string} [id] Resource Id + * @property {string} [name] Resource name + * @property {string} [type] Resource type + * @property {string} [location] Location where the resource is stored + * @property {string} securityFamily The security family of the discovered * solution. Possible values include: 'Waf', 'Ngfw', 'SaasWaf', 'Va' - * @member {string} offer The security solutions' image offer - * @member {string} publisher The security solutions' image publisher - * @member {string} sku The security solutions' image sku + * @property {string} offer The security solutions' image offer + * @property {string} publisher The security solutions' image publisher + * @property {string} sku The security solutions' image sku */ constructor() { } diff --git a/lib/services/securityManagement/lib/models/discoveredSecuritySolutionList.js b/lib/services/securityManagement/lib/models/discoveredSecuritySolutionList.js index 4f792818a8..a74121a811 100644 --- a/lib/services/securityManagement/lib/models/discoveredSecuritySolutionList.js +++ b/lib/services/securityManagement/lib/models/discoveredSecuritySolutionList.js @@ -16,7 +16,7 @@ class DiscoveredSecuritySolutionList extends Array { /** * Create a DiscoveredSecuritySolutionList. - * @member {string} [nextLink] The URI to fetch the next page. + * @property {string} [nextLink] The URI to fetch the next page. */ constructor() { super(); diff --git a/lib/services/securityManagement/lib/models/externalSecuritySolution.js b/lib/services/securityManagement/lib/models/externalSecuritySolution.js index 622d25b092..2c0a779b01 100644 --- a/lib/services/securityManagement/lib/models/externalSecuritySolution.js +++ b/lib/services/securityManagement/lib/models/externalSecuritySolution.js @@ -12,18 +12,18 @@ /** * Represents a security solution external to Azure Security Center which sends - * information to an OMS workspace and whos data is displayed by Azure Security - * Center. + * information to an OMS workspace and whose data is displayed by Azure + * Security Center. * */ class ExternalSecuritySolution { /** * Create a ExternalSecuritySolution. - * @member {string} [id] Resource Id - * @member {string} [name] Resource name - * @member {string} [type] Resource type - * @member {string} [location] Location where the resource is stored - * @member {string} kind Polymorphic Discriminator + * @property {string} [id] Resource Id + * @property {string} [name] Resource name + * @property {string} [type] Resource type + * @property {string} [location] Location where the resource is stored + * @property {string} kind Polymorphic Discriminator */ constructor() { } diff --git a/lib/services/securityManagement/lib/models/externalSecuritySolutionKind1.js b/lib/services/securityManagement/lib/models/externalSecuritySolutionKind1.js index 599960a5ed..d5d5a03e70 100644 --- a/lib/services/securityManagement/lib/models/externalSecuritySolutionKind1.js +++ b/lib/services/securityManagement/lib/models/externalSecuritySolutionKind1.js @@ -17,8 +17,8 @@ class ExternalSecuritySolutionKind1 { /** * Create a ExternalSecuritySolutionKind1. - * @member {string} [kind] The kind of the external solution. Possible values - * include: 'CEF', 'ATA', 'AAD' + * @property {string} [kind] The kind of the external solution. Possible + * values include: 'CEF', 'ATA', 'AAD' */ constructor() { } diff --git a/lib/services/securityManagement/lib/models/externalSecuritySolutionList.js b/lib/services/securityManagement/lib/models/externalSecuritySolutionList.js index 8ebc08dc7b..5a34fa928c 100644 --- a/lib/services/securityManagement/lib/models/externalSecuritySolutionList.js +++ b/lib/services/securityManagement/lib/models/externalSecuritySolutionList.js @@ -16,7 +16,7 @@ class ExternalSecuritySolutionList extends Array { /** * Create a ExternalSecuritySolutionList. - * @member {string} [nextLink] The URI to fetch the next page. + * @property {string} [nextLink] The URI to fetch the next page. */ constructor() { super(); diff --git a/lib/services/securityManagement/lib/models/externalSecuritySolutionProperties.js b/lib/services/securityManagement/lib/models/externalSecuritySolutionProperties.js index 429a32a6a8..1bf4a1748d 100644 --- a/lib/services/securityManagement/lib/models/externalSecuritySolutionProperties.js +++ b/lib/services/securityManagement/lib/models/externalSecuritySolutionProperties.js @@ -17,10 +17,10 @@ class ExternalSecuritySolutionProperties { /** * Create a ExternalSecuritySolutionProperties. - * @member {string} [deviceVendor] - * @member {string} [deviceType] - * @member {object} [workspace] - * @member {string} [workspace.id] Azure resource ID of the connected OMS + * @property {string} [deviceVendor] + * @property {string} [deviceType] + * @property {object} [workspace] + * @property {string} [workspace.id] Azure resource ID of the connected OMS * workspace */ constructor() { diff --git a/lib/services/securityManagement/lib/models/index.d.ts b/lib/services/securityManagement/lib/models/index.d.ts index d12fa7ba87..6547a0a68c 100644 --- a/lib/services/securityManagement/lib/models/index.d.ts +++ b/lib/services/securityManagement/lib/models/index.d.ts @@ -1,789 +1,702 @@ /* * Copyright (c) Microsoft Corporation. All rights reserved. - * Licensed under the MIT License. See License.txt in the project root for - * license information. + * 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. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import { BaseResource } from 'ms-rest-azure'; -import { CloudError } from 'ms-rest-azure'; -import * as moment from 'moment'; +import { BaseResource, CloudError } from "ms-rest-azure"; +import * as moment from "moment"; -export { BaseResource } from 'ms-rest-azure'; -export { CloudError } from 'ms-rest-azure'; +export { + BaseResource, + CloudError +}; /** - * @class - * Initializes a new instance of the Resource class. - * @constructor * Describes an Azure resource. - * - * @member {string} [id] Resource Id - * @member {string} [name] Resource name - * @member {string} [type] Resource type */ export interface Resource extends BaseResource { + /** + * Resource Id + */ readonly id?: string; + /** + * Resource name + */ readonly name?: string; + /** + * Resource type + */ readonly type?: string; } /** - * @class - * Initializes a new instance of the Kind class. - * @constructor - * Describes an Azure resource with kind - * - * @member {string} [kind] Kind of the resource + * Pricing tier will be applied for the scope based on the resource ID */ -export interface Kind { - kind?: string; +export interface Pricing extends Resource { + /** + * Pricing tier type. Possible values include: 'Free', 'Standard' + */ + pricingTier: string; } /** - * @class - * Initializes a new instance of the SecurityContact class. - * @constructor - * Contact details for security issues - * - * @member {string} email The email of this security contact - * @member {string} [phone] The phone number of this security contact - * @member {string} alertNotifications Whether to send security alerts - * notifications to the security contact. Possible values include: 'On', 'Off' - * @member {string} alertsToAdmins Whether to send security alerts - * notifications to subscription admins. Possible values include: 'On', 'Off' + * The ASC location of the subscription is in the "name" field */ +export interface AscLocation extends Resource { + properties?: any; +} + +/** + * Contact details for security issues +*/ export interface SecurityContact extends Resource { + /** + * The email of this security contact + */ email: string; + /** + * The phone number of this security contact + */ phone?: string; + /** + * Whether to send security alerts notifications to the security contact. Possible values + * include: 'On', 'Off' + */ alertNotifications: string; + /** + * Whether to send security alerts notifications to subscription admins. Possible values include: + * 'On', 'Off' + */ alertsToAdmins: string; } /** - * @class - * Initializes a new instance of the Pricing class. - * @constructor - * Pricing tier will be applied for the scope based on the resource ID - * - * @member {string} pricingTier Pricing tier type. Possible values include: - * 'Free', 'Standard' - */ -export interface Pricing extends Resource { - pricingTier: string; -} - -/** - * @class - * Initializes a new instance of the WorkspaceSetting class. - * @constructor * Configures where to store the OMS agent data for workspaces under a scope - * - * @member {string} workspaceId The full Azure ID of the workspace to save the - * data in - * @member {string} scope All the VMs in this scope will send their security - * data to the mentioned workspace unless overridden by a setting with more - * specific scope - */ +*/ export interface WorkspaceSetting extends Resource { + /** + * The full Azure ID of the workspace to save the data in + */ workspaceId: string; + /** + * All the VMs in this scope will send their security data to the mentioned workspace unless + * overridden by a setting with more specific scope + */ scope: string; } /** - * @class - * Initializes a new instance of the AutoProvisioningSetting class. - * @constructor * Auto provisioning setting - * - * @member {string} autoProvision Describes what kind of security agent - * provisioning action to take. Possible values include: 'On', 'Off' - */ +*/ export interface AutoProvisioningSetting extends Resource { + /** + * Describes what kind of security agent provisioning action to take. Possible values include: + * 'On', 'Off' + */ autoProvision: string; } /** - * @class - * Initializes a new instance of the ComplianceSegment class. - * @constructor * A segment of a compliance assessment. - * - * @member {string} [segmentType] The segment type, e.g. compliant, - * non-compliance, insufficient coverage, N/A, etc. - * @member {number} [percentage] The size (%) of the segment. - */ +*/ export interface ComplianceSegment { + /** + * The segment type, e.g. compliant, non-compliance, insufficient coverage, N/A, etc. + */ readonly segmentType?: string; + /** + * The size (%) of the segment. + */ readonly percentage?: number; } /** - * @class - * Initializes a new instance of the Compliance class. - * @constructor * Compliance of a scope - * - * @member {date} [assessmentTimestampUtcDate] The timestamp when the - * Compliance calculation was conducted. - * @member {number} [resourceCount] The resource count of the given - * subscription for which the Compliance calculation was conducted (needed for - * Management Group Compliance calculation). - * @member {array} [assessmentResult] An array of segment, which is the - * actually the compliance assessment. - */ +*/ export interface Compliance extends Resource { + /** + * The timestamp when the Compliance calculation was conducted. + */ readonly assessmentTimestampUtcDate?: Date; + /** + * The resource count of the given subscription for which the Compliance calculation was + * conducted (needed for Management Group Compliance calculation). + */ readonly resourceCount?: number; + /** + * An array of segment, which is the actually the compliance assessment. + */ readonly assessmentResult?: ComplianceSegment[]; } /** - * @class - * Initializes a new instance of the AdvancedThreatProtectionSetting class. - * @constructor * The Advanced Threat Protection resource. - * - * @member {boolean} [isEnabled] Indicates whether Advanced Threat Protection - * is enabled. - */ +*/ export interface AdvancedThreatProtectionSetting extends Resource { + /** + * Indicates whether Advanced Threat Protection is enabled. + */ isEnabled?: boolean; } /** - * @class - * Initializes a new instance of the Setting class. - * @constructor - * Represents a security setting in Azure Security Center. - * - * @member {string} [id] Resource Id - * @member {string} [name] Resource name - * @member {string} [type] Resource type - * @member {string} kind Polymorphic Discriminator - */ -export interface Setting { - readonly id?: string; - readonly name?: string; - readonly type?: string; + * The kind of the security setting +*/ +export interface SettingResource extends Resource { + /** + * the kind of the settings string (DataExportSetting). Possible values include: + * 'DataExportSetting', 'AlertSuppressionSetting' + */ kind: string; } /** - * @class - * Initializes a new instance of the DataExportSetting class. - * @constructor - * Represents a data export setting - * - * @member {boolean} enabled Is the data export setting is enabled - */ -export interface DataExportSetting extends Setting { - enabled: boolean; + * Represents a security setting in Azure Security Center. +*/ +export interface Setting extends SettingResource { } /** - * @class - * Initializes a new instance of the SettingKind1 class. - * @constructor - * The kind of the security setting - * - * @member {string} [kind] the kind of the settings string. Possible values - * include: 'DataExportSetting' - */ -export interface SettingKind1 { - kind?: string; + * Represents a data export setting +*/ +export interface DataExportSetting extends Setting { + /** + * Is the data export setting is enabled + */ + enabled: boolean; } /** - * @class - * Initializes a new instance of the SensitivityLabel class. - * @constructor * The sensitivity label. - * - * @member {string} [displayName] The name of the sensitivity label. - * @member {number} [order] The order of the sensitivity label. - * @member {boolean} [enabled] Indicates whether the label is enabled or not. - */ +*/ export interface SensitivityLabel { + /** + * The name of the sensitivity label. + */ displayName?: string; + /** + * The order of the sensitivity label. + */ order?: number; + /** + * Indicates whether the label is enabled or not. + */ enabled?: boolean; } /** - * @class - * Initializes a new instance of the InformationProtectionKeyword class. - * @constructor * The information type keyword. - * - * @member {string} [pattern] The keyword pattern. - * @member {boolean} [custom] Indicates whether the keyword is custom or not. - * @member {boolean} [canBeNumeric] Indicates whether the keyword can be - * applied on numeric types or not. - * @member {boolean} [excluded] Indicates whether the keyword is excluded or - * not. - */ +*/ export interface InformationProtectionKeyword { + /** + * The keyword pattern. + */ pattern?: string; + /** + * Indicates whether the keyword is custom or not. + */ custom?: boolean; + /** + * Indicates whether the keyword can be applied on numeric types or not. + */ canBeNumeric?: boolean; + /** + * Indicates whether the keyword is excluded or not. + */ excluded?: boolean; } /** - * @class - * Initializes a new instance of the InformationType class. - * @constructor * The information type. - * - * @member {string} [displayName] The name of the information type. - * @member {number} [order] The order of the information type. - * @member {uuid} [recommendedLabelId] The recommended label id to be - * associated with this information type. - * @member {boolean} [enabled] Indicates whether the information type is - * enabled or not. - * @member {boolean} [custom] Indicates whether the information type is custom - * or not. - * @member {array} [keywords] The information type keywords. - */ +*/ export interface InformationType { + /** + * The name of the information type. + */ displayName?: string; + /** + * The order of the information type. + */ order?: number; + /** + * The recommended label id to be associated with this information type. + */ recommendedLabelId?: string; + /** + * Indicates whether the information type is enabled or not. + */ enabled?: boolean; + /** + * Indicates whether the information type is custom or not. + */ custom?: boolean; + /** + * The information type keywords. + */ keywords?: InformationProtectionKeyword[]; } /** - * @class - * Initializes a new instance of the InformationProtectionPolicy class. - * @constructor * Information protection policy. - * - * @member {date} [lastModifiedUtc] Describes the last UTC time the policy was - * modified. - * @member {object} [labels] Dictionary of sensitivity labels. - * @member {object} [informationTypes] The sensitivity information types. - */ +*/ export interface InformationProtectionPolicy extends Resource { + /** + * Describes the last UTC time the policy was modified. + */ readonly lastModifiedUtc?: Date; + /** + * Dictionary of sensitivity labels. + */ labels?: { [propertyName: string]: SensitivityLabel }; + /** + * The sensitivity information types. + */ informationTypes?: { [propertyName: string]: InformationType }; } /** - * @class - * Initializes a new instance of the Location class. - * @constructor - * Describes an Azure resource with location - * - * @member {string} [location] Location where the resource is stored - */ -export interface Location { - readonly location?: string; -} - -/** - * @class - * Initializes a new instance of the OperationDisplay class. - * @constructor * Security operation display - * - * @member {string} [provider] The resource provider for the operation. - * @member {string} [resource] The display name of the resource the operation - * applies to. - * @member {string} [operation] The display name of the security operation. - * @member {string} [description] The description of the operation. - */ +*/ export interface OperationDisplay { + /** + * The resource provider for the operation. + */ readonly provider?: string; + /** + * The display name of the resource the operation applies to. + */ readonly resource?: string; + /** + * The display name of the security operation. + */ readonly operation?: string; + /** + * The description of the operation. + */ readonly description?: string; } /** - * @class - * Initializes a new instance of the Operation class. - * @constructor * Possible operation in the REST API of Microsoft.Security - * - * @member {string} [name] Name of the operation - * @member {string} [origin] Where the operation is originated - * @member {object} [display] - * @member {string} [display.provider] The resource provider for the operation. - * @member {string} [display.resource] The display name of the resource the - * operation applies to. - * @member {string} [display.operation] The display name of the security - * operation. - * @member {string} [display.description] The description of the operation. - */ +*/ export interface Operation { + /** + * Name of the operation + */ readonly name?: string; + /** + * Where the operation is originated + */ readonly origin?: string; display?: OperationDisplay; } /** - * @class - * Initializes a new instance of the SecurityTaskParameters class. - * @constructor - * Changing set of properties, depending on the task type that is derived from - * the name field - * - * @member {string} [name] Name of the task type - */ + * Changing set of properties, depending on the task type that is derived from the name field +*/ export interface SecurityTaskParameters { + /** + * Name of the task type + */ readonly name?: string; /** - * @property Describes unknown properties. The value of an unknown property - * can be of "any" type. - */ - [property: string]: any; + * Describes unknown properties. The value of an unknown property can be of "any" type. + */ + [additionalPropertyName: string]: any; } /** - * @class - * Initializes a new instance of the SecurityTask class. - * @constructor * Security task that we recommend to do in order to strengthen security - * - * @member {string} [state] State of the task (Active, Resolved etc.) - * @member {date} [creationTimeUtc] The time this task was discovered in UTC - * @member {object} [securityTaskParameters] - * @member {string} [securityTaskParameters.name] Name of the task type - * @member {date} [lastStateChangeTimeUtc] The time this task's details were - * last changed in UTC - * @member {string} [subState] Additional data on the state of the task - */ +*/ export interface SecurityTask extends Resource { + /** + * State of the task (Active, Resolved etc.) + */ readonly state?: string; + /** + * The time this task was discovered in UTC + */ readonly creationTimeUtc?: Date; securityTaskParameters?: SecurityTaskParameters; + /** + * The time this task's details were last changed in UTC + */ readonly lastStateChangeTimeUtc?: Date; + /** + * Additional data on the state of the task + */ readonly subState?: string; } /** - * @class - * Initializes a new instance of the AscLocation class. - * @constructor - * The ASC location of the subscription is in the "name" field - * - * @member {object} [properties] - */ -export interface AscLocation extends Resource { - properties?: any; -} - -/** - * @class - * Initializes a new instance of the AlertEntity class. - * @constructor * Changing set of properties depending on the entity type. - * - * @member {string} [type] Type of entity - */ +*/ export interface AlertEntity { + /** + * Type of entity + */ readonly type?: string; /** - * @property Describes unknown properties. The value of an unknown property - * can be of "any" type. - */ - [property: string]: any; + * Describes unknown properties. The value of an unknown property can be of "any" type. + */ + [additionalPropertyName: string]: any; } /** - * @class - * Initializes a new instance of the AlertConfidenceReason class. - * @constructor * Factors that increase our confidence that the alert is a true positive - * - * @member {string} [type] Type of confidence factor - * @member {string} [reason] description of the confidence reason - */ +*/ export interface AlertConfidenceReason { + /** + * Type of confidence factor + */ readonly type?: string; + /** + * description of the confidence reason + */ readonly reason?: string; } /** - * @class - * Initializes a new instance of the Alert class. - * @constructor * Security alert - * - * @member {string} [state] State of the alert (Active, Dismissed etc.) - * @member {date} [reportedTimeUtc] The time the incident was reported to - * Microsoft.Security in UTC - * @member {string} [vendorName] Name of the vendor that discovered the - * incident - * @member {string} [alertName] Name of the alert type - * @member {string} [alertDisplayName] Display name of the alert type - * @member {date} [detectedTimeUtc] The time the incident was detected by the - * vendor - * @member {string} [description] Description of the incident and what it means - * @member {string} [remediationSteps] Recommended steps to reradiate the - * incident - * @member {string} [actionTaken] The action that was taken as a response to - * the alert (Active, Blocked etc.) - * @member {string} [reportedSeverity] Estimated severity of this alert - * @member {string} [compromisedEntity] The entity that the incident happened - * on - * @member {string} [associatedResource] Azure resource ID of the associated - * resource - * @member {object} [extendedProperties] - * @member {string} [systemSource] The type of the alerted resource (Azure, - * Non-Azure) - * @member {boolean} [canBeInvestigated] Whether this alert can be investigated - * with Azure Security Center - * @member {array} [entities] objects that are related to this alerts - * @member {number} [confidenceScore] level of confidence we have on the alert - * @member {array} [confidenceReasons] reasons the alert got the - * confidenceScore value - * @member {string} [subscriptionId] Azure subscription ID of the resource that - * had the security alert or the subscription ID of the workspace that this - * resource reports to - * @member {string} [instanceId] Instance ID of the alert. - * @member {string} [workspaceArmId] Azure resource ID of the workspace that - * the alert was reported to. - */ +*/ export interface Alert extends Resource { + /** + * State of the alert (Active, Dismissed etc.) + */ readonly state?: string; + /** + * The time the incident was reported to Microsoft.Security in UTC + */ readonly reportedTimeUtc?: Date; + /** + * Name of the vendor that discovered the incident + */ readonly vendorName?: string; + /** + * Name of the alert type + */ readonly alertName?: string; + /** + * Display name of the alert type + */ readonly alertDisplayName?: string; + /** + * The time the incident was detected by the vendor + */ readonly detectedTimeUtc?: Date; + /** + * Description of the incident and what it means + */ readonly description?: string; + /** + * Recommended steps to reradiate the incident + */ readonly remediationSteps?: string; + /** + * The action that was taken as a response to the alert (Active, Blocked etc.) + */ readonly actionTaken?: string; + /** + * Estimated severity of this alert. Possible values include: 'Silent', 'Information', 'Low', + * 'High' + */ readonly reportedSeverity?: string; + /** + * The entity that the incident happened on + */ readonly compromisedEntity?: string; + /** + * Azure resource ID of the associated resource + */ readonly associatedResource?: string; extendedProperties?: { [propertyName: string]: any }; + /** + * The type of the alerted resource (Azure, Non-Azure) + */ readonly systemSource?: string; + /** + * Whether this alert can be investigated with Azure Security Center + */ readonly canBeInvestigated?: boolean; + /** + * Whether this alert is for incident type or not (otherwise - single alert) + */ + readonly isIncident?: boolean; + /** + * objects that are related to this alerts + */ entities?: AlertEntity[]; + /** + * level of confidence we have on the alert + */ readonly confidenceScore?: number; + /** + * reasons the alert got the confidenceScore value + */ confidenceReasons?: AlertConfidenceReason[]; + /** + * Azure subscription ID of the resource that had the security alert or the subscription ID of + * the workspace that this resource reports to + */ readonly subscriptionId?: string; + /** + * Instance ID of the alert. + */ readonly instanceId?: string; + /** + * Azure resource ID of the workspace that the alert was reported to. + */ readonly workspaceArmId?: string; } -/** - * @class - * Initializes a new instance of the DiscoveredSecuritySolution class. - * @constructor - * @member {string} [id] Resource Id - * @member {string} [name] Resource name - * @member {string} [type] Resource type - * @member {string} [location] Location where the resource is stored - * @member {string} securityFamily The security family of the discovered - * solution. Possible values include: 'Waf', 'Ngfw', 'SaasWaf', 'Va' - * @member {string} offer The security solutions' image offer - * @member {string} publisher The security solutions' image publisher - * @member {string} sku The security solutions' image sku - */ export interface DiscoveredSecuritySolution { + /** + * Resource Id + */ readonly id?: string; + /** + * Resource name + */ readonly name?: string; + /** + * Resource type + */ readonly type?: string; + /** + * Location where the resource is stored + */ readonly location?: string; + /** + * The security family of the discovered solution. Possible values include: 'Waf', 'Ngfw', + * 'SaasWaf', 'Va' + */ securityFamily: string; + /** + * The security solutions' image offer + */ offer: string; + /** + * The security solutions' image publisher + */ publisher: string; + /** + * The security solutions' image sku + */ sku: string; } /** - * @class - * Initializes a new instance of the TopologySingleResourceParent class. - * @constructor - * @member {string} [resourceId] Azure resource id which serves as parent - * resource in topology view - */ -export interface TopologySingleResourceParent { - readonly resourceId?: string; -} - -/** - * @class - * Initializes a new instance of the TopologySingleResourceChild class. - * @constructor - * @member {string} [resourceId] Azure resource id which serves as child - * resource in topology view - */ -export interface TopologySingleResourceChild { - readonly resourceId?: string; -} - -/** - * @class - * Initializes a new instance of the TopologySingleResource class. - * @constructor - * @member {string} [resourceId] Azure resource id - * @member {string} [severity] The security severity of the resource - * @member {boolean} [recommendationsExist] Indicates if the resource has - * security recommendations - * @member {string} [networkZones] Indicates the resource connectivity level to - * the Internet (InternetFacing, Internal ,etc.) - * @member {number} [topologyScore] Score of the resource based on its security - * severity - * @member {string} [location] The location of this resource - * @member {array} [parents] Azure resources connected to this resource which - * are in higher level in the topology view - * @member {array} [children] Azure resources connected to this resource which - * are in lower level in the topology view - */ -export interface TopologySingleResource { - readonly resourceId?: string; - readonly severity?: string; - readonly recommendationsExist?: boolean; - readonly networkZones?: string; - readonly topologyScore?: number; - readonly location?: string; - readonly parents?: TopologySingleResourceParent[]; - readonly children?: TopologySingleResourceChild[]; -} - -/** - * @class - * Initializes a new instance of the TopologyResource class. - * @constructor - * @member {string} [id] Resource Id - * @member {string} [name] Resource name - * @member {string} [type] Resource type - * @member {string} [location] Location where the resource is stored - * @member {date} [calculatedDateTime] The UTC time on which the topology was - * calculated - * @member {array} [topologyResources] Azure resources which are part of this - * topology resource - */ -export interface TopologyResource { - readonly id?: string; - readonly name?: string; - readonly type?: string; + * Describes an Azure resource with location +*/ +export interface Location { + /** + * Location where the resource is stored + */ readonly location?: string; - readonly calculatedDateTime?: Date; - readonly topologyResources?: TopologySingleResource[]; } -/** - * @class - * Initializes a new instance of the JitNetworkAccessPortRule class. - * @constructor - * @member {number} number - * @member {string} protocol Possible values include: 'TCP', 'UDP', 'All' - * @member {string} [allowedSourceAddressPrefix] Mutually exclusive with the - * "allowedSourceAddressPrefixes" parameter. Should be an IP address or CIDR, - * for example "192.168.0.3" or "192.168.0.0/16". - * @member {array} [allowedSourceAddressPrefixes] Mutually exclusive with the - * "allowedSourceAddressPrefix" parameter. - * @member {string} maxRequestAccessDuration Maximum duration requests can be - * made for. In ISO 8601 duration format. Minimum 5 minutes, maximum 1 day - */ export interface JitNetworkAccessPortRule { number: number; + /** + * Possible values include: 'TCP', 'UDP', 'All' + */ protocol: string; + /** + * Mutually exclusive with the "allowedSourceAddressPrefixes" parameter. Should be an IP address + * or CIDR, for example "192.168.0.3" or "192.168.0.0/16". + */ allowedSourceAddressPrefix?: string; + /** + * Mutually exclusive with the "allowedSourceAddressPrefix" parameter. + */ allowedSourceAddressPrefixes?: string[]; + /** + * Maximum duration requests can be made for. In ISO 8601 duration format. Minimum 5 minutes, + * maximum 1 day + */ maxRequestAccessDuration: string; } -/** - * @class - * Initializes a new instance of the JitNetworkAccessPolicyVirtualMachine class. - * @constructor - * @member {string} id Resource ID of the virtual machine that is linked to - * this policy - * @member {array} ports Port configurations for the virtual machine - */ export interface JitNetworkAccessPolicyVirtualMachine { + /** + * Resource ID of the virtual machine that is linked to this policy + */ id: string; + /** + * Port configurations for the virtual machine + */ ports: JitNetworkAccessPortRule[]; } -/** - * @class - * Initializes a new instance of the JitNetworkAccessRequestPort class. - * @constructor - * @member {number} number - * @member {string} [allowedSourceAddressPrefix] Mutually exclusive with the - * "allowedSourceAddressPrefixes" parameter. Should be an IP address or CIDR, - * for example "192.168.0.3" or "192.168.0.0/16". - * @member {array} [allowedSourceAddressPrefixes] Mutually exclusive with the - * "allowedSourceAddressPrefix" parameter. - * @member {date} endTimeUtc The date & time at which the request ends in UTC - * @member {string} status The status of the port. Possible values include: - * 'Revoked', 'Initiated' - * @member {string} statusReason A description of why the `status` has its - * value. Possible values include: 'Expired', 'UserRequested', - * 'NewerRequestInitiated' - */ export interface JitNetworkAccessRequestPort { number: number; + /** + * Mutually exclusive with the "allowedSourceAddressPrefixes" parameter. Should be an IP address + * or CIDR, for example "192.168.0.3" or "192.168.0.0/16". + */ allowedSourceAddressPrefix?: string; + /** + * Mutually exclusive with the "allowedSourceAddressPrefix" parameter. + */ allowedSourceAddressPrefixes?: string[]; + /** + * The date & time at which the request ends in UTC + */ endTimeUtc: Date; + /** + * The status of the port. Possible values include: 'Revoked', 'Initiated' + */ status: string; + /** + * A description of why the `status` has its value. Possible values include: 'Expired', + * 'UserRequested', 'NewerRequestInitiated' + */ statusReason: string; } -/** - * @class - * Initializes a new instance of the JitNetworkAccessRequestVirtualMachine class. - * @constructor - * @member {string} id Resource ID of the virtual machine that is linked to - * this policy - * @member {array} ports The ports that were opened for the virtual machine - */ export interface JitNetworkAccessRequestVirtualMachine { + /** + * Resource ID of the virtual machine that is linked to this policy + */ id: string; + /** + * The ports that were opened for the virtual machine + */ ports: JitNetworkAccessRequestPort[]; } -/** - * @class - * Initializes a new instance of the JitNetworkAccessRequest class. - * @constructor - * @member {array} virtualMachines - * @member {date} startTimeUtc The start time of the request in UTC - * @member {string} requestor The identity of the person who made the request - */ export interface JitNetworkAccessRequest { virtualMachines: JitNetworkAccessRequestVirtualMachine[]; + /** + * The start time of the request in UTC + */ startTimeUtc: Date; + /** + * The identity of the person who made the request + */ requestor: string; } -/** - * @class - * Initializes a new instance of the JitNetworkAccessPolicy class. - * @constructor - * @member {string} [id] Resource Id - * @member {string} [name] Resource name - * @member {string} [type] Resource type - * @member {string} [kind] Kind of the resource - * @member {string} [location] Location where the resource is stored - * @member {array} virtualMachines Configurations for - * Microsoft.Compute/virtualMachines resource type. - * @member {array} [requests] - * @member {string} [provisioningState] Gets the provisioning state of the - * Just-in-Time policy. - */ export interface JitNetworkAccessPolicy { + /** + * Resource Id + */ readonly id?: string; + /** + * Resource name + */ readonly name?: string; + /** + * Resource type + */ readonly type?: string; + /** + * Kind of the resource + */ kind?: string; + /** + * Location where the resource is stored + */ readonly location?: string; + /** + * Configurations for Microsoft.Compute/virtualMachines resource type. + */ virtualMachines: JitNetworkAccessPolicyVirtualMachine[]; requests?: JitNetworkAccessRequest[]; + /** + * Gets the provisioning state of the Just-in-Time policy. + */ readonly provisioningState?: string; } -/** - * @class - * Initializes a new instance of the JitNetworkAccessPolicyInitiatePort class. - * @constructor - * @member {number} number - * @member {string} [allowedSourceAddressPrefix] Source of the allowed traffic. - * If omitted, the request will be for the source IP address of the initiate - * request. - * @member {date} endTimeUtc The time to close the request in UTC - */ export interface JitNetworkAccessPolicyInitiatePort { number: number; + /** + * Source of the allowed traffic. If omitted, the request will be for the source IP address of + * the initiate request. + */ allowedSourceAddressPrefix?: string; + /** + * The time to close the request in UTC + */ endTimeUtc: Date; } -/** - * @class - * Initializes a new instance of the JitNetworkAccessPolicyInitiateVirtualMachine class. - * @constructor - * @member {string} id Resource ID of the virtual machine that is linked to - * this policy - * @member {array} ports The ports to open for the resource with the `id` - */ export interface JitNetworkAccessPolicyInitiateVirtualMachine { + /** + * Resource ID of the virtual machine that is linked to this policy + */ id: string; + /** + * The ports to open for the resource with the `id` + */ ports: JitNetworkAccessPolicyInitiatePort[]; } -/** - * @class - * Initializes a new instance of the JitNetworkAccessPolicyInitiateRequest class. - * @constructor - * @member {array} virtualMachines A list of virtual machines & ports to open - * access for - */ export interface JitNetworkAccessPolicyInitiateRequest { + /** + * A list of virtual machines & ports to open access for + */ virtualMachines: JitNetworkAccessPolicyInitiateVirtualMachine[]; } /** - * @class - * Initializes a new instance of the ExternalSecuritySolution class. - * @constructor - * Represents a security solution external to Azure Security Center which sends - * information to an OMS workspace and whos data is displayed by Azure Security - * Center. - * - * @member {string} [id] Resource Id - * @member {string} [name] Resource name - * @member {string} [type] Resource type - * @member {string} [location] Location where the resource is stored - * @member {string} kind Polymorphic Discriminator - */ + * Describes an Azure resource with kind +*/ +export interface Kind { + /** + * Kind of the resource + */ + kind?: string; +} + +/** + * Represents a security solution external to Azure Security Center which sends information to an + * OMS workspace and whose data is displayed by Azure Security Center. +*/ export interface ExternalSecuritySolution { + /** + * Resource Id + */ readonly id?: string; + /** + * Resource name + */ readonly name?: string; + /** + * Resource type + */ readonly type?: string; + /** + * Location where the resource is stored + */ readonly location?: string; + /** + * Polymorphic Discriminator + */ kind: string; } /** - * @class - * Initializes a new instance of the ExternalSecuritySolutionProperties class. - * @constructor * The solution properties (correspond to the solution kind) - * - * @member {string} [deviceVendor] - * @member {string} [deviceType] - * @member {object} [workspace] - * @member {string} [workspace.id] Azure resource ID of the connected OMS - * workspace - */ +*/ export interface ExternalSecuritySolutionProperties { deviceVendor?: string; deviceType?: string; workspace?: ConnectedWorkspace; /** - * @property Describes unknown properties. The value of an unknown property - * can be of "any" type. - */ - [property: string]: any; + * Describes unknown properties. The value of an unknown property can be of "any" type. + */ + [additionalPropertyName: string]: any; } /** - * @class - * Initializes a new instance of the CefSolutionProperties class. - * @constructor * @summary The external security solution properties for CEF solutions - * - * @member {string} [hostname] - * @member {string} [agent] - * @member {string} [lastEventReceived] - */ +*/ export interface CefSolutionProperties extends ExternalSecuritySolutionProperties { hostname?: string; agent?: string; @@ -791,366 +704,364 @@ export interface CefSolutionProperties extends ExternalSecuritySolutionPropertie } /** - * @class - * Initializes a new instance of the CefExternalSecuritySolution class. - * @constructor * Represents a security solution which sends CEF logs to an OMS workspace - * - * @member {object} [properties] - * @member {string} [properties.hostname] - * @member {string} [properties.agent] - * @member {string} [properties.lastEventReceived] - */ +*/ export interface CefExternalSecuritySolution extends ExternalSecuritySolution { properties?: CefSolutionProperties; } /** - * @class - * Initializes a new instance of the AtaSolutionProperties class. - * @constructor * @summary The external security solution properties for ATA solutions - * - * @member {string} [lastEventReceived] - */ +*/ export interface AtaSolutionProperties extends ExternalSecuritySolutionProperties { lastEventReceived?: string; } /** - * @class - * Initializes a new instance of the AtaExternalSecuritySolution class. - * @constructor * Represents an ATA security solution which sends logs to an OMS workspace - * - * @member {object} [properties] - * @member {string} [properties.lastEventReceived] - */ +*/ export interface AtaExternalSecuritySolution extends ExternalSecuritySolution { properties?: AtaSolutionProperties; } /** - * @class - * Initializes a new instance of the ConnectedWorkspace class. - * @constructor * @summary Represents an OMS workspace to which the solution is connected - * - * @member {string} [id] Azure resource ID of the connected OMS workspace - */ +*/ export interface ConnectedWorkspace { + /** + * Azure resource ID of the connected OMS workspace + */ id?: string; } /** - * @class - * Initializes a new instance of the AadSolutionProperties class. - * @constructor * @summary The external security solution properties for AAD solutions - * - * @member {string} [deviceVendor] - * @member {string} [deviceType] - * @member {object} [workspace] - * @member {string} [workspace.id] Azure resource ID of the connected OMS - * workspace - * @member {string} [connectivityState] The connectivity state of the external - * AAD solution . Possible values include: 'Discovered', 'NotLicensed', - * 'Connected' - */ +*/ export interface AadSolutionProperties { deviceVendor?: string; deviceType?: string; workspace?: ConnectedWorkspace; + /** + * @summary The connectivity state of the external AAD solution + * @description Possible values include: 'Discovered', 'NotLicensed', 'Connected' + */ connectivityState?: string; } /** - * @class - * Initializes a new instance of the AadExternalSecuritySolution class. - * @constructor - * Represents an AAD identity protection solution which sends logs to an OMS - * workspace. - * - * @member {object} [properties] - * @member {string} [properties.deviceVendor] - * @member {string} [properties.deviceType] - * @member {object} [properties.workspace] - * @member {string} [properties.workspace.id] Azure resource ID of the - * connected OMS workspace - * @member {string} [properties.connectivityState] Possible values include: - * 'Discovered', 'NotLicensed', 'Connected' - */ + * Represents an AAD identity protection solution which sends logs to an OMS workspace. +*/ export interface AadExternalSecuritySolution extends ExternalSecuritySolution { properties?: AadSolutionProperties; } /** - * @class - * Initializes a new instance of the ExternalSecuritySolutionKind1 class. - * @constructor * Describes an Azure resource with kind - * - * @member {string} [kind] The kind of the external solution. Possible values - * include: 'CEF', 'ATA', 'AAD' - */ +*/ export interface ExternalSecuritySolutionKind1 { + /** + * The kind of the external solution. Possible values include: 'CEF', 'ATA', 'AAD' + */ kind?: string; } /** - * @class - * Initializes a new instance of the AadConnectivityState1 class. - * @constructor * Describes an Azure resource with kind - * - * @member {string} [connectivityState] The connectivity state of the external - * AAD solution . Possible values include: 'Discovered', 'NotLicensed', - * 'Connected' - */ +*/ export interface AadConnectivityState1 { + /** + * @summary The connectivity state of the external AAD solution + * @description Possible values include: 'Discovered', 'NotLicensed', 'Connected' + */ connectivityState?: string; } +export interface TopologySingleResourceParent { + /** + * Azure resource id which serves as parent resource in topology view + */ + readonly resourceId?: string; +} + +export interface TopologySingleResourceChild { + /** + * Azure resource id which serves as child resource in topology view + */ + readonly resourceId?: string; +} + +export interface TopologySingleResource { + /** + * Azure resource id + */ + readonly resourceId?: string; + /** + * The security severity of the resource + */ + readonly severity?: string; + /** + * Indicates if the resource has security recommendations + */ + readonly recommendationsExist?: boolean; + /** + * Indicates the resource connectivity level to the Internet (InternetFacing, Internal ,etc.) + */ + readonly networkZones?: string; + /** + * Score of the resource based on its security severity + */ + readonly topologyScore?: number; + /** + * The location of this resource + */ + readonly location?: string; + /** + * Azure resources connected to this resource which are in higher level in the topology view + */ + readonly parents?: TopologySingleResourceParent[]; + /** + * Azure resources connected to this resource which are in lower level in the topology view + */ + readonly children?: TopologySingleResourceChild[]; +} + +export interface TopologyResource { + /** + * Resource Id + */ + readonly id?: string; + /** + * Resource name + */ + readonly name?: string; + /** + * Resource type + */ + readonly type?: string; + /** + * Location where the resource is stored + */ + readonly location?: string; + /** + * The UTC time on which the topology was calculated + */ + readonly calculatedDateTime?: Date; + /** + * Azure resources which are part of this topology resource + */ + readonly topologyResources?: TopologySingleResource[]; +} + /** - * @class - * Initializes a new instance of the ConnectedResource class. - * @constructor * Describes properties of a connected resource - * - * @member {string} [connectedResourceId] The Azure resource id of the - * connected resource - * @member {string} [tcpPorts] The allowed tcp ports - * @member {string} [udpPorts] The allowed udp ports - */ +*/ export interface ConnectedResource { + /** + * The Azure resource id of the connected resource + */ readonly connectedResourceId?: string; + /** + * The allowed tcp ports + */ readonly tcpPorts?: string; + /** + * The allowed udp ports + */ readonly udpPorts?: string; } /** - * @class - * Initializes a new instance of the ConnectableResource class. - * @constructor * Describes the allowed inbound and outbound traffic of an Azure resource - * - * @member {string} [id] The Azure resource id - * @member {array} [inboundConnectedResources] The list of Azure resources that - * the resource has inbound allowed connection from - * @member {array} [outboundConnectedResources] The list of Azure resources - * that the resource has outbound allowed connection to - */ +*/ export interface ConnectableResource { + /** + * The Azure resource id + */ readonly id?: string; + /** + * The list of Azure resources that the resource has inbound allowed connection from + */ readonly inboundConnectedResources?: ConnectedResource[]; + /** + * The list of Azure resources that the resource has outbound allowed connection to + */ readonly outboundConnectedResources?: ConnectedResource[]; } /** - * @class - * Initializes a new instance of the AllowedConnectionsResource class. - * @constructor - * The resource whose properties describes the allowed traffic between Azure - * resources - * - * @member {string} [id] Resource Id - * @member {string} [name] Resource name - * @member {string} [type] Resource type - * @member {string} [location] Location where the resource is stored - * @member {date} [calculatedDateTime] The UTC time on which the allowed - * connections resource was calculated - * @member {array} [connectableResources] List of connectable resources - */ + * The resource whose properties describes the allowed traffic between Azure resources +*/ export interface AllowedConnectionsResource { + /** + * Resource Id + */ readonly id?: string; + /** + * Resource name + */ readonly name?: string; + /** + * Resource type + */ readonly type?: string; + /** + * Location where the resource is stored + */ readonly location?: string; + /** + * The UTC time on which the allowed connections resource was calculated + */ readonly calculatedDateTime?: Date; + /** + * List of connectable resources + */ readonly connectableResources?: ConnectableResource[]; } - /** - * @class - * Initializes a new instance of the PricingList class. - * @constructor * List of pricing configurations response - * - * @member {string} [nextLink] The URI to fetch the next page. - */ +*/ export interface PricingList extends Array { + /** + * The URI to fetch the next page. + */ readonly nextLink?: string; } /** - * @class - * Initializes a new instance of the SecurityContactList class. - * @constructor * List of security contacts response - * - * @member {string} [nextLink] The URI to fetch the next page. - */ +*/ export interface SecurityContactList extends Array { + /** + * The URI to fetch the next page. + */ readonly nextLink?: string; } /** - * @class - * Initializes a new instance of the WorkspaceSettingList class. - * @constructor * List of workspace settings response - * - * @member {string} [nextLink] The URI to fetch the next page. - */ +*/ export interface WorkspaceSettingList extends Array { + /** + * The URI to fetch the next page. + */ readonly nextLink?: string; } /** - * @class - * Initializes a new instance of the AutoProvisioningSettingList class. - * @constructor * List of all the auto provisioning settings response - * - * @member {string} [nextLink] The URI to fetch the next page. - */ +*/ export interface AutoProvisioningSettingList extends Array { + /** + * The URI to fetch the next page. + */ readonly nextLink?: string; } /** - * @class - * Initializes a new instance of the ComplianceList class. - * @constructor * List of Compliance objects response - * - * @member {string} [nextLink] The URI to fetch the next page. - */ +*/ export interface ComplianceList extends Array { + /** + * The URI to fetch the next page. + */ readonly nextLink?: string; } /** - * @class - * Initializes a new instance of the SettingsList class. - * @constructor * Subscription settings list. - * - * @member {string} [nextLink] The URI to fetch the next page. - */ +*/ export interface SettingsList extends Array { + /** + * The URI to fetch the next page. + */ readonly nextLink?: string; } /** - * @class - * Initializes a new instance of the InformationProtectionPolicyList class. - * @constructor * Information protection policies response. - * - * @member {string} [nextLink] The URI to fetch the next page. - */ +*/ export interface InformationProtectionPolicyList extends Array { + /** + * The URI to fetch the next page. + */ readonly nextLink?: string; } /** - * @class - * Initializes a new instance of the OperationList class. - * @constructor * List of possible operations for Microsoft.Security resource provider - * - * @member {string} [nextLink] The URI to fetch the next page. - */ +*/ export interface OperationList extends Array { + /** + * The URI to fetch the next page. + */ readonly nextLink?: string; } /** - * @class - * Initializes a new instance of the AscLocationList class. - * @constructor * List of locations where ASC saves your data - * - * @member {string} [nextLink] The URI to fetch the next page. - */ +*/ export interface AscLocationList extends Array { + /** + * The URI to fetch the next page. + */ readonly nextLink?: string; } /** - * @class - * Initializes a new instance of the SecurityTaskList class. - * @constructor * List of security task recommendations - * - * @member {string} [nextLink] The URI to fetch the next page. - */ +*/ export interface SecurityTaskList extends Array { + /** + * The URI to fetch the next page. + */ readonly nextLink?: string; } /** - * @class - * Initializes a new instance of the AlertList class. - * @constructor * List of security alerts - * - * @member {string} [nextLink] The URI to fetch the next page. - */ +*/ export interface AlertList extends Array { + /** + * The URI to fetch the next page. + */ readonly nextLink?: string; } -/** - * @class - * Initializes a new instance of the DiscoveredSecuritySolutionList class. - * @constructor - * @member {string} [nextLink] The URI to fetch the next page. - */ export interface DiscoveredSecuritySolutionList extends Array { + /** + * The URI to fetch the next page. + */ readonly nextLink?: string; } -/** - * @class - * Initializes a new instance of the JitNetworkAccessPoliciesList class. - * @constructor - * @member {string} [nextLink] The URI to fetch the next page. - */ export interface JitNetworkAccessPoliciesList extends Array { + /** + * The URI to fetch the next page. + */ readonly nextLink?: string; } -/** - * @class - * Initializes a new instance of the ExternalSecuritySolutionList class. - * @constructor - * @member {string} [nextLink] The URI to fetch the next page. - */ export interface ExternalSecuritySolutionList extends Array { + /** + * The URI to fetch the next page. + */ readonly nextLink?: string; } -/** - * @class - * Initializes a new instance of the TopologyList class. - * @constructor - * @member {string} [nextLink] The URI to fetch the next page. - */ export interface TopologyList extends Array { + /** + * The URI to fetch the next page. + */ readonly nextLink?: string; } /** - * @class - * Initializes a new instance of the AllowedConnectionsList class. - * @constructor * List of all possible traffic between Azure resources - * - * @member {string} [nextLink] The URI to fetch the next page. - */ +*/ export interface AllowedConnectionsList extends Array { + /** + * The URI to fetch the next page. + */ readonly nextLink?: string; } diff --git a/lib/services/securityManagement/lib/models/index.js b/lib/services/securityManagement/lib/models/index.js index 750d5ba0d8..6f183e718b 100644 --- a/lib/services/securityManagement/lib/models/index.js +++ b/lib/services/securityManagement/lib/models/index.js @@ -19,35 +19,30 @@ var msRestAzure = require('ms-rest-azure'); exports.BaseResource = msRestAzure.BaseResource; exports.CloudError = msRestAzure.CloudError; exports.Resource = require('./resource'); -exports.Kind = require('./kind'); -exports.SecurityContact = require('./securityContact'); exports.Pricing = require('./pricing'); +exports.AscLocation = require('./ascLocation'); +exports.SecurityContact = require('./securityContact'); exports.WorkspaceSetting = require('./workspaceSetting'); exports.AutoProvisioningSetting = require('./autoProvisioningSetting'); exports.ComplianceSegment = require('./complianceSegment'); exports.Compliance = require('./compliance'); exports.AdvancedThreatProtectionSetting = require('./advancedThreatProtectionSetting'); +exports.SettingResource = require('./settingResource'); exports.Setting = require('./setting'); exports.DataExportSetting = require('./dataExportSetting'); -exports.SettingKind1 = require('./settingKind1'); exports.SensitivityLabel = require('./sensitivityLabel'); exports.InformationProtectionKeyword = require('./informationProtectionKeyword'); exports.InformationType = require('./informationType'); exports.InformationProtectionPolicy = require('./informationProtectionPolicy'); -exports.Location = require('./location'); exports.OperationDisplay = require('./operationDisplay'); exports.Operation = require('./operation'); exports.SecurityTaskParameters = require('./securityTaskParameters'); exports.SecurityTask = require('./securityTask'); -exports.AscLocation = require('./ascLocation'); exports.AlertEntity = require('./alertEntity'); exports.AlertConfidenceReason = require('./alertConfidenceReason'); exports.Alert = require('./alert'); exports.DiscoveredSecuritySolution = require('./discoveredSecuritySolution'); -exports.TopologySingleResourceParent = require('./topologySingleResourceParent'); -exports.TopologySingleResourceChild = require('./topologySingleResourceChild'); -exports.TopologySingleResource = require('./topologySingleResource'); -exports.TopologyResource = require('./topologyResource'); +exports.Location = require('./location'); exports.JitNetworkAccessPortRule = require('./jitNetworkAccessPortRule'); exports.JitNetworkAccessPolicyVirtualMachine = require('./jitNetworkAccessPolicyVirtualMachine'); exports.JitNetworkAccessRequestPort = require('./jitNetworkAccessRequestPort'); @@ -57,6 +52,7 @@ exports.JitNetworkAccessPolicy = require('./jitNetworkAccessPolicy'); exports.JitNetworkAccessPolicyInitiatePort = require('./jitNetworkAccessPolicyInitiatePort'); exports.JitNetworkAccessPolicyInitiateVirtualMachine = require('./jitNetworkAccessPolicyInitiateVirtualMachine'); exports.JitNetworkAccessPolicyInitiateRequest = require('./jitNetworkAccessPolicyInitiateRequest'); +exports.Kind = require('./kind'); exports.ExternalSecuritySolution = require('./externalSecuritySolution'); exports.ExternalSecuritySolutionProperties = require('./externalSecuritySolutionProperties'); exports.CefSolutionProperties = require('./cefSolutionProperties'); @@ -68,6 +64,10 @@ exports.AadSolutionProperties = require('./aadSolutionProperties'); exports.AadExternalSecuritySolution = require('./aadExternalSecuritySolution'); exports.ExternalSecuritySolutionKind1 = require('./externalSecuritySolutionKind1'); exports.AadConnectivityState1 = require('./aadConnectivityState1'); +exports.TopologySingleResourceParent = require('./topologySingleResourceParent'); +exports.TopologySingleResourceChild = require('./topologySingleResourceChild'); +exports.TopologySingleResource = require('./topologySingleResource'); +exports.TopologyResource = require('./topologyResource'); exports.ConnectedResource = require('./connectedResource'); exports.ConnectableResource = require('./connectableResource'); exports.AllowedConnectionsResource = require('./allowedConnectionsResource'); @@ -88,8 +88,6 @@ exports.ExternalSecuritySolutionList = require('./externalSecuritySolutionList') exports.TopologyList = require('./topologyList'); exports.AllowedConnectionsList = require('./allowedConnectionsList'); exports.discriminators = { - 'Setting' : exports.Setting, - 'Setting.DataExportSetting' : exports.DataExportSetting, 'ExternalSecuritySolution' : exports.ExternalSecuritySolution, 'ExternalSecuritySolution.CEF' : exports.CefExternalSecuritySolution, 'ExternalSecuritySolution.ATA' : exports.AtaExternalSecuritySolution, diff --git a/lib/services/securityManagement/lib/models/informationProtectionKeyword.js b/lib/services/securityManagement/lib/models/informationProtectionKeyword.js index 47c99e1014..2de4851152 100644 --- a/lib/services/securityManagement/lib/models/informationProtectionKeyword.js +++ b/lib/services/securityManagement/lib/models/informationProtectionKeyword.js @@ -17,12 +17,13 @@ class InformationProtectionKeyword { /** * Create a InformationProtectionKeyword. - * @member {string} [pattern] The keyword pattern. - * @member {boolean} [custom] Indicates whether the keyword is custom or not. - * @member {boolean} [canBeNumeric] Indicates whether the keyword can be - * applied on numeric types or not. - * @member {boolean} [excluded] Indicates whether the keyword is excluded or + * @property {string} [pattern] The keyword pattern. + * @property {boolean} [custom] Indicates whether the keyword is custom or * not. + * @property {boolean} [canBeNumeric] Indicates whether the keyword can be + * applied on numeric types or not. + * @property {boolean} [excluded] Indicates whether the keyword is excluded + * or not. */ constructor() { } diff --git a/lib/services/securityManagement/lib/models/informationProtectionPolicy.js b/lib/services/securityManagement/lib/models/informationProtectionPolicy.js index 031ef06a3a..159285b13d 100644 --- a/lib/services/securityManagement/lib/models/informationProtectionPolicy.js +++ b/lib/services/securityManagement/lib/models/informationProtectionPolicy.js @@ -20,10 +20,10 @@ const models = require('./index'); class InformationProtectionPolicy extends models['Resource'] { /** * Create a InformationProtectionPolicy. - * @member {date} [lastModifiedUtc] Describes the last UTC time the policy + * @property {date} [lastModifiedUtc] Describes the last UTC time the policy * was modified. - * @member {object} [labels] Dictionary of sensitivity labels. - * @member {object} [informationTypes] The sensitivity information types. + * @property {object} [labels] Dictionary of sensitivity labels. + * @property {object} [informationTypes] The sensitivity information types. */ constructor() { super(); diff --git a/lib/services/securityManagement/lib/models/informationProtectionPolicyList.js b/lib/services/securityManagement/lib/models/informationProtectionPolicyList.js index e841f1588e..c626fb9b6c 100644 --- a/lib/services/securityManagement/lib/models/informationProtectionPolicyList.js +++ b/lib/services/securityManagement/lib/models/informationProtectionPolicyList.js @@ -16,7 +16,7 @@ class InformationProtectionPolicyList extends Array { /** * Create a InformationProtectionPolicyList. - * @member {string} [nextLink] The URI to fetch the next page. + * @property {string} [nextLink] The URI to fetch the next page. */ constructor() { super(); diff --git a/lib/services/securityManagement/lib/models/informationType.js b/lib/services/securityManagement/lib/models/informationType.js index 34b061f93b..fc0993c9b8 100644 --- a/lib/services/securityManagement/lib/models/informationType.js +++ b/lib/services/securityManagement/lib/models/informationType.js @@ -17,15 +17,15 @@ class InformationType { /** * Create a InformationType. - * @member {string} [displayName] The name of the information type. - * @member {number} [order] The order of the information type. - * @member {uuid} [recommendedLabelId] The recommended label id to be + * @property {string} [displayName] The name of the information type. + * @property {number} [order] The order of the information type. + * @property {uuid} [recommendedLabelId] The recommended label id to be * associated with this information type. - * @member {boolean} [enabled] Indicates whether the information type is + * @property {boolean} [enabled] Indicates whether the information type is * enabled or not. - * @member {boolean} [custom] Indicates whether the information type is + * @property {boolean} [custom] Indicates whether the information type is * custom or not. - * @member {array} [keywords] The information type keywords. + * @property {array} [keywords] The information type keywords. */ constructor() { } diff --git a/lib/services/securityManagement/lib/models/jitNetworkAccessPoliciesList.js b/lib/services/securityManagement/lib/models/jitNetworkAccessPoliciesList.js index 1d80436399..638a3dd489 100644 --- a/lib/services/securityManagement/lib/models/jitNetworkAccessPoliciesList.js +++ b/lib/services/securityManagement/lib/models/jitNetworkAccessPoliciesList.js @@ -16,7 +16,7 @@ class JitNetworkAccessPoliciesList extends Array { /** * Create a JitNetworkAccessPoliciesList. - * @member {string} [nextLink] The URI to fetch the next page. + * @property {string} [nextLink] The URI to fetch the next page. */ constructor() { super(); diff --git a/lib/services/securityManagement/lib/models/jitNetworkAccessPolicy.js b/lib/services/securityManagement/lib/models/jitNetworkAccessPolicy.js index 9293f27bce..f93f6430b0 100644 --- a/lib/services/securityManagement/lib/models/jitNetworkAccessPolicy.js +++ b/lib/services/securityManagement/lib/models/jitNetworkAccessPolicy.js @@ -16,15 +16,15 @@ class JitNetworkAccessPolicy { /** * Create a JitNetworkAccessPolicy. - * @member {string} [id] Resource Id - * @member {string} [name] Resource name - * @member {string} [type] Resource type - * @member {string} [kind] Kind of the resource - * @member {string} [location] Location where the resource is stored - * @member {array} virtualMachines Configurations for + * @property {string} [id] Resource Id + * @property {string} [name] Resource name + * @property {string} [type] Resource type + * @property {string} [kind] Kind of the resource + * @property {string} [location] Location where the resource is stored + * @property {array} virtualMachines Configurations for * Microsoft.Compute/virtualMachines resource type. - * @member {array} [requests] - * @member {string} [provisioningState] Gets the provisioning state of the + * @property {array} [requests] + * @property {string} [provisioningState] Gets the provisioning state of the * Just-in-Time policy. */ constructor() { diff --git a/lib/services/securityManagement/lib/models/jitNetworkAccessPolicyInitiatePort.js b/lib/services/securityManagement/lib/models/jitNetworkAccessPolicyInitiatePort.js index 8595a0ad79..66389172e5 100644 --- a/lib/services/securityManagement/lib/models/jitNetworkAccessPolicyInitiatePort.js +++ b/lib/services/securityManagement/lib/models/jitNetworkAccessPolicyInitiatePort.js @@ -16,11 +16,11 @@ class JitNetworkAccessPolicyInitiatePort { /** * Create a JitNetworkAccessPolicyInitiatePort. - * @member {number} number - * @member {string} [allowedSourceAddressPrefix] Source of the allowed + * @property {number} number + * @property {string} [allowedSourceAddressPrefix] Source of the allowed * traffic. If omitted, the request will be for the source IP address of the * initiate request. - * @member {date} endTimeUtc The time to close the request in UTC + * @property {date} endTimeUtc The time to close the request in UTC */ constructor() { } diff --git a/lib/services/securityManagement/lib/models/jitNetworkAccessPolicyInitiateRequest.js b/lib/services/securityManagement/lib/models/jitNetworkAccessPolicyInitiateRequest.js index 70bfd90afc..849183e2fd 100644 --- a/lib/services/securityManagement/lib/models/jitNetworkAccessPolicyInitiateRequest.js +++ b/lib/services/securityManagement/lib/models/jitNetworkAccessPolicyInitiateRequest.js @@ -16,8 +16,8 @@ class JitNetworkAccessPolicyInitiateRequest { /** * Create a JitNetworkAccessPolicyInitiateRequest. - * @member {array} virtualMachines A list of virtual machines & ports to open - * access for + * @property {array} virtualMachines A list of virtual machines & ports to + * open access for */ constructor() { } diff --git a/lib/services/securityManagement/lib/models/jitNetworkAccessPolicyInitiateVirtualMachine.js b/lib/services/securityManagement/lib/models/jitNetworkAccessPolicyInitiateVirtualMachine.js index aa3799d5b3..4e2ee1978a 100644 --- a/lib/services/securityManagement/lib/models/jitNetworkAccessPolicyInitiateVirtualMachine.js +++ b/lib/services/securityManagement/lib/models/jitNetworkAccessPolicyInitiateVirtualMachine.js @@ -16,9 +16,9 @@ class JitNetworkAccessPolicyInitiateVirtualMachine { /** * Create a JitNetworkAccessPolicyInitiateVirtualMachine. - * @member {string} id Resource ID of the virtual machine that is linked to + * @property {string} id Resource ID of the virtual machine that is linked to * this policy - * @member {array} ports The ports to open for the resource with the `id` + * @property {array} ports The ports to open for the resource with the `id` */ constructor() { } diff --git a/lib/services/securityManagement/lib/models/jitNetworkAccessPolicyVirtualMachine.js b/lib/services/securityManagement/lib/models/jitNetworkAccessPolicyVirtualMachine.js index d040e9aef2..c4f3f0af6e 100644 --- a/lib/services/securityManagement/lib/models/jitNetworkAccessPolicyVirtualMachine.js +++ b/lib/services/securityManagement/lib/models/jitNetworkAccessPolicyVirtualMachine.js @@ -16,9 +16,9 @@ class JitNetworkAccessPolicyVirtualMachine { /** * Create a JitNetworkAccessPolicyVirtualMachine. - * @member {string} id Resource ID of the virtual machine that is linked to + * @property {string} id Resource ID of the virtual machine that is linked to * this policy - * @member {array} ports Port configurations for the virtual machine + * @property {array} ports Port configurations for the virtual machine */ constructor() { } diff --git a/lib/services/securityManagement/lib/models/jitNetworkAccessPortRule.js b/lib/services/securityManagement/lib/models/jitNetworkAccessPortRule.js index 42e4270bf3..a08b268963 100644 --- a/lib/services/securityManagement/lib/models/jitNetworkAccessPortRule.js +++ b/lib/services/securityManagement/lib/models/jitNetworkAccessPortRule.js @@ -16,15 +16,15 @@ class JitNetworkAccessPortRule { /** * Create a JitNetworkAccessPortRule. - * @member {number} number - * @member {string} protocol Possible values include: 'TCP', 'UDP', 'All' - * @member {string} [allowedSourceAddressPrefix] Mutually exclusive with the - * "allowedSourceAddressPrefixes" parameter. Should be an IP address or CIDR, - * for example "192.168.0.3" or "192.168.0.0/16". - * @member {array} [allowedSourceAddressPrefixes] Mutually exclusive with the - * "allowedSourceAddressPrefix" parameter. - * @member {string} maxRequestAccessDuration Maximum duration requests can be - * made for. In ISO 8601 duration format. Minimum 5 minutes, maximum 1 day + * @property {number} number + * @property {string} protocol Possible values include: 'TCP', 'UDP', 'All' + * @property {string} [allowedSourceAddressPrefix] Mutually exclusive with + * the "allowedSourceAddressPrefixes" parameter. Should be an IP address or + * CIDR, for example "192.168.0.3" or "192.168.0.0/16". + * @property {array} [allowedSourceAddressPrefixes] Mutually exclusive with + * the "allowedSourceAddressPrefix" parameter. + * @property {string} maxRequestAccessDuration Maximum duration requests can + * be made for. In ISO 8601 duration format. Minimum 5 minutes, maximum 1 day */ constructor() { } diff --git a/lib/services/securityManagement/lib/models/jitNetworkAccessRequest.js b/lib/services/securityManagement/lib/models/jitNetworkAccessRequest.js index db90de669d..a1a456a74f 100644 --- a/lib/services/securityManagement/lib/models/jitNetworkAccessRequest.js +++ b/lib/services/securityManagement/lib/models/jitNetworkAccessRequest.js @@ -16,9 +16,10 @@ class JitNetworkAccessRequest { /** * Create a JitNetworkAccessRequest. - * @member {array} virtualMachines - * @member {date} startTimeUtc The start time of the request in UTC - * @member {string} requestor The identity of the person who made the request + * @property {array} virtualMachines + * @property {date} startTimeUtc The start time of the request in UTC + * @property {string} requestor The identity of the person who made the + * request */ constructor() { } diff --git a/lib/services/securityManagement/lib/models/jitNetworkAccessRequestPort.js b/lib/services/securityManagement/lib/models/jitNetworkAccessRequestPort.js index 1bcdb77351..31612ac09d 100644 --- a/lib/services/securityManagement/lib/models/jitNetworkAccessRequestPort.js +++ b/lib/services/securityManagement/lib/models/jitNetworkAccessRequestPort.js @@ -16,16 +16,17 @@ class JitNetworkAccessRequestPort { /** * Create a JitNetworkAccessRequestPort. - * @member {number} number - * @member {string} [allowedSourceAddressPrefix] Mutually exclusive with the - * "allowedSourceAddressPrefixes" parameter. Should be an IP address or CIDR, - * for example "192.168.0.3" or "192.168.0.0/16". - * @member {array} [allowedSourceAddressPrefixes] Mutually exclusive with the - * "allowedSourceAddressPrefix" parameter. - * @member {date} endTimeUtc The date & time at which the request ends in UTC - * @member {string} status The status of the port. Possible values include: + * @property {number} number + * @property {string} [allowedSourceAddressPrefix] Mutually exclusive with + * the "allowedSourceAddressPrefixes" parameter. Should be an IP address or + * CIDR, for example "192.168.0.3" or "192.168.0.0/16". + * @property {array} [allowedSourceAddressPrefixes] Mutually exclusive with + * the "allowedSourceAddressPrefix" parameter. + * @property {date} endTimeUtc The date & time at which the request ends in + * UTC + * @property {string} status The status of the port. Possible values include: * 'Revoked', 'Initiated' - * @member {string} statusReason A description of why the `status` has its + * @property {string} statusReason A description of why the `status` has its * value. Possible values include: 'Expired', 'UserRequested', * 'NewerRequestInitiated' */ diff --git a/lib/services/securityManagement/lib/models/jitNetworkAccessRequestVirtualMachine.js b/lib/services/securityManagement/lib/models/jitNetworkAccessRequestVirtualMachine.js index 4e7524d26d..4acefe8e14 100644 --- a/lib/services/securityManagement/lib/models/jitNetworkAccessRequestVirtualMachine.js +++ b/lib/services/securityManagement/lib/models/jitNetworkAccessRequestVirtualMachine.js @@ -16,9 +16,9 @@ class JitNetworkAccessRequestVirtualMachine { /** * Create a JitNetworkAccessRequestVirtualMachine. - * @member {string} id Resource ID of the virtual machine that is linked to + * @property {string} id Resource ID of the virtual machine that is linked to * this policy - * @member {array} ports The ports that were opened for the virtual machine + * @property {array} ports The ports that were opened for the virtual machine */ constructor() { } diff --git a/lib/services/securityManagement/lib/models/kind.js b/lib/services/securityManagement/lib/models/kind.js index fec70c6c67..f81bce4066 100644 --- a/lib/services/securityManagement/lib/models/kind.js +++ b/lib/services/securityManagement/lib/models/kind.js @@ -17,7 +17,7 @@ class Kind { /** * Create a Kind. - * @member {string} [kind] Kind of the resource + * @property {string} [kind] Kind of the resource */ constructor() { } diff --git a/lib/services/securityManagement/lib/models/location.js b/lib/services/securityManagement/lib/models/location.js index 366adf3b59..6b67d645ff 100644 --- a/lib/services/securityManagement/lib/models/location.js +++ b/lib/services/securityManagement/lib/models/location.js @@ -17,7 +17,7 @@ class Location { /** * Create a Location. - * @member {string} [location] Location where the resource is stored + * @property {string} [location] Location where the resource is stored */ constructor() { } diff --git a/lib/services/securityManagement/lib/models/operation.js b/lib/services/securityManagement/lib/models/operation.js index 52be69f344..af31009905 100644 --- a/lib/services/securityManagement/lib/models/operation.js +++ b/lib/services/securityManagement/lib/models/operation.js @@ -17,16 +17,16 @@ class Operation { /** * Create a Operation. - * @member {string} [name] Name of the operation - * @member {string} [origin] Where the operation is originated - * @member {object} [display] - * @member {string} [display.provider] The resource provider for the + * @property {string} [name] Name of the operation + * @property {string} [origin] Where the operation is originated + * @property {object} [display] + * @property {string} [display.provider] The resource provider for the * operation. - * @member {string} [display.resource] The display name of the resource the + * @property {string} [display.resource] The display name of the resource the * operation applies to. - * @member {string} [display.operation] The display name of the security + * @property {string} [display.operation] The display name of the security * operation. - * @member {string} [display.description] The description of the operation. + * @property {string} [display.description] The description of the operation. */ constructor() { } diff --git a/lib/services/securityManagement/lib/models/operationDisplay.js b/lib/services/securityManagement/lib/models/operationDisplay.js index 514abfaba2..04b94b6cc7 100644 --- a/lib/services/securityManagement/lib/models/operationDisplay.js +++ b/lib/services/securityManagement/lib/models/operationDisplay.js @@ -17,11 +17,11 @@ class OperationDisplay { /** * Create a OperationDisplay. - * @member {string} [provider] The resource provider for the operation. - * @member {string} [resource] The display name of the resource the operation - * applies to. - * @member {string} [operation] The display name of the security operation. - * @member {string} [description] The description of the operation. + * @property {string} [provider] The resource provider for the operation. + * @property {string} [resource] The display name of the resource the + * operation applies to. + * @property {string} [operation] The display name of the security operation. + * @property {string} [description] The description of the operation. */ constructor() { } diff --git a/lib/services/securityManagement/lib/models/operationList.js b/lib/services/securityManagement/lib/models/operationList.js index b50fa44b8f..b78411c586 100644 --- a/lib/services/securityManagement/lib/models/operationList.js +++ b/lib/services/securityManagement/lib/models/operationList.js @@ -16,7 +16,7 @@ class OperationList extends Array { /** * Create a OperationList. - * @member {string} [nextLink] The URI to fetch the next page. + * @property {string} [nextLink] The URI to fetch the next page. */ constructor() { super(); diff --git a/lib/services/securityManagement/lib/models/pricing.js b/lib/services/securityManagement/lib/models/pricing.js index 3474916a05..a32a48f0cf 100644 --- a/lib/services/securityManagement/lib/models/pricing.js +++ b/lib/services/securityManagement/lib/models/pricing.js @@ -20,7 +20,7 @@ const models = require('./index'); class Pricing extends models['Resource'] { /** * Create a Pricing. - * @member {string} pricingTier Pricing tier type. Possible values include: + * @property {string} pricingTier Pricing tier type. Possible values include: * 'Free', 'Standard' */ constructor() { diff --git a/lib/services/securityManagement/lib/models/pricingList.js b/lib/services/securityManagement/lib/models/pricingList.js index f75672f10b..c435584e81 100644 --- a/lib/services/securityManagement/lib/models/pricingList.js +++ b/lib/services/securityManagement/lib/models/pricingList.js @@ -16,7 +16,7 @@ class PricingList extends Array { /** * Create a PricingList. - * @member {string} [nextLink] The URI to fetch the next page. + * @property {string} [nextLink] The URI to fetch the next page. */ constructor() { super(); diff --git a/lib/services/securityManagement/lib/models/resource.js b/lib/services/securityManagement/lib/models/resource.js index d32ef328f6..fe96e636d9 100644 --- a/lib/services/securityManagement/lib/models/resource.js +++ b/lib/services/securityManagement/lib/models/resource.js @@ -20,9 +20,9 @@ const models = require('./index'); class Resource extends models['BaseResource'] { /** * Create a Resource. - * @member {string} [id] Resource Id - * @member {string} [name] Resource name - * @member {string} [type] Resource type + * @property {string} [id] Resource Id + * @property {string} [name] Resource name + * @property {string} [type] Resource type */ constructor() { super(); diff --git a/lib/services/securityManagement/lib/models/securityContact.js b/lib/services/securityManagement/lib/models/securityContact.js index ce7257074e..839e3bc05c 100644 --- a/lib/services/securityManagement/lib/models/securityContact.js +++ b/lib/services/securityManagement/lib/models/securityContact.js @@ -20,12 +20,12 @@ const models = require('./index'); class SecurityContact extends models['Resource'] { /** * Create a SecurityContact. - * @member {string} email The email of this security contact - * @member {string} [phone] The phone number of this security contact - * @member {string} alertNotifications Whether to send security alerts + * @property {string} email The email of this security contact + * @property {string} [phone] The phone number of this security contact + * @property {string} alertNotifications Whether to send security alerts * notifications to the security contact. Possible values include: 'On', * 'Off' - * @member {string} alertsToAdmins Whether to send security alerts + * @property {string} alertsToAdmins Whether to send security alerts * notifications to subscription admins. Possible values include: 'On', 'Off' */ constructor() { diff --git a/lib/services/securityManagement/lib/models/securityContactList.js b/lib/services/securityManagement/lib/models/securityContactList.js index 6647309edb..535f5761e4 100644 --- a/lib/services/securityManagement/lib/models/securityContactList.js +++ b/lib/services/securityManagement/lib/models/securityContactList.js @@ -16,7 +16,7 @@ class SecurityContactList extends Array { /** * Create a SecurityContactList. - * @member {string} [nextLink] The URI to fetch the next page. + * @property {string} [nextLink] The URI to fetch the next page. */ constructor() { super(); diff --git a/lib/services/securityManagement/lib/models/securityTask.js b/lib/services/securityManagement/lib/models/securityTask.js index 3b6b13557d..67bc6b31a0 100644 --- a/lib/services/securityManagement/lib/models/securityTask.js +++ b/lib/services/securityManagement/lib/models/securityTask.js @@ -20,13 +20,14 @@ const models = require('./index'); class SecurityTask extends models['Resource'] { /** * Create a SecurityTask. - * @member {string} [state] State of the task (Active, Resolved etc.) - * @member {date} [creationTimeUtc] The time this task was discovered in UTC - * @member {object} [securityTaskParameters] - * @member {string} [securityTaskParameters.name] Name of the task type - * @member {date} [lastStateChangeTimeUtc] The time this task's details were - * last changed in UTC - * @member {string} [subState] Additional data on the state of the task + * @property {string} [state] State of the task (Active, Resolved etc.) + * @property {date} [creationTimeUtc] The time this task was discovered in + * UTC + * @property {object} [securityTaskParameters] + * @property {string} [securityTaskParameters.name] Name of the task type + * @property {date} [lastStateChangeTimeUtc] The time this task's details + * were last changed in UTC + * @property {string} [subState] Additional data on the state of the task */ constructor() { super(); diff --git a/lib/services/securityManagement/lib/models/securityTaskList.js b/lib/services/securityManagement/lib/models/securityTaskList.js index bc0e3f0214..83e3bf625b 100644 --- a/lib/services/securityManagement/lib/models/securityTaskList.js +++ b/lib/services/securityManagement/lib/models/securityTaskList.js @@ -16,7 +16,7 @@ class SecurityTaskList extends Array { /** * Create a SecurityTaskList. - * @member {string} [nextLink] The URI to fetch the next page. + * @property {string} [nextLink] The URI to fetch the next page. */ constructor() { super(); diff --git a/lib/services/securityManagement/lib/models/securityTaskParameters.js b/lib/services/securityManagement/lib/models/securityTaskParameters.js index e657353d23..e3c7a43cee 100644 --- a/lib/services/securityManagement/lib/models/securityTaskParameters.js +++ b/lib/services/securityManagement/lib/models/securityTaskParameters.js @@ -18,7 +18,7 @@ class SecurityTaskParameters { /** * Create a SecurityTaskParameters. - * @member {string} [name] Name of the task type + * @property {string} [name] Name of the task type */ constructor() { } diff --git a/lib/services/securityManagement/lib/models/sensitivityLabel.js b/lib/services/securityManagement/lib/models/sensitivityLabel.js index 637c8725e6..d6201f7a41 100644 --- a/lib/services/securityManagement/lib/models/sensitivityLabel.js +++ b/lib/services/securityManagement/lib/models/sensitivityLabel.js @@ -17,9 +17,10 @@ class SensitivityLabel { /** * Create a SensitivityLabel. - * @member {string} [displayName] The name of the sensitivity label. - * @member {number} [order] The order of the sensitivity label. - * @member {boolean} [enabled] Indicates whether the label is enabled or not. + * @property {string} [displayName] The name of the sensitivity label. + * @property {number} [order] The order of the sensitivity label. + * @property {boolean} [enabled] Indicates whether the label is enabled or + * not. */ constructor() { } diff --git a/lib/services/securityManagement/lib/models/setting.js b/lib/services/securityManagement/lib/models/setting.js index b07ec9ccce..6e7b01c8cc 100644 --- a/lib/services/securityManagement/lib/models/setting.js +++ b/lib/services/securityManagement/lib/models/setting.js @@ -10,19 +10,19 @@ 'use strict'; +const models = require('./index'); + /** * Represents a security setting in Azure Security Center. * + * @extends models['SettingResource'] */ -class Setting { +class Setting extends models['SettingResource'] { /** * Create a Setting. - * @member {string} [id] Resource Id - * @member {string} [name] Resource name - * @member {string} [type] Resource type - * @member {string} kind Polymorphic Discriminator */ constructor() { + super(); } /** @@ -37,11 +37,6 @@ class Setting { serializedName: 'Setting', type: { name: 'Composite', - polymorphicDiscriminator: { - serializedName: 'kind', - clientName: 'kind' - }, - uberParent: 'Setting', className: 'Setting', modelProperties: { id: { @@ -71,7 +66,6 @@ class Setting { kind: { required: true, serializedName: 'kind', - isPolymorphicDiscriminator: true, type: { name: 'String' } diff --git a/lib/services/securityManagement/lib/models/settingResource.js b/lib/services/securityManagement/lib/models/settingResource.js new file mode 100644 index 0000000000..16e9f1f7e9 --- /dev/null +++ b/lib/services/securityManagement/lib/models/settingResource.js @@ -0,0 +1,82 @@ +/* + * 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'); + +/** + * The kind of the security setting + * + * @extends models['Resource'] + */ +class SettingResource extends models['Resource'] { + /** + * Create a SettingResource. + * @property {string} kind the kind of the settings string + * (DataExportSetting). Possible values include: 'DataExportSetting', + * 'AlertSuppressionSetting' + */ + constructor() { + super(); + } + + /** + * Defines the metadata of SettingResource + * + * @returns {object} metadata of SettingResource + * + */ + mapper() { + return { + required: false, + serializedName: 'SettingResource', + type: { + name: 'Composite', + className: 'SettingResource', + 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' + } + }, + kind: { + required: true, + serializedName: 'kind', + type: { + name: 'String' + } + } + } + } + }; + } +} + +module.exports = SettingResource; diff --git a/lib/services/securityManagement/lib/models/settingsList.js b/lib/services/securityManagement/lib/models/settingsList.js index f0fd4ba0cb..608398f0e7 100644 --- a/lib/services/securityManagement/lib/models/settingsList.js +++ b/lib/services/securityManagement/lib/models/settingsList.js @@ -16,7 +16,7 @@ class SettingsList extends Array { /** * Create a SettingsList. - * @member {string} [nextLink] The URI to fetch the next page. + * @property {string} [nextLink] The URI to fetch the next page. */ constructor() { super(); @@ -46,11 +46,6 @@ class SettingsList extends Array { serializedName: 'SettingElementType', type: { name: 'Composite', - polymorphicDiscriminator: { - serializedName: 'kind', - clientName: 'kind' - }, - uberParent: 'Setting', className: 'Setting' } } diff --git a/lib/services/securityManagement/lib/models/topologyList.js b/lib/services/securityManagement/lib/models/topologyList.js index 81b73a238d..dee4418fa2 100644 --- a/lib/services/securityManagement/lib/models/topologyList.js +++ b/lib/services/securityManagement/lib/models/topologyList.js @@ -16,7 +16,7 @@ class TopologyList extends Array { /** * Create a TopologyList. - * @member {string} [nextLink] The URI to fetch the next page. + * @property {string} [nextLink] The URI to fetch the next page. */ constructor() { super(); diff --git a/lib/services/securityManagement/lib/models/topologyResource.js b/lib/services/securityManagement/lib/models/topologyResource.js index 7d33b6cd43..39b946375f 100644 --- a/lib/services/securityManagement/lib/models/topologyResource.js +++ b/lib/services/securityManagement/lib/models/topologyResource.js @@ -16,14 +16,14 @@ class TopologyResource { /** * Create a TopologyResource. - * @member {string} [id] Resource Id - * @member {string} [name] Resource name - * @member {string} [type] Resource type - * @member {string} [location] Location where the resource is stored - * @member {date} [calculatedDateTime] The UTC time on which the topology was - * calculated - * @member {array} [topologyResources] Azure resources which are part of this - * topology resource + * @property {string} [id] Resource Id + * @property {string} [name] Resource name + * @property {string} [type] Resource type + * @property {string} [location] Location where the resource is stored + * @property {date} [calculatedDateTime] The UTC time on which the topology + * was calculated + * @property {array} [topologyResources] Azure resources which are part of + * this topology resource */ constructor() { } diff --git a/lib/services/securityManagement/lib/models/topologySingleResource.js b/lib/services/securityManagement/lib/models/topologySingleResource.js index 85a139e42a..bdd3a962db 100644 --- a/lib/services/securityManagement/lib/models/topologySingleResource.js +++ b/lib/services/securityManagement/lib/models/topologySingleResource.js @@ -16,18 +16,18 @@ class TopologySingleResource { /** * Create a TopologySingleResource. - * @member {string} [resourceId] Azure resource id - * @member {string} [severity] The security severity of the resource - * @member {boolean} [recommendationsExist] Indicates if the resource has + * @property {string} [resourceId] Azure resource id + * @property {string} [severity] The security severity of the resource + * @property {boolean} [recommendationsExist] Indicates if the resource has * security recommendations - * @member {string} [networkZones] Indicates the resource connectivity level - * to the Internet (InternetFacing, Internal ,etc.) - * @member {number} [topologyScore] Score of the resource based on its + * @property {string} [networkZones] Indicates the resource connectivity + * level to the Internet (InternetFacing, Internal ,etc.) + * @property {number} [topologyScore] Score of the resource based on its * security severity - * @member {string} [location] The location of this resource - * @member {array} [parents] Azure resources connected to this resource which - * are in higher level in the topology view - * @member {array} [children] Azure resources connected to this resource + * @property {string} [location] The location of this resource + * @property {array} [parents] Azure resources connected to this resource + * which are in higher level in the topology view + * @property {array} [children] Azure resources connected to this resource * which are in lower level in the topology view */ constructor() { diff --git a/lib/services/securityManagement/lib/models/topologySingleResourceChild.js b/lib/services/securityManagement/lib/models/topologySingleResourceChild.js index bbb26e7052..37f1efa777 100644 --- a/lib/services/securityManagement/lib/models/topologySingleResourceChild.js +++ b/lib/services/securityManagement/lib/models/topologySingleResourceChild.js @@ -16,7 +16,7 @@ class TopologySingleResourceChild { /** * Create a TopologySingleResourceChild. - * @member {string} [resourceId] Azure resource id which serves as child + * @property {string} [resourceId] Azure resource id which serves as child * resource in topology view */ constructor() { diff --git a/lib/services/securityManagement/lib/models/topologySingleResourceParent.js b/lib/services/securityManagement/lib/models/topologySingleResourceParent.js index c08dff05d2..ab3af80bae 100644 --- a/lib/services/securityManagement/lib/models/topologySingleResourceParent.js +++ b/lib/services/securityManagement/lib/models/topologySingleResourceParent.js @@ -16,7 +16,7 @@ class TopologySingleResourceParent { /** * Create a TopologySingleResourceParent. - * @member {string} [resourceId] Azure resource id which serves as parent + * @property {string} [resourceId] Azure resource id which serves as parent * resource in topology view */ constructor() { diff --git a/lib/services/securityManagement/lib/models/workspaceSetting.js b/lib/services/securityManagement/lib/models/workspaceSetting.js index 08e515f9ed..1e038aeb87 100644 --- a/lib/services/securityManagement/lib/models/workspaceSetting.js +++ b/lib/services/securityManagement/lib/models/workspaceSetting.js @@ -20,11 +20,11 @@ const models = require('./index'); class WorkspaceSetting extends models['Resource'] { /** * Create a WorkspaceSetting. - * @member {string} workspaceId The full Azure ID of the workspace to save + * @property {string} workspaceId The full Azure ID of the workspace to save * the data in - * @member {string} scope All the VMs in this scope will send their security - * data to the mentioned workspace unless overridden by a setting with more - * specific scope + * @property {string} scope All the VMs in this scope will send their + * security data to the mentioned workspace unless overridden by a setting + * with more specific scope */ constructor() { super(); diff --git a/lib/services/securityManagement/lib/models/workspaceSettingList.js b/lib/services/securityManagement/lib/models/workspaceSettingList.js index 3db19fc072..1aac2b2c6a 100644 --- a/lib/services/securityManagement/lib/models/workspaceSettingList.js +++ b/lib/services/securityManagement/lib/models/workspaceSettingList.js @@ -16,7 +16,7 @@ class WorkspaceSettingList extends Array { /** * Create a WorkspaceSettingList. - * @member {string} [nextLink] The URI to fetch the next page. + * @property {string} [nextLink] The URI to fetch the next page. */ constructor() { super(); diff --git a/lib/services/securityManagement/lib/operations/alerts.js b/lib/services/securityManagement/lib/operations/alerts.js index 05a7bf7b5f..dc8e3d7f4c 100644 --- a/lib/services/securityManagement/lib/operations/alerts.js +++ b/lib/services/securityManagement/lib/operations/alerts.js @@ -179,7 +179,7 @@ function _list(options, callback) { } /** - * List all the alerts alerts that are associated with the resource group + * List all the alerts that are associated with the resource group * * @param {string} resourceGroupName The name of the resource group within the * user's subscription. The name is case insensitive. @@ -1459,7 +1459,7 @@ function _listNext(nextPageLink, options, callback) { } /** - * List all the alerts alerts that are associated with the resource group + * List all the alerts that are associated with the resource group * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. @@ -1954,7 +1954,7 @@ class Alerts { } /** - * List all the alerts alerts that are associated with the resource group + * List all the alerts that are associated with the resource group * * @param {string} resourceGroupName The name of the resource group within the * user's subscription. The name is case insensitive. @@ -1991,7 +1991,7 @@ class Alerts { } /** - * List all the alerts alerts that are associated with the resource group + * List all the alerts that are associated with the resource group * * @param {string} resourceGroupName The name of the resource group within the * user's subscription. The name is case insensitive. @@ -2676,7 +2676,7 @@ class Alerts { } /** - * List all the alerts alerts that are associated with the resource group + * List all the alerts that are associated with the resource group * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. @@ -2707,7 +2707,7 @@ class Alerts { } /** - * List all the alerts alerts that are associated with the resource group + * List all the alerts that are associated with the resource group * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. diff --git a/lib/services/securityManagement/lib/operations/index.d.ts b/lib/services/securityManagement/lib/operations/index.d.ts index 0adb512f20..cd187e80ef 100644 --- a/lib/services/securityManagement/lib/operations/index.d.ts +++ b/lib/services/securityManagement/lib/operations/index.d.ts @@ -903,7 +903,8 @@ export interface WorkspaceSettings { /** - * Settings about where we should store your security data and logs + * Settings about where we should store your security data and logs. If the + * result is empty, it means that no custom-workspace configuration was set * * @param {object} [options] Optional Parameters. * @@ -919,7 +920,8 @@ export interface WorkspaceSettings { listWithHttpOperationResponse(options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Settings about where we should store your security data and logs + * Settings about where we should store your security data and logs. If the + * result is empty, it means that no custom-workspace configuration was set * * @param {object} [options] Optional Parameters. * @@ -954,7 +956,8 @@ export interface WorkspaceSettings { /** - * Settings about where we should store your security data and logs + * Settings about where we should store your security data and logs. If the + * result is empty, it means that no custom-workspace configuration was set * * @param {string} workspaceSettingName Name of the security setting * @@ -972,7 +975,8 @@ export interface WorkspaceSettings { getWithHttpOperationResponse(workspaceSettingName: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Settings about where we should store your security data and logs + * Settings about where we should store your security data and logs. If the + * result is empty, it means that no custom-workspace configuration was set * * @param {string} workspaceSettingName Name of the security setting * @@ -1211,7 +1215,8 @@ export interface WorkspaceSettings { /** - * Settings about where we should store your security data and logs + * Settings about where we should store your security data and logs. If the + * result is empty, it means that no custom-workspace configuration was set * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. @@ -1230,7 +1235,8 @@ export interface WorkspaceSettings { listNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * Settings about where we should store your security data and logs + * Settings about where we should store your security data and logs. If the + * result is empty, it means that no custom-workspace configuration was set * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. @@ -1894,8 +1900,8 @@ export interface Settings { /** * Settings of different configurations in security center * - * @param {string} settingName Name of setting. Possible values include: - * 'MCAS', 'WDATP' + * @param {string} settingName Name of setting: (MCAS/WDATP). Possible values + * include: 'MCAS', 'WDATP' * * @param {object} [options] Optional Parameters. * @@ -1913,8 +1919,8 @@ export interface Settings { /** * Settings of different configurations in security center * - * @param {string} settingName Name of setting. Possible values include: - * 'MCAS', 'WDATP' + * @param {string} settingName Name of setting: (MCAS/WDATP). Possible values + * include: 'MCAS', 'WDATP' * * @param {object} [options] Optional Parameters. * @@ -1951,12 +1957,14 @@ export interface Settings { /** * updating settings about different configurations in security center * - * @param {string} settingName Name of setting. Possible values include: - * 'MCAS', 'WDATP' + * @param {string} settingName Name of setting: (MCAS/WDATP). Possible values + * include: 'MCAS', 'WDATP' * * @param {object} setting Setting object * - * @param {string} setting.kind Polymorphic Discriminator + * @param {string} setting.kind the kind of the settings string + * (DataExportSetting). Possible values include: 'DataExportSetting', + * 'AlertSuppressionSetting' * * @param {object} [options] Optional Parameters. * @@ -1974,12 +1982,14 @@ export interface Settings { /** * updating settings about different configurations in security center * - * @param {string} settingName Name of setting. Possible values include: - * 'MCAS', 'WDATP' + * @param {string} settingName Name of setting: (MCAS/WDATP). Possible values + * include: 'MCAS', 'WDATP' * * @param {object} setting Setting object * - * @param {string} setting.kind Polymorphic Discriminator + * @param {string} setting.kind the kind of the settings string + * (DataExportSetting). Possible values include: 'DataExportSetting', + * 'AlertSuppressionSetting' * * @param {object} [options] Optional Parameters. * @@ -3312,7 +3322,7 @@ export interface Alerts { /** - * List all the alerts alerts that are associated with the resource group + * List all the alerts that are associated with the resource group * * @param {string} resourceGroupName The name of the resource group within the * user's subscription. The name is case insensitive. @@ -3337,7 +3347,7 @@ export interface Alerts { listByResourceGroupWithHttpOperationResponse(resourceGroupName: string, options?: { filter? : string, select? : string, expand? : string, customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * List all the alerts alerts that are associated with the resource group + * List all the alerts that are associated with the resource group * * @param {string} resourceGroupName The name of the resource group within the * user's subscription. The name is case insensitive. @@ -3818,7 +3828,7 @@ export interface Alerts { /** - * List all the alerts alerts that are associated with the resource group + * List all the alerts that are associated with the resource group * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. @@ -3837,7 +3847,7 @@ export interface Alerts { listByResourceGroupNextWithHttpOperationResponse(nextPageLink: string, options?: { customHeaders? : { [headerName: string]: string; } }): Promise>; /** - * List all the alerts alerts that are associated with the resource group + * List all the alerts that are associated with the resource group * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. diff --git a/lib/services/securityManagement/lib/operations/settings.js b/lib/services/securityManagement/lib/operations/settings.js index 270ce5d708..c2d6aa6bc2 100644 --- a/lib/services/securityManagement/lib/operations/settings.js +++ b/lib/services/securityManagement/lib/operations/settings.js @@ -154,8 +154,8 @@ function _list(options, callback) { /** * Settings of different configurations in security center * - * @param {string} settingName Name of setting. Possible values include: - * 'MCAS', 'WDATP' + * @param {string} settingName Name of setting: (MCAS/WDATP). Possible values + * include: 'MCAS', 'WDATP' * * @param {object} [options] Optional Parameters. * @@ -298,12 +298,14 @@ function _get(settingName, options, callback) { /** * updating settings about different configurations in security center * - * @param {string} settingName Name of setting. Possible values include: - * 'MCAS', 'WDATP' + * @param {string} settingName Name of setting: (MCAS/WDATP). Possible values + * include: 'MCAS', 'WDATP' * * @param {object} setting Setting object * - * @param {string} setting.kind Polymorphic Discriminator + * @param {string} setting.kind the kind of the settings string + * (DataExportSetting). Possible values include: 'DataExportSetting', + * 'AlertSuppressionSetting' * * @param {object} [options] Optional Parameters. * @@ -348,9 +350,6 @@ function _update(settingName, setting, options, callback) { if (settingName === null || settingName === undefined || typeof settingName.valueOf() !== 'string') { throw new Error('settingName cannot be null or undefined and it must be of type string.'); } - if (setting === null || setting === undefined) { - throw new Error('setting cannot be null or undefined.'); - } if (this.client.acceptLanguage !== null && this.client.acceptLanguage !== undefined && typeof this.client.acceptLanguage.valueOf() !== 'string') { throw new Error('this.client.acceptLanguage must be of type string.'); } @@ -682,8 +681,8 @@ class Settings { /** * Settings of different configurations in security center * - * @param {string} settingName Name of setting. Possible values include: - * 'MCAS', 'WDATP' + * @param {string} settingName Name of setting: (MCAS/WDATP). Possible values + * include: 'MCAS', 'WDATP' * * @param {object} [options] Optional Parameters. * @@ -713,8 +712,8 @@ class Settings { /** * Settings of different configurations in security center * - * @param {string} settingName Name of setting. Possible values include: - * 'MCAS', 'WDATP' + * @param {string} settingName Name of setting: (MCAS/WDATP). Possible values + * include: 'MCAS', 'WDATP' * * @param {object} [options] Optional Parameters. * @@ -766,12 +765,14 @@ class Settings { /** * updating settings about different configurations in security center * - * @param {string} settingName Name of setting. Possible values include: - * 'MCAS', 'WDATP' + * @param {string} settingName Name of setting: (MCAS/WDATP). Possible values + * include: 'MCAS', 'WDATP' * * @param {object} setting Setting object * - * @param {string} setting.kind Polymorphic Discriminator + * @param {string} setting.kind the kind of the settings string + * (DataExportSetting). Possible values include: 'DataExportSetting', + * 'AlertSuppressionSetting' * * @param {object} [options] Optional Parameters. * @@ -801,12 +802,14 @@ class Settings { /** * updating settings about different configurations in security center * - * @param {string} settingName Name of setting. Possible values include: - * 'MCAS', 'WDATP' + * @param {string} settingName Name of setting: (MCAS/WDATP). Possible values + * include: 'MCAS', 'WDATP' * * @param {object} setting Setting object * - * @param {string} setting.kind Polymorphic Discriminator + * @param {string} setting.kind the kind of the settings string + * (DataExportSetting). Possible values include: 'DataExportSetting', + * 'AlertSuppressionSetting' * * @param {object} [options] Optional Parameters. * diff --git a/lib/services/securityManagement/lib/operations/workspaceSettings.js b/lib/services/securityManagement/lib/operations/workspaceSettings.js index d7a066a4de..e6b7a9f455 100644 --- a/lib/services/securityManagement/lib/operations/workspaceSettings.js +++ b/lib/services/securityManagement/lib/operations/workspaceSettings.js @@ -15,7 +15,8 @@ const msRestAzure = require('ms-rest-azure'); const WebResource = msRest.WebResource; /** - * Settings about where we should store your security data and logs + * Settings about where we should store your security data and logs. If the + * result is empty, it means that no custom-workspace configuration was set * * @param {object} [options] Optional Parameters. * @@ -152,7 +153,8 @@ function _list(options, callback) { } /** - * Settings about where we should store your security data and logs + * Settings about where we should store your security data and logs. If the + * result is empty, it means that no custom-workspace configuration was set * * @param {string} workspaceSettingName Name of the security setting * @@ -759,7 +761,8 @@ function _deleteMethod(workspaceSettingName, options, callback) { } /** - * Settings about where we should store your security data and logs + * Settings about where we should store your security data and logs. If the + * result is empty, it means that no custom-workspace configuration was set * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. @@ -902,7 +905,8 @@ class WorkspaceSettings { } /** - * Settings about where we should store your security data and logs + * Settings about where we should store your security data and logs. If the + * result is empty, it means that no custom-workspace configuration was set * * @param {object} [options] Optional Parameters. * @@ -930,7 +934,8 @@ class WorkspaceSettings { } /** - * Settings about where we should store your security data and logs + * Settings about where we should store your security data and logs. If the + * result is empty, it means that no custom-workspace configuration was set * * @param {object} [options] Optional Parameters. * @@ -980,7 +985,8 @@ class WorkspaceSettings { } /** - * Settings about where we should store your security data and logs + * Settings about where we should store your security data and logs. If the + * result is empty, it means that no custom-workspace configuration was set * * @param {string} workspaceSettingName Name of the security setting * @@ -1010,7 +1016,8 @@ class WorkspaceSettings { } /** - * Settings about where we should store your security data and logs + * Settings about where we should store your security data and logs. If the + * result is empty, it means that no custom-workspace configuration was set * * @param {string} workspaceSettingName Name of the security setting * @@ -1345,7 +1352,8 @@ class WorkspaceSettings { } /** - * Settings about where we should store your security data and logs + * Settings about where we should store your security data and logs. If the + * result is empty, it means that no custom-workspace configuration was set * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation. @@ -1376,7 +1384,8 @@ class WorkspaceSettings { } /** - * Settings about where we should store your security data and logs + * Settings about where we should store your security data and logs. If the + * result is empty, it means that no custom-workspace configuration was set * * @param {string} nextPageLink The NextLink from the previous successful call * to List operation.