diff --git a/sdk/security/arm-security/src/models/adaptiveApplicationControlsMappers.ts b/sdk/security/arm-security/src/models/adaptiveApplicationControlsMappers.ts index c1d697222034..667ae58aa953 100644 --- a/sdk/security/arm-security/src/models/adaptiveApplicationControlsMappers.ts +++ b/sdk/security/arm-security/src/models/adaptiveApplicationControlsMappers.ts @@ -11,7 +11,6 @@ export { AppWhitelistingGroup, AppWhitelistingGroups, AppWhitelistingIssueSummary, - AppWhitelistingPutGroupData, CloudError, PathRecommendation, ProtectionMode, diff --git a/sdk/security/arm-security/src/models/index.ts b/sdk/security/arm-security/src/models/index.ts index e9baf40bb2cb..ad87286cd367 100644 --- a/sdk/security/arm-security/src/models/index.ts +++ b/sdk/security/arm-security/src/models/index.ts @@ -1957,208 +1957,6 @@ export interface AadConnectivityState1 { connectivityState?: AadConnectivityState; } -/** - * The protection mode of the collection/file types. Exe/Msi/Script are used for Windows, - * Executable is used for Linux. - */ -export interface ProtectionMode { - /** - * Possible values include: 'Audit', 'Enforce', 'None' - */ - exe?: Exe; - /** - * Possible values include: 'Audit', 'Enforce', 'None' - */ - msi?: Msi; - /** - * Possible values include: 'Audit', 'Enforce', 'None' - */ - script?: Script; - /** - * Possible values include: 'Audit', 'Enforce', 'None' - */ - executable?: Executable; -} - -/** - * 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; - /** - * Possible values include: 'Supported', 'NotSupported', 'Unknown' - */ - enforcementSupport?: EnforcementSupport; -} - -/** - * 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', 'None' - */ - enforcementMode?: EnforcementMode; - protectionMode?: ProtectionMode; - /** - * 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 { - /** - * The enforcement mode of the group. Can also be defined per collection type by using - * ProtectionMode. Possible values include: 'Audit', 'Enforce', 'None' - */ - enforcementMode?: EnforcementMode1; - /** - * The protection mode of the group per collection type. Can also be defined for all collection - * types by using EnforcementMode - */ - protectionMode?: ProtectionMode; - vmRecommendations?: VmRecommendation[]; - pathRecommendations?: PathRecommendation[]; -} - /** * Security operation display */ @@ -3167,78 +2965,268 @@ export interface SecurityAssessmentMetadata extends Resource { /** * True if this assessment is in preview release status */ - preview?: boolean; + preview?: boolean; + /** + * BuiltIn if the assessment based on built-in Azure Policy definition, Custom if the assessment + * based on custom Azure Policy definition. Possible values include: 'BuiltIn', 'CustomPolicy', + * 'CustomerManaged', 'VerifiedPartner' + */ + assessmentType: AssessmentType; + partnerData?: SecurityAssessmentMetadataPartnerData; +} + +/** + * The result of the assessment + */ +export interface AssessmentStatus { + /** + * Programmatic code for the status of the assessment. Possible values include: 'Healthy', + * 'Unhealthy', 'NotApplicable' + */ + code: AssessmentStatusCode; + /** + * Programmatic code for the cause of the assessment status + */ + cause?: string; + /** + * Human readable description of the assessment status + */ + description?: string; +} + +/** + * Links relevant to the assessment + */ +export interface AssessmentLinks { + /** + * Link to assessment in Azure Portal + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly azurePortalUri?: string; +} + +/** + * Data regarding 3rd party partner integration + */ +export interface SecurityAssessmentPartnerData { + /** + * Name of the company of the partner + */ + partnerName: string; + /** + * secret to authenticate the partner - write only + */ + secret: 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 + */ + additionalData?: { [propertyName: string]: string }; + links?: AssessmentLinks; + metadata?: SecurityAssessmentMetadataProperties; + partnersData?: SecurityAssessmentPartnerData; +} + +/** + * The protection mode of the collection/file types. Exe/Msi/Script are used for Windows, + * Executable is used for Linux. + */ +export interface ProtectionMode { + /** + * Possible values include: 'Audit', 'Enforce', 'None' + */ + exe?: Exe; + /** + * Possible values include: 'Audit', 'Enforce', 'None' + */ + msi?: Msi; + /** + * Possible values include: 'Audit', 'Enforce', 'None' + */ + script?: Script; + /** + * Possible values include: 'Audit', 'Enforce', 'None' + */ + executable?: Executable; +} + +/** + * 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; + /** + * Possible values include: 'Supported', 'NotSupported', 'Unknown' + */ + enforcementSupport?: EnforcementSupport; +} + +/** + * 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; /** - * BuiltIn if the assessment based on built-in Azure Policy definition, Custom if the assessment - * based on custom Azure Policy definition. Possible values include: 'BuiltIn', 'CustomPolicy', - * 'CustomerManaged', 'VerifiedPartner' + * Possible values include: 'Configured', 'NotConfigured', 'InProgress', 'Failed', 'NoStatus' */ - assessmentType: AssessmentType; - partnerData?: SecurityAssessmentMetadataPartnerData; + configurationStatus?: ConfigurationStatus1; } /** - * The result of the assessment + * An interface representing AppWhitelistingGroup. */ -export interface AssessmentStatus { +export interface AppWhitelistingGroup { /** - * Programmatic code for the status of the assessment. Possible values include: 'Healthy', - * 'Unhealthy', 'NotApplicable' + * Resource Id + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - code: AssessmentStatusCode; + readonly id?: string; /** - * Programmatic code for the cause of the assessment status + * Resource name + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - cause?: string; + readonly name?: string; /** - * Human readable description of the assessment status + * Resource type + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - description?: string; -} - -/** - * Links relevant to the assessment - */ -export interface AssessmentLinks { + readonly type?: string; /** - * Link to assessment in Azure Portal + * Location where the resource is stored * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly azurePortalUri?: string; -} - -/** - * Data regarding 3rd party partner integration - */ -export interface SecurityAssessmentPartnerData { + readonly location?: string; /** - * Name of the company of the partner + * Possible values include: 'Audit', 'Enforce', 'None' */ - partnerName: string; + enforcementMode?: EnforcementMode; + protectionMode?: ProtectionMode; /** - * secret to authenticate the partner - write only + * Possible values include: 'Configured', 'NotConfigured', 'InProgress', 'Failed', 'NoStatus' + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - secret: string; -} - -/** - * Security assessment on a resource - */ -export interface SecurityAssessment extends Resource { - resourceDetails: ResourceDetailsUnion; + readonly configurationStatus?: ConfigurationStatus2; /** - * User friendly display name of the assessment + * Possible values include: 'Recommended', 'NotRecommended', 'NotAvailable', 'NoStatus' * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - readonly displayName?: string; - status: AssessmentStatus; + readonly recommendationStatus?: RecommendationStatus; /** - * Additional data regarding the assessment + * **NOTE: This property will not be serialized. It can only be populated by the server.** */ - additionalData?: { [propertyName: string]: string }; - links?: AssessmentLinks; - metadata?: SecurityAssessmentMetadataProperties; - partnersData?: SecurityAssessmentPartnerData; + readonly issues?: AppWhitelistingIssueSummary[]; + /** + * Possible values include: 'Azure_AppLocker', 'Azure_AuditD', 'NonAzure_AppLocker', + * 'NonAzure_AuditD', 'None' + * **NOTE: This property will not be serialized. It can only be populated by the server.** + */ + readonly 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[]; } /** @@ -3804,20 +3792,6 @@ export interface IotSecuritySolutionsAnalyticsRecommendationListOptionalParams e top?: number; } -/** - * Optional Parameters. - */ -export interface AdaptiveApplicationControlsListOptionalParams extends msRest.RequestOptionsBase { - /** - * Include the policy rules - */ - includePathRecommendations?: boolean; - /** - * Return output in a summarized form - */ - summary?: boolean; -} - /** * Optional Parameters. */ @@ -3888,6 +3862,20 @@ export interface AssessmentsGetOptionalParams extends msRest.RequestOptionsBase expand?: ExpandEnum; } +/** + * Optional Parameters. + */ +export interface AdaptiveApplicationControlsListOptionalParams extends msRest.RequestOptionsBase { + /** + * Include the policy rules + */ + includePathRecommendations?: boolean; + /** + * Return output in a summarized form + */ + summary?: boolean; +} + /** * An interface representing SecurityCenterOptions. */ @@ -4562,6 +4550,14 @@ export type ExpandEnum = 'links' | 'metadata'; */ export type ConnectionType = 'Internal' | 'External'; +/** + * Defines values for ProvisioningState. + * Possible values include: 'Succeeded', 'Failed', 'Canceled', 'Provisioning', 'Deprovisioning' + * @readonly + * @enum {string} + */ +export type ProvisioningState = 'Succeeded' | 'Failed' | 'Canceled' | 'Provisioning' | 'Deprovisioning'; + /** * Defines values for Exe. * Possible values include: 'Audit', 'Enforce', 'None' @@ -4702,22 +4698,6 @@ export type RecommendationStatus = 'Recommended' | 'NotRecommended' | 'NotAvaila */ export type SourceSystem = 'Azure_AppLocker' | 'Azure_AuditD' | 'NonAzure_AppLocker' | 'NonAzure_AuditD' | 'None'; -/** - * Defines values for EnforcementMode1. - * Possible values include: 'Audit', 'Enforce', 'None' - * @readonly - * @enum {string} - */ -export type EnforcementMode1 = 'Audit' | 'Enforce' | 'None'; - -/** - * Defines values for ProvisioningState. - * Possible values include: 'Succeeded', 'Failed', 'Canceled', 'Provisioning', 'Deprovisioning' - * @readonly - * @enum {string} - */ -export type ProvisioningState = 'Succeeded' | 'Failed' | 'Canceled' | 'Provisioning' | 'Deprovisioning'; - /** * Defines values for SettingName. * Possible values include: 'MCAS', 'WDATP' @@ -5786,66 +5766,6 @@ export type ExternalSecuritySolutionsListByHomeRegionNextResponse = ExternalSecu }; }; -/** - * 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. */ @@ -7226,6 +7146,66 @@ export type AssessmentsListNextResponse = SecurityAssessmentList & { }; }; +/** + * 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 listByExtendedResource operation. */ diff --git a/sdk/security/arm-security/src/models/mappers.ts b/sdk/security/arm-security/src/models/mappers.ts index 4b7b7badf4d5..e7c656c7c41c 100644 --- a/sdk/security/arm-security/src/models/mappers.ts +++ b/sdk/security/arm-security/src/models/mappers.ts @@ -2149,32 +2149,36 @@ export const AadConnectivityState1: msRest.CompositeMapper = { } }; -export const ProtectionMode: msRest.CompositeMapper = { - serializedName: "ProtectionMode", +export const OperationDisplay: msRest.CompositeMapper = { + serializedName: "OperationDisplay", type: { name: "Composite", - className: "ProtectionMode", + className: "OperationDisplay", modelProperties: { - exe: { - serializedName: "exe", + provider: { + readOnly: true, + serializedName: "provider", type: { name: "String" } }, - msi: { - serializedName: "msi", + resource: { + readOnly: true, + serializedName: "resource", type: { name: "String" } }, - script: { - serializedName: "script", + operation: { + readOnly: true, + serializedName: "operation", type: { name: "String" } }, - executable: { - serializedName: "executable", + description: { + readOnly: true, + serializedName: "description", type: { name: "String" } @@ -2183,88 +2187,102 @@ export const ProtectionMode: msRest.CompositeMapper = { } }; -export const AppWhitelistingIssueSummary: msRest.CompositeMapper = { - serializedName: "AppWhitelistingIssueSummary", +export const Operation: msRest.CompositeMapper = { + serializedName: "Operation", type: { name: "Composite", - className: "AppWhitelistingIssueSummary", + className: "Operation", modelProperties: { - issue: { - serializedName: "issue", + name: { + readOnly: true, + serializedName: "name", type: { name: "String" } }, - numberOfVms: { - serializedName: "numberOfVms", + origin: { + readOnly: true, + serializedName: "origin", type: { - name: "Number" + name: "String" + } + }, + display: { + serializedName: "display", + type: { + name: "Composite", + className: "OperationDisplay" } } } } }; -export const VmRecommendation: msRest.CompositeMapper = { - serializedName: "VmRecommendation", +export const SecurityTaskParameters: msRest.CompositeMapper = { + serializedName: "SecurityTaskParameters", type: { name: "Composite", - className: "VmRecommendation", + className: "SecurityTaskParameters", modelProperties: { - configurationStatus: { - serializedName: "configurationStatus", - type: { - name: "String" - } - }, - recommendationAction: { - serializedName: "recommendationAction", - type: { - name: "String" - } - }, - resourceId: { - serializedName: "resourceId", - type: { - name: "String" - } - }, - enforcementSupport: { - serializedName: "enforcementSupport", + name: { + readOnly: true, + serializedName: "name", type: { name: "String" } } + }, + additionalProperties: { + type: { + name: "Object" + } } } }; -export const PublisherInfo: msRest.CompositeMapper = { - serializedName: "PublisherInfo", +export const SecurityTask: msRest.CompositeMapper = { + serializedName: "SecurityTask", type: { name: "Composite", - className: "PublisherInfo", + className: "SecurityTask", modelProperties: { - publisherName: { - serializedName: "publisherName", + ...Resource.type.modelProperties, + state: { + readOnly: true, + serializedName: "properties.state", type: { name: "String" } }, - productName: { - serializedName: "productName", + creationTimeUtc: { + readOnly: true, + serializedName: "properties.creationTimeUtc", type: { - name: "String" + name: "DateTime" } }, - binaryName: { - serializedName: "binaryName", + securityTaskParameters: { + serializedName: "properties.securityTaskParameters", type: { - name: "String" + name: "Composite", + className: "SecurityTaskParameters", + additionalProperties: { + type: { + name: "Object" + } + } } }, - version: { - serializedName: "version", + lastStateChangeTimeUtc: { + readOnly: true, + serializedName: "properties.lastStateChangeTimeUtc", + type: { + name: "DateTime" + } + }, + subState: { + readOnly: true, + serializedName: "properties.subState", type: { name: "String" } @@ -2273,20 +2291,16 @@ export const PublisherInfo: msRest.CompositeMapper = { } }; -export const UserRecommendation: msRest.CompositeMapper = { - serializedName: "UserRecommendation", +export const AutoProvisioningSetting: msRest.CompositeMapper = { + serializedName: "AutoProvisioningSetting", type: { name: "Composite", - className: "UserRecommendation", + className: "AutoProvisioningSetting", modelProperties: { - username: { - serializedName: "username", - type: { - name: "String" - } - }, - recommendationAction: { - serializedName: "recommendationAction", + ...Resource.type.modelProperties, + autoProvision: { + required: true, + serializedName: "properties.autoProvision", type: { name: "String" } @@ -2295,201 +2309,199 @@ export const UserRecommendation: msRest.CompositeMapper = { } }; -export const PathRecommendation: msRest.CompositeMapper = { - serializedName: "PathRecommendation", +export const ComplianceSegment: msRest.CompositeMapper = { + serializedName: "ComplianceSegment", type: { name: "Composite", - className: "PathRecommendation", + className: "ComplianceSegment", modelProperties: { - path: { - serializedName: "path", - type: { - name: "String" - } - }, - action: { - serializedName: "action", - type: { - name: "String" - } - }, - type: { - serializedName: "type", + segmentType: { + readOnly: true, + serializedName: "segmentType", type: { name: "String" } }, - publisherInfo: { - serializedName: "publisherInfo", + percentage: { + readOnly: true, + serializedName: "percentage", type: { - name: "Composite", - className: "PublisherInfo" + name: "Number" } - }, - common: { - serializedName: "common", + } + } + } +}; + +export const Compliance: msRest.CompositeMapper = { + serializedName: "Compliance", + type: { + name: "Composite", + className: "Compliance", + modelProperties: { + ...Resource.type.modelProperties, + assessmentTimestampUtcDate: { + readOnly: true, + serializedName: "properties.assessmentTimestampUtcDate", type: { - name: "Boolean" + name: "DateTime" } }, - userSids: { - serializedName: "userSids", + resourceCount: { + readOnly: true, + serializedName: "properties.resourceCount", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "Number" } }, - usernames: { - serializedName: "usernames", + assessmentResult: { + readOnly: true, + serializedName: "properties.assessmentResult", type: { name: "Sequence", element: { type: { name: "Composite", - className: "UserRecommendation" + className: "ComplianceSegment" } } } - }, - fileType: { - serializedName: "fileType", - type: { - name: "String" - } - }, - configurationStatus: { - serializedName: "configurationStatus", - type: { - name: "String" - } } } } }; -export const AppWhitelistingGroup: msRest.CompositeMapper = { - serializedName: "AppWhitelistingGroup", +export const SensitivityLabel: msRest.CompositeMapper = { + serializedName: "SensitivityLabel", type: { name: "Composite", - className: "AppWhitelistingGroup", + className: "SensitivityLabel", modelProperties: { - id: { - readOnly: true, - serializedName: "id", - type: { - name: "String" - } - }, - name: { - readOnly: true, - serializedName: "name", + displayName: { + serializedName: "displayName", type: { name: "String" } }, - type: { - readOnly: true, - serializedName: "type", + description: { + serializedName: "description", type: { name: "String" } }, - location: { - readOnly: true, - serializedName: "location", + rank: { + serializedName: "rank", type: { - name: "String" + name: "Enum", + allowedValues: [ + "None", + "Low", + "Medium", + "High", + "Critical" + ] } }, - enforcementMode: { - serializedName: "properties.enforcementMode", + 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" } }, - protectionMode: { - serializedName: "properties.protectionMode", + custom: { + serializedName: "custom", type: { - name: "Composite", - className: "ProtectionMode" + name: "Boolean" } }, - configurationStatus: { - serializedName: "properties.configurationStatus", + 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" } }, - recommendationStatus: { - serializedName: "properties.recommendationStatus", + description: { + serializedName: "description", type: { name: "String" } }, - issues: { - serializedName: "properties.issues", + order: { + serializedName: "order", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "AppWhitelistingIssueSummary" - } - } + name: "Number" } }, - sourceSystem: { - serializedName: "properties.sourceSystem", + recommendedLabelId: { + serializedName: "recommendedLabelId", type: { - name: "String" + name: "Uuid" } }, - vmRecommendations: { - serializedName: "properties.vmRecommendations", + enabled: { + serializedName: "enabled", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "VmRecommendation" - } - } + name: "Boolean" } }, - pathRecommendations: { - serializedName: "properties.pathRecommendations", + custom: { + serializedName: "custom", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "PathRecommendation" - } - } + name: "Boolean" } - } - } - } -}; - -export const AppWhitelistingGroups: msRest.CompositeMapper = { - serializedName: "AppWhitelistingGroups", - type: { - name: "Composite", - className: "AppWhitelistingGroups", - modelProperties: { - value: { - serializedName: "value", + }, + keywords: { + serializedName: "keywords", type: { name: "Sequence", element: { type: { name: "Composite", - className: "AppWhitelistingGroup" + className: "InformationProtectionKeyword" } } } @@ -2498,45 +2510,47 @@ export const AppWhitelistingGroups: msRest.CompositeMapper = { } }; -export const AppWhitelistingPutGroupData: msRest.CompositeMapper = { - serializedName: "AppWhitelistingPutGroupData", +export const InformationProtectionPolicy: msRest.CompositeMapper = { + serializedName: "InformationProtectionPolicy", type: { name: "Composite", - className: "AppWhitelistingPutGroupData", + className: "InformationProtectionPolicy", modelProperties: { - enforcementMode: { - serializedName: "enforcementMode", + ...Resource.type.modelProperties, + lastModifiedUtc: { + readOnly: true, + serializedName: "properties.lastModifiedUtc", type: { - name: "String" + name: "DateTime" } }, - protectionMode: { - serializedName: "protectionMode", + version: { + readOnly: true, + serializedName: "properties.version", type: { - name: "Composite", - className: "ProtectionMode" + name: "String" } }, - vmRecommendations: { - serializedName: "vmRecommendations", + labels: { + serializedName: "properties.labels", type: { - name: "Sequence", - element: { + name: "Dictionary", + value: { type: { name: "Composite", - className: "VmRecommendation" + className: "SensitivityLabel" } } } }, - pathRecommendations: { - serializedName: "pathRecommendations", + informationTypes: { + serializedName: "properties.informationTypes", type: { - name: "Sequence", - element: { + name: "Dictionary", + value: { type: { name: "Composite", - className: "PathRecommendation" + className: "InformationType" } } } @@ -2545,36 +2559,36 @@ export const AppWhitelistingPutGroupData: msRest.CompositeMapper = { } }; -export const OperationDisplay: msRest.CompositeMapper = { - serializedName: "OperationDisplay", +export const SecurityContact: msRest.CompositeMapper = { + serializedName: "SecurityContact", type: { name: "Composite", - className: "OperationDisplay", + className: "SecurityContact", modelProperties: { - provider: { - readOnly: true, - serializedName: "provider", + ...Resource.type.modelProperties, + email: { + required: true, + serializedName: "properties.email", type: { name: "String" } }, - resource: { - readOnly: true, - serializedName: "resource", + phone: { + serializedName: "properties.phone", type: { name: "String" } }, - operation: { - readOnly: true, - serializedName: "operation", + alertNotifications: { + required: true, + serializedName: "properties.alertNotifications", type: { name: "String" } }, - description: { - readOnly: true, - serializedName: "description", + alertsToAdmins: { + required: true, + serializedName: "properties.alertsToAdmins", type: { name: "String" } @@ -2583,144 +2597,113 @@ export const OperationDisplay: msRest.CompositeMapper = { } }; -export const Operation: msRest.CompositeMapper = { - serializedName: "Operation", +export const WorkspaceSetting: msRest.CompositeMapper = { + serializedName: "WorkspaceSetting", type: { name: "Composite", - className: "Operation", + className: "WorkspaceSetting", modelProperties: { - name: { - readOnly: true, - serializedName: "name", - type: { - name: "String" - } - }, - origin: { - readOnly: true, - serializedName: "origin", + ...Resource.type.modelProperties, + workspaceId: { + required: true, + serializedName: "properties.workspaceId", type: { name: "String" } }, - display: { - serializedName: "display", - type: { - name: "Composite", - className: "OperationDisplay" - } - } - } - } -}; - -export const SecurityTaskParameters: msRest.CompositeMapper = { - serializedName: "SecurityTaskParameters", - type: { - name: "Composite", - className: "SecurityTaskParameters", - modelProperties: { - name: { - readOnly: true, - serializedName: "name", + scope: { + required: true, + serializedName: "properties.scope", type: { name: "String" } } - }, - additionalProperties: { - type: { - name: "Object" - } } } }; -export const SecurityTask: msRest.CompositeMapper = { - serializedName: "SecurityTask", +export const RegulatoryComplianceStandard: msRest.CompositeMapper = { + serializedName: "RegulatoryComplianceStandard", type: { name: "Composite", - className: "SecurityTask", + className: "RegulatoryComplianceStandard", modelProperties: { ...Resource.type.modelProperties, state: { - readOnly: true, serializedName: "properties.state", type: { name: "String" } }, - creationTimeUtc: { + passedControls: { readOnly: true, - serializedName: "properties.creationTimeUtc", + serializedName: "properties.passedControls", type: { - name: "DateTime" + name: "Number" } }, - securityTaskParameters: { - serializedName: "properties.securityTaskParameters", + failedControls: { + readOnly: true, + serializedName: "properties.failedControls", type: { - name: "Composite", - className: "SecurityTaskParameters", - additionalProperties: { - type: { - name: "Object" - } - } + name: "Number" } }, - lastStateChangeTimeUtc: { + skippedControls: { readOnly: true, - serializedName: "properties.lastStateChangeTimeUtc", + serializedName: "properties.skippedControls", type: { - name: "DateTime" + name: "Number" } }, - subState: { + unsupportedControls: { readOnly: true, - serializedName: "properties.subState", + serializedName: "properties.unsupportedControls", type: { - name: "String" + name: "Number" } } } } }; -export const AutoProvisioningSetting: msRest.CompositeMapper = { - serializedName: "AutoProvisioningSetting", +export const RegulatoryComplianceControl: msRest.CompositeMapper = { + serializedName: "RegulatoryComplianceControl", type: { name: "Composite", - className: "AutoProvisioningSetting", + className: "RegulatoryComplianceControl", modelProperties: { ...Resource.type.modelProperties, - autoProvision: { - required: true, - serializedName: "properties.autoProvision", + description: { + readOnly: true, + serializedName: "properties.description", type: { name: "String" } - } - } - } -}; - -export const ComplianceSegment: msRest.CompositeMapper = { - serializedName: "ComplianceSegment", - type: { - name: "Composite", - className: "ComplianceSegment", - modelProperties: { - segmentType: { - readOnly: true, - serializedName: "segmentType", + }, + state: { + serializedName: "properties.state", type: { name: "String" } }, - percentage: { + passedAssessments: { readOnly: true, - serializedName: "percentage", + serializedName: "properties.passedAssessments", + type: { + name: "Number" + } + }, + failedAssessments: { + readOnly: true, + serializedName: "properties.failedAssessments", + type: { + name: "Number" + } + }, + skippedAssessments: { + readOnly: true, + serializedName: "properties.skippedAssessments", type: { name: "Number" } @@ -2729,175 +2712,104 @@ export const ComplianceSegment: msRest.CompositeMapper = { } }; -export const Compliance: msRest.CompositeMapper = { - serializedName: "Compliance", +export const RegulatoryComplianceAssessment: msRest.CompositeMapper = { + serializedName: "RegulatoryComplianceAssessment", type: { name: "Composite", - className: "Compliance", + className: "RegulatoryComplianceAssessment", modelProperties: { ...Resource.type.modelProperties, - assessmentTimestampUtcDate: { + description: { readOnly: true, - serializedName: "properties.assessmentTimestampUtcDate", + serializedName: "properties.description", type: { - name: "DateTime" + name: "String" } }, - resourceCount: { + assessmentType: { readOnly: true, - serializedName: "properties.resourceCount", + serializedName: "properties.assessmentType", type: { - name: "Number" + name: "String" } }, - assessmentResult: { + assessmentDetailsLink: { readOnly: true, - serializedName: "properties.assessmentResult", + serializedName: "properties.assessmentDetailsLink", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ComplianceSegment" - } - } + name: "String" } - } - } - } -}; - -export const SensitivityLabel: msRest.CompositeMapper = { - serializedName: "SensitivityLabel", - type: { - name: "Composite", - className: "SensitivityLabel", - modelProperties: { - displayName: { - serializedName: "displayName", + }, + state: { + serializedName: "properties.state", type: { name: "String" } }, - description: { - serializedName: "description", + passedResources: { + readOnly: true, + serializedName: "properties.passedResources", type: { - name: "String" + name: "Number" } }, - rank: { - serializedName: "rank", + failedResources: { + readOnly: true, + serializedName: "properties.failedResources", type: { - name: "Enum", - allowedValues: [ - "None", - "Low", - "Medium", - "High", - "Critical" - ] + name: "Number" } }, - order: { - serializedName: "order", + skippedResources: { + readOnly: true, + serializedName: "properties.skippedResources", type: { name: "Number" } }, - enabled: { - serializedName: "enabled", + unsupportedResources: { + readOnly: true, + serializedName: "properties.unsupportedResources", type: { - name: "Boolean" + name: "Number" } } } } }; -export const InformationProtectionKeyword: msRest.CompositeMapper = { - serializedName: "InformationProtectionKeyword", +export const ServerVulnerabilityAssessment: msRest.CompositeMapper = { + serializedName: "ServerVulnerabilityAssessment", type: { name: "Composite", - className: "InformationProtectionKeyword", + className: "ServerVulnerabilityAssessment", modelProperties: { - pattern: { - serializedName: "pattern", + ...Resource.type.modelProperties, + provisioningState: { + readOnly: true, + serializedName: "properties.provisioningState", 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", +export const ServerVulnerabilityAssessmentsList: msRest.CompositeMapper = { + serializedName: "ServerVulnerabilityAssessmentsList", type: { name: "Composite", - className: "InformationType", + className: "ServerVulnerabilityAssessmentsList", modelProperties: { - displayName: { - serializedName: "displayName", - type: { - name: "String" - } - }, - description: { - serializedName: "description", - 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", + value: { + serializedName: "value", type: { name: "Sequence", element: { type: { name: "Composite", - className: "InformationProtectionKeyword" + className: "ServerVulnerabilityAssessment" } } } @@ -2906,85 +2818,58 @@ export const InformationType: msRest.CompositeMapper = { } }; -export const InformationProtectionPolicy: msRest.CompositeMapper = { - serializedName: "InformationProtectionPolicy", +export const SubAssessmentStatus: msRest.CompositeMapper = { + serializedName: "SubAssessmentStatus", type: { name: "Composite", - className: "InformationProtectionPolicy", + className: "SubAssessmentStatus", modelProperties: { - ...Resource.type.modelProperties, - lastModifiedUtc: { + code: { readOnly: true, - serializedName: "properties.lastModifiedUtc", + serializedName: "code", type: { - name: "DateTime" + name: "String" } }, - version: { + cause: { readOnly: true, - serializedName: "properties.version", + serializedName: "cause", type: { name: "String" } }, - labels: { - serializedName: "properties.labels", + description: { + readOnly: true, + serializedName: "description", type: { - name: "Dictionary", - value: { - type: { - name: "Composite", - className: "SensitivityLabel" - } - } + name: "String" } }, - informationTypes: { - serializedName: "properties.informationTypes", + severity: { + readOnly: true, + serializedName: "severity", type: { - name: "Dictionary", - value: { - type: { - name: "Composite", - className: "InformationType" - } - } + name: "String" } } } } }; -export const SecurityContact: msRest.CompositeMapper = { - serializedName: "SecurityContact", +export const ResourceDetails: msRest.CompositeMapper = { + serializedName: "ResourceDetails", type: { name: "Composite", - className: "SecurityContact", + polymorphicDiscriminator: { + serializedName: "source", + clientName: "source" + }, + uberParent: "ResourceDetails", + className: "ResourceDetails", 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: { + source: { required: true, - serializedName: "properties.alertsToAdmins", + serializedName: "source", type: { name: "String" } @@ -2993,23 +2878,20 @@ export const SecurityContact: msRest.CompositeMapper = { } }; -export const WorkspaceSetting: msRest.CompositeMapper = { - serializedName: "WorkspaceSetting", +export const AdditionalData: msRest.CompositeMapper = { + serializedName: "AdditionalData", type: { name: "Composite", - className: "WorkspaceSetting", + polymorphicDiscriminator: { + serializedName: "assessedResourceType", + clientName: "assessedResourceType" + }, + uberParent: "AdditionalData", + className: "AdditionalData", modelProperties: { - ...Resource.type.modelProperties, - workspaceId: { - required: true, - serializedName: "properties.workspaceId", - type: { - name: "String" - } - }, - scope: { + assessedResourceType: { required: true, - serializedName: "properties.scope", + serializedName: "assessedResourceType", type: { name: "String" } @@ -3018,172 +2900,171 @@ export const WorkspaceSetting: msRest.CompositeMapper = { } }; -export const RegulatoryComplianceStandard: msRest.CompositeMapper = { - serializedName: "RegulatoryComplianceStandard", +export const SecuritySubAssessment: msRest.CompositeMapper = { + serializedName: "SecuritySubAssessment", type: { name: "Composite", - className: "RegulatoryComplianceStandard", + className: "SecuritySubAssessment", modelProperties: { ...Resource.type.modelProperties, - state: { - serializedName: "properties.state", + securitySubAssessmentId: { + readOnly: true, + serializedName: "properties.id", type: { name: "String" } }, - passedControls: { + displayName: { readOnly: true, - serializedName: "properties.passedControls", + serializedName: "properties.displayName", type: { - name: "Number" + name: "String" } }, - failedControls: { - readOnly: true, - serializedName: "properties.failedControls", + status: { + serializedName: "properties.status", type: { - name: "Number" + name: "Composite", + className: "SubAssessmentStatus" } }, - skippedControls: { + remediation: { readOnly: true, - serializedName: "properties.skippedControls", + serializedName: "properties.remediation", type: { - name: "Number" + name: "String" } }, - unsupportedControls: { + impact: { readOnly: true, - serializedName: "properties.unsupportedControls", + serializedName: "properties.impact", type: { - name: "Number" + name: "String" } - } - } - } -}; - -export const RegulatoryComplianceControl: msRest.CompositeMapper = { - serializedName: "RegulatoryComplianceControl", - type: { - name: "Composite", - className: "RegulatoryComplianceControl", - modelProperties: { - ...Resource.type.modelProperties, - description: { + }, + category: { readOnly: true, - serializedName: "properties.description", + serializedName: "properties.category", type: { name: "String" } }, - state: { - serializedName: "properties.state", + description: { + readOnly: true, + serializedName: "properties.description", type: { name: "String" } }, - passedAssessments: { + timeGenerated: { readOnly: true, - serializedName: "properties.passedAssessments", + serializedName: "properties.timeGenerated", type: { - name: "Number" + name: "DateTime" } }, - failedAssessments: { - readOnly: true, - serializedName: "properties.failedAssessments", + resourceDetails: { + serializedName: "properties.resourceDetails", type: { - name: "Number" + name: "Composite", + className: "ResourceDetails" } }, - skippedAssessments: { - readOnly: true, - serializedName: "properties.skippedAssessments", + additionalData: { + serializedName: "properties.additionalData", type: { - name: "Number" + name: "Composite", + className: "AdditionalData" } } } } }; -export const RegulatoryComplianceAssessment: msRest.CompositeMapper = { - serializedName: "RegulatoryComplianceAssessment", +export const SqlServerVulnerabilityProperties: msRest.CompositeMapper = { + serializedName: "SqlServerVulnerability", type: { name: "Composite", - className: "RegulatoryComplianceAssessment", + polymorphicDiscriminator: AdditionalData.type.polymorphicDiscriminator, + uberParent: "AdditionalData", + className: "SqlServerVulnerabilityProperties", modelProperties: { - ...Resource.type.modelProperties, - description: { - readOnly: true, - serializedName: "properties.description", - type: { - name: "String" - } - }, - assessmentType: { + ...AdditionalData.type.modelProperties, + type: { readOnly: true, - serializedName: "properties.assessmentType", + serializedName: "type", type: { name: "String" } }, - assessmentDetailsLink: { + query: { readOnly: true, - serializedName: "properties.assessmentDetailsLink", - type: { - name: "String" - } - }, - state: { - serializedName: "properties.state", + serializedName: "query", type: { name: "String" } - }, - passedResources: { - readOnly: true, - serializedName: "properties.passedResources", - type: { - name: "Number" - } - }, - failedResources: { + } + } + } +}; + +export const CVSS: msRest.CompositeMapper = { + serializedName: "CVSS", + type: { + name: "Composite", + className: "CVSS", + modelProperties: { + base: { readOnly: true, - serializedName: "properties.failedResources", + serializedName: "base", type: { name: "Number" } - }, - skippedResources: { + } + } + } +}; + +export const CVE: msRest.CompositeMapper = { + serializedName: "CVE", + type: { + name: "Composite", + className: "CVE", + modelProperties: { + title: { readOnly: true, - serializedName: "properties.skippedResources", + serializedName: "title", type: { - name: "Number" + name: "String" } }, - unsupportedResources: { + link: { readOnly: true, - serializedName: "properties.unsupportedResources", + serializedName: "link", type: { - name: "Number" + name: "String" } } } } }; -export const ServerVulnerabilityAssessment: msRest.CompositeMapper = { - serializedName: "ServerVulnerabilityAssessment", +export const VendorReference: msRest.CompositeMapper = { + serializedName: "VendorReference", type: { name: "Composite", - className: "ServerVulnerabilityAssessment", + className: "VendorReference", modelProperties: { - ...Resource.type.modelProperties, - provisioningState: { + title: { readOnly: true, - serializedName: "properties.provisioningState", + serializedName: "title", + type: { + name: "String" + } + }, + link: { + readOnly: true, + serializedName: "link", type: { name: "String" } @@ -3192,102 +3073,85 @@ export const ServerVulnerabilityAssessment: msRest.CompositeMapper = { } }; -export const ServerVulnerabilityAssessmentsList: msRest.CompositeMapper = { - serializedName: "ServerVulnerabilityAssessmentsList", +export const ContainerRegistryVulnerabilityProperties: msRest.CompositeMapper = { + serializedName: "ContainerRegistryVulnerability", type: { name: "Composite", - className: "ServerVulnerabilityAssessmentsList", + polymorphicDiscriminator: AdditionalData.type.polymorphicDiscriminator, + uberParent: "AdditionalData", + className: "ContainerRegistryVulnerabilityProperties", modelProperties: { - value: { - serializedName: "value", + ...AdditionalData.type.modelProperties, + type: { + readOnly: true, + serializedName: "type", type: { - name: "Sequence", - element: { + name: "String" + } + }, + cvss: { + readOnly: true, + serializedName: "cvss", + type: { + name: "Dictionary", + value: { type: { name: "Composite", - className: "ServerVulnerabilityAssessment" + className: "CVSS" } } } - } - } - } -}; - -export const SubAssessmentStatus: msRest.CompositeMapper = { - serializedName: "SubAssessmentStatus", - type: { - name: "Composite", - className: "SubAssessmentStatus", - modelProperties: { - code: { + }, + patchable: { readOnly: true, - serializedName: "code", + serializedName: "patchable", type: { - name: "String" + name: "Boolean" } }, - cause: { + cve: { readOnly: true, - serializedName: "cause", + serializedName: "cve", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "CVE" + } + } } }, - description: { + publishedTime: { readOnly: true, - serializedName: "description", + serializedName: "publishedTime", type: { - name: "String" + name: "DateTime" } }, - severity: { + vendorReferences: { readOnly: true, - serializedName: "severity", + serializedName: "vendorReferences", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "VendorReference" + } + } } - } - } - } -}; - -export const ResourceDetails: msRest.CompositeMapper = { - serializedName: "ResourceDetails", - type: { - name: "Composite", - polymorphicDiscriminator: { - serializedName: "source", - clientName: "source" - }, - uberParent: "ResourceDetails", - className: "ResourceDetails", - modelProperties: { - source: { - required: true, - serializedName: "source", + }, + repositoryName: { + readOnly: true, + serializedName: "repositoryName", type: { name: "String" } - } - } - } -}; - -export const AdditionalData: msRest.CompositeMapper = { - serializedName: "AdditionalData", - type: { - name: "Composite", - polymorphicDiscriminator: { - serializedName: "assessedResourceType", - clientName: "assessedResourceType" - }, - uberParent: "AdditionalData", - className: "AdditionalData", - modelProperties: { - assessedResourceType: { - required: true, - serializedName: "assessedResourceType", + }, + imageDigest: { + readOnly: true, + serializedName: "imageDigest", type: { name: "String" } @@ -3296,147 +3160,139 @@ export const AdditionalData: msRest.CompositeMapper = { } }; -export const SecuritySubAssessment: msRest.CompositeMapper = { - serializedName: "SecuritySubAssessment", +export const ServerVulnerabilityProperties: msRest.CompositeMapper = { + serializedName: "ServerVulnerabilityAssessment", type: { name: "Composite", - className: "SecuritySubAssessment", + polymorphicDiscriminator: AdditionalData.type.polymorphicDiscriminator, + uberParent: "AdditionalData", + className: "ServerVulnerabilityProperties", modelProperties: { - ...Resource.type.modelProperties, - securitySubAssessmentId: { - readOnly: true, - serializedName: "properties.id", - type: { - name: "String" - } - }, - displayName: { + ...AdditionalData.type.modelProperties, + type: { readOnly: true, - serializedName: "properties.displayName", + serializedName: "type", type: { name: "String" } }, - status: { - serializedName: "properties.status", - type: { - name: "Composite", - className: "SubAssessmentStatus" - } - }, - remediation: { + cvss: { readOnly: true, - serializedName: "properties.remediation", + serializedName: "cvss", type: { - name: "String" + name: "Dictionary", + value: { + type: { + name: "Composite", + className: "CVSS" + } + } } }, - impact: { + patchable: { readOnly: true, - serializedName: "properties.impact", + serializedName: "patchable", type: { - name: "String" + name: "Boolean" } }, - category: { + cve: { readOnly: true, - serializedName: "properties.category", + serializedName: "cve", type: { - name: "String" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "CVE" + } + } } }, - description: { + threat: { readOnly: true, - serializedName: "properties.description", + serializedName: "threat", type: { name: "String" } }, - timeGenerated: { + publishedTime: { readOnly: true, - serializedName: "properties.timeGenerated", + serializedName: "publishedTime", type: { name: "DateTime" } }, - resourceDetails: { - serializedName: "properties.resourceDetails", - type: { - name: "Composite", - className: "ResourceDetails" - } - }, - additionalData: { - serializedName: "properties.additionalData", + vendorReferences: { + readOnly: true, + serializedName: "vendorReferences", type: { - name: "Composite", - className: "AdditionalData" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "VendorReference" + } + } } } } } }; -export const SqlServerVulnerabilityProperties: msRest.CompositeMapper = { - serializedName: "SqlServerVulnerability", +export const OnPremiseResourceDetails: msRest.CompositeMapper = { + serializedName: "OnPremise", type: { name: "Composite", - polymorphicDiscriminator: AdditionalData.type.polymorphicDiscriminator, - uberParent: "AdditionalData", - className: "SqlServerVulnerabilityProperties", + polymorphicDiscriminator: ResourceDetails.type.polymorphicDiscriminator, + uberParent: "ResourceDetails", + className: "OnPremiseResourceDetails", modelProperties: { - ...AdditionalData.type.modelProperties, - type: { - readOnly: true, - serializedName: "type", + ...ResourceDetails.type.modelProperties, + workspaceId: { + required: true, + serializedName: "workspaceId", type: { name: "String" } }, - query: { - readOnly: true, - serializedName: "query", + vmuuid: { + required: true, + serializedName: "vmuuid", type: { name: "String" } - } - } - } -}; - -export const CVSS: msRest.CompositeMapper = { - serializedName: "CVSS", - type: { - name: "Composite", - className: "CVSS", - modelProperties: { - base: { - readOnly: true, - serializedName: "base", + }, + sourceComputerId: { + required: true, + serializedName: "sourceComputerId", type: { - name: "Number" + name: "String" + } + }, + machineName: { + required: true, + serializedName: "machineName", + type: { + name: "String" } } } } }; -export const CVE: msRest.CompositeMapper = { - serializedName: "CVE", +export const AzureResourceDetails: msRest.CompositeMapper = { + serializedName: "Azure", type: { - name: "Composite", - className: "CVE", - modelProperties: { - title: { - readOnly: true, - serializedName: "title", - type: { - name: "String" - } - }, - link: { + name: "Composite", + polymorphicDiscriminator: ResourceDetails.type.polymorphicDiscriminator, + uberParent: "ResourceDetails", + className: "AzureResourceDetails", + modelProperties: { + ...ResourceDetails.type.modelProperties, + id: { readOnly: true, - serializedName: "link", + serializedName: "id", type: { name: "String" } @@ -3445,22 +3301,20 @@ export const CVE: msRest.CompositeMapper = { } }; -export const VendorReference: msRest.CompositeMapper = { - serializedName: "VendorReference", +export const AutomationScope: msRest.CompositeMapper = { + serializedName: "AutomationScope", type: { name: "Composite", - className: "VendorReference", + className: "AutomationScope", modelProperties: { - title: { - readOnly: true, - serializedName: "title", + description: { + serializedName: "description", type: { name: "String" } }, - link: { - readOnly: true, - serializedName: "link", + scopePath: { + serializedName: "scopePath", type: { name: "String" } @@ -3469,85 +3323,104 @@ export const VendorReference: msRest.CompositeMapper = { } }; -export const ContainerRegistryVulnerabilityProperties: msRest.CompositeMapper = { - serializedName: "ContainerRegistryVulnerability", +export const AutomationTriggeringRule: msRest.CompositeMapper = { + serializedName: "AutomationTriggeringRule", type: { name: "Composite", - polymorphicDiscriminator: AdditionalData.type.polymorphicDiscriminator, - uberParent: "AdditionalData", - className: "ContainerRegistryVulnerabilityProperties", + className: "AutomationTriggeringRule", modelProperties: { - ...AdditionalData.type.modelProperties, - type: { - readOnly: true, - serializedName: "type", + propertyJPath: { + serializedName: "propertyJPath", type: { name: "String" } }, - cvss: { - readOnly: true, - serializedName: "cvss", + propertyType: { + serializedName: "propertyType", type: { - name: "Dictionary", - value: { - type: { - name: "Composite", - className: "CVSS" - } - } + name: "String" } }, - patchable: { - readOnly: true, - serializedName: "patchable", + expectedValue: { + serializedName: "expectedValue", type: { - name: "Boolean" + name: "String" } }, - cve: { - readOnly: true, - serializedName: "cve", + operator: { + serializedName: "operator", + type: { + name: "String" + } + } + } + } +}; + +export const AutomationRuleSet: msRest.CompositeMapper = { + serializedName: "AutomationRuleSet", + type: { + name: "Composite", + className: "AutomationRuleSet", + modelProperties: { + rules: { + serializedName: "rules", type: { name: "Sequence", element: { type: { name: "Composite", - className: "CVE" + className: "AutomationTriggeringRule" } } } - }, - publishedTime: { - readOnly: true, - serializedName: "publishedTime", + } + } + } +}; + +export const AutomationSource: msRest.CompositeMapper = { + serializedName: "AutomationSource", + type: { + name: "Composite", + className: "AutomationSource", + modelProperties: { + eventSource: { + serializedName: "eventSource", type: { - name: "DateTime" + name: "String" } }, - vendorReferences: { - readOnly: true, - serializedName: "vendorReferences", + ruleSets: { + serializedName: "ruleSets", type: { name: "Sequence", element: { type: { name: "Composite", - className: "VendorReference" + className: "AutomationRuleSet" } } } - }, - repositoryName: { - readOnly: true, - serializedName: "repositoryName", - type: { - name: "String" - } - }, - imageDigest: { - readOnly: true, - serializedName: "imageDigest", + } + } + } +}; + +export const AutomationAction: msRest.CompositeMapper = { + serializedName: "AutomationAction", + type: { + name: "Composite", + polymorphicDiscriminator: { + serializedName: "actionType", + clientName: "actionType" + }, + uberParent: "AutomationAction", + className: "AutomationAction", + modelProperties: { + actionType: { + required: true, + serializedName: "actionType", type: { name: "String" } @@ -3556,78 +3429,57 @@ export const ContainerRegistryVulnerabilityProperties: msRest.CompositeMapper = } }; -export const ServerVulnerabilityProperties: msRest.CompositeMapper = { - serializedName: "ServerVulnerabilityAssessment", +export const Automation: msRest.CompositeMapper = { + serializedName: "Automation", type: { name: "Composite", - polymorphicDiscriminator: AdditionalData.type.polymorphicDiscriminator, - uberParent: "AdditionalData", - className: "ServerVulnerabilityProperties", + className: "Automation", modelProperties: { - ...AdditionalData.type.modelProperties, - type: { - readOnly: true, - serializedName: "type", + ...TrackedResource.type.modelProperties, + description: { + serializedName: "properties.description", type: { name: "String" } }, - cvss: { - readOnly: true, - serializedName: "cvss", - type: { - name: "Dictionary", - value: { - type: { - name: "Composite", - className: "CVSS" - } - } - } - }, - patchable: { - readOnly: true, - serializedName: "patchable", + isEnabled: { + serializedName: "properties.isEnabled", type: { name: "Boolean" } }, - cve: { - readOnly: true, - serializedName: "cve", + scopes: { + serializedName: "properties.scopes", type: { name: "Sequence", element: { type: { name: "Composite", - className: "CVE" + className: "AutomationScope" } } } }, - threat: { - readOnly: true, - serializedName: "threat", - type: { - name: "String" - } - }, - publishedTime: { - readOnly: true, - serializedName: "publishedTime", + sources: { + serializedName: "properties.sources", type: { - name: "DateTime" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "AutomationSource" + } + } } }, - vendorReferences: { - readOnly: true, - serializedName: "vendorReferences", + actions: { + serializedName: "properties.actions", type: { name: "Sequence", element: { type: { name: "Composite", - className: "VendorReference" + className: "AutomationAction" } } } @@ -3636,39 +3488,55 @@ export const ServerVulnerabilityProperties: msRest.CompositeMapper = { } }; -export const OnPremiseResourceDetails: msRest.CompositeMapper = { - serializedName: "OnPremise", +export const AutomationActionLogicApp: msRest.CompositeMapper = { + serializedName: "LogicApp", type: { name: "Composite", - polymorphicDiscriminator: ResourceDetails.type.polymorphicDiscriminator, - uberParent: "ResourceDetails", - className: "OnPremiseResourceDetails", + polymorphicDiscriminator: AutomationAction.type.polymorphicDiscriminator, + uberParent: "AutomationAction", + className: "AutomationActionLogicApp", modelProperties: { - ...ResourceDetails.type.modelProperties, - workspaceId: { - required: true, - serializedName: "workspaceId", + ...AutomationAction.type.modelProperties, + logicAppResourceId: { + serializedName: "logicAppResourceId", type: { name: "String" } }, - vmuuid: { - required: true, - serializedName: "vmuuid", + uri: { + serializedName: "uri", + type: { + name: "String" + } + } + } + } +}; + +export const AutomationActionEventHub: msRest.CompositeMapper = { + serializedName: "EventHub", + type: { + name: "Composite", + polymorphicDiscriminator: AutomationAction.type.polymorphicDiscriminator, + uberParent: "AutomationAction", + className: "AutomationActionEventHub", + modelProperties: { + ...AutomationAction.type.modelProperties, + eventHubResourceId: { + serializedName: "eventHubResourceId", type: { name: "String" } }, - sourceComputerId: { - required: true, - serializedName: "sourceComputerId", + sasPolicyName: { + readOnly: true, + serializedName: "sasPolicyName", type: { name: "String" } }, - machineName: { - required: true, - serializedName: "machineName", + connectionString: { + serializedName: "connectionString", type: { name: "String" } @@ -3677,18 +3545,17 @@ export const OnPremiseResourceDetails: msRest.CompositeMapper = { } }; -export const AzureResourceDetails: msRest.CompositeMapper = { - serializedName: "Azure", +export const AutomationActionWorkspace: msRest.CompositeMapper = { + serializedName: "Workspace", type: { name: "Composite", - polymorphicDiscriminator: ResourceDetails.type.polymorphicDiscriminator, - uberParent: "ResourceDetails", - className: "AzureResourceDetails", + polymorphicDiscriminator: AutomationAction.type.polymorphicDiscriminator, + uberParent: "AutomationAction", + className: "AutomationActionWorkspace", modelProperties: { - ...ResourceDetails.type.modelProperties, - id: { - readOnly: true, - serializedName: "id", + ...AutomationAction.type.modelProperties, + workspaceResourceId: { + serializedName: "workspaceResourceId", type: { name: "String" } @@ -3697,20 +3564,20 @@ export const AzureResourceDetails: msRest.CompositeMapper = { } }; -export const AutomationScope: msRest.CompositeMapper = { - serializedName: "AutomationScope", +export const AutomationValidationStatus: msRest.CompositeMapper = { + serializedName: "AutomationValidationStatus", type: { name: "Composite", - className: "AutomationScope", + className: "AutomationValidationStatus", modelProperties: { - description: { - serializedName: "description", + isValid: { + serializedName: "isValid", type: { - name: "String" + name: "Boolean" } }, - scopePath: { - serializedName: "scopePath", + message: { + serializedName: "message", type: { name: "String" } @@ -3719,32 +3586,28 @@ export const AutomationScope: msRest.CompositeMapper = { } }; -export const AutomationTriggeringRule: msRest.CompositeMapper = { - serializedName: "AutomationTriggeringRule", +export const SecurityAssessmentMetadataPartnerData: msRest.CompositeMapper = { + serializedName: "SecurityAssessmentMetadataPartnerData", type: { name: "Composite", - className: "AutomationTriggeringRule", + className: "SecurityAssessmentMetadataPartnerData", modelProperties: { - propertyJPath: { - serializedName: "propertyJPath", - type: { - name: "String" - } - }, - propertyType: { - serializedName: "propertyType", + partnerName: { + required: true, + serializedName: "partnerName", type: { name: "String" } }, - expectedValue: { - serializedName: "expectedValue", + productName: { + serializedName: "productName", type: { name: "String" } }, - operator: { - serializedName: "operator", + secret: { + required: true, + serializedName: "secret", type: { name: "String" } @@ -3753,186 +3616,222 @@ export const AutomationTriggeringRule: msRest.CompositeMapper = { } }; -export const AutomationRuleSet: msRest.CompositeMapper = { - serializedName: "AutomationRuleSet", +export const SecurityAssessmentMetadataProperties: msRest.CompositeMapper = { + serializedName: "SecurityAssessmentMetadataProperties", type: { name: "Composite", - className: "AutomationRuleSet", + className: "SecurityAssessmentMetadataProperties", modelProperties: { - rules: { - serializedName: "rules", + displayName: { + required: true, + serializedName: "displayName", + type: { + name: "String" + } + }, + policyDefinitionId: { + readOnly: true, + serializedName: "policyDefinitionId", + type: { + name: "String" + } + }, + description: { + serializedName: "description", + type: { + name: "String" + } + }, + remediationDescription: { + serializedName: "remediationDescription", + type: { + name: "String" + } + }, + category: { + serializedName: "category", type: { name: "Sequence", element: { type: { - name: "Composite", - className: "AutomationTriggeringRule" + name: "String" } } } - } - } - } -}; - -export const AutomationSource: msRest.CompositeMapper = { - serializedName: "AutomationSource", - type: { - name: "Composite", - className: "AutomationSource", - modelProperties: { - eventSource: { - serializedName: "eventSource", + }, + severity: { + required: true, + serializedName: "severity", type: { name: "String" } }, - ruleSets: { - serializedName: "ruleSets", + userImpact: { + serializedName: "userImpact", + type: { + name: "String" + } + }, + implementationEffort: { + serializedName: "implementationEffort", + type: { + name: "String" + } + }, + threats: { + serializedName: "threats", type: { name: "Sequence", element: { type: { - name: "Composite", - className: "AutomationRuleSet" + name: "String" } } } - } - } - } -}; - -export const AutomationAction: msRest.CompositeMapper = { - serializedName: "AutomationAction", - type: { - name: "Composite", - polymorphicDiscriminator: { - serializedName: "actionType", - clientName: "actionType" - }, - uberParent: "AutomationAction", - className: "AutomationAction", - modelProperties: { - actionType: { + }, + preview: { + serializedName: "preview", + type: { + name: "Boolean" + } + }, + assessmentType: { required: true, - serializedName: "actionType", + serializedName: "assessmentType", type: { name: "String" } + }, + partnerData: { + serializedName: "partnerData", + type: { + name: "Composite", + className: "SecurityAssessmentMetadataPartnerData" + } } } } }; -export const Automation: msRest.CompositeMapper = { - serializedName: "Automation", +export const SecurityAssessmentMetadata: msRest.CompositeMapper = { + serializedName: "SecurityAssessmentMetadata", type: { name: "Composite", - className: "Automation", + className: "SecurityAssessmentMetadata", modelProperties: { - ...TrackedResource.type.modelProperties, + ...Resource.type.modelProperties, + displayName: { + required: true, + serializedName: "properties.displayName", + type: { + name: "String" + } + }, + policyDefinitionId: { + readOnly: true, + serializedName: "properties.policyDefinitionId", + type: { + name: "String" + } + }, description: { serializedName: "properties.description", type: { name: "String" } }, - isEnabled: { - serializedName: "properties.isEnabled", + remediationDescription: { + serializedName: "properties.remediationDescription", type: { - name: "Boolean" + name: "String" } }, - scopes: { - serializedName: "properties.scopes", + category: { + serializedName: "properties.category", type: { name: "Sequence", element: { type: { - name: "Composite", - className: "AutomationScope" + name: "String" } } } }, - sources: { - serializedName: "properties.sources", + severity: { + required: true, + serializedName: "properties.severity", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "AutomationSource" - } - } + name: "String" } }, - actions: { - serializedName: "properties.actions", + userImpact: { + serializedName: "properties.userImpact", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "AutomationAction" - } - } + name: "String" } - } - } - } -}; - -export const AutomationActionLogicApp: msRest.CompositeMapper = { - serializedName: "LogicApp", - type: { - name: "Composite", - polymorphicDiscriminator: AutomationAction.type.polymorphicDiscriminator, - uberParent: "AutomationAction", - className: "AutomationActionLogicApp", - modelProperties: { - ...AutomationAction.type.modelProperties, - logicAppResourceId: { - serializedName: "logicAppResourceId", + }, + implementationEffort: { + serializedName: "properties.implementationEffort", + type: { + name: "String" + } + }, + threats: { + serializedName: "properties.threats", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + preview: { + serializedName: "properties.preview", type: { - name: "String" + name: "Boolean" } }, - uri: { - serializedName: "uri", + assessmentType: { + required: true, + serializedName: "properties.assessmentType", type: { name: "String" } + }, + partnerData: { + serializedName: "properties.partnerData", + type: { + name: "Composite", + className: "SecurityAssessmentMetadataPartnerData" + } } } } }; -export const AutomationActionEventHub: msRest.CompositeMapper = { - serializedName: "EventHub", +export const AssessmentStatus: msRest.CompositeMapper = { + serializedName: "AssessmentStatus", type: { name: "Composite", - polymorphicDiscriminator: AutomationAction.type.polymorphicDiscriminator, - uberParent: "AutomationAction", - className: "AutomationActionEventHub", + className: "AssessmentStatus", modelProperties: { - ...AutomationAction.type.modelProperties, - eventHubResourceId: { - serializedName: "eventHubResourceId", + code: { + required: true, + serializedName: "code", type: { name: "String" } }, - sasPolicyName: { - readOnly: true, - serializedName: "sasPolicyName", + cause: { + serializedName: "cause", type: { name: "String" } }, - connectionString: { - serializedName: "connectionString", + description: { + serializedName: "description", type: { name: "String" } @@ -3941,17 +3840,15 @@ export const AutomationActionEventHub: msRest.CompositeMapper = { } }; -export const AutomationActionWorkspace: msRest.CompositeMapper = { - serializedName: "Workspace", +export const AssessmentLinks: msRest.CompositeMapper = { + serializedName: "AssessmentLinks", type: { name: "Composite", - polymorphicDiscriminator: AutomationAction.type.polymorphicDiscriminator, - uberParent: "AutomationAction", - className: "AutomationActionWorkspace", + className: "AssessmentLinks", modelProperties: { - ...AutomationAction.type.modelProperties, - workspaceResourceId: { - serializedName: "workspaceResourceId", + azurePortalUri: { + readOnly: true, + serializedName: "azurePortalUri", type: { name: "String" } @@ -3960,20 +3857,22 @@ export const AutomationActionWorkspace: msRest.CompositeMapper = { } }; -export const AutomationValidationStatus: msRest.CompositeMapper = { - serializedName: "AutomationValidationStatus", +export const SecurityAssessmentPartnerData: msRest.CompositeMapper = { + serializedName: "SecurityAssessmentPartnerData", type: { name: "Composite", - className: "AutomationValidationStatus", + className: "SecurityAssessmentPartnerData", modelProperties: { - isValid: { - serializedName: "isValid", + partnerName: { + required: true, + serializedName: "partnerName", type: { - name: "Boolean" + name: "String" } }, - message: { - serializedName: "message", + secret: { + required: true, + serializedName: "secret", type: { name: "String" } @@ -3982,198 +3881,257 @@ export const AutomationValidationStatus: msRest.CompositeMapper = { } }; -export const SecurityAssessmentMetadataPartnerData: msRest.CompositeMapper = { - serializedName: "SecurityAssessmentMetadataPartnerData", +export const SecurityAssessment: msRest.CompositeMapper = { + serializedName: "SecurityAssessment", type: { name: "Composite", - className: "SecurityAssessmentMetadataPartnerData", + className: "SecurityAssessment", modelProperties: { - partnerName: { + ...Resource.type.modelProperties, + resourceDetails: { required: true, - serializedName: "partnerName", + serializedName: "properties.resourceDetails", type: { - name: "String" + name: "Composite", + className: "ResourceDetails" } }, - productName: { - serializedName: "productName", + displayName: { + readOnly: true, + serializedName: "properties.displayName", type: { name: "String" } }, - secret: { + status: { required: true, - serializedName: "secret", + serializedName: "properties.status", type: { - name: "String" + name: "Composite", + className: "AssessmentStatus" + } + }, + additionalData: { + serializedName: "properties.additionalData", + type: { + name: "Dictionary", + value: { + type: { + name: "String" + } + } + } + }, + links: { + serializedName: "properties.links", + type: { + name: "Composite", + className: "AssessmentLinks" + } + }, + metadata: { + serializedName: "properties.metadata", + type: { + name: "Composite", + className: "SecurityAssessmentMetadataProperties" + } + }, + partnersData: { + serializedName: "properties.partnersData", + type: { + name: "Composite", + className: "SecurityAssessmentPartnerData" } } } } }; -export const SecurityAssessmentMetadataProperties: msRest.CompositeMapper = { - serializedName: "SecurityAssessmentMetadataProperties", +export const ProtectionMode: msRest.CompositeMapper = { + serializedName: "ProtectionMode", type: { name: "Composite", - className: "SecurityAssessmentMetadataProperties", + className: "ProtectionMode", modelProperties: { - displayName: { - required: true, - serializedName: "displayName", + exe: { + serializedName: "exe", type: { name: "String" } }, - policyDefinitionId: { - readOnly: true, - serializedName: "policyDefinitionId", + msi: { + serializedName: "msi", type: { name: "String" } }, - description: { - serializedName: "description", + script: { + serializedName: "script", type: { name: "String" } }, - remediationDescription: { - serializedName: "remediationDescription", + executable: { + serializedName: "executable", type: { name: "String" } - }, - category: { - serializedName: "category", + } + } + } +}; + +export const AppWhitelistingIssueSummary: msRest.CompositeMapper = { + serializedName: "AppWhitelistingIssueSummary", + type: { + name: "Composite", + className: "AppWhitelistingIssueSummary", + modelProperties: { + issue: { + serializedName: "issue", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "String" } }, - severity: { - required: true, - serializedName: "severity", + 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" } }, - userImpact: { - serializedName: "userImpact", + recommendationAction: { + serializedName: "recommendationAction", type: { name: "String" } }, - implementationEffort: { - serializedName: "implementationEffort", + resourceId: { + serializedName: "resourceId", type: { name: "String" } }, - threats: { - serializedName: "threats", + enforcementSupport: { + serializedName: "enforcementSupport", type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "String" + } + } + } + } +}; + +export const PublisherInfo: msRest.CompositeMapper = { + serializedName: "PublisherInfo", + type: { + name: "Composite", + className: "PublisherInfo", + modelProperties: { + publisherName: { + serializedName: "publisherName", + type: { + name: "String" } }, - preview: { - serializedName: "preview", + productName: { + serializedName: "productName", type: { - name: "Boolean" + name: "String" } }, - assessmentType: { - required: true, - serializedName: "assessmentType", + binaryName: { + serializedName: "binaryName", type: { name: "String" } }, - partnerData: { - serializedName: "partnerData", + version: { + serializedName: "version", type: { - name: "Composite", - className: "SecurityAssessmentMetadataPartnerData" + name: "String" } } } } }; -export const SecurityAssessmentMetadata: msRest.CompositeMapper = { - serializedName: "SecurityAssessmentMetadata", +export const UserRecommendation: msRest.CompositeMapper = { + serializedName: "UserRecommendation", type: { name: "Composite", - className: "SecurityAssessmentMetadata", + className: "UserRecommendation", modelProperties: { - ...Resource.type.modelProperties, - displayName: { - required: true, - serializedName: "properties.displayName", + username: { + serializedName: "username", type: { name: "String" } }, - policyDefinitionId: { - readOnly: true, - serializedName: "properties.policyDefinitionId", + recommendationAction: { + serializedName: "recommendationAction", type: { name: "String" } - }, - description: { - serializedName: "properties.description", + } + } + } +}; + +export const PathRecommendation: msRest.CompositeMapper = { + serializedName: "PathRecommendation", + type: { + name: "Composite", + className: "PathRecommendation", + modelProperties: { + path: { + serializedName: "path", type: { name: "String" } }, - remediationDescription: { - serializedName: "properties.remediationDescription", + action: { + serializedName: "action", type: { name: "String" } }, - category: { - serializedName: "properties.category", - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - }, - severity: { - required: true, - serializedName: "properties.severity", + type: { + serializedName: "type", type: { name: "String" } }, - userImpact: { - serializedName: "properties.userImpact", + publisherInfo: { + serializedName: "publisherInfo", type: { - name: "String" + name: "Composite", + className: "PublisherInfo" } }, - implementationEffort: { - serializedName: "properties.implementationEffort", + common: { + serializedName: "common", type: { - name: "String" + name: "Boolean" } }, - threats: { - serializedName: "properties.threats", + userSids: { + serializedName: "userSids", type: { name: "Sequence", element: { @@ -4183,160 +4141,159 @@ export const SecurityAssessmentMetadata: msRest.CompositeMapper = { } } }, - preview: { - serializedName: "properties.preview", + usernames: { + serializedName: "usernames", type: { - name: "Boolean" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "UserRecommendation" + } + } } }, - assessmentType: { - required: true, - serializedName: "properties.assessmentType", + fileType: { + serializedName: "fileType", type: { name: "String" } }, - partnerData: { - serializedName: "properties.partnerData", + configurationStatus: { + serializedName: "configurationStatus", type: { - name: "Composite", - className: "SecurityAssessmentMetadataPartnerData" + name: "String" } } } } }; -export const AssessmentStatus: msRest.CompositeMapper = { - serializedName: "AssessmentStatus", +export const AppWhitelistingGroup: msRest.CompositeMapper = { + serializedName: "AppWhitelistingGroup", type: { name: "Composite", - className: "AssessmentStatus", + className: "AppWhitelistingGroup", modelProperties: { - code: { - required: true, - serializedName: "code", + id: { + readOnly: true, + serializedName: "id", type: { name: "String" } }, - cause: { - serializedName: "cause", + name: { + readOnly: true, + serializedName: "name", type: { name: "String" } }, - description: { - serializedName: "description", - type: { - name: "String" - } - } - } - } -}; - -export const AssessmentLinks: msRest.CompositeMapper = { - serializedName: "AssessmentLinks", - type: { - name: "Composite", - className: "AssessmentLinks", - modelProperties: { - azurePortalUri: { + type: { readOnly: true, - serializedName: "azurePortalUri", + serializedName: "type", type: { name: "String" } - } - } - } -}; - -export const SecurityAssessmentPartnerData: msRest.CompositeMapper = { - serializedName: "SecurityAssessmentPartnerData", - type: { - name: "Composite", - className: "SecurityAssessmentPartnerData", - modelProperties: { - partnerName: { - required: true, - serializedName: "partnerName", + }, + location: { + readOnly: true, + serializedName: "location", type: { name: "String" } }, - secret: { - required: true, - serializedName: "secret", + enforcementMode: { + serializedName: "properties.enforcementMode", type: { name: "String" } - } - } - } -}; - -export const SecurityAssessment: msRest.CompositeMapper = { - serializedName: "SecurityAssessment", - type: { - name: "Composite", - className: "SecurityAssessment", - modelProperties: { - ...Resource.type.modelProperties, - resourceDetails: { - required: true, - serializedName: "properties.resourceDetails", + }, + protectionMode: { + serializedName: "properties.protectionMode", type: { name: "Composite", - className: "ResourceDetails" + className: "ProtectionMode" } }, - displayName: { + configurationStatus: { readOnly: true, - serializedName: "properties.displayName", + serializedName: "properties.configurationStatus", type: { name: "String" } }, - status: { - required: true, - serializedName: "properties.status", + recommendationStatus: { + readOnly: true, + serializedName: "properties.recommendationStatus", type: { - name: "Composite", - className: "AssessmentStatus" + name: "String" } }, - additionalData: { - serializedName: "properties.additionalData", + issues: { + readOnly: true, + serializedName: "properties.issues", type: { - name: "Dictionary", - value: { + name: "Sequence", + element: { type: { - name: "String" + name: "Composite", + className: "AppWhitelistingIssueSummary" } } } }, - links: { - serializedName: "properties.links", + sourceSystem: { + readOnly: true, + serializedName: "properties.sourceSystem", type: { - name: "Composite", - className: "AssessmentLinks" + name: "String" } }, - metadata: { - serializedName: "properties.metadata", + vmRecommendations: { + serializedName: "properties.vmRecommendations", type: { - name: "Composite", - className: "SecurityAssessmentMetadataProperties" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "VmRecommendation" + } + } } }, - partnersData: { - serializedName: "properties.partnersData", + pathRecommendations: { + serializedName: "properties.pathRecommendations", type: { - name: "Composite", - className: "SecurityAssessmentPartnerData" + 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" + } + } } } } diff --git a/sdk/security/arm-security/src/operations/adaptiveApplicationControls.ts b/sdk/security/arm-security/src/operations/adaptiveApplicationControls.ts index 57f58af9d645..8260930d328a 100644 --- a/sdk/security/arm-security/src/operations/adaptiveApplicationControls.ts +++ b/sdk/security/arm-security/src/operations/adaptiveApplicationControls.ts @@ -81,25 +81,25 @@ export class AdaptiveApplicationControls { /** * Update an application control VM/server group * @param groupName Name of an application control VM/server group - * @param body The updated VM/server group data + * @param body * @param [options] The optional parameters * @returns Promise */ - put(groupName: string, body: Models.AppWhitelistingPutGroupData, options?: msRest.RequestOptionsBase): Promise; + put(groupName: string, body: Models.AppWhitelistingGroup, options?: msRest.RequestOptionsBase): Promise; /** * @param groupName Name of an application control VM/server group - * @param body The updated VM/server group data + * @param body * @param callback The callback */ - put(groupName: string, body: Models.AppWhitelistingPutGroupData, callback: msRest.ServiceCallback): void; + put(groupName: string, body: Models.AppWhitelistingGroup, callback: msRest.ServiceCallback): void; /** * @param groupName Name of an application control VM/server group - * @param body The updated VM/server group data + * @param body * @param options The optional parameters * @param callback The callback */ - put(groupName: string, body: Models.AppWhitelistingPutGroupData, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; - put(groupName: string, body: Models.AppWhitelistingPutGroupData, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { + put(groupName: string, body: Models.AppWhitelistingGroup, options: msRest.RequestOptionsBase, callback: msRest.ServiceCallback): void; + put(groupName: string, body: Models.AppWhitelistingGroup, options?: msRest.RequestOptionsBase | msRest.ServiceCallback, callback?: msRest.ServiceCallback): Promise { return this.client.sendOperationRequest( { groupName, @@ -148,7 +148,7 @@ const listOperationSpec: msRest.OperationSpec = { Parameters.subscriptionId ], queryParameters: [ - Parameters.apiVersion4, + Parameters.apiVersion7, Parameters.includePathRecommendations, Parameters.summary ], @@ -175,7 +175,7 @@ const getOperationSpec: msRest.OperationSpec = { Parameters.groupName ], queryParameters: [ - Parameters.apiVersion4 + Parameters.apiVersion7 ], headerParameters: [ Parameters.acceptLanguage @@ -200,7 +200,7 @@ const putOperationSpec: msRest.OperationSpec = { Parameters.groupName ], queryParameters: [ - Parameters.apiVersion4 + Parameters.apiVersion7 ], headerParameters: [ Parameters.acceptLanguage @@ -208,7 +208,7 @@ const putOperationSpec: msRest.OperationSpec = { requestBody: { parameterPath: "body", mapper: { - ...Mappers.AppWhitelistingPutGroupData, + ...Mappers.AppWhitelistingGroup, required: true } }, @@ -232,7 +232,7 @@ const deleteMethodOperationSpec: msRest.OperationSpec = { Parameters.groupName ], queryParameters: [ - Parameters.apiVersion4 + Parameters.apiVersion7 ], headerParameters: [ Parameters.acceptLanguage diff --git a/sdk/security/arm-security/src/operations/index.ts b/sdk/security/arm-security/src/operations/index.ts index 64bc3cb2cd39..85280c57928c 100644 --- a/sdk/security/arm-security/src/operations/index.ts +++ b/sdk/security/arm-security/src/operations/index.ts @@ -20,7 +20,6 @@ export * from "./iotSecuritySolutionsAnalyticsAggregatedAlert"; export * from "./iotSecuritySolutionsAnalyticsRecommendation"; export * from "./discoveredSecuritySolutions"; export * from "./externalSecuritySolutions"; -export * from "./adaptiveApplicationControls"; export * from "./locations"; export * from "./operations"; export * from "./tasks"; @@ -37,6 +36,7 @@ export * from "./subAssessments"; export * from "./automations"; export * from "./assessmentsMetadata"; export * from "./assessments"; +export * from "./adaptiveApplicationControls"; export * from "./adaptiveNetworkHardenings"; export * from "./allowedConnections"; export * from "./topology"; diff --git a/sdk/security/arm-security/src/securityCenter.ts b/sdk/security/arm-security/src/securityCenter.ts index 42d6bc018858..447ed4b45547 100644 --- a/sdk/security/arm-security/src/securityCenter.ts +++ b/sdk/security/arm-security/src/securityCenter.ts @@ -29,7 +29,6 @@ class SecurityCenter extends SecurityCenterContext { iotSecuritySolutionsAnalyticsRecommendation: operations.IotSecuritySolutionsAnalyticsRecommendation; discoveredSecuritySolutions: operations.DiscoveredSecuritySolutions; externalSecuritySolutions: operations.ExternalSecuritySolutions; - adaptiveApplicationControls: operations.AdaptiveApplicationControls; locations: operations.Locations; operations: operations.Operations; tasks: operations.Tasks; @@ -46,6 +45,7 @@ class SecurityCenter extends SecurityCenterContext { automations: operations.Automations; assessmentsMetadata: operations.AssessmentsMetadata; assessments: operations.Assessments; + adaptiveApplicationControls: operations.AdaptiveApplicationControls; adaptiveNetworkHardenings: operations.AdaptiveNetworkHardenings; allowedConnections: operations.AllowedConnections; topology: operations.Topology; @@ -73,7 +73,6 @@ class SecurityCenter extends SecurityCenterContext { this.iotSecuritySolutionsAnalyticsRecommendation = new operations.IotSecuritySolutionsAnalyticsRecommendation(this); this.discoveredSecuritySolutions = new operations.DiscoveredSecuritySolutions(this); this.externalSecuritySolutions = new operations.ExternalSecuritySolutions(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); @@ -90,6 +89,7 @@ class SecurityCenter extends SecurityCenterContext { this.automations = new operations.Automations(this); this.assessmentsMetadata = new operations.AssessmentsMetadata(this); this.assessments = new operations.Assessments(this); + this.adaptiveApplicationControls = new operations.AdaptiveApplicationControls(this); this.adaptiveNetworkHardenings = new operations.AdaptiveNetworkHardenings(this); this.allowedConnections = new operations.AllowedConnections(this); this.topology = new operations.Topology(this);