diff --git a/packages/@azure/arm-security/LICENSE.txt b/packages/@azure/arm-security/LICENSE.txt index 5431ba98b936..8f3d856145c5 100644 --- a/packages/@azure/arm-security/LICENSE.txt +++ b/packages/@azure/arm-security/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/packages/@azure/arm-security/README.md b/packages/@azure/arm-security/README.md index 9a44b7efe4b5..7e2f5ac8e57e 100644 --- a/packages/@azure/arm-security/README.md +++ b/packages/@azure/arm-security/README.md @@ -9,7 +9,7 @@ This package contains an isomorphic SDK for SecurityCenter. ### How to Install -``` +```bash npm install @azure/arm-security ``` @@ -19,13 +19,13 @@ npm install @azure/arm-security ##### Install @azure/ms-rest-nodeauth -``` +```bash npm install @azure/ms-rest-nodeauth ``` ##### Sample code -```ts +```typescript import * as msRest from "@azure/ms-rest-js"; import * as msRestAzure from "@azure/ms-rest-azure-js"; import * as msRestNodeAuth from "@azure/ms-rest-nodeauth"; @@ -47,7 +47,7 @@ msRestNodeAuth.interactiveLogin().then((creds) => { ##### Install @azure/ms-rest-browserauth -``` +```bash npm install @azure/ms-rest-browserauth ``` @@ -94,6 +94,3 @@ See https://github.com/Azure/ms-rest-browserauth to learn how to authenticate to ## Related projects - [Microsoft Azure SDK for Javascript](https://github.com/Azure/azure-sdk-for-js) - - -![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-js%2Fpackages%2F%40azure%2Farm-security%2FREADME.png) diff --git a/packages/@azure/arm-security/lib/models/advancedThreatProtectionMappers.ts b/packages/@azure/arm-security/lib/models/advancedThreatProtectionMappers.ts index a5728932eabf..100c9ae03c60 100644 --- a/packages/@azure/arm-security/lib/models/advancedThreatProtectionMappers.ts +++ b/packages/@azure/arm-security/lib/models/advancedThreatProtectionMappers.ts @@ -14,9 +14,14 @@ export { Resource, BaseResource, CloudError, - SecurityContact, Pricing, - WorkspaceSetting, + AscLocation, + Alert, + AlertEntity, + AlertConfidenceReason, + SettingResource, + SecurityTask, + SecurityTaskParameters, AutoProvisioningSetting, Compliance, ComplianceSegment, @@ -24,11 +29,9 @@ export { SensitivityLabel, InformationType, InformationProtectionKeyword, - SecurityTask, - SecurityTaskParameters, - AscLocation, - Alert, - AlertEntity, - AlertConfidenceReason + SecurityContact, + WorkspaceSetting, + Setting, + DataExportSetting } from "../models/mappers"; diff --git a/packages/@azure/arm-security/lib/models/alertsMappers.ts b/packages/@azure/arm-security/lib/models/alertsMappers.ts index db7d75be9704..b78ddd656434 100644 --- a/packages/@azure/arm-security/lib/models/alertsMappers.ts +++ b/packages/@azure/arm-security/lib/models/alertsMappers.ts @@ -17,19 +17,22 @@ export { AlertEntity, AlertConfidenceReason, CloudError, - SecurityContact, Pricing, - WorkspaceSetting, + AscLocation, + SettingResource, + SecurityTask, + SecurityTaskParameters, + AdvancedThreatProtectionSetting, AutoProvisioningSetting, Compliance, ComplianceSegment, - AdvancedThreatProtectionSetting, InformationProtectionPolicy, SensitivityLabel, InformationType, InformationProtectionKeyword, - SecurityTask, - SecurityTaskParameters, - AscLocation + SecurityContact, + WorkspaceSetting, + Setting, + DataExportSetting } from "../models/mappers"; diff --git a/packages/@azure/arm-security/lib/models/autoProvisioningSettingsMappers.ts b/packages/@azure/arm-security/lib/models/autoProvisioningSettingsMappers.ts index 8c012f3647a2..64b7cb4bbabd 100644 --- a/packages/@azure/arm-security/lib/models/autoProvisioningSettingsMappers.ts +++ b/packages/@azure/arm-security/lib/models/autoProvisioningSettingsMappers.ts @@ -15,21 +15,24 @@ export { Resource, BaseResource, CloudError, - SecurityContact, Pricing, - WorkspaceSetting, + AscLocation, + Alert, + AlertEntity, + AlertConfidenceReason, + SettingResource, + SecurityTask, + SecurityTaskParameters, + AdvancedThreatProtectionSetting, Compliance, ComplianceSegment, - AdvancedThreatProtectionSetting, InformationProtectionPolicy, SensitivityLabel, InformationType, InformationProtectionKeyword, - SecurityTask, - SecurityTaskParameters, - AscLocation, - Alert, - AlertEntity, - AlertConfidenceReason + SecurityContact, + WorkspaceSetting, + Setting, + DataExportSetting } from "../models/mappers"; diff --git a/packages/@azure/arm-security/lib/models/compliancesMappers.ts b/packages/@azure/arm-security/lib/models/compliancesMappers.ts index a38fc6ae8046..db0d1bdc0466 100644 --- a/packages/@azure/arm-security/lib/models/compliancesMappers.ts +++ b/packages/@azure/arm-security/lib/models/compliancesMappers.ts @@ -16,20 +16,23 @@ export { BaseResource, ComplianceSegment, CloudError, - SecurityContact, Pricing, - WorkspaceSetting, - AutoProvisioningSetting, + AscLocation, + Alert, + AlertEntity, + AlertConfidenceReason, + SettingResource, + SecurityTask, + SecurityTaskParameters, AdvancedThreatProtectionSetting, + AutoProvisioningSetting, InformationProtectionPolicy, SensitivityLabel, InformationType, InformationProtectionKeyword, - SecurityTask, - SecurityTaskParameters, - AscLocation, - Alert, - AlertEntity, - AlertConfidenceReason + SecurityContact, + WorkspaceSetting, + Setting, + DataExportSetting } from "../models/mappers"; diff --git a/packages/@azure/arm-security/lib/models/index.ts b/packages/@azure/arm-security/lib/models/index.ts index dc38e6a5aba6..db353127deae 100644 --- a/packages/@azure/arm-security/lib/models/index.ts +++ b/packages/@azure/arm-security/lib/models/index.ts @@ -42,48 +42,6 @@ export interface Resource extends BaseResource { readonly type?: string; } -/** - * @interface - * An interface representing Kind. - * Describes an Azure resource with kind - * - */ -export interface Kind { - /** - * @member {string} [kind] Kind of the resource - */ - kind?: string; -} - -/** - * @interface - * An interface representing SecurityContact. - * Contact details for security issues - * - * @extends Resource - */ -export interface SecurityContact extends Resource { - /** - * @member {string} email The email of this security contact - */ - email: string; - /** - * @member {string} [phone] The phone number of this security contact - */ - phone?: string; - /** - * @member {AlertNotifications} alertNotifications Whether to send security - * alerts notifications to the security contact. Possible values include: - * 'On', 'Off' - */ - alertNotifications: AlertNotifications; - /** - * @member {AlertsToAdmins} alertsToAdmins Whether to send security alerts - * notifications to subscription admins. Possible values include: 'On', 'Off' - */ - alertsToAdmins: AlertsToAdmins; -} - /** * @interface * An interface representing Pricing. @@ -93,653 +51,560 @@ export interface SecurityContact extends Resource { */ export interface Pricing extends Resource { /** - * @member {PricingTier} pricingTier Pricing tier type. Possible values + * @member {PricingTier} pricingTier The pricing tier value. Possible values * include: 'Free', 'Standard' */ pricingTier: PricingTier; + /** + * @member {string} [freeTrialRemainingTime] The duration left for the + * subscriptions free trial period - in ISO 8601 format (e.g. + * P3Y6M4DT12H30M5S). + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly freeTrialRemainingTime?: string; } /** * @interface - * An interface representing WorkspaceSetting. - * Configures where to store the OMS agent data for workspaces under a scope + * An interface representing PricingList. + * List of pricing configurations response * - * @extends Resource */ -export interface WorkspaceSetting extends Resource { +export interface PricingList { /** - * @member {string} workspaceId The full Azure ID of the workspace to save - * the data in + * @member {Pricing[]} value List of pricing configurations */ - workspaceId: string; - /** - * @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 - */ - scope: string; + value: Pricing[]; } /** * @interface - * An interface representing AutoProvisioningSetting. - * Auto provisioning setting + * An interface representing AscLocation. + * The ASC location of the subscription is in the "name" field * * @extends Resource */ -export interface AutoProvisioningSetting extends Resource { +export interface AscLocation extends Resource { /** - * @member {AutoProvision} autoProvision Describes what kind of security - * agent provisioning action to take. Possible values include: 'On', 'Off' + * @member {any} [properties] */ - autoProvision: AutoProvision; + properties?: any; } /** * @interface - * An interface representing ComplianceSegment. - * A segment of a compliance assessment. + * An interface representing AlertEntity. + * Changing set of properties depending on the entity type. * */ -export interface ComplianceSegment { +export interface AlertEntity { /** - * @member {string} [segmentType] The segment type, e.g. compliant, - * non-compliance, insufficient coverage, N/A, etc. + * @member {string} [type] Type of entity * **NOTE: This property will not be serialized. It can only be populated by * the server.** */ - readonly segmentType?: string; + readonly type?: string; /** - * @member {number} [percentage] The size (%) of the segment. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * @property Describes unknown properties. The value of an unknown property + * can be of "any" type. */ - readonly percentage?: number; + [property: string]: any; } /** * @interface - * An interface representing Compliance. - * Compliance of a scope + * An interface representing AlertConfidenceReason. + * Factors that increase our confidence that the alert is a true positive * - * @extends Resource */ -export interface Compliance extends Resource { - /** - * @member {Date} [assessmentTimestampUtcDate] The timestamp when the - * Compliance calculation was conducted. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** - */ - readonly assessmentTimestampUtcDate?: Date; +export interface AlertConfidenceReason { /** - * @member {number} [resourceCount] The resource count of the given - * subscription for which the Compliance calculation was conducted (needed - * for Management Group Compliance calculation). + * @member {string} [type] Type of confidence factor * **NOTE: This property will not be serialized. It can only be populated by * the server.** */ - readonly resourceCount?: number; + readonly type?: string; /** - * @member {ComplianceSegment[]} [assessmentResult] An array of segment, - * which is the actually the compliance assessment. + * @member {string} [reason] description of the confidence reason * **NOTE: This property will not be serialized. It can only be populated by * the server.** */ - readonly assessmentResult?: ComplianceSegment[]; + readonly reason?: string; } /** * @interface - * An interface representing AdvancedThreatProtectionSetting. - * The Advanced Threat Protection resource. + * An interface representing Alert. + * Security alert * * @extends Resource */ -export interface AdvancedThreatProtectionSetting extends Resource { - /** - * @member {boolean} [isEnabled] Indicates whether Advanced Threat Protection - * is enabled. - */ - isEnabled?: boolean; -} - -/** - * Contains the possible cases for Setting. - */ -export type SettingUnion = Setting | DataExportSetting; - -/** - * @interface - * An interface representing Setting. - * Represents a security setting in Azure Security Center. - * - */ -export interface Setting { - /** - * @member {string} kind Polymorphic Discriminator - */ - kind: "Setting"; +export interface Alert extends Resource { /** - * @member {string} [id] Resource Id + * @member {string} [state] State of the alert (Active, Dismissed etc.) * **NOTE: This property will not be serialized. It can only be populated by * the server.** */ - readonly id?: string; + readonly state?: string; /** - * @member {string} [name] Resource name + * @member {Date} [reportedTimeUtc] The time the incident was reported to + * Microsoft.Security in UTC * **NOTE: This property will not be serialized. It can only be populated by * the server.** */ - readonly name?: string; + readonly reportedTimeUtc?: Date; /** - * @member {string} [type] Resource type + * @member {string} [vendorName] Name of the vendor that discovered the + * incident * **NOTE: This property will not be serialized. It can only be populated by * the server.** */ - readonly type?: string; -} - -/** - * @interface - * An interface representing DataExportSetting. - * Represents a data export setting - * - */ -export interface DataExportSetting { - /** - * @member {string} kind Polymorphic Discriminator - */ - kind: "DataExportSetting"; + readonly vendorName?: string; /** - * @member {string} [id] Resource Id + * @member {string} [alertName] Name of the alert type * **NOTE: This property will not be serialized. It can only be populated by * the server.** */ - readonly id?: string; + readonly alertName?: string; /** - * @member {string} [name] Resource name + * @member {string} [alertDisplayName] Display name of the alert type * **NOTE: This property will not be serialized. It can only be populated by * the server.** */ - readonly name?: string; + readonly alertDisplayName?: string; /** - * @member {string} [type] Resource type + * @member {Date} [detectedTimeUtc] The time the incident was detected by the + * vendor * **NOTE: This property will not be serialized. It can only be populated by * the server.** */ - readonly type?: string; - /** - * @member {boolean} enabled Is the data export setting is enabled - */ - enabled: boolean; -} - -/** - * @interface - * An interface representing SettingKind1. - * The kind of the security setting - * - */ -export interface SettingKind1 { - /** - * @member {SettingKind} [kind] the kind of the settings string. Possible - * values include: 'DataExportSetting' - */ - kind?: SettingKind; -} - -/** - * @interface - * An interface representing SensitivityLabel. - * The sensitivity label. - * - */ -export interface SensitivityLabel { - /** - * @member {string} [displayName] The name of the sensitivity label. - */ - displayName?: string; - /** - * @member {number} [order] The order of the sensitivity label. - */ - order?: number; - /** - * @member {boolean} [enabled] Indicates whether the label is enabled or not. - */ - enabled?: boolean; -} - -/** - * @interface - * An interface representing InformationProtectionKeyword. - * The information type keyword. - * - */ -export interface InformationProtectionKeyword { - /** - * @member {string} [pattern] The keyword pattern. - */ - pattern?: string; - /** - * @member {boolean} [custom] Indicates whether the keyword is custom or not. - */ - custom?: boolean; - /** - * @member {boolean} [canBeNumeric] Indicates whether the keyword can be - * applied on numeric types or not. - */ - canBeNumeric?: boolean; - /** - * @member {boolean} [excluded] Indicates whether the keyword is excluded or - * not. - */ - excluded?: boolean; -} - -/** - * @interface - * An interface representing InformationType. - * The information type. - * - */ -export interface InformationType { - /** - * @member {string} [displayName] The name of the information type. - */ - displayName?: string; - /** - * @member {number} [order] The order of the information type. - */ - order?: number; - /** - * @member {string} [recommendedLabelId] The recommended label id to be - * associated with this information type. - */ - recommendedLabelId?: string; - /** - * @member {boolean} [enabled] Indicates whether the information type is - * enabled or not. - */ - enabled?: boolean; - /** - * @member {boolean} [custom] Indicates whether the information type is - * custom or not. - */ - custom?: boolean; - /** - * @member {InformationProtectionKeyword[]} [keywords] The information type - * keywords. - */ - keywords?: InformationProtectionKeyword[]; -} - -/** - * @interface - * An interface representing InformationProtectionPolicy. - * Information protection policy. - * - * @extends Resource - */ -export interface InformationProtectionPolicy extends Resource { + readonly detectedTimeUtc?: Date; /** - * @member {Date} [lastModifiedUtc] Describes the last UTC time the policy - * was modified. + * @member {string} [description] Description of the incident and what it + * means * **NOTE: This property will not be serialized. It can only be populated by * the server.** */ - readonly lastModifiedUtc?: Date; - /** - * @member {{ [propertyName: string]: SensitivityLabel }} [labels] Dictionary - * of sensitivity labels. - */ - labels?: { [propertyName: string]: SensitivityLabel }; + readonly description?: string; /** - * @member {{ [propertyName: string]: InformationType }} [informationTypes] - * The sensitivity information types. + * @member {string} [remediationSteps] Recommended steps to reradiate the + * incident + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** */ - informationTypes?: { [propertyName: string]: InformationType }; -} - -/** - * @interface - * An interface representing Location. - * Describes an Azure resource with location - * - */ -export interface Location { + readonly remediationSteps?: string; /** - * @member {string} [location] Location where the resource is stored + * @member {string} [actionTaken] The action that was taken as a response to + * the alert (Active, Blocked etc.) * **NOTE: This property will not be serialized. It can only be populated by * the server.** */ - readonly location?: string; -} - -/** - * @interface - * An interface representing OperationDisplay. - * Security operation display - * - */ -export interface OperationDisplay { + readonly actionTaken?: string; /** - * @member {string} [provider] The resource provider for the operation. + * @member {ReportedSeverity} [reportedSeverity] Estimated severity of this + * alert. Possible values include: 'Informational', 'Low', 'Medium', 'High' * **NOTE: This property will not be serialized. It can only be populated by * the server.** */ - readonly provider?: string; + readonly reportedSeverity?: ReportedSeverity; /** - * @member {string} [resource] The display name of the resource the operation - * applies to. + * @member {string} [compromisedEntity] The entity that the incident happened + * on * **NOTE: This property will not be serialized. It can only be populated by * the server.** */ - readonly resource?: string; + readonly compromisedEntity?: string; /** - * @member {string} [operation] The display name of the security operation. + * @member {string} [associatedResource] Azure resource ID of the associated + * resource * **NOTE: This property will not be serialized. It can only be populated by * the server.** */ - readonly operation?: string; + readonly associatedResource?: string; /** - * @member {string} [description] The description of the operation. + * @member {{ [propertyName: string]: any }} [extendedProperties] + */ + extendedProperties?: { [propertyName: string]: any }; + /** + * @member {string} [systemSource] The type of the alerted resource (Azure, + * Non-Azure) * **NOTE: This property will not be serialized. It can only be populated by * the server.** */ - readonly description?: string; -} - -/** - * @interface - * An interface representing Operation. - * Possible operation in the REST API of Microsoft.Security - * - */ -export interface Operation { + readonly systemSource?: string; /** - * @member {string} [name] Name of the operation + * @member {boolean} [canBeInvestigated] Whether this alert can be + * investigated with Azure Security Center * **NOTE: This property will not be serialized. It can only be populated by * the server.** */ - readonly name?: string; + readonly canBeInvestigated?: boolean; /** - * @member {string} [origin] Where the operation is originated + * @member {boolean} [isIncident] Whether this alert is for incident type or + * not (otherwise - single alert) * **NOTE: This property will not be serialized. It can only be populated by * the server.** */ - readonly origin?: string; + readonly isIncident?: boolean; /** - * @member {OperationDisplay} [display] + * @member {AlertEntity[]} [entities] objects that are related to this alerts */ - display?: OperationDisplay; -} - -/** - * @interface - * An interface representing SecurityTaskParameters. - * Changing set of properties, depending on the task type that is derived from - * the name field - * - */ -export interface SecurityTaskParameters { + entities?: AlertEntity[]; /** - * @member {string} [name] Name of the task type + * @member {number} [confidenceScore] level of confidence we have on the + * alert * **NOTE: This property will not be serialized. It can only be populated by * the server.** */ - readonly name?: string; + readonly confidenceScore?: number; /** - * @property Describes unknown properties. The value of an unknown property - * can be of "any" type. + * @member {AlertConfidenceReason[]} [confidenceReasons] reasons the alert + * got the confidenceScore value */ - [property: string]: any; -} - -/** - * @interface - * An interface representing SecurityTask. - * Security task that we recommend to do in order to strengthen security - * - * @extends Resource - */ -export interface SecurityTask extends Resource { + confidenceReasons?: AlertConfidenceReason[]; /** - * @member {string} [state] State of the task (Active, Resolved etc.) + * @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 * **NOTE: This property will not be serialized. It can only be populated by * the server.** */ - readonly state?: string; + readonly subscriptionId?: string; /** - * @member {Date} [creationTimeUtc] The time this task was discovered in UTC + * @member {string} [instanceId] Instance ID of the alert. * **NOTE: This property will not be serialized. It can only be populated by * the server.** */ - readonly creationTimeUtc?: Date; - /** - * @member {SecurityTaskParameters} [securityTaskParameters] - */ - securityTaskParameters?: SecurityTaskParameters; + readonly instanceId?: string; /** - * @member {Date} [lastStateChangeTimeUtc] The time this task's details were - * last changed in UTC + * @member {string} [workspaceArmId] Azure resource ID of the workspace that + * the alert was reported to. * **NOTE: This property will not be serialized. It can only be populated by * the server.** */ - readonly lastStateChangeTimeUtc?: Date; + readonly workspaceArmId?: string; /** - * @member {string} [subState] Additional data on the state of the task + * @member {string} [correlationKey] Alerts with the same CorrelationKey will + * be grouped together in Ibiza. * **NOTE: This property will not be serialized. It can only be populated by * the server.** */ - readonly subState?: string; + readonly correlationKey?: string; } /** * @interface - * An interface representing AscLocation. - * The ASC location of the subscription is in the "name" field + * An interface representing SettingResource. + * The kind of the security setting * * @extends Resource */ -export interface AscLocation extends Resource { +export interface SettingResource extends Resource { /** - * @member {any} [properties] + * @member {SettingKind} kind the kind of the settings string + * (DataExportSetting). Possible values include: 'DataExportSetting', + * 'AlertSuppressionSetting' */ - properties?: any; + kind: SettingKind; } /** * @interface - * An interface representing AlertEntity. - * Changing set of properties depending on the entity type. + * An interface representing Setting. + * Represents a security setting in Azure Security Center. * + * @extends SettingResource */ -export interface AlertEntity { +export interface Setting extends SettingResource { +} + +/** + * @interface + * An interface representing DataExportSetting. + * Represents a data export setting + * + * @extends Setting + */ +export interface DataExportSetting extends Setting { /** - * @member {string} [type] Type of entity + * @member {boolean} enabled Is the data export setting is enabled + */ + enabled: boolean; +} + +/** + * @interface + * An interface representing ConnectedResource. + * Describes properties of a connected resource + * + */ +export interface ConnectedResource { + /** + * @member {string} [connectedResourceId] The Azure resource id of the + * connected resource * **NOTE: This property will not be serialized. It can only be populated by * the server.** */ - readonly type?: string; + readonly connectedResourceId?: string; /** - * @property Describes unknown properties. The value of an unknown property - * can be of "any" type. + * @member {string} [tcpPorts] The allowed tcp ports + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** */ - [property: string]: any; + readonly tcpPorts?: string; + /** + * @member {string} [udpPorts] The allowed udp ports + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly udpPorts?: string; } /** * @interface - * An interface representing AlertConfidenceReason. - * Factors that increase our confidence that the alert is a true positive + * An interface representing ConnectableResource. + * Describes the allowed inbound and outbound traffic of an Azure resource * */ -export interface AlertConfidenceReason { +export interface ConnectableResource { /** - * @member {string} [type] Type of confidence factor + * @member {string} [id] The Azure resource id * **NOTE: This property will not be serialized. It can only be populated by * the server.** */ - readonly type?: string; + readonly id?: string; /** - * @member {string} [reason] description of the confidence reason + * @member {ConnectedResource[]} [inboundConnectedResources] The list of + * Azure resources that the resource has inbound allowed connection from * **NOTE: This property will not be serialized. It can only be populated by * the server.** */ - readonly reason?: string; + readonly inboundConnectedResources?: ConnectedResource[]; + /** + * @member {ConnectedResource[]} [outboundConnectedResources] The list of + * Azure resources that the resource has outbound allowed connection to + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly outboundConnectedResources?: ConnectedResource[]; } /** * @interface - * An interface representing Alert. - * Security alert + * An interface representing AllowedConnectionsResource. + * The resource whose properties describes the allowed traffic between Azure + * resources * - * @extends Resource */ -export interface Alert extends Resource { +export interface AllowedConnectionsResource { /** - * @member {string} [state] State of the alert (Active, Dismissed etc.) + * @member {string} [id] Resource Id * **NOTE: This property will not be serialized. It can only be populated by * the server.** */ - readonly state?: string; + readonly id?: string; /** - * @member {Date} [reportedTimeUtc] The time the incident was reported to - * Microsoft.Security in UTC + * @member {string} [name] Resource name * **NOTE: This property will not be serialized. It can only be populated by * the server.** */ - readonly reportedTimeUtc?: Date; + readonly name?: string; /** - * @member {string} [vendorName] Name of the vendor that discovered the - * incident + * @member {string} [type] Resource type * **NOTE: This property will not be serialized. It can only be populated by * the server.** */ - readonly vendorName?: string; + readonly type?: string; /** - * @member {string} [alertName] Name of the alert type + * @member {string} [location] Location where the resource is stored * **NOTE: This property will not be serialized. It can only be populated by * the server.** */ - readonly alertName?: string; + readonly location?: string; /** - * @member {string} [alertDisplayName] Display name of the alert type + * @member {Date} [calculatedDateTime] The UTC time on which the allowed + * connections resource was calculated * **NOTE: This property will not be serialized. It can only be populated by * the server.** */ - readonly alertDisplayName?: string; + readonly calculatedDateTime?: Date; /** - * @member {Date} [detectedTimeUtc] The time the incident was detected by the - * vendor + * @member {ConnectableResource[]} [connectableResources] List of connectable + * resources * **NOTE: This property will not be serialized. It can only be populated by * the server.** */ - readonly detectedTimeUtc?: Date; + readonly connectableResources?: ConnectableResource[]; +} + +/** + * @interface + * An interface representing Location. + * Describes an Azure resource with location + * + */ +export interface Location { /** - * @member {string} [description] Description of the incident and what it - * means + * @member {string} [location] Location where the resource is stored * **NOTE: This property will not be serialized. It can only be populated by * the server.** */ - readonly description?: string; + readonly location?: string; +} + +/** + * @interface + * An interface representing DiscoveredSecuritySolution. + */ +export interface DiscoveredSecuritySolution { /** - * @member {string} [remediationSteps] Recommended steps to reradiate the - * incident + * @member {string} [id] Resource Id * **NOTE: This property will not be serialized. It can only be populated by * the server.** */ - readonly remediationSteps?: string; + readonly id?: string; /** - * @member {string} [actionTaken] The action that was taken as a response to - * the alert (Active, Blocked etc.) + * @member {string} [name] Resource name * **NOTE: This property will not be serialized. It can only be populated by * the server.** */ - readonly actionTaken?: string; + readonly name?: string; /** - * @member {string} [reportedSeverity] Estimated severity of this alert + * @member {string} [type] Resource type * **NOTE: This property will not be serialized. It can only be populated by * the server.** */ - readonly reportedSeverity?: string; + readonly type?: string; /** - * @member {string} [compromisedEntity] The entity that the incident happened - * on + * @member {string} [location] Location where the resource is stored * **NOTE: This property will not be serialized. It can only be populated by * the server.** */ - readonly compromisedEntity?: string; + readonly location?: string; /** - * @member {string} [associatedResource] Azure resource ID of the associated - * resource - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * @member {SecurityFamily} securityFamily The security family of the + * discovered solution. Possible values include: 'Waf', 'Ngfw', 'SaasWaf', + * 'Va' */ - readonly associatedResource?: string; + securityFamily: SecurityFamily; /** - * @member {{ [propertyName: string]: any }} [extendedProperties] + * @member {string} offer The security solutions' image offer */ - extendedProperties?: { [propertyName: string]: any }; + offer: string; /** - * @member {string} [systemSource] The type of the alerted resource (Azure, - * Non-Azure) + * @member {string} publisher The security solutions' image publisher + */ + publisher: string; + /** + * @member {string} sku The security solutions' image sku + */ + sku: string; +} + +/** + * Contains the possible cases for ExternalSecuritySolution. + */ +export type ExternalSecuritySolutionUnion = ExternalSecuritySolution | CefExternalSecuritySolution | AtaExternalSecuritySolution | AadExternalSecuritySolution; + +/** + * @interface + * An interface representing ExternalSecuritySolution. + * 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 { + /** + * @member {string} kind Polymorphic Discriminator + */ + kind: "ExternalSecuritySolution"; + /** + * @member {string} [id] Resource Id * **NOTE: This property will not be serialized. It can only be populated by * the server.** */ - readonly systemSource?: string; + readonly id?: string; /** - * @member {boolean} [canBeInvestigated] Whether this alert can be - * investigated with Azure Security Center + * @member {string} [name] Resource name * **NOTE: This property will not be serialized. It can only be populated by * the server.** */ - readonly canBeInvestigated?: boolean; + readonly name?: string; /** - * @member {AlertEntity[]} [entities] objects that are related to this alerts + * @member {string} [type] Resource type + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** */ - entities?: AlertEntity[]; + readonly type?: string; /** - * @member {number} [confidenceScore] level of confidence we have on the - * alert + * @member {string} [location] Location where the resource is stored * **NOTE: This property will not be serialized. It can only be populated by * the server.** */ - readonly confidenceScore?: number; + readonly location?: string; +} + +/** + * @interface + * An interface representing ExternalSecuritySolutionProperties. + * The solution properties (correspond to the solution kind) + * + */ +export interface ExternalSecuritySolutionProperties { /** - * @member {AlertConfidenceReason[]} [confidenceReasons] reasons the alert - * got the confidenceScore value + * @member {string} [deviceVendor] */ - confidenceReasons?: AlertConfidenceReason[]; + deviceVendor?: string; + /** + * @member {string} [deviceType] + */ + deviceType?: string; + /** + * @member {ConnectedWorkspace} [workspace] + */ + workspace?: ConnectedWorkspace; + /** + * @property Describes unknown properties. The value of an unknown property + * can be of "any" type. + */ + [property: string]: any; +} + +/** + * @interface + * An interface representing CefSolutionProperties. + * @summary The external security solution properties for CEF solutions + * + * @extends ExternalSecuritySolutionProperties + */ +export interface CefSolutionProperties extends ExternalSecuritySolutionProperties { /** - * @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 - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * @member {string} [hostname] */ - readonly subscriptionId?: string; + hostname?: string; /** - * @member {string} [instanceId] Instance ID of the alert. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * @member {string} [agent] */ - readonly instanceId?: string; + agent?: string; /** - * @member {string} [workspaceArmId] Azure resource ID of the workspace that - * the alert was reported to. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * @member {string} [lastEventReceived] */ - readonly workspaceArmId?: string; + lastEventReceived?: string; } /** * @interface - * An interface representing DiscoveredSecuritySolution. + * An interface representing CefExternalSecuritySolution. + * Represents a security solution which sends CEF logs to an OMS workspace + * */ -export interface DiscoveredSecuritySolution { +export interface CefExternalSecuritySolution { + /** + * @member {string} kind Polymorphic Discriminator + */ + kind: "CEF"; /** * @member {string} [id] Resource Id * **NOTE: This property will not be serialized. It can only be populated by @@ -765,118 +630,118 @@ export interface DiscoveredSecuritySolution { */ readonly location?: string; /** - * @member {SecurityFamily} securityFamily The security family of the - * discovered solution. Possible values include: 'Waf', 'Ngfw', 'SaasWaf', - * 'Va' - */ - securityFamily: SecurityFamily; - /** - * @member {string} offer The security solutions' image offer - */ - offer: string; - /** - * @member {string} publisher The security solutions' image publisher - */ - publisher: string; - /** - * @member {string} sku The security solutions' image sku + * @member {CefSolutionProperties} [properties] */ - sku: string; + properties?: CefSolutionProperties; } /** * @interface - * An interface representing TopologySingleResourceParent. + * An interface representing AtaSolutionProperties. + * @summary The external security solution properties for ATA solutions + * + * @extends ExternalSecuritySolutionProperties */ -export interface TopologySingleResourceParent { +export interface AtaSolutionProperties extends ExternalSecuritySolutionProperties { /** - * @member {string} [resourceId] Azure resource id which serves as parent - * resource in topology view - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * @member {string} [lastEventReceived] */ - readonly resourceId?: string; + lastEventReceived?: string; } /** * @interface - * An interface representing TopologySingleResourceChild. + * An interface representing AtaExternalSecuritySolution. + * Represents an ATA security solution which sends logs to an OMS workspace + * */ -export interface TopologySingleResourceChild { +export interface AtaExternalSecuritySolution { /** - * @member {string} [resourceId] Azure resource id which serves as child - * resource in topology view - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * @member {string} kind Polymorphic Discriminator */ - readonly resourceId?: string; -} - -/** - * @interface - * An interface representing TopologySingleResource. - */ -export interface TopologySingleResource { + kind: "ATA"; /** - * @member {string} [resourceId] Azure resource id + * @member {string} [id] Resource Id * **NOTE: This property will not be serialized. It can only be populated by * the server.** */ - readonly resourceId?: string; + readonly id?: string; /** - * @member {string} [severity] The security severity of the resource + * @member {string} [name] Resource name * **NOTE: This property will not be serialized. It can only be populated by * the server.** */ - readonly severity?: string; + readonly name?: string; /** - * @member {boolean} [recommendationsExist] Indicates if the resource has - * security recommendations + * @member {string} [type] Resource type * **NOTE: This property will not be serialized. It can only be populated by * the server.** */ - readonly recommendationsExist?: boolean; + readonly type?: string; /** - * @member {string} [networkZones] Indicates the resource connectivity level - * to the Internet (InternetFacing, Internal ,etc.) + * @member {string} [location] Location where the resource is stored * **NOTE: This property will not be serialized. It can only be populated by * the server.** */ - readonly networkZones?: string; + readonly location?: string; /** - * @member {number} [topologyScore] Score of the resource based on its - * security severity - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * @member {AtaSolutionProperties} [properties] */ - readonly topologyScore?: number; + properties?: AtaSolutionProperties; +} + +/** + * @interface + * An interface representing ConnectedWorkspace. + * @summary Represents an OMS workspace to which the solution is connected + * + */ +export interface ConnectedWorkspace { /** - * @member {string} [location] The location of this resource - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * @member {string} [id] Azure resource ID of the connected OMS workspace */ - readonly location?: string; + id?: string; +} + +/** + * @interface + * An interface representing AadSolutionProperties. + * @summary The external security solution properties for AAD solutions + * + */ +export interface AadSolutionProperties { /** - * @member {TopologySingleResourceParent[]} [parents] Azure resources - * connected to this resource which are in higher level in the topology view - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * @member {string} [deviceVendor] */ - readonly parents?: TopologySingleResourceParent[]; + deviceVendor?: string; /** - * @member {TopologySingleResourceChild[]} [children] Azure resources - * connected to this resource which are in lower level in the topology view - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * @member {string} [deviceType] */ - readonly children?: TopologySingleResourceChild[]; + deviceType?: string; + /** + * @member {ConnectedWorkspace} [workspace] + */ + workspace?: ConnectedWorkspace; + /** + * @member {AadConnectivityState} [connectivityState] The connectivity state + * of the external AAD solution . Possible values include: 'Discovered', + * 'NotLicensed', 'Connected' + */ + connectivityState?: AadConnectivityState; } /** * @interface - * An interface representing TopologyResource. + * An interface representing AadExternalSecuritySolution. + * Represents an AAD identity protection solution which sends logs to an OMS + * workspace. + * */ -export interface TopologyResource { +export interface AadExternalSecuritySolution { + /** + * @member {string} kind Polymorphic Discriminator + */ + kind: "AAD"; /** * @member {string} [id] Resource Id * **NOTE: This property will not be serialized. It can only be populated by @@ -902,19 +767,38 @@ export interface TopologyResource { */ readonly location?: string; /** - * @member {Date} [calculatedDateTime] The UTC time on which the topology was - * calculated - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * @member {AadSolutionProperties} [properties] */ - readonly calculatedDateTime?: Date; + properties?: AadSolutionProperties; +} + +/** + * @interface + * An interface representing ExternalSecuritySolutionKind1. + * Describes an Azure resource with kind + * + */ +export interface ExternalSecuritySolutionKind1 { /** - * @member {TopologySingleResource[]} [topologyResources] Azure resources - * which are part of this topology resource - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * @member {ExternalSecuritySolutionKind} [kind] The kind of the external + * solution. Possible values include: 'CEF', 'ATA', 'AAD' */ - readonly topologyResources?: TopologySingleResource[]; + kind?: ExternalSecuritySolutionKind; +} + +/** + * @interface + * An interface representing AadConnectivityState1. + * Describes an Azure resource with kind + * + */ +export interface AadConnectivityState1 { + /** + * @member {AadConnectivityState} [connectivityState] The connectivity state + * of the external AAD solution . Possible values include: 'Discovered', + * 'NotLicensed', 'Connected' + */ + connectivityState?: AadConnectivityState; } /** @@ -1140,245 +1024,230 @@ export interface JitNetworkAccessPolicyInitiateRequest { } /** - * Contains the possible cases for ExternalSecuritySolution. + * @interface + * An interface representing Kind. + * Describes an Azure resource with kind + * */ -export type ExternalSecuritySolutionUnion = ExternalSecuritySolution | CefExternalSecuritySolution | AtaExternalSecuritySolution | AadExternalSecuritySolution; +export interface Kind { + /** + * @member {string} [kind] Kind of the resource + */ + kind?: string; +} /** * @interface - * An interface representing ExternalSecuritySolution. - * 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. + * An interface representing OperationDisplay. + * Security operation display * */ -export interface ExternalSecuritySolution { - /** - * @member {string} kind Polymorphic Discriminator - */ - kind: "ExternalSecuritySolution"; +export interface OperationDisplay { /** - * @member {string} [id] Resource Id + * @member {string} [provider] The resource provider for the operation. * **NOTE: This property will not be serialized. It can only be populated by * the server.** */ - readonly id?: string; + readonly provider?: string; /** - * @member {string} [name] Resource name + * @member {string} [resource] The display name of the resource the operation + * applies to. * **NOTE: This property will not be serialized. It can only be populated by * the server.** */ - readonly name?: string; + readonly resource?: string; /** - * @member {string} [type] Resource type + * @member {string} [operation] The display name of the security operation. * **NOTE: This property will not be serialized. It can only be populated by * the server.** */ - readonly type?: string; + readonly operation?: string; /** - * @member {string} [location] Location where the resource is stored + * @member {string} [description] The description of the operation. * **NOTE: This property will not be serialized. It can only be populated by * the server.** */ - readonly location?: string; + readonly description?: string; } /** * @interface - * An interface representing ExternalSecuritySolutionProperties. - * The solution properties (correspond to the solution kind) + * An interface representing Operation. + * Possible operation in the REST API of Microsoft.Security * */ -export interface ExternalSecuritySolutionProperties { - /** - * @member {string} [deviceVendor] - */ - deviceVendor?: string; +export interface Operation { /** - * @member {string} [deviceType] + * @member {string} [name] Name of the operation + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** */ - deviceType?: string; + readonly name?: string; /** - * @member {ConnectedWorkspace} [workspace] + * @member {string} [origin] Where the operation is originated + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** */ - workspace?: ConnectedWorkspace; + readonly origin?: string; /** - * @property Describes unknown properties. The value of an unknown property - * can be of "any" type. + * @member {OperationDisplay} [display] */ - [property: string]: any; + display?: OperationDisplay; } /** * @interface - * An interface representing CefSolutionProperties. - * @summary The external security solution properties for CEF solutions + * An interface representing SecurityTaskParameters. + * Changing set of properties, depending on the task type that is derived from + * the name field * - * @extends ExternalSecuritySolutionProperties */ -export interface CefSolutionProperties extends ExternalSecuritySolutionProperties { - /** - * @member {string} [hostname] - */ - hostname?: string; +export interface SecurityTaskParameters { /** - * @member {string} [agent] + * @member {string} [name] Name of the task type + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** */ - agent?: string; + readonly name?: string; /** - * @member {string} [lastEventReceived] + * @property Describes unknown properties. The value of an unknown property + * can be of "any" type. */ - lastEventReceived?: string; + [property: string]: any; } /** * @interface - * An interface representing CefExternalSecuritySolution. - * Represents a security solution which sends CEF logs to an OMS workspace + * An interface representing SecurityTask. + * Security task that we recommend to do in order to strengthen security * + * @extends Resource */ -export interface CefExternalSecuritySolution { - /** - * @member {string} kind Polymorphic Discriminator - */ - kind: "CEF"; +export interface SecurityTask extends Resource { /** - * @member {string} [id] Resource Id + * @member {string} [state] State of the task (Active, Resolved etc.) * **NOTE: This property will not be serialized. It can only be populated by * the server.** */ - readonly id?: string; + readonly state?: string; /** - * @member {string} [name] Resource name + * @member {Date} [creationTimeUtc] The time this task was discovered in UTC * **NOTE: This property will not be serialized. It can only be populated by * the server.** */ - readonly name?: string; + readonly creationTimeUtc?: Date; /** - * @member {string} [type] Resource type - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * @member {SecurityTaskParameters} [securityTaskParameters] */ - readonly type?: string; + securityTaskParameters?: SecurityTaskParameters; /** - * @member {string} [location] Location where the resource is stored + * @member {Date} [lastStateChangeTimeUtc] The time this task's details were + * last changed in UTC * **NOTE: This property will not be serialized. It can only be populated by * the server.** */ - readonly location?: string; + readonly lastStateChangeTimeUtc?: Date; /** - * @member {CefSolutionProperties} [properties] + * @member {string} [subState] Additional data on the state of the task + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** */ - properties?: CefSolutionProperties; + readonly subState?: string; } /** * @interface - * An interface representing AtaSolutionProperties. - * @summary The external security solution properties for ATA solutions - * - * @extends ExternalSecuritySolutionProperties + * An interface representing TopologySingleResourceParent. */ -export interface AtaSolutionProperties extends ExternalSecuritySolutionProperties { +export interface TopologySingleResourceParent { /** - * @member {string} [lastEventReceived] + * @member {string} [resourceId] Azure resource id which serves as parent + * resource in topology view + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** */ - lastEventReceived?: string; + readonly resourceId?: string; } /** * @interface - * An interface representing AtaExternalSecuritySolution. - * Represents an ATA security solution which sends logs to an OMS workspace - * + * An interface representing TopologySingleResourceChild. */ -export interface AtaExternalSecuritySolution { - /** - * @member {string} kind Polymorphic Discriminator - */ - kind: "ATA"; +export interface TopologySingleResourceChild { /** - * @member {string} [id] Resource Id + * @member {string} [resourceId] Azure resource id which serves as child + * resource in topology view * **NOTE: This property will not be serialized. It can only be populated by * the server.** */ - readonly id?: string; + readonly resourceId?: string; +} + +/** + * @interface + * An interface representing TopologySingleResource. + */ +export interface TopologySingleResource { /** - * @member {string} [name] Resource name + * @member {string} [resourceId] Azure resource id * **NOTE: This property will not be serialized. It can only be populated by * the server.** */ - readonly name?: string; + readonly resourceId?: string; /** - * @member {string} [type] Resource type + * @member {string} [severity] The security severity of the resource * **NOTE: This property will not be serialized. It can only be populated by * the server.** */ - readonly type?: string; + readonly severity?: string; /** - * @member {string} [location] Location where the resource is stored + * @member {boolean} [recommendationsExist] Indicates if the resource has + * security recommendations * **NOTE: This property will not be serialized. It can only be populated by * the server.** */ - readonly location?: string; - /** - * @member {AtaSolutionProperties} [properties] - */ - properties?: AtaSolutionProperties; -} - -/** - * @interface - * An interface representing ConnectedWorkspace. - * @summary Represents an OMS workspace to which the solution is connected - * - */ -export interface ConnectedWorkspace { + readonly recommendationsExist?: boolean; /** - * @member {string} [id] Azure resource ID of the connected OMS workspace + * @member {string} [networkZones] Indicates the resource connectivity level + * to the Internet (InternetFacing, Internal ,etc.) + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** */ - id?: string; -} - -/** - * @interface - * An interface representing AadSolutionProperties. - * @summary The external security solution properties for AAD solutions - * - */ -export interface AadSolutionProperties { + readonly networkZones?: string; /** - * @member {string} [deviceVendor] + * @member {number} [topologyScore] Score of the resource based on its + * security severity + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** */ - deviceVendor?: string; + readonly topologyScore?: number; /** - * @member {string} [deviceType] + * @member {string} [location] The location of this resource + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** */ - deviceType?: string; + readonly location?: string; /** - * @member {ConnectedWorkspace} [workspace] + * @member {TopologySingleResourceParent[]} [parents] Azure resources + * connected to this resource which are in higher level in the topology view + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** */ - workspace?: ConnectedWorkspace; + readonly parents?: TopologySingleResourceParent[]; /** - * @member {AadConnectivityState} [connectivityState] The connectivity state - * of the external AAD solution . Possible values include: 'Discovered', - * 'NotLicensed', 'Connected' + * @member {TopologySingleResourceChild[]} [children] Azure resources + * connected to this resource which are in lower level in the topology view + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** */ - connectivityState?: AadConnectivityState; + readonly children?: TopologySingleResourceChild[]; } /** * @interface - * An interface representing AadExternalSecuritySolution. - * Represents an AAD identity protection solution which sends logs to an OMS - * workspace. - * + * An interface representing TopologyResource. */ -export interface AadExternalSecuritySolution { - /** - * @member {string} kind Polymorphic Discriminator - */ - kind: "AAD"; +export interface TopologyResource { /** * @member {string} [id] Resource Id * **NOTE: This property will not be serialized. It can only be populated by @@ -1404,185 +1273,265 @@ export interface AadExternalSecuritySolution { */ readonly location?: string; /** - * @member {AadSolutionProperties} [properties] + * @member {Date} [calculatedDateTime] The UTC time on which the topology was + * calculated + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** */ - properties?: AadSolutionProperties; + readonly calculatedDateTime?: Date; + /** + * @member {TopologySingleResource[]} [topologyResources] Azure resources + * which are part of this topology resource + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly topologyResources?: TopologySingleResource[]; } /** * @interface - * An interface representing ExternalSecuritySolutionKind1. - * Describes an Azure resource with kind + * An interface representing AdvancedThreatProtectionSetting. + * The Advanced Threat Protection resource. * + * @extends Resource */ -export interface ExternalSecuritySolutionKind1 { +export interface AdvancedThreatProtectionSetting extends Resource { /** - * @member {ExternalSecuritySolutionKind} [kind] The kind of the external - * solution. Possible values include: 'CEF', 'ATA', 'AAD' + * @member {boolean} [isEnabled] Indicates whether Advanced Threat Protection + * is enabled. */ - kind?: ExternalSecuritySolutionKind; + isEnabled?: boolean; } /** * @interface - * An interface representing AadConnectivityState1. - * Describes an Azure resource with kind + * An interface representing AutoProvisioningSetting. + * Auto provisioning setting * + * @extends Resource */ -export interface AadConnectivityState1 { +export interface AutoProvisioningSetting extends Resource { + /** + * @member {AutoProvision} autoProvision Describes what kind of security + * agent provisioning action to take. Possible values include: 'On', 'Off' + */ + autoProvision: AutoProvision; +} + +/** + * @interface + * An interface representing ComplianceSegment. + * A segment of a compliance assessment. + * + */ +export interface ComplianceSegment { + /** + * @member {string} [segmentType] The segment type, e.g. compliant, + * non-compliance, insufficient coverage, N/A, etc. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** + */ + readonly segmentType?: string; /** - * @member {AadConnectivityState} [connectivityState] The connectivity state - * of the external AAD solution . Possible values include: 'Discovered', - * 'NotLicensed', 'Connected' + * @member {number} [percentage] The size (%) of the segment. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** */ - connectivityState?: AadConnectivityState; + readonly percentage?: number; } /** * @interface - * An interface representing ConnectedResource. - * Describes properties of a connected resource + * An interface representing Compliance. + * Compliance of a scope * + * @extends Resource */ -export interface ConnectedResource { +export interface Compliance extends Resource { /** - * @member {string} [connectedResourceId] The Azure resource id of the - * connected resource + * @member {Date} [assessmentTimestampUtcDate] The timestamp when the + * Compliance calculation was conducted. * **NOTE: This property will not be serialized. It can only be populated by * the server.** */ - readonly connectedResourceId?: string; + readonly assessmentTimestampUtcDate?: Date; /** - * @member {string} [tcpPorts] The allowed tcp ports + * @member {number} [resourceCount] The resource count of the given + * subscription for which the Compliance calculation was conducted (needed + * for Management Group Compliance calculation). * **NOTE: This property will not be serialized. It can only be populated by * the server.** */ - readonly tcpPorts?: string; + readonly resourceCount?: number; /** - * @member {string} [udpPorts] The allowed udp ports + * @member {ComplianceSegment[]} [assessmentResult] An array of segment, + * which is the actually the compliance assessment. * **NOTE: This property will not be serialized. It can only be populated by * the server.** */ - readonly udpPorts?: string; + readonly assessmentResult?: ComplianceSegment[]; } /** * @interface - * An interface representing ConnectableResource. - * Describes the allowed inbound and outbound traffic of an Azure resource + * An interface representing SensitivityLabel. + * The sensitivity label. * */ -export interface ConnectableResource { +export interface SensitivityLabel { /** - * @member {string} [id] The Azure resource id - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * @member {string} [displayName] The name of the sensitivity label. */ - readonly id?: string; + displayName?: string; /** - * @member {ConnectedResource[]} [inboundConnectedResources] The list of - * Azure resources that the resource has inbound allowed connection from - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * @member {number} [order] The order of the sensitivity label. */ - readonly inboundConnectedResources?: ConnectedResource[]; + order?: number; /** - * @member {ConnectedResource[]} [outboundConnectedResources] The list of - * Azure resources that the resource has outbound allowed connection to - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * @member {boolean} [enabled] Indicates whether the label is enabled or not. */ - readonly outboundConnectedResources?: ConnectedResource[]; + enabled?: boolean; } /** * @interface - * An interface representing AllowedConnectionsResource. - * The resource whose properties describes the allowed traffic between Azure - * resources + * An interface representing InformationProtectionKeyword. + * The information type keyword. * */ -export interface AllowedConnectionsResource { +export interface InformationProtectionKeyword { /** - * @member {string} [id] Resource Id - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * @member {string} [pattern] The keyword pattern. */ - readonly id?: string; + pattern?: string; /** - * @member {string} [name] Resource name - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * @member {boolean} [custom] Indicates whether the keyword is custom or not. */ - readonly name?: string; + custom?: boolean; /** - * @member {string} [type] Resource type - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * @member {boolean} [canBeNumeric] Indicates whether the keyword can be + * applied on numeric types or not. */ - readonly type?: string; + canBeNumeric?: boolean; /** - * @member {string} [location] Location where the resource is stored - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * @member {boolean} [excluded] Indicates whether the keyword is excluded or + * not. */ - readonly location?: string; + excluded?: boolean; +} + +/** + * @interface + * An interface representing InformationType. + * The information type. + * + */ +export interface InformationType { /** - * @member {Date} [calculatedDateTime] The UTC time on which the allowed - * connections resource was calculated - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * @member {string} [displayName] The name of the information type. */ - readonly calculatedDateTime?: Date; + displayName?: string; /** - * @member {ConnectableResource[]} [connectableResources] List of connectable - * resources - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * @member {number} [order] The order of the information type. */ - readonly connectableResources?: ConnectableResource[]; + order?: number; + /** + * @member {string} [recommendedLabelId] The recommended label id to be + * associated with this information type. + */ + recommendedLabelId?: string; + /** + * @member {boolean} [enabled] Indicates whether the information type is + * enabled or not. + */ + enabled?: boolean; + /** + * @member {boolean} [custom] Indicates whether the information type is + * custom or not. + */ + custom?: boolean; + /** + * @member {InformationProtectionKeyword[]} [keywords] The information type + * keywords. + */ + keywords?: InformationProtectionKeyword[]; } /** * @interface - * An interface representing TasksListOptionalParams. - * Optional Parameters. + * An interface representing InformationProtectionPolicy. + * Information protection policy. * - * @extends RequestOptionsBase + * @extends Resource */ -export interface TasksListOptionalParams extends msRest.RequestOptionsBase { +export interface InformationProtectionPolicy extends Resource { /** - * @member {string} [filter] OData filter. Optional. + * @member {Date} [lastModifiedUtc] Describes the last UTC time the policy + * was modified. + * **NOTE: This property will not be serialized. It can only be populated by + * the server.** */ - filter?: string; + readonly lastModifiedUtc?: Date; + /** + * @member {{ [propertyName: string]: SensitivityLabel }} [labels] Dictionary + * of sensitivity labels. + */ + labels?: { [propertyName: string]: SensitivityLabel }; + /** + * @member {{ [propertyName: string]: InformationType }} [informationTypes] + * The sensitivity information types. + */ + informationTypes?: { [propertyName: string]: InformationType }; } /** * @interface - * An interface representing TasksListByHomeRegionOptionalParams. - * Optional Parameters. + * An interface representing SecurityContact. + * Contact details for security issues * - * @extends RequestOptionsBase + * @extends Resource */ -export interface TasksListByHomeRegionOptionalParams extends msRest.RequestOptionsBase { +export interface SecurityContact extends Resource { /** - * @member {string} [filter] OData filter. Optional. + * @member {string} email The email of this security contact */ - filter?: string; + email: string; + /** + * @member {string} [phone] The phone number of this security contact + */ + phone?: string; + /** + * @member {AlertNotifications} alertNotifications Whether to send security + * alerts notifications to the security contact. Possible values include: + * 'On', 'Off' + */ + alertNotifications: AlertNotifications; + /** + * @member {AlertsToAdmins} alertsToAdmins Whether to send security alerts + * notifications to subscription admins. Possible values include: 'On', 'Off' + */ + alertsToAdmins: AlertsToAdmins; } /** * @interface - * An interface representing TasksListByResourceGroupOptionalParams. - * Optional Parameters. + * An interface representing WorkspaceSetting. + * Configures where to store the OMS agent data for workspaces under a scope * - * @extends RequestOptionsBase + * @extends Resource */ -export interface TasksListByResourceGroupOptionalParams extends msRest.RequestOptionsBase { +export interface WorkspaceSetting extends Resource { /** - * @member {string} [filter] OData filter. Optional. + * @member {string} workspaceId The full Azure ID of the workspace to save + * the data in */ - filter?: string; + workspaceId: string; + /** + * @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 + */ + scope: string; } /** @@ -1675,41 +1624,67 @@ export interface AlertsListResourceGroupLevelAlertsByRegionOptionalParams extend /** * @interface - * An interface representing SecurityCenterOptions. - * @extends AzureServiceClientOptions + * An interface representing TasksListOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase */ -export interface SecurityCenterOptions extends AzureServiceClientOptions { +export interface TasksListOptionalParams extends msRest.RequestOptionsBase { /** - * @member {string} [baseUri] + * @member {string} [filter] OData filter. Optional. */ - baseUri?: string; + filter?: string; } +/** + * @interface + * An interface representing TasksListByHomeRegionOptionalParams. + * Optional Parameters. + * + * @extends RequestOptionsBase + */ +export interface TasksListByHomeRegionOptionalParams extends msRest.RequestOptionsBase { + /** + * @member {string} [filter] OData filter. Optional. + */ + filter?: string; +} /** * @interface - * An interface representing the PricingList. - * List of pricing configurations response + * An interface representing TasksListByResourceGroupOptionalParams. + * Optional Parameters. * - * @extends Array + * @extends RequestOptionsBase */ -export interface PricingList extends Array { +export interface TasksListByResourceGroupOptionalParams extends msRest.RequestOptionsBase { /** - * @member {string} [nextLink] The URI to fetch the next page. - * **NOTE: This property will not be serialized. It can only be populated by - * the server.** + * @member {string} [filter] OData filter. Optional. */ - readonly nextLink?: string; + filter?: string; +} + +/** + * @interface + * An interface representing SecurityCenterOptions. + * @extends AzureServiceClientOptions + */ +export interface SecurityCenterOptions extends AzureServiceClientOptions { + /** + * @member {string} [baseUri] + */ + baseUri?: string; } + /** * @interface - * An interface representing the SecurityContactList. - * List of security contacts response + * An interface representing the AlertList. + * List of security alerts * - * @extends Array + * @extends Array */ -export interface SecurityContactList extends Array { +export interface AlertList extends Array { /** * @member {string} [nextLink] The URI to fetch the next page. * **NOTE: This property will not be serialized. It can only be populated by @@ -1720,12 +1695,12 @@ export interface SecurityContactList extends Array { /** * @interface - * An interface representing the WorkspaceSettingList. - * List of workspace settings response + * An interface representing the SettingsList. + * Subscription settings list. * - * @extends Array + * @extends Array */ -export interface WorkspaceSettingList extends Array { +export interface SettingsList extends Array { /** * @member {string} [nextLink] The URI to fetch the next page. * **NOTE: This property will not be serialized. It can only be populated by @@ -1736,12 +1711,12 @@ export interface WorkspaceSettingList extends Array { /** * @interface - * An interface representing the AutoProvisioningSettingList. - * List of all the auto provisioning settings response + * An interface representing the AllowedConnectionsList. + * List of all possible traffic between Azure resources * - * @extends Array + * @extends Array */ -export interface AutoProvisioningSettingList extends Array { +export interface AllowedConnectionsList extends Array { /** * @member {string} [nextLink] The URI to fetch the next page. * **NOTE: This property will not be serialized. It can only be populated by @@ -1752,12 +1727,10 @@ export interface AutoProvisioningSettingList extends Array + * An interface representing the DiscoveredSecuritySolutionList. + * @extends Array */ -export interface ComplianceList extends Array { +export interface DiscoveredSecuritySolutionList extends Array { /** * @member {string} [nextLink] The URI to fetch the next page. * **NOTE: This property will not be serialized. It can only be populated by @@ -1768,12 +1741,10 @@ export interface ComplianceList extends Array { /** * @interface - * An interface representing the SettingsList. - * Subscription settings list. - * - * @extends Array + * An interface representing the ExternalSecuritySolutionList. + * @extends Array */ -export interface SettingsList extends Array { +export interface ExternalSecuritySolutionList extends Array { /** * @member {string} [nextLink] The URI to fetch the next page. * **NOTE: This property will not be serialized. It can only be populated by @@ -1784,12 +1755,10 @@ export interface SettingsList extends Array { /** * @interface - * An interface representing the InformationProtectionPolicyList. - * Information protection policies response. - * - * @extends Array + * An interface representing the JitNetworkAccessPoliciesList. + * @extends Array */ -export interface InformationProtectionPolicyList extends Array { +export interface JitNetworkAccessPoliciesList extends Array { /** * @member {string} [nextLink] The URI to fetch the next page. * **NOTE: This property will not be serialized. It can only be populated by @@ -1800,12 +1769,12 @@ export interface InformationProtectionPolicyList extends Array + * @extends Array */ -export interface OperationList extends Array { +export interface AscLocationList extends Array { /** * @member {string} [nextLink] The URI to fetch the next page. * **NOTE: This property will not be serialized. It can only be populated by @@ -1816,12 +1785,12 @@ export interface OperationList extends Array { /** * @interface - * An interface representing the AscLocationList. - * List of locations where ASC saves your data + * An interface representing the OperationList. + * List of possible operations for Microsoft.Security resource provider * - * @extends Array + * @extends Array */ -export interface AscLocationList extends Array { +export interface OperationList extends Array { /** * @member {string} [nextLink] The URI to fetch the next page. * **NOTE: This property will not be serialized. It can only be populated by @@ -1848,12 +1817,10 @@ export interface SecurityTaskList extends Array { /** * @interface - * An interface representing the AlertList. - * List of security alerts - * - * @extends Array + * An interface representing the TopologyList. + * @extends Array */ -export interface AlertList extends Array { +export interface TopologyList extends Array { /** * @member {string} [nextLink] The URI to fetch the next page. * **NOTE: This property will not be serialized. It can only be populated by @@ -1864,10 +1831,12 @@ export interface AlertList extends Array { /** * @interface - * An interface representing the DiscoveredSecuritySolutionList. - * @extends Array + * An interface representing the AutoProvisioningSettingList. + * List of all the auto provisioning settings response + * + * @extends Array */ -export interface DiscoveredSecuritySolutionList extends Array { +export interface AutoProvisioningSettingList extends Array { /** * @member {string} [nextLink] The URI to fetch the next page. * **NOTE: This property will not be serialized. It can only be populated by @@ -1878,10 +1847,12 @@ export interface DiscoveredSecuritySolutionList extends Array + * An interface representing the ComplianceList. + * List of Compliance objects response + * + * @extends Array */ -export interface JitNetworkAccessPoliciesList extends Array { +export interface ComplianceList extends Array { /** * @member {string} [nextLink] The URI to fetch the next page. * **NOTE: This property will not be serialized. It can only be populated by @@ -1892,10 +1863,12 @@ export interface JitNetworkAccessPoliciesList extends Array + * An interface representing the InformationProtectionPolicyList. + * Information protection policies response. + * + * @extends Array */ -export interface ExternalSecuritySolutionList extends Array { +export interface InformationProtectionPolicyList extends Array { /** * @member {string} [nextLink] The URI to fetch the next page. * **NOTE: This property will not be serialized. It can only be populated by @@ -1906,10 +1879,12 @@ export interface ExternalSecuritySolutionList extends Array + * An interface representing the SecurityContactList. + * List of security contacts response + * + * @extends Array */ -export interface TopologyList extends Array { +export interface SecurityContactList extends Array { /** * @member {string} [nextLink] The URI to fetch the next page. * **NOTE: This property will not be serialized. It can only be populated by @@ -1920,12 +1895,12 @@ export interface TopologyList extends Array { /** * @interface - * An interface representing the AllowedConnectionsList. - * List of all possible traffic between Azure resources + * An interface representing the WorkspaceSettingList. + * List of workspace settings response * - * @extends Array + * @extends Array */ -export interface AllowedConnectionsList extends Array { +export interface WorkspaceSettingList extends Array { /** * @member {string} [nextLink] The URI to fetch the next page. * **NOTE: This property will not be serialized. It can only be populated by @@ -1934,22 +1909,6 @@ export interface AllowedConnectionsList extends Array diff --git a/packages/@azure/arm-security/lib/operations/allowedConnections.ts b/packages/@azure/arm-security/lib/operations/allowedConnections.ts index b738cdb1d55a..98eb68b742ac 100644 --- a/packages/@azure/arm-security/lib/operations/allowedConnections.ts +++ b/packages/@azure/arm-security/lib/operations/allowedConnections.ts @@ -179,7 +179,7 @@ const listOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion1 + Parameters.apiVersion2 ], headerParameters: [ Parameters.acceptLanguage @@ -203,7 +203,7 @@ const listByHomeRegionOperationSpec: msRest.OperationSpec = { Parameters.ascLocation ], queryParameters: [ - Parameters.apiVersion1 + Parameters.apiVersion2 ], headerParameters: [ Parameters.acceptLanguage @@ -229,7 +229,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.connectionType ], queryParameters: [ - Parameters.apiVersion1 + Parameters.apiVersion2 ], headerParameters: [ Parameters.acceptLanguage diff --git a/packages/@azure/arm-security/lib/operations/autoProvisioningSettings.ts b/packages/@azure/arm-security/lib/operations/autoProvisioningSettings.ts index be242ac19ac5..675ffe7a63f9 100644 --- a/packages/@azure/arm-security/lib/operations/autoProvisioningSettings.ts +++ b/packages/@azure/arm-security/lib/operations/autoProvisioningSettings.ts @@ -148,7 +148,7 @@ const listOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion3 ], headerParameters: [ Parameters.acceptLanguage @@ -172,7 +172,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.settingName0 ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion3 ], headerParameters: [ Parameters.acceptLanguage @@ -196,7 +196,7 @@ const createOperationSpec: msRest.OperationSpec = { Parameters.settingName0 ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion3 ], headerParameters: [ Parameters.acceptLanguage diff --git a/packages/@azure/arm-security/lib/operations/compliances.ts b/packages/@azure/arm-security/lib/operations/compliances.ts index 73cb750b550e..b08289a129d2 100644 --- a/packages/@azure/arm-security/lib/operations/compliances.ts +++ b/packages/@azure/arm-security/lib/operations/compliances.ts @@ -136,7 +136,7 @@ const listOperationSpec: msRest.OperationSpec = { Parameters.scope ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion3 ], headerParameters: [ Parameters.acceptLanguage @@ -160,7 +160,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.complianceName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion3 ], headerParameters: [ Parameters.acceptLanguage diff --git a/packages/@azure/arm-security/lib/operations/discoveredSecuritySolutions.ts b/packages/@azure/arm-security/lib/operations/discoveredSecuritySolutions.ts index 08ce2d37ee85..dfc79f411549 100644 --- a/packages/@azure/arm-security/lib/operations/discoveredSecuritySolutions.ts +++ b/packages/@azure/arm-security/lib/operations/discoveredSecuritySolutions.ts @@ -175,7 +175,7 @@ const listOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion1 + Parameters.apiVersion2 ], headerParameters: [ Parameters.acceptLanguage @@ -199,7 +199,7 @@ const listByHomeRegionOperationSpec: msRest.OperationSpec = { Parameters.ascLocation ], queryParameters: [ - Parameters.apiVersion1 + Parameters.apiVersion2 ], headerParameters: [ Parameters.acceptLanguage @@ -225,7 +225,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.discoveredSecuritySolutionName ], queryParameters: [ - Parameters.apiVersion1 + Parameters.apiVersion2 ], headerParameters: [ Parameters.acceptLanguage diff --git a/packages/@azure/arm-security/lib/operations/externalSecuritySolutions.ts b/packages/@azure/arm-security/lib/operations/externalSecuritySolutions.ts index 564bd6cab181..2980dde3c9b9 100644 --- a/packages/@azure/arm-security/lib/operations/externalSecuritySolutions.ts +++ b/packages/@azure/arm-security/lib/operations/externalSecuritySolutions.ts @@ -175,7 +175,7 @@ const listOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion1 + Parameters.apiVersion2 ], headerParameters: [ Parameters.acceptLanguage @@ -199,7 +199,7 @@ const listByHomeRegionOperationSpec: msRest.OperationSpec = { Parameters.ascLocation ], queryParameters: [ - Parameters.apiVersion1 + Parameters.apiVersion2 ], headerParameters: [ Parameters.acceptLanguage @@ -225,7 +225,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.externalSecuritySolutionsName ], queryParameters: [ - Parameters.apiVersion1 + Parameters.apiVersion2 ], headerParameters: [ Parameters.acceptLanguage diff --git a/packages/@azure/arm-security/lib/operations/index.ts b/packages/@azure/arm-security/lib/operations/index.ts index dd820149dfa7..eba2c9e3af1a 100644 --- a/packages/@azure/arm-security/lib/operations/index.ts +++ b/packages/@azure/arm-security/lib/operations/index.ts @@ -9,19 +9,19 @@ */ export * from "./pricings"; -export * from "./securityContacts"; -export * from "./workspaceSettings"; -export * from "./autoProvisioningSettings"; -export * from "./compliances"; -export * from "./advancedThreatProtection"; -export * from "./settings"; -export * from "./informationProtectionPolicies"; -export * from "./operations"; -export * from "./locations"; -export * from "./tasks"; export * from "./alerts"; +export * from "./settings"; +export * from "./allowedConnections"; export * from "./discoveredSecuritySolutions"; -export * from "./jitNetworkAccessPolicies"; export * from "./externalSecuritySolutions"; +export * from "./jitNetworkAccessPolicies"; +export * from "./locations"; +export * from "./operations"; +export * from "./tasks"; export * from "./topology"; -export * from "./allowedConnections"; +export * from "./advancedThreatProtection"; +export * from "./autoProvisioningSettings"; +export * from "./compliances"; +export * from "./informationProtectionPolicies"; +export * from "./securityContacts"; +export * from "./workspaceSettings"; diff --git a/packages/@azure/arm-security/lib/operations/informationProtectionPolicies.ts b/packages/@azure/arm-security/lib/operations/informationProtectionPolicies.ts index 59e511fb0445..596418391a0b 100644 --- a/packages/@azure/arm-security/lib/operations/informationProtectionPolicies.ts +++ b/packages/@azure/arm-security/lib/operations/informationProtectionPolicies.ts @@ -181,7 +181,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.informationProtectionPolicyName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion3 ], headerParameters: [ Parameters.acceptLanguage @@ -205,7 +205,7 @@ const createOrUpdateOperationSpec: msRest.OperationSpec = { Parameters.informationProtectionPolicyName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion3 ], headerParameters: [ Parameters.acceptLanguage @@ -231,7 +231,7 @@ const listOperationSpec: msRest.OperationSpec = { Parameters.scope ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion3 ], headerParameters: [ Parameters.acceptLanguage diff --git a/packages/@azure/arm-security/lib/operations/jitNetworkAccessPolicies.ts b/packages/@azure/arm-security/lib/operations/jitNetworkAccessPolicies.ts index a9eca485751a..723636a8e43f 100644 --- a/packages/@azure/arm-security/lib/operations/jitNetworkAccessPolicies.ts +++ b/packages/@azure/arm-security/lib/operations/jitNetworkAccessPolicies.ts @@ -413,7 +413,7 @@ const listOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion1 + Parameters.apiVersion2 ], headerParameters: [ Parameters.acceptLanguage @@ -437,7 +437,7 @@ const listByRegionOperationSpec: msRest.OperationSpec = { Parameters.ascLocation ], queryParameters: [ - Parameters.apiVersion1 + Parameters.apiVersion2 ], headerParameters: [ Parameters.acceptLanguage @@ -461,7 +461,7 @@ const listByResourceGroupOperationSpec: msRest.OperationSpec = { Parameters.resourceGroupName ], queryParameters: [ - Parameters.apiVersion1 + Parameters.apiVersion2 ], headerParameters: [ Parameters.acceptLanguage @@ -486,7 +486,7 @@ const listByResourceGroupAndRegionOperationSpec: msRest.OperationSpec = { Parameters.ascLocation ], queryParameters: [ - Parameters.apiVersion1 + Parameters.apiVersion2 ], headerParameters: [ Parameters.acceptLanguage @@ -512,7 +512,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.jitNetworkAccessPolicyName ], queryParameters: [ - Parameters.apiVersion1 + Parameters.apiVersion2 ], headerParameters: [ Parameters.acceptLanguage @@ -538,7 +538,7 @@ const createOrUpdateOperationSpec: msRest.OperationSpec = { Parameters.jitNetworkAccessPolicyName ], queryParameters: [ - Parameters.apiVersion1 + Parameters.apiVersion2 ], headerParameters: [ Parameters.acceptLanguage @@ -571,7 +571,7 @@ const deleteMethodOperationSpec: msRest.OperationSpec = { Parameters.jitNetworkAccessPolicyName ], queryParameters: [ - Parameters.apiVersion1 + Parameters.apiVersion2 ], headerParameters: [ Parameters.acceptLanguage @@ -597,7 +597,7 @@ const initiateOperationSpec: msRest.OperationSpec = { Parameters.jitNetworkAccessPolicyInitiateType ], queryParameters: [ - Parameters.apiVersion1 + Parameters.apiVersion2 ], headerParameters: [ Parameters.acceptLanguage diff --git a/packages/@azure/arm-security/lib/operations/locations.ts b/packages/@azure/arm-security/lib/operations/locations.ts index ca7e3a22f61b..07abce747f32 100644 --- a/packages/@azure/arm-security/lib/operations/locations.ts +++ b/packages/@azure/arm-security/lib/operations/locations.ts @@ -116,7 +116,7 @@ const listOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion1 + Parameters.apiVersion2 ], headerParameters: [ Parameters.acceptLanguage @@ -140,7 +140,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.ascLocation ], queryParameters: [ - Parameters.apiVersion1 + Parameters.apiVersion2 ], headerParameters: [ Parameters.acceptLanguage diff --git a/packages/@azure/arm-security/lib/operations/operations.ts b/packages/@azure/arm-security/lib/operations/operations.ts index 76388bc9221b..9f462e729344 100644 --- a/packages/@azure/arm-security/lib/operations/operations.ts +++ b/packages/@azure/arm-security/lib/operations/operations.ts @@ -85,7 +85,7 @@ const listOperationSpec: msRest.OperationSpec = { httpMethod: "GET", path: "providers/Microsoft.Security/operations", queryParameters: [ - Parameters.apiVersion1 + Parameters.apiVersion2 ], headerParameters: [ Parameters.acceptLanguage diff --git a/packages/@azure/arm-security/lib/operations/pricings.ts b/packages/@azure/arm-security/lib/operations/pricings.ts index 835af87be06a..e08acd1a4309 100644 --- a/packages/@azure/arm-security/lib/operations/pricings.ts +++ b/packages/@azure/arm-security/lib/operations/pricings.ts @@ -50,226 +50,64 @@ export class Pricings { callback) as Promise; } - /** - * Security pricing configurations in the resource group - * @param resourceGroupName The name of the resource group within the user's subscription. The name - * is case insensitive. - * @param [options] The optional parameters - * @returns Promise - */ - listByResourceGroup(resourceGroupName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param resourceGroupName The name of the resource group within the user's subscription. The name - * is case insensitive. - * @param callback The callback - */ - listByResourceGroup(resourceGroupName: string, callback: msRest.ServiceCallback): void; - /** - * @param resourceGroupName The name of the resource group within the user's subscription. The name - * is case insensitive. - * @param options The optional parameters - * @param callback The callback - */ - listByResourceGroup(resourceGroupName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByResourceGroup(resourceGroupName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - options - }, - listByResourceGroupOperationSpec, - callback) as Promise; - } - - /** - * Security pricing configuration in the subscriptionSecurity pricing configuration in the - * subscription - * @param pricingName name of the pricing configuration - * @param [options] The optional parameters - * @returns Promise - */ - getSubscriptionPricing(pricingName: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param pricingName name of the pricing configuration - * @param callback The callback - */ - getSubscriptionPricing(pricingName: string, callback: msRest.ServiceCallback): void; - /** - * @param pricingName name of the pricing configuration - * @param options The optional parameters - * @param callback The callback - */ - getSubscriptionPricing(pricingName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - getSubscriptionPricing(pricingName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - pricingName, - options - }, - getSubscriptionPricingOperationSpec, - callback) as Promise; - } - /** * Security pricing configuration in the subscription * @param pricingName name of the pricing configuration - * @param pricing Pricing object - * @param [options] The optional parameters - * @returns Promise - */ - updateSubscriptionPricing(pricingName: string, pricing: Models.Pricing, options?: msRest.RequestOptionsBase): Promise; - /** - * @param pricingName name of the pricing configuration - * @param pricing Pricing object - * @param callback The callback - */ - updateSubscriptionPricing(pricingName: string, pricing: Models.Pricing, callback: msRest.ServiceCallback): void; - /** - * @param pricingName name of the pricing configuration - * @param pricing Pricing object - * @param options The optional parameters - * @param callback The callback - */ - updateSubscriptionPricing(pricingName: string, pricing: Models.Pricing, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - updateSubscriptionPricing(pricingName: string, pricing: Models.Pricing, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - pricingName, - pricing, - options - }, - updateSubscriptionPricingOperationSpec, - callback) as Promise; - } - - /** - * Security pricing configuration in the resource group - * @param resourceGroupName The name of the resource group within the user's subscription. The name - * is case insensitive. - * @param pricingName name of the pricing configuration * @param [options] The optional parameters - * @returns Promise + * @returns Promise */ - getResourceGroupPricing(resourceGroupName: string, pricingName: string, options?: msRest.RequestOptionsBase): Promise; + get(pricingName: string, options?: msRest.RequestOptionsBase): Promise; /** - * @param resourceGroupName The name of the resource group within the user's subscription. The name - * is case insensitive. * @param pricingName name of the pricing configuration * @param callback The callback */ - getResourceGroupPricing(resourceGroupName: string, pricingName: string, callback: msRest.ServiceCallback): void; + get(pricingName: string, callback: msRest.ServiceCallback): void; /** - * @param resourceGroupName The name of the resource group within the user's subscription. The name - * is case insensitive. * @param pricingName name of the pricing configuration * @param options The optional parameters * @param callback The callback */ - getResourceGroupPricing(resourceGroupName: string, pricingName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - getResourceGroupPricing(resourceGroupName: string, pricingName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + get(pricingName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(pricingName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { - resourceGroupName, pricingName, options }, - getResourceGroupPricingOperationSpec, - callback) as Promise; + getOperationSpec, + callback) as Promise; } /** - * Security pricing configuration in the resource group - * @param resourceGroupName The name of the resource group within the user's subscription. The name - * is case insensitive. + * Security pricing configuration in the subscription * @param pricingName name of the pricing configuration * @param pricing Pricing object * @param [options] The optional parameters - * @returns Promise + * @returns Promise */ - createOrUpdateResourceGroupPricing(resourceGroupName: string, pricingName: string, pricing: Models.Pricing, options?: msRest.RequestOptionsBase): Promise; + update(pricingName: string, pricing: Models.Pricing, options?: msRest.RequestOptionsBase): Promise; /** - * @param resourceGroupName The name of the resource group within the user's subscription. The name - * is case insensitive. * @param pricingName name of the pricing configuration * @param pricing Pricing object * @param callback The callback */ - createOrUpdateResourceGroupPricing(resourceGroupName: string, pricingName: string, pricing: Models.Pricing, callback: msRest.ServiceCallback): void; + update(pricingName: string, pricing: Models.Pricing, callback: msRest.ServiceCallback): void; /** - * @param resourceGroupName The name of the resource group within the user's subscription. The name - * is case insensitive. * @param pricingName name of the pricing configuration * @param pricing Pricing object * @param options The optional parameters * @param callback The callback */ - createOrUpdateResourceGroupPricing(resourceGroupName: string, pricingName: string, pricing: Models.Pricing, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - createOrUpdateResourceGroupPricing(resourceGroupName: string, pricingName: string, pricing: Models.Pricing, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + update(pricingName: string, pricing: Models.Pricing, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + update(pricingName: string, pricing: Models.Pricing, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { - resourceGroupName, pricingName, pricing, options }, - createOrUpdateResourceGroupPricingOperationSpec, - callback) as Promise; - } - - /** - * Security pricing configurations in the subscription - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param [options] The optional parameters - * @returns Promise - */ - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param callback The callback - */ - listNext(nextPageLink: string, callback: msRest.ServiceCallback): void; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param options The optional parameters - * @param callback The callback - */ - listNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - nextPageLink, - options - }, - listNextOperationSpec, - callback) as Promise; - } - - /** - * Security pricing configurations in the resource group - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param [options] The optional parameters - * @returns Promise - */ - listByResourceGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase): Promise; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param callback The callback - */ - listByResourceGroupNext(nextPageLink: string, callback: msRest.ServiceCallback): void; - /** - * @param nextPageLink The NextLink from the previous successful call to List operation. - * @param options The optional parameters - * @param callback The callback - */ - listByResourceGroupNext(nextPageLink: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - listByResourceGroupNext(nextPageLink: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { - return this.client.sendOperationRequest( - { - nextPageLink, - options - }, - listByResourceGroupNextOperationSpec, - callback) as Promise; + updateOperationSpec, + callback) as Promise; } } @@ -298,31 +136,7 @@ const listOperationSpec: msRest.OperationSpec = { serializer }; -const listByResourceGroupOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/pricings", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName - ], - queryParameters: [ - Parameters.apiVersion0 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.PricingList - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const getSubscriptionPricingOperationSpec: msRest.OperationSpec = { +const getOperationSpec: msRest.OperationSpec = { httpMethod: "GET", path: "subscriptions/{subscriptionId}/providers/Microsoft.Security/pricings/{pricingName}", urlParameters: [ @@ -346,7 +160,7 @@ const getSubscriptionPricingOperationSpec: msRest.OperationSpec = { serializer }; -const updateSubscriptionPricingOperationSpec: msRest.OperationSpec = { +const updateOperationSpec: msRest.OperationSpec = { httpMethod: "PUT", path: "subscriptions/{subscriptionId}/providers/Microsoft.Security/pricings/{pricingName}", urlParameters: [ @@ -376,102 +190,3 @@ const updateSubscriptionPricingOperationSpec: msRest.OperationSpec = { }, serializer }; - -const getResourceGroupPricingOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/pricings/{pricingName}", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.pricingName - ], - queryParameters: [ - Parameters.apiVersion0 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.Pricing - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const createOrUpdateResourceGroupPricingOperationSpec: msRest.OperationSpec = { - httpMethod: "PUT", - path: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/pricings/{pricingName}", - urlParameters: [ - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.pricingName - ], - queryParameters: [ - Parameters.apiVersion0 - ], - headerParameters: [ - Parameters.acceptLanguage - ], - requestBody: { - parameterPath: "pricing", - mapper: { - ...Mappers.Pricing, - required: true - } - }, - responses: { - 200: { - bodyMapper: Mappers.Pricing - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const listNextOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - baseUrl: "https://management.azure.com", - path: "{nextLink}", - urlParameters: [ - Parameters.nextPageLink - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.PricingList - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; - -const listByResourceGroupNextOperationSpec: msRest.OperationSpec = { - httpMethod: "GET", - baseUrl: "https://management.azure.com", - path: "{nextLink}", - urlParameters: [ - Parameters.nextPageLink - ], - headerParameters: [ - Parameters.acceptLanguage - ], - responses: { - 200: { - bodyMapper: Mappers.PricingList - }, - default: { - bodyMapper: Mappers.CloudError - } - }, - serializer -}; diff --git a/packages/@azure/arm-security/lib/operations/securityContacts.ts b/packages/@azure/arm-security/lib/operations/securityContacts.ts index d96d049f457f..c41fda48b7e5 100644 --- a/packages/@azure/arm-security/lib/operations/securityContacts.ts +++ b/packages/@azure/arm-security/lib/operations/securityContacts.ts @@ -208,7 +208,7 @@ const listOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion3 ], headerParameters: [ Parameters.acceptLanguage @@ -232,7 +232,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.securityContactName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion3 ], headerParameters: [ Parameters.acceptLanguage @@ -256,7 +256,7 @@ const createOperationSpec: msRest.OperationSpec = { Parameters.securityContactName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion3 ], headerParameters: [ Parameters.acceptLanguage @@ -287,7 +287,7 @@ const deleteMethodOperationSpec: msRest.OperationSpec = { Parameters.securityContactName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion3 ], headerParameters: [ Parameters.acceptLanguage @@ -309,7 +309,7 @@ const updateOperationSpec: msRest.OperationSpec = { Parameters.securityContactName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion3 ], headerParameters: [ Parameters.acceptLanguage diff --git a/packages/@azure/arm-security/lib/operations/settings.ts b/packages/@azure/arm-security/lib/operations/settings.ts index b5d38a326868..91a1db8e3418 100644 --- a/packages/@azure/arm-security/lib/operations/settings.ts +++ b/packages/@azure/arm-security/lib/operations/settings.ts @@ -52,23 +52,23 @@ export class Settings { /** * Settings of different configurations in security center - * @param settingName Name of setting. Possible values include: 'MCAS', 'WDATP' + * @param settingName Name of setting: (MCAS/WDATP). Possible values include: 'MCAS', 'WDATP' * @param [options] The optional parameters * @returns Promise */ get(settingName: Models.SettingName, options?: msRest.RequestOptionsBase): Promise; /** - * @param settingName Name of setting. Possible values include: 'MCAS', 'WDATP' + * @param settingName Name of setting: (MCAS/WDATP). Possible values include: 'MCAS', 'WDATP' * @param callback The callback */ - get(settingName: Models.SettingName, callback: msRest.ServiceCallback): void; + get(settingName: Models.SettingName, callback: msRest.ServiceCallback): void; /** - * @param settingName Name of setting. Possible values include: 'MCAS', 'WDATP' + * @param settingName Name of setting: (MCAS/WDATP). Possible values include: 'MCAS', 'WDATP' * @param options The optional parameters * @param callback The callback */ - get(settingName: Models.SettingName, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - get(settingName: Models.SettingName, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + get(settingName: Models.SettingName, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(settingName: Models.SettingName, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { settingName, @@ -80,26 +80,26 @@ export class Settings { /** * updating settings about different configurations in security center - * @param settingName Name of setting. Possible values include: 'MCAS', 'WDATP' + * @param settingName Name of setting: (MCAS/WDATP). Possible values include: 'MCAS', 'WDATP' * @param setting Setting object * @param [options] The optional parameters * @returns Promise */ - update(settingName: Models.SettingName1, setting: Models.SettingUnion, options?: msRest.RequestOptionsBase): Promise; + update(settingName: Models.SettingName1, setting: Models.Setting, options?: msRest.RequestOptionsBase): Promise; /** - * @param settingName Name of setting. Possible values include: 'MCAS', 'WDATP' + * @param settingName Name of setting: (MCAS/WDATP). Possible values include: 'MCAS', 'WDATP' * @param setting Setting object * @param callback The callback */ - update(settingName: Models.SettingName1, setting: Models.SettingUnion, callback: msRest.ServiceCallback): void; + update(settingName: Models.SettingName1, setting: Models.Setting, callback: msRest.ServiceCallback): void; /** - * @param settingName Name of setting. Possible values include: 'MCAS', 'WDATP' + * @param settingName Name of setting: (MCAS/WDATP). Possible values include: 'MCAS', 'WDATP' * @param setting Setting object * @param options The optional parameters * @param callback The callback */ - update(settingName: Models.SettingName1, setting: Models.SettingUnion, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - update(settingName: Models.SettingName1, setting: Models.SettingUnion, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + update(settingName: Models.SettingName1, setting: Models.Setting, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + update(settingName: Models.SettingName1, setting: Models.Setting, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { settingName, @@ -148,7 +148,7 @@ const listOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion1 ], headerParameters: [ Parameters.acceptLanguage @@ -172,7 +172,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.settingName0 ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion1 ], headerParameters: [ Parameters.acceptLanguage @@ -196,7 +196,7 @@ const updateOperationSpec: msRest.OperationSpec = { Parameters.settingName0 ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion1 ], headerParameters: [ Parameters.acceptLanguage diff --git a/packages/@azure/arm-security/lib/operations/tasks.ts b/packages/@azure/arm-security/lib/operations/tasks.ts index cf2414a50cfe..07b65eecb202 100644 --- a/packages/@azure/arm-security/lib/operations/tasks.ts +++ b/packages/@azure/arm-security/lib/operations/tasks.ts @@ -339,7 +339,7 @@ const listOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion1, + Parameters.apiVersion2, Parameters.filter ], headerParameters: [ @@ -364,7 +364,7 @@ const listByHomeRegionOperationSpec: msRest.OperationSpec = { Parameters.ascLocation ], queryParameters: [ - Parameters.apiVersion1, + Parameters.apiVersion2, Parameters.filter ], headerParameters: [ @@ -390,7 +390,7 @@ const getSubscriptionLevelTaskOperationSpec: msRest.OperationSpec = { Parameters.taskName ], queryParameters: [ - Parameters.apiVersion1 + Parameters.apiVersion2 ], headerParameters: [ Parameters.acceptLanguage @@ -416,7 +416,7 @@ const updateSubscriptionLevelTaskStateOperationSpec: msRest.OperationSpec = { Parameters.taskUpdateActionType ], queryParameters: [ - Parameters.apiVersion1 + Parameters.apiVersion2 ], headerParameters: [ Parameters.acceptLanguage @@ -439,7 +439,7 @@ const listByResourceGroupOperationSpec: msRest.OperationSpec = { Parameters.ascLocation ], queryParameters: [ - Parameters.apiVersion1, + Parameters.apiVersion2, Parameters.filter ], headerParameters: [ @@ -466,7 +466,7 @@ const getResourceGroupLevelTaskOperationSpec: msRest.OperationSpec = { Parameters.taskName ], queryParameters: [ - Parameters.apiVersion1 + Parameters.apiVersion2 ], headerParameters: [ Parameters.acceptLanguage @@ -493,7 +493,7 @@ const updateResourceGroupLevelTaskStateOperationSpec: msRest.OperationSpec = { Parameters.taskUpdateActionType ], queryParameters: [ - Parameters.apiVersion1 + Parameters.apiVersion2 ], headerParameters: [ Parameters.acceptLanguage diff --git a/packages/@azure/arm-security/lib/operations/topology.ts b/packages/@azure/arm-security/lib/operations/topology.ts index 29881ed37736..88cfa453f69e 100644 --- a/packages/@azure/arm-security/lib/operations/topology.ts +++ b/packages/@azure/arm-security/lib/operations/topology.ts @@ -175,7 +175,7 @@ const listOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion1 + Parameters.apiVersion2 ], headerParameters: [ Parameters.acceptLanguage @@ -199,7 +199,7 @@ const listByHomeRegionOperationSpec: msRest.OperationSpec = { Parameters.ascLocation ], queryParameters: [ - Parameters.apiVersion1 + Parameters.apiVersion2 ], headerParameters: [ Parameters.acceptLanguage @@ -225,7 +225,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.topologyResourceName ], queryParameters: [ - Parameters.apiVersion1 + Parameters.apiVersion2 ], headerParameters: [ Parameters.acceptLanguage diff --git a/packages/@azure/arm-security/lib/operations/workspaceSettings.ts b/packages/@azure/arm-security/lib/operations/workspaceSettings.ts index 7aa4886714a4..0877ddec81a6 100644 --- a/packages/@azure/arm-security/lib/operations/workspaceSettings.ts +++ b/packages/@azure/arm-security/lib/operations/workspaceSettings.ts @@ -27,7 +27,8 @@ export 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 [options] The optional parameters * @returns Promise */ @@ -51,7 +52,8 @@ export 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 workspaceSettingName Name of the security setting * @param [options] The optional parameters * @returns Promise @@ -172,7 +174,8 @@ export 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 nextPageLink The NextLink from the previous successful call to List operation. * @param [options] The optional parameters * @returns Promise @@ -209,7 +212,7 @@ const listOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion3 ], headerParameters: [ Parameters.acceptLanguage @@ -233,7 +236,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.workspaceSettingName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion3 ], headerParameters: [ Parameters.acceptLanguage @@ -257,7 +260,7 @@ const createOperationSpec: msRest.OperationSpec = { Parameters.workspaceSettingName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion3 ], headerParameters: [ Parameters.acceptLanguage @@ -288,7 +291,7 @@ const updateOperationSpec: msRest.OperationSpec = { Parameters.workspaceSettingName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion3 ], headerParameters: [ Parameters.acceptLanguage @@ -319,7 +322,7 @@ const deleteMethodOperationSpec: msRest.OperationSpec = { Parameters.workspaceSettingName ], queryParameters: [ - Parameters.apiVersion0 + Parameters.apiVersion3 ], headerParameters: [ Parameters.acceptLanguage diff --git a/packages/@azure/arm-security/lib/securityCenter.ts b/packages/@azure/arm-security/lib/securityCenter.ts index 5b1f4c9ebf51..e23cb128d997 100644 --- a/packages/@azure/arm-security/lib/securityCenter.ts +++ b/packages/@azure/arm-security/lib/securityCenter.ts @@ -18,22 +18,22 @@ import { SecurityCenterContext } from "./securityCenterContext"; class SecurityCenter extends SecurityCenterContext { // Operation groups pricings: operations.Pricings; - securityContacts: operations.SecurityContacts; - workspaceSettings: operations.WorkspaceSettings; - autoProvisioningSettings: operations.AutoProvisioningSettings; - compliances: operations.Compliances; - advancedThreatProtection: operations.AdvancedThreatProtection; - settings: operations.Settings; - informationProtectionPolicies: operations.InformationProtectionPolicies; - operations: operations.Operations; - locations: operations.Locations; - tasks: operations.Tasks; alerts: operations.Alerts; + settings: operations.Settings; + allowedConnections: operations.AllowedConnections; discoveredSecuritySolutions: operations.DiscoveredSecuritySolutions; - jitNetworkAccessPolicies: operations.JitNetworkAccessPolicies; externalSecuritySolutions: operations.ExternalSecuritySolutions; + jitNetworkAccessPolicies: operations.JitNetworkAccessPolicies; + locations: operations.Locations; + operations: operations.Operations; + tasks: operations.Tasks; topology: operations.Topology; - allowedConnections: operations.AllowedConnections; + advancedThreatProtection: operations.AdvancedThreatProtection; + autoProvisioningSettings: operations.AutoProvisioningSettings; + compliances: operations.Compliances; + informationProtectionPolicies: operations.InformationProtectionPolicies; + securityContacts: operations.SecurityContacts; + workspaceSettings: operations.WorkspaceSettings; /** * Initializes a new instance of the SecurityCenter class. @@ -46,22 +46,22 @@ class SecurityCenter extends SecurityCenterContext { constructor(credentials: msRest.ServiceClientCredentials, subscriptionId: string, ascLocation: string, options?: Models.SecurityCenterOptions) { super(credentials, subscriptionId, ascLocation, options); this.pricings = new operations.Pricings(this); - this.securityContacts = new operations.SecurityContacts(this); - this.workspaceSettings = new operations.WorkspaceSettings(this); - this.autoProvisioningSettings = new operations.AutoProvisioningSettings(this); - this.compliances = new operations.Compliances(this); - this.advancedThreatProtection = new operations.AdvancedThreatProtection(this); - this.settings = new operations.Settings(this); - this.informationProtectionPolicies = new operations.InformationProtectionPolicies(this); - this.operations = new operations.Operations(this); - this.locations = new operations.Locations(this); - this.tasks = new operations.Tasks(this); this.alerts = new operations.Alerts(this); + this.settings = new operations.Settings(this); + this.allowedConnections = new operations.AllowedConnections(this); this.discoveredSecuritySolutions = new operations.DiscoveredSecuritySolutions(this); - this.jitNetworkAccessPolicies = new operations.JitNetworkAccessPolicies(this); this.externalSecuritySolutions = new operations.ExternalSecuritySolutions(this); + this.jitNetworkAccessPolicies = new operations.JitNetworkAccessPolicies(this); + this.locations = new operations.Locations(this); + this.operations = new operations.Operations(this); + this.tasks = new operations.Tasks(this); this.topology = new operations.Topology(this); - this.allowedConnections = new operations.AllowedConnections(this); + this.advancedThreatProtection = new operations.AdvancedThreatProtection(this); + this.autoProvisioningSettings = new operations.AutoProvisioningSettings(this); + this.compliances = new operations.Compliances(this); + this.informationProtectionPolicies = new operations.InformationProtectionPolicies(this); + this.securityContacts = new operations.SecurityContacts(this); + this.workspaceSettings = new operations.WorkspaceSettings(this); } } diff --git a/packages/@azure/arm-security/lib/securityCenterContext.ts b/packages/@azure/arm-security/lib/securityCenterContext.ts index 1456da91b8ae..3cbbd0dd847c 100644 --- a/packages/@azure/arm-security/lib/securityCenterContext.ts +++ b/packages/@azure/arm-security/lib/securityCenterContext.ts @@ -13,7 +13,7 @@ import * as msRest from "@azure/ms-rest-js"; import * as msRestAzure from "@azure/ms-rest-azure-js"; const packageName = "@azure/arm-security"; -const packageVersion = "0.1.0"; +const packageVersion = "1.2.0"; export class SecurityCenterContext extends msRestAzure.AzureServiceClient { credentials: msRest.ServiceClientCredentials; diff --git a/packages/@azure/arm-security/package.json b/packages/@azure/arm-security/package.json index f787f1cab990..bab4f254e9dc 100644 --- a/packages/@azure/arm-security/package.json +++ b/packages/@azure/arm-security/package.json @@ -4,8 +4,8 @@ "description": "SecurityCenter Library with typescript type definitions for node.js and browser.", "version": "1.2.0", "dependencies": { - "@azure/ms-rest-azure-js": "^1.1.0", - "@azure/ms-rest-js": "^1.1.0", + "@azure/ms-rest-azure-js": "^1.2.0", + "@azure/ms-rest-js": "^1.2.0", "tslib": "^1.9.3" }, "keywords": [ @@ -23,6 +23,7 @@ "typescript": "^3.1.1", "rollup": "^0.66.2", "rollup-plugin-node-resolve": "^3.4.0", + "rollup-plugin-sourcemaps": "^0.4.2", "uglify-js": "^3.4.9" }, "homepage": "https://github.com/azure/azure-sdk-for-js/tree/master/packages/@azure/arm-security", @@ -51,6 +52,5 @@ "minify": "uglifyjs -c -m --comments --source-map \"content='./dist/arm-security.js.map'\" -o ./dist/arm-security.min.js ./dist/arm-security.js", "prepack": "npm install && npm run build" }, - "sideEffects": false, - "authPublish": true + "sideEffects": false } diff --git a/packages/@azure/arm-security/rollup.config.js b/packages/@azure/arm-security/rollup.config.js index 651c85e10ed3..43a7bd9aa064 100644 --- a/packages/@azure/arm-security/rollup.config.js +++ b/packages/@azure/arm-security/rollup.config.js @@ -1,10 +1,16 @@ +import rollup from "rollup"; import nodeResolve from "rollup-plugin-node-resolve"; +import sourcemaps from "rollup-plugin-sourcemaps"; + /** - * @type {import('rollup').RollupFileOptions} + * @type {rollup.RollupFileOptions} */ const config = { - input: './esm/securityCenter.js', - external: ["@azure/ms-rest-js", "@azure/ms-rest-azure-js"], + input: "./esm/securityCenter.js", + external: [ + "@azure/ms-rest-js", + "@azure/ms-rest-azure-js" + ], output: { file: "./dist/arm-security.js", format: "umd", @@ -16,16 +22,16 @@ const config = { }, banner: `/* * 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. */` }, plugins: [ - nodeResolve({ module: true }) + nodeResolve({ module: true }), + sourcemaps() ] }; + export default config;