diff --git a/sdk/security/arm-security/src/models/advancedThreatProtectionMappers.ts b/sdk/security/arm-security/src/models/advancedThreatProtectionMappers.ts index 46a777bfc5fe..e0a55620e2f0 100644 --- a/sdk/security/arm-security/src/models/advancedThreatProtectionMappers.ts +++ b/sdk/security/arm-security/src/models/advancedThreatProtectionMappers.ts @@ -13,7 +13,9 @@ export { AlertConfidenceReason, AlertEntity, AscLocation, + AssessmentStatus, AutoProvisioningSetting, + AzureResourceDetails, BaseResource, CloudError, Compliance, @@ -23,20 +25,14 @@ export { InformationProtectionKeyword, InformationProtectionPolicy, InformationType, - IoTSecurityAlertedDevice, - IoTSecurityAlertedDevicesList, - IoTSecurityDeviceAlert, - IoTSecurityDeviceAlertsList, - IoTSecurityDeviceRecommendation, - IoTSecurityDeviceRecommendationsList, - IoTSecuritySolutionAnalyticsModel, - IoTSecuritySolutionAnalyticsModelPropertiesDevicesMetricsItem, - IoTSeverityMetrics, Pricing, RegulatoryComplianceAssessment, RegulatoryComplianceControl, RegulatoryComplianceStandard, Resource, + ResourceDetails, + SecurityAssessment, + SecurityAssessmentMetadata, SecurityContact, SecurityTask, SecurityTaskParameters, diff --git a/sdk/security/arm-security/src/models/alertsMappers.ts b/sdk/security/arm-security/src/models/alertsMappers.ts index 8067565671da..1824c225321f 100644 --- a/sdk/security/arm-security/src/models/alertsMappers.ts +++ b/sdk/security/arm-security/src/models/alertsMappers.ts @@ -14,7 +14,9 @@ export { AlertEntity, AlertList, AscLocation, + AssessmentStatus, AutoProvisioningSetting, + AzureResourceDetails, BaseResource, CloudError, Compliance, @@ -24,20 +26,14 @@ export { InformationProtectionKeyword, InformationProtectionPolicy, InformationType, - IoTSecurityAlertedDevice, - IoTSecurityAlertedDevicesList, - IoTSecurityDeviceAlert, - IoTSecurityDeviceAlertsList, - IoTSecurityDeviceRecommendation, - IoTSecurityDeviceRecommendationsList, - IoTSecuritySolutionAnalyticsModel, - IoTSecuritySolutionAnalyticsModelPropertiesDevicesMetricsItem, - IoTSeverityMetrics, Pricing, RegulatoryComplianceAssessment, RegulatoryComplianceControl, RegulatoryComplianceStandard, Resource, + ResourceDetails, + SecurityAssessment, + SecurityAssessmentMetadata, SecurityContact, SecurityTask, SecurityTaskParameters, diff --git a/sdk/security/arm-security/src/models/assessmentsMappers.ts b/sdk/security/arm-security/src/models/assessmentsMappers.ts new file mode 100644 index 000000000000..91ceba9dedc5 --- /dev/null +++ b/sdk/security/arm-security/src/models/assessmentsMappers.ts @@ -0,0 +1,45 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +export { + discriminators, + AdvancedThreatProtectionSetting, + Alert, + AlertConfidenceReason, + AlertEntity, + AscLocation, + AssessmentStatus, + AutoProvisioningSetting, + AzureResourceDetails, + BaseResource, + CloudError, + Compliance, + ComplianceResult, + ComplianceSegment, + DataExportSetting, + InformationProtectionKeyword, + InformationProtectionPolicy, + InformationType, + Pricing, + RegulatoryComplianceAssessment, + RegulatoryComplianceControl, + RegulatoryComplianceStandard, + Resource, + ResourceDetails, + SecurityAssessment, + SecurityAssessmentList, + SecurityAssessmentMetadata, + SecurityContact, + SecurityTask, + SecurityTaskParameters, + SensitivityLabel, + ServerVulnerabilityAssessment, + Setting, + SettingResource, + WorkspaceSetting +} from "../models/mappers"; diff --git a/sdk/security/arm-security/src/models/assessmentsMetadataMappers.ts b/sdk/security/arm-security/src/models/assessmentsMetadataMappers.ts new file mode 100644 index 000000000000..79e17df99488 --- /dev/null +++ b/sdk/security/arm-security/src/models/assessmentsMetadataMappers.ts @@ -0,0 +1,45 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +export { + discriminators, + AdvancedThreatProtectionSetting, + Alert, + AlertConfidenceReason, + AlertEntity, + AscLocation, + AssessmentStatus, + AutoProvisioningSetting, + AzureResourceDetails, + BaseResource, + CloudError, + Compliance, + ComplianceResult, + ComplianceSegment, + DataExportSetting, + InformationProtectionKeyword, + InformationProtectionPolicy, + InformationType, + Pricing, + RegulatoryComplianceAssessment, + RegulatoryComplianceControl, + RegulatoryComplianceStandard, + Resource, + ResourceDetails, + SecurityAssessment, + SecurityAssessmentMetadata, + SecurityAssessmentMetadataList, + SecurityContact, + SecurityTask, + SecurityTaskParameters, + SensitivityLabel, + ServerVulnerabilityAssessment, + Setting, + SettingResource, + WorkspaceSetting +} from "../models/mappers"; diff --git a/sdk/security/arm-security/src/models/autoProvisioningSettingsMappers.ts b/sdk/security/arm-security/src/models/autoProvisioningSettingsMappers.ts index 0f9248a804c6..151ad72f571d 100644 --- a/sdk/security/arm-security/src/models/autoProvisioningSettingsMappers.ts +++ b/sdk/security/arm-security/src/models/autoProvisioningSettingsMappers.ts @@ -13,8 +13,10 @@ export { AlertConfidenceReason, AlertEntity, AscLocation, + AssessmentStatus, AutoProvisioningSetting, AutoProvisioningSettingList, + AzureResourceDetails, BaseResource, CloudError, Compliance, @@ -24,20 +26,14 @@ export { InformationProtectionKeyword, InformationProtectionPolicy, InformationType, - IoTSecurityAlertedDevice, - IoTSecurityAlertedDevicesList, - IoTSecurityDeviceAlert, - IoTSecurityDeviceAlertsList, - IoTSecurityDeviceRecommendation, - IoTSecurityDeviceRecommendationsList, - IoTSecuritySolutionAnalyticsModel, - IoTSecuritySolutionAnalyticsModelPropertiesDevicesMetricsItem, - IoTSeverityMetrics, Pricing, RegulatoryComplianceAssessment, RegulatoryComplianceControl, RegulatoryComplianceStandard, Resource, + ResourceDetails, + SecurityAssessment, + SecurityAssessmentMetadata, SecurityContact, SecurityTask, SecurityTaskParameters, diff --git a/sdk/security/arm-security/src/models/complianceResultsMappers.ts b/sdk/security/arm-security/src/models/complianceResultsMappers.ts index ba2ae09c6934..520237f0e4cb 100644 --- a/sdk/security/arm-security/src/models/complianceResultsMappers.ts +++ b/sdk/security/arm-security/src/models/complianceResultsMappers.ts @@ -13,7 +13,9 @@ export { AlertConfidenceReason, AlertEntity, AscLocation, + AssessmentStatus, AutoProvisioningSetting, + AzureResourceDetails, BaseResource, CloudError, Compliance, @@ -24,20 +26,14 @@ export { InformationProtectionKeyword, InformationProtectionPolicy, InformationType, - IoTSecurityAlertedDevice, - IoTSecurityAlertedDevicesList, - IoTSecurityDeviceAlert, - IoTSecurityDeviceAlertsList, - IoTSecurityDeviceRecommendation, - IoTSecurityDeviceRecommendationsList, - IoTSecuritySolutionAnalyticsModel, - IoTSecuritySolutionAnalyticsModelPropertiesDevicesMetricsItem, - IoTSeverityMetrics, Pricing, RegulatoryComplianceAssessment, RegulatoryComplianceControl, RegulatoryComplianceStandard, Resource, + ResourceDetails, + SecurityAssessment, + SecurityAssessmentMetadata, SecurityContact, SecurityTask, SecurityTaskParameters, diff --git a/sdk/security/arm-security/src/models/compliancesMappers.ts b/sdk/security/arm-security/src/models/compliancesMappers.ts index f06142d53e7c..ba21d11daa9f 100644 --- a/sdk/security/arm-security/src/models/compliancesMappers.ts +++ b/sdk/security/arm-security/src/models/compliancesMappers.ts @@ -13,7 +13,9 @@ export { AlertConfidenceReason, AlertEntity, AscLocation, + AssessmentStatus, AutoProvisioningSetting, + AzureResourceDetails, BaseResource, CloudError, Compliance, @@ -24,20 +26,14 @@ export { InformationProtectionKeyword, InformationProtectionPolicy, InformationType, - IoTSecurityAlertedDevice, - IoTSecurityAlertedDevicesList, - IoTSecurityDeviceAlert, - IoTSecurityDeviceAlertsList, - IoTSecurityDeviceRecommendation, - IoTSecurityDeviceRecommendationsList, - IoTSecuritySolutionAnalyticsModel, - IoTSecuritySolutionAnalyticsModelPropertiesDevicesMetricsItem, - IoTSeverityMetrics, Pricing, RegulatoryComplianceAssessment, RegulatoryComplianceControl, RegulatoryComplianceStandard, Resource, + ResourceDetails, + SecurityAssessment, + SecurityAssessmentMetadata, SecurityContact, SecurityTask, SecurityTaskParameters, diff --git a/sdk/security/arm-security/src/models/index.ts b/sdk/security/arm-security/src/models/index.ts index e31e22523b5d..8627d9d58848 100644 --- a/sdk/security/arm-security/src/models/index.ts +++ b/sdk/security/arm-security/src/models/index.ts @@ -56,10 +56,7 @@ export interface AscLocation extends Resource { */ export interface Pricing extends Resource { /** - * The pricing tier value. Azure Security Center is provided in two pricing tiers: free and - * standard, with the standard tier available with a trial period. The standard tier offers - * advanced security capabilities, while the free tier offers basic security features. Possible - * values include: 'Free', 'Standard' + * The pricing tier value. Possible values include: 'Free', 'Standard' */ pricingTier: PricingTier; /** @@ -789,174 +786,6 @@ export interface Kind { kind?: string; } -/** - * Represents a summary of the alerts of the VM/server group - */ -export interface AppWhitelistingIssueSummary { - /** - * Possible values include: 'ViolationsAudited', 'ViolationsBlocked', - * 'MsiAndScriptViolationsAudited', 'MsiAndScriptViolationsBlocked', - * 'ExecutableViolationsAudited', 'RulesViolatedManually' - */ - issue?: Issue; - /** - * The number of machines in the VM/server group that have this alert - */ - numberOfVms?: number; -} - -/** - * Represents a machine that is part of a VM/server group - */ -export interface VmRecommendation { - /** - * Possible values include: 'Configured', 'NotConfigured', 'InProgress', 'Failed', 'NoStatus' - */ - configurationStatus?: ConfigurationStatus; - /** - * Possible values include: 'Recommended', 'Add', 'Remove' - */ - recommendationAction?: RecommendationAction; - resourceId?: string; -} - -/** - * Represents the publisher information of a process/rule - */ -export interface PublisherInfo { - /** - * The Subject field of the x.509 certificate used to sign the code, using the following fields - - * O = Organization, L = Locality, S = State or Province, and C = Country - */ - publisherName?: string; - /** - * The product name taken from the file's version resource - */ - productName?: string; - /** - * The "OriginalName" field taken from the file's version resource - */ - binaryName?: string; - /** - * The binary file version taken from the file's version resource - */ - version?: string; -} - -/** - * Represents a user that is recommended to be allowed for a certain rule - */ -export interface UserRecommendation { - /** - * Represents a user that is recommended to be allowed for a certain rule - */ - username?: string; - /** - * Possible values include: 'Recommended', 'Add', 'Remove' - */ - recommendationAction?: RecommendationAction1; -} - -/** - * Represents a path that is recommended to be allowed and its properties - */ -export interface PathRecommendation { - /** - * The full path to whitelist - */ - path?: string; - /** - * Possible values include: 'Recommended', 'Add', 'Remove' - */ - action?: Action; - /** - * Possible values include: 'File', 'FileHash', 'PublisherSignature', 'ProductSignature', - * 'BinarySignature', 'VersionAndAboveSignature' - */ - type?: Type; - publisherInfo?: PublisherInfo; - /** - * Whether the path is commonly run on the machine - */ - common?: boolean; - userSids?: string[]; - usernames?: UserRecommendation[]; - /** - * Possible values include: 'Exe', 'Dll', 'Msi', 'Script', 'Executable', 'Unknown' - */ - fileType?: FileType; - /** - * Possible values include: 'Configured', 'NotConfigured', 'InProgress', 'Failed', 'NoStatus' - */ - configurationStatus?: ConfigurationStatus1; -} - -/** - * An interface representing AppWhitelistingGroup. - */ -export interface AppWhitelistingGroup { - /** - * Resource Id - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly id?: string; - /** - * Resource name - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly name?: string; - /** - * Resource type - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly type?: string; - /** - * Location where the resource is stored - * **NOTE: This property will not be serialized. It can only be populated by the server.** - */ - readonly location?: string; - /** - * Possible values include: 'Audit', 'Enforce' - */ - enforcementMode?: EnforcementMode; - /** - * Possible values include: 'Configured', 'NotConfigured', 'InProgress', 'Failed', 'NoStatus' - */ - configurationStatus?: ConfigurationStatus2; - /** - * Possible values include: 'Recommended', 'NotRecommended', 'NotAvailable', 'NoStatus' - */ - recommendationStatus?: RecommendationStatus; - issues?: AppWhitelistingIssueSummary[]; - /** - * Possible values include: 'Azure_AppLocker', 'Azure_AuditD', 'NonAzure_AppLocker', - * 'NonAzure_AuditD', 'None' - */ - sourceSystem?: SourceSystem; - vmRecommendations?: VmRecommendation[]; - pathRecommendations?: PathRecommendation[]; -} - -/** - * Represents a list of VM/server groups and set of rules that are Recommended by Azure Security - * Center to be allowed - */ -export interface AppWhitelistingGroups { - value?: AppWhitelistingGroup[]; -} - -/** - * The altered data of the recommended VM/server group policy - */ -export interface AppWhitelistingPutGroupData { - /** - * Possible values include: 'Audit', 'Enforce' - */ - enforcementMode?: EnforcementMode1; - vmRecommendations?: VmRecommendation[]; - pathRecommendations?: PathRecommendation[]; -} - /** * Security operation display */ @@ -1012,7 +841,7 @@ export interface SecurityTaskParameters { /** * Describes unknown properties. The value of an unknown property can be of "any" type. */ - [property: string]: any; + version?: string; } /** @@ -1097,7 +926,9 @@ export interface TopologySingleResource { * The location of this resource * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly location?: string; + common?: boolean; + userSids?: string[]; + usernames?: UserRecommendation[]; /** * 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.** @@ -1334,42 +1165,482 @@ export interface WorkspaceSetting extends Resource { } /** - * A container holding only the Tags for a resource, allowing the user to update the tags. + * Contains the possible cases for ResourceDetails. */ -export interface TagsResource { +export type ResourceDetailsUnion = ResourceDetails | AzureResourceDetails; + +/** + * Details of the resource that was assessed + */ +export interface ResourceDetails { /** - * Resource tags + * Polymorphic Discriminator */ - tags?: { [propertyName: string]: string }; + assessedResourceSource: "ResourceDetails"; } /** - * Properties of the solution's user defined resources. + * The result of the assessment */ -export interface UserDefinedResourcesProperties { +export interface AssessmentStatus { /** - * Azure Resource Graph query which represents the security solution's user defined resources. - * Required to start with "where type != "Microsoft.Devices/IotHubs"" + * Programmatic code for the status of the assessment. Possible values include: 'Healthy', + * 'Unhealthy', 'NotApplicable' + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - query: string; + readonly code?: AssessmentStatusCode; /** - * List of Azure subscription ids on which the user defined resources query should be executed. + * Programmatic code for the cause of the assessment status + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - querySubscriptions: string[]; + readonly cause?: string; + /** + * Human readable description of the assessment status + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly description?: string; +} + +/** + * Security assessment on a resource + */ +export interface SecurityAssessment extends Resource { + resourceDetails?: ResourceDetailsUnion; + /** + * User friendly display name of the assessment + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly displayName?: string; + status?: AssessmentStatus; + /** + * Additional data regarding the assessment + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly additionalData?: { [propertyName: string]: string }; +} + +/** + * Details of the resource that was assessed + */ +export interface AzureResourceDetails { + /** + * Polymorphic Discriminator + */ + assessedResourceSource: "Azure"; + /** + * Azure resource ID of the assessed resource + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly id?: string; +} + +/** + * Security assessment metadata + */ +export interface SecurityAssessmentMetadata extends Resource { + /** + * User friendly display name of the assessment + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly displayName?: string; + /** + * Azure resource ID of the policy definition that turns this assessment calculation on + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly policyDefinitionId?: string; + /** + * Human readable description of the assessment + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly description?: string; + /** + * Human readable description of what you should do to mitigate this security issue + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly remediationDescription?: string; + /** + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly category?: Category[]; + /** + * Weight for the security score calculation. the higher this number, this severity of this + * assessment is higher + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly secureScoreWeight?: number; + /** + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly requiredPricingBundle?: RequiredPricingBundle[]; + /** + * True if this assessment is in preview release status + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly preview?: boolean; +} + +/** + * Regulatory compliance standard details and state + */ +export interface RegulatoryComplianceStandard extends Resource { + /** + * Aggregative state based on the standard's supported controls states. Possible values include: + * 'Passed', 'Failed', 'Skipped', 'Unsupported' + */ + state?: State; + /** + * The number of supported regulatory compliance controls of the given standard with a passed + * state + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly passedControls?: number; + /** + * The number of supported regulatory compliance controls of the given standard with a failed + * state + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly failedControls?: number; + /** + * The number of supported regulatory compliance controls of the given standard with a skipped + * state + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly skippedControls?: number; + /** + * The number of regulatory compliance controls of the given standard which are unsupported by + * automated assessments + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly unsupportedControls?: number; +} + +/** + * Regulatory compliance control details and state + */ +export interface RegulatoryComplianceControl extends Resource { + /** + * The description of the regulatory compliance control + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly description?: string; + /** + * Aggregative state based on the control's supported assessments states. Possible values + * include: 'Passed', 'Failed', 'Skipped', 'Unsupported' + */ + state?: State; + /** + * The number of supported regulatory compliance assessments of the given control with a passed + * state + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly passedAssessments?: number; + /** + * The number of supported regulatory compliance assessments of the given control with a failed + * state + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly failedAssessments?: number; + /** + * The number of supported regulatory compliance assessments of the given control with a skipped + * state + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly skippedAssessments?: number; } /** - * Recommendation configuration + * Regulatory compliance assessment details and state */ -export interface RecommendationConfigurationProperties { +export interface RegulatoryComplianceAssessment extends Resource { + /** + * The description of the regulatory compliance assessment + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly description?: string; + /** + * The expected type of assessment contained in the AssessmentDetailsLink + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly assessmentType?: string; + /** + * Link to more detailed assessment results data. The response type will be according to the + * assessmentType field + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly assessmentDetailsLink?: string; /** - * The recommendation type. Possible values include: 'IoT_ACRAuthentication', - * 'IoT_AgentSendsUnutilizedMessages', 'IoT_Baseline', 'IoT_EdgeHubMemOptimize', - * 'IoT_EdgeLoggingOptions', 'IoT_InconsistentModuleSettings', 'IoT_InstallAgent', - * 'IoT_IPFilter_DenyAll', 'IoT_IPFilter_PermissiveRule', 'IoT_OpenPorts', - * 'IoT_PermissiveFirewallPolicy', 'IoT_PermissiveInputFirewallRules', - * 'IoT_PermissiveOutputFirewallRules', 'IoT_PrivilegedDockerOptions', 'IoT_SharedCredentials', - * 'IoT_VulnerableTLSCipherSuite' + * Aggregative state based on the assessment's scanned resources states. Possible values include: + * 'Passed', 'Failed', 'Skipped', 'Unsupported' + */ + state?: State; + /** + * The given assessment's related resources count with passed state. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly passedResources?: number; + /** + * The given assessment's related resources count with failed state. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly failedResources?: number; + /** + * The given assessment's related resources count with skipped state. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly skippedResources?: number; + /** + * The given assessment's related resources count with unsupported state. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly unsupportedResources?: number; +} + +/** + * Describes the server vulnerability assessment details on a resource + */ +export interface ServerVulnerabilityAssessment extends Resource { + /** + * The provisioningState of the vulnerability assessment capability on the VM. Possible values + * include: 'Succeeded', 'Failed', 'Canceled', 'Provisioning', 'Deprovisioning' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly provisioningState?: ProvisioningState; +} + +/** + * List of server vulnerability assessments + */ +export interface ServerVulnerabilityAssessmentsList { + value?: ServerVulnerabilityAssessment[]; +} + +/** + * Optional Parameters. + */ +export interface Compliance extends Resource { + /** + * OData filter. Optional. + */ + readonly assessmentTimestampUtcDate?: Date; + /** + * OData select. Optional. + */ + readonly resourceCount?: number; + /** + * OData expand. Optional. + */ + readonly assessmentResult?: ComplianceSegment[]; +} + +/** + * Optional Parameters. + */ +export interface SensitivityLabel { + /** + * OData filter. Optional. + */ + displayName?: string; + /** + * OData select. Optional. + */ + order?: number; + /** + * OData expand. Optional. + */ + enabled?: boolean; +} + +/** + * Optional Parameters. + */ +export interface InformationProtectionKeyword { + /** + * OData filter. Optional. + */ + pattern?: string; + /** + * OData select. Optional. + */ + custom?: boolean; + /** + * OData expand. Optional. + */ + canBeNumeric?: boolean; + /** + * Indicates whether the keyword is excluded or not. + */ + excluded?: boolean; +} + +/** + * Optional Parameters. + */ +export interface InformationType { + /** + * OData filter. Optional. + */ + displayName?: string; + /** + * OData select. Optional. + */ + order?: number; + /** + * OData expand. Optional. + */ + expand?: string; +} + +/** + * Optional Parameters. + */ +export interface TasksListOptionalParams extends msRest.RequestOptionsBase { + /** + * OData filter. Optional. + */ + filter?: string; +} + +/** + * Optional Parameters. + */ +export interface TasksListByHomeRegionOptionalParams extends msRest.RequestOptionsBase { + /** + * OData filter. Optional. + */ + filter?: string; +} + +/** + * Optional Parameters. + */ +export interface TasksListByResourceGroupOptionalParams extends msRest.RequestOptionsBase { + /** + * OData filter. Optional. + */ + filter?: string; +} + +/** + * Optional Parameters. + */ +export interface RegulatoryComplianceStandardsListOptionalParams extends msRest.RequestOptionsBase { + /** + * OData filter. Optional. + */ + filter?: string; +} + +/** + * Optional Parameters. + */ +export interface RegulatoryComplianceControlsListOptionalParams extends msRest.RequestOptionsBase { + /** + * OData filter. Optional. + */ + filter?: string; +} + +/** + * Optional Parameters. + */ +export interface RegulatoryComplianceAssessmentsListOptionalParams extends msRest.RequestOptionsBase { + /** + * OData filter. Optional. + */ + filter?: string; +} + +/** + * An interface representing SecurityCenterOptions. + */ +export interface SecurityCenterOptions extends AzureServiceClientOptions { + baseUri?: string; +} + +/** + * @interface + * List of compliance results response + * @extends Array + */ +export interface ComplianceResultList extends Array { + /** + * The URI to fetch the next page. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + email: string; + /** + * The phone number of this security contact + */ + phone?: string; + /** + * Whether to send security alerts notifications to the security contact. Possible values + * include: 'On', 'Off' + */ + alertNotifications: AlertNotifications; + /** + * Whether to send security alerts notifications to subscription admins. Possible values include: + * 'On', 'Off' + */ + alertsToAdmins: AlertsToAdmins; +} + +/** + * @interface + * List of security alerts + * @extends Array + */ +export interface AlertList extends Array { + /** + * The URI to fetch the next page. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + workspaceId: string; + /** + * All the VMs in this scope will send their security data to the mentioned workspace unless + * overridden by a setting with more specific scope + */ + scope: string; +} + +/** + * @interface + * Subscription settings list. + * @extends Array + */ +export interface SettingsList extends Array { + /** + * The URI to fetch the next page. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + tags?: { [propertyName: string]: string }; +} + +/** + * @interface + * List of all possible traffic between Azure resources + * @extends Array + */ +export interface AllowedConnectionsList extends Array { + /** + * The URI to fetch the next page. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + query: string; + /** + * List of Azure subscription ids on which the user defined resources query should be executed. + */ + querySubscriptions: string[]; +} + +/** + * @interface + * An interface representing the DiscoveredSecuritySolutionList. + * @extends Array + */ +export interface DiscoveredSecuritySolutionList extends Array { + /** + * The URI to fetch the next page. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ recommendationType: RecommendationType; /** @@ -1384,11 +1655,13 @@ export interface RecommendationConfigurationProperties { } /** - * Security Solution + * @interface + * An interface representing the ExternalSecuritySolutionList. + * @extends Array */ -export interface IoTSecuritySolutionModel { +export interface ExternalSecuritySolutionList extends Array { /** - * Resource Id + * The URI to fetch the next page. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly id?: string; @@ -1445,19 +1718,27 @@ export interface IoTSecuritySolutionModel { } /** - * An interface representing UpdateIotSecuritySolutionData. + * @interface + * An interface representing the JitNetworkAccessPoliciesList. + * @extends Array */ -export interface UpdateIotSecuritySolutionData extends TagsResource { - userDefinedResources?: UserDefinedResourcesProperties; - recommendationsConfiguration?: RecommendationConfigurationProperties[]; +export interface JitNetworkAccessPoliciesList extends Array { + /** + * The URI to fetch the next page. + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly nextLink?: string; } /** - * Severity metrics + * @interface + * List of locations where ASC saves your data + * @extends Array */ export interface IoTSeverityMetrics { /** - * count of high severity items + * The URI to fetch the next page. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ high?: number; /** @@ -1471,11 +1752,14 @@ export interface IoTSeverityMetrics { } /** - * An interface representing IoTSecuritySolutionAnalyticsModelPropertiesDevicesMetricsItem. + * @interface + * List of possible operations for Microsoft.Security resource provider + * @extends Array */ -export interface IoTSecuritySolutionAnalyticsModelPropertiesDevicesMetricsItem { +export interface OperationList extends Array { /** - * the date of the metrics + * The URI to fetch the next page. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ date?: Date; /** @@ -1485,11 +1769,13 @@ export interface IoTSecuritySolutionAnalyticsModelPropertiesDevicesMetricsItem { } /** - * Statistic information about the number of alerts per device during the last period + * @interface + * List of security task recommendations + * @extends Array */ -export interface IoTSecurityAlertedDevice { +export interface SecurityTaskList extends Array { /** - * Name of the alert type + * The URI to fetch the next page. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly deviceId?: string; @@ -1501,13 +1787,11 @@ export interface IoTSecurityAlertedDevice { } /** - * List of devices with the count of raised alerts + * @interface + * An interface representing the TopologyList. + * @extends Array */ -export interface IoTSecurityAlertedDevicesList { - /** - * List of aggregated alerts data - */ - value: IoTSecurityAlertedDevice[]; +export interface TopologyList extends Array { /** * The URI to fetch the next page. * **NOTE: This property will not be serialized. It can only be populated by the server.** @@ -1516,11 +1800,13 @@ export interface IoTSecurityAlertedDevicesList { } /** - * Statistic information about the number of alerts per alert type during the last period + * @interface + * List of all the auto provisioning settings response + * @extends Array */ -export interface IoTSecurityDeviceAlert { +export interface AutoProvisioningSettingList extends Array { /** - * Display name of the alert + * The URI to fetch the next page. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly alertDisplayName?: string; @@ -1538,13 +1824,11 @@ export interface IoTSecurityDeviceAlert { } /** - * List of alerts with the count of raised alerts + * @interface + * List of Compliance objects response + * @extends Array */ -export interface IoTSecurityDeviceAlertsList { - /** - * List of top alerts data - */ - value: IoTSecurityDeviceAlert[]; +export interface ComplianceList extends Array { /** * The URI to fetch the next page. * **NOTE: This property will not be serialized. It can only be populated by the server.** @@ -1553,11 +1837,13 @@ export interface IoTSecurityDeviceAlertsList { } /** - * Statistic information about the number of recommendations per recommendation type + * @interface + * Information protection policies response. + * @extends Array */ -export interface IoTSecurityDeviceRecommendation { +export interface InformationProtectionPolicyList extends Array { /** - * Display name of the recommendation + * The URI to fetch the next page. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ readonly recommendationDisplayName?: string; @@ -1575,13 +1861,11 @@ export interface IoTSecurityDeviceRecommendation { } /** - * List of recommendations with the count of devices + * @interface + * List of security contacts response + * @extends Array */ -export interface IoTSecurityDeviceRecommendationsList { - /** - * List of aggregated recommendation data - */ - value: IoTSecurityDeviceRecommendation[]; +export interface SecurityContactList extends Array { /** * The URI to fetch the next page. * **NOTE: This property will not be serialized. It can only be populated by the server.** @@ -1590,46 +1874,76 @@ export interface IoTSecurityDeviceRecommendationsList { } /** - * Security Analytics of a security solution + * @interface + * List of workspace settings response + * @extends Array */ -export interface IoTSecuritySolutionAnalyticsModel extends Resource { +export interface WorkspaceSettingList extends Array { /** - * Security Analytics of a security solution + * The URI to fetch the next page. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly metrics?: IoTSeverityMetrics; + readonly nextLink?: string; +} + +/** + * @interface + * List of security assessments + * @extends Array + */ +export interface SecurityAssessmentList extends Array { /** - * number of unhealthy devices + * The URI to fetch the next page. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly unhealthyDeviceCount?: number; + readonly nextLink?: string; +} + +/** + * @interface + * List of security assessment metadata + * @extends Array + */ +export interface SecurityAssessmentMetadataList extends Array { /** - * The list of devices metrics by the aggregated date. + * The URI to fetch the next page. * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly devicesMetrics?: IoTSecuritySolutionAnalyticsModelPropertiesDevicesMetricsItem[]; - /** - * The list of top 3 devices with the most attacked. - */ - topAlertedDevices?: IoTSecurityAlertedDevicesList; - /** - * The list of most prevalent 3 alerts. - */ - mostPrevalentDeviceAlerts?: IoTSecurityDeviceAlertsList; + readonly nextLink?: string; +} + +/** + * @interface + * List of regulatory compliance standards response + * @extends Array + */ +export interface RegulatoryComplianceStandardList extends Array { /** - * The list of most prevalent 3 recommendations. + * The URI to fetch the next page. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - mostPrevalentDeviceRecommendations?: IoTSecurityDeviceRecommendationsList; + readonly nextLink?: string; } /** - * List of Security Analytics of a security solution + * @interface + * List of regulatory compliance controls response + * @extends Array */ -export interface IoTSecuritySolutionAnalyticsModelList { +export interface RegulatoryComplianceControlList extends Array { /** - * List of Security Analytics of a security solution + * The URI to fetch the next page. + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - value: IoTSecuritySolutionAnalyticsModel[]; + readonly nextLink?: string; +} + +/** + * @interface + * List of regulatory compliance assessment response + * @extends Array + */ +export interface RegulatoryComplianceAssessmentList extends Array { /** * The URI to fetch the next page. * **NOTE: This property will not be serialized. It can only be populated by the server.** @@ -1637,6 +1951,14 @@ export interface IoTSecuritySolutionAnalyticsModelList { readonly nextLink?: string; } +/** + * Defines values for ResourceStatus. + * Possible values include: 'Healthy', 'NotApplicable', 'OffByPolicy', 'NotHealthy' + * @readonly + * @enum {string} + */ +export type ResourceStatus = 'Healthy' | 'NotApplicable' | 'OffByPolicy' | 'NotHealthy'; + /** * Security Solution Aggregated Alert information */ @@ -2493,197 +2815,146 @@ export type Status = 'Revoked' | 'Initiated'; export type StatusReason = 'Expired' | 'UserRequested' | 'NewerRequestInitiated'; /** - * Defines values for AutoProvision. - * Possible values include: 'On', 'Off' - * @readonly - * @enum {string} - */ -export type AutoProvision = 'On' | 'Off'; - -/** - * Defines values for AlertNotifications. - * Possible values include: 'On', 'Off' - * @readonly - * @enum {string} - */ -export type AlertNotifications = 'On' | 'Off'; - -/** - * Defines values for AlertsToAdmins. - * Possible values include: 'On', 'Off' - * @readonly - * @enum {string} - */ -export type AlertsToAdmins = 'On' | 'Off'; - -/** - * Defines values for SecuritySolutionStatus. - * Possible values include: 'Enabled', 'Disabled' - * @readonly - * @enum {string} - */ -export type SecuritySolutionStatus = 'Enabled' | 'Disabled'; - -/** - * Defines values for ExportData. - * Possible values include: 'RawEvents' - * @readonly - * @enum {string} - */ -export type ExportData = 'RawEvents'; - -/** - * Defines values for DataSource. - * Possible values include: 'TwinData' - * @readonly - * @enum {string} - */ -export type DataSource = 'TwinData'; - -/** - * Defines values for RecommendationType. - * Possible values include: 'IoT_ACRAuthentication', 'IoT_AgentSendsUnutilizedMessages', - * 'IoT_Baseline', 'IoT_EdgeHubMemOptimize', 'IoT_EdgeLoggingOptions', - * 'IoT_InconsistentModuleSettings', 'IoT_InstallAgent', 'IoT_IPFilter_DenyAll', - * 'IoT_IPFilter_PermissiveRule', 'IoT_OpenPorts', 'IoT_PermissiveFirewallPolicy', - * 'IoT_PermissiveInputFirewallRules', 'IoT_PermissiveOutputFirewallRules', - * 'IoT_PrivilegedDockerOptions', 'IoT_SharedCredentials', 'IoT_VulnerableTLSCipherSuite' - * @readonly - * @enum {string} - */ -export type RecommendationType = 'IoT_ACRAuthentication' | 'IoT_AgentSendsUnutilizedMessages' | 'IoT_Baseline' | 'IoT_EdgeHubMemOptimize' | 'IoT_EdgeLoggingOptions' | 'IoT_InconsistentModuleSettings' | 'IoT_InstallAgent' | 'IoT_IPFilter_DenyAll' | 'IoT_IPFilter_PermissiveRule' | 'IoT_OpenPorts' | 'IoT_PermissiveFirewallPolicy' | 'IoT_PermissiveInputFirewallRules' | 'IoT_PermissiveOutputFirewallRules' | 'IoT_PrivilegedDockerOptions' | 'IoT_SharedCredentials' | 'IoT_VulnerableTLSCipherSuite'; - -/** - * Defines values for RecommendationConfigStatus. - * Possible values include: 'Disabled', 'Enabled' + * Defines values for ReportedSeverity. + * Possible values include: 'Informational', 'Low', 'Medium', 'High' * @readonly * @enum {string} */ -export type RecommendationConfigStatus = 'Disabled' | 'Enabled'; +export type ReportedSeverity = 'Informational' | 'Low' | 'Medium' | 'High'; /** - * Defines values for State. - * Possible values include: 'Passed', 'Failed', 'Skipped', 'Unsupported' + * Defines values for SettingKind. + * Possible values include: 'DataExportSetting', 'AlertSuppressionSetting' * @readonly * @enum {string} */ -export type State = 'Passed' | 'Failed' | 'Skipped' | 'Unsupported'; +export type SettingKind = 'DataExportSetting' | 'AlertSuppressionSetting'; /** - * Defines values for ConnectionType. - * Possible values include: 'Internal', 'External' - * @readonly - * @enum {string} + * Contains response data for the listNext operation. */ -export type ConnectionType = 'Internal' | 'External'; +export type SettingsListNextResponse = SettingsList & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; /** - * Defines values for Issue. - * Possible values include: 'ViolationsAudited', 'ViolationsBlocked', - * 'MsiAndScriptViolationsAudited', 'MsiAndScriptViolationsBlocked', 'ExecutableViolationsAudited', - * 'RulesViolatedManually' + * Defines values for AadConnectivityState. + * Possible values include: 'Discovered', 'NotLicensed', 'Connected' * @readonly * @enum {string} */ -export type Issue = 'ViolationsAudited' | 'ViolationsBlocked' | 'MsiAndScriptViolationsAudited' | 'MsiAndScriptViolationsBlocked' | 'ExecutableViolationsAudited' | 'RulesViolatedManually'; +export type AadConnectivityState = 'Discovered' | 'NotLicensed' | 'Connected'; /** - * Defines values for ConfigurationStatus. - * Possible values include: 'Configured', 'NotConfigured', 'InProgress', 'Failed', 'NoStatus' + * Defines values for ExternalSecuritySolutionKind. + * Possible values include: 'CEF', 'ATA', 'AAD' * @readonly * @enum {string} */ -export type ConfigurationStatus = 'Configured' | 'NotConfigured' | 'InProgress' | 'Failed' | 'NoStatus'; +export type ExternalSecuritySolutionKind = 'CEF' | 'ATA' | 'AAD'; /** - * Defines values for RecommendationAction. - * Possible values include: 'Recommended', 'Add', 'Remove' + * Defines values for Protocol. + * Possible values include: 'TCP', 'UDP', 'All' * @readonly * @enum {string} */ -export type RecommendationAction = 'Recommended' | 'Add' | 'Remove'; +export type Protocol = 'TCP' | 'UDP' | '*'; /** - * Defines values for RecommendationAction1. - * Possible values include: 'Recommended', 'Add', 'Remove' - * @readonly - * @enum {string} + * Contains response data for the list operation. */ -export type RecommendationAction1 = 'Recommended' | 'Add' | 'Remove'; +export type AllowedConnectionsListResponse = AllowedConnectionsList & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; -/** - * Defines values for Action. - * Possible values include: 'Recommended', 'Add', 'Remove' - * @readonly - * @enum {string} - */ -export type Action = 'Recommended' | 'Add' | 'Remove'; + /** + * The response body as parsed JSON or XML + */ + parsedBody: AllowedConnectionsList; + }; +}; /** - * Defines values for Type. - * Possible values include: 'File', 'FileHash', 'PublisherSignature', 'ProductSignature', - * 'BinarySignature', 'VersionAndAboveSignature' + * Defines values for AutoProvision. + * Possible values include: 'On', 'Off' * @readonly * @enum {string} */ -export type Type = 'File' | 'FileHash' | 'PublisherSignature' | 'ProductSignature' | 'BinarySignature' | 'VersionAndAboveSignature'; +export type AutoProvision = 'On' | 'Off'; /** - * Defines values for FileType. - * Possible values include: 'Exe', 'Dll', 'Msi', 'Script', 'Executable', 'Unknown' + * Defines values for AlertNotifications. + * Possible values include: 'On', 'Off' * @readonly * @enum {string} */ -export type FileType = 'Exe' | 'Dll' | 'Msi' | 'Script' | 'Executable' | 'Unknown'; +export type AlertNotifications = 'On' | 'Off'; /** - * Defines values for ConfigurationStatus1. - * Possible values include: 'Configured', 'NotConfigured', 'InProgress', 'Failed', 'NoStatus' + * Defines values for AlertsToAdmins. + * Possible values include: 'On', 'Off' * @readonly * @enum {string} */ -export type ConfigurationStatus1 = 'Configured' | 'NotConfigured' | 'InProgress' | 'Failed' | 'NoStatus'; +export type AlertsToAdmins = 'On' | 'Off'; /** - * Defines values for EnforcementMode. - * Possible values include: 'Audit', 'Enforce' + * Defines values for AssessmentStatusCode. + * Possible values include: 'Healthy', 'Unhealthy', 'NotApplicable' * @readonly * @enum {string} */ -export type EnforcementMode = 'Audit' | 'Enforce'; +export type AssessmentStatusCode = 'Healthy' | 'Unhealthy' | 'NotApplicable'; /** - * Defines values for ConfigurationStatus2. - * Possible values include: 'Configured', 'NotConfigured', 'InProgress', 'Failed', 'NoStatus' + * Defines values for Category. + * Possible values include: 'Compute', 'Network', 'Data', 'IdentityAndAccess', 'IoT' * @readonly * @enum {string} */ -export type ConfigurationStatus2 = 'Configured' | 'NotConfigured' | 'InProgress' | 'Failed' | 'NoStatus'; +export type Category = 'Compute' | 'Network' | 'Data' | 'IdentityAndAccess' | 'IoT'; /** - * Defines values for RecommendationStatus. - * Possible values include: 'Recommended', 'NotRecommended', 'NotAvailable', 'NoStatus' + * Defines values for RequiredPricingBundle. + * Possible values include: 'VirtualMachines', 'SqlServers', 'AppServices', 'StorageAccounts' * @readonly * @enum {string} */ -export type RecommendationStatus = 'Recommended' | 'NotRecommended' | 'NotAvailable' | 'NoStatus'; +export type RequiredPricingBundle = 'VirtualMachines' | 'SqlServers' | 'AppServices' | 'StorageAccounts'; /** - * Defines values for SourceSystem. - * Possible values include: 'Azure_AppLocker', 'Azure_AuditD', 'NonAzure_AppLocker', - * 'NonAzure_AuditD', 'None' + * Defines values for State. + * Possible values include: 'Passed', 'Failed', 'Skipped', 'Unsupported' * @readonly * @enum {string} */ -export type SourceSystem = 'Azure_AppLocker' | 'Azure_AuditD' | 'NonAzure_AppLocker' | 'NonAzure_AuditD' | 'None'; +export type State = 'Passed' | 'Failed' | 'Skipped' | 'Unsupported'; /** - * Defines values for EnforcementMode1. - * Possible values include: 'Audit', 'Enforce' - * @readonly - * @enum {string} + * Contains response data for the get operation. */ -export type EnforcementMode1 = 'Audit' | 'Enforce'; +export type AllowedConnectionsGetResponse = AllowedConnectionsResource & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; /** * Defines values for ProvisioningState. @@ -2725,21 +2996,32 @@ export type SettingName = 'MCAS' | 'WDATP'; */ export type SettingName1 = 'MCAS' | 'WDATP'; + /** + * The response body as parsed JSON or XML + */ + parsedBody: AllowedConnectionsList; + }; +}; + /** - * Defines values for TaskUpdateActionType. - * Possible values include: 'Activate', 'Dismiss', 'Start', 'Resolve', 'Close' - * @readonly - * @enum {string} + * Contains response data for the list operation. */ -export type TaskUpdateActionType = 'Activate' | 'Dismiss' | 'Start' | 'Resolve' | 'Close'; +export type DiscoveredSecuritySolutionsListResponse = DiscoveredSecuritySolutionList & { + /** + * The underlying HTTP response. + */ + _response: msRest.HttpResponse & { + /** + * The response body as text (string format) + */ + bodyAsText: string; -/** - * Defines values for TaskUpdateActionType1. - * Possible values include: 'Activate', 'Dismiss', 'Start', 'Resolve', 'Close' - * @readonly - * @enum {string} - */ -export type TaskUpdateActionType1 = 'Activate' | 'Dismiss' | 'Start' | 'Resolve' | 'Close'; + /** + * The response body as parsed JSON or XML + */ + parsedBody: DiscoveredSecuritySolutionList; + }; +}; /** * Defines values for InformationProtectionPolicyName. @@ -2758,7 +3040,7 @@ export type InformationProtectionPolicyName = 'effective' | 'custom'; export type InformationProtectionPolicyName1 = 'effective' | 'custom'; /** - * Contains response data for the list operation. + * Contains response data for the listNext operation. */ export type ComplianceResultsListResponse = ComplianceResultList & { /** @@ -2833,7 +3115,7 @@ export type PricingsListResponse = PricingList & { /** * The response body as parsed JSON or XML */ - parsedBody: PricingList; + parsedBody: DiscoveredSecuritySolutionList; }; }; @@ -2853,7 +3135,7 @@ export type PricingsGetResponse = Pricing & { /** * The response body as parsed JSON or XML */ - parsedBody: Pricing; + parsedBody: ExternalSecuritySolutionList; }; }; @@ -2873,7 +3155,7 @@ export type PricingsUpdateResponse = Pricing & { /** * The response body as parsed JSON or XML */ - parsedBody: Pricing; + parsedBody: ExternalSecuritySolutionList; }; }; @@ -3318,7 +3600,7 @@ export type DiscoveredSecuritySolutionsGetResponse = DiscoveredSecuritySolution }; /** - * Contains response data for the listNext operation. + * Contains response data for the createOrUpdate operation. */ export type DiscoveredSecuritySolutionsListNextResponse = DiscoveredSecuritySolutionList & { /** @@ -3418,7 +3700,7 @@ export type ExternalSecuritySolutionsGetResponse = ExternalSecuritySolutionUnion }; /** - * Contains response data for the listNext operation. + * Contains response data for the listByResourceGroupAndRegionNext operation. */ export type ExternalSecuritySolutionsListNextResponse = ExternalSecuritySolutionList & { /** @@ -3538,7 +3820,7 @@ export type JitNetworkAccessPoliciesListByResourceGroupAndRegionResponse = JitNe }; /** - * Contains response data for the get operation. + * Contains response data for the listNext operation. */ export type JitNetworkAccessPoliciesGetResponse = JitNetworkAccessPolicy & { /** @@ -3677,66 +3959,6 @@ export type JitNetworkAccessPoliciesListByResourceGroupAndRegionNextResponse = J }; }; -/** - * Contains response data for the list operation. - */ -export type AdaptiveApplicationControlsListResponse = AppWhitelistingGroups & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: AppWhitelistingGroups; - }; -}; - -/** - * Contains response data for the get operation. - */ -export type AdaptiveApplicationControlsGetResponse = AppWhitelistingGroup & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: AppWhitelistingGroup; - }; -}; - -/** - * Contains response data for the put operation. - */ -export type AdaptiveApplicationControlsPutResponse = AppWhitelistingGroup & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: AppWhitelistingGroup; - }; -}; - /** * Contains response data for the list operation. */ @@ -3758,7 +3980,7 @@ export type LocationsListResponse = AscLocationList & { }; /** - * Contains response data for the get operation. + * Contains response data for the listNext operation. */ export type LocationsGetResponse = AscLocation & { /** @@ -3798,7 +4020,7 @@ export type LocationsListNextResponse = AscLocationList & { }; /** - * Contains response data for the list operation. + * Contains response data for the listByResourceGroupNext operation. */ export type OperationsListResponse = OperationList & { /** @@ -3818,7 +4040,7 @@ export type OperationsListResponse = OperationList & { }; /** - * Contains response data for the listNext operation. + * Contains response data for the list operation. */ export type OperationsListNextResponse = OperationList & { /** @@ -3838,7 +4060,7 @@ export type OperationsListNextResponse = OperationList & { }; /** - * Contains response data for the list operation. + * Contains response data for the listByHomeRegion operation. */ export type TasksListResponse = SecurityTaskList & { /** @@ -3953,7 +4175,7 @@ export type TasksListNextResponse = SecurityTaskList & { /** * The response body as parsed JSON or XML */ - parsedBody: SecurityTaskList; + parsedBody: AdvancedThreatProtectionSetting; }; }; @@ -3973,7 +4195,7 @@ export type TasksListByHomeRegionNextResponse = SecurityTaskList & { /** * The response body as parsed JSON or XML */ - parsedBody: SecurityTaskList; + parsedBody: AutoProvisioningSettingList; }; }; @@ -4478,7 +4700,7 @@ export type WorkspaceSettingsListResponse = WorkspaceSettingList & { }; /** - * Contains response data for the get operation. + * Contains response data for the create operation. */ export type WorkspaceSettingsGetResponse = WorkspaceSetting & { /** @@ -4538,7 +4760,7 @@ export type WorkspaceSettingsUpdateResponse = WorkspaceSetting & { }; /** - * Contains response data for the listNext operation. + * Contains response data for the getDefault operation. */ export type WorkspaceSettingsListNextResponse = WorkspaceSettingList & { /** @@ -4560,67 +4782,7 @@ export type WorkspaceSettingsListNextResponse = WorkspaceSettingList & { /** * Contains response data for the list operation. */ -export type IoTSecuritySolutionsListResponse = IoTSecuritySolutionsList & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: IoTSecuritySolutionsList; - }; -}; - -/** - * Contains response data for the listNext operation. - */ -export type IoTSecuritySolutionsListNextResponse = IoTSecuritySolutionsList & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: IoTSecuritySolutionsList; - }; -}; - -/** - * Contains response data for the list operation. - */ -export type IoTSecuritySolutionsResourceGroupListResponse = IoTSecuritySolutionsList & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: IoTSecuritySolutionsList; - }; -}; - -/** - * Contains response data for the listNext operation. - */ -export type IoTSecuritySolutionsResourceGroupListNextResponse = IoTSecuritySolutionsList & { +export type AssessmentsListResponse = SecurityAssessmentList & { /** * The underlying HTTP response. */ @@ -4633,114 +4795,14 @@ export type IoTSecuritySolutionsResourceGroupListNextResponse = IoTSecuritySolut /** * The response body as parsed JSON or XML */ - parsedBody: IoTSecuritySolutionsList; + parsedBody: SecurityAssessmentList; }; }; /** * Contains response data for the get operation. */ -export type IotSecuritySolutionGetResponse = IoTSecuritySolutionModel & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: IoTSecuritySolutionModel; - }; -}; - -/** - * Contains response data for the create operation. - */ -export type IotSecuritySolutionCreateResponse = IoTSecuritySolutionModel & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: IoTSecuritySolutionModel; - }; -}; - -/** - * Contains response data for the update operation. - */ -export type IotSecuritySolutionUpdateResponse = IoTSecuritySolutionModel & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: IoTSecuritySolutionModel; - }; -}; - -/** - * Contains response data for the getAll operation. - */ -export type IoTSecuritySolutionsAnalyticsGetAllResponse = IoTSecuritySolutionAnalyticsModelList & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: IoTSecuritySolutionAnalyticsModelList; - }; -}; - -/** - * Contains response data for the getDefault operation. - */ -export type IoTSecuritySolutionsAnalyticsGetDefaultResponse = IoTSecuritySolutionAnalyticsModel & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: IoTSecuritySolutionAnalyticsModel; - }; -}; - -/** - * Contains response data for the list operation. - */ -export type IoTSecuritySolutionsAnalyticsAggregatedAlertsListResponse = IoTSecurityAggregatedAlertList & { +export type AssessmentsGetResponse = SecurityAssessment & { /** * The underlying HTTP response. */ @@ -4753,14 +4815,14 @@ export type IoTSecuritySolutionsAnalyticsAggregatedAlertsListResponse = IoTSecur /** * The response body as parsed JSON or XML */ - parsedBody: IoTSecurityAggregatedAlertList; + parsedBody: SecurityAssessment; }; }; /** * Contains response data for the listNext operation. */ -export type IoTSecuritySolutionsAnalyticsAggregatedAlertsListNextResponse = IoTSecurityAggregatedAlertList & { +export type AssessmentsListNextResponse = SecurityAssessmentList & { /** * The underlying HTTP response. */ @@ -4773,14 +4835,14 @@ export type IoTSecuritySolutionsAnalyticsAggregatedAlertsListNextResponse = IoTS /** * The response body as parsed JSON or XML */ - parsedBody: IoTSecurityAggregatedAlertList; + parsedBody: SecurityAssessmentList; }; }; /** * Contains response data for the get operation. */ -export type IoTSecuritySolutionsAnalyticsAggregatedAlertGetResponse = IoTSecurityAggregatedAlert & { +export type AssessmentsMetadataListResponse = SecurityAssessmentMetadataList & { /** * The underlying HTTP response. */ @@ -4793,34 +4855,14 @@ export type IoTSecuritySolutionsAnalyticsAggregatedAlertGetResponse = IoTSecurit /** * The response body as parsed JSON or XML */ - parsedBody: IoTSecurityAggregatedAlert; + parsedBody: SecurityAssessmentMetadataList; }; }; /** * Contains response data for the get operation. */ -export type IoTSecuritySolutionsAnalyticsRecommendationGetResponse = IoTSecurityAggregatedRecommendation & { - /** - * The underlying HTTP response. - */ - _response: msRest.HttpResponse & { - /** - * The response body as text (string format) - */ - bodyAsText: string; - - /** - * The response body as parsed JSON or XML - */ - parsedBody: IoTSecurityAggregatedRecommendation; - }; -}; - -/** - * Contains response data for the list operation. - */ -export type IoTSecuritySolutionsAnalyticsRecommendationsListResponse = IoTSecurityAggregatedRecommendationList & { +export type AssessmentsMetadataGetResponse = SecurityAssessmentMetadata & { /** * The underlying HTTP response. */ @@ -4833,14 +4875,14 @@ export type IoTSecuritySolutionsAnalyticsRecommendationsListResponse = IoTSecuri /** * The response body as parsed JSON or XML */ - parsedBody: IoTSecurityAggregatedRecommendationList; + parsedBody: SecurityAssessmentMetadata; }; }; /** * Contains response data for the listNext operation. */ -export type IoTSecuritySolutionsAnalyticsRecommendationsListNextResponse = IoTSecurityAggregatedRecommendationList & { +export type AssessmentsMetadataListNextResponse = SecurityAssessmentMetadataList & { /** * The underlying HTTP response. */ @@ -4853,7 +4895,7 @@ export type IoTSecuritySolutionsAnalyticsRecommendationsListNextResponse = IoTSe /** * The response body as parsed JSON or XML */ - parsedBody: IoTSecurityAggregatedRecommendationList; + parsedBody: SecurityAssessmentMetadataList; }; }; diff --git a/sdk/security/arm-security/src/models/informationProtectionPoliciesMappers.ts b/sdk/security/arm-security/src/models/informationProtectionPoliciesMappers.ts index 3d573bbd97c0..f8deebfdf0b8 100644 --- a/sdk/security/arm-security/src/models/informationProtectionPoliciesMappers.ts +++ b/sdk/security/arm-security/src/models/informationProtectionPoliciesMappers.ts @@ -13,7 +13,9 @@ export { AlertConfidenceReason, AlertEntity, AscLocation, + AssessmentStatus, AutoProvisioningSetting, + AzureResourceDetails, BaseResource, CloudError, Compliance, @@ -24,20 +26,14 @@ export { InformationProtectionPolicy, InformationProtectionPolicyList, InformationType, - IoTSecurityAlertedDevice, - IoTSecurityAlertedDevicesList, - IoTSecurityDeviceAlert, - IoTSecurityDeviceAlertsList, - IoTSecurityDeviceRecommendation, - IoTSecurityDeviceRecommendationsList, - IoTSecuritySolutionAnalyticsModel, - IoTSecuritySolutionAnalyticsModelPropertiesDevicesMetricsItem, - IoTSeverityMetrics, Pricing, RegulatoryComplianceAssessment, RegulatoryComplianceControl, RegulatoryComplianceStandard, Resource, + ResourceDetails, + SecurityAssessment, + SecurityAssessmentMetadata, SecurityContact, SecurityTask, SecurityTaskParameters, diff --git a/sdk/security/arm-security/src/models/locationsMappers.ts b/sdk/security/arm-security/src/models/locationsMappers.ts index f6db62804122..b33318b79d7e 100644 --- a/sdk/security/arm-security/src/models/locationsMappers.ts +++ b/sdk/security/arm-security/src/models/locationsMappers.ts @@ -14,7 +14,9 @@ export { AlertEntity, AscLocation, AscLocationList, + AssessmentStatus, AutoProvisioningSetting, + AzureResourceDetails, BaseResource, CloudError, Compliance, @@ -24,20 +26,14 @@ export { InformationProtectionKeyword, InformationProtectionPolicy, InformationType, - IoTSecurityAlertedDevice, - IoTSecurityAlertedDevicesList, - IoTSecurityDeviceAlert, - IoTSecurityDeviceAlertsList, - IoTSecurityDeviceRecommendation, - IoTSecurityDeviceRecommendationsList, - IoTSecuritySolutionAnalyticsModel, - IoTSecuritySolutionAnalyticsModelPropertiesDevicesMetricsItem, - IoTSeverityMetrics, Pricing, RegulatoryComplianceAssessment, RegulatoryComplianceControl, RegulatoryComplianceStandard, Resource, + ResourceDetails, + SecurityAssessment, + SecurityAssessmentMetadata, SecurityContact, SecurityTask, SecurityTaskParameters, diff --git a/sdk/security/arm-security/src/models/mappers.ts b/sdk/security/arm-security/src/models/mappers.ts index ea0848a5ef41..d54b65d4284f 100644 --- a/sdk/security/arm-security/src/models/mappers.ts +++ b/sdk/security/arm-security/src/models/mappers.ts @@ -1293,348 +1293,6 @@ export const Kind: msRest.CompositeMapper = { } }; -export const AppWhitelistingIssueSummary: msRest.CompositeMapper = { - serializedName: "AppWhitelistingIssueSummary", - type: { - name: "Composite", - className: "AppWhitelistingIssueSummary", - modelProperties: { - issue: { - serializedName: "issue", - type: { - name: "String" - } - }, - numberOfVms: { - serializedName: "numberOfVms", - type: { - name: "Number" - } - } - } - } -}; - -export const VmRecommendation: msRest.CompositeMapper = { - serializedName: "VmRecommendation", - type: { - name: "Composite", - className: "VmRecommendation", - modelProperties: { - configurationStatus: { - serializedName: "configurationStatus", - type: { - name: "String" - } - }, - recommendationAction: { - serializedName: "recommendationAction", - type: { - name: "String" - } - }, - resourceId: { - serializedName: "resourceId", - type: { - name: "String" - } - } - } - } -}; - -export const PublisherInfo: msRest.CompositeMapper = { - serializedName: "PublisherInfo", - type: { - name: "Composite", - className: "PublisherInfo", - modelProperties: { - publisherName: { - serializedName: "publisherName", - type: { - name: "String" - } - }, - productName: { - serializedName: "productName", - type: { - name: "String" - } - }, - binaryName: { - serializedName: "binaryName", - type: { - name: "String" - } - }, - version: { - serializedName: "version", - type: { - name: "String" - } - } - } - } -}; - -export const UserRecommendation: msRest.CompositeMapper = { - serializedName: "UserRecommendation", - type: { - name: "Composite", - className: "UserRecommendation", - modelProperties: { - username: { - serializedName: "username", - type: { - name: "String" - } - }, - recommendationAction: { - serializedName: "recommendationAction", - type: { - name: "String" - } - } - } - } -}; - -export const PathRecommendation: msRest.CompositeMapper = { - serializedName: "PathRecommendation", - type: { - name: "Composite", - className: "PathRecommendation", - modelProperties: { - path: { - serializedName: "path", - type: { - name: "String" - } - }, - action: { - serializedName: "action", - type: { - name: "String" - } - }, - type: { - serializedName: "type", - type: { - name: "String" - } - }, - publisherInfo: { - serializedName: "publisherInfo", - type: { - name: "Composite", - className: "PublisherInfo" - } - }, - common: { - serializedName: "common", - type: { - name: "Boolean" - } - }, - userSids: { - serializedName: "userSids", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - usernames: { - serializedName: "usernames", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "UserRecommendation" - } - } - } - }, - fileType: { - serializedName: "fileType", - type: { - name: "String" - } - }, - configurationStatus: { - serializedName: "configurationStatus", - type: { - name: "String" - } - } - } - } -}; - -export const AppWhitelistingGroup: msRest.CompositeMapper = { - serializedName: "AppWhitelistingGroup", - type: { - name: "Composite", - className: "AppWhitelistingGroup", - modelProperties: { - id: { - readOnly: true, - serializedName: "id", - type: { - name: "String" - } - }, - name: { - readOnly: true, - serializedName: "name", - type: { - name: "String" - } - }, - type: { - readOnly: true, - serializedName: "type", - type: { - name: "String" - } - }, - location: { - readOnly: true, - serializedName: "location", - type: { - name: "String" - } - }, - enforcementMode: { - serializedName: "properties.enforcementMode", - type: { - name: "String" - } - }, - configurationStatus: { - serializedName: "properties.configurationStatus", - type: { - name: "String" - } - }, - recommendationStatus: { - serializedName: "properties.recommendationStatus", - type: { - name: "String" - } - }, - issues: { - serializedName: "properties.issues", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "AppWhitelistingIssueSummary" - } - } - } - }, - sourceSystem: { - serializedName: "properties.sourceSystem", - type: { - name: "String" - } - }, - vmRecommendations: { - serializedName: "properties.vmRecommendations", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "VmRecommendation" - } - } - } - }, - pathRecommendations: { - serializedName: "properties.pathRecommendations", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "PathRecommendation" - } - } - } - } - } - } -}; - -export const AppWhitelistingGroups: msRest.CompositeMapper = { - serializedName: "AppWhitelistingGroups", - type: { - name: "Composite", - className: "AppWhitelistingGroups", - modelProperties: { - value: { - serializedName: "value", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "AppWhitelistingGroup" - } - } - } - } - } - } -}; - -export const AppWhitelistingPutGroupData: msRest.CompositeMapper = { - serializedName: "AppWhitelistingPutGroupData", - type: { - name: "Composite", - className: "AppWhitelistingPutGroupData", - modelProperties: { - enforcementMode: { - serializedName: "enforcementMode", - type: { - name: "String" - } - }, - vmRecommendations: { - serializedName: "vmRecommendations", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "VmRecommendation" - } - } - } - }, - pathRecommendations: { - serializedName: "pathRecommendations", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "PathRecommendation" - } - } - } - } - } - } -}; - export const OperationDisplay: msRest.CompositeMapper = { serializedName: "OperationDisplay", type: { @@ -1659,7 +1317,7 @@ export const OperationDisplay: msRest.CompositeMapper = { readOnly: true, serializedName: "operation", type: { - name: "String" + name: "Number" } }, description: { @@ -1714,547 +1372,61 @@ export const SecurityTaskParameters: msRest.CompositeMapper = { readOnly: true, serializedName: "name", type: { - name: "String" + name: "Boolean" } } }, - additionalProperties: { - type: { - name: "Object" - } - } - } -}; - -export const SecurityTask: msRest.CompositeMapper = { - serializedName: "SecurityTask", - type: { - name: "Composite", - className: "SecurityTask", - modelProperties: { - ...Resource.type.modelProperties, - state: { - readOnly: true, - serializedName: "properties.state", - type: { - name: "String" - } - }, - creationTimeUtc: { - readOnly: true, - serializedName: "properties.creationTimeUtc", - type: { - name: "DateTime" - } - }, - securityTaskParameters: { - serializedName: "properties.securityTaskParameters", - type: { - name: "Composite", - className: "SecurityTaskParameters", - additionalProperties: { - type: { - name: "Object" - } - } - } - }, - lastStateChangeTimeUtc: { - readOnly: true, - serializedName: "properties.lastStateChangeTimeUtc", - type: { - name: "DateTime" - } - }, - subState: { - readOnly: true, - serializedName: "properties.subState", - type: { - name: "String" - } - } - } - } -}; - -export const TopologySingleResourceParent: msRest.CompositeMapper = { - serializedName: "TopologySingleResourceParent", - type: { - name: "Composite", - className: "TopologySingleResourceParent", - modelProperties: { - resourceId: { - readOnly: true, - serializedName: "resourceId", - type: { - name: "String" - } - } - } - } -}; - -export const TopologySingleResourceChild: msRest.CompositeMapper = { - serializedName: "TopologySingleResourceChild", - type: { - name: "Composite", - className: "TopologySingleResourceChild", - modelProperties: { - resourceId: { - readOnly: true, - serializedName: "resourceId", - type: { - name: "String" - } - } - } - } -}; - -export const TopologySingleResource: msRest.CompositeMapper = { - serializedName: "TopologySingleResource", - type: { - name: "Composite", - className: "TopologySingleResource", - modelProperties: { - resourceId: { - readOnly: true, - serializedName: "resourceId", - type: { - name: "String" - } - }, - severity: { - readOnly: true, - serializedName: "severity", - type: { - name: "String" - } - }, - recommendationsExist: { - readOnly: true, - serializedName: "recommendationsExist", - type: { - name: "Boolean" - } - }, - networkZones: { - readOnly: true, - serializedName: "networkZones", - type: { - name: "String" - } - }, - topologyScore: { - readOnly: true, - serializedName: "topologyScore", - type: { - name: "Number" - } - }, - location: { - readOnly: true, - serializedName: "location", - type: { - name: "String" - } - }, - parents: { - readOnly: true, - serializedName: "parents", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "TopologySingleResourceParent" - } - } - } - }, - children: { - readOnly: true, - serializedName: "children", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "TopologySingleResourceChild" - } - } - } - } - } - } -}; - -export const TopologyResource: msRest.CompositeMapper = { - serializedName: "TopologyResource", - type: { - name: "Composite", - className: "TopologyResource", - modelProperties: { - id: { - readOnly: true, - serializedName: "id", - type: { - name: "String" - } - }, - name: { - readOnly: true, - serializedName: "name", - type: { - name: "String" - } - }, - type: { - readOnly: true, - serializedName: "type", - type: { - name: "String" - } - }, - location: { - readOnly: true, - serializedName: "location", - type: { - name: "String" - } - }, - calculatedDateTime: { - readOnly: true, - serializedName: "properties.calculatedDateTime", - type: { - name: "DateTime" - } - }, - topologyResources: { - readOnly: true, - serializedName: "properties.topologyResources", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "TopologySingleResource" - } - } - } - } - } - } -}; - -export const AdvancedThreatProtectionSetting: msRest.CompositeMapper = { - serializedName: "AdvancedThreatProtectionSetting", - type: { - name: "Composite", - className: "AdvancedThreatProtectionSetting", - modelProperties: { - ...Resource.type.modelProperties, - isEnabled: { - serializedName: "properties.isEnabled", - type: { - name: "Boolean" - } - } - } - } -}; - -export const AutoProvisioningSetting: msRest.CompositeMapper = { - serializedName: "AutoProvisioningSetting", - type: { - name: "Composite", - className: "AutoProvisioningSetting", - modelProperties: { - ...Resource.type.modelProperties, - autoProvision: { - required: true, - serializedName: "properties.autoProvision", - type: { - name: "String" - } - } - } - } -}; - -export const ComplianceSegment: msRest.CompositeMapper = { - serializedName: "ComplianceSegment", - type: { - name: "Composite", - className: "ComplianceSegment", - modelProperties: { - segmentType: { - readOnly: true, - serializedName: "segmentType", - type: { - name: "String" - } - }, - percentage: { - readOnly: true, - serializedName: "percentage", - type: { - name: "Number" - } - } - } - } -}; - -export const Compliance: msRest.CompositeMapper = { - serializedName: "Compliance", - type: { - name: "Composite", - className: "Compliance", - modelProperties: { - ...Resource.type.modelProperties, - assessmentTimestampUtcDate: { - readOnly: true, - serializedName: "properties.assessmentTimestampUtcDate", - type: { - name: "DateTime" - } - }, - resourceCount: { - readOnly: true, - serializedName: "properties.resourceCount", - type: { - name: "Number" - } - }, - assessmentResult: { - readOnly: true, - serializedName: "properties.assessmentResult", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ComplianceSegment" - } - } - } - } - } - } -}; - -export const SensitivityLabel: msRest.CompositeMapper = { - serializedName: "SensitivityLabel", - type: { - name: "Composite", - className: "SensitivityLabel", - modelProperties: { - displayName: { - serializedName: "displayName", - type: { - name: "String" - } - }, - order: { - serializedName: "order", - type: { - name: "Number" - } - }, - enabled: { - serializedName: "enabled", - type: { - name: "Boolean" - } - } - } - } -}; - -export const InformationProtectionKeyword: msRest.CompositeMapper = { - serializedName: "InformationProtectionKeyword", - type: { - name: "Composite", - className: "InformationProtectionKeyword", - modelProperties: { - pattern: { - serializedName: "pattern", - type: { - name: "String" - } - }, - custom: { - serializedName: "custom", - type: { - name: "Boolean" - } - }, - canBeNumeric: { - serializedName: "canBeNumeric", - type: { - name: "Boolean" - } - }, - excluded: { - serializedName: "excluded", - type: { - name: "Boolean" - } - } - } - } -}; - -export const InformationType: msRest.CompositeMapper = { - serializedName: "InformationType", - type: { - name: "Composite", - className: "InformationType", - modelProperties: { - displayName: { - serializedName: "displayName", - type: { - name: "String" - } - }, - order: { - serializedName: "order", - type: { - name: "Number" - } - }, - recommendedLabelId: { - serializedName: "recommendedLabelId", - type: { - name: "Uuid" - } - }, - enabled: { - serializedName: "enabled", - type: { - name: "Boolean" - } - }, - custom: { - serializedName: "custom", - type: { - name: "Boolean" - } - }, - keywords: { - serializedName: "keywords", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "InformationProtectionKeyword" - } - } - } - } - } - } -}; - -export const InformationProtectionPolicy: msRest.CompositeMapper = { - serializedName: "InformationProtectionPolicy", - type: { - name: "Composite", - className: "InformationProtectionPolicy", - modelProperties: { - ...Resource.type.modelProperties, - lastModifiedUtc: { - readOnly: true, - serializedName: "properties.lastModifiedUtc", - type: { - name: "DateTime" - } - }, - labels: { - serializedName: "properties.labels", - type: { - name: "Dictionary", - value: { - type: { - name: "Composite", - className: "SensitivityLabel" - } - } - } - }, - informationTypes: { - serializedName: "properties.informationTypes", - type: { - name: "Dictionary", - value: { - type: { - name: "Composite", - className: "InformationType" - } - } - } - } - } - } -}; - -export const SecurityContact: msRest.CompositeMapper = { - serializedName: "SecurityContact", - type: { - name: "Composite", - className: "SecurityContact", - modelProperties: { - ...Resource.type.modelProperties, - email: { - required: true, - serializedName: "properties.email", - type: { - name: "String" - } - }, - phone: { - serializedName: "properties.phone", - type: { - name: "String" - } - }, - alertNotifications: { - required: true, - serializedName: "properties.alertNotifications", - type: { - name: "String" - } - }, - alertsToAdmins: { - required: true, - serializedName: "properties.alertsToAdmins", - type: { - name: "String" - } + additionalProperties: { + type: { + name: "Object" } } } }; -export const WorkspaceSetting: msRest.CompositeMapper = { - serializedName: "WorkspaceSetting", +export const SecurityTask: msRest.CompositeMapper = { + serializedName: "SecurityTask", type: { name: "Composite", - className: "WorkspaceSetting", + className: "SecurityTask", modelProperties: { ...Resource.type.modelProperties, - workspaceId: { - required: true, - serializedName: "properties.workspaceId", + state: { + readOnly: true, + serializedName: "properties.state", type: { name: "String" } }, - scope: { - required: true, - serializedName: "properties.scope", + creationTimeUtc: { + readOnly: true, + serializedName: "properties.creationTimeUtc", + type: { + name: "DateTime" + } + }, + securityTaskParameters: { + serializedName: "properties.securityTaskParameters", + type: { + name: "Composite", + className: "SecurityTaskParameters", + additionalProperties: { + type: { + name: "Object" + } + } + } + }, + lastStateChangeTimeUtc: { + readOnly: true, + serializedName: "properties.lastStateChangeTimeUtc", + type: { + name: "DateTime" + } + }, + subState: { + readOnly: true, + serializedName: "properties.subState", type: { name: "String" } @@ -2511,73 +1683,57 @@ export const UpdateIotSecuritySolutionData: msRest.CompositeMapper = { } }; -export const IoTSeverityMetrics: msRest.CompositeMapper = { - serializedName: "IoTSeverityMetrics", +export const AdvancedThreatProtectionSetting: msRest.CompositeMapper = { + serializedName: "AdvancedThreatProtectionSetting", type: { name: "Composite", - className: "IoTSeverityMetrics", + className: "AdvancedThreatProtectionSetting", modelProperties: { - high: { - serializedName: "high", - type: { - name: "Number" - } - }, - medium: { - serializedName: "medium", - type: { - name: "Number" - } - }, - low: { - serializedName: "low", + ...Resource.type.modelProperties, + isEnabled: { + serializedName: "properties.isEnabled", type: { - name: "Number" + name: "Boolean" } } } } }; -export const IoTSecuritySolutionAnalyticsModelPropertiesDevicesMetricsItem: msRest.CompositeMapper = { - serializedName: "IoTSecuritySolutionAnalyticsModelProperties_devicesMetricsItem", +export const AutoProvisioningSetting: msRest.CompositeMapper = { + serializedName: "AutoProvisioningSetting", type: { name: "Composite", - className: "IoTSecuritySolutionAnalyticsModelPropertiesDevicesMetricsItem", + className: "AutoProvisioningSetting", modelProperties: { - date: { - serializedName: "date", - type: { - name: "DateTime" - } - }, - devicesMetrics: { - serializedName: "devicesMetrics", + ...Resource.type.modelProperties, + autoProvision: { + required: true, + serializedName: "properties.autoProvision", type: { - name: "Composite", - className: "IoTSeverityMetrics" + name: "Number" } } } } }; -export const IoTSecurityAlertedDevice: msRest.CompositeMapper = { - serializedName: "IoTSecurityAlertedDevice", +export const ComplianceSegment: msRest.CompositeMapper = { + serializedName: "ComplianceSegment", type: { name: "Composite", - className: "IoTSecurityAlertedDevice", + className: "ComplianceSegment", modelProperties: { - deviceId: { + segmentType: { readOnly: true, - serializedName: "deviceId", + serializedName: "segmentType", type: { name: "String" } }, - alertsCount: { + percentage: { readOnly: true, - serializedName: "alertsCount", + serializedName: "percentage", type: { name: "Number" } @@ -2586,82 +1742,150 @@ export const IoTSecurityAlertedDevice: msRest.CompositeMapper = { } }; -export const IoTSecurityAlertedDevicesList: msRest.CompositeMapper = { - serializedName: "IoTSecurityAlertedDevicesList", +export const Compliance: msRest.CompositeMapper = { + serializedName: "Compliance", type: { name: "Composite", - className: "IoTSecurityAlertedDevicesList", + className: "Compliance", modelProperties: { - value: { - required: true, - serializedName: "value", + ...Resource.type.modelProperties, + assessmentTimestampUtcDate: { + readOnly: true, + serializedName: "properties.assessmentTimestampUtcDate", + type: { + name: "DateTime" + } + }, + resourceCount: { + readOnly: true, + serializedName: "properties.resourceCount", + type: { + name: "Number" + } + }, + assessmentResult: { + readOnly: true, + serializedName: "properties.assessmentResult", type: { name: "Sequence", element: { type: { name: "Composite", - className: "IoTSecurityAlertedDevice" + className: "ComplianceSegment" } } } - }, - nextLink: { - readOnly: true, - serializedName: "nextLink", + } + } + } +}; + +export const SensitivityLabel: msRest.CompositeMapper = { + serializedName: "SensitivityLabel", + type: { + name: "Composite", + className: "SensitivityLabel", + modelProperties: { + displayName: { + serializedName: "displayName", type: { name: "String" } + }, + order: { + serializedName: "order", + type: { + name: "Number" + } + }, + enabled: { + serializedName: "enabled", + type: { + name: "Boolean" + } } } } }; -export const IoTSecurityDeviceAlert: msRest.CompositeMapper = { - serializedName: "IoTSecurityDeviceAlert", +export const InformationProtectionKeyword: msRest.CompositeMapper = { + serializedName: "InformationProtectionKeyword", type: { name: "Composite", - className: "IoTSecurityDeviceAlert", + className: "InformationProtectionKeyword", modelProperties: { - alertDisplayName: { - readOnly: true, - serializedName: "alertDisplayName", + pattern: { + serializedName: "pattern", type: { name: "String" } }, - reportedSeverity: { - readOnly: true, - serializedName: "reportedSeverity", + custom: { + serializedName: "custom", type: { - name: "String" + name: "Boolean" } }, - alertsCount: { - readOnly: true, - serializedName: "alertsCount", + canBeNumeric: { + serializedName: "canBeNumeric", type: { - name: "Number" + name: "Boolean" + } + }, + excluded: { + serializedName: "excluded", + type: { + name: "Boolean" } } } } }; -export const IoTSecurityDeviceAlertsList: msRest.CompositeMapper = { - serializedName: "IoTSecurityDeviceAlertsList", +export const InformationType: msRest.CompositeMapper = { + serializedName: "InformationType", type: { name: "Composite", - className: "IoTSecurityDeviceAlertsList", + className: "InformationType", modelProperties: { - value: { - required: true, - serializedName: "value", + displayName: { + serializedName: "displayName", + type: { + name: "String" + } + }, + order: { + serializedName: "order", + type: { + name: "Number" + } + }, + recommendedLabelId: { + serializedName: "recommendedLabelId", + type: { + name: "Uuid" + } + }, + enabled: { + serializedName: "enabled", + type: { + name: "Boolean" + } + }, + custom: { + serializedName: "custom", + type: { + name: "Boolean" + } + }, + keywords: { + serializedName: "keywords", type: { name: "Sequence", element: { type: { name: "Composite", - className: "IoTSecurityDeviceAlert" + className: "InformationProtectionKeyword" } } } @@ -2677,59 +1901,78 @@ export const IoTSecurityDeviceAlertsList: msRest.CompositeMapper = { } }; -export const IoTSecurityDeviceRecommendation: msRest.CompositeMapper = { - serializedName: "IoTSecurityDeviceRecommendation", +export const InformationProtectionPolicy: msRest.CompositeMapper = { + serializedName: "InformationProtectionPolicy", type: { name: "Composite", - className: "IoTSecurityDeviceRecommendation", + className: "InformationProtectionPolicy", modelProperties: { - recommendationDisplayName: { + ...Resource.type.modelProperties, + lastModifiedUtc: { readOnly: true, - serializedName: "recommendationDisplayName", + serializedName: "properties.lastModifiedUtc", type: { - name: "String" + name: "DateTime" } }, - reportedSeverity: { - readOnly: true, - serializedName: "reportedSeverity", + labels: { + serializedName: "properties.labels", type: { - name: "String" + name: "Dictionary", + value: { + type: { + name: "Composite", + className: "SensitivityLabel" + } + } } }, - devicesCount: { - readOnly: true, - serializedName: "devicesCount", + informationTypes: { + serializedName: "properties.informationTypes", type: { - name: "Number" + name: "Dictionary", + value: { + type: { + name: "Composite", + className: "InformationType" + } + } } } } } }; -export const IoTSecurityDeviceRecommendationsList: msRest.CompositeMapper = { - serializedName: "IoTSecurityDeviceRecommendationsList", +export const SecurityContact: msRest.CompositeMapper = { + serializedName: "SecurityContact", type: { name: "Composite", - className: "IoTSecurityDeviceRecommendationsList", + className: "SecurityContact", modelProperties: { - value: { + ...Resource.type.modelProperties, + email: { required: true, - serializedName: "value", + serializedName: "properties.email", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "IoTSecurityDeviceRecommendation" - } - } + name: "String" + } + }, + phone: { + serializedName: "properties.phone", + type: { + name: "String" + } + }, + alertNotifications: { + required: true, + serializedName: "properties.alertNotifications", + type: { + name: "String" } }, - nextLink: { - readOnly: true, - serializedName: "nextLink", + alertsToAdmins: { + required: true, + serializedName: "properties.alertsToAdmins", type: { name: "String" } @@ -2738,39 +1981,26 @@ export const IoTSecurityDeviceRecommendationsList: msRest.CompositeMapper = { } }; -export const IoTSecuritySolutionAnalyticsModel: msRest.CompositeMapper = { - serializedName: "IoTSecuritySolutionAnalyticsModel", +export const WorkspaceSetting: msRest.CompositeMapper = { + serializedName: "WorkspaceSetting", type: { name: "Composite", - className: "IoTSecuritySolutionAnalyticsModel", + className: "WorkspaceSetting", modelProperties: { ...Resource.type.modelProperties, - metrics: { - readOnly: true, - serializedName: "properties.metrics", + workspaceId: { + required: true, + serializedName: "properties.workspaceId", type: { name: "Composite", className: "IoTSeverityMetrics" } }, - unhealthyDeviceCount: { - readOnly: true, - serializedName: "properties.unhealthyDeviceCount", - type: { - name: "Number" - } - }, - devicesMetrics: { - readOnly: true, - serializedName: "properties.devicesMetrics", + scope: { + required: true, + serializedName: "properties.scope", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "IoTSecuritySolutionAnalyticsModelPropertiesDevicesMetricsItem" - } - } + name: "String" } }, topAlertedDevices: { @@ -2798,28 +2028,20 @@ export const IoTSecuritySolutionAnalyticsModel: msRest.CompositeMapper = { } }; -export const IoTSecuritySolutionAnalyticsModelList: msRest.CompositeMapper = { - serializedName: "IoTSecuritySolutionAnalyticsModelList", +export const ResourceDetails: msRest.CompositeMapper = { + serializedName: "ResourceDetails", type: { name: "Composite", - className: "IoTSecuritySolutionAnalyticsModelList", + polymorphicDiscriminator: { + serializedName: "assessedResourceSource", + clientName: "assessedResourceSource" + }, + uberParent: "ResourceDetails", + className: "ResourceDetails", modelProperties: { - value: { + assessedResourceSource: { required: true, - serializedName: "value", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "IoTSecuritySolutionAnalyticsModel" - } - } - } - }, - nextLink: { - readOnly: true, - serializedName: "nextLink", + serializedName: "assessedResourceSource", type: { name: "String" } @@ -2828,124 +2050,29 @@ export const IoTSecuritySolutionAnalyticsModelList: msRest.CompositeMapper = { } }; -export const IoTSecurityAggregatedAlert: msRest.CompositeMapper = { - serializedName: "IoTSecurityAggregatedAlert", +export const AssessmentStatus: msRest.CompositeMapper = { + serializedName: "AssessmentStatus", type: { name: "Composite", - className: "IoTSecurityAggregatedAlert", + className: "AssessmentStatus", modelProperties: { - id: { - readOnly: true, - serializedName: "id", - type: { - name: "String" - } - }, - name: { - readOnly: true, - serializedName: "name", - type: { - name: "String" - } - }, - type: { + code: { readOnly: true, - serializedName: "type", - type: { - name: "String" - } - }, - tags: { - serializedName: "tags", - type: { - name: "Dictionary", - value: { - type: { - name: "String" - } - } - } - }, - alertType: { - readOnly: true, - serializedName: "properties.alertType", - type: { - name: "String" - } - }, - alertDisplayName: { - readOnly: true, - serializedName: "properties.alertDisplayName", - type: { - name: "String" - } - }, - aggregatedDateUtc: { - readOnly: true, - serializedName: "properties.aggregatedDateUtc", - type: { - name: "Date" - } - }, - vendorName: { - readOnly: true, - serializedName: "properties.vendorName", - type: { - name: "String" - } - }, - reportedSeverity: { - readOnly: true, - serializedName: "properties.reportedSeverity", + serializedName: "code", type: { name: "String" } }, - remediationSteps: { + cause: { readOnly: true, - serializedName: "properties.remediationSteps", + serializedName: "cause", type: { name: "String" } }, description: { readOnly: true, - serializedName: "properties.description", - type: { - name: "String" - } - }, - count: { - readOnly: true, - serializedName: "properties.count", - type: { - name: "Number" - } - }, - effectedResourceType: { - readOnly: true, - serializedName: "properties.effectedResourceType", - type: { - name: "String" - } - }, - systemSource: { - readOnly: true, - serializedName: "properties.systemSource", - type: { - name: "String" - } - }, - actionTaken: { - readOnly: true, - serializedName: "properties.actionTaken", - type: { - name: "String" - } - }, - logAnalyticsQuery: { - readOnly: true, - serializedName: "properties.logAnalyticsQuery", + serializedName: "description", type: { name: "String" } @@ -2954,35 +2081,37 @@ export const IoTSecurityAggregatedAlert: msRest.CompositeMapper = { } }; -export const IoTSecurityAggregatedRecommendation: msRest.CompositeMapper = { - serializedName: "IoTSecurityAggregatedRecommendation", +export const SecurityAssessment: msRest.CompositeMapper = { + serializedName: "SecurityAssessment", type: { name: "Composite", - className: "IoTSecurityAggregatedRecommendation", + className: "SecurityAssessment", modelProperties: { - id: { - readOnly: true, - serializedName: "id", + ...Resource.type.modelProperties, + resourceDetails: { + serializedName: "properties.resourceDetails", type: { - name: "String" + name: "Composite", + className: "ResourceDetails" } }, - name: { + displayName: { readOnly: true, - serializedName: "name", + serializedName: "properties.displayName", type: { name: "String" } }, - type: { - readOnly: true, - serializedName: "type", + status: { + serializedName: "properties.status", type: { - name: "String" + name: "Composite", + className: "AssessmentStatus" } }, - tags: { - serializedName: "tags", + additionalData: { + readOnly: true, + serializedName: "properties.additionalData", type: { name: "Dictionary", value: { @@ -2991,74 +2120,102 @@ export const IoTSecurityAggregatedRecommendation: msRest.CompositeMapper = { } } } - }, - recommendationName: { - serializedName: "properties.recommendationName", - type: { - name: "String" - } - }, - recommendationDisplayName: { + } + } + } +}; + +export const AzureResourceDetails: msRest.CompositeMapper = { + serializedName: "Azure", + type: { + name: "Composite", + polymorphicDiscriminator: ResourceDetails.type.polymorphicDiscriminator, + uberParent: "ResourceDetails", + className: "AzureResourceDetails", + modelProperties: { + ...ResourceDetails.type.modelProperties, + id: { readOnly: true, - serializedName: "properties.recommendationDisplayName", + serializedName: "id", type: { name: "String" } - }, - description: { + } + } + } +}; + +export const SecurityAssessmentMetadata: msRest.CompositeMapper = { + serializedName: "SecurityAssessmentMetadata", + type: { + name: "Composite", + className: "SecurityAssessmentMetadata", + modelProperties: { + ...Resource.type.modelProperties, + displayName: { readOnly: true, - serializedName: "properties.description", + serializedName: "properties.displayName", type: { name: "String" } }, - recommendationTypeId: { + policyDefinitionId: { readOnly: true, - serializedName: "properties.recommendationTypeId", + serializedName: "properties.policyDefinitionId", type: { name: "String" } }, - detectedBy: { + description: { readOnly: true, - serializedName: "properties.detectedBy", + serializedName: "properties.description", type: { name: "String" } }, - remediationSteps: { + remediationDescription: { readOnly: true, - serializedName: "properties.remediationSteps", + serializedName: "properties.remediationDescription", type: { name: "String" } }, - reportedSeverity: { + category: { readOnly: true, - serializedName: "properties.reportedSeverity", + serializedName: "properties.category", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - healthyDevices: { + secureScoreWeight: { readOnly: true, - serializedName: "properties.healthyDevices", + serializedName: "properties.secureScoreWeight", type: { name: "Number" } }, - unhealthyDeviceCount: { + requiredPricingBundle: { readOnly: true, - serializedName: "properties.unhealthyDeviceCount", + serializedName: "properties.requiredPricingBundle", type: { - name: "Number" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - logAnalyticsQuery: { + preview: { readOnly: true, - serializedName: "properties.logAnalyticsQuery", + serializedName: "properties.preview", type: { - name: "String" + name: "Boolean" } } } @@ -3284,7 +2441,13 @@ export const ComplianceResultList: msRest.CompositeMapper = { readOnly: true, serializedName: "nextLink", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ServerVulnerabilityAssessment" + } + } } } } @@ -3338,6 +2501,13 @@ export const SettingsList: msRest.CompositeMapper = { } } }, + nextLink: { + readOnly: true, + serializedName: "nextLink", + type: { + name: "String" + } + }, nextLink: { readOnly: true, serializedName: "nextLink", @@ -3503,6 +2673,7 @@ export const OperationList: msRest.CompositeMapper = { className: "OperationList", modelProperties: { value: { + readOnly: true, serializedName: "", type: { name: "Sequence", @@ -3679,7 +2850,7 @@ export const SecurityContactList: msRest.CompositeMapper = { className: "SecurityContactList", modelProperties: { value: { - readOnly: true, + required: true, serializedName: "", type: { name: "Sequence", @@ -3732,51 +2903,21 @@ export const WorkspaceSettingList: msRest.CompositeMapper = { } }; -export const IoTSecuritySolutionsList: msRest.CompositeMapper = { - serializedName: "IoTSecuritySolutionsList", +export const SecurityAssessmentList: msRest.CompositeMapper = { + serializedName: "SecurityAssessmentList", type: { name: "Composite", - className: "IoTSecuritySolutionsList", + className: "SecurityAssessmentList", modelProperties: { value: { - required: true, - serializedName: "", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "IoTSecuritySolutionModel" - } - } - } - }, - nextLink: { readOnly: true, - serializedName: "nextLink", - type: { - name: "String" - } - } - } - } -}; - -export const IoTSecurityAggregatedAlertList: msRest.CompositeMapper = { - serializedName: "IoTSecurityAggregatedAlertList", - type: { - name: "Composite", - className: "IoTSecurityAggregatedAlertList", - modelProperties: { - value: { - required: true, serializedName: "", type: { name: "Sequence", element: { type: { name: "Composite", - className: "IoTSecurityAggregatedAlert" + className: "SecurityAssessment" } } } @@ -3792,21 +2933,21 @@ export const IoTSecurityAggregatedAlertList: msRest.CompositeMapper = { } }; -export const IoTSecurityAggregatedRecommendationList: msRest.CompositeMapper = { - serializedName: "IoTSecurityAggregatedRecommendationList", +export const SecurityAssessmentMetadataList: msRest.CompositeMapper = { + serializedName: "SecurityAssessmentMetadataList", type: { name: "Composite", - className: "IoTSecurityAggregatedRecommendationList", + className: "SecurityAssessmentMetadataList", modelProperties: { value: { - required: true, + readOnly: true, serializedName: "", type: { name: "Sequence", element: { type: { name: "Composite", - className: "IoTSecurityAggregatedRecommendation" + className: "SecurityAssessmentMetadata" } } } @@ -3916,6 +3057,8 @@ export const discriminators = { 'ExternalSecuritySolution' : ExternalSecuritySolution, 'ExternalSecuritySolution.CEF' : CefExternalSecuritySolution, 'ExternalSecuritySolution.ATA' : AtaExternalSecuritySolution, - 'ExternalSecuritySolution.AAD' : AadExternalSecuritySolution + 'ExternalSecuritySolution.AAD' : AadExternalSecuritySolution, + 'ResourceDetails' : ResourceDetails, + 'ResourceDetails.Azure' : AzureResourceDetails }; diff --git a/sdk/security/arm-security/src/models/parameters.ts b/sdk/security/arm-security/src/models/parameters.ts index 1da6ad620056..1f4f43df243d 100644 --- a/sdk/security/arm-security/src/models/parameters.ts +++ b/sdk/security/arm-security/src/models/parameters.ts @@ -142,6 +142,26 @@ export const ascLocation: msRest.OperationURLParameter = { } } }; +export const assessmentName: msRest.OperationURLParameter = { + parameterPath: "assessmentName", + mapper: { + required: true, + serializedName: "assessmentName", + type: { + name: "String" + } + } +}; +export const assessmentsMetadataName: msRest.OperationURLParameter = { + parameterPath: "assessmentsMetadataName", + mapper: { + required: true, + serializedName: "assessmentsMetadataName", + type: { + name: "String" + } + } +}; export const complianceName: msRest.OperationURLParameter = { parameterPath: "complianceName", mapper: { diff --git a/sdk/security/arm-security/src/models/pricingsMappers.ts b/sdk/security/arm-security/src/models/pricingsMappers.ts index d5fb21360909..3e9e68bb0d62 100644 --- a/sdk/security/arm-security/src/models/pricingsMappers.ts +++ b/sdk/security/arm-security/src/models/pricingsMappers.ts @@ -13,7 +13,9 @@ export { AlertConfidenceReason, AlertEntity, AscLocation, + AssessmentStatus, AutoProvisioningSetting, + AzureResourceDetails, BaseResource, CloudError, Compliance, @@ -23,21 +25,15 @@ export { InformationProtectionKeyword, InformationProtectionPolicy, InformationType, - IoTSecurityAlertedDevice, - IoTSecurityAlertedDevicesList, - IoTSecurityDeviceAlert, - IoTSecurityDeviceAlertsList, - IoTSecurityDeviceRecommendation, - IoTSecurityDeviceRecommendationsList, - IoTSecuritySolutionAnalyticsModel, - IoTSecuritySolutionAnalyticsModelPropertiesDevicesMetricsItem, - IoTSeverityMetrics, Pricing, PricingList, RegulatoryComplianceAssessment, RegulatoryComplianceControl, RegulatoryComplianceStandard, Resource, + ResourceDetails, + SecurityAssessment, + SecurityAssessmentMetadata, SecurityContact, SecurityTask, SecurityTaskParameters, diff --git a/sdk/security/arm-security/src/models/regulatoryComplianceAssessmentsMappers.ts b/sdk/security/arm-security/src/models/regulatoryComplianceAssessmentsMappers.ts index 30d461f22a53..bc00b16e50bb 100644 --- a/sdk/security/arm-security/src/models/regulatoryComplianceAssessmentsMappers.ts +++ b/sdk/security/arm-security/src/models/regulatoryComplianceAssessmentsMappers.ts @@ -13,7 +13,9 @@ export { AlertConfidenceReason, AlertEntity, AscLocation, + AssessmentStatus, AutoProvisioningSetting, + AzureResourceDetails, BaseResource, CloudError, Compliance, @@ -23,21 +25,15 @@ export { InformationProtectionKeyword, InformationProtectionPolicy, InformationType, - IoTSecurityAlertedDevice, - IoTSecurityAlertedDevicesList, - IoTSecurityDeviceAlert, - IoTSecurityDeviceAlertsList, - IoTSecurityDeviceRecommendation, - IoTSecurityDeviceRecommendationsList, - IoTSecuritySolutionAnalyticsModel, - IoTSecuritySolutionAnalyticsModelPropertiesDevicesMetricsItem, - IoTSeverityMetrics, Pricing, RegulatoryComplianceAssessment, RegulatoryComplianceAssessmentList, RegulatoryComplianceControl, RegulatoryComplianceStandard, Resource, + ResourceDetails, + SecurityAssessment, + SecurityAssessmentMetadata, SecurityContact, SecurityTask, SecurityTaskParameters, diff --git a/sdk/security/arm-security/src/models/regulatoryComplianceControlsMappers.ts b/sdk/security/arm-security/src/models/regulatoryComplianceControlsMappers.ts index 0e4644136e13..8af8985952b2 100644 --- a/sdk/security/arm-security/src/models/regulatoryComplianceControlsMappers.ts +++ b/sdk/security/arm-security/src/models/regulatoryComplianceControlsMappers.ts @@ -13,7 +13,9 @@ export { AlertConfidenceReason, AlertEntity, AscLocation, + AssessmentStatus, AutoProvisioningSetting, + AzureResourceDetails, BaseResource, CloudError, Compliance, @@ -23,21 +25,15 @@ export { InformationProtectionKeyword, InformationProtectionPolicy, InformationType, - IoTSecurityAlertedDevice, - IoTSecurityAlertedDevicesList, - IoTSecurityDeviceAlert, - IoTSecurityDeviceAlertsList, - IoTSecurityDeviceRecommendation, - IoTSecurityDeviceRecommendationsList, - IoTSecuritySolutionAnalyticsModel, - IoTSecuritySolutionAnalyticsModelPropertiesDevicesMetricsItem, - IoTSeverityMetrics, Pricing, RegulatoryComplianceAssessment, RegulatoryComplianceControl, RegulatoryComplianceControlList, RegulatoryComplianceStandard, Resource, + ResourceDetails, + SecurityAssessment, + SecurityAssessmentMetadata, SecurityContact, SecurityTask, SecurityTaskParameters, diff --git a/sdk/security/arm-security/src/models/regulatoryComplianceStandardsMappers.ts b/sdk/security/arm-security/src/models/regulatoryComplianceStandardsMappers.ts index 6c9185a23472..632220a9581c 100644 --- a/sdk/security/arm-security/src/models/regulatoryComplianceStandardsMappers.ts +++ b/sdk/security/arm-security/src/models/regulatoryComplianceStandardsMappers.ts @@ -13,7 +13,9 @@ export { AlertConfidenceReason, AlertEntity, AscLocation, + AssessmentStatus, AutoProvisioningSetting, + AzureResourceDetails, BaseResource, CloudError, Compliance, @@ -23,21 +25,15 @@ export { InformationProtectionKeyword, InformationProtectionPolicy, InformationType, - IoTSecurityAlertedDevice, - IoTSecurityAlertedDevicesList, - IoTSecurityDeviceAlert, - IoTSecurityDeviceAlertsList, - IoTSecurityDeviceRecommendation, - IoTSecurityDeviceRecommendationsList, - IoTSecuritySolutionAnalyticsModel, - IoTSecuritySolutionAnalyticsModelPropertiesDevicesMetricsItem, - IoTSeverityMetrics, Pricing, RegulatoryComplianceAssessment, RegulatoryComplianceControl, RegulatoryComplianceStandard, RegulatoryComplianceStandardList, Resource, + ResourceDetails, + SecurityAssessment, + SecurityAssessmentMetadata, SecurityContact, SecurityTask, SecurityTaskParameters, diff --git a/sdk/security/arm-security/src/models/securityContactsMappers.ts b/sdk/security/arm-security/src/models/securityContactsMappers.ts index c8e0ffed0470..7004c2e8a3fe 100644 --- a/sdk/security/arm-security/src/models/securityContactsMappers.ts +++ b/sdk/security/arm-security/src/models/securityContactsMappers.ts @@ -13,7 +13,9 @@ export { AlertConfidenceReason, AlertEntity, AscLocation, + AssessmentStatus, AutoProvisioningSetting, + AzureResourceDetails, BaseResource, CloudError, Compliance, @@ -23,20 +25,14 @@ export { InformationProtectionKeyword, InformationProtectionPolicy, InformationType, - IoTSecurityAlertedDevice, - IoTSecurityAlertedDevicesList, - IoTSecurityDeviceAlert, - IoTSecurityDeviceAlertsList, - IoTSecurityDeviceRecommendation, - IoTSecurityDeviceRecommendationsList, - IoTSecuritySolutionAnalyticsModel, - IoTSecuritySolutionAnalyticsModelPropertiesDevicesMetricsItem, - IoTSeverityMetrics, Pricing, RegulatoryComplianceAssessment, RegulatoryComplianceControl, RegulatoryComplianceStandard, Resource, + ResourceDetails, + SecurityAssessment, + SecurityAssessmentMetadata, SecurityContact, SecurityContactList, SecurityTask, diff --git a/sdk/security/arm-security/src/models/serverVulnerabilityAssessmentOperationsMappers.ts b/sdk/security/arm-security/src/models/serverVulnerabilityAssessmentOperationsMappers.ts index 873acbd517c0..6b97d4c00e91 100644 --- a/sdk/security/arm-security/src/models/serverVulnerabilityAssessmentOperationsMappers.ts +++ b/sdk/security/arm-security/src/models/serverVulnerabilityAssessmentOperationsMappers.ts @@ -13,7 +13,9 @@ export { AlertConfidenceReason, AlertEntity, AscLocation, + AssessmentStatus, AutoProvisioningSetting, + AzureResourceDetails, BaseResource, CloudError, Compliance, @@ -23,20 +25,14 @@ export { InformationProtectionKeyword, InformationProtectionPolicy, InformationType, - IoTSecurityAlertedDevice, - IoTSecurityAlertedDevicesList, - IoTSecurityDeviceAlert, - IoTSecurityDeviceAlertsList, - IoTSecurityDeviceRecommendation, - IoTSecurityDeviceRecommendationsList, - IoTSecuritySolutionAnalyticsModel, - IoTSecuritySolutionAnalyticsModelPropertiesDevicesMetricsItem, - IoTSeverityMetrics, Pricing, RegulatoryComplianceAssessment, RegulatoryComplianceControl, RegulatoryComplianceStandard, Resource, + ResourceDetails, + SecurityAssessment, + SecurityAssessmentMetadata, SecurityContact, SecurityTask, SecurityTaskParameters, diff --git a/sdk/security/arm-security/src/models/settingsMappers.ts b/sdk/security/arm-security/src/models/settingsMappers.ts index 9e2be3631c65..d0a6f16fa34c 100644 --- a/sdk/security/arm-security/src/models/settingsMappers.ts +++ b/sdk/security/arm-security/src/models/settingsMappers.ts @@ -13,7 +13,9 @@ export { AlertConfidenceReason, AlertEntity, AscLocation, + AssessmentStatus, AutoProvisioningSetting, + AzureResourceDetails, BaseResource, CloudError, Compliance, @@ -23,20 +25,14 @@ export { InformationProtectionKeyword, InformationProtectionPolicy, InformationType, - IoTSecurityAlertedDevice, - IoTSecurityAlertedDevicesList, - IoTSecurityDeviceAlert, - IoTSecurityDeviceAlertsList, - IoTSecurityDeviceRecommendation, - IoTSecurityDeviceRecommendationsList, - IoTSecuritySolutionAnalyticsModel, - IoTSecuritySolutionAnalyticsModelPropertiesDevicesMetricsItem, - IoTSeverityMetrics, Pricing, RegulatoryComplianceAssessment, RegulatoryComplianceControl, RegulatoryComplianceStandard, Resource, + ResourceDetails, + SecurityAssessment, + SecurityAssessmentMetadata, SecurityContact, SecurityTask, SecurityTaskParameters, diff --git a/sdk/security/arm-security/src/models/tasksMappers.ts b/sdk/security/arm-security/src/models/tasksMappers.ts index 3225aa016e5a..d8eef83bf671 100644 --- a/sdk/security/arm-security/src/models/tasksMappers.ts +++ b/sdk/security/arm-security/src/models/tasksMappers.ts @@ -13,7 +13,9 @@ export { AlertConfidenceReason, AlertEntity, AscLocation, + AssessmentStatus, AutoProvisioningSetting, + AzureResourceDetails, BaseResource, CloudError, Compliance, @@ -23,20 +25,14 @@ export { InformationProtectionKeyword, InformationProtectionPolicy, InformationType, - IoTSecurityAlertedDevice, - IoTSecurityAlertedDevicesList, - IoTSecurityDeviceAlert, - IoTSecurityDeviceAlertsList, - IoTSecurityDeviceRecommendation, - IoTSecurityDeviceRecommendationsList, - IoTSecuritySolutionAnalyticsModel, - IoTSecuritySolutionAnalyticsModelPropertiesDevicesMetricsItem, - IoTSeverityMetrics, Pricing, RegulatoryComplianceAssessment, RegulatoryComplianceControl, RegulatoryComplianceStandard, Resource, + ResourceDetails, + SecurityAssessment, + SecurityAssessmentMetadata, SecurityContact, SecurityTask, SecurityTaskList, diff --git a/sdk/security/arm-security/src/models/workspaceSettingsMappers.ts b/sdk/security/arm-security/src/models/workspaceSettingsMappers.ts index 88b341eaaeba..fe10462165ab 100644 --- a/sdk/security/arm-security/src/models/workspaceSettingsMappers.ts +++ b/sdk/security/arm-security/src/models/workspaceSettingsMappers.ts @@ -13,7 +13,9 @@ export { AlertConfidenceReason, AlertEntity, AscLocation, + AssessmentStatus, AutoProvisioningSetting, + AzureResourceDetails, BaseResource, CloudError, Compliance, @@ -23,20 +25,14 @@ export { InformationProtectionKeyword, InformationProtectionPolicy, InformationType, - IoTSecurityAlertedDevice, - IoTSecurityAlertedDevicesList, - IoTSecurityDeviceAlert, - IoTSecurityDeviceAlertsList, - IoTSecurityDeviceRecommendation, - IoTSecurityDeviceRecommendationsList, - IoTSecuritySolutionAnalyticsModel, - IoTSecuritySolutionAnalyticsModelPropertiesDevicesMetricsItem, - IoTSeverityMetrics, Pricing, RegulatoryComplianceAssessment, RegulatoryComplianceControl, RegulatoryComplianceStandard, Resource, + ResourceDetails, + SecurityAssessment, + SecurityAssessmentMetadata, SecurityContact, SecurityTask, SecurityTaskParameters, diff --git a/sdk/security/arm-security/src/operations/assessments.ts b/sdk/security/arm-security/src/operations/assessments.ts new file mode 100644 index 000000000000..5186e4ad4a6b --- /dev/null +++ b/sdk/security/arm-security/src/operations/assessments.ts @@ -0,0 +1,192 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as Models from "../models"; +import * as Mappers from "../models/assessmentsMappers"; +import * as Parameters from "../models/parameters"; +import { SecurityCenterContext } from "../securityCenterContext"; + +/** Class representing a Assessments. */ +export class Assessments { + private readonly client: SecurityCenterContext; + + /** + * Create a Assessments. + * @param {SecurityCenterContext} client Reference to the service client. + */ + constructor(client: SecurityCenterContext) { + this.client = client; + } + + /** + * Get security assessments on all your scanned resources inside a scope + * @param scope Scope of the query, can be subscription + * (/subscriptions/0b06d9ea-afe6-4779-bd59-30e5c2d9d13f) or management group + * (/providers/Microsoft.Management/managementGroups/mgName). + * @param [options] The optional parameters + * @returns Promise + */ + list(scope: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param scope Scope of the query, can be subscription + * (/subscriptions/0b06d9ea-afe6-4779-bd59-30e5c2d9d13f) or management group + * (/providers/Microsoft.Management/managementGroups/mgName). + * @param callback The callback + */ + list(scope: string, callback: msRest.ServiceCallback): void; + /** + * @param scope Scope of the query, can be subscription + * (/subscriptions/0b06d9ea-afe6-4779-bd59-30e5c2d9d13f) or management group + * (/providers/Microsoft.Management/managementGroups/mgName). + * @param options The optional parameters + * @param callback The callback + */ + list(scope: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + list(scope: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + scope, + options + }, + listOperationSpec, + callback) as Promise; + } + + /** + * Get a security assessment on your scanned resource + * @param resourceId The identifier of the resource. + * @param assessmentName The Assessment Key - Unique key for the assessment type + * @param [options] The optional parameters + * @returns Promise + */ + get(resourceId: string, assessmentName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param resourceId The identifier of the resource. + * @param assessmentName The Assessment Key - Unique key for the assessment type + * @param callback The callback + */ + get(resourceId: string, assessmentName: string, callback: msRest.ServiceCallback): void; + /** + * @param resourceId The identifier of the resource. + * @param assessmentName The Assessment Key - Unique key for the assessment type + * @param options The optional parameters + * @param callback The callback + */ + get(resourceId: string, assessmentName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(resourceId: string, assessmentName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + resourceId, + assessmentName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Get security assessments on all your scanned resources inside a scope + * @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; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "{scope}/providers/Microsoft.Security/assessments", + urlParameters: [ + Parameters.scope + ], + queryParameters: [ + Parameters.apiVersion5 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.SecurityAssessmentList + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "{resourceId}/providers/Microsoft.Security/assessments/{assessmentName}", + urlParameters: [ + Parameters.resourceId, + Parameters.assessmentName + ], + queryParameters: [ + Parameters.apiVersion5 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.SecurityAssessment + }, + 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.SecurityAssessmentList + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/security/arm-security/src/operations/assessmentsMetadata.ts b/sdk/security/arm-security/src/operations/assessmentsMetadata.ts new file mode 100644 index 000000000000..500fb5b1475e --- /dev/null +++ b/sdk/security/arm-security/src/operations/assessmentsMetadata.ts @@ -0,0 +1,174 @@ +/* + * Copyright (c) Microsoft Corporation. All rights reserved. + * Licensed under the MIT License. See License.txt in the project root for + * license information. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is + * regenerated. + */ + +import * as msRest from "@azure/ms-rest-js"; +import * as Models from "../models"; +import * as Mappers from "../models/assessmentsMetadataMappers"; +import * as Parameters from "../models/parameters"; +import { SecurityCenterContext } from "../securityCenterContext"; + +/** Class representing a AssessmentsMetadata. */ +export class AssessmentsMetadata { + private readonly client: SecurityCenterContext; + + /** + * Create a AssessmentsMetadata. + * @param {SecurityCenterContext} client Reference to the service client. + */ + constructor(client: SecurityCenterContext) { + this.client = client; + } + + /** + * Get metadata information on all assessment types + * @param [options] The optional parameters + * @returns Promise + */ + list(options?: msRest.RequestOptionsBase): Promise; + /** + * @param callback The callback + */ + list(callback: msRest.ServiceCallback): void; + /** + * @param options The optional parameters + * @param callback The callback + */ + list(options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + list(options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + options + }, + listOperationSpec, + callback) as Promise; + } + + /** + * Get metadata information on an assessment type + * @param assessmentsMetadataName The Assessment Key - Unique key for the assessment type + * @param [options] The optional parameters + * @returns Promise + */ + get(assessmentsMetadataName: string, options?: msRest.RequestOptionsBase): Promise; + /** + * @param assessmentsMetadataName The Assessment Key - Unique key for the assessment type + * @param callback The callback + */ + get(assessmentsMetadataName: string, callback: msRest.ServiceCallback): void; + /** + * @param assessmentsMetadataName The Assessment Key - Unique key for the assessment type + * @param options The optional parameters + * @param callback The callback + */ + get(assessmentsMetadataName: string, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + get(assessmentsMetadataName: string, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + return this.client.sendOperationRequest( + { + assessmentsMetadataName, + options + }, + getOperationSpec, + callback) as Promise; + } + + /** + * Get metadata information on all assessment types + * @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; + } +} + +// Operation Specifications +const serializer = new msRest.Serializer(Mappers); +const listOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "providers/Microsoft.Security/assessmentsMetadata", + queryParameters: [ + Parameters.apiVersion5 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.SecurityAssessmentMetadataList + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; + +const getOperationSpec: msRest.OperationSpec = { + httpMethod: "GET", + path: "providers/Microsoft.Security/assessmentsMetadata/{assessmentsMetadataName}", + urlParameters: [ + Parameters.assessmentsMetadataName + ], + queryParameters: [ + Parameters.apiVersion5 + ], + headerParameters: [ + Parameters.acceptLanguage + ], + responses: { + 200: { + bodyMapper: Mappers.SecurityAssessmentMetadata + }, + 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.SecurityAssessmentMetadataList + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + serializer +}; diff --git a/sdk/security/arm-security/src/operations/index.ts b/sdk/security/arm-security/src/operations/index.ts index e33e934a1ea9..2d12fd870e40 100644 --- a/sdk/security/arm-security/src/operations/index.ts +++ b/sdk/security/arm-security/src/operations/index.ts @@ -16,7 +16,6 @@ export * from "./allowedConnections"; export * from "./discoveredSecuritySolutions"; export * from "./externalSecuritySolutions"; export * from "./jitNetworkAccessPolicies"; -export * from "./adaptiveApplicationControls"; export * from "./locations"; export * from "./operations"; export * from "./tasks"; @@ -27,14 +26,8 @@ export * from "./compliances"; export * from "./informationProtectionPolicies"; export * from "./securityContacts"; export * from "./workspaceSettings"; -export * from "./ioTSecuritySolutions"; -export * from "./ioTSecuritySolutionsResourceGroup"; -export * from "./iotSecuritySolution"; -export * from "./ioTSecuritySolutionsAnalytics"; -export * from "./ioTSecuritySolutionsAnalyticsAggregatedAlerts"; -export * from "./ioTSecuritySolutionsAnalyticsAggregatedAlert"; -export * from "./ioTSecuritySolutionsAnalyticsRecommendation"; -export * from "./ioTSecuritySolutionsAnalyticsRecommendations"; +export * from "./assessments"; +export * from "./assessmentsMetadata"; export * from "./regulatoryComplianceStandards"; export * from "./regulatoryComplianceControls"; export * from "./regulatoryComplianceAssessments"; diff --git a/sdk/security/arm-security/src/operations/pricings.ts b/sdk/security/arm-security/src/operations/pricings.ts index 3bf3fd1e008f..17e0c9936f16 100644 --- a/sdk/security/arm-security/src/operations/pricings.ts +++ b/sdk/security/arm-security/src/operations/pricings.ts @@ -53,9 +53,7 @@ export class Pricings { } /** - * A given security pricing configuration in the subscription. Azure Security Center is available - * in two pricing tiers: Free and Standard, on multiple resource types, including Virtual machines, - * SQL Servers, App service plans and Storage accounts. + * Security pricing configuration in the subscription * @param pricingName name of the pricing configuration * @param [options] The optional parameters * @returns Promise @@ -83,9 +81,7 @@ export class Pricings { } /** - * A given security pricing configuration in the subscription. Azure Security Center is available - * in two pricing tiers: Free and Standard, on multiple resource types, including Virtual machines, - * SQL Servers, App service plans and Storage accounts. + * Security pricing configuration in the subscription * @param pricingName name of the pricing configuration * @param pricing Pricing object * @param [options] The optional parameters diff --git a/sdk/security/arm-security/src/securityCenter.ts b/sdk/security/arm-security/src/securityCenter.ts index 37e72e0908c4..f134fccce15f 100644 --- a/sdk/security/arm-security/src/securityCenter.ts +++ b/sdk/security/arm-security/src/securityCenter.ts @@ -25,7 +25,6 @@ class SecurityCenter extends SecurityCenterContext { discoveredSecuritySolutions: operations.DiscoveredSecuritySolutions; externalSecuritySolutions: operations.ExternalSecuritySolutions; jitNetworkAccessPolicies: operations.JitNetworkAccessPolicies; - adaptiveApplicationControls: operations.AdaptiveApplicationControls; locations: operations.Locations; operations: operations.Operations; tasks: operations.Tasks; @@ -36,14 +35,8 @@ class SecurityCenter extends SecurityCenterContext { informationProtectionPolicies: operations.InformationProtectionPolicies; securityContacts: operations.SecurityContacts; workspaceSettings: operations.WorkspaceSettings; - ioTSecuritySolutions: operations.IoTSecuritySolutions; - ioTSecuritySolutionsResourceGroup: operations.IoTSecuritySolutionsResourceGroup; - iotSecuritySolution: operations.IotSecuritySolution; - ioTSecuritySolutionsAnalytics: operations.IoTSecuritySolutionsAnalytics; - ioTSecuritySolutionsAnalyticsAggregatedAlerts: operations.IoTSecuritySolutionsAnalyticsAggregatedAlerts; - ioTSecuritySolutionsAnalyticsAggregatedAlert: operations.IoTSecuritySolutionsAnalyticsAggregatedAlert; - ioTSecuritySolutionsAnalyticsRecommendation: operations.IoTSecuritySolutionsAnalyticsRecommendation; - ioTSecuritySolutionsAnalyticsRecommendations: operations.IoTSecuritySolutionsAnalyticsRecommendations; + assessments: operations.Assessments; + assessmentsMetadata: operations.AssessmentsMetadata; regulatoryComplianceStandards: operations.RegulatoryComplianceStandards; regulatoryComplianceControls: operations.RegulatoryComplianceControls; regulatoryComplianceAssessments: operations.RegulatoryComplianceAssessments; @@ -67,7 +60,6 @@ class SecurityCenter extends SecurityCenterContext { this.discoveredSecuritySolutions = new operations.DiscoveredSecuritySolutions(this); this.externalSecuritySolutions = new operations.ExternalSecuritySolutions(this); this.jitNetworkAccessPolicies = new operations.JitNetworkAccessPolicies(this); - this.adaptiveApplicationControls = new operations.AdaptiveApplicationControls(this); this.locations = new operations.Locations(this); this.operations = new operations.Operations(this); this.tasks = new operations.Tasks(this); @@ -78,14 +70,8 @@ class SecurityCenter extends SecurityCenterContext { this.informationProtectionPolicies = new operations.InformationProtectionPolicies(this); this.securityContacts = new operations.SecurityContacts(this); this.workspaceSettings = new operations.WorkspaceSettings(this); - this.ioTSecuritySolutions = new operations.IoTSecuritySolutions(this); - this.ioTSecuritySolutionsResourceGroup = new operations.IoTSecuritySolutionsResourceGroup(this); - this.iotSecuritySolution = new operations.IotSecuritySolution(this); - this.ioTSecuritySolutionsAnalytics = new operations.IoTSecuritySolutionsAnalytics(this); - this.ioTSecuritySolutionsAnalyticsAggregatedAlerts = new operations.IoTSecuritySolutionsAnalyticsAggregatedAlerts(this); - this.ioTSecuritySolutionsAnalyticsAggregatedAlert = new operations.IoTSecuritySolutionsAnalyticsAggregatedAlert(this); - this.ioTSecuritySolutionsAnalyticsRecommendation = new operations.IoTSecuritySolutionsAnalyticsRecommendation(this); - this.ioTSecuritySolutionsAnalyticsRecommendations = new operations.IoTSecuritySolutionsAnalyticsRecommendations(this); + this.assessments = new operations.Assessments(this); + this.assessmentsMetadata = new operations.AssessmentsMetadata(this); this.regulatoryComplianceStandards = new operations.RegulatoryComplianceStandards(this); this.regulatoryComplianceControls = new operations.RegulatoryComplianceControls(this); this.regulatoryComplianceAssessments = new operations.RegulatoryComplianceAssessments(this);