diff --git a/lib/services/securityManagement/lib/models/index.d.ts b/lib/services/securityManagement/lib/models/index.d.ts index 62842dc33a..6547a0a68c 100644 --- a/lib/services/securityManagement/lib/models/index.d.ts +++ b/lib/services/securityManagement/lib/models/index.d.ts @@ -34,276 +34,263 @@ export interface Resource extends BaseResource { } /** - * Describes an Azure resource with kind + * Pricing tier will be applied for the scope based on the resource ID */ -export interface Kind { +export interface Pricing extends Resource { /** - * Kind of the resource + * Pricing tier type. Possible values include: 'Free', 'Standard' */ - kind?: string; + pricingTier: string; } /** - * Contact details for security issues + * 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; } -/** - * Pricing tier will be applied for the scope based on the resource ID - */ -export interface Pricing extends Resource { - /** - * Pricing tier type. Possible values include: 'Free', 'Standard' - */ - pricingTier: string; -} - /** * Configures where to store the OMS agent data for workspaces under a 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; } /** * Auto provisioning setting - */ +*/ export interface AutoProvisioningSetting extends Resource { /** * Describes what kind of security agent provisioning action to take. Possible values include: * 'On', 'Off' - */ + */ autoProvision: string; } /** * A segment of a compliance assessment. - */ +*/ 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; } /** * Compliance of a scope - */ +*/ 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[]; } /** * The Advanced Threat Protection resource. - */ +*/ export interface AdvancedThreatProtectionSetting extends Resource { /** * Indicates whether Advanced Threat Protection is enabled. - */ + */ isEnabled?: boolean; } /** * 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; } /** * Represents a security setting in Azure Security Center. - */ +*/ export interface Setting extends SettingResource { } /** * Represents a data export setting - */ +*/ export interface DataExportSetting extends Setting { /** * Is the data export setting is enabled - */ + */ enabled: boolean; } /** * The sensitivity label. - */ +*/ 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; } /** * The information type keyword. - */ +*/ 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; } /** * The information type. - */ +*/ 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[]; } /** * Information protection policy. - */ +*/ 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 }; } -/** - * Describes an Azure resource with location - */ -export interface Location { - /** - * Location where the resource is stored - */ - readonly location?: string; -} - /** * Security operation display - */ +*/ 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; } /** * Possible operation in the REST API of Microsoft.Security - */ +*/ export interface Operation { /** * Name of the operation - */ + */ readonly name?: string; /** * Where the operation is originated - */ + */ readonly origin?: string; display?: OperationDisplay; } @@ -345,13 +332,6 @@ export interface SecurityTask extends Resource { readonly subState?: string; } -/** - * The ASC location of the subscription is in the "name" field -*/ -export interface AscLocation extends Resource { - properties?: any; -} - /** * Changing set of properties depending on the entity type. */ @@ -509,80 +489,14 @@ export interface DiscoveredSecuritySolution { sku: 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; +/** + * Describes an Azure resource with location +*/ +export interface Location { /** * 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[]; } export interface JitNetworkAccessPortRule { @@ -730,6 +644,16 @@ export interface JitNetworkAccessPolicyInitiateRequest { virtualMachines: JitNetworkAccessPolicyInitiateVirtualMachine[]; } +/** + * 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. @@ -852,6 +776,82 @@ export interface AadConnectivityState1 { 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[]; +} + /** * Describes properties of a connected resource */ diff --git a/lib/services/securityManagement/lib/models/index.js b/lib/services/securityManagement/lib/models/index.js index 43d8afc097..6f183e718b 100644 --- a/lib/services/securityManagement/lib/models/index.js +++ b/lib/services/securityManagement/lib/models/index.js @@ -19,9 +19,9 @@ 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'); @@ -34,20 +34,15 @@ 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');