diff --git a/common/config/rush/pnpm-lock.yaml b/common/config/rush/pnpm-lock.yaml index 944aa0bf429e..208eadb8288f 100644 --- a/common/config/rush/pnpm-lock.yaml +++ b/common/config/rush/pnpm-lock.yaml @@ -13847,7 +13847,7 @@ packages: dev: false file:projects/arm-datafactory.tgz: - resolution: {integrity: sha512-Q/UgF/jHUhFWs4a2VHg5BPu4EacOjaoAJqlLqGFX3ZwG0GZDoRx8FtqHRw8p4jzKB5vuOrEV/3GzXjtsgu1WWg==, tarball: file:projects/arm-datafactory.tgz} + resolution: {integrity: sha512-OjurQ7/SHnCoMLxEpSFGvaVMi0A2ZKFX6rJ/jwbdMCikCifxpU7FWz3q7qpsBMKSUwwPiN6m0entDZOQ2Ya3DQ==, tarball: file:projects/arm-datafactory.tgz} name: '@rush-temp/arm-datafactory' version: 0.0.0 dependencies: @@ -17289,7 +17289,7 @@ packages: dev: false file:projects/arm-quota.tgz: - resolution: {integrity: sha512-xk059uR7eCCN3t024cWSE4S9muFzgPyN0kwgYPtQ9y/4+OQwdv8wvBqclcnw++X7ttxE5uPz9P6NgkNQS+HINA==, tarball: file:projects/arm-quota.tgz} + resolution: {integrity: sha512-DT26fngJRNaDs9vD1pNoxWWP94MBNU2psw6cuM97r8fzubsU/y5f2u9WsdMzNs5HZT5md5gTN8b8h6aG1M6/Yw==, tarball: file:projects/arm-quota.tgz} name: '@rush-temp/arm-quota' version: 0.0.0 dependencies: @@ -17892,7 +17892,7 @@ packages: dev: false file:projects/arm-security.tgz: - resolution: {integrity: sha512-B70NAL/cD6aCD6ZFWPaQ2fCRsoA4j8ZnFsGa/y9vDILw/37omK/X06fg1L3eItXDa85rnxAKEyVISb4/CmSlMQ==, tarball: file:projects/arm-security.tgz} + resolution: {integrity: sha512-OY99Vo6BRV0FW7OYRiZs3Bl0VyaA5vFJVMeG3d0S8vQWQR5mecwa4g24N6RhyUc4lF2Z/GdsqyWydco69qF8Xw==, tarball: file:projects/arm-security.tgz} name: '@rush-temp/arm-security' version: 0.0.0 dependencies: @@ -17914,6 +17914,7 @@ packages: rimraf: 5.0.10 ts-node: 10.9.2(@types/node@18.19.46)(typescript@5.5.4) tslib: 2.7.0 + tsx: 4.18.0 typescript: 5.5.4 uglify-js: 3.19.2 transitivePeerDependencies: @@ -20371,7 +20372,7 @@ packages: dev: false file:projects/core-rest-pipeline.tgz: - resolution: {integrity: sha512-Ckt9WaQnIP5+x4m60yXQvQMFfFFmvIVzG5Y2cLKI/6XWnjD9mx5RfL20OpOmwGFT04KnyxWUZoVxalNLlieF8Q==, tarball: file:projects/core-rest-pipeline.tgz} + resolution: {integrity: sha512-Y89gCuNnHD3FSHtxVO2vCgGgCF27cFz7Hd+Xlmfgu5s/Fz8lm4IjZqOm165C2xjS7EWmWmrIEfXKwGfVQcZnBA==, tarball: file:projects/core-rest-pipeline.tgz} name: '@rush-temp/core-rest-pipeline' version: 0.0.0 dependencies: @@ -21561,7 +21562,7 @@ packages: dev: false file:projects/identity.tgz: - resolution: {integrity: sha512-sjF9+fskcd/8aI964QgNTcos2w8b0MgC0Zu5Vwn3xmjQtQjWMvPy3o85VZx6+vq4GFHOsou0tobu1krKLtvZJA==, tarball: file:projects/identity.tgz} + resolution: {integrity: sha512-5EkTlu2q3ZkjPIlIBMu4R++aneg//XjawueoiPtgIS2Be16wcAhkmossUcKDv1whl1evCy79PC5drQIvn1Yi6Q==, tarball: file:projects/identity.tgz} name: '@rush-temp/identity' version: 0.0.0 dependencies: diff --git a/sdk/security/arm-security/CHANGELOG.md b/sdk/security/arm-security/CHANGELOG.md index 8285d1000cff..3ac941d08f75 100644 --- a/sdk/security/arm-security/CHANGELOG.md +++ b/sdk/security/arm-security/CHANGELOG.md @@ -1,19 +1,9 @@ # Release History - -## 6.0.0-beta.6 (Unreleased) - -### Features Added - -### Breaking Changes - -### Bugs Fixed - -### Other Changes - -## 6.0.0-beta.5 (2024-05-16) + +## 6.0.0-beta.6 (2024-08-29) Compared with version 5.0.0 -**Features** +### Features Added - Added operation group APICollections - Added operation group ApplicationOperations @@ -24,6 +14,8 @@ Compared with version 5.0.0 - Added operation group DefenderForStorage - Added operation group DevOpsConfigurations - Added operation group DevOpsOperationResults + - Added operation group DevOpsPolicies + - Added operation group DevOpsPolicyAssignments - Added operation group GitHubOwners - Added operation group GitHubRepos - Added operation group GitLabGroups @@ -47,8 +39,6 @@ Compared with version 5.0.0 - Added Interface AadSolutionProperties - Added Interface ActionableRemediation - Added Interface ActiveConnectionsNotInAllowedRange - - Added Interface AdaptiveApplicationControlGroup - - Added Interface AdaptiveNetworkHardening - Added Interface AdvancedThreatProtectionSetting - Added Interface Alert - Added Interface AlertPropertiesSupportingEvidence @@ -82,6 +72,10 @@ Compared with version 5.0.0 - Added Interface ApplicationsList - Added Interface ApplicationsListNextOptionalParams - Added Interface ApplicationsListOptionalParams + - Added Interface ArcAutoProvisioning + - Added Interface ArcAutoProvisioningAws + - Added Interface ArcAutoProvisioningConfiguration + - Added Interface ArcAutoProvisioningGcp - Added Interface AscLocation - Added Interface AssessmentStatusResponse - Added Interface AtaExternalSecuritySolution @@ -162,59 +156,51 @@ Compared with version 5.0.0 - Added Interface DefenderCspmAwsOfferingMdcContainersAgentlessDiscoveryK8S - Added Interface DefenderCspmAwsOfferingMdcContainersImageAssessment - Added Interface DefenderCspmAwsOfferingVmScanners - - Added Interface DefenderCspmAwsOfferingVmScannersConfiguration - Added Interface DefenderCspmGcpOffering - Added Interface DefenderCspmGcpOfferingCiemDiscovery - Added Interface DefenderCspmGcpOfferingDataSensitivityDiscovery - Added Interface DefenderCspmGcpOfferingMdcContainersAgentlessDiscoveryK8S - Added Interface DefenderCspmGcpOfferingMdcContainersImageAssessment - Added Interface DefenderCspmGcpOfferingVmScanners - - Added Interface DefenderCspmGcpOfferingVmScannersConfiguration - Added Interface DefenderFoDatabasesAwsOffering - Added Interface DefenderFoDatabasesAwsOfferingArcAutoProvisioning - - Added Interface DefenderFoDatabasesAwsOfferingArcAutoProvisioningConfiguration - Added Interface DefenderFoDatabasesAwsOfferingDatabasesDspm - Added Interface DefenderFoDatabasesAwsOfferingRds - Added Interface DefenderForContainersAwsOffering - - Added Interface DefenderForContainersAwsOfferingContainerVulnerabilityAssessment - - Added Interface DefenderForContainersAwsOfferingContainerVulnerabilityAssessmentTask + - Added Interface DefenderForContainersAwsOfferingKubernetesDataCollection - Added Interface DefenderForContainersAwsOfferingMdcContainersAgentlessDiscoveryK8S - Added Interface DefenderForContainersAwsOfferingMdcContainersImageAssessment + - Added Interface DefenderForContainersAwsOfferingVmScanners - Added Interface DefenderForContainersGcpOffering - Added Interface DefenderForContainersGcpOfferingDataPipelineNativeCloudConnection - Added Interface DefenderForContainersGcpOfferingMdcContainersAgentlessDiscoveryK8S - Added Interface DefenderForContainersGcpOfferingMdcContainersImageAssessment - Added Interface DefenderForContainersGcpOfferingNativeCloudConnection + - Added Interface DefenderForContainersGcpOfferingVmScanners - Added Interface DefenderForDatabasesGcpOffering - Added Interface DefenderForDatabasesGcpOfferingArcAutoProvisioning - - Added Interface DefenderForDatabasesGcpOfferingArcAutoProvisioningConfiguration - Added Interface DefenderForDatabasesGcpOfferingDefenderForDatabasesArcAutoProvisioning - - Added Interface DefenderForDevOpsAzureDevOpsOffering - - Added Interface DefenderForDevOpsGithubOffering - - Added Interface DefenderForDevOpsGitLabOffering - Added Interface DefenderForServersAwsOffering - - Added Interface DefenderForServersAwsOfferingArcAutoProvisioningConfiguration - Added Interface DefenderForServersAwsOfferingMdeAutoProvisioning - Added Interface DefenderForServersAwsOfferingSubPlan - Added Interface DefenderForServersAwsOfferingVaAutoProvisioning - Added Interface DefenderForServersAwsOfferingVaAutoProvisioningConfiguration - Added Interface DefenderForServersAwsOfferingVmScanners - - Added Interface DefenderForServersAwsOfferingVmScannersConfiguration - Added Interface DefenderForServersGcpOffering - Added Interface DefenderForServersGcpOfferingArcAutoProvisioning - - Added Interface DefenderForServersGcpOfferingArcAutoProvisioningConfiguration - Added Interface DefenderForServersGcpOfferingDefenderForServers - Added Interface DefenderForServersGcpOfferingMdeAutoProvisioning - Added Interface DefenderForServersGcpOfferingSubPlan - Added Interface DefenderForServersGcpOfferingVaAutoProvisioning - Added Interface DefenderForServersGcpOfferingVaAutoProvisioningConfiguration - Added Interface DefenderForServersGcpOfferingVmScanners - - Added Interface DefenderForServersGcpOfferingVmScannersConfiguration - Added Interface DefenderForStorageCreateOptionalParams - Added Interface DefenderForStorageGetOptionalParams - Added Interface DefenderForStorageSetting + - Added Interface DefenderForStorageSettingProperties - Added Interface DenylistCustomAlertRule - Added Interface DeviceSecurityGroup + - Added Interface DevOpsCapability - Added Interface DevOpsConfiguration - Added Interface DevOpsConfigurationListResponse - Added Interface DevOpsConfigurationProperties @@ -225,6 +211,22 @@ Compared with version 5.0.0 - Added Interface DevOpsConfigurationsListOptionalParams - Added Interface DevOpsConfigurationsUpdateOptionalParams - Added Interface DevOpsOperationResultsGetOptionalParams + - Added Interface DevOpsPoliciesGetOptionalParams + - Added Interface DevOpsPoliciesListNextOptionalParams + - Added Interface DevOpsPoliciesListOptionalParams + - Added Interface DevOpsPolicy + - Added Interface DevOpsPolicyAssignment + - Added Interface DevOpsPolicyAssignmentListResponse + - Added Interface DevOpsPolicyAssignmentProperties + - Added Interface DevOpsPolicyAssignmentsCreateOrUpdateOptionalParams + - Added Interface DevOpsPolicyAssignmentsDeleteOptionalParams + - Added Interface DevOpsPolicyAssignmentsGetOptionalParams + - Added Interface DevOpsPolicyAssignmentsListNextOptionalParams + - Added Interface DevOpsPolicyAssignmentsListOptionalParams + - Added Interface DevOpsPolicyAssignmentsUpdateOptionalParams + - Added Interface DevOpsPolicyDescriptor + - Added Interface DevOpsPolicyListResponse + - Added Interface DevOpsPolicyProperties - Added Interface DirectMethodInvokesNotInAllowedRange - Added Interface DiscoveredSecuritySolution - Added Interface EnvironmentData @@ -245,7 +247,6 @@ Compared with version 5.0.0 - Added Interface GcpProjectDetails - Added Interface GcpProjectEnvironmentData - Added Interface GetSensitivitySettingsListResponse - - Added Interface GetSensitivitySettingsOptionalParams - Added Interface GetSensitivitySettingsResponse - Added Interface GetSensitivitySettingsResponseProperties - Added Interface GetSensitivitySettingsResponsePropertiesMipInformation @@ -314,7 +315,6 @@ Compared with version 5.0.0 - Added Interface HttpC2DRejectedMessagesNotInAllowedRange - Added Interface HttpD2CMessagesNotInAllowedRange - Added Interface Identity - - Added Interface InformationProtectionAwsOffering - Added Interface InformationProtectionPolicy - Added Interface InfoType - Added Interface IoTSecurityAggregatedAlert @@ -327,6 +327,7 @@ Compared with version 5.0.0 - Added Interface ListCustomAlertRule - Added Interface LocalUserNotAllowed - Added Interface LogAnalyticsIdentifier + - Added Interface MalwareScanningProperties - Added Interface MdeOnboardingData - Added Interface MqttC2DMessagesNotInAllowedRange - Added Interface MqttC2DRejectedMessagesNotInAllowedRange @@ -336,6 +337,7 @@ Compared with version 5.0.0 - Added Interface NotificationsSourceAttackPath - Added Interface OnPremiseResourceDetails - Added Interface OnPremiseSqlResourceDetails + - Added Interface OnUploadProperties - Added Interface OperationResultAutoGenerated - Added Interface OperationStatus - Added Interface OperationStatusAutoGenerated @@ -383,6 +385,9 @@ Compared with version 5.0.0 - Added Interface SecuritySolutionsReferenceData - Added Interface SecuritySubAssessment - Added Interface SecurityTask + - Added Interface SensitiveDataDiscoveryProperties + - Added Interface SensitivitySettingsCreateOrUpdateOptionalParams + - Added Interface SensitivitySettingsGetOptionalParams - Added Interface SensitivitySettingsListOptionalParams - Added Interface ServerVulnerabilityAssessment - Added Interface ServerVulnerabilityAssessmentsSetting @@ -405,8 +410,11 @@ Compared with version 5.0.0 - Added Interface TwinUpdatesNotInAllowedRange - Added Interface UnauthorizedOperationsNotInAllowedRange - Added Interface UpdateIotSecuritySolutionData - - Added Interface UpdateSensitivitySettingsOptionalParams - Added Interface UpdateSensitivitySettingsRequest + - Added Interface VmScannersAws + - Added Interface VmScannersBase + - Added Interface VmScannersBaseConfiguration + - Added Interface VmScannersGcp - Added Interface WorkspaceSetting - Added Type Alias ActionableRemediationState - Added Type Alias AnnotateDefaultBranchState @@ -447,6 +455,7 @@ Compared with version 5.0.0 - Added Type Alias ConnectionType - Added Type Alias DefenderForStorageCreateResponse - Added Type Alias DefenderForStorageGetResponse + - Added Type Alias DescendantBehavior - Added Type Alias DesiredOnboardingState - Added Type Alias DevOpsConfigurationsCreateOrUpdateResponse - Added Type Alias DevOpsConfigurationsGetResponse @@ -454,12 +463,21 @@ Compared with version 5.0.0 - Added Type Alias DevOpsConfigurationsListResponse - Added Type Alias DevOpsConfigurationsUpdateResponse - Added Type Alias DevOpsOperationResultsGetResponse + - Added Type Alias DevOpsPoliciesGetResponse + - Added Type Alias DevOpsPoliciesListNextResponse + - Added Type Alias DevOpsPoliciesListResponse + - Added Type Alias DevOpsPolicyAssignmentsCreateOrUpdateResponse + - Added Type Alias DevOpsPolicyAssignmentsGetResponse + - Added Type Alias DevOpsPolicyAssignmentsListNextResponse + - Added Type Alias DevOpsPolicyAssignmentsListResponse + - Added Type Alias DevOpsPolicyAssignmentsUpdateResponse + - Added Type Alias DevOpsPolicySource + - Added Type Alias DevOpsPolicyType - Added Type Alias DevOpsProvisioningState - Added Type Alias Enforce - Added Type Alias EnvironmentDataUnion - Added Type Alias EnvironmentType - Added Type Alias GcpOrganizationalDataUnion - - Added Type Alias GetSensitivitySettingsOperationResponse - Added Type Alias GitHubOwnersGetResponse - Added Type Alias GitHubOwnersListAvailableResponse - Added Type Alias GitHubOwnersListNextResponse @@ -513,6 +531,8 @@ Compared with version 5.0.0 - Added Type Alias SecurityOperatorsCreateOrUpdateResponse - Added Type Alias SecurityOperatorsGetResponse - Added Type Alias SecurityOperatorsListResponse + - Added Type Alias SensitivitySettingsCreateOrUpdateResponse + - Added Type Alias SensitivitySettingsGetResponse - Added Type Alias SensitivitySettingsListResponse - Added Type Alias ServerVulnerabilityAssessmentsAzureSettingSelectedProvider - Added Type Alias ServerVulnerabilityAssessmentsSettingKind @@ -527,21 +547,20 @@ Compared with version 5.0.0 - Added Type Alias StatusName - Added Type Alias SubPlan - Added Type Alias Type - - Added Type Alias UpdateSensitivitySettingsResponse - Interface AlertsSimulateOptionalParams has a new optional parameter resumeFrom - Interface AlertsSimulateOptionalParams has a new optional parameter updateIntervalInMs - - Interface DefenderForServersAwsOfferingArcAutoProvisioning has a new optional parameter cloudRoleArn - - Interface DefenderForServersAwsOfferingArcAutoProvisioning has a new optional parameter configuration - Interface PricingsListOptionalParams has a new optional parameter filter - Interface ScanProperties has a new optional parameter lastScanTime - - Type of parameter offeringType of interface CloudOffering is changed from "CspmMonitorAws" | "DefenderForContainersAws" | "DefenderForServersAws" | "InformationProtectionAws" to "CspmMonitorAws" | "DefenderForContainersAws" | "DefenderForServersAws" | "DefenderForDatabasesAws" | "InformationProtectionAws" | "CspmMonitorGcp" | "DefenderForServersGcp" | "DefenderForDatabasesGcp" | "DefenderForContainersGcp" | "CspmMonitorGithub" | "CspmMonitorAzureDevOps" | "DefenderCspmAws" | "DefenderCspmGcp" | "DefenderForDevOpsGithub" | "DefenderForDevOpsAzureDevOps" | "CspmMonitorGitLab" | "DefenderForDevOpsGitLab" - Added Enum KnownActionableRemediationState - Added Enum KnownAnnotateDefaultBranchState - Added Enum KnownApplicationConditionOperator - Added Enum KnownApplicationSourceResourceType - Added Enum KnownAutoDiscovery - Added Enum KnownCode + - Added Enum KnownDescendantBehavior - Added Enum KnownDesiredOnboardingState + - Added Enum KnownDevOpsPolicySource + - Added Enum KnownDevOpsPolicyType - Added Enum KnownDevOpsProvisioningState - Added Enum KnownEnforce - Added Enum KnownEnvironmentType @@ -586,15 +605,14 @@ Compared with version 5.0.0 - Enum KnownOfferingType has a new value DefenderForContainersGcp - Enum KnownOfferingType has a new value DefenderForDatabasesAws - Enum KnownOfferingType has a new value DefenderForDatabasesGcp - - Enum KnownOfferingType has a new value DefenderForDevOpsAzureDevOps - - Enum KnownOfferingType has a new value DefenderForDevOpsGithub - - Enum KnownOfferingType has a new value DefenderForDevOpsGitLab - Enum KnownOfferingType has a new value DefenderForServersGcp - Enum KnownSettingName has a new value Current - Added function getContinuationToken -**Breaking Changes** +### Breaking Changes + - Removed operation group AdaptiveApplicationControls + - Removed operation group AdaptiveNetworkHardenings - Removed operation group IngestionSettings - Removed operation Alerts.simulate - Removed operation SecurityContacts.update @@ -609,6 +627,7 @@ Compared with version 5.0.0 - Operation Settings.update has a new signature - Class SecurityCenter has a new signature - Interface AlertsSuppressionRulesListNextOptionalParams no longer has parameter alertType + - Interface DefenderForServersAwsOfferingArcAutoProvisioning no longer has parameter enabled - Interface DefenderForServersAwsOfferingArcAutoProvisioning no longer has parameter servicePrincipalSecretMetadata - Interface IotSecuritySolutionListByResourceGroupNextOptionalParams no longer has parameter filter - Interface IotSecuritySolutionListBySubscriptionNextOptionalParams no longer has parameter filter @@ -623,1391 +642,33 @@ Compared with version 5.0.0 - Interface TasksListByResourceGroupNextOptionalParams no longer has parameter filter - Interface TasksListNextOptionalParams no longer has parameter filter - Parameter value of interface SecurityContactList is now required + - Type of parameter offeringType of interface CloudOffering is changed from "CspmMonitorAws" | "DefenderForContainersAws" | "DefenderForServersAws" | "InformationProtectionAws" to "CspmMonitorAws" | "DefenderForContainersAws" | "DefenderForServersAws" | "DefenderForDatabasesAws" | "CspmMonitorGcp" | "DefenderForServersGcp" | "DefenderForDatabasesGcp" | "DefenderForContainersGcp" | "CspmMonitorGithub" | "CspmMonitorAzureDevOps" | "DefenderCspmAws" | "DefenderCspmGcp" | "CspmMonitorGitLab" - Type of parameter value of interface ExternalSecuritySolutionList is changed from ExternalSecuritySolutionUnion[] to ExternalSecuritySolution[] + - Class SecurityCenter no longer has parameter adaptiveApplicationControls + - Class SecurityCenter no longer has parameter adaptiveNetworkHardenings - Class SecurityCenter no longer has parameter ingestionSettings + - Removed Enum KnownAdaptiveApplicationControlIssue - Removed Enum KnownAlertNotifications - Removed Enum KnownAlertsToAdmins + - Removed Enum KnownConfigurationStatus + - Removed Enum KnownDirection + - Removed Enum KnownEnforcementMode + - Removed Enum KnownEnforcementSupport + - Removed Enum KnownFileType + - Removed Enum KnownRecommendationAction + - Removed Enum KnownRecommendationStatus + - Removed Enum KnownSourceSystem + - Removed Enum KnownTransportProtocol + - Enum KnownOfferingType no longer has value InformationProtectionAws - Enum KnownSettingName no longer has value Mcas - Enum KnownSettingName no longer has value Sentinel - Enum KnownSettingName no longer has value Wdatp - Enum KnownSettingName no longer has value WdatpExcludeLinuxPublicPreview -## 6.0.0-beta.4 (2023-04-11) +## 5.0.0 (2022-03-30) -**Features** - - - Added operation group APICollection - - Added operation group APICollectionOffboarding - - Added operation group APICollectionOnboarding - - Added operation group ApplicationOperations - - Added operation group Applications - - Added operation group GovernanceAssignments - - Added operation group GovernanceRules - - Added operation group HealthReportOperations - - Added operation group HealthReports - - Added operation group SecurityConnectorApplication - - Added operation group SecurityConnectorApplications - - Added operation group SecurityOperators - - Added operation Alerts.beginSimulate - - Added operation Alerts.beginSimulateAndWait - - Added operation Alerts.updateResourceGroupLevelStateToInProgress - - Added operation Alerts.updateSubscriptionLevelStateToInProgress - - Added Interface AadExternalSecuritySolution - - Added Interface AadSolutionProperties - - Added Interface ActiveConnectionsNotInAllowedRange - - Added Interface AdaptiveApplicationControlGroup - - Added Interface AdaptiveNetworkHardening - - Added Interface AdvancedThreatProtectionSetting - - Added Interface Alert - - Added Interface AlertPropertiesSupportingEvidence - - Added Interface AlertSimulatorBundlesRequestProperties - - Added Interface AlertsSuppressionRule - - Added Interface AlertsUpdateResourceGroupLevelStateToInProgressOptionalParams - - Added Interface AlertsUpdateSubscriptionLevelStateToInProgressOptionalParams - - Added Interface AlertSyncSettings - - Added Interface AllowedConnectionsResource - - Added Interface AllowlistCustomAlertRule - - Added Interface AmqpC2DMessagesNotInAllowedRange - - Added Interface AmqpC2DRejectedMessagesNotInAllowedRange - - Added Interface AmqpD2CMessagesNotInAllowedRange - - Added Interface APICollectionGetOptionalParams - - Added Interface APICollectionListNextOptionalParams - - Added Interface APICollectionListOptionalParams - - Added Interface APICollectionOffboardingDeleteOptionalParams - - Added Interface APICollectionOnboardingCreateOptionalParams - - Added Interface ApiCollectionResponse - - Added Interface ApiCollectionResponseList - - Added Interface Application - - Added Interface ApplicationCondition - - Added Interface ApplicationCreateOrUpdateOptionalParams - - Added Interface ApplicationDeleteOptionalParams - - Added Interface ApplicationGetOptionalParams - - Added Interface ApplicationsList - - Added Interface ApplicationsListNextOptionalParams - - Added Interface ApplicationsListOptionalParams - - Added Interface AscLocation - - Added Interface AssessmentStatusResponse - - Added Interface AtaExternalSecuritySolution - - Added Interface AtaSolutionProperties - - Added Interface Automation - - Added Interface AutomationActionEventHub - - Added Interface AutomationActionLogicApp - - Added Interface AutomationActionWorkspace - - Added Interface AutoProvisioningSetting - - Added Interface AwAssumeRoleAuthenticationDetailsProperties - - Added Interface AwsCredsAuthenticationDetailsProperties - - Added Interface AwsEnvironmentData - - Added Interface AwsOrganizationalData - - Added Interface AwsOrganizationalDataMaster - - Added Interface AwsOrganizationalDataMember - - Added Interface AzureDevOpsScopeEnvironmentData - - Added Interface AzureResourceDetails - - Added Interface AzureResourceIdentifier - - Added Interface CefExternalSecuritySolution - - Added Interface CefSolutionProperties - - Added Interface Compliance - - Added Interface ComplianceResult - - Added Interface Condition - - Added Interface ConnectionFromIpNotAllowed - - Added Interface ConnectionToIpNotAllowed - - Added Interface ConnectorSetting - - Added Interface ContainerRegistryVulnerabilityProperties - - Added Interface CspmMonitorAwsOffering - - Added Interface CspmMonitorAzureDevOpsOffering - - Added Interface CspmMonitorGcpOffering - - Added Interface CspmMonitorGcpOfferingNativeCloudConnection - - Added Interface CspmMonitorGithubOffering - - Added Interface CspmMonitorGitLabOffering - - Added Interface CustomAssessmentAutomation - - Added Interface CustomAssessmentAutomationRequest - - Added Interface CustomEntityStoreAssignment - - Added Interface DataExportSettings - - Added Interface DefenderCspmAwsOffering - - Added Interface DefenderCspmAwsOfferingDatabasesDspm - - Added Interface DefenderCspmAwsOfferingDataSensitivityDiscovery - - Added Interface DefenderCspmAwsOfferingVmScanners - - Added Interface DefenderCspmAwsOfferingVmScannersConfiguration - - Added Interface DefenderCspmGcpOffering - - Added Interface DefenderFoDatabasesAwsOffering - - Added Interface DefenderFoDatabasesAwsOfferingArcAutoProvisioning - - Added Interface DefenderFoDatabasesAwsOfferingArcAutoProvisioningConfiguration - - Added Interface DefenderFoDatabasesAwsOfferingDatabasesDspm - - Added Interface DefenderFoDatabasesAwsOfferingRds - - Added Interface DefenderForContainersAwsOffering - - Added Interface DefenderForContainersAwsOfferingContainerVulnerabilityAssessment - - Added Interface DefenderForContainersAwsOfferingContainerVulnerabilityAssessmentTask - - Added Interface DefenderForContainersGcpOffering - - Added Interface DefenderForContainersGcpOfferingDataPipelineNativeCloudConnection - - Added Interface DefenderForContainersGcpOfferingNativeCloudConnection - - Added Interface DefenderForDatabasesGcpOffering - - Added Interface DefenderForDatabasesGcpOfferingArcAutoProvisioning - - Added Interface DefenderForDatabasesGcpOfferingArcAutoProvisioningConfiguration - - Added Interface DefenderForDatabasesGcpOfferingDefenderForDatabasesArcAutoProvisioning - - Added Interface DefenderForDevOpsAzureDevOpsOffering - - Added Interface DefenderForDevOpsGithubOffering - - Added Interface DefenderForDevOpsGitLabOffering - - Added Interface DefenderForServersAwsOffering - - Added Interface DefenderForServersAwsOfferingArcAutoProvisioningConfiguration - - Added Interface DefenderForServersAwsOfferingMdeAutoProvisioning - - Added Interface DefenderForServersAwsOfferingSubPlan - - Added Interface DefenderForServersAwsOfferingVaAutoProvisioning - - Added Interface DefenderForServersAwsOfferingVaAutoProvisioningConfiguration - - Added Interface DefenderForServersAwsOfferingVmScanners - - Added Interface DefenderForServersAwsOfferingVmScannersConfiguration - - Added Interface DefenderForServersGcpOffering - - Added Interface DefenderForServersGcpOfferingArcAutoProvisioning - - Added Interface DefenderForServersGcpOfferingArcAutoProvisioningConfiguration - - Added Interface DefenderForServersGcpOfferingDefenderForServers - - Added Interface DefenderForServersGcpOfferingMdeAutoProvisioning - - Added Interface DefenderForServersGcpOfferingSubPlan - - Added Interface DefenderForServersGcpOfferingVaAutoProvisioning - - Added Interface DefenderForServersGcpOfferingVaAutoProvisioningConfiguration - - Added Interface DefenderForServersGcpOfferingVmScanners - - Added Interface DefenderForServersGcpOfferingVmScannersConfiguration - - Added Interface DenylistCustomAlertRule - - Added Interface DeviceSecurityGroup - - Added Interface DirectMethodInvokesNotInAllowedRange - - Added Interface DiscoveredSecuritySolution - - Added Interface EnvironmentData - - Added Interface EnvironmentDetails - - Added Interface ErrorDetail - - Added Interface ErrorDetailAutoGenerated - - Added Interface ErrorResponse - - Added Interface ErrorResponseAutoGenerated - - Added Interface ExecuteGovernanceRuleParams - - Added Interface Extension - - Added Interface ExternalSecuritySolution - - Added Interface FailedLocalLoginsNotInAllowedRange - - Added Interface FileUploadsNotInAllowedRange - - Added Interface GcpCredentialsDetailsProperties - - Added Interface GcpOrganizationalData - - Added Interface GcpOrganizationalDataMember - - Added Interface GcpOrganizationalDataOrganization - - Added Interface GcpProjectDetails - - Added Interface GcpProjectEnvironmentData - - Added Interface GithubScopeEnvironmentData - - Added Interface GitlabScopeEnvironmentData - - Added Interface GovernanceAssignment - - Added Interface GovernanceAssignmentAdditionalData - - Added Interface GovernanceAssignmentsCreateOrUpdateOptionalParams - - Added Interface GovernanceAssignmentsDeleteOptionalParams - - Added Interface GovernanceAssignmentsGetOptionalParams - - Added Interface GovernanceAssignmentsList - - Added Interface GovernanceAssignmentsListNextOptionalParams - - Added Interface GovernanceAssignmentsListOptionalParams - - Added Interface GovernanceEmailNotification - - Added Interface GovernanceRule - - Added Interface GovernanceRuleEmailNotification - - Added Interface GovernanceRuleList - - Added Interface GovernanceRuleMetadata - - Added Interface GovernanceRuleOwnerSource - - Added Interface GovernanceRulesCreateOrUpdateOptionalParams - - Added Interface GovernanceRulesDeleteHeaders - - Added Interface GovernanceRulesDeleteOptionalParams - - Added Interface GovernanceRulesExecuteHeaders - - Added Interface GovernanceRulesExecuteOptionalParams - - Added Interface GovernanceRulesGetOptionalParams - - Added Interface GovernanceRulesListNextOptionalParams - - Added Interface GovernanceRulesListOptionalParams - - Added Interface GovernanceRulesOperationResultsHeaders - - Added Interface GovernanceRulesOperationResultsOptionalParams - - Added Interface HealthDataClassification - - Added Interface HealthReport - - Added Interface HealthReportGetOptionalParams - - Added Interface HealthReportsList - - Added Interface HealthReportsListNextOptionalParams - - Added Interface HealthReportsListOptionalParams - - Added Interface HttpC2DMessagesNotInAllowedRange - - Added Interface HttpC2DRejectedMessagesNotInAllowedRange - - Added Interface HttpD2CMessagesNotInAllowedRange - - Added Interface Identity - - Added Interface InformationProtectionAwsOffering - - Added Interface InformationProtectionPolicy - - Added Interface IngestionSetting - - Added Interface IoTSecurityAggregatedAlert - - Added Interface IoTSecurityAggregatedRecommendation - - Added Interface IoTSecuritySolutionAnalyticsModel - - Added Interface IoTSecuritySolutionModel - - Added Interface Issue - - Added Interface JitNetworkAccessPolicy - - Added Interface ListCustomAlertRule - - Added Interface LocalUserNotAllowed - - Added Interface LogAnalyticsIdentifier - - Added Interface MdeOnboardingData - - Added Interface MqttC2DMessagesNotInAllowedRange - - Added Interface MqttC2DRejectedMessagesNotInAllowedRange - - Added Interface MqttD2CMessagesNotInAllowedRange - - Added Interface OnPremiseResourceDetails - - Added Interface OnPremiseSqlResourceDetails - - Added Interface OperationResultAutoGenerated - - Added Interface OperationStatus - - Added Interface Pricing - - Added Interface ProcessNotAllowed - - Added Interface QueuePurgesNotInAllowedRange - - Added Interface RegulatoryComplianceAssessment - - Added Interface RegulatoryComplianceControl - - Added Interface RegulatoryComplianceStandard - - Added Interface RemediationEta - - Added Interface ResourceDetailsAutoGenerated - - Added Interface RuleResults - - Added Interface Scan - - Added Interface ScanResult - - Added Interface SecureScoreControlDefinitionItem - - Added Interface SecureScoreControlDetails - - Added Interface SecureScoreItem - - Added Interface SecurityAssessment - - Added Interface SecurityAssessmentMetadata - - Added Interface SecurityAssessmentMetadataPropertiesResponse - - Added Interface SecurityAssessmentMetadataResponse - - Added Interface SecurityAssessmentProperties - - Added Interface SecurityAssessmentPropertiesResponse - - Added Interface SecurityAssessmentResponse - - Added Interface SecurityConnector - - Added Interface SecurityConnectorApplicationCreateOrUpdateOptionalParams - - Added Interface SecurityConnectorApplicationDeleteOptionalParams - - Added Interface SecurityConnectorApplicationGetOptionalParams - - Added Interface SecurityConnectorApplicationsListNextOptionalParams - - Added Interface SecurityConnectorApplicationsListOptionalParams - - Added Interface SecurityContact - - Added Interface SecurityContactPropertiesAlertNotifications - - Added Interface SecurityContactPropertiesNotificationsByRole - - Added Interface SecurityOperator - - Added Interface SecurityOperatorList - - Added Interface SecurityOperatorsCreateOrUpdateOptionalParams - - Added Interface SecurityOperatorsDeleteOptionalParams - - Added Interface SecurityOperatorsGetOptionalParams - - Added Interface SecurityOperatorsListOptionalParams - - Added Interface SecuritySolution - - Added Interface SecuritySolutionsReferenceData - - Added Interface SecuritySubAssessment - - Added Interface SecurityTask - - Added Interface ServerVulnerabilityAssessment - - Added Interface ServerVulnerabilityProperties - - Added Interface Setting - - Added Interface Software - - Added Interface SqlServerVulnerabilityProperties - - Added Interface StatusAutoGenerated - - Added Interface ThresholdCustomAlertRule - - Added Interface TimeWindowCustomAlertRule - - Added Interface TopologyResource - - Added Interface TrackedResource - - Added Interface TwinUpdatesNotInAllowedRange - - Added Interface UnauthorizedOperationsNotInAllowedRange - - Added Interface UpdateIotSecuritySolutionData - - Added Interface WorkspaceSetting - - Added Type Alias APICollectionGetResponse - - Added Type Alias APICollectionListNextResponse - - Added Type Alias APICollectionListResponse - - Added Type Alias APICollectionOnboardingCreateResponse - - Added Type Alias ApplicationConditionOperator - - Added Type Alias ApplicationCreateOrUpdateResponse - - Added Type Alias ApplicationGetResponse - - Added Type Alias ApplicationsListNextResponse - - Added Type Alias ApplicationsListResponse - - Added Type Alias ApplicationSourceResourceType - - Added Type Alias AwsOrganizationalDataUnion - - Added Type Alias Code - - Added Type Alias ConnectionType - - Added Type Alias EnvironmentDataUnion - - Added Type Alias EnvironmentType - - Added Type Alias GcpOrganizationalDataUnion - - Added Type Alias GovernanceAssignmentsCreateOrUpdateResponse - - Added Type Alias GovernanceAssignmentsGetResponse - - Added Type Alias GovernanceAssignmentsListNextResponse - - Added Type Alias GovernanceAssignmentsListResponse - - Added Type Alias GovernanceRuleConditionOperator - - Added Type Alias GovernanceRuleOwnerSourceType - - Added Type Alias GovernanceRulesCreateOrUpdateResponse - - Added Type Alias GovernanceRulesExecuteResponse - - Added Type Alias GovernanceRulesGetResponse - - Added Type Alias GovernanceRulesListNextResponse - - Added Type Alias GovernanceRulesListResponse - - Added Type Alias GovernanceRulesOperationResultsResponse - - Added Type Alias GovernanceRuleSourceResourceType - - Added Type Alias GovernanceRuleType - - Added Type Alias HealthReportGetResponse - - Added Type Alias HealthReportsListNextResponse - - Added Type Alias HealthReportsListResponse - - Added Type Alias IsEnabled - - Added Type Alias MinimalSeverity - - Added Type Alias OperationResult - - Added Type Alias Roles - - Added Type Alias ScanningMode - - Added Type Alias ScopeName - - Added Type Alias SecurityConnectorApplicationCreateOrUpdateResponse - - Added Type Alias SecurityConnectorApplicationGetResponse - - Added Type Alias SecurityConnectorApplicationsListNextResponse - - Added Type Alias SecurityConnectorApplicationsListResponse - - Added Type Alias SecurityOperatorsCreateOrUpdateResponse - - Added Type Alias SecurityOperatorsGetResponse - - Added Type Alias SecurityOperatorsListResponse - - Added Type Alias StatusName - - Added Type Alias SubPlan - - Added Type Alias Type - - Interface AlertsSimulateOptionalParams has a new optional parameter resumeFrom - - Interface AlertsSimulateOptionalParams has a new optional parameter updateIntervalInMs - - Interface DefenderForServersAwsOfferingArcAutoProvisioning has a new optional parameter cloudRoleArn - - Interface DefenderForServersAwsOfferingArcAutoProvisioning has a new optional parameter configuration - - Interface ScanProperties has a new optional parameter lastScanTime - - Type of parameter offeringType of interface CloudOffering is changed from "CspmMonitorAws" | "DefenderForContainersAws" | "DefenderForServersAws" | "InformationProtectionAws" to "CspmMonitorAws" | "DefenderForContainersAws" | "DefenderForServersAws" | "DefenderForDatabasesAws" | "InformationProtectionAws" | "CspmMonitorGcp" | "DefenderForServersGcp" | "DefenderForDatabasesGcp" | "DefenderForContainersGcp" | "CspmMonitorGithub" | "CspmMonitorAzureDevOps" | "DefenderCspmAws" | "DefenderCspmGcp" | "DefenderForDevOpsGithub" | "DefenderForDevOpsAzureDevOps" | "CspmMonitorGitLab" | "DefenderForDevOpsGitLab" - - Added Enum KnownApplicationConditionOperator - - Added Enum KnownApplicationSourceResourceType - - Added Enum KnownCode - - Added Enum KnownEnvironmentType - - Added Enum KnownGovernanceRuleConditionOperator - - Added Enum KnownGovernanceRuleOwnerSourceType - - Added Enum KnownGovernanceRuleSourceResourceType - - Added Enum KnownGovernanceRuleType - - Added Enum KnownIsEnabled - - Added Enum KnownMinimalSeverity - - Added Enum KnownOperationResult - - Added Enum KnownRoles - - Added Enum KnownScanningMode - - Added Enum KnownScopeName - - Added Enum KnownStatusName - - Added Enum KnownSubPlan - - Added Enum KnownType - - Enum KnownAlertStatus has a new value InProgress - - Enum KnownBundleType has a new value CosmosDbs - - Enum KnownCloudName has a new value AzureDevOps - - Enum KnownCloudName has a new value Github - - Enum KnownCloudName has a new value GitLab - - Enum KnownOfferingType has a new value CspmMonitorAzureDevOps - - Enum KnownOfferingType has a new value CspmMonitorGcp - - Enum KnownOfferingType has a new value CspmMonitorGithub - - Enum KnownOfferingType has a new value CspmMonitorGitLab - - Enum KnownOfferingType has a new value DefenderCspmAws - - Enum KnownOfferingType has a new value DefenderCspmGcp - - Enum KnownOfferingType has a new value DefenderForContainersGcp - - Enum KnownOfferingType has a new value DefenderForDatabasesAws - - Enum KnownOfferingType has a new value DefenderForDatabasesGcp - - Enum KnownOfferingType has a new value DefenderForDevOpsAzureDevOps - - Enum KnownOfferingType has a new value DefenderForDevOpsGithub - - Enum KnownOfferingType has a new value DefenderForDevOpsGitLab - - Enum KnownOfferingType has a new value DefenderForServersGcp - - Enum KnownSettingName has a new value WdatpUnifiedSolution - - Added function getContinuationToken - -**Breaking Changes** - - - Removed operation Alerts.simulate - - Removed operation SecurityContacts.update - - Operation AllowedConnections.get has a new signature - - Interface AlertsSuppressionRulesListNextOptionalParams no longer has parameter alertType - - Interface DefenderForServersAwsOfferingArcAutoProvisioning no longer has parameter servicePrincipalSecretMetadata - - Interface IotSecuritySolutionListByResourceGroupNextOptionalParams no longer has parameter filter - - Interface IotSecuritySolutionListBySubscriptionNextOptionalParams no longer has parameter filter - - Interface IotSecuritySolutionsAnalyticsAggregatedAlertListNextOptionalParams no longer has parameter top - - Interface IotSecuritySolutionsAnalyticsRecommendationListNextOptionalParams no longer has parameter top - - Interface RegulatoryComplianceAssessmentsListNextOptionalParams no longer has parameter filter - - Interface RegulatoryComplianceControlsListNextOptionalParams no longer has parameter filter - - Interface RegulatoryComplianceStandardsListNextOptionalParams no longer has parameter filter - - Interface SecureScoreControlsListBySecureScoreNextOptionalParams no longer has parameter expand - - Interface SecureScoreControlsListNextOptionalParams no longer has parameter expand - - Interface TasksListByHomeRegionNextOptionalParams no longer has parameter filter - - Interface TasksListByResourceGroupNextOptionalParams no longer has parameter filter - - Interface TasksListNextOptionalParams no longer has parameter filter - - Type of parameter value of interface ExternalSecuritySolutionList is changed from ExternalSecuritySolutionUnion[] to ExternalSecuritySolution[] - - Removed Enum KnownAlertNotifications - - Removed Enum KnownAlertsToAdmins - -## 6.0.0-beta.3 (2023-03-21) - -**Features** - - - Added operation group APICollection - - Added operation group APICollectionOffboarding - - Added operation group APICollectionOnboarding - - Added operation group ApplicationOperations - - Added operation group Applications - - Added operation group GovernanceAssignments - - Added operation group GovernanceRules - - Added operation group HealthReportOperations - - Added operation group HealthReports - - Added operation group SecurityConnectorApplication - - Added operation group SecurityConnectorApplications - - Added operation Alerts.beginSimulate - - Added operation Alerts.beginSimulateAndWait - - Added operation Alerts.updateResourceGroupLevelStateToInProgress - - Added operation Alerts.updateSubscriptionLevelStateToInProgress - - Added Interface AadExternalSecuritySolution - - Added Interface AadSolutionProperties - - Added Interface ActiveConnectionsNotInAllowedRange - - Added Interface AdaptiveApplicationControlGroup - - Added Interface AdaptiveNetworkHardening - - Added Interface AdvancedThreatProtectionSetting - - Added Interface Alert - - Added Interface AlertPropertiesSupportingEvidence - - Added Interface AlertSimulatorBundlesRequestProperties - - Added Interface AlertsSuppressionRule - - Added Interface AlertsUpdateResourceGroupLevelStateToInProgressOptionalParams - - Added Interface AlertsUpdateSubscriptionLevelStateToInProgressOptionalParams - - Added Interface AlertSyncSettings - - Added Interface AllowedConnectionsResource - - Added Interface AllowlistCustomAlertRule - - Added Interface AmqpC2DMessagesNotInAllowedRange - - Added Interface AmqpC2DRejectedMessagesNotInAllowedRange - - Added Interface AmqpD2CMessagesNotInAllowedRange - - Added Interface APICollectionGetOptionalParams - - Added Interface APICollectionListNextOptionalParams - - Added Interface APICollectionListOptionalParams - - Added Interface APICollectionOffboardingDeleteOptionalParams - - Added Interface APICollectionOnboardingCreateOptionalParams - - Added Interface ApiCollectionResponse - - Added Interface ApiCollectionResponseList - - Added Interface Application - - Added Interface ApplicationCondition - - Added Interface ApplicationCreateOrUpdateOptionalParams - - Added Interface ApplicationDeleteOptionalParams - - Added Interface ApplicationGetOptionalParams - - Added Interface ApplicationsList - - Added Interface ApplicationsListNextOptionalParams - - Added Interface ApplicationsListOptionalParams - - Added Interface AscLocation - - Added Interface AssessmentStatusResponse - - Added Interface AtaExternalSecuritySolution - - Added Interface AtaSolutionProperties - - Added Interface Automation - - Added Interface AutomationActionEventHub - - Added Interface AutomationActionLogicApp - - Added Interface AutomationActionWorkspace - - Added Interface AutoProvisioningSetting - - Added Interface AwAssumeRoleAuthenticationDetailsProperties - - Added Interface AwsCredsAuthenticationDetailsProperties - - Added Interface AwsEnvironmentData - - Added Interface AwsOrganizationalData - - Added Interface AwsOrganizationalDataMaster - - Added Interface AwsOrganizationalDataMember - - Added Interface AzureDevOpsScopeEnvironmentData - - Added Interface AzureResourceDetails - - Added Interface AzureResourceIdentifier - - Added Interface CefExternalSecuritySolution - - Added Interface CefSolutionProperties - - Added Interface Compliance - - Added Interface ComplianceResult - - Added Interface Condition - - Added Interface ConnectionFromIpNotAllowed - - Added Interface ConnectionToIpNotAllowed - - Added Interface ConnectorSetting - - Added Interface ContainerRegistryVulnerabilityProperties - - Added Interface CspmMonitorAwsOffering - - Added Interface CspmMonitorAzureDevOpsOffering - - Added Interface CspmMonitorGcpOffering - - Added Interface CspmMonitorGcpOfferingNativeCloudConnection - - Added Interface CspmMonitorGithubOffering - - Added Interface CustomAssessmentAutomation - - Added Interface CustomAssessmentAutomationRequest - - Added Interface CustomEntityStoreAssignment - - Added Interface DataExportSettings - - Added Interface DefenderCspmAwsOffering - - Added Interface DefenderCspmAwsOfferingVmScanners - - Added Interface DefenderCspmAwsOfferingVmScannersConfiguration - - Added Interface DefenderCspmGcpOffering - - Added Interface DefenderFoDatabasesAwsOffering - - Added Interface DefenderFoDatabasesAwsOfferingArcAutoProvisioning - - Added Interface DefenderFoDatabasesAwsOfferingRds - - Added Interface DefenderForContainersAwsOffering - - Added Interface DefenderForContainersAwsOfferingContainerVulnerabilityAssessment - - Added Interface DefenderForContainersAwsOfferingContainerVulnerabilityAssessmentTask - - Added Interface DefenderForContainersGcpOffering - - Added Interface DefenderForContainersGcpOfferingDataPipelineNativeCloudConnection - - Added Interface DefenderForContainersGcpOfferingNativeCloudConnection - - Added Interface DefenderForDatabasesGcpOffering - - Added Interface DefenderForDatabasesGcpOfferingArcAutoProvisioning - - Added Interface DefenderForDatabasesGcpOfferingDefenderForDatabasesArcAutoProvisioning - - Added Interface DefenderForDevOpsAzureDevOpsOffering - - Added Interface DefenderForDevOpsGithubOffering - - Added Interface DefenderForServersAwsOffering - - Added Interface DefenderForServersAwsOfferingMdeAutoProvisioning - - Added Interface DefenderForServersAwsOfferingSubPlan - - Added Interface DefenderForServersAwsOfferingVaAutoProvisioning - - Added Interface DefenderForServersAwsOfferingVaAutoProvisioningConfiguration - - Added Interface DefenderForServersAwsOfferingVmScanners - - Added Interface DefenderForServersAwsOfferingVmScannersConfiguration - - Added Interface DefenderForServersGcpOffering - - Added Interface DefenderForServersGcpOfferingArcAutoProvisioning - - Added Interface DefenderForServersGcpOfferingDefenderForServers - - Added Interface DefenderForServersGcpOfferingMdeAutoProvisioning - - Added Interface DefenderForServersGcpOfferingSubPlan - - Added Interface DefenderForServersGcpOfferingVaAutoProvisioning - - Added Interface DefenderForServersGcpOfferingVaAutoProvisioningConfiguration - - Added Interface DenylistCustomAlertRule - - Added Interface DeviceSecurityGroup - - Added Interface DirectMethodInvokesNotInAllowedRange - - Added Interface DiscoveredSecuritySolution - - Added Interface EnvironmentData - - Added Interface EnvironmentDetails - - Added Interface ErrorDetail - - Added Interface ErrorDetailAutoGenerated - - Added Interface ErrorResponse - - Added Interface ErrorResponseAutoGenerated - - Added Interface ExecuteGovernanceRuleParams - - Added Interface ExternalSecuritySolution - - Added Interface FailedLocalLoginsNotInAllowedRange - - Added Interface FileUploadsNotInAllowedRange - - Added Interface GcpCredentialsDetailsProperties - - Added Interface GcpOrganizationalData - - Added Interface GcpOrganizationalDataMember - - Added Interface GcpOrganizationalDataOrganization - - Added Interface GcpProjectDetails - - Added Interface GcpProjectEnvironmentData - - Added Interface GithubScopeEnvironmentData - - Added Interface GovernanceAssignment - - Added Interface GovernanceAssignmentAdditionalData - - Added Interface GovernanceAssignmentsCreateOrUpdateOptionalParams - - Added Interface GovernanceAssignmentsDeleteOptionalParams - - Added Interface GovernanceAssignmentsGetOptionalParams - - Added Interface GovernanceAssignmentsList - - Added Interface GovernanceAssignmentsListNextOptionalParams - - Added Interface GovernanceAssignmentsListOptionalParams - - Added Interface GovernanceEmailNotification - - Added Interface GovernanceRule - - Added Interface GovernanceRuleEmailNotification - - Added Interface GovernanceRuleList - - Added Interface GovernanceRuleMetadata - - Added Interface GovernanceRuleOwnerSource - - Added Interface GovernanceRulesCreateOrUpdateOptionalParams - - Added Interface GovernanceRulesDeleteHeaders - - Added Interface GovernanceRulesDeleteOptionalParams - - Added Interface GovernanceRulesExecuteHeaders - - Added Interface GovernanceRulesExecuteOptionalParams - - Added Interface GovernanceRulesGetOptionalParams - - Added Interface GovernanceRulesListNextOptionalParams - - Added Interface GovernanceRulesListOptionalParams - - Added Interface GovernanceRulesOperationResultsHeaders - - Added Interface GovernanceRulesOperationResultsOptionalParams - - Added Interface HealthDataClassification - - Added Interface HealthReport - - Added Interface HealthReportGetOptionalParams - - Added Interface HealthReportsList - - Added Interface HealthReportsListNextOptionalParams - - Added Interface HealthReportsListOptionalParams - - Added Interface HttpC2DMessagesNotInAllowedRange - - Added Interface HttpC2DRejectedMessagesNotInAllowedRange - - Added Interface HttpD2CMessagesNotInAllowedRange - - Added Interface InformationProtectionAwsOffering - - Added Interface InformationProtectionPolicy - - Added Interface IngestionSetting - - Added Interface IoTSecurityAggregatedAlert - - Added Interface IoTSecurityAggregatedRecommendation - - Added Interface IoTSecuritySolutionAnalyticsModel - - Added Interface IoTSecuritySolutionModel - - Added Interface Issue - - Added Interface JitNetworkAccessPolicy - - Added Interface ListCustomAlertRule - - Added Interface LocalUserNotAllowed - - Added Interface LogAnalyticsIdentifier - - Added Interface MdeOnboardingData - - Added Interface MqttC2DMessagesNotInAllowedRange - - Added Interface MqttC2DRejectedMessagesNotInAllowedRange - - Added Interface MqttD2CMessagesNotInAllowedRange - - Added Interface OnPremiseResourceDetails - - Added Interface OnPremiseSqlResourceDetails - - Added Interface OperationResultAutoGenerated - - Added Interface Pricing - - Added Interface ProcessNotAllowed - - Added Interface QueuePurgesNotInAllowedRange - - Added Interface RegulatoryComplianceAssessment - - Added Interface RegulatoryComplianceControl - - Added Interface RegulatoryComplianceStandard - - Added Interface RemediationEta - - Added Interface ResourceDetailsAutoGenerated - - Added Interface RuleResults - - Added Interface Scan - - Added Interface ScanResult - - Added Interface SecureScoreControlDefinitionItem - - Added Interface SecureScoreControlDetails - - Added Interface SecureScoreItem - - Added Interface SecurityAssessment - - Added Interface SecurityAssessmentMetadata - - Added Interface SecurityAssessmentMetadataPropertiesResponse - - Added Interface SecurityAssessmentMetadataResponse - - Added Interface SecurityAssessmentProperties - - Added Interface SecurityAssessmentPropertiesResponse - - Added Interface SecurityAssessmentResponse - - Added Interface SecurityConnector - - Added Interface SecurityConnectorApplicationCreateOrUpdateOptionalParams - - Added Interface SecurityConnectorApplicationDeleteOptionalParams - - Added Interface SecurityConnectorApplicationGetOptionalParams - - Added Interface SecurityConnectorApplicationsListNextOptionalParams - - Added Interface SecurityConnectorApplicationsListOptionalParams - - Added Interface SecurityContact - - Added Interface SecurityContactPropertiesAlertNotifications - - Added Interface SecurityContactPropertiesNotificationsByRole - - Added Interface SecuritySolution - - Added Interface SecuritySolutionsReferenceData - - Added Interface SecuritySubAssessment - - Added Interface SecurityTask - - Added Interface ServerVulnerabilityAssessment - - Added Interface ServerVulnerabilityProperties - - Added Interface Setting - - Added Interface Software - - Added Interface SqlServerVulnerabilityProperties - - Added Interface StatusAutoGenerated - - Added Interface ThresholdCustomAlertRule - - Added Interface TimeWindowCustomAlertRule - - Added Interface TopologyResource - - Added Interface TrackedResource - - Added Interface TwinUpdatesNotInAllowedRange - - Added Interface UnauthorizedOperationsNotInAllowedRange - - Added Interface UpdateIotSecuritySolutionData - - Added Interface WorkspaceSetting - - Added Type Alias APICollectionGetResponse - - Added Type Alias APICollectionListNextResponse - - Added Type Alias APICollectionListResponse - - Added Type Alias APICollectionOnboardingCreateResponse - - Added Type Alias ApplicationConditionOperator - - Added Type Alias ApplicationCreateOrUpdateResponse - - Added Type Alias ApplicationGetResponse - - Added Type Alias ApplicationsListNextResponse - - Added Type Alias ApplicationsListResponse - - Added Type Alias ApplicationSourceResourceType - - Added Type Alias AwsOrganizationalDataUnion - - Added Type Alias ConnectionType - - Added Type Alias EnvironmentDataUnion - - Added Type Alias EnvironmentType - - Added Type Alias GcpOrganizationalDataUnion - - Added Type Alias GovernanceAssignmentsCreateOrUpdateResponse - - Added Type Alias GovernanceAssignmentsGetResponse - - Added Type Alias GovernanceAssignmentsListNextResponse - - Added Type Alias GovernanceAssignmentsListResponse - - Added Type Alias GovernanceRuleConditionOperator - - Added Type Alias GovernanceRuleOwnerSourceType - - Added Type Alias GovernanceRulesCreateOrUpdateResponse - - Added Type Alias GovernanceRulesExecuteResponse - - Added Type Alias GovernanceRulesGetResponse - - Added Type Alias GovernanceRulesListNextResponse - - Added Type Alias GovernanceRulesListResponse - - Added Type Alias GovernanceRulesOperationResultsResponse - - Added Type Alias GovernanceRuleSourceResourceType - - Added Type Alias GovernanceRuleType - - Added Type Alias HealthReportGetResponse - - Added Type Alias HealthReportsListNextResponse - - Added Type Alias HealthReportsListResponse - - Added Type Alias MinimalSeverity - - Added Type Alias OperationResult - - Added Type Alias Roles - - Added Type Alias ScanningMode - - Added Type Alias ScopeName - - Added Type Alias SecurityConnectorApplicationCreateOrUpdateResponse - - Added Type Alias SecurityConnectorApplicationGetResponse - - Added Type Alias SecurityConnectorApplicationsListNextResponse - - Added Type Alias SecurityConnectorApplicationsListResponse - - Added Type Alias StatusName - - Added Type Alias SubPlan - - Added Type Alias Type - - Interface AlertsSimulateOptionalParams has a new optional parameter resumeFrom - - Interface AlertsSimulateOptionalParams has a new optional parameter updateIntervalInMs - - Interface DefenderForServersAwsOfferingArcAutoProvisioning has a new optional parameter cloudRoleArn - - Interface ScanProperties has a new optional parameter lastScanTime - - Type of parameter offeringType of interface CloudOffering is changed from "CspmMonitorAws" | "DefenderForContainersAws" | "DefenderForServersAws" | "InformationProtectionAws" to "CspmMonitorAws" | "DefenderForContainersAws" | "DefenderForServersAws" | "DefenderForDatabasesAws" | "InformationProtectionAws" | "CspmMonitorGcp" | "DefenderForServersGcp" | "DefenderForDatabasesGcp" | "DefenderForContainersGcp" | "CspmMonitorGithub" | "CspmMonitorAzureDevOps" | "DefenderCspmAws" | "DefenderCspmGcp" | "DefenderForDevOpsGithub" | "DefenderForDevOpsAzureDevOps" - - Added Enum KnownApplicationConditionOperator - - Added Enum KnownApplicationSourceResourceType - - Added Enum KnownEnvironmentType - - Added Enum KnownGovernanceRuleConditionOperator - - Added Enum KnownGovernanceRuleOwnerSourceType - - Added Enum KnownGovernanceRuleSourceResourceType - - Added Enum KnownGovernanceRuleType - - Added Enum KnownMinimalSeverity - - Added Enum KnownOperationResult - - Added Enum KnownRoles - - Added Enum KnownScanningMode - - Added Enum KnownScopeName - - Added Enum KnownStatusName - - Added Enum KnownSubPlan - - Added Enum KnownType - - Enum KnownAlertStatus has a new value InProgress - - Enum KnownBundleType has a new value CosmosDbs - - Enum KnownCloudName has a new value AzureDevOps - - Enum KnownCloudName has a new value Github - - Enum KnownOfferingType has a new value CspmMonitorAzureDevOps - - Enum KnownOfferingType has a new value CspmMonitorGcp - - Enum KnownOfferingType has a new value CspmMonitorGithub - - Enum KnownOfferingType has a new value DefenderCspmAws - - Enum KnownOfferingType has a new value DefenderCspmGcp - - Enum KnownOfferingType has a new value DefenderForContainersGcp - - Enum KnownOfferingType has a new value DefenderForDatabasesAws - - Enum KnownOfferingType has a new value DefenderForDatabasesGcp - - Enum KnownOfferingType has a new value DefenderForDevOpsAzureDevOps - - Enum KnownOfferingType has a new value DefenderForDevOpsGithub - - Enum KnownOfferingType has a new value DefenderForServersGcp - - Enum KnownSettingName has a new value WdatpUnifiedSolution - - Added function getContinuationToken - - Interface AlertsSuppressionRulesListNextOptionalParams no longer has parameter alertType - - Interface DefenderForServersAwsOfferingArcAutoProvisioning no longer has parameter servicePrincipalSecretMetadata - - Interface IotSecuritySolutionListByResourceGroupNextOptionalParams no longer has parameter filter - - Interface IotSecuritySolutionListBySubscriptionNextOptionalParams no longer has parameter filter - - Interface IotSecuritySolutionsAnalyticsAggregatedAlertListNextOptionalParams no longer has parameter top - - Interface IotSecuritySolutionsAnalyticsRecommendationListNextOptionalParams no longer has parameter top - - Interface RegulatoryComplianceAssessmentsListNextOptionalParams no longer has parameter filter - - Interface RegulatoryComplianceControlsListNextOptionalParams no longer has parameter filter - - Interface RegulatoryComplianceStandardsListNextOptionalParams no longer has parameter filter - - Interface SecureScoreControlsListBySecureScoreNextOptionalParams no longer has parameter expand - - Interface SecureScoreControlsListNextOptionalParams no longer has parameter expand - - Interface TasksListByHomeRegionNextOptionalParams no longer has parameter filter - - Interface TasksListByResourceGroupNextOptionalParams no longer has parameter filter - - Interface TasksListNextOptionalParams no longer has parameter filter - -**Breaking Changes** - - - Removed operation Alerts.simulate - - Removed operation SecurityContacts.update - - Operation AllowedConnections.get has a new signature - - Type of parameter value of interface ExternalSecuritySolutionList is changed from ExternalSecuritySolutionUnion[] to ExternalSecuritySolution[] - - Removed Enum KnownAlertNotifications - - Removed Enum KnownAlertsToAdmins - -## 6.0.0-beta.2 (2022-11-15) - -**Features** - - - Added operation group APICollection - - Added operation group APICollectionOffboarding - - Added operation group APICollectionOnboarding - - Added operation group ApplicationOperations - - Added operation group Applications - - Added operation group GovernanceAssignments - - Added operation group GovernanceRuleOperations - - Added operation group GovernanceRules - - Added operation group SecurityConnectorApplication - - Added operation group SecurityConnectorApplications - - Added operation group SecurityConnectorGovernanceRule - - Added operation group SecurityConnectorGovernanceRules - - Added operation group SecurityConnectorGovernanceRulesExecuteStatus - - Added operation group SubscriptionGovernanceRulesExecuteStatus - - Added operation Alerts.beginSimulate - - Added operation Alerts.beginSimulateAndWait - - Added operation Alerts.updateResourceGroupLevelStateToInProgress - - Added operation Alerts.updateSubscriptionLevelStateToInProgress - - Added Interface AadExternalSecuritySolution - - Added Interface AadSolutionProperties - - Added Interface ActiveConnectionsNotInAllowedRange - - Added Interface AdaptiveApplicationControlGroup - - Added Interface AdaptiveNetworkHardening - - Added Interface AdvancedThreatProtectionSetting - - Added Interface Alert - - Added Interface AlertPropertiesSupportingEvidence - - Added Interface AlertSimulatorBundlesRequestProperties - - Added Interface AlertsSuppressionRule - - Added Interface AlertsUpdateResourceGroupLevelStateToInProgressOptionalParams - - Added Interface AlertsUpdateSubscriptionLevelStateToInProgressOptionalParams - - Added Interface AlertSyncSettings - - Added Interface AllowedConnectionsResource - - Added Interface AllowlistCustomAlertRule - - Added Interface AmqpC2DMessagesNotInAllowedRange - - Added Interface AmqpC2DRejectedMessagesNotInAllowedRange - - Added Interface AmqpD2CMessagesNotInAllowedRange - - Added Interface APICollectionGetOptionalParams - - Added Interface APICollectionListNextOptionalParams - - Added Interface APICollectionListOptionalParams - - Added Interface APICollectionOffboardingDeleteOptionalParams - - Added Interface APICollectionOnboardingCreateOptionalParams - - Added Interface ApiCollectionResponse - - Added Interface ApiCollectionResponseList - - Added Interface Application - - Added Interface ApplicationCondition - - Added Interface ApplicationCreateOrUpdateOptionalParams - - Added Interface ApplicationDeleteOptionalParams - - Added Interface ApplicationGetOptionalParams - - Added Interface ApplicationsList - - Added Interface ApplicationsListNextOptionalParams - - Added Interface ApplicationsListOptionalParams - - Added Interface AscLocation - - Added Interface AssessmentStatusResponse - - Added Interface AtaExternalSecuritySolution - - Added Interface AtaSolutionProperties - - Added Interface Automation - - Added Interface AutomationActionEventHub - - Added Interface AutomationActionLogicApp - - Added Interface AutomationActionWorkspace - - Added Interface AutoProvisioningSetting - - Added Interface AwAssumeRoleAuthenticationDetailsProperties - - Added Interface AwsCredsAuthenticationDetailsProperties - - Added Interface AwsEnvironmentData - - Added Interface AwsOrganizationalData - - Added Interface AwsOrganizationalDataMaster - - Added Interface AwsOrganizationalDataMember - - Added Interface AzureDevOpsScopeEnvironmentData - - Added Interface AzureResourceDetails - - Added Interface AzureResourceIdentifier - - Added Interface CefExternalSecuritySolution - - Added Interface CefSolutionProperties - - Added Interface Compliance - - Added Interface ComplianceResult - - Added Interface Condition - - Added Interface ConnectionFromIpNotAllowed - - Added Interface ConnectionToIpNotAllowed - - Added Interface ConnectorSetting - - Added Interface ContainerRegistryVulnerabilityProperties - - Added Interface CspmMonitorAwsOffering - - Added Interface CspmMonitorAzureDevOpsOffering - - Added Interface CspmMonitorGcpOffering - - Added Interface CspmMonitorGcpOfferingNativeCloudConnection - - Added Interface CspmMonitorGithubOffering - - Added Interface CustomAssessmentAutomation - - Added Interface CustomAssessmentAutomationRequest - - Added Interface CustomEntityStoreAssignment - - Added Interface DataExportSettings - - Added Interface DefenderCspmAwsOffering - - Added Interface DefenderCspmAwsOfferingVmScanners - - Added Interface DefenderCspmAwsOfferingVmScannersConfiguration - - Added Interface DefenderCspmGcpOffering - - Added Interface DefenderFoDatabasesAwsOffering - - Added Interface DefenderFoDatabasesAwsOfferingArcAutoProvisioning - - Added Interface DefenderFoDatabasesAwsOfferingRds - - Added Interface DefenderForContainersAwsOffering - - Added Interface DefenderForContainersAwsOfferingContainerVulnerabilityAssessment - - Added Interface DefenderForContainersAwsOfferingContainerVulnerabilityAssessmentTask - - Added Interface DefenderForContainersGcpOffering - - Added Interface DefenderForContainersGcpOfferingDataPipelineNativeCloudConnection - - Added Interface DefenderForContainersGcpOfferingNativeCloudConnection - - Added Interface DefenderForDatabasesGcpOffering - - Added Interface DefenderForDatabasesGcpOfferingArcAutoProvisioning - - Added Interface DefenderForDatabasesGcpOfferingDefenderForDatabasesArcAutoProvisioning - - Added Interface DefenderForDevOpsAzureDevOpsOffering - - Added Interface DefenderForDevOpsGithubOffering - - Added Interface DefenderForServersAwsOffering - - Added Interface DefenderForServersAwsOfferingMdeAutoProvisioning - - Added Interface DefenderForServersAwsOfferingSubPlan - - Added Interface DefenderForServersAwsOfferingVaAutoProvisioning - - Added Interface DefenderForServersAwsOfferingVaAutoProvisioningConfiguration - - Added Interface DefenderForServersAwsOfferingVmScanners - - Added Interface DefenderForServersAwsOfferingVmScannersConfiguration - - Added Interface DefenderForServersGcpOffering - - Added Interface DefenderForServersGcpOfferingArcAutoProvisioning - - Added Interface DefenderForServersGcpOfferingDefenderForServers - - Added Interface DefenderForServersGcpOfferingMdeAutoProvisioning - - Added Interface DefenderForServersGcpOfferingSubPlan - - Added Interface DefenderForServersGcpOfferingVaAutoProvisioning - - Added Interface DefenderForServersGcpOfferingVaAutoProvisioningConfiguration - - Added Interface DenylistCustomAlertRule - - Added Interface DeviceSecurityGroup - - Added Interface DirectMethodInvokesNotInAllowedRange - - Added Interface DiscoveredSecuritySolution - - Added Interface EnvironmentData - - Added Interface ErrorDetail - - Added Interface ErrorResponse - - Added Interface ExecuteGovernanceRuleParams - - Added Interface ExecuteRuleStatus - - Added Interface ExternalSecuritySolution - - Added Interface FailedLocalLoginsNotInAllowedRange - - Added Interface FileUploadsNotInAllowedRange - - Added Interface GcpCredentialsDetailsProperties - - Added Interface GcpOrganizationalData - - Added Interface GcpOrganizationalDataMember - - Added Interface GcpOrganizationalDataOrganization - - Added Interface GcpProjectDetails - - Added Interface GcpProjectEnvironmentData - - Added Interface GithubScopeEnvironmentData - - Added Interface GovernanceAssignment - - Added Interface GovernanceAssignmentAdditionalData - - Added Interface GovernanceAssignmentsCreateOrUpdateOptionalParams - - Added Interface GovernanceAssignmentsDeleteOptionalParams - - Added Interface GovernanceAssignmentsGetOptionalParams - - Added Interface GovernanceAssignmentsList - - Added Interface GovernanceAssignmentsListNextOptionalParams - - Added Interface GovernanceAssignmentsListOptionalParams - - Added Interface GovernanceEmailNotification - - Added Interface GovernanceRule - - Added Interface GovernanceRuleEmailNotification - - Added Interface GovernanceRuleList - - Added Interface GovernanceRuleListNextOptionalParams - - Added Interface GovernanceRuleListOptionalParams - - Added Interface GovernanceRuleOwnerSource - - Added Interface GovernanceRulesCreateOrUpdateOptionalParams - - Added Interface GovernanceRulesDeleteOptionalParams - - Added Interface GovernanceRulesGetOptionalParams - - Added Interface GovernanceRulesRuleIdExecuteSingleSecurityConnectorHeaders - - Added Interface GovernanceRulesRuleIdExecuteSingleSecurityConnectorOptionalParams - - Added Interface GovernanceRulesRuleIdExecuteSingleSubscriptionHeaders - - Added Interface GovernanceRulesRuleIdExecuteSingleSubscriptionOptionalParams - - Added Interface HttpC2DMessagesNotInAllowedRange - - Added Interface HttpC2DRejectedMessagesNotInAllowedRange - - Added Interface HttpD2CMessagesNotInAllowedRange - - Added Interface InformationProtectionAwsOffering - - Added Interface InformationProtectionPolicy - - Added Interface IngestionSetting - - Added Interface IoTSecurityAggregatedAlert - - Added Interface IoTSecurityAggregatedRecommendation - - Added Interface IoTSecuritySolutionAnalyticsModel - - Added Interface IoTSecuritySolutionModel - - Added Interface JitNetworkAccessPolicy - - Added Interface ListCustomAlertRule - - Added Interface LocalUserNotAllowed - - Added Interface LogAnalyticsIdentifier - - Added Interface MdeOnboardingData - - Added Interface MqttC2DMessagesNotInAllowedRange - - Added Interface MqttC2DRejectedMessagesNotInAllowedRange - - Added Interface MqttD2CMessagesNotInAllowedRange - - Added Interface OnPremiseResourceDetails - - Added Interface OnPremiseSqlResourceDetails - - Added Interface Pricing - - Added Interface ProcessNotAllowed - - Added Interface QueuePurgesNotInAllowedRange - - Added Interface RegulatoryComplianceAssessment - - Added Interface RegulatoryComplianceControl - - Added Interface RegulatoryComplianceStandard - - Added Interface RemediationEta - - Added Interface RuleResults - - Added Interface Scan - - Added Interface ScanResult - - Added Interface SecureScoreControlDefinitionItem - - Added Interface SecureScoreControlDetails - - Added Interface SecureScoreItem - - Added Interface SecurityAssessment - - Added Interface SecurityAssessmentMetadata - - Added Interface SecurityAssessmentMetadataPropertiesResponse - - Added Interface SecurityAssessmentMetadataResponse - - Added Interface SecurityAssessmentProperties - - Added Interface SecurityAssessmentPropertiesResponse - - Added Interface SecurityAssessmentResponse - - Added Interface SecurityConnector - - Added Interface SecurityConnectorApplicationCreateOrUpdateOptionalParams - - Added Interface SecurityConnectorApplicationDeleteOptionalParams - - Added Interface SecurityConnectorApplicationGetOptionalParams - - Added Interface SecurityConnectorApplicationsListNextOptionalParams - - Added Interface SecurityConnectorApplicationsListOptionalParams - - Added Interface SecurityConnectorGovernanceRuleListNextOptionalParams - - Added Interface SecurityConnectorGovernanceRuleListOptionalParams - - Added Interface SecurityConnectorGovernanceRulesCreateOrUpdateOptionalParams - - Added Interface SecurityConnectorGovernanceRulesDeleteOptionalParams - - Added Interface SecurityConnectorGovernanceRulesExecuteStatusGetHeaders - - Added Interface SecurityConnectorGovernanceRulesExecuteStatusGetOptionalParams - - Added Interface SecurityConnectorGovernanceRulesGetOptionalParams - - Added Interface SecurityContact - - Added Interface SecurityContactPropertiesAlertNotifications - - Added Interface SecurityContactPropertiesNotificationsByRole - - Added Interface SecuritySolution - - Added Interface SecuritySolutionsReferenceData - - Added Interface SecuritySubAssessment - - Added Interface SecurityTask - - Added Interface ServerVulnerabilityAssessment - - Added Interface ServerVulnerabilityProperties - - Added Interface Setting - - Added Interface Software - - Added Interface SqlServerVulnerabilityProperties - - Added Interface SubscriptionGovernanceRulesExecuteStatusGetHeaders - - Added Interface SubscriptionGovernanceRulesExecuteStatusGetOptionalParams - - Added Interface ThresholdCustomAlertRule - - Added Interface TimeWindowCustomAlertRule - - Added Interface TopologyResource - - Added Interface TrackedResource - - Added Interface TwinUpdatesNotInAllowedRange - - Added Interface UnauthorizedOperationsNotInAllowedRange - - Added Interface UpdateIotSecuritySolutionData - - Added Interface WorkspaceSetting - - Added Type Alias APICollectionGetResponse - - Added Type Alias APICollectionListNextResponse - - Added Type Alias APICollectionListResponse - - Added Type Alias APICollectionOnboardingCreateResponse - - Added Type Alias ApplicationConditionOperator - - Added Type Alias ApplicationCreateOrUpdateResponse - - Added Type Alias ApplicationGetResponse - - Added Type Alias ApplicationsListNextResponse - - Added Type Alias ApplicationsListResponse - - Added Type Alias ApplicationSourceResourceType - - Added Type Alias AwsOrganizationalDataUnion - - Added Type Alias ConnectionType - - Added Type Alias EnvironmentDataUnion - - Added Type Alias EnvironmentType - - Added Type Alias GcpOrganizationalDataUnion - - Added Type Alias GovernanceAssignmentsCreateOrUpdateResponse - - Added Type Alias GovernanceAssignmentsGetResponse - - Added Type Alias GovernanceAssignmentsListNextResponse - - Added Type Alias GovernanceAssignmentsListResponse - - Added Type Alias GovernanceRuleConditionOperator - - Added Type Alias GovernanceRuleListNextResponse - - Added Type Alias GovernanceRuleListResponse - - Added Type Alias GovernanceRuleOwnerSourceType - - Added Type Alias GovernanceRulesCreateOrUpdateResponse - - Added Type Alias GovernanceRulesGetResponse - - Added Type Alias GovernanceRuleSourceResourceType - - Added Type Alias GovernanceRulesRuleIdExecuteSingleSecurityConnectorResponse - - Added Type Alias GovernanceRulesRuleIdExecuteSingleSubscriptionResponse - - Added Type Alias GovernanceRuleType - - Added Type Alias MinimalSeverity - - Added Type Alias Roles - - Added Type Alias ScanningMode - - Added Type Alias SecurityConnectorApplicationCreateOrUpdateResponse - - Added Type Alias SecurityConnectorApplicationGetResponse - - Added Type Alias SecurityConnectorApplicationsListNextResponse - - Added Type Alias SecurityConnectorApplicationsListResponse - - Added Type Alias SecurityConnectorGovernanceRuleListNextResponse - - Added Type Alias SecurityConnectorGovernanceRuleListResponse - - Added Type Alias SecurityConnectorGovernanceRulesCreateOrUpdateResponse - - Added Type Alias SecurityConnectorGovernanceRulesExecuteStatusGetResponse - - Added Type Alias SecurityConnectorGovernanceRulesGetResponse - - Added Type Alias SubPlan - - Added Type Alias SubscriptionGovernanceRulesExecuteStatusGetResponse - - Added Type Alias Type - - Interface AlertsSimulateOptionalParams has a new optional parameter resumeFrom - - Interface AlertsSimulateOptionalParams has a new optional parameter updateIntervalInMs - - Interface DefenderForServersAwsOfferingArcAutoProvisioning has a new optional parameter cloudRoleArn - - Class SecurityCenter has a new parameter aPICollection - - Class SecurityCenter has a new parameter aPICollectionOffboarding - - Class SecurityCenter has a new parameter aPICollectionOnboarding - - Class SecurityCenter has a new parameter applicationOperations - - Class SecurityCenter has a new parameter applications - - Class SecurityCenter has a new parameter governanceAssignments - - Class SecurityCenter has a new parameter governanceRuleOperations - - Class SecurityCenter has a new parameter governanceRules - - Class SecurityCenter has a new parameter securityConnectorApplication - - Class SecurityCenter has a new parameter securityConnectorApplications - - Class SecurityCenter has a new parameter securityConnectorGovernanceRule - - Class SecurityCenter has a new parameter securityConnectorGovernanceRules - - Class SecurityCenter has a new parameter securityConnectorGovernanceRulesExecuteStatus - - Class SecurityCenter has a new parameter subscriptionGovernanceRulesExecuteStatus - - Added Enum KnownApplicationConditionOperator - - Added Enum KnownApplicationSourceResourceType - - Added Enum KnownEnvironmentType - - Added Enum KnownGovernanceRuleConditionOperator - - Added Enum KnownGovernanceRuleOwnerSourceType - - Added Enum KnownGovernanceRuleSourceResourceType - - Added Enum KnownGovernanceRuleType - - Added Enum KnownMinimalSeverity - - Added Enum KnownRoles - - Added Enum KnownScanningMode - - Added Enum KnownSubPlan - - Added Enum KnownType - - Enum KnownAlertStatus has a new value InProgress - - Enum KnownBundleType has a new value CosmosDbs - - Enum KnownCloudName has a new value AzureDevOps - - Enum KnownCloudName has a new value Github - - Enum KnownOfferingType has a new value CspmMonitorAzureDevOps - - Enum KnownOfferingType has a new value CspmMonitorGcp - - Enum KnownOfferingType has a new value CspmMonitorGithub - - Enum KnownOfferingType has a new value DefenderCspmAws - - Enum KnownOfferingType has a new value DefenderCspmGcp - - Enum KnownOfferingType has a new value DefenderForContainersGcp - - Enum KnownOfferingType has a new value DefenderForDatabasesAws - - Enum KnownOfferingType has a new value DefenderForDatabasesGcp - - Enum KnownOfferingType has a new value DefenderForDevOpsAzureDevOps - - Enum KnownOfferingType has a new value DefenderForDevOpsGithub - - Enum KnownOfferingType has a new value DefenderForServersGcp - - Enum KnownSettingName has a new value WdatpUnifiedSolution - -**Breaking Changes** - - - Removed operation Alerts.simulate - - Removed operation SecurityContacts.update - - Operation AllowedConnections.get has a new signature - - Interface DefenderForServersAwsOfferingArcAutoProvisioning no longer has parameter servicePrincipalSecretMetadata - - Removed Enum KnownAlertNotifications - - Removed Enum KnownAlertsToAdmins - -## 6.0.0-beta.1 (2022-09-14) - -**Features** - - - Added operation group ApplicationOperations - - Added operation group Applications - - Added operation group GovernanceAssignments - - Added operation group GovernanceRuleOperations - - Added operation group GovernanceRules - - Added operation group SecurityConnectorApplication - - Added operation group SecurityConnectorApplications - - Added operation group SecurityConnectorGovernanceRule - - Added operation group SecurityConnectorGovernanceRules - - Added operation group SecurityConnectorGovernanceRulesExecuteStatus - - Added operation group SubscriptionGovernanceRulesExecuteStatus - - Added operation Alerts.beginSimulate - - Added operation Alerts.beginSimulateAndWait - - Added operation Alerts.updateResourceGroupLevelStateToInProgress - - Added operation Alerts.updateSubscriptionLevelStateToInProgress - - Added Interface AadExternalSecuritySolution - - Added Interface AadSolutionProperties - - Added Interface ActiveConnectionsNotInAllowedRange - - Added Interface AdaptiveApplicationControlGroup - - Added Interface AdaptiveNetworkHardening - - Added Interface AdvancedThreatProtectionSetting - - Added Interface Alert - - Added Interface AlertPropertiesSupportingEvidence - - Added Interface AlertSimulatorBundlesRequestProperties - - Added Interface AlertsSuppressionRule - - Added Interface AlertsUpdateResourceGroupLevelStateToInProgressOptionalParams - - Added Interface AlertsUpdateSubscriptionLevelStateToInProgressOptionalParams - - Added Interface AlertSyncSettings - - Added Interface AllowedConnectionsResource - - Added Interface AllowlistCustomAlertRule - - Added Interface AmqpC2DMessagesNotInAllowedRange - - Added Interface AmqpC2DRejectedMessagesNotInAllowedRange - - Added Interface AmqpD2CMessagesNotInAllowedRange - - Added Interface Application - - Added Interface ApplicationCondition - - Added Interface ApplicationCreateOrUpdateOptionalParams - - Added Interface ApplicationDeleteOptionalParams - - Added Interface ApplicationGetOptionalParams - - Added Interface ApplicationsList - - Added Interface ApplicationsListNextOptionalParams - - Added Interface ApplicationsListOptionalParams - - Added Interface AscLocation - - Added Interface AssessmentStatusResponse - - Added Interface AtaExternalSecuritySolution - - Added Interface AtaSolutionProperties - - Added Interface Automation - - Added Interface AutomationActionEventHub - - Added Interface AutomationActionLogicApp - - Added Interface AutomationActionWorkspace - - Added Interface AutoProvisioningSetting - - Added Interface AwAssumeRoleAuthenticationDetailsProperties - - Added Interface AwsCredsAuthenticationDetailsProperties - - Added Interface AWSEnvironmentData - - Added Interface AwsOrganizationalData - - Added Interface AwsOrganizationalDataMaster - - Added Interface AwsOrganizationalDataMember - - Added Interface AzureDevOpsScopeEnvironmentData - - Added Interface AzureResourceDetails - - Added Interface AzureResourceIdentifier - - Added Interface CefExternalSecuritySolution - - Added Interface CefSolutionProperties - - Added Interface Compliance - - Added Interface ComplianceResult - - Added Interface Condition - - Added Interface ConnectionFromIpNotAllowed - - Added Interface ConnectionToIpNotAllowed - - Added Interface ConnectorSetting - - Added Interface ContainerRegistryVulnerabilityProperties - - Added Interface CspmMonitorAwsOffering - - Added Interface CspmMonitorAzureDevOpsOffering - - Added Interface CspmMonitorGcpOffering - - Added Interface CspmMonitorGcpOfferingNativeCloudConnection - - Added Interface CspmMonitorGithubOffering - - Added Interface CustomAssessmentAutomation - - Added Interface CustomAssessmentAutomationRequest - - Added Interface CustomEntityStoreAssignment - - Added Interface DataExportSettings - - Added Interface DefenderFoDatabasesAwsOffering - - Added Interface DefenderFoDatabasesAwsOfferingArcAutoProvisioning - - Added Interface DefenderFoDatabasesAwsOfferingArcAutoProvisioningServicePrincipalSecretMetadata - - Added Interface DefenderForContainersAwsOffering - - Added Interface DefenderForContainersAwsOfferingContainerVulnerabilityAssessment - - Added Interface DefenderForContainersAwsOfferingContainerVulnerabilityAssessmentTask - - Added Interface DefenderForContainersGcpOffering - - Added Interface DefenderForContainersGcpOfferingDataPipelineNativeCloudConnection - - Added Interface DefenderForContainersGcpOfferingNativeCloudConnection - - Added Interface DefenderForDatabasesGcpOffering - - Added Interface DefenderForDatabasesGcpOfferingArcAutoProvisioning - - Added Interface DefenderForDatabasesGcpOfferingArcAutoProvisioningConfiguration - - Added Interface DefenderForDatabasesGcpOfferingDefenderForDatabasesArcAutoProvisioning - - Added Interface DefenderForServersAwsOffering - - Added Interface DefenderForServersAwsOfferingMdeAutoProvisioning - - Added Interface DefenderForServersAwsOfferingSubPlan - - Added Interface DefenderForServersAwsOfferingVaAutoProvisioning - - Added Interface DefenderForServersAwsOfferingVaAutoProvisioningConfiguration - - Added Interface DefenderForServersAwsOfferingVmScanners - - Added Interface DefenderForServersAwsOfferingVmScannersConfiguration - - Added Interface DefenderForServersGcpOffering - - Added Interface DefenderForServersGcpOfferingArcAutoProvisioning - - Added Interface DefenderForServersGcpOfferingArcAutoProvisioningConfiguration - - Added Interface DefenderForServersGcpOfferingDefenderForServers - - Added Interface DefenderForServersGcpOfferingMdeAutoProvisioning - - Added Interface DefenderForServersGcpOfferingSubPlan - - Added Interface DefenderForServersGcpOfferingVaAutoProvisioning - - Added Interface DefenderForServersGcpOfferingVaAutoProvisioningConfiguration - - Added Interface DenylistCustomAlertRule - - Added Interface DeviceSecurityGroup - - Added Interface DirectMethodInvokesNotInAllowedRange - - Added Interface DiscoveredSecuritySolution - - Added Interface EnvironmentData - - Added Interface ExecuteGovernanceRuleParams - - Added Interface ExecuteRuleStatus - - Added Interface ExternalSecuritySolution - - Added Interface FailedLocalLoginsNotInAllowedRange - - Added Interface FileUploadsNotInAllowedRange - - Added Interface GcpCredentialsDetailsProperties - - Added Interface GcpOrganizationalData - - Added Interface GcpOrganizationalDataMember - - Added Interface GcpOrganizationalDataOrganization - - Added Interface GcpProjectDetails - - Added Interface GcpProjectEnvironmentData - - Added Interface GithubScopeEnvironmentData - - Added Interface GovernanceAssignment - - Added Interface GovernanceAssignmentAdditionalData - - Added Interface GovernanceAssignmentsCreateOrUpdateOptionalParams - - Added Interface GovernanceAssignmentsDeleteOptionalParams - - Added Interface GovernanceAssignmentsGetOptionalParams - - Added Interface GovernanceAssignmentsList - - Added Interface GovernanceAssignmentsListNextOptionalParams - - Added Interface GovernanceAssignmentsListOptionalParams - - Added Interface GovernanceEmailNotification - - Added Interface GovernanceRule - - Added Interface GovernanceRuleEmailNotification - - Added Interface GovernanceRuleList - - Added Interface GovernanceRuleListNextOptionalParams - - Added Interface GovernanceRuleListOptionalParams - - Added Interface GovernanceRuleOwnerSource - - Added Interface GovernanceRulesCreateOrUpdateOptionalParams - - Added Interface GovernanceRulesDeleteOptionalParams - - Added Interface GovernanceRulesGetOptionalParams - - Added Interface GovernanceRulesRuleIdExecuteSingleSecurityConnectorHeaders - - Added Interface GovernanceRulesRuleIdExecuteSingleSecurityConnectorOptionalParams - - Added Interface GovernanceRulesRuleIdExecuteSingleSubscriptionHeaders - - Added Interface GovernanceRulesRuleIdExecuteSingleSubscriptionOptionalParams - - Added Interface HttpC2DMessagesNotInAllowedRange - - Added Interface HttpC2DRejectedMessagesNotInAllowedRange - - Added Interface HttpD2CMessagesNotInAllowedRange - - Added Interface InformationProtectionAwsOffering - - Added Interface InformationProtectionPolicy - - Added Interface IngestionSetting - - Added Interface IoTSecurityAggregatedAlert - - Added Interface IoTSecurityAggregatedRecommendation - - Added Interface IoTSecuritySolutionAnalyticsModel - - Added Interface IoTSecuritySolutionModel - - Added Interface JitNetworkAccessPolicy - - Added Interface ListCustomAlertRule - - Added Interface LocalUserNotAllowed - - Added Interface LogAnalyticsIdentifier - - Added Interface MdeOnboardingData - - Added Interface MqttC2DMessagesNotInAllowedRange - - Added Interface MqttC2DRejectedMessagesNotInAllowedRange - - Added Interface MqttD2CMessagesNotInAllowedRange - - Added Interface OnPremiseResourceDetails - - Added Interface OnPremiseSqlResourceDetails - - Added Interface Pricing - - Added Interface ProcessNotAllowed - - Added Interface QueuePurgesNotInAllowedRange - - Added Interface RegulatoryComplianceAssessment - - Added Interface RegulatoryComplianceControl - - Added Interface RegulatoryComplianceStandard - - Added Interface RemediationEta - - Added Interface RuleResults - - Added Interface Scan - - Added Interface ScanResult - - Added Interface SecureScoreControlDefinitionItem - - Added Interface SecureScoreControlDetails - - Added Interface SecureScoreItem - - Added Interface SecurityAssessment - - Added Interface SecurityAssessmentMetadata - - Added Interface SecurityAssessmentMetadataPropertiesResponse - - Added Interface SecurityAssessmentMetadataResponse - - Added Interface SecurityAssessmentProperties - - Added Interface SecurityAssessmentPropertiesResponse - - Added Interface SecurityAssessmentResponse - - Added Interface SecurityConnector - - Added Interface SecurityConnectorApplicationCreateOrUpdateOptionalParams - - Added Interface SecurityConnectorApplicationDeleteOptionalParams - - Added Interface SecurityConnectorApplicationGetOptionalParams - - Added Interface SecurityConnectorApplicationsListNextOptionalParams - - Added Interface SecurityConnectorApplicationsListOptionalParams - - Added Interface SecurityConnectorGovernanceRuleListNextOptionalParams - - Added Interface SecurityConnectorGovernanceRuleListOptionalParams - - Added Interface SecurityConnectorGovernanceRulesCreateOrUpdateOptionalParams - - Added Interface SecurityConnectorGovernanceRulesDeleteOptionalParams - - Added Interface SecurityConnectorGovernanceRulesExecuteStatusGetHeaders - - Added Interface SecurityConnectorGovernanceRulesExecuteStatusGetOptionalParams - - Added Interface SecurityConnectorGovernanceRulesGetOptionalParams - - Added Interface SecurityContact - - Added Interface SecurityContactPropertiesAlertNotifications - - Added Interface SecurityContactPropertiesNotificationsByRole - - Added Interface SecuritySolution - - Added Interface SecuritySolutionsReferenceData - - Added Interface SecuritySubAssessment - - Added Interface SecurityTask - - Added Interface ServerVulnerabilityAssessment - - Added Interface ServerVulnerabilityProperties - - Added Interface Setting - - Added Interface Software - - Added Interface SqlServerVulnerabilityProperties - - Added Interface SubscriptionGovernanceRulesExecuteStatusGetHeaders - - Added Interface SubscriptionGovernanceRulesExecuteStatusGetOptionalParams - - Added Interface ThresholdCustomAlertRule - - Added Interface TimeWindowCustomAlertRule - - Added Interface TopologyResource - - Added Interface TrackedResource - - Added Interface TwinUpdatesNotInAllowedRange - - Added Interface UnauthorizedOperationsNotInAllowedRange - - Added Interface UpdateIotSecuritySolutionData - - Added Interface WorkspaceSetting - - Added Type Alias ApplicationConditionOperator - - Added Type Alias ApplicationCreateOrUpdateResponse - - Added Type Alias ApplicationGetResponse - - Added Type Alias ApplicationsListNextResponse - - Added Type Alias ApplicationsListResponse - - Added Type Alias ApplicationSourceResourceType - - Added Type Alias AwsOrganizationalDataUnion - - Added Type Alias EnvironmentDataUnion - - Added Type Alias EnvironmentType - - Added Type Alias GcpOrganizationalDataUnion - - Added Type Alias GovernanceAssignmentsCreateOrUpdateResponse - - Added Type Alias GovernanceAssignmentsGetResponse - - Added Type Alias GovernanceAssignmentsListNextResponse - - Added Type Alias GovernanceAssignmentsListResponse - - Added Type Alias GovernanceRuleConditionOperator - - Added Type Alias GovernanceRuleListNextResponse - - Added Type Alias GovernanceRuleListResponse - - Added Type Alias GovernanceRuleOwnerSourceType - - Added Type Alias GovernanceRulesCreateOrUpdateResponse - - Added Type Alias GovernanceRulesGetResponse - - Added Type Alias GovernanceRuleSourceResourceType - - Added Type Alias GovernanceRulesRuleIdExecuteSingleSecurityConnectorResponse - - Added Type Alias GovernanceRulesRuleIdExecuteSingleSubscriptionResponse - - Added Type Alias GovernanceRuleType - - Added Type Alias MinimalSeverity - - Added Type Alias Roles - - Added Type Alias ScanningMode - - Added Type Alias SecurityConnectorApplicationCreateOrUpdateResponse - - Added Type Alias SecurityConnectorApplicationGetResponse - - Added Type Alias SecurityConnectorApplicationsListNextResponse - - Added Type Alias SecurityConnectorApplicationsListResponse - - Added Type Alias SecurityConnectorGovernanceRuleListNextResponse - - Added Type Alias SecurityConnectorGovernanceRuleListResponse - - Added Type Alias SecurityConnectorGovernanceRulesCreateOrUpdateResponse - - Added Type Alias SecurityConnectorGovernanceRulesExecuteStatusGetResponse - - Added Type Alias SecurityConnectorGovernanceRulesGetResponse - - Added Type Alias SubPlan - - Added Type Alias SubscriptionGovernanceRulesExecuteStatusGetResponse - - Added Type Alias Type - - Interface AlertsSimulateOptionalParams has a new optional parameter resumeFrom - - Interface AlertsSimulateOptionalParams has a new optional parameter updateIntervalInMs - - Interface DefenderForServersAwsOfferingArcAutoProvisioning has a new optional parameter cloudRoleArn - - Class SecurityCenter has a new parameter applicationOperations - - Class SecurityCenter has a new parameter applications - - Class SecurityCenter has a new parameter governanceAssignments - - Class SecurityCenter has a new parameter governanceRuleOperations - - Class SecurityCenter has a new parameter governanceRules - - Class SecurityCenter has a new parameter securityConnectorApplication - - Class SecurityCenter has a new parameter securityConnectorApplications - - Class SecurityCenter has a new parameter securityConnectorGovernanceRule - - Class SecurityCenter has a new parameter securityConnectorGovernanceRules - - Class SecurityCenter has a new parameter securityConnectorGovernanceRulesExecuteStatus - - Class SecurityCenter has a new parameter subscriptionGovernanceRulesExecuteStatus - - Added Enum KnownApplicationConditionOperator - - Added Enum KnownApplicationSourceResourceType - - Added Enum KnownEnvironmentType - - Added Enum KnownGovernanceRuleConditionOperator - - Added Enum KnownGovernanceRuleOwnerSourceType - - Added Enum KnownGovernanceRuleSourceResourceType - - Added Enum KnownGovernanceRuleType - - Added Enum KnownMinimalSeverity - - Added Enum KnownRoles - - Added Enum KnownScanningMode - - Added Enum KnownSubPlan - - Added Enum KnownType - - Enum KnownAlertStatus has a new value InProgress - - Enum KnownBundleType has a new value CosmosDbs - - Enum KnownCloudName has a new value AzureDevOps - - Enum KnownCloudName has a new value Github - - Enum KnownOfferingType has a new value CspmMonitorAzureDevOps - - Enum KnownOfferingType has a new value CspmMonitorGcp - - Enum KnownOfferingType has a new value CspmMonitorGithub - - Enum KnownOfferingType has a new value DefenderForContainersGcp - - Enum KnownOfferingType has a new value DefenderForDatabasesAws - - Enum KnownOfferingType has a new value DefenderForDatabasesGcp - - Enum KnownOfferingType has a new value DefenderForServersGcp - - Enum KnownSettingName has a new value WdatpUnifiedSolution - -**Breaking Changes** - - - Removed operation Alerts.simulate - - Removed operation SecurityContacts.update - - Removed Enum KnownAlertNotifications - - Removed Enum KnownAlertsToAdmins - - -## 5.0.0 (2022-03-30) - -**Features** +### Features Added - Added operation Alerts.simulate - Added Interface InformationProtectionAwsOfferingInformationProtection @@ -2022,7 +683,7 @@ Compared with version 5.0.0 - Enum KnownOfferingType has a new value InformationProtectionAws - Enum KnownSupportedCloudEnum has a new value GCP -**Breaking Changes** +### Breaking Changes - Removed operation Alerts.beginSimulate - Removed operation Alerts.beginSimulateAndWait diff --git a/sdk/security/arm-security/_meta.json b/sdk/security/arm-security/_meta.json index 922a39a7437f..0dc8c1bebb2b 100644 --- a/sdk/security/arm-security/_meta.json +++ b/sdk/security/arm-security/_meta.json @@ -1,8 +1,8 @@ { - "commit": "c43d0d41a6edc75a2cf452e33ea9344863db3c9e", + "commit": "95df69d1aa07d711c6e6dd74ecb7bbfadd45e481", "readme": "specification/security/resource-manager/readme.md", - "autorest_command": "autorest --version=3.9.7 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=D:\\Git\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\security\\resource-manager\\readme.md --use=@autorest/typescript@6.0.18 --generate-sample=true", + "autorest_command": "autorest --version=3.9.7 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=/mnt/vss/_work/1/s/azure-sdk-for-js ../azure-rest-api-specs/specification/security/resource-manager/readme.md --use=@autorest/typescript@^6.0.12", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "release_tool": "@azure-tools/js-sdk-release-tools@2.7.4", - "use": "@autorest/typescript@6.0.18" + "release_tool": "@azure-tools/js-sdk-release-tools@2.7.11", + "use": "@autorest/typescript@^6.0.12" } \ No newline at end of file diff --git a/sdk/security/arm-security/package.json b/sdk/security/arm-security/package.json index 4d02d376415c..bf812f16a8b7 100644 --- a/sdk/security/arm-security/package.json +++ b/sdk/security/arm-security/package.json @@ -9,7 +9,7 @@ }, "dependencies": { "@azure/core-lro": "^2.5.4", - "@azure/abort-controller": "^1.0.0", + "@azure/abort-controller": "^2.1.2", "@azure/core-paging": "^1.2.0", "@azure/core-client": "^1.7.0", "@azure/core-auth": "^1.6.0", @@ -32,15 +32,15 @@ "mkdirp": "^3.0.1", "typescript": "~5.5.3", "uglify-js": "^3.4.9", - "rimraf": "^5.0.5", + "rimraf": "^5.0.0", "dotenv": "^16.0.0", "@azure/dev-tool": "^1.0.0", - "@azure/identity": "^4.0.1", + "@azure/identity": "^4.2.1", "@azure-tools/test-recorder": "^3.0.0", "@azure-tools/test-credential": "^1.1.0", "mocha": "^10.0.0", "@types/mocha": "^10.0.0", - "esm": "^3.2.18", + "tsx": "^4.7.1", "@types/chai": "^4.2.8", "chai": "^4.2.0", "cross-env": "^7.0.2", @@ -78,7 +78,6 @@ "pack": "npm pack 2>&1", "extract-api": "dev-tool run extract-api", "lint": "echo skipped", - "audit": "echo skipped", "clean": "rimraf --glob dist dist-browser dist-esm test-dist temp types *.tgz *.log", "build:node": "echo skipped", "build:browser": "echo skipped", @@ -107,13 +106,5 @@ ] }, "autoPublish": true, - "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/security/arm-security", - "//sampleConfiguration": { - "productName": "", - "productSlugs": [ - "azure" - ], - "disableDocsMs": true, - "apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-security?view=azure-node-preview" - } -} + "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/security/arm-security" +} \ No newline at end of file diff --git a/sdk/security/arm-security/review/arm-security.api.md b/sdk/security/arm-security/review/arm-security.api.md index d551e8a73af2..e045339fb308 100644 --- a/sdk/security/arm-security/review/arm-security.api.md +++ b/sdk/security/arm-security/review/arm-security.api.md @@ -46,124 +46,6 @@ export interface ActiveConnectionsNotInAllowedRange extends TimeWindowCustomAler ruleType: "ActiveConnectionsNotInAllowedRange"; } -// @public (undocumented) -export interface AdaptiveApplicationControlGroup extends Resource, Location_2 { - readonly configurationStatus?: ConfigurationStatus; - enforcementMode?: EnforcementMode; - readonly issues?: AdaptiveApplicationControlIssueSummary[]; - // (undocumented) - pathRecommendations?: PathRecommendation[]; - protectionMode?: ProtectionMode; - readonly recommendationStatus?: RecommendationStatus; - readonly sourceSystem?: SourceSystem; - // (undocumented) - vmRecommendations?: VmRecommendation[]; -} - -// @public -export interface AdaptiveApplicationControlGroups { - // (undocumented) - value?: AdaptiveApplicationControlGroup[]; -} - -// @public -export type AdaptiveApplicationControlIssue = string; - -// @public -export interface AdaptiveApplicationControlIssueSummary { - issue?: AdaptiveApplicationControlIssue; - numberOfVms?: number; -} - -// @public -export interface AdaptiveApplicationControls { - delete(ascLocation: string, groupName: string, options?: AdaptiveApplicationControlsDeleteOptionalParams): Promise; - get(ascLocation: string, groupName: string, options?: AdaptiveApplicationControlsGetOptionalParams): Promise; - list(options?: AdaptiveApplicationControlsListOptionalParams): Promise; - put(ascLocation: string, groupName: string, body: AdaptiveApplicationControlGroup, options?: AdaptiveApplicationControlsPutOptionalParams): Promise; -} - -// @public -export interface AdaptiveApplicationControlsDeleteOptionalParams extends coreClient.OperationOptions { -} - -// @public -export interface AdaptiveApplicationControlsGetOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type AdaptiveApplicationControlsGetResponse = AdaptiveApplicationControlGroup; - -// @public -export interface AdaptiveApplicationControlsListOptionalParams extends coreClient.OperationOptions { - includePathRecommendations?: boolean; - summary?: boolean; -} - -// @public -export type AdaptiveApplicationControlsListResponse = AdaptiveApplicationControlGroups; - -// @public -export interface AdaptiveApplicationControlsPutOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type AdaptiveApplicationControlsPutResponse = AdaptiveApplicationControlGroup; - -// @public -export interface AdaptiveNetworkHardening extends Resource { - effectiveNetworkSecurityGroups?: EffectiveNetworkSecurityGroups[]; - rules?: Rule[]; - rulesCalculationTime?: Date; -} - -// @public (undocumented) -export interface AdaptiveNetworkHardeningEnforceRequest { - networkSecurityGroups: string[]; - rules: Rule[]; -} - -// @public -export interface AdaptiveNetworkHardenings { - beginEnforce(resourceGroupName: string, resourceNamespace: string, resourceType: string, resourceName: string, adaptiveNetworkHardeningResourceName: string, body: AdaptiveNetworkHardeningEnforceRequest, options?: AdaptiveNetworkHardeningsEnforceOptionalParams): Promise, void>>; - beginEnforceAndWait(resourceGroupName: string, resourceNamespace: string, resourceType: string, resourceName: string, adaptiveNetworkHardeningResourceName: string, body: AdaptiveNetworkHardeningEnforceRequest, options?: AdaptiveNetworkHardeningsEnforceOptionalParams): Promise; - get(resourceGroupName: string, resourceNamespace: string, resourceType: string, resourceName: string, adaptiveNetworkHardeningResourceName: string, options?: AdaptiveNetworkHardeningsGetOptionalParams): Promise; - listByExtendedResource(resourceGroupName: string, resourceNamespace: string, resourceType: string, resourceName: string, options?: AdaptiveNetworkHardeningsListByExtendedResourceOptionalParams): PagedAsyncIterableIterator; -} - -// @public -export interface AdaptiveNetworkHardeningsEnforceOptionalParams extends coreClient.OperationOptions { - resumeFrom?: string; - updateIntervalInMs?: number; -} - -// @public -export interface AdaptiveNetworkHardeningsGetOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type AdaptiveNetworkHardeningsGetResponse = AdaptiveNetworkHardening; - -// @public -export interface AdaptiveNetworkHardeningsList { - nextLink?: string; - value?: AdaptiveNetworkHardening[]; -} - -// @public -export interface AdaptiveNetworkHardeningsListByExtendedResourceNextOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type AdaptiveNetworkHardeningsListByExtendedResourceNextResponse = AdaptiveNetworkHardeningsList; - -// @public -export interface AdaptiveNetworkHardeningsListByExtendedResourceOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type AdaptiveNetworkHardeningsListByExtendedResourceResponse = AdaptiveNetworkHardeningsList; - // @public export interface AdditionalData { assessedResourceType: "SqlServerVulnerability" | "ContainerRegistryVulnerability" | "ServerVulnerabilityAssessment"; @@ -733,6 +615,27 @@ export type ApplicationsListResponse = ApplicationsList; // @public export type ApplicationSourceResourceType = string; +// @public +export interface ArcAutoProvisioning { + configuration?: ArcAutoProvisioningConfiguration; + enabled?: boolean; +} + +// @public +export interface ArcAutoProvisioningAws extends ArcAutoProvisioning { + cloudRoleArn?: string; +} + +// @public +export interface ArcAutoProvisioningConfiguration { + privateLinkScope?: string; + proxy?: string; +} + +// @public +export interface ArcAutoProvisioningGcp extends ArcAutoProvisioning { +} + // @public export interface AscLocation extends Resource { properties?: Record; @@ -1186,7 +1089,7 @@ export interface AzureDevOpsOrgListResponse { export interface AzureDevOpsOrgProperties { actionableRemediation?: ActionableRemediation; onboardingState?: OnboardingState; - provisioningState?: DevOpsProvisioningState; + readonly provisioningState?: DevOpsProvisioningState; readonly provisioningStatusMessage?: string; readonly provisioningStatusUpdateTimeUtc?: Date; } @@ -1274,7 +1177,7 @@ export interface AzureDevOpsProjectProperties { onboardingState?: OnboardingState; parentOrgName?: string; readonly projectId?: string; - provisioningState?: DevOpsProvisioningState; + readonly provisioningState?: DevOpsProvisioningState; readonly provisioningStatusMessage?: string; readonly provisioningStatusUpdateTimeUtc?: Date; } @@ -1372,7 +1275,7 @@ export interface AzureDevOpsRepositoryProperties { onboardingState?: OnboardingState; parentOrgName?: string; parentProjectName?: string; - provisioningState?: DevOpsProvisioningState; + readonly provisioningState?: DevOpsProvisioningState; readonly provisioningStatusMessage?: string; readonly provisioningStatusUpdateTimeUtc?: Date; readonly repoId?: string; @@ -1519,11 +1422,11 @@ export type CloudName = string; // @public export interface CloudOffering { readonly description?: string; - offeringType: "CspmMonitorAws" | "DefenderForContainersAws" | "DefenderForServersAws" | "DefenderForDatabasesAws" | "InformationProtectionAws" | "CspmMonitorGcp" | "DefenderForServersGcp" | "DefenderForDatabasesGcp" | "DefenderForContainersGcp" | "CspmMonitorGithub" | "CspmMonitorAzureDevOps" | "DefenderCspmAws" | "DefenderCspmGcp" | "DefenderForDevOpsGithub" | "DefenderForDevOpsAzureDevOps" | "CspmMonitorGitLab" | "DefenderForDevOpsGitLab"; + offeringType: "CspmMonitorAws" | "DefenderForContainersAws" | "DefenderForServersAws" | "DefenderForDatabasesAws" | "CspmMonitorGcp" | "DefenderForServersGcp" | "DefenderForDatabasesGcp" | "DefenderForContainersGcp" | "CspmMonitorGithub" | "CspmMonitorAzureDevOps" | "DefenderCspmAws" | "DefenderCspmGcp" | "CspmMonitorGitLab"; } // @public (undocumented) -export type CloudOfferingUnion = CloudOffering | CspmMonitorAwsOffering | DefenderForContainersAwsOffering | DefenderForServersAwsOffering | DefenderFoDatabasesAwsOffering | InformationProtectionAwsOffering | CspmMonitorGcpOffering | DefenderForServersGcpOffering | DefenderForDatabasesGcpOffering | DefenderForContainersGcpOffering | CspmMonitorGithubOffering | CspmMonitorAzureDevOpsOffering | DefenderCspmAwsOffering | DefenderCspmGcpOffering | DefenderForDevOpsGithubOffering | DefenderForDevOpsAzureDevOpsOffering | CspmMonitorGitLabOffering | DefenderForDevOpsGitLabOffering; +export type CloudOfferingUnion = CloudOffering | CspmMonitorAwsOffering | DefenderForContainersAwsOffering | DefenderForServersAwsOffering | DefenderFoDatabasesAwsOffering | CspmMonitorGcpOffering | DefenderForServersGcpOffering | DefenderForDatabasesGcpOffering | DefenderForContainersGcpOffering | CspmMonitorGithubOffering | CspmMonitorAzureDevOpsOffering | DefenderCspmAwsOffering | DefenderCspmGcpOffering | CspmMonitorGitLabOffering; // @public export type Code = string; @@ -1619,9 +1522,6 @@ export interface Condition { value?: string; } -// @public -export type ConfigurationStatus = string; - // @public export interface ConnectableResource { readonly id?: string; @@ -2005,18 +1905,7 @@ export interface DefenderCspmAwsOfferingMdcContainersImageAssessment { } // @public -export interface DefenderCspmAwsOfferingVmScanners { - configuration?: DefenderCspmAwsOfferingVmScannersConfiguration; - enabled?: boolean; -} - -// @public -export interface DefenderCspmAwsOfferingVmScannersConfiguration { - cloudRoleArn?: string; - exclusionTags?: { - [propertyName: string]: string; - }; - scanningMode?: ScanningMode; +export interface DefenderCspmAwsOfferingVmScanners extends VmScannersAws { } // @public @@ -2058,17 +1947,7 @@ export interface DefenderCspmGcpOfferingMdcContainersImageAssessment { } // @public -export interface DefenderCspmGcpOfferingVmScanners { - configuration?: DefenderCspmGcpOfferingVmScannersConfiguration; - enabled?: boolean; -} - -// @public -export interface DefenderCspmGcpOfferingVmScannersConfiguration { - exclusionTags?: { - [propertyName: string]: string; - }; - scanningMode?: ScanningMode; +export interface DefenderCspmGcpOfferingVmScanners extends VmScannersGcp { } // @public @@ -2080,16 +1959,7 @@ export interface DefenderFoDatabasesAwsOffering extends CloudOffering { } // @public -export interface DefenderFoDatabasesAwsOfferingArcAutoProvisioning { - cloudRoleArn?: string; - configuration?: DefenderFoDatabasesAwsOfferingArcAutoProvisioningConfiguration; - enabled?: boolean; -} - -// @public -export interface DefenderFoDatabasesAwsOfferingArcAutoProvisioningConfiguration { - privateLinkScope?: string; - proxy?: string; +export interface DefenderFoDatabasesAwsOfferingArcAutoProvisioning extends ArcAutoProvisioningAws { } // @public @@ -2106,19 +1976,19 @@ export interface DefenderFoDatabasesAwsOfferingRds { // @public export interface DefenderForContainersAwsOffering extends CloudOffering { - autoProvisioning?: boolean; cloudWatchToKinesis?: DefenderForContainersAwsOfferingCloudWatchToKinesis; - containerVulnerabilityAssessment?: DefenderForContainersAwsOfferingContainerVulnerabilityAssessment; - containerVulnerabilityAssessmentTask?: DefenderForContainersAwsOfferingContainerVulnerabilityAssessmentTask; - enableContainerVulnerabilityAssessment?: boolean; + dataCollectionExternalId?: string; + enableAuditLogsAutoProvisioning?: boolean; + enableDefenderAgentAutoProvisioning?: boolean; + enablePolicyAgentAutoProvisioning?: boolean; kinesisToS3?: DefenderForContainersAwsOfferingKinesisToS3; kubeAuditRetentionTime?: number; - kubernetesScubaReader?: DefenderForContainersAwsOfferingKubernetesScubaReader; + kubernetesDataCollection?: DefenderForContainersAwsOfferingKubernetesDataCollection; kubernetesService?: DefenderForContainersAwsOfferingKubernetesService; mdcContainersAgentlessDiscoveryK8S?: DefenderForContainersAwsOfferingMdcContainersAgentlessDiscoveryK8S; mdcContainersImageAssessment?: DefenderForContainersAwsOfferingMdcContainersImageAssessment; offeringType: "DefenderForContainersAws"; - scubaExternalId?: string; + vmScanners?: DefenderForContainersAwsOfferingVmScanners; } // @public @@ -2126,23 +1996,13 @@ export interface DefenderForContainersAwsOfferingCloudWatchToKinesis { cloudRoleArn?: string; } -// @public -export interface DefenderForContainersAwsOfferingContainerVulnerabilityAssessment { - cloudRoleArn?: string; -} - -// @public -export interface DefenderForContainersAwsOfferingContainerVulnerabilityAssessmentTask { - cloudRoleArn?: string; -} - // @public export interface DefenderForContainersAwsOfferingKinesisToS3 { cloudRoleArn?: string; } // @public -export interface DefenderForContainersAwsOfferingKubernetesScubaReader { +export interface DefenderForContainersAwsOfferingKubernetesDataCollection { cloudRoleArn?: string; } @@ -2163,16 +2023,21 @@ export interface DefenderForContainersAwsOfferingMdcContainersImageAssessment { enabled?: boolean; } +// @public +export interface DefenderForContainersAwsOfferingVmScanners extends VmScannersAws { +} + // @public export interface DefenderForContainersGcpOffering extends CloudOffering { - auditLogsAutoProvisioningFlag?: boolean; dataPipelineNativeCloudConnection?: DefenderForContainersGcpOfferingDataPipelineNativeCloudConnection; - defenderAgentAutoProvisioningFlag?: boolean; + enableAuditLogsAutoProvisioning?: boolean; + enableDefenderAgentAutoProvisioning?: boolean; + enablePolicyAgentAutoProvisioning?: boolean; mdcContainersAgentlessDiscoveryK8S?: DefenderForContainersGcpOfferingMdcContainersAgentlessDiscoveryK8S; mdcContainersImageAssessment?: DefenderForContainersGcpOfferingMdcContainersImageAssessment; nativeCloudConnection?: DefenderForContainersGcpOfferingNativeCloudConnection; offeringType: "DefenderForContainersGcp"; - policyAgentAutoProvisioningFlag?: boolean; + vmScanners?: DefenderForContainersGcpOfferingVmScanners; } // @public @@ -2201,6 +2066,10 @@ export interface DefenderForContainersGcpOfferingNativeCloudConnection { workloadIdentityProviderId?: string; } +// @public +export interface DefenderForContainersGcpOfferingVmScanners extends VmScannersGcp { +} + // @public export interface DefenderForDatabasesGcpOffering extends CloudOffering { arcAutoProvisioning?: DefenderForDatabasesGcpOfferingArcAutoProvisioning; @@ -2209,15 +2078,7 @@ export interface DefenderForDatabasesGcpOffering extends CloudOffering { } // @public -export interface DefenderForDatabasesGcpOfferingArcAutoProvisioning { - configuration?: DefenderForDatabasesGcpOfferingArcAutoProvisioningConfiguration; - enabled?: boolean; -} - -// @public -export interface DefenderForDatabasesGcpOfferingArcAutoProvisioningConfiguration { - privateLinkScope?: string; - proxy?: string; +export interface DefenderForDatabasesGcpOfferingArcAutoProvisioning extends ArcAutoProvisioningGcp { } // @public @@ -2226,21 +2087,6 @@ export interface DefenderForDatabasesGcpOfferingDefenderForDatabasesArcAutoProvi workloadIdentityProviderId?: string; } -// @public -export interface DefenderForDevOpsAzureDevOpsOffering extends CloudOffering { - offeringType: "DefenderForDevOpsAzureDevOps"; -} - -// @public -export interface DefenderForDevOpsGithubOffering extends CloudOffering { - offeringType: "DefenderForDevOpsGithub"; -} - -// @public -export interface DefenderForDevOpsGitLabOffering extends CloudOffering { - offeringType: "DefenderForDevOpsGitLab"; -} - // @public export interface DefenderForServersAwsOffering extends CloudOffering { arcAutoProvisioning?: DefenderForServersAwsOfferingArcAutoProvisioning; @@ -2253,16 +2099,7 @@ export interface DefenderForServersAwsOffering extends CloudOffering { } // @public -export interface DefenderForServersAwsOfferingArcAutoProvisioning { - cloudRoleArn?: string; - configuration?: DefenderForServersAwsOfferingArcAutoProvisioningConfiguration; - enabled?: boolean; -} - -// @public -export interface DefenderForServersAwsOfferingArcAutoProvisioningConfiguration { - privateLinkScope?: string; - proxy?: string; +export interface DefenderForServersAwsOfferingArcAutoProvisioning extends ArcAutoProvisioningAws { } // @public @@ -2293,18 +2130,7 @@ export interface DefenderForServersAwsOfferingVaAutoProvisioningConfiguration { } // @public -export interface DefenderForServersAwsOfferingVmScanners { - configuration?: DefenderForServersAwsOfferingVmScannersConfiguration; - enabled?: boolean; -} - -// @public -export interface DefenderForServersAwsOfferingVmScannersConfiguration { - cloudRoleArn?: string; - exclusionTags?: { - [propertyName: string]: string; - }; - scanningMode?: ScanningMode; +export interface DefenderForServersAwsOfferingVmScanners extends VmScannersAws { } // @public @@ -2319,15 +2145,7 @@ export interface DefenderForServersGcpOffering extends CloudOffering { } // @public -export interface DefenderForServersGcpOfferingArcAutoProvisioning { - configuration?: DefenderForServersGcpOfferingArcAutoProvisioningConfiguration; - enabled?: boolean; -} - -// @public -export interface DefenderForServersGcpOfferingArcAutoProvisioningConfiguration { - privateLinkScope?: string; - proxy?: string; +export interface DefenderForServersGcpOfferingArcAutoProvisioning extends ArcAutoProvisioningGcp { } // @public @@ -2359,17 +2177,7 @@ export interface DefenderForServersGcpOfferingVaAutoProvisioningConfiguration { } // @public -export interface DefenderForServersGcpOfferingVmScanners { - configuration?: DefenderForServersGcpOfferingVmScannersConfiguration; - enabled?: boolean; -} - -// @public -export interface DefenderForServersGcpOfferingVmScannersConfiguration { - exclusionTags?: { - [propertyName: string]: string; - }; - scanningMode?: ScanningMode; +export interface DefenderForServersGcpOfferingVmScanners extends VmScannersGcp { } // @public @@ -2394,14 +2202,15 @@ export type DefenderForStorageGetResponse = DefenderForStorageSetting; // @public export interface DefenderForStorageSetting extends Resource { - capGBPerMonth?: number; - isEnabledPropertiesIsEnabled?: boolean; - isEnabledPropertiesMalwareScanningOnUploadIsEnabled?: boolean; - isEnabledPropertiesSensitiveDataDiscoveryIsEnabled?: boolean; - readonly operationStatusPropertiesMalwareScanningOperationStatus?: OperationStatus; - readonly operationStatusPropertiesSensitiveDataDiscoveryOperationStatus?: OperationStatus; + properties?: DefenderForStorageSettingProperties; +} + +// @public +export interface DefenderForStorageSettingProperties { + isEnabled?: boolean; + malwareScanning?: MalwareScanningProperties; overrideSubscriptionLevelSettings?: boolean; - scanResultsEventGridTopicResourceId?: string; + sensitiveDataDiscovery?: SensitiveDataDiscoveryProperties; } // @public @@ -2410,6 +2219,9 @@ export interface DenylistCustomAlertRule extends ListCustomAlertRule { ruleType: "DenylistCustomAlertRule"; } +// @public +export type DescendantBehavior = string; + // @public export type DesiredOnboardingState = string; @@ -2467,6 +2279,12 @@ export interface DeviceSecurityGroupsListOptionalParams extends coreClient.Opera // @public export type DeviceSecurityGroupsListResponse = DeviceSecurityGroupList; +// @public +export interface DevOpsCapability { + readonly name?: string; + readonly value?: string; +} + // @public export interface DevOpsConfiguration extends ProxyResource { properties?: DevOpsConfigurationProperties; @@ -2483,7 +2301,8 @@ export interface DevOpsConfigurationListResponse { export interface DevOpsConfigurationProperties { authorization?: Authorization; autoDiscovery?: AutoDiscovery; - provisioningState?: DevOpsProvisioningState; + readonly capabilities?: DevOpsCapability[]; + readonly provisioningState?: DevOpsProvisioningState; readonly provisioningStatusMessage?: string; readonly provisioningStatusUpdateTimeUtc?: Date; topLevelInventoryList?: string[]; @@ -2559,10 +2378,156 @@ export interface DevOpsOperationResultsGetOptionalParams extends coreClient.Oper export type DevOpsOperationResultsGetResponse = OperationStatusResult; // @public -export type DevOpsProvisioningState = string; +export interface DevOpsPolicies { + get(resourceGroupName: string, securityConnectorName: string, policyName: string, options?: DevOpsPoliciesGetOptionalParams): Promise; + list(resourceGroupName: string, securityConnectorName: string, options?: DevOpsPoliciesListOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface DevOpsPoliciesGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type DevOpsPoliciesGetResponse = DevOpsPolicy; + +// @public +export interface DevOpsPoliciesListNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type DevOpsPoliciesListNextResponse = DevOpsPolicyListResponse; + +// @public +export interface DevOpsPoliciesListOptionalParams extends coreClient.OperationOptions { + devOpsPolicyType?: string; +} + +// @public +export type DevOpsPoliciesListResponse = DevOpsPolicyListResponse; // @public -export type Direction = string; +export interface DevOpsPolicy extends ProxyResource { + properties?: DevOpsPolicyProperties; + readonly systemData?: SystemData; +} + +// @public +export interface DevOpsPolicyAssignment extends ProxyResource { + properties?: DevOpsPolicyAssignmentProperties; + readonly systemData?: SystemData; +} + +// @public +export interface DevOpsPolicyAssignmentListResponse { + nextLink?: string; + value?: DevOpsPolicyAssignment[]; +} + +// @public +export interface DevOpsPolicyAssignmentProperties { + assignedAt?: Date; + descendantBehavior?: DescendantBehavior; + policy?: DevOpsPolicyDescriptor; + readonly provisioningState?: DevOpsProvisioningState; + readonly provisioningStatusMessage?: string; + readonly provisioningStatusUpdateTimeUtc?: Date; + resourceId?: string; +} + +// @public +export interface DevOpsPolicyAssignments { + beginCreateOrUpdate(resourceGroupName: string, securityConnectorName: string, policyAssignmentId: string, devOpsPolicyAssignment: DevOpsPolicyAssignment, options?: DevOpsPolicyAssignmentsCreateOrUpdateOptionalParams): Promise, DevOpsPolicyAssignmentsCreateOrUpdateResponse>>; + beginCreateOrUpdateAndWait(resourceGroupName: string, securityConnectorName: string, policyAssignmentId: string, devOpsPolicyAssignment: DevOpsPolicyAssignment, options?: DevOpsPolicyAssignmentsCreateOrUpdateOptionalParams): Promise; + beginDelete(resourceGroupName: string, securityConnectorName: string, policyAssignmentId: string, options?: DevOpsPolicyAssignmentsDeleteOptionalParams): Promise, void>>; + beginDeleteAndWait(resourceGroupName: string, securityConnectorName: string, policyAssignmentId: string, options?: DevOpsPolicyAssignmentsDeleteOptionalParams): Promise; + beginUpdate(resourceGroupName: string, securityConnectorName: string, policyAssignmentId: string, devOpsPolicyAssignment: DevOpsPolicyAssignment, options?: DevOpsPolicyAssignmentsUpdateOptionalParams): Promise, DevOpsPolicyAssignmentsUpdateResponse>>; + beginUpdateAndWait(resourceGroupName: string, securityConnectorName: string, policyAssignmentId: string, devOpsPolicyAssignment: DevOpsPolicyAssignment, options?: DevOpsPolicyAssignmentsUpdateOptionalParams): Promise; + get(resourceGroupName: string, securityConnectorName: string, policyAssignmentId: string, options?: DevOpsPolicyAssignmentsGetOptionalParams): Promise; + list(resourceGroupName: string, securityConnectorName: string, options?: DevOpsPolicyAssignmentsListOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface DevOpsPolicyAssignmentsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type DevOpsPolicyAssignmentsCreateOrUpdateResponse = DevOpsPolicyAssignment; + +// @public +export interface DevOpsPolicyAssignmentsDeleteOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export interface DevOpsPolicyAssignmentsGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type DevOpsPolicyAssignmentsGetResponse = DevOpsPolicyAssignment; + +// @public +export interface DevOpsPolicyAssignmentsListNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type DevOpsPolicyAssignmentsListNextResponse = DevOpsPolicyAssignmentListResponse; + +// @public +export interface DevOpsPolicyAssignmentsListOptionalParams extends coreClient.OperationOptions { + devOpsPolicyType?: string; + resourceId?: string; +} + +// @public +export type DevOpsPolicyAssignmentsListResponse = DevOpsPolicyAssignmentListResponse; + +// @public +export interface DevOpsPolicyAssignmentsUpdateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type DevOpsPolicyAssignmentsUpdateResponse = DevOpsPolicyAssignment; + +// @public +export interface DevOpsPolicyDescriptor { + policyId?: string; + policyName?: string; + policyType?: DevOpsPolicyType; + policyVersion?: string; +} + +// @public +export interface DevOpsPolicyListResponse { + nextLink?: string; + value?: DevOpsPolicy[]; +} + +// @public +export interface DevOpsPolicyProperties { + content?: string; + readonly policyId?: string; + readonly provisioningState?: DevOpsProvisioningState; + readonly provisioningStatusMessage?: string; + readonly provisioningStatusUpdateTimeUtc?: Date; + source?: DevOpsPolicySource; + type?: DevOpsPolicyType; + version?: string; + readonly webUrl?: string; +} + +// @public +export type DevOpsPolicySource = string; + +// @public +export type DevOpsPolicyType = string; + +// @public +export type DevOpsProvisioningState = string; // @public export interface DirectMethodInvokesNotInAllowedRange extends TimeWindowCustomAlertRule { @@ -2626,24 +2591,12 @@ export interface DiscoveredSecuritySolutionsListOptionalParams extends coreClien // @public export type DiscoveredSecuritySolutionsListResponse = DiscoveredSecuritySolutionList; -// @public -export interface EffectiveNetworkSecurityGroups { - networkInterface?: string; - networkSecurityGroups?: string[]; -} - // @public export type EndOfSupportStatus = string; // @public export type Enforce = string; -// @public -export type EnforcementMode = string; - -// @public -export type EnforcementSupport = string; - // @public export interface EnvironmentData { environmentType: "AwsAccount" | "GcpProject" | "GithubScope" | "AzureDevOpsScope" | "GitlabScope"; @@ -2807,9 +2760,6 @@ export interface FailedLocalLoginsNotInAllowedRange extends TimeWindowCustomAler ruleType: "FailedLocalLoginsNotInAllowedRange"; } -// @public -export type FileType = string; - // @public export interface FileUploadsNotInAllowedRange extends TimeWindowCustomAlertRule { ruleType: "FileUploadsNotInAllowedRange"; @@ -2880,13 +2830,6 @@ export interface GetSensitivitySettingsListResponse { value?: GetSensitivitySettingsResponse[]; } -// @public -export type GetSensitivitySettingsOperationResponse = GetSensitivitySettingsResponse; - -// @public -export interface GetSensitivitySettingsOptionalParams extends coreClient.OperationOptions { -} - // @public export interface GetSensitivitySettingsResponse { readonly id?: string; @@ -2936,7 +2879,7 @@ export interface GitHubOwnerProperties { readonly gitHubInternalId?: string; onboardingState?: OnboardingState; readonly ownerUrl?: string; - provisioningState?: DevOpsProvisioningState; + readonly provisioningState?: DevOpsProvisioningState; readonly provisioningStatusMessage?: string; readonly provisioningStatusUpdateTimeUtc?: Date; } @@ -3005,7 +2948,7 @@ export interface GitHubRepositoryListResponse { export interface GitHubRepositoryProperties { onboardingState?: OnboardingState; parentOwnerName?: string; - provisioningState?: DevOpsProvisioningState; + readonly provisioningState?: DevOpsProvisioningState; readonly provisioningStatusMessage?: string; readonly provisioningStatusUpdateTimeUtc?: Date; readonly repoFullName?: string; @@ -3058,7 +3001,7 @@ export interface GitLabGroupProperties { readonly fullyQualifiedFriendlyName?: string; readonly fullyQualifiedName?: string; onboardingState?: OnboardingState; - provisioningState?: DevOpsProvisioningState; + readonly provisioningState?: DevOpsProvisioningState; readonly provisioningStatusMessage?: string; readonly provisioningStatusUpdateTimeUtc?: Date; readonly url?: string; @@ -3117,7 +3060,7 @@ export interface GitLabProjectProperties { readonly fullyQualifiedName?: string; readonly fullyQualifiedParentGroupName?: string; onboardingState?: OnboardingState; - provisioningState?: DevOpsProvisioningState; + readonly provisioningState?: DevOpsProvisioningState; readonly provisioningStatusMessage?: string; readonly provisioningStatusUpdateTimeUtc?: Date; readonly url?: string; @@ -3463,17 +3406,6 @@ export interface Identity { // @public export type ImplementationEffort = string; -// @public -export interface InformationProtectionAwsOffering extends CloudOffering { - informationProtection?: InformationProtectionAwsOfferingInformationProtection; - offeringType: "InformationProtectionAws"; -} - -// @public -export interface InformationProtectionAwsOfferingInformationProtection { - cloudRoleArn?: string; -} - // @public export interface InformationProtectionKeyword { canBeNumeric?: boolean; @@ -4051,16 +3983,6 @@ export enum KnownActionType { Workspace = "Workspace" } -// @public -export enum KnownAdaptiveApplicationControlIssue { - ExecutableViolationsAudited = "ExecutableViolationsAudited", - MsiAndScriptViolationsAudited = "MsiAndScriptViolationsAudited", - MsiAndScriptViolationsBlocked = "MsiAndScriptViolationsBlocked", - RulesViolatedManually = "RulesViolatedManually", - ViolationsAudited = "ViolationsAudited", - ViolationsBlocked = "ViolationsBlocked" -} - // @public export enum KnownAdditionalWorkspaceDataType { Alerts = "Alerts", @@ -4194,15 +4116,6 @@ export enum KnownCode { Succeeded = "Succeeded" } -// @public -export enum KnownConfigurationStatus { - Configured = "Configured", - Failed = "Failed", - InProgress = "InProgress", - NoStatus = "NoStatus", - NotConfigured = "NotConfigured" -} - // @public export enum KnownConnectionType { External = "External", @@ -4228,12 +4141,32 @@ export enum KnownDataSource { TwinData = "TwinData" } +// @public +export enum KnownDescendantBehavior { + FallBack = "FallBack", + Override = "Override", + Unknown = "Unknown" +} + // @public export enum KnownDesiredOnboardingState { Disabled = "Disabled", Enabled = "Enabled" } +// @public +export enum KnownDevOpsPolicySource { + BuiltIn = "BuiltIn", + Unknown = "Unknown", + UserDefined = "UserDefined" +} + +// @public +export enum KnownDevOpsPolicyType { + Pipeline = "Pipeline", + Unknown = "Unknown" +} + // @public export enum KnownDevOpsProvisioningState { Canceled = "Canceled", @@ -4245,12 +4178,6 @@ export enum KnownDevOpsProvisioningState { Succeeded = "Succeeded" } -// @public -export enum KnownDirection { - Inbound = "Inbound", - Outbound = "Outbound" -} - // @public export enum KnownEndOfSupportStatus { NoLongerSupported = "noLongerSupported", @@ -4266,20 +4193,6 @@ export enum KnownEnforce { True = "True" } -// @public -export enum KnownEnforcementMode { - Audit = "Audit", - Enforce = "Enforce", - None = "None" -} - -// @public -export enum KnownEnforcementSupport { - NotSupported = "NotSupported", - Supported = "Supported", - Unknown = "Unknown" -} - // @public export enum KnownEnvironmentType { AwsAccount = "AwsAccount", @@ -4329,16 +4242,6 @@ export enum KnownExternalSecuritySolutionKind { CEF = "CEF" } -// @public -export enum KnownFileType { - Dll = "Dll", - Exe = "Exe", - Executable = "Executable", - Msi = "Msi", - Script = "Script", - Unknown = "Unknown" -} - // @public export enum KnownGovernanceRuleConditionOperator { Equals = "Equals", @@ -4461,12 +4364,8 @@ export enum KnownOfferingType { DefenderForContainersGcp = "DefenderForContainersGcp", DefenderForDatabasesAws = "DefenderForDatabasesAws", DefenderForDatabasesGcp = "DefenderForDatabasesGcp", - DefenderForDevOpsAzureDevOps = "DefenderForDevOpsAzureDevOps", - DefenderForDevOpsGithub = "DefenderForDevOpsGithub", - DefenderForDevOpsGitLab = "DefenderForDevOpsGitLab", DefenderForServersAws = "DefenderForServersAws", - DefenderForServersGcp = "DefenderForServersGcp", - InformationProtectionAws = "InformationProtectionAws" + DefenderForServersGcp = "DefenderForServersGcp" } // @public @@ -4539,27 +4438,12 @@ export enum KnownProvisioningState { Updating = "Updating" } -// @public -export enum KnownRecommendationAction { - Add = "Add", - Recommended = "Recommended", - Remove = "Remove" -} - // @public export enum KnownRecommendationConfigStatus { Disabled = "Disabled", Enabled = "Enabled" } -// @public -export enum KnownRecommendationStatus { - NoStatus = "NoStatus", - NotAvailable = "NotAvailable", - NotRecommended = "NotRecommended", - Recommended = "Recommended" -} - // @public export enum KnownRecommendationType { IoTAcrauthentication = "IoT_ACRAuthentication", @@ -4755,15 +4639,6 @@ export enum KnownSource { OnPremiseSql = "OnPremiseSql" } -// @public -export enum KnownSourceSystem { - AzureAppLocker = "Azure_AppLocker", - AzureAuditD = "Azure_AuditD", - NonAzureAppLocker = "NonAzure_AppLocker", - NonAzureAuditD = "NonAzure_AuditD", - None = "None" -} - // @public export enum KnownSourceType { Alert = "Alert", @@ -4964,12 +4839,6 @@ export enum KnownThreats { ThreatResistance = "threatResistance" } -// @public -export enum KnownTransportProtocol { - TCP = "TCP", - UDP = "UDP" -} - // @public export enum KnownType { Qualys = "Qualys", @@ -5058,6 +4927,13 @@ export interface LogAnalyticsIdentifier extends ResourceIdentifier { readonly workspaceSubscriptionId?: string; } +// @public +export interface MalwareScanningProperties { + onUpload?: OnUploadProperties; + readonly operationStatus?: OperationStatus; + scanResultsEventGridTopicResourceId?: string; +} + // @public export interface MdeOnboardingData extends Resource { onboardingPackageLinux?: Uint8Array; @@ -5158,6 +5034,12 @@ export interface OnPremiseSqlResourceDetails extends OnPremiseResourceDetails { source: "OnPremiseSql"; } +// @public +export interface OnUploadProperties { + capGBPerMonth?: number; + isEnabled?: boolean; +} + // @public export interface Operation { display?: OperationDisplay; @@ -5236,21 +5118,6 @@ export type Operator = string; // @public export type OrganizationMembershipType = string; -// @public -export interface PathRecommendation { - action?: RecommendationAction; - common?: boolean; - configurationStatus?: ConfigurationStatus; - fileType?: FileType; - path?: string; - publisherInfo?: PublisherInfo; - type?: RecommendationType; - // (undocumented) - usernames?: UserRecommendation[]; - // (undocumented) - userSids?: string[]; -} - // @public export type PermissionProperty = string; @@ -5319,14 +5186,6 @@ export interface ProcessNotAllowed extends AllowlistCustomAlertRule { // @public export type PropertyType = string; -// @public -export interface ProtectionMode { - exe?: EnforcementMode; - executable?: EnforcementMode; - msi?: EnforcementMode; - script?: EnforcementMode; -} - // @public export type Protocol = string; @@ -5343,14 +5202,6 @@ export interface ProxyServerProperties { port?: string; } -// @public -export interface PublisherInfo { - binaryName?: string; - productName?: string; - publisherName?: string; - version?: string; -} - // @public export interface QueryCheck { columnNames?: string[]; @@ -5366,9 +5217,6 @@ export interface QueuePurgesNotInAllowedRange extends TimeWindowCustomAlertRule // @public export type Rank = "None" | "Low" | "Medium" | "High" | "Critical"; -// @public -export type RecommendationAction = string; - // @public export type RecommendationConfigStatus = string; @@ -5379,9 +5227,6 @@ export interface RecommendationConfigurationProperties { status: RecommendationConfigStatus; } -// @public -export type RecommendationStatus = string; - // @public export type RecommendationType = string; @@ -5590,15 +5435,6 @@ export type ResourcesCoverageStatus = string; // @public export type ResourceStatus = string; -// @public -export interface Rule { - destinationPort?: number; - direction?: Direction; - ipAddresses?: string[]; - name?: string; - protocols?: TransportProtocol[]; -} - // @public export type RuleCategory = string; @@ -6028,10 +5864,6 @@ export class SecurityCenter extends coreClient.ServiceClient { constructor(credentials: coreAuth.TokenCredential, subscriptionId: string, options?: SecurityCenterOptionalParams); constructor(credentials: coreAuth.TokenCredential, options?: SecurityCenterOptionalParams); // (undocumented) - adaptiveApplicationControls: AdaptiveApplicationControls; - // (undocumented) - adaptiveNetworkHardenings: AdaptiveNetworkHardenings; - // (undocumented) advancedThreatProtection: AdvancedThreatProtection; // (undocumented) alerts: Alerts; @@ -6078,10 +5910,13 @@ export class SecurityCenter extends coreClient.ServiceClient { // (undocumented) devOpsOperationResults: DevOpsOperationResults; // (undocumented) + devOpsPolicies: DevOpsPolicies; + // (undocumented) + devOpsPolicyAssignments: DevOpsPolicyAssignments; + // (undocumented) discoveredSecuritySolutions: DiscoveredSecuritySolutions; // (undocumented) externalSecuritySolutions: ExternalSecuritySolutions; - getSensitivitySettings(options?: GetSensitivitySettingsOptionalParams): Promise; // (undocumented) gitHubOwners: GitHubOwners; // (undocumented) @@ -6168,7 +6003,6 @@ export class SecurityCenter extends coreClient.ServiceClient { tasks: Tasks; // (undocumented) topology: Topology; - updateSensitivitySettings(sensitivitySettings: UpdateSensitivitySettingsRequest, options?: UpdateSensitivitySettingsOptionalParams): Promise; // (undocumented) workspaceSettings: WorkspaceSettings; } @@ -6538,6 +6372,12 @@ export interface SecurityTaskParameters { readonly name?: string; } +// @public +export interface SensitiveDataDiscoveryProperties { + isEnabled?: boolean; + readonly operationStatus?: OperationStatus; +} + // @public export interface SensitivityLabel { description?: string; @@ -6549,9 +6389,25 @@ export interface SensitivityLabel { // @public export interface SensitivitySettings { + createOrUpdate(sensitivitySettings: UpdateSensitivitySettingsRequest, options?: SensitivitySettingsCreateOrUpdateOptionalParams): Promise; + get(options?: SensitivitySettingsGetOptionalParams): Promise; list(options?: SensitivitySettingsListOptionalParams): Promise; } +// @public +export interface SensitivitySettingsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type SensitivitySettingsCreateOrUpdateResponse = GetSensitivitySettingsResponse; + +// @public +export interface SensitivitySettingsGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type SensitivitySettingsGetResponse = GetSensitivitySettingsResponse; + // @public export interface SensitivitySettingsListOptionalParams extends coreClient.OperationOptions { } @@ -6821,9 +6677,6 @@ export interface SoftwaresList { // @public export type Source = string; -// @public -export type SourceSystem = string; - // @public export type SourceType = string; @@ -7221,9 +7074,6 @@ export interface TopologySingleResourceParent { export interface TrackedResource extends Resource, AzureTrackedResourceLocation, KindAutoGenerated, ETag, Tags { } -// @public -export type TransportProtocol = string; - // @public export interface TwinUpdatesNotInAllowedRange extends TimeWindowCustomAlertRule { ruleType: "TwinUpdatesNotInAllowedRange"; @@ -7246,10 +7096,6 @@ export interface UpdateIotSecuritySolutionData extends TagsResource { userDefinedResources?: UserDefinedResourcesProperties; } -// @public -export interface UpdateSensitivitySettingsOptionalParams extends coreClient.OperationOptions { -} - // @public export interface UpdateSensitivitySettingsRequest { sensitiveInfoTypesIds: string[]; @@ -7257,9 +7103,6 @@ export interface UpdateSensitivitySettingsRequest { sensitivityThresholdLabelOrder?: number; } -// @public -export type UpdateSensitivitySettingsResponse = GetSensitivitySettingsResponse; - // @public export interface UserDefinedResourcesProperties { query: string | null; @@ -7269,12 +7112,6 @@ export interface UserDefinedResourcesProperties { // @public export type UserImpact = string; -// @public -export interface UserRecommendation { - recommendationAction?: RecommendationAction; - username?: string; -} - // @public export type ValueType = string; @@ -7298,11 +7135,26 @@ export interface VendorReference { } // @public -export interface VmRecommendation { - configurationStatus?: ConfigurationStatus; - enforcementSupport?: EnforcementSupport; - recommendationAction?: RecommendationAction; - resourceId?: string; +export interface VmScannersAws extends VmScannersBase { + cloudRoleArn?: string; +} + +// @public +export interface VmScannersBase { + configuration?: VmScannersBaseConfiguration; + enabled?: boolean; +} + +// @public +export interface VmScannersBaseConfiguration { + exclusionTags?: { + [propertyName: string]: string; + }; + scanningMode?: ScanningMode; +} + +// @public +export interface VmScannersGcp extends VmScannersBase { } // @public diff --git a/sdk/security/arm-security/src/lroImpl.ts b/sdk/security/arm-security/src/lroImpl.ts index 5f88efab981b..b27f5ac7209b 100644 --- a/sdk/security/arm-security/src/lroImpl.ts +++ b/sdk/security/arm-security/src/lroImpl.ts @@ -7,7 +7,7 @@ */ // Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. +// Licensed under the MIT license. import { AbortSignalLike } from "@azure/abort-controller"; import { LongRunningOperation, LroResponse } from "@azure/core-lro"; diff --git a/sdk/security/arm-security/src/models/index.ts b/sdk/security/arm-security/src/models/index.ts index 8a35f7ebeea6..72ef9a9f6ec7 100644 --- a/sdk/security/arm-security/src/models/index.ts +++ b/sdk/security/arm-security/src/models/index.ts @@ -8,11 +8,6 @@ import * as coreClient from "@azure/core-client"; -export type AutomationActionUnion = - | AutomationAction - | AutomationActionLogicApp - | AutomationActionEventHub - | AutomationActionWorkspace; export type ResourceDetailsUnion = | ResourceDetails | AzureResourceDetails @@ -27,6 +22,11 @@ export type AuthenticationDetailsPropertiesUnion = | AwsCredsAuthenticationDetailsProperties | AwAssumeRoleAuthenticationDetailsProperties | GcpCredentialsDetailsProperties; +export type AutomationActionUnion = + | AutomationAction + | AutomationActionLogicApp + | AutomationActionEventHub + | AutomationActionWorkspace; export type NotificationsSourceUnion = | NotificationsSource | NotificationsSourceAlert @@ -37,7 +37,6 @@ export type CloudOfferingUnion = | DefenderForContainersAwsOffering | DefenderForServersAwsOffering | DefenderFoDatabasesAwsOffering - | InformationProtectionAwsOffering | CspmMonitorGcpOffering | DefenderForServersGcpOffering | DefenderForDatabasesGcpOffering @@ -46,10 +45,7 @@ export type CloudOfferingUnion = | CspmMonitorAzureDevOpsOffering | DefenderCspmAwsOffering | DefenderCspmGcpOffering - | DefenderForDevOpsGithubOffering - | DefenderForDevOpsAzureDevOpsOffering - | CspmMonitorGitLabOffering - | DefenderForDevOpsGitLabOffering; + | CspmMonitorGitLabOffering; export type EnvironmentDataUnion = | EnvironmentData | AwsEnvironmentData @@ -415,88 +411,6 @@ export interface ScopeElement { field?: string; } -/** List of security automations response. */ -export interface AutomationList { - /** The list of security automations under the given scope. */ - value: Automation[]; - /** - * The URI to fetch the next page. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly nextLink?: string; -} - -/** A single automation scope. */ -export interface AutomationScope { - /** The resources scope description. */ - description?: string; - /** The resources scope path. Can be the subscription on which the automation is defined on or a resource group under that subscription (fully qualified Azure resource IDs). */ - scopePath?: string; -} - -/** The source event types which evaluate the security automation set of rules. For example - security alerts and security assessments. To learn more about the supported security events data models schemas - please visit https://aka.ms/ASCAutomationSchemas. */ -export interface AutomationSource { - /** A valid event source type. */ - eventSource?: EventSource; - /** A set of rules which evaluate upon event interception. A logical disjunction is applied between defined rule sets (logical 'or'). */ - ruleSets?: AutomationRuleSet[]; -} - -/** A rule set which evaluates all its rules upon an event interception. Only when all the included rules in the rule set will be evaluated as 'true', will the event trigger the defined actions. */ -export interface AutomationRuleSet { - rules?: AutomationTriggeringRule[]; -} - -/** A rule which is evaluated upon event interception. The rule is configured by comparing a specific value from the event model to an expected value. This comparison is done by using one of the supported operators set. */ -export interface AutomationTriggeringRule { - /** The JPath of the entity model property that should be checked. */ - propertyJPath?: string; - /** The data type of the compared operands (string, integer, floating point number or a boolean [true/false]] */ - propertyType?: PropertyType; - /** The expected value. */ - expectedValue?: string; - /** A valid comparer operator to use. A case-insensitive comparison will be applied for String PropertyType. */ - operator?: Operator; -} - -/** The action that should be triggered. */ -export interface AutomationAction { - /** Polymorphic discriminator, which specifies the different types this object can be */ - actionType: "LogicApp" | "EventHub" | "Workspace"; -} - -/** Describes an Azure resource with location */ -export interface AzureTrackedResourceLocation { - /** Location where the resource is stored */ - location?: string; -} - -/** Describes an Azure resource with kind */ -export interface KindAutoGenerated { - /** Kind of the resource */ - kind?: string; -} - -/** Entity tag is used for comparing two or more entities from the same requested resource. */ -export interface ETag { - /** Entity tag is used for comparing two or more entities from the same requested resource. */ - etag?: string; -} - -/** A list of key value pairs that describe the resource. */ -export interface Tags { - /** A list of key value pairs that describe the resource. */ - tags?: { [propertyName: string]: string }; -} - -/** The security automation model state property bag. */ -export interface AutomationValidationStatus { - /** Indicates whether the model is valid or not. */ - isValid?: boolean; - /** The validation message. */ - message?: string; -} - /** List of regulatory compliance standards response */ export interface RegulatoryComplianceStandardList { value: RegulatoryComplianceStandard[]; @@ -640,31 +554,6 @@ export interface AuthenticationDetailsProperties { readonly grantedPermissions?: PermissionProperty[]; } -/** List of security contacts response */ -export interface SecurityContactList { - /** List of security contacts */ - value: SecurityContact[]; - /** - * The URI to fetch the next page. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly nextLink?: string; -} - -/** A valid notification source type */ -export interface NotificationsSource { - /** Polymorphic discriminator, which specifies the different types this object can be */ - sourceType: "Alert" | "AttackPath"; -} - -/** Defines whether to send email notifications from Microsoft Defender for Cloud to persons with specific RBAC roles on the subscription. */ -export interface SecurityContactPropertiesNotificationsByRole { - /** Defines whether to send email notifications from AMicrosoft Defender for Cloud to persons with specific RBAC roles on the subscription. */ - state?: State; - /** Defines which RBAC roles will get email notifications from Microsoft Defender for Cloud. List of allowed RBAC roles: */ - roles?: SecurityContactRole[]; -} - /** Represents the software inventory of the virtual machine. */ export interface SoftwaresList { value?: Software[]; @@ -848,6 +737,39 @@ export interface ApplicationsList { readonly nextLink?: string; } +/** Defender for Storage resource properties. */ +export interface DefenderForStorageSettingProperties { + /** Indicates whether Defender for Storage is enabled on this storage account. */ + isEnabled?: boolean; + /** Properties of Malware Scanning. */ + malwareScanning?: MalwareScanningProperties; + /** Properties of Sensitive Data Discovery. */ + sensitiveDataDiscovery?: SensitiveDataDiscoveryProperties; + /** Indicates whether the settings defined for this storage account should override the settings defined for the subscription. */ + overrideSubscriptionLevelSettings?: boolean; +} + +/** Properties of Malware Scanning. */ +export interface MalwareScanningProperties { + /** Properties of On Upload malware scanning. */ + onUpload?: OnUploadProperties; + /** Optional. Resource id of an Event Grid Topic to send scan results to. */ + scanResultsEventGridTopicResourceId?: string; + /** + * Upon failure or partial success. Additional data describing Malware Scanning enable/disable operation. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly operationStatus?: OperationStatus; +} + +/** Properties of On Upload malware scanning. */ +export interface OnUploadProperties { + /** Indicates whether On Upload malware scanning should be enabled. */ + isEnabled?: boolean; + /** Defines the max GB to be scanned per Month. Set to -1 if no capping is needed. */ + capGBPerMonth?: number; +} + /** A status describing the success/failure of the enablement/disablement operation. */ export interface OperationStatus { /** The operation status code. */ @@ -856,6 +778,17 @@ export interface OperationStatus { message?: string; } +/** Properties of Sensitive Data Discovery. */ +export interface SensitiveDataDiscoveryProperties { + /** Indicates whether Sensitive Data Discovery should be enabled. */ + isEnabled?: boolean; + /** + * Upon failure or partial success. Additional data describing Sensitive Data Discovery enable/disable operation. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly operationStatus?: OperationStatus; +} + /** List of SecurityOperator response. */ export interface SecurityOperatorList { /** List of SecurityOperator configurations */ @@ -1271,110 +1204,264 @@ export interface ErrorDetail { readonly additionalInfo?: ErrorAdditionalInfo[]; } -/** List of RP resources which supports pagination. */ -export interface AzureDevOpsOrgListResponse { - /** Gets or sets list of resources. */ - value?: AzureDevOpsOrg[]; - /** Gets or sets next link to scroll over the results. */ - nextLink?: string; -} - -/** Azure DevOps Organization properties. */ -export interface AzureDevOpsOrgProperties { - /** - * Gets or sets resource status message. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly provisioningStatusMessage?: string; +/** List of security automations response. */ +export interface AutomationList { + /** The list of security automations under the given scope. */ + value: Automation[]; /** - * Gets or sets time when resource was last checked. + * The URI to fetch the next page. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly provisioningStatusUpdateTimeUtc?: Date; - /** - * The provisioning state of the resource. - * - * Pending - Provisioning pending. - * Failed - Provisioning failed. - * Succeeded - Successful provisioning. - * Canceled - Provisioning canceled. - * PendingDeletion - Deletion pending. - * DeletionSuccess - Deletion successful. - * DeletionFailure - Deletion failure. - */ - provisioningState?: DevOpsProvisioningState; - /** - * Details about resource onboarding status across all connectors. - * - * OnboardedByOtherConnector - this resource has already been onboarded to another connector. This is only applicable to top-level resources. - * Onboarded - this resource has already been onboarded by the specified connector. - * NotOnboarded - this resource has not been onboarded to any connector. - * NotApplicable - the onboarding state is not applicable to the current endpoint. - */ - onboardingState?: OnboardingState; - /** Configuration payload for PR Annotations. */ - actionableRemediation?: ActionableRemediation; + readonly nextLink?: string; } -/** Configuration payload for PR Annotations. */ -export interface ActionableRemediation { - /** - * ActionableRemediation Setting. - * None - the setting was never set. - * Enabled - ActionableRemediation is enabled. - * Disabled - ActionableRemediation is disabled. - */ - state?: ActionableRemediationState; - /** Gets or sets list of categories and severity levels. */ - categoryConfigurations?: CategoryConfiguration[]; - /** Repository branch configuration for PR Annotations. */ - branchConfiguration?: TargetBranchConfiguration; - /** - * Update Settings. - * - * Enabled - Resource should inherit configurations from parent. - * Disabled - Resource should not inherit configurations from parent. - */ - inheritFromParentState?: InheritFromParentState; +/** A single automation scope. */ +export interface AutomationScope { + /** The resources scope description. */ + description?: string; + /** The resources scope path. Can be the subscription on which the automation is defined on or a resource group under that subscription (fully qualified Azure resource IDs). */ + scopePath?: string; } -/** Severity level per category configuration for PR Annotations. */ -export interface CategoryConfiguration { - /** Gets or sets minimum severity level for a given category. */ - minimumSeverityLevel?: string; - /** - * Rule categories. - * Code - code scanning results. - * Artifact scanning results. - * Dependencies scanning results. - * IaC results. - * Secrets scanning results. - * Container scanning results. - */ - category?: RuleCategory; +/** The source event types which evaluate the security automation set of rules. For example - security alerts and security assessments. To learn more about the supported security events data models schemas - please visit https://aka.ms/ASCAutomationSchemas. */ +export interface AutomationSource { + /** A valid event source type. */ + eventSource?: EventSource; + /** A set of rules which evaluate upon event interception. A logical disjunction is applied between defined rule sets (logical 'or'). */ + ruleSets?: AutomationRuleSet[]; } -/** Repository branch configuration for PR Annotations. */ -export interface TargetBranchConfiguration { - /** Gets or sets branches that should have annotations. */ - branchNames?: string[]; - /** - * Configuration of PR Annotations on default branch. - * - * Enabled - PR Annotations are enabled on the resource's default branch. - * Disabled - PR Annotations are disabled on the resource's default branch. - */ - annotateDefaultBranch?: AnnotateDefaultBranchState; +/** A rule set which evaluates all its rules upon an event interception. Only when all the included rules in the rule set will be evaluated as 'true', will the event trigger the defined actions. */ +export interface AutomationRuleSet { + rules?: AutomationTriggeringRule[]; } -/** Common fields that are returned in the response for all Azure Resource Manager resources */ -export interface ResourceAutoGenerated { - /** - * Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly id?: string; - /** +/** A rule which is evaluated upon event interception. The rule is configured by comparing a specific value from the event model to an expected value. This comparison is done by using one of the supported operators set. */ +export interface AutomationTriggeringRule { + /** The JPath of the entity model property that should be checked. */ + propertyJPath?: string; + /** The data type of the compared operands (string, integer, floating point number or a boolean [true/false]] */ + propertyType?: PropertyType; + /** The expected value. */ + expectedValue?: string; + /** A valid comparer operator to use. A case-insensitive comparison will be applied for String PropertyType. */ + operator?: Operator; +} + +/** The action that should be triggered. */ +export interface AutomationAction { + /** Polymorphic discriminator, which specifies the different types this object can be */ + actionType: "LogicApp" | "EventHub" | "Workspace"; +} + +/** Describes an Azure resource with location */ +export interface AzureTrackedResourceLocation { + /** Location where the resource is stored */ + location?: string; +} + +/** Describes an Azure resource with kind */ +export interface KindAutoGenerated { + /** Kind of the resource */ + kind?: string; +} + +/** Entity tag is used for comparing two or more entities from the same requested resource. */ +export interface ETag { + /** Entity tag is used for comparing two or more entities from the same requested resource. */ + etag?: string; +} + +/** A list of key value pairs that describe the resource. */ +export interface Tags { + /** A list of key value pairs that describe the resource. */ + tags?: { [propertyName: string]: string }; +} + +/** The security automation model state property bag. */ +export interface AutomationValidationStatus { + /** Indicates whether the model is valid or not. */ + isValid?: boolean; + /** The validation message. */ + message?: string; +} + +/** List of security contacts response */ +export interface SecurityContactList { + /** List of security contacts */ + value: SecurityContact[]; + /** + * The URI to fetch the next page. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly nextLink?: string; +} + +/** A valid notification source type */ +export interface NotificationsSource { + /** Polymorphic discriminator, which specifies the different types this object can be */ + sourceType: "Alert" | "AttackPath"; +} + +/** Defines whether to send email notifications from Microsoft Defender for Cloud to persons with specific RBAC roles on the subscription. */ +export interface SecurityContactPropertiesNotificationsByRole { + /** Defines whether to send email notifications from AMicrosoft Defender for Cloud to persons with specific RBAC roles on the subscription. */ + state?: State; + /** Defines which RBAC roles will get email notifications from Microsoft Defender for Cloud. List of allowed RBAC roles: */ + roles?: SecurityContactRole[]; +} + +/** List of security connectors response. */ +export interface SecurityConnectorsList { + /** The list of security connectors under the given scope. */ + value: SecurityConnector[]; + /** + * The URI to fetch the next page. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly nextLink?: string; +} + +/** The security offering details */ +export interface CloudOffering { + /** Polymorphic discriminator, which specifies the different types this object can be */ + offeringType: + | "CspmMonitorAws" + | "DefenderForContainersAws" + | "DefenderForServersAws" + | "DefenderForDatabasesAws" + | "CspmMonitorGcp" + | "DefenderForServersGcp" + | "DefenderForDatabasesGcp" + | "DefenderForContainersGcp" + | "CspmMonitorGithub" + | "CspmMonitorAzureDevOps" + | "DefenderCspmAws" + | "DefenderCspmGcp" + | "CspmMonitorGitLab"; + /** + * The offering description. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly description?: string; +} + +/** The security connector environment data. */ +export interface EnvironmentData { + /** Polymorphic discriminator, which specifies the different types this object can be */ + environmentType: + | "AwsAccount" + | "GcpProject" + | "GithubScope" + | "AzureDevOpsScope" + | "GitlabScope"; +} + +/** List of RP resources which supports pagination. */ +export interface AzureDevOpsOrgListResponse { + /** Gets or sets list of resources. */ + value?: AzureDevOpsOrg[]; + /** Gets or sets next link to scroll over the results. */ + nextLink?: string; +} + +/** Azure DevOps Organization properties. */ +export interface AzureDevOpsOrgProperties { + /** + * Gets the resource status message. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningStatusMessage?: string; + /** + * Gets the time when resource was last checked. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningStatusUpdateTimeUtc?: Date; + /** + * The provisioning state of the resource. + * + * Pending - Provisioning pending. + * Failed - Provisioning failed. + * Succeeded - Successful provisioning. + * Canceled - Provisioning canceled. + * PendingDeletion - Deletion pending. + * DeletionSuccess - Deletion successful. + * DeletionFailure - Deletion failure. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: DevOpsProvisioningState; + /** + * Details about resource onboarding status across all connectors. + * + * OnboardedByOtherConnector - this resource has already been onboarded to another connector. This is only applicable to top-level resources. + * Onboarded - this resource has already been onboarded by the specified connector. + * NotOnboarded - this resource has not been onboarded to any connector. + * NotApplicable - the onboarding state is not applicable to the current endpoint. + */ + onboardingState?: OnboardingState; + /** Configuration payload for PR Annotations. */ + actionableRemediation?: ActionableRemediation; +} + +/** Configuration payload for PR Annotations. */ +export interface ActionableRemediation { + /** + * ActionableRemediation Setting. + * None - the setting was never set. + * Enabled - ActionableRemediation is enabled. + * Disabled - ActionableRemediation is disabled. + */ + state?: ActionableRemediationState; + /** Gets or sets list of categories and severity levels. */ + categoryConfigurations?: CategoryConfiguration[]; + /** Repository branch configuration for PR Annotations. */ + branchConfiguration?: TargetBranchConfiguration; + /** + * Update Settings. + * + * Enabled - Resource should inherit configurations from parent. + * Disabled - Resource should not inherit configurations from parent. + */ + inheritFromParentState?: InheritFromParentState; +} + +/** Severity level per category configuration for PR Annotations. */ +export interface CategoryConfiguration { + /** Gets or sets minimum severity level for a given category. */ + minimumSeverityLevel?: string; + /** + * Rule categories. + * Code - code scanning results. + * Artifact scanning results. + * Dependencies scanning results. + * IaC results. + * Secrets scanning results. + * Container scanning results. + */ + category?: RuleCategory; +} + +/** Repository branch configuration for PR Annotations. */ +export interface TargetBranchConfiguration { + /** Gets or sets branches that should have annotations. */ + branchNames?: string[]; + /** + * Configuration of PR Annotations on default branch. + * + * Enabled - PR Annotations are enabled on the resource's default branch. + * Disabled - PR Annotations are disabled on the resource's default branch. + */ + annotateDefaultBranch?: AnnotateDefaultBranchState; +} + +/** Common fields that are returned in the response for all Azure Resource Manager resources */ +export interface ResourceAutoGenerated { + /** + * Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly id?: string; + /** * The name of the resource * NOTE: This property will not be serialized. It can only be populated by the server. */ @@ -1432,12 +1519,12 @@ export interface AzureDevOpsProjectListResponse { /** Azure DevOps Project properties. */ export interface AzureDevOpsProjectProperties { /** - * Gets or sets resource status message. + * Gets the resource status message. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly provisioningStatusMessage?: string; /** - * Gets or sets time when resource was last checked. + * Gets the time when resource was last checked. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly provisioningStatusUpdateTimeUtc?: Date; @@ -1451,8 +1538,9 @@ export interface AzureDevOpsProjectProperties { * PendingDeletion - Deletion pending. * DeletionSuccess - Deletion successful. * DeletionFailure - Deletion failure. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - provisioningState?: DevOpsProvisioningState; + readonly provisioningState?: DevOpsProvisioningState; /** Gets or sets parent Azure DevOps Organization name. */ parentOrgName?: string; /** @@ -1484,12 +1572,12 @@ export interface AzureDevOpsRepositoryListResponse { /** Azure DevOps Repository properties. */ export interface AzureDevOpsRepositoryProperties { /** - * Gets or sets resource status message. + * Gets the resource status message. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly provisioningStatusMessage?: string; /** - * Gets or sets time when resource was last checked. + * Gets the time when resource was last checked. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly provisioningStatusUpdateTimeUtc?: Date; @@ -1503,8 +1591,9 @@ export interface AzureDevOpsRepositoryProperties { * PendingDeletion - Deletion pending. * DeletionSuccess - Deletion successful. * DeletionFailure - Deletion failure. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - provisioningState?: DevOpsProvisioningState; + readonly provisioningState?: DevOpsProvisioningState; /** Gets or sets parent Azure DevOps Organization name. */ parentOrgName?: string; /** Gets or sets parent Azure DevOps Project name. */ @@ -1548,12 +1637,12 @@ export interface DevOpsConfigurationListResponse { /** DevOps Configuration properties. */ export interface DevOpsConfigurationProperties { /** - * Gets or sets resource status message. + * Gets the resource status message. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly provisioningStatusMessage?: string; /** - * Gets or sets time when resource was last checked. + * Gets the time when resource was last checked. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly provisioningStatusUpdateTimeUtc?: Date; @@ -1567,8 +1656,9 @@ export interface DevOpsConfigurationProperties { * PendingDeletion - Deletion pending. * DeletionSuccess - Deletion successful. * DeletionFailure - Deletion failure. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - provisioningState?: DevOpsProvisioningState; + readonly provisioningState?: DevOpsProvisioningState; /** Authorization payload. */ authorization?: Authorization; /** AutoDiscovery states. */ @@ -1578,6 +1668,11 @@ export interface DevOpsConfigurationProperties { * This field is ignored when AutoDiscovery is enabled. */ topLevelInventoryList?: string[]; + /** + * List of capabilities assigned to the DevOps configuration during the discovery process. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly capabilities?: DevOpsCapability[]; } /** Authorization payload. */ @@ -1590,23 +1685,37 @@ export interface Authorization { code?: string; } +/** Details about DevOps capability. */ +export interface DevOpsCapability { + /** + * Gets the name of the DevOps capability. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly name?: string; + /** + * Gets the value of the DevOps capability. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly value?: string; +} + /** List of RP resources which supports pagination. */ -export interface GitHubOwnerListResponse { +export interface DevOpsPolicyListResponse { /** Gets or sets list of resources. */ - value?: GitHubOwner[]; + value?: DevOpsPolicy[]; /** Gets or sets next link to scroll over the results. */ nextLink?: string; } -/** GitHub Owner properties. */ -export interface GitHubOwnerProperties { +/** Policy DevOps Resource properties that contain the full definition of a DevOps policy resource. */ +export interface DevOpsPolicyProperties { /** - * Gets or sets resource status message. + * Gets the resource status message. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly provisioningStatusMessage?: string; /** - * Gets or sets time when resource was last checked. + * Gets the time when resource was last checked. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly provisioningStatusUpdateTimeUtc?: Date; @@ -1620,27 +1729,136 @@ export interface GitHubOwnerProperties { * PendingDeletion - Deletion pending. * DeletionSuccess - Deletion successful. * DeletionFailure - Deletion failure. - */ - provisioningState?: DevOpsProvisioningState; - /** - * Gets or sets GitHub Owner url. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly ownerUrl?: string; + readonly provisioningState?: DevOpsProvisioningState; + /** DevOps Policy creation sources. */ + source?: DevOpsPolicySource; /** - * Gets or sets internal GitHub id. + * Gets the policy resource GUID. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly gitHubInternalId?: string; + readonly policyId?: string; /** - * Details about resource onboarding status across all connectors. - * - * OnboardedByOtherConnector - this resource has already been onboarded to another connector. This is only applicable to top-level resources. - * Onboarded - this resource has already been onboarded by the specified connector. - * NotOnboarded - this resource has not been onboarded to any connector. - * NotApplicable - the onboarding state is not applicable to the current endpoint. + * Gets the web URL. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - onboardingState?: OnboardingState; + readonly webUrl?: string; + /** Gets or sets the semantic version. */ + version?: string; + /** DevOps Policy resource types. */ + type?: DevOpsPolicyType; + /** Gets or sets the policy definition content JSON string. */ + content?: string; +} + +/** List of RP resources which supports pagination. */ +export interface DevOpsPolicyAssignmentListResponse { + /** Gets or sets list of resources. */ + value?: DevOpsPolicyAssignment[]; + /** Gets or sets next link to scroll over the results. */ + nextLink?: string; +} + +/** Properties of the DevOps policy assignment resource. */ +export interface DevOpsPolicyAssignmentProperties { + /** + * Gets the resource status message. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningStatusMessage?: string; + /** + * Gets the time when resource was last checked. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningStatusUpdateTimeUtc?: Date; + /** + * The provisioning state of the resource. + * + * Pending - Provisioning pending. + * Failed - Provisioning failed. + * Succeeded - Successful provisioning. + * Canceled - Provisioning canceled. + * PendingDeletion - Deletion pending. + * DeletionSuccess - Deletion successful. + * DeletionFailure - Deletion failure. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: DevOpsProvisioningState; + /** Gets or sets the Azure resource id. */ + resourceId?: string; + /** The behavior of a policy on descendant resources. */ + descendantBehavior?: DescendantBehavior; + /** Condensed information to identify a DevOps Policy resource. */ + policy?: DevOpsPolicyDescriptor; + /** Gets or sets time when the assignment was created in UTC. */ + assignedAt?: Date; +} + +/** Condensed information to identify a DevOps Policy resource. */ +export interface DevOpsPolicyDescriptor { + /** Gets or sets the policy name. */ + policyName?: string; + /** Gets or sets the policy GUID. */ + policyId?: string; + /** Gets or sets the version. */ + policyVersion?: string; + /** DevOps Policy resource types. */ + policyType?: DevOpsPolicyType; +} + +/** List of RP resources which supports pagination. */ +export interface GitHubOwnerListResponse { + /** Gets or sets list of resources. */ + value?: GitHubOwner[]; + /** Gets or sets next link to scroll over the results. */ + nextLink?: string; +} + +/** GitHub Owner properties. */ +export interface GitHubOwnerProperties { + /** + * Gets the resource status message. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningStatusMessage?: string; + /** + * Gets the time when resource was last checked. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningStatusUpdateTimeUtc?: Date; + /** + * The provisioning state of the resource. + * + * Pending - Provisioning pending. + * Failed - Provisioning failed. + * Succeeded - Successful provisioning. + * Canceled - Provisioning canceled. + * PendingDeletion - Deletion pending. + * DeletionSuccess - Deletion successful. + * DeletionFailure - Deletion failure. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: DevOpsProvisioningState; + /** + * Gets or sets GitHub Owner url. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly ownerUrl?: string; + /** + * Gets or sets internal GitHub id. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly gitHubInternalId?: string; + /** + * Details about resource onboarding status across all connectors. + * + * OnboardedByOtherConnector - this resource has already been onboarded to another connector. This is only applicable to top-level resources. + * Onboarded - this resource has already been onboarded by the specified connector. + * NotOnboarded - this resource has not been onboarded to any connector. + * NotApplicable - the onboarding state is not applicable to the current endpoint. + */ + onboardingState?: OnboardingState; } /** List of RP resources which supports pagination. */ @@ -1654,12 +1872,12 @@ export interface GitHubRepositoryListResponse { /** GitHub Repository properties. */ export interface GitHubRepositoryProperties { /** - * Gets or sets resource status message. + * Gets the resource status message. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly provisioningStatusMessage?: string; /** - * Gets or sets time when resource was last checked. + * Gets the time when resource was last checked. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly provisioningStatusUpdateTimeUtc?: Date; @@ -1673,8 +1891,9 @@ export interface GitHubRepositoryProperties { * PendingDeletion - Deletion pending. * DeletionSuccess - Deletion successful. * DeletionFailure - Deletion failure. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - provisioningState?: DevOpsProvisioningState; + readonly provisioningState?: DevOpsProvisioningState; /** * Gets or sets GitHub Repository id. * @@ -1725,12 +1944,12 @@ export interface GitLabGroupListResponse { /** GitLab Group properties. */ export interface GitLabGroupProperties { /** - * Gets or sets resource status message. + * Gets the resource status message. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly provisioningStatusMessage?: string; /** - * Gets or sets time when resource was last checked. + * Gets the time when resource was last checked. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly provisioningStatusUpdateTimeUtc?: Date; @@ -1744,8 +1963,9 @@ export interface GitLabGroupProperties { * PendingDeletion - Deletion pending. * DeletionSuccess - Deletion successful. * DeletionFailure - Deletion failure. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - provisioningState?: DevOpsProvisioningState; + readonly provisioningState?: DevOpsProvisioningState; /** * Gets or sets the fully-qualified name of the Group object. * @@ -1787,12 +2007,12 @@ export interface GitLabProjectListResponse { /** GitLab Project properties. */ export interface GitLabProjectProperties { /** - * Gets or sets resource status message. + * Gets the resource status message. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly provisioningStatusMessage?: string; /** - * Gets or sets time when resource was last checked. + * Gets the time when resource was last checked. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly provisioningStatusUpdateTimeUtc?: Date; @@ -1806,8 +2026,9 @@ export interface GitLabProjectProperties { * PendingDeletion - Deletion pending. * DeletionSuccess - Deletion successful. * DeletionFailure - Deletion failure. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - provisioningState?: DevOpsProvisioningState; + readonly provisioningState?: DevOpsProvisioningState; /** * Gets or sets the fully-qualified name of the project object. * @@ -1865,56 +2086,6 @@ export interface OperationStatusResult { error?: ErrorDetailAutoGenerated; } -/** List of security connectors response. */ -export interface SecurityConnectorsList { - /** The list of security connectors under the given scope. */ - value: SecurityConnector[]; - /** - * The URI to fetch the next page. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly nextLink?: string; -} - -/** The security offering details */ -export interface CloudOffering { - /** Polymorphic discriminator, which specifies the different types this object can be */ - offeringType: - | "CspmMonitorAws" - | "DefenderForContainersAws" - | "DefenderForServersAws" - | "DefenderForDatabasesAws" - | "InformationProtectionAws" - | "CspmMonitorGcp" - | "DefenderForServersGcp" - | "DefenderForDatabasesGcp" - | "DefenderForContainersGcp" - | "CspmMonitorGithub" - | "CspmMonitorAzureDevOps" - | "DefenderCspmAws" - | "DefenderCspmGcp" - | "DefenderForDevOpsGithub" - | "DefenderForDevOpsAzureDevOps" - | "CspmMonitorGitLab" - | "DefenderForDevOpsGitLab"; - /** - * The offering description. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly description?: string; -} - -/** The security connector environment data. */ -export interface EnvironmentData { - /** Polymorphic discriminator, which specifies the different types this object can be */ - environmentType: - | "AwsAccount" - | "GcpProject" - | "GithubScope" - | "AzureDevOpsScope" - | "GitlabScope"; -} - /** List of compliance results response */ export interface ComplianceResultList { /** List of compliance results */ @@ -2145,43 +2316,6 @@ export interface AdditionalWorkspacesProperties { dataTypes?: AdditionalWorkspaceDataType[]; } -/** Response for ListAdaptiveNetworkHardenings API service call */ -export interface AdaptiveNetworkHardeningsList { - /** A list of Adaptive Network Hardenings resources */ - value?: AdaptiveNetworkHardening[]; - /** The URL to get the next set of results */ - nextLink?: string; -} - -/** Describes remote addresses that is recommended to communicate with the Azure resource on some (Protocol, Port, Direction). All other remote addresses are recommended to be blocked */ -export interface Rule { - /** The name of the rule */ - name?: string; - /** The rule's direction */ - direction?: Direction; - /** The rule's destination port */ - destinationPort?: number; - /** The rule's transport protocols */ - protocols?: TransportProtocol[]; - /** The remote IP addresses that should be able to communicate with the Azure resource on the rule's destination port and protocol */ - ipAddresses?: string[]; -} - -/** Describes the Network Security Groups effective on a network interface */ -export interface EffectiveNetworkSecurityGroups { - /** The Azure resource ID of the network interface */ - networkInterface?: string; - /** The Network Security Groups effective on the network interface */ - networkSecurityGroups?: string[]; -} - -export interface AdaptiveNetworkHardeningEnforceRequest { - /** The rules to enforce */ - rules: Rule[]; - /** The Azure resource IDs of the effective network security groups that will be updated with the created security rules from the Adaptive Network Hardening rules */ - networkSecurityGroups: string[]; -} - /** List of all possible traffic between Azure resources */ export interface AllowedConnectionsList { /** NOTE: This property will not be serialized. It can only be populated by the server. */ @@ -2240,83 +2374,6 @@ export interface Location { readonly location?: string; } -/** Represents a list of VM/server groups and set of rules that are Recommended by Microsoft Defender for Cloud to be allowed */ -export interface AdaptiveApplicationControlGroups { - value?: AdaptiveApplicationControlGroup[]; -} - -/** The protection mode of the collection/file types. Exe/Msi/Script are used for Windows, Executable is used for Linux. */ -export interface ProtectionMode { - /** The application control policy enforcement/protection mode of the machine group */ - exe?: EnforcementMode; - /** The application control policy enforcement/protection mode of the machine group */ - msi?: EnforcementMode; - /** The application control policy enforcement/protection mode of the machine group */ - script?: EnforcementMode; - /** The application control policy enforcement/protection mode of the machine group */ - executable?: EnforcementMode; -} - -/** Represents a summary of the alerts of the machine group */ -export interface AdaptiveApplicationControlIssueSummary { - /** An alert that machines within a group can have */ - issue?: AdaptiveApplicationControlIssue; - /** The number of machines in the group that have this alert */ - numberOfVms?: number; -} - -/** Represents a machine that is part of a machine group */ -export interface VmRecommendation { - /** The configuration status of the machines group or machine or rule */ - configurationStatus?: ConfigurationStatus; - /** The recommendation action of the machine or rule */ - recommendationAction?: RecommendationAction; - /** The full resource id of the machine */ - resourceId?: string; - /** The machine supportability of Enforce feature */ - enforcementSupport?: EnforcementSupport; -} - -/** Represents a path that is recommended to be allowed and its properties */ -export interface PathRecommendation { - /** The full path of the file, or an identifier of the application */ - path?: string; - /** The recommendation action of the machine or rule */ - action?: RecommendationAction; - /** The type of IoT Security recommendation. */ - type?: RecommendationType; - /** Represents the publisher information of a process/rule */ - publisherInfo?: PublisherInfo; - /** Whether the application is commonly run on the machine */ - common?: boolean; - userSids?: string[]; - usernames?: UserRecommendation[]; - /** The type of the file (for Linux files - Executable is used) */ - fileType?: FileType; - /** The configuration status of the machines group or machine or rule */ - configurationStatus?: ConfigurationStatus; -} - -/** 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; - /** The recommendation action of the machine or rule */ - recommendationAction?: RecommendationAction; -} - export interface DiscoveredSecuritySolutionList { value?: DiscoveredSecuritySolution[]; /** @@ -2895,60 +2952,6 @@ export interface ApplicationCondition { operator?: ApplicationConditionOperator; } -/** AzureDevOps Org Inventory Configuration. */ -export interface AzureDevOpsOrganizationConfiguration { - /** AutoDiscovery states. */ - autoDiscovery?: AutoDiscovery; - /** - * AzureDevOps Project Inventory Configuration. - * Dictionary of AzureDevOps project name to desired project configuration. - * If AutoDiscovery is Enabled, this field should be empty or null. - */ - projectConfigs?: { [propertyName: string]: AzureDevOpsProjectConfiguration }; -} - -/** AzureDevOps Project Inventory Configuration. */ -export interface AzureDevOpsProjectConfiguration { - /** AutoDiscovery states. */ - autoDiscovery?: AutoDiscovery; - /** - * AzureDevOps Repository Inventory Configuration. - * Dictionary of AzureDevOps repository name to desired repository configuration. - * If AutoDiscovery is Enabled, this field should be null or empty. - */ - repositoryConfigs?: { [propertyName: string]: BaseResourceConfiguration }; -} - -/** Base Resource Inventory configuration changes. */ -export interface BaseResourceConfiguration { - /** Onboarding states. */ - desiredOnboardingState?: DesiredOnboardingState; -} - -/** GitHub Owner Inventory Configuration. */ -export interface GitHubOwnerConfiguration { - /** AutoDiscovery states. */ - autoDiscovery?: AutoDiscovery; - /** - * GitHub Repository Inventory Configuration. - * Dictionary of GitHub repository name to desired repository configuration. - * If AutoDiscovery is Enabled, this field should be null or empty. - */ - repositoryConfigs?: { [propertyName: string]: BaseResourceConfiguration }; -} - -/** GitLab Group Inventory Configuration. */ -export interface GitLabGroupConfiguration { - /** AutoDiscovery states. */ - autoDiscovery?: AutoDiscovery; - /** - * GitLab Project Inventory Configuration. - * Dictionary of GitLab fully-qualified project name to desired project configuration. - * If AutoDiscovery is Enabled, this field should be null or empty. - */ - projectConfigs?: { [propertyName: string]: BaseResourceConfiguration }; -} - /** The AWS organization data */ export interface AwsOrganizationalData { /** Polymorphic discriminator, which specifies the different types this object can be */ @@ -2991,8 +2994,8 @@ export interface DefenderForContainersAwsOfferingKubernetesService { cloudRoleArn?: string; } -/** The kubernetes to scuba connection configuration */ -export interface DefenderForContainersAwsOfferingKubernetesScubaReader { +/** The kubernetes data collection connection configuration */ +export interface DefenderForContainersAwsOfferingKubernetesDataCollection { /** The cloud role ARN in AWS for this feature used for reading data */ cloudRoleArn?: string; } @@ -3009,18 +3012,6 @@ export interface DefenderForContainersAwsOfferingKinesisToS3 { cloudRoleArn?: string; } -/** The container vulnerability assessment configuration */ -export interface DefenderForContainersAwsOfferingContainerVulnerabilityAssessment { - /** The cloud role ARN in AWS for this feature */ - cloudRoleArn?: string; -} - -/** The container vulnerability assessment task configuration */ -export interface DefenderForContainersAwsOfferingContainerVulnerabilityAssessmentTask { - /** The cloud role ARN in AWS for this feature */ - cloudRoleArn?: string; -} - /** The Microsoft Defender container image assessment configuration */ export interface DefenderForContainersAwsOfferingMdcContainersImageAssessment { /** Is Microsoft Defender container image assessment enabled */ @@ -3037,6 +3028,22 @@ export interface DefenderForContainersAwsOfferingMdcContainersAgentlessDiscovery cloudRoleArn?: string; } +/** A VM scanning configuration for a security offering of a given environment */ +export interface VmScannersBase { + /** Is VM scanning enabled */ + enabled?: boolean; + /** Configuration for VM scanning */ + configuration?: VmScannersBaseConfiguration; +} + +/** Configuration for VM scanning */ +export interface VmScannersBaseConfiguration { + /** The scanning mode for the VM scan. */ + scanningMode?: ScanningMode; + /** Tags that indicates that a resource should not be scanned */ + exclusionTags?: { [propertyName: string]: string }; +} + /** The Defender for servers connection configuration */ export interface DefenderForServersAwsOfferingDefenderForServers { /** The cloud role ARN in AWS for this feature */ @@ -3044,17 +3051,15 @@ export interface DefenderForServersAwsOfferingDefenderForServers { } /** The ARC autoprovisioning configuration */ -export interface DefenderForServersAwsOfferingArcAutoProvisioning { +export interface ArcAutoProvisioning { /** Is arc auto provisioning enabled */ enabled?: boolean; - /** The cloud role ARN in AWS for this feature */ - cloudRoleArn?: string; - /** Configuration for servers Arc auto provisioning */ - configuration?: DefenderForServersAwsOfferingArcAutoProvisioningConfiguration; + /** Configuration for servers Arc auto provisioning for a given environment */ + configuration?: ArcAutoProvisioningConfiguration; } -/** Configuration for servers Arc auto provisioning */ -export interface DefenderForServersAwsOfferingArcAutoProvisioningConfiguration { +/** Configuration for servers Arc auto provisioning for a given environment */ +export interface ArcAutoProvisioningConfiguration { /** Optional HTTP proxy endpoint to use for the Arc agent */ proxy?: string; /** Optional Arc private link scope resource id to link the Arc agent */ @@ -3089,42 +3094,6 @@ export interface DefenderForServersAwsOfferingSubPlan { type?: SubPlan; } -/** The Microsoft Defender for Server VM scanning configuration */ -export interface DefenderForServersAwsOfferingVmScanners { - /** Is Microsoft Defender for Server VM scanning enabled */ - enabled?: boolean; - /** configuration for Microsoft Defender for Server VM scanning */ - configuration?: DefenderForServersAwsOfferingVmScannersConfiguration; -} - -/** configuration for Microsoft Defender for Server VM scanning */ -export interface DefenderForServersAwsOfferingVmScannersConfiguration { - /** The cloud role ARN in AWS for this feature */ - cloudRoleArn?: string; - /** The scanning mode for the VM scan. */ - scanningMode?: ScanningMode; - /** VM tags that indicates that VM should not be scanned */ - exclusionTags?: { [propertyName: string]: string }; -} - -/** The ARC autoprovisioning configuration */ -export interface DefenderFoDatabasesAwsOfferingArcAutoProvisioning { - /** Is arc auto provisioning enabled */ - enabled?: boolean; - /** The cloud role ARN in AWS for this feature */ - cloudRoleArn?: string; - /** Configuration for servers Arc auto provisioning */ - configuration?: DefenderFoDatabasesAwsOfferingArcAutoProvisioningConfiguration; -} - -/** Configuration for servers Arc auto provisioning */ -export interface DefenderFoDatabasesAwsOfferingArcAutoProvisioningConfiguration { - /** Optional http proxy endpoint to use for the Arc agent */ - proxy?: string; - /** Optional Arc private link scope resource id to link the Arc agent */ - privateLinkScope?: string; -} - /** The RDS configuration */ export interface DefenderFoDatabasesAwsOfferingRds { /** Is RDS protection enabled */ @@ -3141,12 +3110,6 @@ export interface DefenderFoDatabasesAwsOfferingDatabasesDspm { cloudRoleArn?: string; } -/** The native cloud connection configuration */ -export interface InformationProtectionAwsOfferingInformationProtection { - /** The cloud role ARN in AWS for this feature */ - cloudRoleArn?: string; -} - /** The native cloud connection configuration */ export interface CspmMonitorGcpOfferingNativeCloudConnection { /** The GCP workload identity provider id for the offering */ @@ -3163,22 +3126,6 @@ export interface DefenderForServersGcpOfferingDefenderForServers { serviceAccountEmailAddress?: string; } -/** The ARC autoprovisioning configuration */ -export interface DefenderForServersGcpOfferingArcAutoProvisioning { - /** Is arc auto provisioning enabled */ - enabled?: boolean; - /** Configuration for servers Arc auto provisioning */ - configuration?: DefenderForServersGcpOfferingArcAutoProvisioningConfiguration; -} - -/** Configuration for servers Arc auto provisioning */ -export interface DefenderForServersGcpOfferingArcAutoProvisioningConfiguration { - /** Optional HTTP proxy endpoint to use for the Arc agent */ - proxy?: string; - /** Optional Arc private link scope resource id to link the Arc agent */ - privateLinkScope?: string; -} - /** The Vulnerability Assessment autoprovisioning configuration */ export interface DefenderForServersGcpOfferingVaAutoProvisioning { /** Is Vulnerability Assessment auto provisioning enabled */ @@ -3207,38 +3154,6 @@ export interface DefenderForServersGcpOfferingSubPlan { type?: SubPlan; } -/** The Microsoft Defender for Server VM scanning configuration */ -export interface DefenderForServersGcpOfferingVmScanners { - /** Is Microsoft Defender for Server VM scanning enabled */ - enabled?: boolean; - /** configuration for Microsoft Defender for Server VM scanning */ - configuration?: DefenderForServersGcpOfferingVmScannersConfiguration; -} - -/** configuration for Microsoft Defender for Server VM scanning */ -export interface DefenderForServersGcpOfferingVmScannersConfiguration { - /** The scanning mode for the VM scan. */ - scanningMode?: ScanningMode; - /** VM tags that indicate that VM should not be scanned */ - exclusionTags?: { [propertyName: string]: string }; -} - -/** The ARC autoprovisioning configuration */ -export interface DefenderForDatabasesGcpOfferingArcAutoProvisioning { - /** Is arc auto provisioning enabled */ - enabled?: boolean; - /** Configuration for servers Arc auto provisioning */ - configuration?: DefenderForDatabasesGcpOfferingArcAutoProvisioningConfiguration; -} - -/** Configuration for servers Arc auto provisioning */ -export interface DefenderForDatabasesGcpOfferingArcAutoProvisioningConfiguration { - /** Optional http proxy endpoint to use for the Arc agent */ - proxy?: string; - /** Optional Arc private link scope resource id to link the Arc agent */ - privateLinkScope?: string; -} - /** The native cloud connection configuration */ export interface DefenderForDatabasesGcpOfferingDefenderForDatabasesArcAutoProvisioning { /** The service account email address in GCP for this offering */ @@ -3283,24 +3198,6 @@ export interface DefenderForContainersGcpOfferingMdcContainersAgentlessDiscovery serviceAccountEmailAddress?: string; } -/** The Microsoft Defender for Server VM scanning configuration */ -export interface DefenderCspmAwsOfferingVmScanners { - /** Is Microsoft Defender for Server VM scanning enabled */ - enabled?: boolean; - /** configuration for Microsoft Defender for Server VM scanning */ - configuration?: DefenderCspmAwsOfferingVmScannersConfiguration; -} - -/** configuration for Microsoft Defender for Server VM scanning */ -export interface DefenderCspmAwsOfferingVmScannersConfiguration { - /** The cloud role ARN in AWS for this feature */ - cloudRoleArn?: string; - /** The scanning mode for the VM scan. */ - scanningMode?: ScanningMode; - /** VM tags that indicates that VM should not be scanned */ - exclusionTags?: { [propertyName: string]: string }; -} - /** The Microsoft Defender Data Sensitivity discovery configuration */ export interface DefenderCspmAwsOfferingDataSensitivityDiscovery { /** Is Microsoft Defender Data Sensitivity discovery enabled */ @@ -3317,23 +3214,23 @@ export interface DefenderCspmAwsOfferingDatabasesDspm { cloudRoleArn?: string; } -/** Defenders CSPM Cloud infrastructure entitlement management (CIEM) offering configurations */ +/** Defenders CSPM Permissions Management offering configurations */ export interface DefenderCspmAwsOfferingCiem { - /** Defender CSPM CIEM discovery configuration */ + /** Defender CSPM Permissions Management discovery configuration */ ciemDiscovery?: DefenderCspmAwsOfferingCiemDiscovery; - /** Defender CSPM CIEM AWS OIDC (open id connect) configuration */ + /** AWS Defender CSPM Permissions Management OIDC (open id connect) connection configurations */ ciemOidc?: DefenderCspmAwsOfferingCiemOidc; } -/** Defender CSPM CIEM discovery configuration */ +/** Defender CSPM Permissions Management discovery configuration */ export interface DefenderCspmAwsOfferingCiemDiscovery { - /** The cloud role ARN in AWS for CIEM discovery */ + /** The cloud role ARN in AWS for Permissions Management discovery */ cloudRoleArn?: string; } -/** Defender CSPM CIEM AWS OIDC (open id connect) configuration */ +/** AWS Defender CSPM Permissions Management OIDC (open id connect) connection configurations */ export interface DefenderCspmAwsOfferingCiemOidc { - /** The cloud role ARN in AWS for CIEM oidc connection */ + /** The cloud role ARN in AWS for Permissions Management used for oidc connection */ cloudRoleArn?: string; /** the azure active directory app name used of authenticating against AWS */ azureActiveDirectoryAppName?: string; @@ -3355,32 +3252,16 @@ export interface DefenderCspmAwsOfferingMdcContainersAgentlessDiscoveryK8S { cloudRoleArn?: string; } -/** GCP Defenders CSPM Cloud infrastructure entitlement management (CIEM) discovery offering configurations */ +/** GCP Defenders CSPM Permissions Management OIDC (Open ID connect) connection configurations */ export interface DefenderCspmGcpOfferingCiemDiscovery { - /** The GCP workload identity provider id for CIEM discovery offering */ + /** The GCP workload identity provider id for Permissions Management offering */ workloadIdentityProviderId?: string; - /** The service account email address in GCP for CIEM discovery offering */ + /** The service account email address in GCP for Permissions Management offering */ serviceAccountEmailAddress?: string; /** the azure active directory app name used of authenticating against GCP workload identity federation */ azureActiveDirectoryAppName?: string; } -/** The Microsoft Defender for Server VM scanning configuration */ -export interface DefenderCspmGcpOfferingVmScanners { - /** Is Microsoft Defender for Server VM scanning enabled */ - enabled?: boolean; - /** configuration for Microsoft Defender for Server VM scanning */ - configuration?: DefenderCspmGcpOfferingVmScannersConfiguration; -} - -/** configuration for Microsoft Defender for Server VM scanning */ -export interface DefenderCspmGcpOfferingVmScannersConfiguration { - /** The scanning mode for the VM scan. */ - scanningMode?: ScanningMode; - /** VM tags that indicates that VM should not be scanned */ - exclusionTags?: { [propertyName: string]: string }; -} - /** The Microsoft Defender Data Sensitivity discovery configuration */ export interface DefenderCspmGcpOfferingDataSensitivityDiscovery { /** Is Microsoft Defender Data Sensitivity discovery enabled */ @@ -3411,6 +3292,60 @@ export interface DefenderCspmGcpOfferingMdcContainersAgentlessDiscoveryK8S { serviceAccountEmailAddress?: string; } +/** AzureDevOps Org Inventory Configuration. */ +export interface AzureDevOpsOrganizationConfiguration { + /** AutoDiscovery states. */ + autoDiscovery?: AutoDiscovery; + /** + * AzureDevOps Project Inventory Configuration. + * Dictionary of AzureDevOps project name to desired project configuration. + * If AutoDiscovery is Enabled, this field should be empty or null. + */ + projectConfigs?: { [propertyName: string]: AzureDevOpsProjectConfiguration }; +} + +/** AzureDevOps Project Inventory Configuration. */ +export interface AzureDevOpsProjectConfiguration { + /** AutoDiscovery states. */ + autoDiscovery?: AutoDiscovery; + /** + * AzureDevOps Repository Inventory Configuration. + * Dictionary of AzureDevOps repository name to desired repository configuration. + * If AutoDiscovery is Enabled, this field should be null or empty. + */ + repositoryConfigs?: { [propertyName: string]: BaseResourceConfiguration }; +} + +/** Base Resource Inventory configuration changes. */ +export interface BaseResourceConfiguration { + /** Onboarding states. */ + desiredOnboardingState?: DesiredOnboardingState; +} + +/** GitHub Owner Inventory Configuration. */ +export interface GitHubOwnerConfiguration { + /** AutoDiscovery states. */ + autoDiscovery?: AutoDiscovery; + /** + * GitHub Repository Inventory Configuration. + * Dictionary of GitHub repository name to desired repository configuration. + * If AutoDiscovery is Enabled, this field should be null or empty. + */ + repositoryConfigs?: { [propertyName: string]: BaseResourceConfiguration }; +} + +/** GitLab Group Inventory Configuration. */ +export interface GitLabGroupConfiguration { + /** AutoDiscovery states. */ + autoDiscovery?: AutoDiscovery; + /** + * GitLab Project Inventory Configuration. + * Dictionary of GitLab fully-qualified project name to desired project configuration. + * If AutoDiscovery is Enabled, this field should be null or empty. + */ + projectConfigs?: { [propertyName: string]: BaseResourceConfiguration }; +} + /** The solution properties (correspond to the solution kind) */ export interface ExternalSecuritySolutionProperties { /** Describes unknown properties. The value of an unknown property can be of "any" type. */ @@ -3556,14 +3491,6 @@ export interface AlertsSuppressionRule extends Resource { suppressionAlertsScope?: SuppressionAlertsScope; } -/** Describes an Azure tracked resource. */ -export interface TrackedResource - extends Resource, - AzureTrackedResourceLocation, - KindAutoGenerated, - ETag, - Tags {} - /** Regulatory compliance standard details and state */ export interface RegulatoryComplianceStandard extends Resource { /** Aggregative state based on the standard's supported controls states */ @@ -3710,20 +3637,6 @@ export interface ConnectorSetting extends Resource { authenticationDetails?: AuthenticationDetailsPropertiesUnion; } -/** Contact details and configurations for notifications coming from Microsoft Defender for Cloud. */ -export interface SecurityContact extends Resource { - /** List of email addresses which will get notifications from Microsoft Defender for Cloud by the configurations defined in this security contact. */ - emails?: string; - /** The security contact's phone number */ - phone?: string; - /** Indicates whether the security contact is enabled. */ - isEnabled?: boolean; - /** A collection of sources types which evaluate the email notification. */ - notificationsSources?: NotificationsSourceUnion[]; - /** Defines whether to send email notifications from Microsoft Defender for Cloud to persons with specific RBAC roles on the subscription. */ - notificationsByRole?: SecurityContactPropertiesNotificationsByRole; -} - /** Represents a software data */ export interface Software extends Resource { /** Unique identifier for the virtual machine in the service. */ @@ -3873,28 +3786,8 @@ export interface Application extends Resource { /** The Defender for Storage resource. */ export interface DefenderForStorageSetting extends Resource { - /** Indicates whether Defender for Storage is enabled on this storage account. */ - isEnabledPropertiesIsEnabled?: boolean; - /** Indicates whether the settings defined for this storage account should override the settings defined for the subscription. */ - overrideSubscriptionLevelSettings?: boolean; - /** Indicates whether Sensitive Data Discovery should be enabled. */ - isEnabledPropertiesSensitiveDataDiscoveryIsEnabled?: boolean; - /** - * Upon failure or partial success. Additional data describing Sensitive Data Discovery enable/disable operation. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly operationStatusPropertiesSensitiveDataDiscoveryOperationStatus?: OperationStatus; - /** Optional. Resource id of an Event Grid Topic to send scan results to. */ - scanResultsEventGridTopicResourceId?: string; - /** - * Upon failure or partial success. Additional data describing Malware Scanning enable/disable operation. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly operationStatusPropertiesMalwareScanningOperationStatus?: OperationStatus; - /** Indicates whether On Upload malware scanning should be enabled. */ - isEnabledPropertiesMalwareScanningOnUploadIsEnabled?: boolean; - /** Defines the max GB to be scanned per Month. Set to -1 if no capping is needed. */ - capGBPerMonth?: number; + /** Defender for Storage resource properties. */ + properties?: DefenderForStorageSettingProperties; } /** Security operator under a given subscription and pricing */ @@ -3944,6 +3837,28 @@ export interface HealthReport extends Resource { issues?: Issue[]; } +/** Describes an Azure tracked resource. */ +export interface TrackedResource + extends Resource, + AzureTrackedResourceLocation, + KindAutoGenerated, + ETag, + Tags {} + +/** Contact details and configurations for notifications coming from Microsoft Defender for Cloud. */ +export interface SecurityContact extends Resource { + /** List of email addresses which will get notifications from Microsoft Defender for Cloud by the configurations defined in this security contact. */ + emails?: string; + /** The security contact's phone number */ + phone?: string; + /** Indicates whether the security contact is enabled. */ + isEnabled?: boolean; + /** A collection of sources types which evaluate the email notification. */ + notificationsSources?: NotificationsSourceUnion[]; + /** Defines whether to send email notifications from Microsoft Defender for Cloud to persons with specific RBAC roles on the subscription. */ + notificationsByRole?: SecurityContactPropertiesNotificationsByRole; +} + /** a compliance result */ export interface ComplianceResult extends Resource { /** @@ -4154,16 +4069,6 @@ export interface IoTSecuritySolutionModel extends Resource, TagsResource { additionalWorkspaces?: AdditionalWorkspacesProperties[]; } -/** The resource whose properties describes the Adaptive Network Hardening settings for some Azure resource */ -export interface AdaptiveNetworkHardening extends Resource { - /** The security rules which are recommended to be effective on the VM */ - rules?: Rule[]; - /** The UTC time on which the rules were calculated */ - rulesCalculationTime?: Date; - /** The Network Security Groups effective on the network interfaces of the protected resource */ - effectiveNetworkSecurityGroups?: EffectiveNetworkSecurityGroups[]; -} - /** The resource whose properties describes the allowed traffic between Azure resources */ export interface AllowedConnectionsResource extends Resource, Location { /** @@ -4178,32 +4083,6 @@ export interface AllowedConnectionsResource extends Resource, Location { readonly connectableResources?: ConnectableResource[]; } -export interface AdaptiveApplicationControlGroup extends Resource, Location { - /** The application control policy enforcement/protection mode of the machine group */ - enforcementMode?: EnforcementMode; - /** The protection mode of the collection/file types. Exe/Msi/Script are used for Windows, Executable is used for Linux. */ - protectionMode?: ProtectionMode; - /** - * The configuration status of the machines group or machine or rule - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly configurationStatus?: ConfigurationStatus; - /** - * The initial recommendation status of the machine group or machine - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly recommendationStatus?: RecommendationStatus; - /** NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly issues?: AdaptiveApplicationControlIssueSummary[]; - /** - * The source type of the machine group - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly sourceSystem?: SourceSystem; - vmRecommendations?: VmRecommendation[]; - pathRecommendations?: PathRecommendation[]; -} - export interface DiscoveredSecuritySolution extends Resource, Location { /** The security family of the discovered solution */ securityFamily: SecurityFamily; @@ -4739,55 +4618,6 @@ export interface SecurityAssessmentMetadata extends Resource { partnerData?: SecurityAssessmentMetadataPartnerData; } -/** The logic app action that should be triggered. To learn more about Microsoft Defender for Cloud's Workflow Automation capabilities, visit https://aka.ms/ASCWorkflowAutomationLearnMore */ -export interface AutomationActionLogicApp extends AutomationAction { - /** Polymorphic discriminator, which specifies the different types this object can be */ - actionType: "LogicApp"; - /** The triggered Logic App Azure Resource ID. This can also reside on other subscriptions, given that you have permissions to trigger the Logic App */ - logicAppResourceId?: string; - /** The Logic App trigger URI endpoint (it will not be included in any response). */ - uri?: string; -} - -/** The target Event Hub to which event data will be exported. To learn more about Microsoft Defender for Cloud continuous export capabilities, visit https://aka.ms/ASCExportLearnMore */ -export interface AutomationActionEventHub extends AutomationAction { - /** Polymorphic discriminator, which specifies the different types this object can be */ - actionType: "EventHub"; - /** The target Event Hub Azure Resource ID. */ - eventHubResourceId?: string; - /** - * The target Event Hub SAS policy name. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly sasPolicyName?: string; - /** The target Event Hub connection string (it will not be included in any response). */ - connectionString?: string; - /** Indicates whether the trusted service is enabled or not. */ - isTrustedServiceEnabled?: boolean; -} - -/** The�Log�Analytics�Workspace�to�which�event data will be exported. Security alerts data will reside in the 'SecurityAlert' table and the assessments data will reside in the 'SecurityRecommendation' table (under the 'Security'/'SecurityCenterFree' solutions). Note that in order to view the data in the workspace, the Security Center Log Analytics free/standard solution needs to be enabled on that workspace. To learn more about Microsoft Defender for Cloud continuous export capabilities, visit https://aka.ms/ASCExportLearnMore */ -export interface AutomationActionWorkspace extends AutomationAction { - /** Polymorphic discriminator, which specifies the different types this object can be */ - actionType: "Workspace"; - /** The fully qualified Log Analytics Workspace Azure Resource ID. */ - workspaceResourceId?: string; -} - -/** The update model of security automation resource. */ -export interface AutomationUpdateModel extends Tags { - /** The security automation description. */ - description?: string; - /** Indicates whether the security automation is enabled. */ - isEnabled?: boolean; - /** A collection of scopes on which the security automations logic is applied. Supported scopes are the subscription itself or a resource group under that subscription. The automation will only apply on defined scopes. */ - scopes?: AutomationScope[]; - /** A collection of the source event types which evaluate the security automation set of rules. */ - sources?: AutomationSource[]; - /** A collection of the actions which are triggered if all the configured rules evaluations, within at least one rule set, are true. */ - actions?: AutomationActionUnion[]; -} - /** Details of the Azure resource that was assessed */ export interface AzureResourceDetails extends ResourceDetails { /** Polymorphic discriminator, which specifies the different types this object can be */ @@ -4972,24 +4802,70 @@ export interface GcpCredentialsDetailsProperties clientX509CertUrl: string; } -/** Alert notification source */ -export interface NotificationsSourceAlert extends NotificationsSource { +/** The logic app action that should be triggered. To learn more about Microsoft Defender for Cloud's Workflow Automation capabilities, visit https://aka.ms/ASCWorkflowAutomationLearnMore */ +export interface AutomationActionLogicApp extends AutomationAction { /** Polymorphic discriminator, which specifies the different types this object can be */ - sourceType: "Alert"; - /** Defines the minimal alert severity which will be sent as email notifications */ - minimalSeverity?: MinimalSeverity; + actionType: "LogicApp"; + /** The triggered Logic App Azure Resource ID. This can also reside on other subscriptions, given that you have permissions to trigger the Logic App */ + logicAppResourceId?: string; + /** The Logic App trigger URI endpoint (it will not be included in any response). */ + uri?: string; } -/** Attack path notification source */ -export interface NotificationsSourceAttackPath extends NotificationsSource { +/** The target Event Hub to which event data will be exported. To learn more about Microsoft Defender for Cloud continuous export capabilities, visit https://aka.ms/ASCExportLearnMore */ +export interface AutomationActionEventHub extends AutomationAction { /** Polymorphic discriminator, which specifies the different types this object can be */ - sourceType: "AttackPath"; - /** Defines the minimal attach path risk level which will be sent as email notifications */ - minimalRiskLevel?: MinimalRiskLevel; + actionType: "EventHub"; + /** The target Event Hub Azure Resource ID. */ + eventHubResourceId?: string; + /** + * The target Event Hub SAS policy name. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly sasPolicyName?: string; + /** The target Event Hub connection string (it will not be included in any response). */ + connectionString?: string; + /** Indicates whether the trusted service is enabled or not. */ + isTrustedServiceEnabled?: boolean; } -/** The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location */ -export interface ProxyResource extends ResourceAutoGenerated {} +/** The Log Analytics Workspace to which event data will be exported. Security alerts data will reside in the 'SecurityAlert' table and the assessments data will reside in the 'SecurityRecommendation' table (under the 'Security'/'SecurityCenterFree' solutions). Note that in order to view the data in the workspace, the Security Center Log Analytics free/standard solution needs to be enabled on that workspace. To learn more about Microsoft Defender for Cloud continuous export capabilities, visit https://aka.ms/ASCExportLearnMore */ +export interface AutomationActionWorkspace extends AutomationAction { + /** Polymorphic discriminator, which specifies the different types this object can be */ + actionType: "Workspace"; + /** The fully qualified Log Analytics Workspace Azure Resource ID. */ + workspaceResourceId?: string; +} + +/** The update model of security automation resource. */ +export interface AutomationUpdateModel extends Tags { + /** The security automation description. */ + description?: string; + /** Indicates whether the security automation is enabled. */ + isEnabled?: boolean; + /** A collection of scopes on which the security automations logic is applied. Supported scopes are the subscription itself or a resource group under that subscription. The automation will only apply on defined scopes. */ + scopes?: AutomationScope[]; + /** A collection of the source event types which evaluate the security automation set of rules. */ + sources?: AutomationSource[]; + /** A collection of the actions which are triggered if all the configured rules evaluations, within at least one rule set, are true. */ + actions?: AutomationActionUnion[]; +} + +/** Alert notification source */ +export interface NotificationsSourceAlert extends NotificationsSource { + /** Polymorphic discriminator, which specifies the different types this object can be */ + sourceType: "Alert"; + /** Defines the minimal alert severity which will be sent as email notifications */ + minimalSeverity?: MinimalSeverity; +} + +/** Attack path notification source */ +export interface NotificationsSourceAttackPath extends NotificationsSource { + /** Polymorphic discriminator, which specifies the different types this object can be */ + sourceType: "AttackPath"; + /** Defines the minimal attach path risk level which will be sent as email notifications */ + minimalRiskLevel?: MinimalRiskLevel; +} /** The CSPM monitoring for AWS offering */ export interface CspmMonitorAwsOffering extends CloudOffering { @@ -5005,28 +4881,28 @@ export interface DefenderForContainersAwsOffering extends CloudOffering { offeringType: "DefenderForContainersAws"; /** The kubernetes service connection configuration */ kubernetesService?: DefenderForContainersAwsOfferingKubernetesService; - /** The kubernetes to scuba connection configuration */ - kubernetesScubaReader?: DefenderForContainersAwsOfferingKubernetesScubaReader; + /** The kubernetes data collection connection configuration */ + kubernetesDataCollection?: DefenderForContainersAwsOfferingKubernetesDataCollection; /** The cloudwatch to kinesis connection configuration */ cloudWatchToKinesis?: DefenderForContainersAwsOfferingCloudWatchToKinesis; /** The kinesis to s3 connection configuration */ kinesisToS3?: DefenderForContainersAwsOfferingKinesisToS3; - /** The container vulnerability assessment configuration */ - containerVulnerabilityAssessment?: DefenderForContainersAwsOfferingContainerVulnerabilityAssessment; - /** The container vulnerability assessment task configuration */ - containerVulnerabilityAssessmentTask?: DefenderForContainersAwsOfferingContainerVulnerabilityAssessmentTask; - /** Enable container vulnerability assessment feature */ - enableContainerVulnerabilityAssessment?: boolean; - /** Is audit logs pipeline auto provisioning enabled */ - autoProvisioning?: boolean; + /** Is audit logs data collection enabled */ + enableAuditLogsAutoProvisioning?: boolean; + /** Is Microsoft Defender for Cloud Kubernetes agent auto provisioning enabled */ + enableDefenderAgentAutoProvisioning?: boolean; + /** Is Policy Kubernetes agent auto provisioning enabled */ + enablePolicyAgentAutoProvisioning?: boolean; /** The retention time in days of kube audit logs set on the CloudWatch log group */ kubeAuditRetentionTime?: number; /** The externalId used by the data reader to prevent the confused deputy attack */ - scubaExternalId?: string; + dataCollectionExternalId?: string; /** The Microsoft Defender container image assessment configuration */ mdcContainersImageAssessment?: DefenderForContainersAwsOfferingMdcContainersImageAssessment; /** The Microsoft Defender container agentless discovery K8s configuration */ mdcContainersAgentlessDiscoveryK8S?: DefenderForContainersAwsOfferingMdcContainersAgentlessDiscoveryK8S; + /** The Microsoft Defender for Container K8s VM host scanning configuration */ + vmScanners?: DefenderForContainersAwsOfferingVmScanners; } /** The Defender for Servers AWS offering */ @@ -5059,14 +4935,6 @@ export interface DefenderFoDatabasesAwsOffering extends CloudOffering { databasesDspm?: DefenderFoDatabasesAwsOfferingDatabasesDspm; } -/** The information protection for AWS offering */ -export interface InformationProtectionAwsOffering extends CloudOffering { - /** Polymorphic discriminator, which specifies the different types this object can be */ - offeringType: "InformationProtectionAws"; - /** The native cloud connection configuration */ - informationProtection?: InformationProtectionAwsOfferingInformationProtection; -} - /** The CSPM monitoring for GCP offering */ export interface CspmMonitorGcpOffering extends CloudOffering { /** Polymorphic discriminator, which specifies the different types this object can be */ @@ -5112,15 +4980,17 @@ export interface DefenderForContainersGcpOffering extends CloudOffering { /** The native cloud connection configuration */ dataPipelineNativeCloudConnection?: DefenderForContainersGcpOfferingDataPipelineNativeCloudConnection; /** Is audit logs data collection enabled */ - auditLogsAutoProvisioningFlag?: boolean; + enableAuditLogsAutoProvisioning?: boolean; /** Is Microsoft Defender for Cloud Kubernetes agent auto provisioning enabled */ - defenderAgentAutoProvisioningFlag?: boolean; + enableDefenderAgentAutoProvisioning?: boolean; /** Is Policy Kubernetes agent auto provisioning enabled */ - policyAgentAutoProvisioningFlag?: boolean; + enablePolicyAgentAutoProvisioning?: boolean; /** The Microsoft Defender Container image assessment configuration */ mdcContainersImageAssessment?: DefenderForContainersGcpOfferingMdcContainersImageAssessment; /** The Microsoft Defender Container agentless discovery configuration */ mdcContainersAgentlessDiscoveryK8S?: DefenderForContainersGcpOfferingMdcContainersAgentlessDiscoveryK8S; + /** The Microsoft Defender for Container K8s VM host scanning configuration */ + vmScanners?: DefenderForContainersGcpOfferingVmScanners; } /** The CSPM monitoring for github offering */ @@ -5139,13 +5009,13 @@ export interface CspmMonitorAzureDevOpsOffering extends CloudOffering { export interface DefenderCspmAwsOffering extends CloudOffering { /** Polymorphic discriminator, which specifies the different types this object can be */ offeringType: "DefenderCspmAws"; - /** The Microsoft Defender for Server VM scanning configuration */ + /** The Microsoft Defender for CSPM offering VM scanning configuration */ vmScanners?: DefenderCspmAwsOfferingVmScanners; /** The Microsoft Defender Data Sensitivity discovery configuration */ dataSensitivityDiscovery?: DefenderCspmAwsOfferingDataSensitivityDiscovery; /** The databases DSPM configuration */ databasesDspm?: DefenderCspmAwsOfferingDatabasesDspm; - /** Defenders CSPM Cloud infrastructure entitlement management (CIEM) offering configurations */ + /** Defenders CSPM Permissions Management offering configurations */ ciem?: DefenderCspmAwsOfferingCiem; /** The Microsoft Defender container image assessment configuration */ mdcContainersImageAssessment?: DefenderCspmAwsOfferingMdcContainersImageAssessment; @@ -5157,9 +5027,9 @@ export interface DefenderCspmAwsOffering extends CloudOffering { export interface DefenderCspmGcpOffering extends CloudOffering { /** Polymorphic discriminator, which specifies the different types this object can be */ offeringType: "DefenderCspmGcp"; - /** GCP Defenders CSPM Cloud infrastructure entitlement management (CIEM) discovery offering configurations */ + /** GCP Defenders CSPM Permissions Management OIDC (Open ID connect) connection configurations */ ciemDiscovery?: DefenderCspmGcpOfferingCiemDiscovery; - /** The Microsoft Defender for Server VM scanning configuration */ + /** The Microsoft Defender for CSPM VM scanning configuration */ vmScanners?: DefenderCspmGcpOfferingVmScanners; /** The Microsoft Defender Data Sensitivity discovery configuration */ dataSensitivityDiscovery?: DefenderCspmGcpOfferingDataSensitivityDiscovery; @@ -5169,30 +5039,12 @@ export interface DefenderCspmGcpOffering extends CloudOffering { mdcContainersAgentlessDiscoveryK8S?: DefenderCspmGcpOfferingMdcContainersAgentlessDiscoveryK8S; } -/** The Defender for DevOps for Github offering */ -export interface DefenderForDevOpsGithubOffering extends CloudOffering { - /** Polymorphic discriminator, which specifies the different types this object can be */ - offeringType: "DefenderForDevOpsGithub"; -} - -/** The Defender for DevOps for Azure DevOps offering */ -export interface DefenderForDevOpsAzureDevOpsOffering extends CloudOffering { - /** Polymorphic discriminator, which specifies the different types this object can be */ - offeringType: "DefenderForDevOpsAzureDevOps"; -} - /** The CSPM (Cloud security posture management) monitoring for gitlab offering */ export interface CspmMonitorGitLabOffering extends CloudOffering { /** Polymorphic discriminator, which specifies the different types this object can be */ offeringType: "CspmMonitorGitLab"; } -/** The Defender for DevOps for Gitlab offering */ -export interface DefenderForDevOpsGitLabOffering extends CloudOffering { - /** Polymorphic discriminator, which specifies the different types this object can be */ - offeringType: "DefenderForDevOpsGitLab"; -} - /** The AWS connector environment data */ export interface AwsEnvironmentData extends EnvironmentData { /** Polymorphic discriminator, which specifies the different types this object can be */ @@ -5240,6 +5092,9 @@ export interface GitlabScopeEnvironmentData extends EnvironmentData { environmentType: "GitlabScope"; } +/** The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location */ +export interface ProxyResource extends ResourceAutoGenerated {} + /** A custom alert rule that checks if a value (depends on the custom alert type) is within the given range. */ export interface ThresholdCustomAlertRule extends CustomAlertRule { /** Polymorphic discriminator, which specifies the different types this object can be */ @@ -5429,6 +5284,24 @@ export interface GcpOrganizationalDataMember extends GcpOrganizationalData { managementProjectNumber?: string; } +/** A VM scanning configuration for a security offering of a Aws environment */ +export interface VmScannersAws extends VmScannersBase { + /** The cloud role ARN in AWS for this feature */ + cloudRoleArn?: string; +} + +/** A VM scanning configuration for a security offering of a GCP environment */ +export interface VmScannersGcp extends VmScannersBase {} + +/** The ARC autoprovisioning configuration for an AWS environment */ +export interface ArcAutoProvisioningAws extends ArcAutoProvisioning { + /** The cloud role ARN in AWS for this feature */ + cloudRoleArn?: string; +} + +/** The ARC autoprovisioning configuration for an GCP environment */ +export interface ArcAutoProvisioningGcp extends ArcAutoProvisioning {} + /** The external security solution properties for CEF solutions */ export interface CefSolutionProperties extends ExternalSecuritySolutionProperties { @@ -5572,6 +5445,28 @@ export interface DevOpsConfiguration extends ProxyResource { properties?: DevOpsConfigurationProperties; } +/** DevOps Policy Resource. */ +export interface DevOpsPolicy extends ProxyResource { + /** + * Metadata pertaining to creation and last modification of the resource. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly systemData?: SystemData; + /** Policy DevOps Resource properties that contain the full definition of a DevOps policy resource. */ + properties?: DevOpsPolicyProperties; +} + +/** DevOps Policy assignment resource. */ +export interface DevOpsPolicyAssignment extends ProxyResource { + /** + * Metadata pertaining to creation and last modification of the resource. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly systemData?: SystemData; + /** Properties of the DevOps policy assignment resource. */ + properties?: DevOpsPolicyAssignmentProperties; +} + /** GitHub Owner resource. */ export interface GitHubOwner extends ProxyResource { /** @@ -5671,6 +5566,44 @@ export interface AzureServersSetting selectedProvider?: ServerVulnerabilityAssessmentsAzureSettingSelectedProvider; } +/** The Microsoft Defender for Container K8s VM host scanning configuration */ +export interface DefenderForContainersAwsOfferingVmScanners + extends VmScannersAws {} + +/** The Microsoft Defender for Server VM scanning configuration */ +export interface DefenderForServersAwsOfferingVmScanners + extends VmScannersAws {} + +/** The Microsoft Defender for CSPM offering VM scanning configuration */ +export interface DefenderCspmAwsOfferingVmScanners extends VmScannersAws {} + +/** The Microsoft Defender for Server VM scanning configuration */ +export interface DefenderForServersGcpOfferingVmScanners + extends VmScannersGcp {} + +/** The Microsoft Defender for Container K8s VM host scanning configuration */ +export interface DefenderForContainersGcpOfferingVmScanners + extends VmScannersGcp {} + +/** The Microsoft Defender for CSPM VM scanning configuration */ +export interface DefenderCspmGcpOfferingVmScanners extends VmScannersGcp {} + +/** The ARC autoprovisioning configuration */ +export interface DefenderForServersAwsOfferingArcAutoProvisioning + extends ArcAutoProvisioningAws {} + +/** The ARC autoprovisioning configuration */ +export interface DefenderFoDatabasesAwsOfferingArcAutoProvisioning + extends ArcAutoProvisioningAws {} + +/** The ARC autoprovisioning configuration */ +export interface DefenderForServersGcpOfferingArcAutoProvisioning + extends ArcAutoProvisioningGcp {} + +/** The ARC autoprovisioning configuration */ +export interface DefenderForDatabasesGcpOfferingArcAutoProvisioning + extends ArcAutoProvisioningGcp {} + /** Number of active connections is not in allowed range. */ export interface ActiveConnectionsNotInAllowedRange extends TimeWindowCustomAlertRule { @@ -5893,141 +5826,6 @@ export enum KnownInformationProtectionPolicyName { */ export type InformationProtectionPolicyName = string; -/** Known values of {@link EventSource} that the service accepts. */ -export enum KnownEventSource { - /** Assessments */ - Assessments = "Assessments", - /** AssessmentsSnapshot */ - AssessmentsSnapshot = "AssessmentsSnapshot", - /** SubAssessments */ - SubAssessments = "SubAssessments", - /** SubAssessmentsSnapshot */ - SubAssessmentsSnapshot = "SubAssessmentsSnapshot", - /** Alerts */ - Alerts = "Alerts", - /** SecureScores */ - SecureScores = "SecureScores", - /** SecureScoresSnapshot */ - SecureScoresSnapshot = "SecureScoresSnapshot", - /** SecureScoreControls */ - SecureScoreControls = "SecureScoreControls", - /** SecureScoreControlsSnapshot */ - SecureScoreControlsSnapshot = "SecureScoreControlsSnapshot", - /** RegulatoryComplianceAssessment */ - RegulatoryComplianceAssessment = "RegulatoryComplianceAssessment", - /** RegulatoryComplianceAssessmentSnapshot */ - RegulatoryComplianceAssessmentSnapshot = "RegulatoryComplianceAssessmentSnapshot", - /** AttackPaths */ - AttackPaths = "AttackPaths", - /** AttackPathsSnapshot */ - AttackPathsSnapshot = "AttackPathsSnapshot", -} - -/** - * Defines values for EventSource. \ - * {@link KnownEventSource} can be used interchangeably with EventSource, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Assessments** \ - * **AssessmentsSnapshot** \ - * **SubAssessments** \ - * **SubAssessmentsSnapshot** \ - * **Alerts** \ - * **SecureScores** \ - * **SecureScoresSnapshot** \ - * **SecureScoreControls** \ - * **SecureScoreControlsSnapshot** \ - * **RegulatoryComplianceAssessment** \ - * **RegulatoryComplianceAssessmentSnapshot** \ - * **AttackPaths** \ - * **AttackPathsSnapshot** - */ -export type EventSource = string; - -/** Known values of {@link PropertyType} that the service accepts. */ -export enum KnownPropertyType { - /** String */ - String = "String", - /** Integer */ - Integer = "Integer", - /** Number */ - Number = "Number", - /** Boolean */ - Boolean = "Boolean", -} - -/** - * Defines values for PropertyType. \ - * {@link KnownPropertyType} can be used interchangeably with PropertyType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **String** \ - * **Integer** \ - * **Number** \ - * **Boolean** - */ -export type PropertyType = string; - -/** Known values of {@link Operator} that the service accepts. */ -export enum KnownOperator { - /** Applies for decimal and non-decimal operands */ - Equals = "Equals", - /** Applies only for decimal operands */ - GreaterThan = "GreaterThan", - /** Applies only for decimal operands */ - GreaterThanOrEqualTo = "GreaterThanOrEqualTo", - /** Applies only for decimal operands */ - LesserThan = "LesserThan", - /** Applies only for decimal operands */ - LesserThanOrEqualTo = "LesserThanOrEqualTo", - /** Applies for decimal and non-decimal operands */ - NotEquals = "NotEquals", - /** Applies only for non-decimal operands */ - Contains = "Contains", - /** Applies only for non-decimal operands */ - StartsWith = "StartsWith", - /** Applies only for non-decimal operands */ - EndsWith = "EndsWith", -} - -/** - * Defines values for Operator. \ - * {@link KnownOperator} can be used interchangeably with Operator, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Equals**: Applies for decimal and non-decimal operands \ - * **GreaterThan**: Applies only for decimal operands \ - * **GreaterThanOrEqualTo**: Applies only for decimal operands \ - * **LesserThan**: Applies only for decimal operands \ - * **LesserThanOrEqualTo**: Applies only for decimal operands \ - * **NotEquals**: Applies for decimal and non-decimal operands \ - * **Contains**: Applies only for non-decimal operands \ - * **StartsWith**: Applies only for non-decimal operands \ - * **EndsWith**: Applies only for non-decimal operands - */ -export type Operator = string; - -/** Known values of {@link ActionType} that the service accepts. */ -export enum KnownActionType { - /** LogicApp */ - LogicApp = "LogicApp", - /** EventHub */ - EventHub = "EventHub", - /** Workspace */ - Workspace = "Workspace", -} - -/** - * Defines values for ActionType. \ - * {@link KnownActionType} can be used interchangeably with ActionType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **LogicApp** \ - * **EventHub** \ - * **Workspace** - */ -export type ActionType = string; - /** Known values of {@link State} that the service accepts. */ export enum KnownState { /** All supported regulatory compliance controls in the given standard have a passed state */ @@ -6226,80 +6024,23 @@ export enum KnownAuthenticationType { */ export type AuthenticationType = string; -/** Known values of {@link SourceType} that the service accepts. */ -export enum KnownSourceType { - /** Alert */ - Alert = "Alert", - /** AttackPath */ - AttackPath = "AttackPath", +/** Known values of {@link EndOfSupportStatus} that the service accepts. */ +export enum KnownEndOfSupportStatus { + /** None */ + None = "None", + /** NoLongerSupported */ + NoLongerSupported = "noLongerSupported", + /** VersionNoLongerSupported */ + VersionNoLongerSupported = "versionNoLongerSupported", + /** UpcomingNoLongerSupported */ + UpcomingNoLongerSupported = "upcomingNoLongerSupported", + /** UpcomingVersionNoLongerSupported */ + UpcomingVersionNoLongerSupported = "upcomingVersionNoLongerSupported", } /** - * Defines values for SourceType. \ - * {@link KnownSourceType} can be used interchangeably with SourceType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Alert** \ - * **AttackPath** - */ -export type SourceType = string; - -/** Known values of {@link SecurityContactRole} that the service accepts. */ -export enum KnownSecurityContactRole { - /** If enabled, send notification on new alerts to the account admins */ - AccountAdmin = "AccountAdmin", - /** If enabled, send notification on new alerts to the service admins */ - ServiceAdmin = "ServiceAdmin", - /** If enabled, send notification on new alerts to the subscription owners */ - Owner = "Owner", - /** If enabled, send notification on new alerts to the subscription contributors */ - Contributor = "Contributor", -} - -/** - * Defines values for SecurityContactRole. \ - * {@link KnownSecurityContactRole} can be used interchangeably with SecurityContactRole, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **AccountAdmin**: If enabled, send notification on new alerts to the account admins \ - * **ServiceAdmin**: If enabled, send notification on new alerts to the service admins \ - * **Owner**: If enabled, send notification on new alerts to the subscription owners \ - * **Contributor**: If enabled, send notification on new alerts to the subscription contributors - */ -export type SecurityContactRole = string; - -/** Known values of {@link SecurityContactName} that the service accepts. */ -export enum KnownSecurityContactName { - /** The single applicable name of the security contact object */ - Default = "default", -} - -/** - * Defines values for SecurityContactName. \ - * {@link KnownSecurityContactName} can be used interchangeably with SecurityContactName, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **default**: The single applicable name of the security contact object - */ -export type SecurityContactName = string; - -/** Known values of {@link EndOfSupportStatus} that the service accepts. */ -export enum KnownEndOfSupportStatus { - /** None */ - None = "None", - /** NoLongerSupported */ - NoLongerSupported = "noLongerSupported", - /** VersionNoLongerSupported */ - VersionNoLongerSupported = "versionNoLongerSupported", - /** UpcomingNoLongerSupported */ - UpcomingNoLongerSupported = "upcomingNoLongerSupported", - /** UpcomingVersionNoLongerSupported */ - UpcomingVersionNoLongerSupported = "upcomingVersionNoLongerSupported", -} - -/** - * Defines values for EndOfSupportStatus. \ - * {@link KnownEndOfSupportStatus} can be used interchangeably with EndOfSupportStatus, + * Defines values for EndOfSupportStatus. \ + * {@link KnownEndOfSupportStatus} can be used interchangeably with EndOfSupportStatus, * this enum contains the known values that the service supports. * ### Known values supported by the service * **None** \ @@ -6634,6 +6375,306 @@ export enum KnownStatusName { */ export type StatusName = string; +/** Known values of {@link EventSource} that the service accepts. */ +export enum KnownEventSource { + /** Assessments */ + Assessments = "Assessments", + /** AssessmentsSnapshot */ + AssessmentsSnapshot = "AssessmentsSnapshot", + /** SubAssessments */ + SubAssessments = "SubAssessments", + /** SubAssessmentsSnapshot */ + SubAssessmentsSnapshot = "SubAssessmentsSnapshot", + /** Alerts */ + Alerts = "Alerts", + /** SecureScores */ + SecureScores = "SecureScores", + /** SecureScoresSnapshot */ + SecureScoresSnapshot = "SecureScoresSnapshot", + /** SecureScoreControls */ + SecureScoreControls = "SecureScoreControls", + /** SecureScoreControlsSnapshot */ + SecureScoreControlsSnapshot = "SecureScoreControlsSnapshot", + /** RegulatoryComplianceAssessment */ + RegulatoryComplianceAssessment = "RegulatoryComplianceAssessment", + /** RegulatoryComplianceAssessmentSnapshot */ + RegulatoryComplianceAssessmentSnapshot = "RegulatoryComplianceAssessmentSnapshot", + /** AttackPaths */ + AttackPaths = "AttackPaths", + /** AttackPathsSnapshot */ + AttackPathsSnapshot = "AttackPathsSnapshot", +} + +/** + * Defines values for EventSource. \ + * {@link KnownEventSource} can be used interchangeably with EventSource, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Assessments** \ + * **AssessmentsSnapshot** \ + * **SubAssessments** \ + * **SubAssessmentsSnapshot** \ + * **Alerts** \ + * **SecureScores** \ + * **SecureScoresSnapshot** \ + * **SecureScoreControls** \ + * **SecureScoreControlsSnapshot** \ + * **RegulatoryComplianceAssessment** \ + * **RegulatoryComplianceAssessmentSnapshot** \ + * **AttackPaths** \ + * **AttackPathsSnapshot** + */ +export type EventSource = string; + +/** Known values of {@link PropertyType} that the service accepts. */ +export enum KnownPropertyType { + /** String */ + String = "String", + /** Integer */ + Integer = "Integer", + /** Number */ + Number = "Number", + /** Boolean */ + Boolean = "Boolean", +} + +/** + * Defines values for PropertyType. \ + * {@link KnownPropertyType} can be used interchangeably with PropertyType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **String** \ + * **Integer** \ + * **Number** \ + * **Boolean** + */ +export type PropertyType = string; + +/** Known values of {@link Operator} that the service accepts. */ +export enum KnownOperator { + /** Applies for decimal and non-decimal operands */ + Equals = "Equals", + /** Applies only for decimal operands */ + GreaterThan = "GreaterThan", + /** Applies only for decimal operands */ + GreaterThanOrEqualTo = "GreaterThanOrEqualTo", + /** Applies only for decimal operands */ + LesserThan = "LesserThan", + /** Applies only for decimal operands */ + LesserThanOrEqualTo = "LesserThanOrEqualTo", + /** Applies for decimal and non-decimal operands */ + NotEquals = "NotEquals", + /** Applies only for non-decimal operands */ + Contains = "Contains", + /** Applies only for non-decimal operands */ + StartsWith = "StartsWith", + /** Applies only for non-decimal operands */ + EndsWith = "EndsWith", +} + +/** + * Defines values for Operator. \ + * {@link KnownOperator} can be used interchangeably with Operator, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Equals**: Applies for decimal and non-decimal operands \ + * **GreaterThan**: Applies only for decimal operands \ + * **GreaterThanOrEqualTo**: Applies only for decimal operands \ + * **LesserThan**: Applies only for decimal operands \ + * **LesserThanOrEqualTo**: Applies only for decimal operands \ + * **NotEquals**: Applies for decimal and non-decimal operands \ + * **Contains**: Applies only for non-decimal operands \ + * **StartsWith**: Applies only for non-decimal operands \ + * **EndsWith**: Applies only for non-decimal operands + */ +export type Operator = string; + +/** Known values of {@link ActionType} that the service accepts. */ +export enum KnownActionType { + /** LogicApp */ + LogicApp = "LogicApp", + /** EventHub */ + EventHub = "EventHub", + /** Workspace */ + Workspace = "Workspace", +} + +/** + * Defines values for ActionType. \ + * {@link KnownActionType} can be used interchangeably with ActionType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **LogicApp** \ + * **EventHub** \ + * **Workspace** + */ +export type ActionType = string; + +/** Known values of {@link SourceType} that the service accepts. */ +export enum KnownSourceType { + /** Alert */ + Alert = "Alert", + /** AttackPath */ + AttackPath = "AttackPath", +} + +/** + * Defines values for SourceType. \ + * {@link KnownSourceType} can be used interchangeably with SourceType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Alert** \ + * **AttackPath** + */ +export type SourceType = string; + +/** Known values of {@link SecurityContactRole} that the service accepts. */ +export enum KnownSecurityContactRole { + /** If enabled, send notification on new alerts to the account admins */ + AccountAdmin = "AccountAdmin", + /** If enabled, send notification on new alerts to the service admins */ + ServiceAdmin = "ServiceAdmin", + /** If enabled, send notification on new alerts to the subscription owners */ + Owner = "Owner", + /** If enabled, send notification on new alerts to the subscription contributors */ + Contributor = "Contributor", +} + +/** + * Defines values for SecurityContactRole. \ + * {@link KnownSecurityContactRole} can be used interchangeably with SecurityContactRole, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **AccountAdmin**: If enabled, send notification on new alerts to the account admins \ + * **ServiceAdmin**: If enabled, send notification on new alerts to the service admins \ + * **Owner**: If enabled, send notification on new alerts to the subscription owners \ + * **Contributor**: If enabled, send notification on new alerts to the subscription contributors + */ +export type SecurityContactRole = string; + +/** Known values of {@link SecurityContactName} that the service accepts. */ +export enum KnownSecurityContactName { + /** The single applicable name of the security contact object */ + Default = "default", +} + +/** + * Defines values for SecurityContactName. \ + * {@link KnownSecurityContactName} can be used interchangeably with SecurityContactName, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **default**: The single applicable name of the security contact object + */ +export type SecurityContactName = string; + +/** Known values of {@link CloudName} that the service accepts. */ +export enum KnownCloudName { + /** Azure */ + Azure = "Azure", + /** AWS */ + AWS = "AWS", + /** GCP */ + GCP = "GCP", + /** Github */ + Github = "Github", + /** AzureDevOps */ + AzureDevOps = "AzureDevOps", + /** GitLab */ + GitLab = "GitLab", +} + +/** + * Defines values for CloudName. \ + * {@link KnownCloudName} can be used interchangeably with CloudName, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Azure** \ + * **AWS** \ + * **GCP** \ + * **Github** \ + * **AzureDevOps** \ + * **GitLab** + */ +export type CloudName = string; + +/** Known values of {@link OfferingType} that the service accepts. */ +export enum KnownOfferingType { + /** CspmMonitorAws */ + CspmMonitorAws = "CspmMonitorAws", + /** DefenderForContainersAws */ + DefenderForContainersAws = "DefenderForContainersAws", + /** DefenderForServersAws */ + DefenderForServersAws = "DefenderForServersAws", + /** DefenderForDatabasesAws */ + DefenderForDatabasesAws = "DefenderForDatabasesAws", + /** CspmMonitorGcp */ + CspmMonitorGcp = "CspmMonitorGcp", + /** CspmMonitorGithub */ + CspmMonitorGithub = "CspmMonitorGithub", + /** CspmMonitorAzureDevOps */ + CspmMonitorAzureDevOps = "CspmMonitorAzureDevOps", + /** DefenderForServersGcp */ + DefenderForServersGcp = "DefenderForServersGcp", + /** DefenderForContainersGcp */ + DefenderForContainersGcp = "DefenderForContainersGcp", + /** DefenderForDatabasesGcp */ + DefenderForDatabasesGcp = "DefenderForDatabasesGcp", + /** DefenderCspmAws */ + DefenderCspmAws = "DefenderCspmAws", + /** DefenderCspmGcp */ + DefenderCspmGcp = "DefenderCspmGcp", + /** CspmMonitorGitLab */ + CspmMonitorGitLab = "CspmMonitorGitLab", +} + +/** + * Defines values for OfferingType. \ + * {@link KnownOfferingType} can be used interchangeably with OfferingType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **CspmMonitorAws** \ + * **DefenderForContainersAws** \ + * **DefenderForServersAws** \ + * **DefenderForDatabasesAws** \ + * **CspmMonitorGcp** \ + * **CspmMonitorGithub** \ + * **CspmMonitorAzureDevOps** \ + * **DefenderForServersGcp** \ + * **DefenderForContainersGcp** \ + * **DefenderForDatabasesGcp** \ + * **DefenderCspmAws** \ + * **DefenderCspmGcp** \ + * **CspmMonitorGitLab** + */ +export type OfferingType = string; + +/** Known values of {@link EnvironmentType} that the service accepts. */ +export enum KnownEnvironmentType { + /** AwsAccount */ + AwsAccount = "AwsAccount", + /** GcpProject */ + GcpProject = "GcpProject", + /** GithubScope */ + GithubScope = "GithubScope", + /** AzureDevOpsScope */ + AzureDevOpsScope = "AzureDevOpsScope", + /** GitlabScope */ + GitlabScope = "GitlabScope", +} + +/** + * Defines values for EnvironmentType. \ + * {@link KnownEnvironmentType} can be used interchangeably with EnvironmentType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **AwsAccount** \ + * **GcpProject** \ + * **GithubScope** \ + * **AzureDevOpsScope** \ + * **GitlabScope** + */ +export type EnvironmentType = string; + /** Known values of {@link DevOpsProvisioningState} that the service accepts. */ export enum KnownDevOpsProvisioningState { /** Succeeded */ @@ -6791,133 +6832,73 @@ export enum KnownAutoDiscovery { /** * Defines values for AutoDiscovery. \ * {@link KnownAutoDiscovery} can be used interchangeably with AutoDiscovery, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Disabled** \ - * **Enabled** \ - * **NotApplicable** - */ -export type AutoDiscovery = string; - -/** Known values of {@link CloudName} that the service accepts. */ -export enum KnownCloudName { - /** Azure */ - Azure = "Azure", - /** AWS */ - AWS = "AWS", - /** GCP */ - GCP = "GCP", - /** Github */ - Github = "Github", - /** AzureDevOps */ - AzureDevOps = "AzureDevOps", - /** GitLab */ - GitLab = "GitLab", -} - -/** - * Defines values for CloudName. \ - * {@link KnownCloudName} can be used interchangeably with CloudName, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Azure** \ - * **AWS** \ - * **GCP** \ - * **Github** \ - * **AzureDevOps** \ - * **GitLab** - */ -export type CloudName = string; - -/** Known values of {@link OfferingType} that the service accepts. */ -export enum KnownOfferingType { - /** CspmMonitorAws */ - CspmMonitorAws = "CspmMonitorAws", - /** DefenderForContainersAws */ - DefenderForContainersAws = "DefenderForContainersAws", - /** DefenderForServersAws */ - DefenderForServersAws = "DefenderForServersAws", - /** DefenderForDatabasesAws */ - DefenderForDatabasesAws = "DefenderForDatabasesAws", - /** InformationProtectionAws */ - InformationProtectionAws = "InformationProtectionAws", - /** CspmMonitorGcp */ - CspmMonitorGcp = "CspmMonitorGcp", - /** CspmMonitorGithub */ - CspmMonitorGithub = "CspmMonitorGithub", - /** CspmMonitorAzureDevOps */ - CspmMonitorAzureDevOps = "CspmMonitorAzureDevOps", - /** DefenderForServersGcp */ - DefenderForServersGcp = "DefenderForServersGcp", - /** DefenderForContainersGcp */ - DefenderForContainersGcp = "DefenderForContainersGcp", - /** DefenderForDatabasesGcp */ - DefenderForDatabasesGcp = "DefenderForDatabasesGcp", - /** DefenderCspmAws */ - DefenderCspmAws = "DefenderCspmAws", - /** DefenderCspmGcp */ - DefenderCspmGcp = "DefenderCspmGcp", - /** DefenderForDevOpsGithub */ - DefenderForDevOpsGithub = "DefenderForDevOpsGithub", - /** DefenderForDevOpsAzureDevOps */ - DefenderForDevOpsAzureDevOps = "DefenderForDevOpsAzureDevOps", - /** CspmMonitorGitLab */ - CspmMonitorGitLab = "CspmMonitorGitLab", - /** DefenderForDevOpsGitLab */ - DefenderForDevOpsGitLab = "DefenderForDevOpsGitLab", + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Disabled** \ + * **Enabled** \ + * **NotApplicable** + */ +export type AutoDiscovery = string; + +/** Known values of {@link DevOpsPolicySource} that the service accepts. */ +export enum KnownDevOpsPolicySource { + /** Unknown */ + Unknown = "Unknown", + /** BuiltIn */ + BuiltIn = "BuiltIn", + /** UserDefined */ + UserDefined = "UserDefined", } /** - * Defines values for OfferingType. \ - * {@link KnownOfferingType} can be used interchangeably with OfferingType, + * Defines values for DevOpsPolicySource. \ + * {@link KnownDevOpsPolicySource} can be used interchangeably with DevOpsPolicySource, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **CspmMonitorAws** \ - * **DefenderForContainersAws** \ - * **DefenderForServersAws** \ - * **DefenderForDatabasesAws** \ - * **InformationProtectionAws** \ - * **CspmMonitorGcp** \ - * **CspmMonitorGithub** \ - * **CspmMonitorAzureDevOps** \ - * **DefenderForServersGcp** \ - * **DefenderForContainersGcp** \ - * **DefenderForDatabasesGcp** \ - * **DefenderCspmAws** \ - * **DefenderCspmGcp** \ - * **DefenderForDevOpsGithub** \ - * **DefenderForDevOpsAzureDevOps** \ - * **CspmMonitorGitLab** \ - * **DefenderForDevOpsGitLab** + * **Unknown** \ + * **BuiltIn** \ + * **UserDefined** */ -export type OfferingType = string; +export type DevOpsPolicySource = string; -/** Known values of {@link EnvironmentType} that the service accepts. */ -export enum KnownEnvironmentType { - /** AwsAccount */ - AwsAccount = "AwsAccount", - /** GcpProject */ - GcpProject = "GcpProject", - /** GithubScope */ - GithubScope = "GithubScope", - /** AzureDevOpsScope */ - AzureDevOpsScope = "AzureDevOpsScope", - /** GitlabScope */ - GitlabScope = "GitlabScope", +/** Known values of {@link DevOpsPolicyType} that the service accepts. */ +export enum KnownDevOpsPolicyType { + /** Unknown */ + Unknown = "Unknown", + /** Pipeline */ + Pipeline = "Pipeline", } /** - * Defines values for EnvironmentType. \ - * {@link KnownEnvironmentType} can be used interchangeably with EnvironmentType, + * Defines values for DevOpsPolicyType. \ + * {@link KnownDevOpsPolicyType} can be used interchangeably with DevOpsPolicyType, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **AwsAccount** \ - * **GcpProject** \ - * **GithubScope** \ - * **AzureDevOpsScope** \ - * **GitlabScope** + * **Unknown** \ + * **Pipeline** */ -export type EnvironmentType = string; +export type DevOpsPolicyType = string; + +/** Known values of {@link DescendantBehavior} that the service accepts. */ +export enum KnownDescendantBehavior { + /** Unknown */ + Unknown = "Unknown", + /** Override */ + Override = "Override", + /** FallBack */ + FallBack = "FallBack", +} + +/** + * Defines values for DescendantBehavior. \ + * {@link KnownDescendantBehavior} can be used interchangeably with DescendantBehavior, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Unknown** \ + * **Override** \ + * **FallBack** + */ +export type DescendantBehavior = string; /** Known values of {@link ResourceStatus} that the service accepts. */ export enum KnownResourceStatus { @@ -7162,42 +7143,6 @@ export enum KnownAdditionalWorkspaceDataType { */ export type AdditionalWorkspaceDataType = string; -/** Known values of {@link Direction} that the service accepts. */ -export enum KnownDirection { - /** Inbound */ - Inbound = "Inbound", - /** Outbound */ - Outbound = "Outbound", -} - -/** - * Defines values for Direction. \ - * {@link KnownDirection} can be used interchangeably with Direction, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Inbound** \ - * **Outbound** - */ -export type Direction = string; - -/** Known values of {@link TransportProtocol} that the service accepts. */ -export enum KnownTransportProtocol { - /** TCP */ - TCP = "TCP", - /** UDP */ - UDP = "UDP", -} - -/** - * Defines values for TransportProtocol. \ - * {@link KnownTransportProtocol} can be used interchangeably with TransportProtocol, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **TCP** \ - * **UDP** - */ -export type TransportProtocol = string; - /** Known values of {@link ConnectionType} that the service accepts. */ export enum KnownConnectionType { /** Internal */ @@ -7216,207 +7161,6 @@ export enum KnownConnectionType { */ export type ConnectionType = string; -/** Known values of {@link EnforcementMode} that the service accepts. */ -export enum KnownEnforcementMode { - /** Audit */ - Audit = "Audit", - /** Enforce */ - Enforce = "Enforce", - /** None */ - None = "None", -} - -/** - * Defines values for EnforcementMode. \ - * {@link KnownEnforcementMode} can be used interchangeably with EnforcementMode, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Audit** \ - * **Enforce** \ - * **None** - */ -export type EnforcementMode = string; - -/** Known values of {@link ConfigurationStatus} that the service accepts. */ -export enum KnownConfigurationStatus { - /** Configured */ - Configured = "Configured", - /** NotConfigured */ - NotConfigured = "NotConfigured", - /** InProgress */ - InProgress = "InProgress", - /** Failed */ - Failed = "Failed", - /** NoStatus */ - NoStatus = "NoStatus", -} - -/** - * Defines values for ConfigurationStatus. \ - * {@link KnownConfigurationStatus} can be used interchangeably with ConfigurationStatus, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Configured** \ - * **NotConfigured** \ - * **InProgress** \ - * **Failed** \ - * **NoStatus** - */ -export type ConfigurationStatus = string; - -/** Known values of {@link RecommendationStatus} that the service accepts. */ -export enum KnownRecommendationStatus { - /** Recommended */ - Recommended = "Recommended", - /** NotRecommended */ - NotRecommended = "NotRecommended", - /** NotAvailable */ - NotAvailable = "NotAvailable", - /** NoStatus */ - NoStatus = "NoStatus", -} - -/** - * Defines values for RecommendationStatus. \ - * {@link KnownRecommendationStatus} can be used interchangeably with RecommendationStatus, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Recommended** \ - * **NotRecommended** \ - * **NotAvailable** \ - * **NoStatus** - */ -export type RecommendationStatus = string; - -/** Known values of {@link AdaptiveApplicationControlIssue} that the service accepts. */ -export enum KnownAdaptiveApplicationControlIssue { - /** ViolationsAudited */ - ViolationsAudited = "ViolationsAudited", - /** ViolationsBlocked */ - ViolationsBlocked = "ViolationsBlocked", - /** MsiAndScriptViolationsAudited */ - MsiAndScriptViolationsAudited = "MsiAndScriptViolationsAudited", - /** MsiAndScriptViolationsBlocked */ - MsiAndScriptViolationsBlocked = "MsiAndScriptViolationsBlocked", - /** ExecutableViolationsAudited */ - ExecutableViolationsAudited = "ExecutableViolationsAudited", - /** RulesViolatedManually */ - RulesViolatedManually = "RulesViolatedManually", -} - -/** - * Defines values for AdaptiveApplicationControlIssue. \ - * {@link KnownAdaptiveApplicationControlIssue} can be used interchangeably with AdaptiveApplicationControlIssue, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **ViolationsAudited** \ - * **ViolationsBlocked** \ - * **MsiAndScriptViolationsAudited** \ - * **MsiAndScriptViolationsBlocked** \ - * **ExecutableViolationsAudited** \ - * **RulesViolatedManually** - */ -export type AdaptiveApplicationControlIssue = string; - -/** Known values of {@link SourceSystem} that the service accepts. */ -export enum KnownSourceSystem { - /** AzureAppLocker */ - AzureAppLocker = "Azure_AppLocker", - /** AzureAuditD */ - AzureAuditD = "Azure_AuditD", - /** NonAzureAppLocker */ - NonAzureAppLocker = "NonAzure_AppLocker", - /** NonAzureAuditD */ - NonAzureAuditD = "NonAzure_AuditD", - /** None */ - None = "None", -} - -/** - * Defines values for SourceSystem. \ - * {@link KnownSourceSystem} can be used interchangeably with SourceSystem, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Azure_AppLocker** \ - * **Azure_AuditD** \ - * **NonAzure_AppLocker** \ - * **NonAzure_AuditD** \ - * **None** - */ -export type SourceSystem = string; - -/** Known values of {@link RecommendationAction} that the service accepts. */ -export enum KnownRecommendationAction { - /** Recommended */ - Recommended = "Recommended", - /** Add */ - Add = "Add", - /** Remove */ - Remove = "Remove", -} - -/** - * Defines values for RecommendationAction. \ - * {@link KnownRecommendationAction} can be used interchangeably with RecommendationAction, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Recommended** \ - * **Add** \ - * **Remove** - */ -export type RecommendationAction = string; - -/** Known values of {@link EnforcementSupport} that the service accepts. */ -export enum KnownEnforcementSupport { - /** Supported */ - Supported = "Supported", - /** NotSupported */ - NotSupported = "NotSupported", - /** Unknown */ - Unknown = "Unknown", -} - -/** - * Defines values for EnforcementSupport. \ - * {@link KnownEnforcementSupport} can be used interchangeably with EnforcementSupport, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Supported** \ - * **NotSupported** \ - * **Unknown** - */ -export type EnforcementSupport = string; - -/** Known values of {@link FileType} that the service accepts. */ -export enum KnownFileType { - /** Exe */ - Exe = "Exe", - /** Dll */ - Dll = "Dll", - /** Msi */ - Msi = "Msi", - /** Script */ - Script = "Script", - /** Executable */ - Executable = "Executable", - /** Unknown */ - Unknown = "Unknown", -} - -/** - * Defines values for FileType. \ - * {@link KnownFileType} can be used interchangeably with FileType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Exe** \ - * **Dll** \ - * **Msi** \ - * **Script** \ - * **Executable** \ - * **Unknown** - */ -export type FileType = string; - /** Known values of {@link SecurityFamily} that the service accepts. */ export enum KnownSecurityFamily { /** Waf */ @@ -8479,51 +8223,6 @@ export enum KnownCode { */ export type Code = string; -/** Known values of {@link MinimalSeverity} that the service accepts. */ -export enum KnownMinimalSeverity { - /** Get notifications on new alerts with High severity */ - High = "High", - /** Get notifications on new alerts with Medium or High severity */ - Medium = "Medium", - /** Get notifications on new alerts with Low, Medium or High severity */ - Low = "Low", -} - -/** - * Defines values for MinimalSeverity. \ - * {@link KnownMinimalSeverity} can be used interchangeably with MinimalSeverity, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **High**: Get notifications on new alerts with High severity \ - * **Medium**: Get notifications on new alerts with Medium or High severity \ - * **Low**: Get notifications on new alerts with Low, Medium or High severity - */ -export type MinimalSeverity = string; - -/** Known values of {@link MinimalRiskLevel} that the service accepts. */ -export enum KnownMinimalRiskLevel { - /** Get notifications on new attack paths with Critical risk level */ - Critical = "Critical", - /** Get notifications on new attack paths with High or Critical risk level */ - High = "High", - /** Get notifications on new attach paths with Medium, High or Critical risk level */ - Medium = "Medium", - /** Get notifications on new attach paths with Low, Medium, High or Critical risk level */ - Low = "Low", -} - -/** - * Defines values for MinimalRiskLevel. \ - * {@link KnownMinimalRiskLevel} can be used interchangeably with MinimalRiskLevel, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Critical**: Get notifications on new attack paths with Critical risk level \ - * **High**: Get notifications on new attack paths with High or Critical risk level \ - * **Medium**: Get notifications on new attach paths with Medium, High or Critical risk level \ - * **Low**: Get notifications on new attach paths with Low, Medium, High or Critical risk level - */ -export type MinimalRiskLevel = string; - /** Known values of {@link GovernanceRuleConditionOperator} that the service accepts. */ export enum KnownGovernanceRuleConditionOperator { /** Checks that the string value of the data defined in Property equals the given value - exact fit */ @@ -8563,23 +8262,50 @@ export enum KnownApplicationConditionOperator { */ export type ApplicationConditionOperator = string; -/** Known values of {@link DesiredOnboardingState} that the service accepts. */ -export enum KnownDesiredOnboardingState { - /** Disabled */ - Disabled = "Disabled", - /** Enabled */ - Enabled = "Enabled", +/** Known values of {@link MinimalSeverity} that the service accepts. */ +export enum KnownMinimalSeverity { + /** Get notifications on new alerts with High severity */ + High = "High", + /** Get notifications on new alerts with Medium or High severity */ + Medium = "Medium", + /** Get notifications on new alerts with Low, Medium or High severity */ + Low = "Low", } /** - * Defines values for DesiredOnboardingState. \ - * {@link KnownDesiredOnboardingState} can be used interchangeably with DesiredOnboardingState, + * Defines values for MinimalSeverity. \ + * {@link KnownMinimalSeverity} can be used interchangeably with MinimalSeverity, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Disabled** \ - * **Enabled** + * **High**: Get notifications on new alerts with High severity \ + * **Medium**: Get notifications on new alerts with Medium or High severity \ + * **Low**: Get notifications on new alerts with Low, Medium or High severity */ -export type DesiredOnboardingState = string; +export type MinimalSeverity = string; + +/** Known values of {@link MinimalRiskLevel} that the service accepts. */ +export enum KnownMinimalRiskLevel { + /** Get notifications on new attack paths with Critical risk level */ + Critical = "Critical", + /** Get notifications on new attack paths with High or Critical risk level */ + High = "High", + /** Get notifications on new attach paths with Medium, High or Critical risk level */ + Medium = "Medium", + /** Get notifications on new attach paths with Low, Medium, High or Critical risk level */ + Low = "Low", +} + +/** + * Defines values for MinimalRiskLevel. \ + * {@link KnownMinimalRiskLevel} can be used interchangeably with MinimalRiskLevel, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Critical**: Get notifications on new attack paths with Critical risk level \ + * **High**: Get notifications on new attack paths with High or Critical risk level \ + * **Medium**: Get notifications on new attach paths with Medium, High or Critical risk level \ + * **Low**: Get notifications on new attach paths with Low, Medium, High or Critical risk level + */ +export type MinimalRiskLevel = string; /** Known values of {@link OrganizationMembershipType} that the service accepts. */ export enum KnownOrganizationMembershipType { @@ -8599,6 +8325,21 @@ export enum KnownOrganizationMembershipType { */ export type OrganizationMembershipType = string; +/** Known values of {@link ScanningMode} that the service accepts. */ +export enum KnownScanningMode { + /** Default */ + Default = "Default", +} + +/** + * Defines values for ScanningMode. \ + * {@link KnownScanningMode} can be used interchangeably with ScanningMode, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Default** + */ +export type ScanningMode = string; + /** Known values of {@link Type} that the service accepts. */ export enum KnownType { /** Qualys */ @@ -8632,23 +8373,26 @@ export enum KnownSubPlan { * ### Known values supported by the service * **P1** \ * **P2** - */ -export type SubPlan = string; - -/** Known values of {@link ScanningMode} that the service accepts. */ -export enum KnownScanningMode { - /** Default */ - Default = "Default", + */ +export type SubPlan = string; + +/** Known values of {@link DesiredOnboardingState} that the service accepts. */ +export enum KnownDesiredOnboardingState { + /** Disabled */ + Disabled = "Disabled", + /** Enabled */ + Enabled = "Enabled", } /** - * Defines values for ScanningMode. \ - * {@link KnownScanningMode} can be used interchangeably with ScanningMode, + * Defines values for DesiredOnboardingState. \ + * {@link KnownDesiredOnboardingState} can be used interchangeably with DesiredOnboardingState, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Default** + * **Disabled** \ + * **Enabled** */ -export type ScanningMode = string; +export type DesiredOnboardingState = string; /** Known values of {@link AadConnectivityState} that the service accepts. */ export enum KnownAadConnectivityState { @@ -8992,66 +8736,6 @@ export interface AlertsSuppressionRulesListNextOptionalParams /** Contains response data for the listNext operation. */ export type AlertsSuppressionRulesListNextResponse = AlertsSuppressionRulesList; -/** Optional parameters. */ -export interface AutomationsListOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the list operation. */ -export type AutomationsListResponse = AutomationList; - -/** Optional parameters. */ -export interface AutomationsListByResourceGroupOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByResourceGroup operation. */ -export type AutomationsListByResourceGroupResponse = AutomationList; - -/** Optional parameters. */ -export interface AutomationsGetOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the get operation. */ -export type AutomationsGetResponse = Automation; - -/** Optional parameters. */ -export interface AutomationsCreateOrUpdateOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the createOrUpdate operation. */ -export type AutomationsCreateOrUpdateResponse = Automation; - -/** Optional parameters. */ -export interface AutomationsUpdateOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the update operation. */ -export type AutomationsUpdateResponse = Automation; - -/** Optional parameters. */ -export interface AutomationsDeleteOptionalParams - extends coreClient.OperationOptions {} - -/** Optional parameters. */ -export interface AutomationsValidateOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the validate operation. */ -export type AutomationsValidateResponse = AutomationValidationStatus; - -/** Optional parameters. */ -export interface AutomationsListNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listNext operation. */ -export type AutomationsListNextResponse = AutomationList; - -/** Optional parameters. */ -export interface AutomationsListByResourceGroupNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByResourceGroupNext operation. */ -export type AutomationsListByResourceGroupNextResponse = AutomationList; - /** Optional parameters. */ export interface RegulatoryComplianceStandardsListOptionalParams extends coreClient.OperationOptions { @@ -9200,38 +8884,6 @@ export interface ConnectorsListNextOptionalParams /** Contains response data for the listNext operation. */ export type ConnectorsListNextResponse = ConnectorSettingList; -/** Optional parameters. */ -export interface SecurityContactsListOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the list operation. */ -export type SecurityContactsListResponse = SecurityContactList; - -/** Optional parameters. */ -export interface SecurityContactsGetOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the get operation. */ -export type SecurityContactsGetResponse = SecurityContact; - -/** Optional parameters. */ -export interface SecurityContactsCreateOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the create operation. */ -export type SecurityContactsCreateResponse = SecurityContact; - -/** Optional parameters. */ -export interface SecurityContactsDeleteOptionalParams - extends coreClient.OperationOptions {} - -/** Optional parameters. */ -export interface SecurityContactsListNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listNext operation. */ -export type SecurityContactsListNextResponse = SecurityContactList; - /** Optional parameters. */ export interface SoftwareInventoriesListByExtendedResourceOptionalParams extends coreClient.OperationOptions {} @@ -9576,119 +9228,266 @@ export interface SecurityOperatorsCreateOrUpdateOptionalParams export type SecurityOperatorsCreateOrUpdateResponse = SecurityOperator; /** Optional parameters. */ -export interface SecurityOperatorsDeleteOptionalParams +export interface SecurityOperatorsDeleteOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface SqlVulnerabilityAssessmentBaselineRulesCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** The baseline results for this rule. */ + body?: RuleResultsInput; +} + +/** Contains response data for the createOrUpdate operation. */ +export type SqlVulnerabilityAssessmentBaselineRulesCreateOrUpdateResponse = + RuleResults; + +/** Optional parameters. */ +export interface SqlVulnerabilityAssessmentBaselineRulesGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type SqlVulnerabilityAssessmentBaselineRulesGetResponse = RuleResults; + +/** Optional parameters. */ +export interface SqlVulnerabilityAssessmentBaselineRulesDeleteOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface SqlVulnerabilityAssessmentBaselineRulesListOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the list operation. */ +export type SqlVulnerabilityAssessmentBaselineRulesListResponse = RulesResults; + +/** Optional parameters. */ +export interface SqlVulnerabilityAssessmentBaselineRulesAddOptionalParams + extends coreClient.OperationOptions { + /** The baseline rules. */ + body?: RulesResultsInput; +} + +/** Contains response data for the add operation. */ +export type SqlVulnerabilityAssessmentBaselineRulesAddResponse = RulesResults; + +/** Optional parameters. */ +export interface SqlVulnerabilityAssessmentScansGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type SqlVulnerabilityAssessmentScansGetResponse = Scan; + +/** Optional parameters. */ +export interface SqlVulnerabilityAssessmentScansListOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the list operation. */ +export type SqlVulnerabilityAssessmentScansListResponse = Scans; + +/** Optional parameters. */ +export interface SqlVulnerabilityAssessmentScanResultsGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type SqlVulnerabilityAssessmentScanResultsGetResponse = ScanResult; + +/** Optional parameters. */ +export interface SqlVulnerabilityAssessmentScanResultsListOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the list operation. */ +export type SqlVulnerabilityAssessmentScanResultsListResponse = ScanResults; + +/** Optional parameters. */ +export interface SensitivitySettingsCreateOrUpdateOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the createOrUpdate operation. */ +export type SensitivitySettingsCreateOrUpdateResponse = + GetSensitivitySettingsResponse; + +/** Optional parameters. */ +export interface SensitivitySettingsGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type SensitivitySettingsGetResponse = GetSensitivitySettingsResponse; + +/** Optional parameters. */ +export interface SensitivitySettingsListOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the list operation. */ +export type SensitivitySettingsListResponse = + GetSensitivitySettingsListResponse; + +/** Optional parameters. */ +export interface HealthReportsListOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the list operation. */ +export type HealthReportsListResponse = HealthReportsList; + +/** Optional parameters. */ +export interface HealthReportsGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type HealthReportsGetResponse = HealthReport; + +/** Optional parameters. */ +export interface HealthReportsListNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listNext operation. */ +export type HealthReportsListNextResponse = HealthReportsList; + +/** Optional parameters. */ +export interface AutomationsListOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the list operation. */ +export type AutomationsListResponse = AutomationList; + +/** Optional parameters. */ +export interface AutomationsListByResourceGroupOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByResourceGroup operation. */ +export type AutomationsListByResourceGroupResponse = AutomationList; + +/** Optional parameters. */ +export interface AutomationsGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type AutomationsGetResponse = Automation; + +/** Optional parameters. */ +export interface AutomationsCreateOrUpdateOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the createOrUpdate operation. */ +export type AutomationsCreateOrUpdateResponse = Automation; + +/** Optional parameters. */ +export interface AutomationsUpdateOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the update operation. */ +export type AutomationsUpdateResponse = Automation; + +/** Optional parameters. */ +export interface AutomationsDeleteOptionalParams extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface SqlVulnerabilityAssessmentBaselineRulesCreateOrUpdateOptionalParams - extends coreClient.OperationOptions { - /** The baseline results for this rule. */ - body?: RuleResultsInput; -} +export interface AutomationsValidateOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the createOrUpdate operation. */ -export type SqlVulnerabilityAssessmentBaselineRulesCreateOrUpdateResponse = - RuleResults; +/** Contains response data for the validate operation. */ +export type AutomationsValidateResponse = AutomationValidationStatus; /** Optional parameters. */ -export interface SqlVulnerabilityAssessmentBaselineRulesGetOptionalParams +export interface AutomationsListNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type SqlVulnerabilityAssessmentBaselineRulesGetResponse = RuleResults; +/** Contains response data for the listNext operation. */ +export type AutomationsListNextResponse = AutomationList; /** Optional parameters. */ -export interface SqlVulnerabilityAssessmentBaselineRulesDeleteOptionalParams +export interface AutomationsListByResourceGroupNextOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the listByResourceGroupNext operation. */ +export type AutomationsListByResourceGroupNextResponse = AutomationList; + /** Optional parameters. */ -export interface SqlVulnerabilityAssessmentBaselineRulesListOptionalParams +export interface SecurityContactsListOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the list operation. */ -export type SqlVulnerabilityAssessmentBaselineRulesListResponse = RulesResults; +export type SecurityContactsListResponse = SecurityContactList; /** Optional parameters. */ -export interface SqlVulnerabilityAssessmentBaselineRulesAddOptionalParams - extends coreClient.OperationOptions { - /** The baseline rules. */ - body?: RulesResultsInput; -} +export interface SecurityContactsGetOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the add operation. */ -export type SqlVulnerabilityAssessmentBaselineRulesAddResponse = RulesResults; +/** Contains response data for the get operation. */ +export type SecurityContactsGetResponse = SecurityContact; /** Optional parameters. */ -export interface SqlVulnerabilityAssessmentScansGetOptionalParams +export interface SecurityContactsCreateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type SqlVulnerabilityAssessmentScansGetResponse = Scan; +/** Contains response data for the create operation. */ +export type SecurityContactsCreateResponse = SecurityContact; /** Optional parameters. */ -export interface SqlVulnerabilityAssessmentScansListOptionalParams +export interface SecurityContactsDeleteOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the list operation. */ -export type SqlVulnerabilityAssessmentScansListResponse = Scans; - /** Optional parameters. */ -export interface SqlVulnerabilityAssessmentScanResultsGetOptionalParams +export interface SecurityContactsListNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type SqlVulnerabilityAssessmentScanResultsGetResponse = ScanResult; +/** Contains response data for the listNext operation. */ +export type SecurityContactsListNextResponse = SecurityContactList; /** Optional parameters. */ -export interface SqlVulnerabilityAssessmentScanResultsListOptionalParams +export interface SecurityConnectorsListOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the list operation. */ -export type SqlVulnerabilityAssessmentScanResultsListResponse = ScanResults; +export type SecurityConnectorsListResponse = SecurityConnectorsList; /** Optional parameters. */ -export interface UpdateSensitivitySettingsOptionalParams +export interface SecurityConnectorsListByResourceGroupOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the updateSensitivitySettings operation. */ -export type UpdateSensitivitySettingsResponse = GetSensitivitySettingsResponse; +/** Contains response data for the listByResourceGroup operation. */ +export type SecurityConnectorsListByResourceGroupResponse = + SecurityConnectorsList; /** Optional parameters. */ -export interface GetSensitivitySettingsOptionalParams +export interface SecurityConnectorsGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the getSensitivitySettings operation. */ -export type GetSensitivitySettingsOperationResponse = - GetSensitivitySettingsResponse; +/** Contains response data for the get operation. */ +export type SecurityConnectorsGetResponse = SecurityConnector; /** Optional parameters. */ -export interface SensitivitySettingsListOptionalParams +export interface SecurityConnectorsCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the list operation. */ -export type SensitivitySettingsListResponse = - GetSensitivitySettingsListResponse; +/** Contains response data for the createOrUpdate operation. */ +export type SecurityConnectorsCreateOrUpdateResponse = SecurityConnector; /** Optional parameters. */ -export interface HealthReportsListOptionalParams +export interface SecurityConnectorsUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the list operation. */ -export type HealthReportsListResponse = HealthReportsList; +/** Contains response data for the update operation. */ +export type SecurityConnectorsUpdateResponse = SecurityConnector; /** Optional parameters. */ -export interface HealthReportsGetOptionalParams +export interface SecurityConnectorsDeleteOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type HealthReportsGetResponse = HealthReport; - /** Optional parameters. */ -export interface HealthReportsListNextOptionalParams +export interface SecurityConnectorsListNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ -export type HealthReportsListNextResponse = HealthReportsList; +export type SecurityConnectorsListNextResponse = SecurityConnectorsList; + +/** Optional parameters. */ +export interface SecurityConnectorsListByResourceGroupNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByResourceGroupNext operation. */ +export type SecurityConnectorsListByResourceGroupNextResponse = + SecurityConnectorsList; /** Optional parameters. */ export interface AzureDevOpsOrgsListAvailableOptionalParams @@ -9889,6 +9688,92 @@ export interface DevOpsConfigurationsListNextOptionalParams export type DevOpsConfigurationsListNextResponse = DevOpsConfigurationListResponse; +/** Optional parameters. */ +export interface DevOpsPoliciesListOptionalParams + extends coreClient.OperationOptions { + /** Optional filter for listing the policies. */ + devOpsPolicyType?: string; +} + +/** Contains response data for the list operation. */ +export type DevOpsPoliciesListResponse = DevOpsPolicyListResponse; + +/** Optional parameters. */ +export interface DevOpsPoliciesGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type DevOpsPoliciesGetResponse = DevOpsPolicy; + +/** Optional parameters. */ +export interface DevOpsPoliciesListNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listNext operation. */ +export type DevOpsPoliciesListNextResponse = DevOpsPolicyListResponse; + +/** Optional parameters. */ +export interface DevOpsPolicyAssignmentsListOptionalParams + extends coreClient.OperationOptions { + /** Optional filter for listing the policies. */ + devOpsPolicyType?: string; + /** Optional filter for listing the assignments of a specific resource. */ + resourceId?: string; +} + +/** Contains response data for the list operation. */ +export type DevOpsPolicyAssignmentsListResponse = + DevOpsPolicyAssignmentListResponse; + +/** Optional parameters. */ +export interface DevOpsPolicyAssignmentsGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type DevOpsPolicyAssignmentsGetResponse = DevOpsPolicyAssignment; + +/** Optional parameters. */ +export interface DevOpsPolicyAssignmentsCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Contains response data for the createOrUpdate operation. */ +export type DevOpsPolicyAssignmentsCreateOrUpdateResponse = + DevOpsPolicyAssignment; + +/** Optional parameters. */ +export interface DevOpsPolicyAssignmentsUpdateOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Contains response data for the update operation. */ +export type DevOpsPolicyAssignmentsUpdateResponse = DevOpsPolicyAssignment; + +/** Optional parameters. */ +export interface DevOpsPolicyAssignmentsDeleteOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Optional parameters. */ +export interface DevOpsPolicyAssignmentsListNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listNext operation. */ +export type DevOpsPolicyAssignmentsListNextResponse = + DevOpsPolicyAssignmentListResponse; + /** Optional parameters. */ export interface GitHubOwnersListAvailableOptionalParams extends coreClient.OperationOptions {} @@ -10001,61 +9886,6 @@ export interface DevOpsOperationResultsGetOptionalParams /** Contains response data for the get operation. */ export type DevOpsOperationResultsGetResponse = OperationStatusResult; -/** Optional parameters. */ -export interface SecurityConnectorsListOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the list operation. */ -export type SecurityConnectorsListResponse = SecurityConnectorsList; - -/** Optional parameters. */ -export interface SecurityConnectorsListByResourceGroupOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByResourceGroup operation. */ -export type SecurityConnectorsListByResourceGroupResponse = - SecurityConnectorsList; - -/** Optional parameters. */ -export interface SecurityConnectorsGetOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the get operation. */ -export type SecurityConnectorsGetResponse = SecurityConnector; - -/** Optional parameters. */ -export interface SecurityConnectorsCreateOrUpdateOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the createOrUpdate operation. */ -export type SecurityConnectorsCreateOrUpdateResponse = SecurityConnector; - -/** Optional parameters. */ -export interface SecurityConnectorsUpdateOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the update operation. */ -export type SecurityConnectorsUpdateResponse = SecurityConnector; - -/** Optional parameters. */ -export interface SecurityConnectorsDeleteOptionalParams - extends coreClient.OperationOptions {} - -/** Optional parameters. */ -export interface SecurityConnectorsListNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listNext operation. */ -export type SecurityConnectorsListNextResponse = SecurityConnectorsList; - -/** Optional parameters. */ -export interface SecurityConnectorsListByResourceGroupNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByResourceGroupNext operation. */ -export type SecurityConnectorsListByResourceGroupNextResponse = - SecurityConnectorsList; - /** Optional parameters. */ export interface ComplianceResultsListOptionalParams extends coreClient.OperationOptions {} @@ -10263,38 +10093,6 @@ export interface IotSecuritySolutionListByResourceGroupNextOptionalParams export type IotSecuritySolutionListByResourceGroupNextResponse = IoTSecuritySolutionsList; -/** Optional parameters. */ -export interface AdaptiveNetworkHardeningsListByExtendedResourceOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByExtendedResource operation. */ -export type AdaptiveNetworkHardeningsListByExtendedResourceResponse = - AdaptiveNetworkHardeningsList; - -/** Optional parameters. */ -export interface AdaptiveNetworkHardeningsGetOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the get operation. */ -export type AdaptiveNetworkHardeningsGetResponse = AdaptiveNetworkHardening; - -/** Optional parameters. */ -export interface AdaptiveNetworkHardeningsEnforceOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} - -/** Optional parameters. */ -export interface AdaptiveNetworkHardeningsListByExtendedResourceNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByExtendedResourceNext operation. */ -export type AdaptiveNetworkHardeningsListByExtendedResourceNextResponse = - AdaptiveNetworkHardeningsList; - /** Optional parameters. */ export interface AllowedConnectionsListOptionalParams extends coreClient.OperationOptions {} @@ -10331,39 +10129,6 @@ export interface AllowedConnectionsListByHomeRegionNextOptionalParams export type AllowedConnectionsListByHomeRegionNextResponse = AllowedConnectionsList; -/** Optional parameters. */ -export interface AdaptiveApplicationControlsListOptionalParams - extends coreClient.OperationOptions { - /** Include the policy rules */ - includePathRecommendations?: boolean; - /** Return output in a summarized form */ - summary?: boolean; -} - -/** Contains response data for the list operation. */ -export type AdaptiveApplicationControlsListResponse = - AdaptiveApplicationControlGroups; - -/** Optional parameters. */ -export interface AdaptiveApplicationControlsGetOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the get operation. */ -export type AdaptiveApplicationControlsGetResponse = - AdaptiveApplicationControlGroup; - -/** Optional parameters. */ -export interface AdaptiveApplicationControlsPutOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the put operation. */ -export type AdaptiveApplicationControlsPutResponse = - AdaptiveApplicationControlGroup; - -/** Optional parameters. */ -export interface AdaptiveApplicationControlsDeleteOptionalParams - extends coreClient.OperationOptions {} - /** Optional parameters. */ export interface DiscoveredSecuritySolutionsListOptionalParams extends coreClient.OperationOptions {} diff --git a/sdk/security/arm-security/src/models/mappers.ts b/sdk/security/arm-security/src/models/mappers.ts index b3a699b668d5..ca928ec531a8 100644 --- a/sdk/security/arm-security/src/models/mappers.ts +++ b/sdk/security/arm-security/src/models/mappers.ts @@ -677,240 +677,6 @@ export const ScopeElement: coreClient.CompositeMapper = { }, }; -export const AutomationList: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "AutomationList", - modelProperties: { - value: { - serializedName: "value", - required: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "Automation", - }, - }, - }, - }, - nextLink: { - serializedName: "nextLink", - readOnly: true, - type: { - name: "String", - }, - }, - }, - }, -}; - -export const AutomationScope: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "AutomationScope", - modelProperties: { - description: { - serializedName: "description", - type: { - name: "String", - }, - }, - scopePath: { - serializedName: "scopePath", - type: { - name: "String", - }, - }, - }, - }, -}; - -export const AutomationSource: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "AutomationSource", - modelProperties: { - eventSource: { - serializedName: "eventSource", - type: { - name: "String", - }, - }, - ruleSets: { - serializedName: "ruleSets", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "AutomationRuleSet", - }, - }, - }, - }, - }, - }, -}; - -export const AutomationRuleSet: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "AutomationRuleSet", - modelProperties: { - rules: { - serializedName: "rules", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "AutomationTriggeringRule", - }, - }, - }, - }, - }, - }, -}; - -export const AutomationTriggeringRule: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "AutomationTriggeringRule", - modelProperties: { - propertyJPath: { - serializedName: "propertyJPath", - type: { - name: "String", - }, - }, - propertyType: { - serializedName: "propertyType", - type: { - name: "String", - }, - }, - expectedValue: { - serializedName: "expectedValue", - type: { - name: "String", - }, - }, - operator: { - serializedName: "operator", - type: { - name: "String", - }, - }, - }, - }, -}; - -export const AutomationAction: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "AutomationAction", - uberParent: "AutomationAction", - polymorphicDiscriminator: { - serializedName: "actionType", - clientName: "actionType", - }, - modelProperties: { - actionType: { - serializedName: "actionType", - required: true, - type: { - name: "String", - }, - }, - }, - }, -}; - -export const AzureTrackedResourceLocation: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "AzureTrackedResourceLocation", - modelProperties: { - location: { - serializedName: "location", - type: { - name: "String", - }, - }, - }, - }, -}; - -export const KindAutoGenerated: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "KindAutoGenerated", - modelProperties: { - kind: { - serializedName: "kind", - type: { - name: "String", - }, - }, - }, - }, -}; - -export const ETag: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ETag", - modelProperties: { - etag: { - serializedName: "etag", - type: { - name: "String", - }, - }, - }, - }, -}; - -export const Tags: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "Tags", - modelProperties: { - tags: { - serializedName: "tags", - type: { - name: "Dictionary", - value: { type: { name: "String" } }, - }, - }, - }, - }, -}; - -export const AutomationValidationStatus: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "AutomationValidationStatus", - modelProperties: { - isValid: { - serializedName: "isValid", - type: { - name: "Boolean", - }, - }, - message: { - serializedName: "message", - type: { - name: "String", - }, - }, - }, - }, -}; - export const RegulatoryComplianceStandardList: coreClient.CompositeMapper = { type: { name: "Composite", @@ -1265,20 +1031,19 @@ export const AuthenticationDetailsProperties: coreClient.CompositeMapper = { }, }; -export const SecurityContactList: coreClient.CompositeMapper = { +export const SoftwaresList: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SecurityContactList", + className: "SoftwaresList", modelProperties: { value: { serializedName: "value", - required: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "SecurityContact", + className: "Software", }, }, }, @@ -1294,89 +1059,13 @@ export const SecurityContactList: coreClient.CompositeMapper = { }, }; -export const NotificationsSource: coreClient.CompositeMapper = { +export const SystemData: coreClient.CompositeMapper = { type: { name: "Composite", - className: "NotificationsSource", - uberParent: "NotificationsSource", - polymorphicDiscriminator: { - serializedName: "sourceType", - clientName: "sourceType", - }, + className: "SystemData", modelProperties: { - sourceType: { - serializedName: "sourceType", - required: true, - type: { - name: "String", - }, - }, - }, - }, -}; - -export const SecurityContactPropertiesNotificationsByRole: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "SecurityContactPropertiesNotificationsByRole", - modelProperties: { - state: { - serializedName: "state", - type: { - name: "String", - }, - }, - roles: { - serializedName: "roles", - type: { - name: "Sequence", - element: { - type: { - name: "String", - }, - }, - }, - }, - }, - }, - }; - -export const SoftwaresList: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "SoftwaresList", - modelProperties: { - value: { - serializedName: "value", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "Software", - }, - }, - }, - }, - nextLink: { - serializedName: "nextLink", - readOnly: true, - type: { - name: "String", - }, - }, - }, - }, -}; - -export const SystemData: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "SystemData", - modelProperties: { - createdBy: { - serializedName: "createdBy", + createdBy: { + serializedName: "createdBy", type: { name: "String", }, @@ -1780,6 +1469,91 @@ export const ApplicationsList: coreClient.CompositeMapper = { }, }; +export const DefenderForStorageSettingProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DefenderForStorageSettingProperties", + modelProperties: { + isEnabled: { + serializedName: "isEnabled", + type: { + name: "Boolean", + }, + }, + malwareScanning: { + serializedName: "malwareScanning", + type: { + name: "Composite", + className: "MalwareScanningProperties", + }, + }, + sensitiveDataDiscovery: { + serializedName: "sensitiveDataDiscovery", + type: { + name: "Composite", + className: "SensitiveDataDiscoveryProperties", + }, + }, + overrideSubscriptionLevelSettings: { + serializedName: "overrideSubscriptionLevelSettings", + type: { + name: "Boolean", + }, + }, + }, + }, +}; + +export const MalwareScanningProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "MalwareScanningProperties", + modelProperties: { + onUpload: { + serializedName: "onUpload", + type: { + name: "Composite", + className: "OnUploadProperties", + }, + }, + scanResultsEventGridTopicResourceId: { + serializedName: "scanResultsEventGridTopicResourceId", + type: { + name: "String", + }, + }, + operationStatus: { + serializedName: "operationStatus", + type: { + name: "Composite", + className: "OperationStatus", + }, + }, + }, + }, +}; + +export const OnUploadProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "OnUploadProperties", + modelProperties: { + isEnabled: { + serializedName: "isEnabled", + type: { + name: "Boolean", + }, + }, + capGBPerMonth: { + serializedName: "capGBPerMonth", + type: { + name: "Number", + }, + }, + }, + }, +}; + export const OperationStatus: coreClient.CompositeMapper = { type: { name: "Composite", @@ -1801,6 +1575,28 @@ export const OperationStatus: coreClient.CompositeMapper = { }, }; +export const SensitiveDataDiscoveryProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SensitiveDataDiscoveryProperties", + modelProperties: { + isEnabled: { + serializedName: "isEnabled", + type: { + name: "Boolean", + }, + }, + operationStatus: { + serializedName: "operationStatus", + type: { + name: "Composite", + className: "OperationStatus", + }, + }, + }, + }, +}; + export const SecurityOperatorList: coreClient.CompositeMapper = { type: { name: "Composite", @@ -2985,25 +2781,27 @@ export const ErrorDetail: coreClient.CompositeMapper = { }, }; -export const AzureDevOpsOrgListResponse: coreClient.CompositeMapper = { +export const AutomationList: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AzureDevOpsOrgListResponse", + className: "AutomationList", modelProperties: { value: { serializedName: "value", + required: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "AzureDevOpsOrg", + className: "Automation", }, }, }, }, nextLink: { serializedName: "nextLink", + readOnly: true, type: { name: "String", }, @@ -3012,157 +2810,121 @@ export const AzureDevOpsOrgListResponse: coreClient.CompositeMapper = { }, }; -export const AzureDevOpsOrgProperties: coreClient.CompositeMapper = { +export const AutomationScope: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AzureDevOpsOrgProperties", + className: "AutomationScope", modelProperties: { - provisioningStatusMessage: { - serializedName: "provisioningStatusMessage", - readOnly: true, - type: { - name: "String", - }, - }, - provisioningStatusUpdateTimeUtc: { - serializedName: "provisioningStatusUpdateTimeUtc", - readOnly: true, - type: { - name: "DateTime", - }, - }, - provisioningState: { - serializedName: "provisioningState", + description: { + serializedName: "description", type: { name: "String", }, }, - onboardingState: { - serializedName: "onboardingState", + scopePath: { + serializedName: "scopePath", type: { name: "String", }, }, - actionableRemediation: { - serializedName: "actionableRemediation", - type: { - name: "Composite", - className: "ActionableRemediation", - }, - }, }, }, }; -export const ActionableRemediation: coreClient.CompositeMapper = { +export const AutomationSource: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ActionableRemediation", + className: "AutomationSource", modelProperties: { - state: { - serializedName: "state", + eventSource: { + serializedName: "eventSource", type: { name: "String", }, }, - categoryConfigurations: { - serializedName: "categoryConfigurations", + ruleSets: { + serializedName: "ruleSets", type: { name: "Sequence", element: { type: { name: "Composite", - className: "CategoryConfiguration", + className: "AutomationRuleSet", }, }, }, }, - branchConfiguration: { - serializedName: "branchConfiguration", - type: { - name: "Composite", - className: "TargetBranchConfiguration", - }, - }, - inheritFromParentState: { - serializedName: "inheritFromParentState", - type: { - name: "String", - }, - }, }, }, }; -export const CategoryConfiguration: coreClient.CompositeMapper = { +export const AutomationRuleSet: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CategoryConfiguration", + className: "AutomationRuleSet", modelProperties: { - minimumSeverityLevel: { - serializedName: "minimumSeverityLevel", - type: { - name: "String", - }, - }, - category: { - serializedName: "category", + rules: { + serializedName: "rules", type: { - name: "String", + name: "Sequence", + element: { + type: { + name: "Composite", + className: "AutomationTriggeringRule", + }, + }, }, }, }, }, }; -export const TargetBranchConfiguration: coreClient.CompositeMapper = { +export const AutomationTriggeringRule: coreClient.CompositeMapper = { type: { name: "Composite", - className: "TargetBranchConfiguration", + className: "AutomationTriggeringRule", modelProperties: { - branchNames: { - serializedName: "branchNames", + propertyJPath: { + serializedName: "propertyJPath", type: { - name: "Sequence", - element: { - type: { - name: "String", - }, - }, + name: "String", }, }, - annotateDefaultBranch: { - serializedName: "annotateDefaultBranch", + propertyType: { + serializedName: "propertyType", type: { name: "String", }, }, - }, - }, -}; - -export const ResourceAutoGenerated: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ResourceAutoGenerated", - modelProperties: { - id: { - serializedName: "id", - readOnly: true, + expectedValue: { + serializedName: "expectedValue", type: { name: "String", }, }, - name: { - serializedName: "name", - readOnly: true, + operator: { + serializedName: "operator", type: { name: "String", }, }, - type: { - serializedName: "type", - readOnly: true, + }, + }, +}; + +export const AutomationAction: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AutomationAction", + uberParent: "AutomationAction", + polymorphicDiscriminator: { + serializedName: "actionType", + clientName: "actionType", + }, + modelProperties: { + actionType: { + serializedName: "actionType", + required: true, type: { name: "String", }, @@ -3171,97 +2933,109 @@ export const ResourceAutoGenerated: coreClient.CompositeMapper = { }, }; -export const ErrorResponseAutoGenerated: coreClient.CompositeMapper = { +export const AzureTrackedResourceLocation: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ErrorResponseAutoGenerated", + className: "AzureTrackedResourceLocation", modelProperties: { - error: { - serializedName: "error", + location: { + serializedName: "location", type: { - name: "Composite", - className: "ErrorDetailAutoGenerated", + name: "String", }, }, }, }, }; -export const ErrorDetailAutoGenerated: coreClient.CompositeMapper = { +export const KindAutoGenerated: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ErrorDetailAutoGenerated", + className: "KindAutoGenerated", modelProperties: { - code: { - serializedName: "code", - readOnly: true, + kind: { + serializedName: "kind", type: { name: "String", }, }, - message: { - serializedName: "message", - readOnly: true, + }, + }, +}; + +export const ETag: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ETag", + modelProperties: { + etag: { + serializedName: "etag", type: { name: "String", }, }, - target: { - serializedName: "target", - readOnly: true, + }, + }, +}; + +export const Tags: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "Tags", + modelProperties: { + tags: { + serializedName: "tags", type: { - name: "String", + name: "Dictionary", + value: { type: { name: "String" } }, }, }, - details: { - serializedName: "details", - readOnly: true, + }, + }, +}; + +export const AutomationValidationStatus: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AutomationValidationStatus", + modelProperties: { + isValid: { + serializedName: "isValid", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ErrorDetailAutoGenerated", - }, - }, + name: "Boolean", }, }, - additionalInfo: { - serializedName: "additionalInfo", - readOnly: true, + message: { + serializedName: "message", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ErrorAdditionalInfo", - }, - }, + name: "String", }, }, }, }, }; -export const AzureDevOpsProjectListResponse: coreClient.CompositeMapper = { +export const SecurityContactList: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AzureDevOpsProjectListResponse", + className: "SecurityContactList", modelProperties: { value: { serializedName: "value", + required: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "AzureDevOpsProject", + className: "SecurityContact", }, }, }, }, nextLink: { serializedName: "nextLink", + readOnly: true, type: { name: "String", }, @@ -3270,80 +3044,75 @@ export const AzureDevOpsProjectListResponse: coreClient.CompositeMapper = { }, }; -export const AzureDevOpsProjectProperties: coreClient.CompositeMapper = { +export const NotificationsSource: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AzureDevOpsProjectProperties", + className: "NotificationsSource", + uberParent: "NotificationsSource", + polymorphicDiscriminator: { + serializedName: "sourceType", + clientName: "sourceType", + }, modelProperties: { - provisioningStatusMessage: { - serializedName: "provisioningStatusMessage", - readOnly: true, - type: { - name: "String", - }, - }, - provisioningStatusUpdateTimeUtc: { - serializedName: "provisioningStatusUpdateTimeUtc", - readOnly: true, - type: { - name: "DateTime", - }, - }, - provisioningState: { - serializedName: "provisioningState", - type: { - name: "String", - }, - }, - parentOrgName: { - serializedName: "parentOrgName", - type: { - name: "String", - }, - }, - projectId: { - serializedName: "projectId", - readOnly: true, + sourceType: { + serializedName: "sourceType", + required: true, type: { name: "String", }, }, - onboardingState: { - serializedName: "onboardingState", - type: { - name: "String", + }, + }, +}; + +export const SecurityContactPropertiesNotificationsByRole: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "SecurityContactPropertiesNotificationsByRole", + modelProperties: { + state: { + serializedName: "state", + type: { + name: "String", + }, }, - }, - actionableRemediation: { - serializedName: "actionableRemediation", - type: { - name: "Composite", - className: "ActionableRemediation", + roles: { + serializedName: "roles", + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, }, }, }, - }, -}; + }; -export const AzureDevOpsRepositoryListResponse: coreClient.CompositeMapper = { +export const SecurityConnectorsList: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AzureDevOpsRepositoryListResponse", + className: "SecurityConnectorsList", modelProperties: { value: { serializedName: "value", + required: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "AzureDevOpsRepository", + className: "SecurityConnector", }, }, }, }, nextLink: { serializedName: "nextLink", + readOnly: true, type: { name: "String", }, @@ -3352,85 +3121,59 @@ export const AzureDevOpsRepositoryListResponse: coreClient.CompositeMapper = { }, }; -export const AzureDevOpsRepositoryProperties: coreClient.CompositeMapper = { +export const CloudOffering: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AzureDevOpsRepositoryProperties", + className: "CloudOffering", + uberParent: "CloudOffering", + polymorphicDiscriminator: { + serializedName: "offeringType", + clientName: "offeringType", + }, modelProperties: { - provisioningStatusMessage: { - serializedName: "provisioningStatusMessage", - readOnly: true, + offeringType: { + serializedName: "offeringType", + required: true, type: { name: "String", }, }, - provisioningStatusUpdateTimeUtc: { - serializedName: "provisioningStatusUpdateTimeUtc", + description: { + serializedName: "description", readOnly: true, - type: { - name: "DateTime", - }, - }, - provisioningState: { - serializedName: "provisioningState", type: { name: "String", }, }, - parentOrgName: { - serializedName: "parentOrgName", - type: { - name: "String", - }, - }, - parentProjectName: { - serializedName: "parentProjectName", - type: { - name: "String", - }, - }, - repoId: { - serializedName: "repoId", - readOnly: true, - type: { - name: "String", - }, - }, - repoUrl: { - serializedName: "repoUrl", - readOnly: true, - type: { - name: "String", - }, - }, - visibility: { - serializedName: "visibility", - readOnly: true, - type: { - name: "String", - }, - }, - onboardingState: { - serializedName: "onboardingState", + }, + }, +}; + +export const EnvironmentData: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "EnvironmentData", + uberParent: "EnvironmentData", + polymorphicDiscriminator: { + serializedName: "environmentType", + clientName: "environmentType", + }, + modelProperties: { + environmentType: { + serializedName: "environmentType", + required: true, type: { name: "String", }, }, - actionableRemediation: { - serializedName: "actionableRemediation", - type: { - name: "Composite", - className: "ActionableRemediation", - }, - }, }, }, }; -export const DevOpsConfigurationListResponse: coreClient.CompositeMapper = { +export const AzureDevOpsOrgListResponse: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DevOpsConfigurationListResponse", + className: "AzureDevOpsOrgListResponse", modelProperties: { value: { serializedName: "value", @@ -3439,7 +3182,7 @@ export const DevOpsConfigurationListResponse: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "DevOpsConfiguration", + className: "AzureDevOpsOrg", }, }, }, @@ -3454,10 +3197,10 @@ export const DevOpsConfigurationListResponse: coreClient.CompositeMapper = { }, }; -export const DevOpsConfigurationProperties: coreClient.CompositeMapper = { +export const AzureDevOpsOrgProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DevOpsConfigurationProperties", + className: "AzureDevOpsOrgProperties", modelProperties: { provisioningStatusMessage: { serializedName: "provisioningStatusMessage", @@ -3475,45 +3218,81 @@ export const DevOpsConfigurationProperties: coreClient.CompositeMapper = { }, provisioningState: { serializedName: "provisioningState", + readOnly: true, type: { name: "String", }, }, - authorization: { - serializedName: "authorization", + onboardingState: { + serializedName: "onboardingState", + type: { + name: "String", + }, + }, + actionableRemediation: { + serializedName: "actionableRemediation", type: { name: "Composite", - className: "Authorization", + className: "ActionableRemediation", }, }, - autoDiscovery: { - serializedName: "autoDiscovery", + }, + }, +}; + +export const ActionableRemediation: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ActionableRemediation", + modelProperties: { + state: { + serializedName: "state", type: { name: "String", }, }, - topLevelInventoryList: { - serializedName: "topLevelInventoryList", + categoryConfigurations: { + serializedName: "categoryConfigurations", type: { name: "Sequence", element: { type: { - name: "String", + name: "Composite", + className: "CategoryConfiguration", }, }, }, }, + branchConfiguration: { + serializedName: "branchConfiguration", + type: { + name: "Composite", + className: "TargetBranchConfiguration", + }, + }, + inheritFromParentState: { + serializedName: "inheritFromParentState", + type: { + name: "String", + }, + }, }, }, }; -export const Authorization: coreClient.CompositeMapper = { +export const CategoryConfiguration: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Authorization", + className: "CategoryConfiguration", modelProperties: { - code: { - serializedName: "code", + minimumSeverityLevel: { + serializedName: "minimumSeverityLevel", + type: { + name: "String", + }, + }, + category: { + serializedName: "category", type: { name: "String", }, @@ -3522,25 +3301,24 @@ export const Authorization: coreClient.CompositeMapper = { }, }; -export const GitHubOwnerListResponse: coreClient.CompositeMapper = { +export const TargetBranchConfiguration: coreClient.CompositeMapper = { type: { name: "Composite", - className: "GitHubOwnerListResponse", + className: "TargetBranchConfiguration", modelProperties: { - value: { - serializedName: "value", + branchNames: { + serializedName: "branchNames", type: { name: "Sequence", element: { type: { - name: "Composite", - className: "GitHubOwner", + name: "String", }, }, }, }, - nextLink: { - serializedName: "nextLink", + annotateDefaultBranch: { + serializedName: "annotateDefaultBranch", type: { name: "String", }, @@ -3549,59 +3327,112 @@ export const GitHubOwnerListResponse: coreClient.CompositeMapper = { }, }; -export const GitHubOwnerProperties: coreClient.CompositeMapper = { +export const ResourceAutoGenerated: coreClient.CompositeMapper = { type: { name: "Composite", - className: "GitHubOwnerProperties", + className: "ResourceAutoGenerated", modelProperties: { - provisioningStatusMessage: { - serializedName: "provisioningStatusMessage", + id: { + serializedName: "id", readOnly: true, type: { name: "String", }, }, - provisioningStatusUpdateTimeUtc: { - serializedName: "provisioningStatusUpdateTimeUtc", + name: { + serializedName: "name", readOnly: true, type: { - name: "DateTime", + name: "String", }, }, - provisioningState: { - serializedName: "provisioningState", + type: { + serializedName: "type", + readOnly: true, type: { name: "String", }, }, - ownerUrl: { - serializedName: "ownerUrl", + }, + }, +}; + +export const ErrorResponseAutoGenerated: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ErrorResponseAutoGenerated", + modelProperties: { + error: { + serializedName: "error", + type: { + name: "Composite", + className: "ErrorDetailAutoGenerated", + }, + }, + }, + }, +}; + +export const ErrorDetailAutoGenerated: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ErrorDetailAutoGenerated", + modelProperties: { + code: { + serializedName: "code", readOnly: true, type: { name: "String", }, }, - gitHubInternalId: { - serializedName: "gitHubInternalId", + message: { + serializedName: "message", readOnly: true, type: { name: "String", }, }, - onboardingState: { - serializedName: "onboardingState", + target: { + serializedName: "target", + readOnly: true, type: { name: "String", }, }, + details: { + serializedName: "details", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ErrorDetailAutoGenerated", + }, + }, + }, + }, + additionalInfo: { + serializedName: "additionalInfo", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ErrorAdditionalInfo", + }, + }, + }, + }, }, }, }; -export const GitHubRepositoryListResponse: coreClient.CompositeMapper = { +export const AzureDevOpsProjectListResponse: coreClient.CompositeMapper = { type: { name: "Composite", - className: "GitHubRepositoryListResponse", + className: "AzureDevOpsProjectListResponse", modelProperties: { value: { serializedName: "value", @@ -3610,7 +3441,7 @@ export const GitHubRepositoryListResponse: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "GitHubRepository", + className: "AzureDevOpsProject", }, }, }, @@ -3625,10 +3456,10 @@ export const GitHubRepositoryListResponse: coreClient.CompositeMapper = { }, }; -export const GitHubRepositoryProperties: coreClient.CompositeMapper = { +export const AzureDevOpsProjectProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "GitHubRepositoryProperties", + className: "AzureDevOpsProjectProperties", modelProperties: { provisioningStatusMessage: { serializedName: "provisioningStatusMessage", @@ -3646,26 +3477,19 @@ export const GitHubRepositoryProperties: coreClient.CompositeMapper = { }, provisioningState: { serializedName: "provisioningState", - type: { - name: "String", - }, - }, - repoId: { - serializedName: "repoId", readOnly: true, type: { name: "String", }, }, - repoName: { - serializedName: "repoName", - readOnly: true, + parentOrgName: { + serializedName: "parentOrgName", type: { name: "String", }, }, - repoFullName: { - serializedName: "repoFullName", + projectId: { + serializedName: "projectId", readOnly: true, type: { name: "String", @@ -3677,27 +3501,21 @@ export const GitHubRepositoryProperties: coreClient.CompositeMapper = { name: "String", }, }, - repoUrl: { - serializedName: "repoUrl", - readOnly: true, + actionableRemediation: { + serializedName: "actionableRemediation", type: { - name: "String", - }, - }, - parentOwnerName: { - serializedName: "parentOwnerName", - type: { - name: "String", + name: "Composite", + className: "ActionableRemediation", }, }, }, }, }; -export const GitLabGroupListResponse: coreClient.CompositeMapper = { +export const AzureDevOpsRepositoryListResponse: coreClient.CompositeMapper = { type: { name: "Composite", - className: "GitLabGroupListResponse", + className: "AzureDevOpsRepositoryListResponse", modelProperties: { value: { serializedName: "value", @@ -3706,7 +3524,7 @@ export const GitLabGroupListResponse: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "GitLabGroup", + className: "AzureDevOpsRepository", }, }, }, @@ -3721,10 +3539,10 @@ export const GitLabGroupListResponse: coreClient.CompositeMapper = { }, }; -export const GitLabGroupProperties: coreClient.CompositeMapper = { +export const AzureDevOpsRepositoryProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "GitLabGroupProperties", + className: "AzureDevOpsRepositoryProperties", modelProperties: { provisioningStatusMessage: { serializedName: "provisioningStatusMessage", @@ -3742,26 +3560,39 @@ export const GitLabGroupProperties: coreClient.CompositeMapper = { }, provisioningState: { serializedName: "provisioningState", + readOnly: true, type: { name: "String", }, }, - fullyQualifiedName: { - serializedName: "fullyQualifiedName", + parentOrgName: { + serializedName: "parentOrgName", + type: { + name: "String", + }, + }, + parentProjectName: { + serializedName: "parentProjectName", + type: { + name: "String", + }, + }, + repoId: { + serializedName: "repoId", readOnly: true, type: { name: "String", }, }, - fullyQualifiedFriendlyName: { - serializedName: "fullyQualifiedFriendlyName", + repoUrl: { + serializedName: "repoUrl", readOnly: true, type: { name: "String", }, }, - url: { - serializedName: "url", + visibility: { + serializedName: "visibility", readOnly: true, type: { name: "String", @@ -3773,14 +3604,21 @@ export const GitLabGroupProperties: coreClient.CompositeMapper = { name: "String", }, }, + actionableRemediation: { + serializedName: "actionableRemediation", + type: { + name: "Composite", + className: "ActionableRemediation", + }, + }, }, }, }; -export const GitLabProjectListResponse: coreClient.CompositeMapper = { +export const DevOpsConfigurationListResponse: coreClient.CompositeMapper = { type: { name: "Composite", - className: "GitLabProjectListResponse", + className: "DevOpsConfigurationListResponse", modelProperties: { value: { serializedName: "value", @@ -3789,7 +3627,7 @@ export const GitLabProjectListResponse: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "GitLabProject", + className: "DevOpsConfiguration", }, }, }, @@ -3804,10 +3642,10 @@ export const GitLabProjectListResponse: coreClient.CompositeMapper = { }, }; -export const GitLabProjectProperties: coreClient.CompositeMapper = { +export const DevOpsConfigurationProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "GitLabProjectProperties", + className: "DevOpsConfigurationProperties", modelProperties: { provisioningStatusMessage: { serializedName: "provisioningStatusMessage", @@ -3825,138 +3663,109 @@ export const GitLabProjectProperties: coreClient.CompositeMapper = { }, provisioningState: { serializedName: "provisioningState", - type: { - name: "String", - }, - }, - fullyQualifiedName: { - serializedName: "fullyQualifiedName", readOnly: true, type: { name: "String", }, }, - fullyQualifiedFriendlyName: { - serializedName: "fullyQualifiedFriendlyName", - readOnly: true, + authorization: { + serializedName: "authorization", type: { - name: "String", + name: "Composite", + className: "Authorization", }, }, - fullyQualifiedParentGroupName: { - serializedName: "fullyQualifiedParentGroupName", - readOnly: true, + autoDiscovery: { + serializedName: "autoDiscovery", type: { name: "String", }, }, - url: { - serializedName: "url", - readOnly: true, + topLevelInventoryList: { + serializedName: "topLevelInventoryList", type: { - name: "String", + name: "Sequence", + element: { + type: { + name: "String", + }, + }, }, }, - onboardingState: { - serializedName: "onboardingState", + capabilities: { + serializedName: "capabilities", + readOnly: true, type: { - name: "String", + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DevOpsCapability", + }, + }, }, }, }, }, }; -export const OperationStatusResult: coreClient.CompositeMapper = { +export const Authorization: coreClient.CompositeMapper = { type: { name: "Composite", - className: "OperationStatusResult", + className: "Authorization", modelProperties: { - id: { - serializedName: "id", + code: { + serializedName: "code", type: { name: "String", }, }, + }, + }, +}; + +export const DevOpsCapability: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DevOpsCapability", + modelProperties: { name: { serializedName: "name", + readOnly: true, type: { name: "String", }, }, - status: { - serializedName: "status", - required: true, + value: { + serializedName: "value", + readOnly: true, type: { name: "String", }, }, - percentComplete: { - constraints: { - InclusiveMaximum: 100, - InclusiveMinimum: 0, - }, - serializedName: "percentComplete", - type: { - name: "Number", - }, - }, - startTime: { - serializedName: "startTime", - type: { - name: "DateTime", - }, - }, - endTime: { - serializedName: "endTime", - type: { - name: "DateTime", - }, - }, - operations: { - serializedName: "operations", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "OperationStatusResult", - }, - }, - }, - }, - error: { - serializedName: "error", - type: { - name: "Composite", - className: "ErrorDetailAutoGenerated", - }, - }, }, }, }; -export const SecurityConnectorsList: coreClient.CompositeMapper = { +export const DevOpsPolicyListResponse: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SecurityConnectorsList", + className: "DevOpsPolicyListResponse", modelProperties: { value: { serializedName: "value", - required: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "SecurityConnector", + className: "DevOpsPolicy", }, }, }, }, nextLink: { serializedName: "nextLink", - readOnly: true, type: { name: "String", }, @@ -3965,88 +3774,78 @@ export const SecurityConnectorsList: coreClient.CompositeMapper = { }, }; -export const CloudOffering: coreClient.CompositeMapper = { +export const DevOpsPolicyProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CloudOffering", - uberParent: "CloudOffering", - polymorphicDiscriminator: { - serializedName: "offeringType", - clientName: "offeringType", - }, + className: "DevOpsPolicyProperties", modelProperties: { - offeringType: { - serializedName: "offeringType", - required: true, + provisioningStatusMessage: { + serializedName: "provisioningStatusMessage", + readOnly: true, type: { name: "String", }, }, - description: { - serializedName: "description", + provisioningStatusUpdateTimeUtc: { + serializedName: "provisioningStatusUpdateTimeUtc", + readOnly: true, + type: { + name: "DateTime", + }, + }, + provisioningState: { + serializedName: "provisioningState", readOnly: true, type: { name: "String", }, }, - }, - }, -}; - -export const EnvironmentData: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "EnvironmentData", - uberParent: "EnvironmentData", - polymorphicDiscriminator: { - serializedName: "environmentType", - clientName: "environmentType", - }, - modelProperties: { - environmentType: { - serializedName: "environmentType", - required: true, + source: { + serializedName: "source", type: { name: "String", }, }, - }, - }, -}; - -export const ComplianceResultList: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ComplianceResultList", - modelProperties: { - value: { - serializedName: "value", - required: true, + policyId: { + serializedName: "policyId", + readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ComplianceResult", - }, - }, + name: "Uuid", }, }, - nextLink: { - serializedName: "nextLink", + webUrl: { + serializedName: "webUrl", readOnly: true, type: { name: "String", }, }, + version: { + serializedName: "version", + type: { + name: "String", + }, + }, + type: { + serializedName: "type", + type: { + name: "String", + }, + }, + content: { + serializedName: "content", + type: { + name: "String", + }, + }, }, }, }; -export const DeviceSecurityGroupList: coreClient.CompositeMapper = { +export const DevOpsPolicyAssignmentListResponse: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DeviceSecurityGroupList", + className: "DevOpsPolicyAssignmentListResponse", modelProperties: { value: { serializedName: "value", @@ -4055,14 +3854,13 @@ export const DeviceSecurityGroupList: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "DeviceSecurityGroup", + className: "DevOpsPolicyAssignment", }, }, }, }, nextLink: { serializedName: "nextLink", - readOnly: true, type: { name: "String", }, @@ -4071,233 +3869,190 @@ export const DeviceSecurityGroupList: coreClient.CompositeMapper = { }, }; -export const CustomAlertRule: coreClient.CompositeMapper = { +export const DevOpsPolicyAssignmentProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CustomAlertRule", - uberParent: "CustomAlertRule", - polymorphicDiscriminator: { - serializedName: "ruleType", - clientName: "ruleType", - }, + className: "DevOpsPolicyAssignmentProperties", modelProperties: { - displayName: { - serializedName: "displayName", + provisioningStatusMessage: { + serializedName: "provisioningStatusMessage", readOnly: true, type: { name: "String", }, }, - description: { - serializedName: "description", + provisioningStatusUpdateTimeUtc: { + serializedName: "provisioningStatusUpdateTimeUtc", + readOnly: true, + type: { + name: "DateTime", + }, + }, + provisioningState: { + serializedName: "provisioningState", readOnly: true, type: { name: "String", }, }, - isEnabled: { - serializedName: "isEnabled", - required: true, + resourceId: { + serializedName: "resourceId", type: { - name: "Boolean", + name: "String", }, }, - ruleType: { - serializedName: "ruleType", - required: true, + descendantBehavior: { + serializedName: "descendantBehavior", type: { name: "String", }, }, - }, - }, -}; - -export const IoTSecuritySolutionAnalyticsModelList: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "IoTSecuritySolutionAnalyticsModelList", - modelProperties: { - value: { - serializedName: "value", - required: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "IoTSecuritySolutionAnalyticsModel", - }, - }, - }, + policy: { + serializedName: "policy", + type: { + name: "Composite", + className: "DevOpsPolicyDescriptor", }, - nextLink: { - serializedName: "nextLink", - readOnly: true, - type: { - name: "String", - }, + }, + assignedAt: { + serializedName: "assignedAt", + type: { + name: "DateTime", }, }, }, - }; + }, +}; -export const IoTSeverityMetrics: coreClient.CompositeMapper = { +export const DevOpsPolicyDescriptor: coreClient.CompositeMapper = { type: { name: "Composite", - className: "IoTSeverityMetrics", + className: "DevOpsPolicyDescriptor", modelProperties: { - high: { - serializedName: "high", + policyName: { + serializedName: "policyName", type: { - name: "Number", + name: "String", }, }, - medium: { - serializedName: "medium", + policyId: { + serializedName: "policyId", type: { - name: "Number", + name: "String", }, }, - low: { - serializedName: "low", + policyVersion: { + serializedName: "policyVersion", type: { - name: "Number", + name: "String", }, }, - }, - }, -}; - -export const IoTSecuritySolutionAnalyticsModelPropertiesDevicesMetricsItem: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: - "IoTSecuritySolutionAnalyticsModelPropertiesDevicesMetricsItem", - modelProperties: { - date: { - serializedName: "date", - type: { - name: "DateTime", - }, - }, - devicesMetrics: { - serializedName: "devicesMetrics", - type: { - name: "Composite", - className: "IoTSeverityMetrics", - }, + policyType: { + serializedName: "policyType", + type: { + name: "String", }, }, }, - }; + }, +}; -export const IoTSecurityAlertedDevice: coreClient.CompositeMapper = { +export const GitHubOwnerListResponse: coreClient.CompositeMapper = { type: { name: "Composite", - className: "IoTSecurityAlertedDevice", + className: "GitHubOwnerListResponse", modelProperties: { - deviceId: { - serializedName: "deviceId", - readOnly: true, + value: { + serializedName: "value", type: { - name: "String", + name: "Sequence", + element: { + type: { + name: "Composite", + className: "GitHubOwner", + }, + }, }, }, - alertsCount: { - serializedName: "alertsCount", - readOnly: true, + nextLink: { + serializedName: "nextLink", type: { - name: "Number", + name: "String", }, }, }, }, }; -export const IoTSecurityDeviceAlert: coreClient.CompositeMapper = { +export const GitHubOwnerProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "IoTSecurityDeviceAlert", + className: "GitHubOwnerProperties", modelProperties: { - alertDisplayName: { - serializedName: "alertDisplayName", + provisioningStatusMessage: { + serializedName: "provisioningStatusMessage", readOnly: true, type: { name: "String", }, }, - reportedSeverity: { - serializedName: "reportedSeverity", + provisioningStatusUpdateTimeUtc: { + serializedName: "provisioningStatusUpdateTimeUtc", readOnly: true, type: { - name: "String", + name: "DateTime", }, }, - alertsCount: { - serializedName: "alertsCount", + provisioningState: { + serializedName: "provisioningState", readOnly: true, type: { - name: "Number", + name: "String", }, }, - }, - }, -}; - -export const IoTSecurityDeviceRecommendation: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "IoTSecurityDeviceRecommendation", - modelProperties: { - recommendationDisplayName: { - serializedName: "recommendationDisplayName", + ownerUrl: { + serializedName: "ownerUrl", readOnly: true, type: { name: "String", }, }, - reportedSeverity: { - serializedName: "reportedSeverity", + gitHubInternalId: { + serializedName: "gitHubInternalId", readOnly: true, type: { name: "String", }, }, - devicesCount: { - serializedName: "devicesCount", - readOnly: true, + onboardingState: { + serializedName: "onboardingState", type: { - name: "Number", + name: "String", }, }, }, }, }; -export const IoTSecurityAggregatedAlertList: coreClient.CompositeMapper = { +export const GitHubRepositoryListResponse: coreClient.CompositeMapper = { type: { name: "Composite", - className: "IoTSecurityAggregatedAlertList", + className: "GitHubRepositoryListResponse", modelProperties: { value: { serializedName: "value", - required: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "IoTSecurityAggregatedAlert", + className: "GitHubRepository", }, }, }, }, nextLink: { serializedName: "nextLink", - readOnly: true, type: { name: "String", }, @@ -4306,216 +4061,80 @@ export const IoTSecurityAggregatedAlertList: coreClient.CompositeMapper = { }, }; -export const IoTSecurityAggregatedAlertPropertiesTopDevicesListItem: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "IoTSecurityAggregatedAlertPropertiesTopDevicesListItem", - modelProperties: { - deviceId: { - serializedName: "deviceId", - readOnly: true, - type: { - name: "String", - }, - }, - alertsCount: { - serializedName: "alertsCount", - readOnly: true, - type: { - name: "Number", - }, - }, - lastOccurrence: { - serializedName: "lastOccurrence", - readOnly: true, - type: { - name: "String", - }, - }, - }, - }, - }; - -export const TagsResource: coreClient.CompositeMapper = { +export const GitHubRepositoryProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "TagsResource", + className: "GitHubRepositoryProperties", modelProperties: { - tags: { - serializedName: "tags", + provisioningStatusMessage: { + serializedName: "provisioningStatusMessage", + readOnly: true, type: { - name: "Dictionary", - value: { type: { name: "String" } }, + name: "String", }, }, - }, - }, -}; - -export const IoTSecurityAggregatedRecommendationList: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "IoTSecurityAggregatedRecommendationList", - modelProperties: { - value: { - serializedName: "value", - required: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "IoTSecurityAggregatedRecommendation", - }, - }, - }, - }, - nextLink: { - serializedName: "nextLink", - readOnly: true, - type: { - name: "String", - }, + provisioningStatusUpdateTimeUtc: { + serializedName: "provisioningStatusUpdateTimeUtc", + readOnly: true, + type: { + name: "DateTime", }, }, - }, - }; - -export const IoTSecuritySolutionsList: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "IoTSecuritySolutionsList", - modelProperties: { - value: { - serializedName: "value", - required: true, + provisioningState: { + serializedName: "provisioningState", + readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "IoTSecuritySolutionModel", - }, - }, + name: "String", }, }, - nextLink: { - serializedName: "nextLink", + repoId: { + serializedName: "repoId", readOnly: true, type: { name: "String", }, }, - }, - }, -}; - -export const UserDefinedResourcesProperties: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "UserDefinedResourcesProperties", - modelProperties: { - query: { - serializedName: "query", - required: true, - nullable: true, + repoName: { + serializedName: "repoName", + readOnly: true, type: { name: "String", }, }, - querySubscriptions: { - serializedName: "querySubscriptions", - required: true, - nullable: true, + repoFullName: { + serializedName: "repoFullName", + readOnly: true, type: { - name: "Sequence", - element: { - constraints: { - Pattern: new RegExp( - "^[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}$", - ), - }, - type: { - name: "String", - }, - }, - }, - }, - }, - }, -}; - -export const RecommendationConfigurationProperties: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "RecommendationConfigurationProperties", - modelProperties: { - recommendationType: { - serializedName: "recommendationType", - required: true, - type: { - name: "String", - }, - }, - name: { - serializedName: "name", - readOnly: true, - type: { - name: "String", - }, - }, - status: { - defaultValue: "Enabled", - serializedName: "status", - required: true, - type: { - name: "String", - }, + name: "String", }, }, - }, - }; - -export const AdditionalWorkspacesProperties: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "AdditionalWorkspacesProperties", - modelProperties: { - workspace: { - serializedName: "workspace", + onboardingState: { + serializedName: "onboardingState", type: { name: "String", }, }, - type: { - defaultValue: "Sentinel", - serializedName: "type", + repoUrl: { + serializedName: "repoUrl", + readOnly: true, type: { name: "String", }, }, - dataTypes: { - serializedName: "dataTypes", + parentOwnerName: { + serializedName: "parentOwnerName", type: { - name: "Sequence", - element: { - type: { - name: "String", - }, - }, + name: "String", }, }, }, }, }; -export const AdaptiveNetworkHardeningsList: coreClient.CompositeMapper = { +export const GitLabGroupListResponse: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AdaptiveNetworkHardeningsList", + className: "GitLabGroupListResponse", modelProperties: { value: { serializedName: "value", @@ -4524,7 +4143,7 @@ export const AdaptiveNetworkHardeningsList: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "AdaptiveNetworkHardening", + className: "GitLabGroup", }, }, }, @@ -4539,141 +4158,82 @@ export const AdaptiveNetworkHardeningsList: coreClient.CompositeMapper = { }, }; -export const Rule: coreClient.CompositeMapper = { +export const GitLabGroupProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Rule", + className: "GitLabGroupProperties", modelProperties: { - name: { - serializedName: "name", + provisioningStatusMessage: { + serializedName: "provisioningStatusMessage", + readOnly: true, type: { name: "String", }, }, - direction: { - serializedName: "direction", + provisioningStatusUpdateTimeUtc: { + serializedName: "provisioningStatusUpdateTimeUtc", + readOnly: true, type: { - name: "String", + name: "DateTime", }, }, - destinationPort: { - constraints: { - InclusiveMaximum: 65535, - InclusiveMinimum: 0, - }, - serializedName: "destinationPort", + provisioningState: { + serializedName: "provisioningState", + readOnly: true, type: { - name: "Number", + name: "String", }, }, - protocols: { - serializedName: "protocols", + fullyQualifiedName: { + serializedName: "fullyQualifiedName", + readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "String", - }, - }, + name: "String", }, }, - ipAddresses: { - serializedName: "ipAddresses", + fullyQualifiedFriendlyName: { + serializedName: "fullyQualifiedFriendlyName", + readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "String", - }, - }, + name: "String", }, }, - }, - }, -}; - -export const EffectiveNetworkSecurityGroups: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "EffectiveNetworkSecurityGroups", - modelProperties: { - networkInterface: { - serializedName: "networkInterface", + url: { + serializedName: "url", + readOnly: true, type: { name: "String", }, }, - networkSecurityGroups: { - serializedName: "networkSecurityGroups", + onboardingState: { + serializedName: "onboardingState", type: { - name: "Sequence", - element: { - type: { - name: "String", - }, - }, + name: "String", }, }, }, }, }; -export const AdaptiveNetworkHardeningEnforceRequest: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "AdaptiveNetworkHardeningEnforceRequest", - modelProperties: { - rules: { - serializedName: "rules", - required: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "Rule", - }, - }, - }, - }, - networkSecurityGroups: { - serializedName: "networkSecurityGroups", - required: true, - type: { - name: "Sequence", - element: { - type: { - name: "String", - }, - }, - }, - }, - }, - }, - }; - -export const AllowedConnectionsList: coreClient.CompositeMapper = { +export const GitLabProjectListResponse: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AllowedConnectionsList", + className: "GitLabProjectListResponse", modelProperties: { value: { serializedName: "value", - readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "AllowedConnectionsResource", + className: "GitLabProject", }, }, }, }, nextLink: { serializedName: "nextLink", - readOnly: true, type: { name: "String", }, @@ -4682,140 +4242,62 @@ export const AllowedConnectionsList: coreClient.CompositeMapper = { }, }; -export const ConnectableResource: coreClient.CompositeMapper = { +export const GitLabProjectProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ConnectableResource", + className: "GitLabProjectProperties", modelProperties: { - id: { - serializedName: "id", + provisioningStatusMessage: { + serializedName: "provisioningStatusMessage", readOnly: true, type: { name: "String", }, }, - inboundConnectedResources: { - serializedName: "inboundConnectedResources", + provisioningStatusUpdateTimeUtc: { + serializedName: "provisioningStatusUpdateTimeUtc", readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ConnectedResource", - }, - }, + name: "DateTime", }, }, - outboundConnectedResources: { - serializedName: "outboundConnectedResources", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ConnectedResource", - }, - }, - }, - }, - }, - }, -}; - -export const ConnectedResource: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ConnectedResource", - modelProperties: { - connectedResourceId: { - serializedName: "connectedResourceId", + provisioningState: { + serializedName: "provisioningState", readOnly: true, type: { name: "String", }, }, - tcpPorts: { - serializedName: "tcpPorts", + fullyQualifiedName: { + serializedName: "fullyQualifiedName", readOnly: true, type: { name: "String", }, }, - udpPorts: { - serializedName: "udpPorts", + fullyQualifiedFriendlyName: { + serializedName: "fullyQualifiedFriendlyName", readOnly: true, type: { name: "String", }, }, - }, - }, -}; - -export const Location: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "Location", - modelProperties: { - location: { - serializedName: "location", + fullyQualifiedParentGroupName: { + serializedName: "fullyQualifiedParentGroupName", readOnly: true, type: { name: "String", }, }, - }, - }, -}; - -export const AdaptiveApplicationControlGroups: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "AdaptiveApplicationControlGroups", - modelProperties: { - value: { - serializedName: "value", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "AdaptiveApplicationControlGroup", - }, - }, - }, - }, - }, - }, -}; - -export const ProtectionMode: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ProtectionMode", - modelProperties: { - exe: { - serializedName: "exe", - type: { - name: "String", - }, - }, - msi: { - serializedName: "msi", - type: { - name: "String", - }, - }, - script: { - serializedName: "script", + url: { + serializedName: "url", + readOnly: true, type: { name: "String", }, }, - executable: { - serializedName: "executable", + onboardingState: { + serializedName: "onboardingState", type: { name: "String", }, @@ -4824,203 +4306,89 @@ export const ProtectionMode: coreClient.CompositeMapper = { }, }; -export const AdaptiveApplicationControlIssueSummary: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "AdaptiveApplicationControlIssueSummary", - modelProperties: { - issue: { - serializedName: "issue", - type: { - name: "String", - }, - }, - numberOfVms: { - serializedName: "numberOfVms", - type: { - name: "Number", - }, - }, - }, - }, - }; - -export const VmRecommendation: coreClient.CompositeMapper = { +export const OperationStatusResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VmRecommendation", + className: "OperationStatusResult", modelProperties: { - configurationStatus: { - serializedName: "configurationStatus", - type: { - name: "String", - }, - }, - recommendationAction: { - serializedName: "recommendationAction", - type: { - name: "String", - }, - }, - resourceId: { - serializedName: "resourceId", - type: { - name: "String", - }, - }, - enforcementSupport: { - serializedName: "enforcementSupport", + id: { + serializedName: "id", type: { name: "String", }, }, - }, - }, -}; - -export const PathRecommendation: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "PathRecommendation", - modelProperties: { - path: { - serializedName: "path", + name: { + serializedName: "name", type: { name: "String", }, }, - action: { - serializedName: "action", + status: { + serializedName: "status", + required: true, type: { name: "String", }, }, - type: { - serializedName: "type", - type: { - name: "String", + percentComplete: { + constraints: { + InclusiveMaximum: 100, + InclusiveMinimum: 0, }, - }, - publisherInfo: { - serializedName: "publisherInfo", + serializedName: "percentComplete", type: { - name: "Composite", - className: "PublisherInfo", + name: "Number", }, }, - common: { - serializedName: "common", + startTime: { + serializedName: "startTime", type: { - name: "Boolean", + name: "DateTime", }, }, - userSids: { - serializedName: "userSids", + endTime: { + serializedName: "endTime", type: { - name: "Sequence", - element: { - type: { - name: "String", - }, - }, + name: "DateTime", }, }, - usernames: { - serializedName: "usernames", + operations: { + serializedName: "operations", type: { name: "Sequence", element: { type: { name: "Composite", - className: "UserRecommendation", + className: "OperationStatusResult", }, }, }, }, - fileType: { - serializedName: "fileType", - type: { - name: "String", - }, - }, - configurationStatus: { - serializedName: "configurationStatus", - type: { - name: "String", - }, - }, - }, - }, -}; - -export const PublisherInfo: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "PublisherInfo", - modelProperties: { - publisherName: { - serializedName: "publisherName", - type: { - name: "String", - }, - }, - productName: { - serializedName: "productName", - type: { - name: "String", - }, - }, - binaryName: { - serializedName: "binaryName", - type: { - name: "String", - }, - }, - version: { - serializedName: "version", - type: { - name: "String", - }, - }, - }, - }, -}; - -export const UserRecommendation: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "UserRecommendation", - modelProperties: { - username: { - serializedName: "username", - type: { - name: "String", - }, - }, - recommendationAction: { - serializedName: "recommendationAction", + error: { + serializedName: "error", type: { - name: "String", + name: "Composite", + className: "ErrorDetailAutoGenerated", }, }, }, }, }; -export const DiscoveredSecuritySolutionList: coreClient.CompositeMapper = { +export const ComplianceResultList: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DiscoveredSecuritySolutionList", + className: "ComplianceResultList", modelProperties: { value: { serializedName: "value", + required: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "DiscoveredSecuritySolution", + className: "ComplianceResult", }, }, }, @@ -5036,10 +4404,10 @@ export const DiscoveredSecuritySolutionList: coreClient.CompositeMapper = { }, }; -export const ExternalSecuritySolutionList: coreClient.CompositeMapper = { +export const DeviceSecurityGroupList: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ExternalSecuritySolutionList", + className: "DeviceSecurityGroupList", modelProperties: { value: { serializedName: "value", @@ -5048,7 +4416,7 @@ export const ExternalSecuritySolutionList: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ExternalSecuritySolution", + className: "DeviceSecurityGroup", }, }, }, @@ -5064,78 +4432,70 @@ export const ExternalSecuritySolutionList: coreClient.CompositeMapper = { }, }; -export const ExternalSecuritySolutionKindAutoGenerated: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "ExternalSecuritySolutionKindAutoGenerated", - modelProperties: { - kind: { - serializedName: "kind", - type: { - name: "String", - }, - }, - }, - }, - }; - -export const JitNetworkAccessPoliciesList: coreClient.CompositeMapper = { +export const CustomAlertRule: coreClient.CompositeMapper = { type: { name: "Composite", - className: "JitNetworkAccessPoliciesList", + className: "CustomAlertRule", + uberParent: "CustomAlertRule", + polymorphicDiscriminator: { + serializedName: "ruleType", + clientName: "ruleType", + }, modelProperties: { - value: { - serializedName: "value", + displayName: { + serializedName: "displayName", + readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "JitNetworkAccessPolicy", - }, - }, + name: "String", }, }, - nextLink: { - serializedName: "nextLink", + description: { + serializedName: "description", readOnly: true, type: { name: "String", }, }, + isEnabled: { + serializedName: "isEnabled", + required: true, + type: { + name: "Boolean", + }, + }, + ruleType: { + serializedName: "ruleType", + required: true, + type: { + name: "String", + }, + }, }, }, }; -export const JitNetworkAccessPolicyVirtualMachine: coreClient.CompositeMapper = +export const IoTSecuritySolutionAnalyticsModelList: coreClient.CompositeMapper = { type: { name: "Composite", - className: "JitNetworkAccessPolicyVirtualMachine", + className: "IoTSecuritySolutionAnalyticsModelList", modelProperties: { - id: { - serializedName: "id", - required: true, - type: { - name: "String", - }, - }, - ports: { - serializedName: "ports", + value: { + serializedName: "value", required: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "JitNetworkAccessPortRule", + className: "IoTSecuritySolutionAnalyticsModel", }, }, }, }, - publicIpAddress: { - serializedName: "publicIpAddress", + nextLink: { + serializedName: "nextLink", + readOnly: true, type: { name: "String", }, @@ -5144,214 +4504,238 @@ export const JitNetworkAccessPolicyVirtualMachine: coreClient.CompositeMapper = }, }; -export const JitNetworkAccessPortRule: coreClient.CompositeMapper = { +export const IoTSeverityMetrics: coreClient.CompositeMapper = { type: { name: "Composite", - className: "JitNetworkAccessPortRule", + className: "IoTSeverityMetrics", modelProperties: { - number: { - constraints: { - InclusiveMaximum: 65535, - InclusiveMinimum: 0, - }, - serializedName: "number", - required: true, + high: { + serializedName: "high", type: { name: "Number", }, }, - protocol: { - serializedName: "protocol", - required: true, + medium: { + serializedName: "medium", type: { - name: "String", + name: "Number", }, }, - allowedSourceAddressPrefix: { - serializedName: "allowedSourceAddressPrefix", + low: { + serializedName: "low", type: { - name: "String", + name: "Number", }, }, - allowedSourceAddressPrefixes: { - serializedName: "allowedSourceAddressPrefixes", - type: { - name: "Sequence", - element: { - type: { - name: "String", - }, + }, + }, +}; + +export const IoTSecuritySolutionAnalyticsModelPropertiesDevicesMetricsItem: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: + "IoTSecuritySolutionAnalyticsModelPropertiesDevicesMetricsItem", + modelProperties: { + date: { + serializedName: "date", + type: { + name: "DateTime", + }, + }, + devicesMetrics: { + serializedName: "devicesMetrics", + type: { + name: "Composite", + className: "IoTSeverityMetrics", }, }, }, - maxRequestAccessDuration: { - serializedName: "maxRequestAccessDuration", - required: true, + }, + }; + +export const IoTSecurityAlertedDevice: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "IoTSecurityAlertedDevice", + modelProperties: { + deviceId: { + serializedName: "deviceId", + readOnly: true, type: { name: "String", }, }, + alertsCount: { + serializedName: "alertsCount", + readOnly: true, + type: { + name: "Number", + }, + }, }, }, }; -export const JitNetworkAccessRequest: coreClient.CompositeMapper = { +export const IoTSecurityDeviceAlert: coreClient.CompositeMapper = { type: { name: "Composite", - className: "JitNetworkAccessRequest", + className: "IoTSecurityDeviceAlert", modelProperties: { - virtualMachines: { - serializedName: "virtualMachines", - required: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "JitNetworkAccessRequestVirtualMachine", - }, - }, - }, - }, - startTimeUtc: { - serializedName: "startTimeUtc", - required: true, + alertDisplayName: { + serializedName: "alertDisplayName", + readOnly: true, type: { - name: "DateTime", + name: "String", }, }, - requestor: { - serializedName: "requestor", - required: true, + reportedSeverity: { + serializedName: "reportedSeverity", + readOnly: true, type: { name: "String", }, }, - justification: { - serializedName: "justification", + alertsCount: { + serializedName: "alertsCount", + readOnly: true, type: { - name: "String", + name: "Number", }, }, }, }, }; -export const JitNetworkAccessRequestVirtualMachine: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "JitNetworkAccessRequestVirtualMachine", - modelProperties: { - id: { - serializedName: "id", - required: true, - type: { - name: "String", - }, - }, - ports: { - serializedName: "ports", - required: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "JitNetworkAccessRequestPort", - }, - }, - }, - }, - }, - }, - }; - -export const JitNetworkAccessRequestPort: coreClient.CompositeMapper = { +export const IoTSecurityDeviceRecommendation: coreClient.CompositeMapper = { type: { name: "Composite", - className: "JitNetworkAccessRequestPort", + className: "IoTSecurityDeviceRecommendation", modelProperties: { - number: { - constraints: { - InclusiveMaximum: 65535, - InclusiveMinimum: 0, - }, - serializedName: "number", - required: true, + recommendationDisplayName: { + serializedName: "recommendationDisplayName", + readOnly: true, type: { - name: "Number", + name: "String", }, }, - allowedSourceAddressPrefix: { - serializedName: "allowedSourceAddressPrefix", + reportedSeverity: { + serializedName: "reportedSeverity", + readOnly: true, type: { name: "String", }, }, - allowedSourceAddressPrefixes: { - serializedName: "allowedSourceAddressPrefixes", + devicesCount: { + serializedName: "devicesCount", + readOnly: true, + type: { + name: "Number", + }, + }, + }, + }, +}; + +export const IoTSecurityAggregatedAlertList: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "IoTSecurityAggregatedAlertList", + modelProperties: { + value: { + serializedName: "value", + required: true, type: { name: "Sequence", element: { type: { - name: "String", + name: "Composite", + className: "IoTSecurityAggregatedAlert", }, }, }, }, - endTimeUtc: { - serializedName: "endTimeUtc", - required: true, - type: { - name: "DateTime", - }, - }, - status: { - serializedName: "status", - required: true, - type: { - name: "String", - }, - }, - statusReason: { - serializedName: "statusReason", - required: true, + nextLink: { + serializedName: "nextLink", + readOnly: true, type: { name: "String", }, }, - mappedPort: { - serializedName: "mappedPort", - type: { - name: "Number", - }, - }, }, }, }; -export const JitNetworkAccessPolicyInitiateRequest: coreClient.CompositeMapper = +export const IoTSecurityAggregatedAlertPropertiesTopDevicesListItem: coreClient.CompositeMapper = { type: { name: "Composite", - className: "JitNetworkAccessPolicyInitiateRequest", + className: "IoTSecurityAggregatedAlertPropertiesTopDevicesListItem", modelProperties: { - virtualMachines: { - serializedName: "virtualMachines", + deviceId: { + serializedName: "deviceId", + readOnly: true, + type: { + name: "String", + }, + }, + alertsCount: { + serializedName: "alertsCount", + readOnly: true, + type: { + name: "Number", + }, + }, + lastOccurrence: { + serializedName: "lastOccurrence", + readOnly: true, + type: { + name: "String", + }, + }, + }, + }, + }; + +export const TagsResource: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "TagsResource", + modelProperties: { + tags: { + serializedName: "tags", + type: { + name: "Dictionary", + value: { type: { name: "String" } }, + }, + }, + }, + }, +}; + +export const IoTSecurityAggregatedRecommendationList: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "IoTSecurityAggregatedRecommendationList", + modelProperties: { + value: { + serializedName: "value", required: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "JitNetworkAccessPolicyInitiateVirtualMachine", + className: "IoTSecurityAggregatedRecommendation", }, }, }, }, - justification: { - serializedName: "justification", + nextLink: { + serializedName: "nextLink", + readOnly: true, type: { name: "String", }, @@ -5360,73 +4744,139 @@ export const JitNetworkAccessPolicyInitiateRequest: coreClient.CompositeMapper = }, }; -export const JitNetworkAccessPolicyInitiateVirtualMachine: coreClient.CompositeMapper = +export const IoTSecuritySolutionsList: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "IoTSecuritySolutionsList", + modelProperties: { + value: { + serializedName: "value", + required: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "IoTSecuritySolutionModel", + }, + }, + }, + }, + nextLink: { + serializedName: "nextLink", + readOnly: true, + type: { + name: "String", + }, + }, + }, + }, +}; + +export const UserDefinedResourcesProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "UserDefinedResourcesProperties", + modelProperties: { + query: { + serializedName: "query", + required: true, + nullable: true, + type: { + name: "String", + }, + }, + querySubscriptions: { + serializedName: "querySubscriptions", + required: true, + nullable: true, + type: { + name: "Sequence", + element: { + constraints: { + Pattern: new RegExp( + "^[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}$", + ), + }, + type: { + name: "String", + }, + }, + }, + }, + }, + }, +}; + +export const RecommendationConfigurationProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "JitNetworkAccessPolicyInitiateVirtualMachine", + className: "RecommendationConfigurationProperties", modelProperties: { - id: { - serializedName: "id", + recommendationType: { + serializedName: "recommendationType", required: true, type: { name: "String", }, }, - ports: { - serializedName: "ports", + name: { + serializedName: "name", + readOnly: true, + type: { + name: "String", + }, + }, + status: { + defaultValue: "Enabled", + serializedName: "status", required: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "JitNetworkAccessPolicyInitiatePort", - }, - }, + name: "String", }, }, }, }, }; -export const JitNetworkAccessPolicyInitiatePort: coreClient.CompositeMapper = { +export const AdditionalWorkspacesProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "JitNetworkAccessPolicyInitiatePort", + className: "AdditionalWorkspacesProperties", modelProperties: { - number: { - constraints: { - InclusiveMaximum: 65535, - InclusiveMinimum: 0, - }, - serializedName: "number", - required: true, + workspace: { + serializedName: "workspace", type: { - name: "Number", + name: "String", }, }, - allowedSourceAddressPrefix: { - serializedName: "allowedSourceAddressPrefix", + type: { + defaultValue: "Sentinel", + serializedName: "type", type: { name: "String", }, }, - endTimeUtc: { - serializedName: "endTimeUtc", - required: true, + dataTypes: { + serializedName: "dataTypes", type: { - name: "DateTime", + name: "Sequence", + element: { + type: { + name: "String", + }, + }, }, }, }, }, }; -export const SecureScoresList: coreClient.CompositeMapper = { +export const AllowedConnectionsList: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SecureScoresList", + className: "AllowedConnectionsList", modelProperties: { value: { serializedName: "value", @@ -5436,7 +4886,7 @@ export const SecureScoresList: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "SecureScoreItem", + className: "AllowedConnectionsResource", }, }, }, @@ -5452,42 +4902,70 @@ export const SecureScoresList: coreClient.CompositeMapper = { }, }; -export const SecureScoreControlList: coreClient.CompositeMapper = { +export const ConnectableResource: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SecureScoreControlList", + className: "ConnectableResource", modelProperties: { - value: { - serializedName: "value", + id: { + serializedName: "id", + readOnly: true, + type: { + name: "String", + }, + }, + inboundConnectedResources: { + serializedName: "inboundConnectedResources", readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "SecureScoreControlDetails", + className: "ConnectedResource", }, }, }, }, - nextLink: { - serializedName: "nextLink", + outboundConnectedResources: { + serializedName: "outboundConnectedResources", readOnly: true, type: { - name: "String", + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ConnectedResource", + }, + }, }, }, }, }, }; -export const SecureScoreControlDefinitionSource: coreClient.CompositeMapper = { +export const ConnectedResource: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SecureScoreControlDefinitionSource", + className: "ConnectedResource", modelProperties: { - sourceType: { - serializedName: "sourceType", + connectedResourceId: { + serializedName: "connectedResourceId", + readOnly: true, + type: { + name: "String", + }, + }, + tcpPorts: { + serializedName: "tcpPorts", + readOnly: true, + type: { + name: "String", + }, + }, + udpPorts: { + serializedName: "udpPorts", + readOnly: true, type: { name: "String", }, @@ -5496,13 +4974,13 @@ export const SecureScoreControlDefinitionSource: coreClient.CompositeMapper = { }, }; -export const AzureResourceLink: coreClient.CompositeMapper = { +export const Location: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AzureResourceLink", + className: "Location", modelProperties: { - id: { - serializedName: "id", + location: { + serializedName: "location", readOnly: true, type: { name: "String", @@ -5512,20 +4990,19 @@ export const AzureResourceLink: coreClient.CompositeMapper = { }, }; -export const SecureScoreControlDefinitionList: coreClient.CompositeMapper = { +export const DiscoveredSecuritySolutionList: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SecureScoreControlDefinitionList", + className: "DiscoveredSecuritySolutionList", modelProperties: { value: { serializedName: "value", - readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "SecureScoreControlDefinitionItem", + className: "DiscoveredSecuritySolution", }, }, }, @@ -5541,10 +5018,10 @@ export const SecureScoreControlDefinitionList: coreClient.CompositeMapper = { }, }; -export const SecuritySolutionList: coreClient.CompositeMapper = { +export const ExternalSecuritySolutionList: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SecuritySolutionList", + className: "ExternalSecuritySolutionList", modelProperties: { value: { serializedName: "value", @@ -5553,7 +5030,7 @@ export const SecuritySolutionList: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "SecuritySolution", + className: "ExternalSecuritySolution", }, }, }, @@ -5569,62 +5046,35 @@ export const SecuritySolutionList: coreClient.CompositeMapper = { }, }; -export const SecuritySolutionsReferenceDataList: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "SecuritySolutionsReferenceDataList", - modelProperties: { - value: { - serializedName: "value", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SecuritySolutionsReferenceData", - }, - }, - }, - }, - }, - }, -}; - -export const ServerVulnerabilityAssessmentsList: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ServerVulnerabilityAssessmentsList", - modelProperties: { - value: { - serializedName: "value", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ServerVulnerabilityAssessment", - }, +export const ExternalSecuritySolutionKindAutoGenerated: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "ExternalSecuritySolutionKindAutoGenerated", + modelProperties: { + kind: { + serializedName: "kind", + type: { + name: "String", }, }, }, }, - }, -}; + }; -export const TopologyList: coreClient.CompositeMapper = { +export const JitNetworkAccessPoliciesList: coreClient.CompositeMapper = { type: { name: "Composite", - className: "TopologyList", + className: "JitNetworkAccessPoliciesList", modelProperties: { value: { serializedName: "value", - readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "TopologyResource", + className: "JitNetworkAccessPolicy", }, }, }, @@ -5640,107 +5090,127 @@ export const TopologyList: coreClient.CompositeMapper = { }, }; -export const TopologySingleResource: coreClient.CompositeMapper = { +export const JitNetworkAccessPolicyVirtualMachine: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "JitNetworkAccessPolicyVirtualMachine", + modelProperties: { + id: { + serializedName: "id", + required: true, + type: { + name: "String", + }, + }, + ports: { + serializedName: "ports", + required: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "JitNetworkAccessPortRule", + }, + }, + }, + }, + publicIpAddress: { + serializedName: "publicIpAddress", + type: { + name: "String", + }, + }, + }, + }, + }; + +export const JitNetworkAccessPortRule: coreClient.CompositeMapper = { type: { name: "Composite", - className: "TopologySingleResource", + className: "JitNetworkAccessPortRule", modelProperties: { - resourceId: { - serializedName: "resourceId", - readOnly: true, - type: { - name: "String", - }, - }, - severity: { - serializedName: "severity", - readOnly: true, - type: { - name: "String", + number: { + constraints: { + InclusiveMaximum: 65535, + InclusiveMinimum: 0, }, - }, - recommendationsExist: { - serializedName: "recommendationsExist", - readOnly: true, + serializedName: "number", + required: true, type: { - name: "Boolean", + name: "Number", }, }, - networkZones: { - serializedName: "networkZones", - readOnly: true, + protocol: { + serializedName: "protocol", + required: true, type: { name: "String", }, }, - topologyScore: { - serializedName: "topologyScore", - readOnly: true, - type: { - name: "Number", - }, - }, - location: { - serializedName: "location", - readOnly: true, + allowedSourceAddressPrefix: { + serializedName: "allowedSourceAddressPrefix", type: { name: "String", }, }, - parents: { - serializedName: "parents", - readOnly: true, + allowedSourceAddressPrefixes: { + serializedName: "allowedSourceAddressPrefixes", type: { name: "Sequence", element: { type: { - name: "Composite", - className: "TopologySingleResourceParent", + name: "String", }, }, }, }, - children: { - serializedName: "children", - readOnly: true, + maxRequestAccessDuration: { + serializedName: "maxRequestAccessDuration", + required: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "TopologySingleResourceChild", - }, - }, + name: "String", }, }, }, }, }; -export const TopologySingleResourceParent: coreClient.CompositeMapper = { +export const JitNetworkAccessRequest: coreClient.CompositeMapper = { type: { name: "Composite", - className: "TopologySingleResourceParent", + className: "JitNetworkAccessRequest", modelProperties: { - resourceId: { - serializedName: "resourceId", - readOnly: true, + virtualMachines: { + serializedName: "virtualMachines", + required: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "JitNetworkAccessRequestVirtualMachine", + }, + }, + }, + }, + startTimeUtc: { + serializedName: "startTimeUtc", + required: true, + type: { + name: "DateTime", + }, + }, + requestor: { + serializedName: "requestor", + required: true, type: { name: "String", }, }, - }, - }, -}; - -export const TopologySingleResourceChild: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "TopologySingleResourceChild", - modelProperties: { - resourceId: { - serializedName: "resourceId", - readOnly: true, + justification: { + serializedName: "justification", type: { name: "String", }, @@ -5749,196 +5219,196 @@ export const TopologySingleResourceChild: coreClient.CompositeMapper = { }, }; -export const SecurityAssessmentMetadataResponseList: coreClient.CompositeMapper = +export const JitNetworkAccessRequestVirtualMachine: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SecurityAssessmentMetadataResponseList", + className: "JitNetworkAccessRequestVirtualMachine", modelProperties: { - value: { - serializedName: "value", - readOnly: true, + id: { + serializedName: "id", + required: true, + type: { + name: "String", + }, + }, + ports: { + serializedName: "ports", + required: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "SecurityAssessmentMetadataResponse", + className: "JitNetworkAccessRequestPort", }, }, }, }, - nextLink: { - serializedName: "nextLink", - readOnly: true, - type: { - name: "String", - }, - }, }, }, }; -export const SecurityAssessmentMetadataPropertiesResponsePublishDates: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "SecurityAssessmentMetadataPropertiesResponsePublishDates", - modelProperties: { - ga: { - constraints: { - Pattern: new RegExp("^([0-9]{2}\\/){2}[0-9]{4}$"), - }, - serializedName: "GA", - type: { - name: "String", - }, - }, - public: { - constraints: { - Pattern: new RegExp("^([0-9]{2}\\/){2}[0-9]{4}$"), - }, - serializedName: "public", - required: true, - type: { - name: "String", +export const JitNetworkAccessRequestPort: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "JitNetworkAccessRequestPort", + modelProperties: { + number: { + constraints: { + InclusiveMaximum: 65535, + InclusiveMinimum: 0, + }, + serializedName: "number", + required: true, + type: { + name: "Number", + }, + }, + allowedSourceAddressPrefix: { + serializedName: "allowedSourceAddressPrefix", + type: { + name: "String", + }, + }, + allowedSourceAddressPrefixes: { + serializedName: "allowedSourceAddressPrefixes", + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, }, }, }, + endTimeUtc: { + serializedName: "endTimeUtc", + required: true, + type: { + name: "DateTime", + }, + }, + status: { + serializedName: "status", + required: true, + type: { + name: "String", + }, + }, + statusReason: { + serializedName: "statusReason", + required: true, + type: { + name: "String", + }, + }, + mappedPort: { + serializedName: "mappedPort", + type: { + name: "Number", + }, + }, }, - }; + }, +}; -export const SecurityAssessmentMetadataProperties: coreClient.CompositeMapper = +export const JitNetworkAccessPolicyInitiateRequest: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SecurityAssessmentMetadataProperties", + className: "JitNetworkAccessPolicyInitiateRequest", modelProperties: { - displayName: { - serializedName: "displayName", + virtualMachines: { + serializedName: "virtualMachines", required: true, - type: { - name: "String", - }, - }, - policyDefinitionId: { - serializedName: "policyDefinitionId", - readOnly: true, - type: { - name: "String", - }, - }, - description: { - serializedName: "description", - type: { - name: "String", - }, - }, - remediationDescription: { - serializedName: "remediationDescription", - type: { - name: "String", - }, - }, - categories: { - serializedName: "categories", type: { name: "Sequence", element: { type: { - name: "String", + name: "Composite", + className: "JitNetworkAccessPolicyInitiateVirtualMachine", }, }, }, }, - severity: { - serializedName: "severity", - required: true, - type: { - name: "String", - }, - }, - userImpact: { - serializedName: "userImpact", + justification: { + serializedName: "justification", type: { name: "String", }, }, - implementationEffort: { - serializedName: "implementationEffort", + }, + }, + }; + +export const JitNetworkAccessPolicyInitiateVirtualMachine: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "JitNetworkAccessPolicyInitiateVirtualMachine", + modelProperties: { + id: { + serializedName: "id", + required: true, type: { name: "String", }, }, - threats: { - serializedName: "threats", + ports: { + serializedName: "ports", + required: true, type: { name: "Sequence", element: { type: { - name: "String", + name: "Composite", + className: "JitNetworkAccessPolicyInitiatePort", }, }, }, }, - preview: { - serializedName: "preview", - type: { - name: "Boolean", - }, - }, - assessmentType: { - serializedName: "assessmentType", - required: true, - type: { - name: "String", - }, - }, - partnerData: { - serializedName: "partnerData", - type: { - name: "Composite", - className: "SecurityAssessmentMetadataPartnerData", - }, - }, }, }, }; -export const SecurityAssessmentMetadataPartnerData: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "SecurityAssessmentMetadataPartnerData", - modelProperties: { - partnerName: { - serializedName: "partnerName", - required: true, - type: { - name: "String", - }, +export const JitNetworkAccessPolicyInitiatePort: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "JitNetworkAccessPolicyInitiatePort", + modelProperties: { + number: { + constraints: { + InclusiveMaximum: 65535, + InclusiveMinimum: 0, }, - productName: { - serializedName: "productName", - type: { - name: "String", - }, + serializedName: "number", + required: true, + type: { + name: "Number", }, - secret: { - serializedName: "secret", - required: true, - type: { - name: "String", - }, + }, + allowedSourceAddressPrefix: { + serializedName: "allowedSourceAddressPrefix", + type: { + name: "String", + }, + }, + endTimeUtc: { + serializedName: "endTimeUtc", + required: true, + type: { + name: "DateTime", }, }, }, - }; + }, +}; -export const SecurityAssessmentList: coreClient.CompositeMapper = { +export const SecureScoresList: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SecurityAssessmentList", + className: "SecureScoresList", modelProperties: { value: { serializedName: "value", @@ -5948,7 +5418,7 @@ export const SecurityAssessmentList: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "SecurityAssessmentResponse", + className: "SecureScoreItem", }, }, }, @@ -5964,26 +5434,42 @@ export const SecurityAssessmentList: coreClient.CompositeMapper = { }, }; -export const AssessmentStatus: coreClient.CompositeMapper = { +export const SecureScoreControlList: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AssessmentStatus", + className: "SecureScoreControlList", modelProperties: { - code: { - serializedName: "code", - required: true, + value: { + serializedName: "value", + readOnly: true, type: { - name: "String", + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SecureScoreControlDetails", + }, + }, }, }, - cause: { - serializedName: "cause", + nextLink: { + serializedName: "nextLink", + readOnly: true, type: { name: "String", }, }, - description: { - serializedName: "description", + }, + }, +}; + +export const SecureScoreControlDefinitionSource: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SecureScoreControlDefinitionSource", + modelProperties: { + sourceType: { + serializedName: "sourceType", type: { name: "String", }, @@ -5992,88 +5478,43 @@ export const AssessmentStatus: coreClient.CompositeMapper = { }, }; -export const SecurityAssessmentPropertiesBase: coreClient.CompositeMapper = { +export const AzureResourceLink: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SecurityAssessmentPropertiesBase", + className: "AzureResourceLink", modelProperties: { - resourceDetails: { - serializedName: "resourceDetails", + id: { + serializedName: "id", + readOnly: true, type: { - name: "Composite", - className: "ResourceDetails", - }, - }, - displayName: { - serializedName: "displayName", - readOnly: true, - type: { - name: "String", - }, - }, - additionalData: { - serializedName: "additionalData", - type: { - name: "Dictionary", - value: { type: { name: "String" } }, - }, - }, - links: { - serializedName: "links", - type: { - name: "Composite", - className: "AssessmentLinks", - }, - }, - metadata: { - serializedName: "metadata", - type: { - name: "Composite", - className: "SecurityAssessmentMetadataProperties", - }, - }, - partnersData: { - serializedName: "partnersData", - type: { - name: "Composite", - className: "SecurityAssessmentPartnerData", + name: "String", }, }, }, }, }; -export const AssessmentLinks: coreClient.CompositeMapper = { +export const SecureScoreControlDefinitionList: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AssessmentLinks", + className: "SecureScoreControlDefinitionList", modelProperties: { - azurePortalUri: { - serializedName: "azurePortalUri", + value: { + serializedName: "value", readOnly: true, type: { - name: "String", - }, - }, - }, - }, -}; - -export const SecurityAssessmentPartnerData: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "SecurityAssessmentPartnerData", - modelProperties: { - partnerName: { - serializedName: "partnerName", - required: true, - type: { - name: "String", + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SecureScoreControlDefinitionItem", + }, + }, }, }, - secret: { - serializedName: "secret", - required: true, + nextLink: { + serializedName: "nextLink", + readOnly: true, type: { name: "String", }, @@ -6082,10 +5523,10 @@ export const SecurityAssessmentPartnerData: coreClient.CompositeMapper = { }, }; -export const AlertList: coreClient.CompositeMapper = { +export const SecuritySolutionList: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AlertList", + className: "SecuritySolutionList", modelProperties: { value: { serializedName: "value", @@ -6094,7 +5535,7 @@ export const AlertList: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "Alert", + className: "SecuritySolution", }, }, }, @@ -6110,52 +5551,68 @@ export const AlertList: coreClient.CompositeMapper = { }, }; -export const ResourceIdentifier: coreClient.CompositeMapper = { +export const SecuritySolutionsReferenceDataList: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ResourceIdentifier", - uberParent: "ResourceIdentifier", - polymorphicDiscriminator: { - serializedName: "type", - clientName: "type", - }, + className: "SecuritySolutionsReferenceDataList", modelProperties: { - type: { - serializedName: "type", - required: true, + value: { + serializedName: "value", type: { - name: "String", + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SecuritySolutionsReferenceData", + }, + }, }, }, }, }, }; -export const AlertEntity: coreClient.CompositeMapper = { +export const ServerVulnerabilityAssessmentsList: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AlertEntity", - additionalProperties: { type: { name: "Object" } }, + className: "ServerVulnerabilityAssessmentsList", modelProperties: { - type: { - serializedName: "type", - readOnly: true, + value: { + serializedName: "value", type: { - name: "String", + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ServerVulnerabilityAssessment", + }, + }, }, }, }, }, }; -export const AlertPropertiesSupportingEvidence: coreClient.CompositeMapper = { +export const TopologyList: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AlertPropertiesSupportingEvidence", - additionalProperties: { type: { name: "Object" } }, + className: "TopologyList", modelProperties: { - type: { - serializedName: "type", + value: { + serializedName: "value", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "TopologyResource", + }, + }, + }, + }, + nextLink: { + serializedName: "nextLink", readOnly: true, type: { name: "String", @@ -6165,37 +5622,91 @@ export const AlertPropertiesSupportingEvidence: coreClient.CompositeMapper = { }, }; -export const AlertSimulatorRequestBody: coreClient.CompositeMapper = { +export const TopologySingleResource: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AlertSimulatorRequestBody", + className: "TopologySingleResource", modelProperties: { - properties: { - serializedName: "properties", + resourceId: { + serializedName: "resourceId", + readOnly: true, type: { - name: "Composite", - className: "AlertSimulatorRequestProperties", + name: "String", + }, + }, + severity: { + serializedName: "severity", + readOnly: true, + type: { + name: "String", + }, + }, + recommendationsExist: { + serializedName: "recommendationsExist", + readOnly: true, + type: { + name: "Boolean", + }, + }, + networkZones: { + serializedName: "networkZones", + readOnly: true, + type: { + name: "String", + }, + }, + topologyScore: { + serializedName: "topologyScore", + readOnly: true, + type: { + name: "Number", + }, + }, + location: { + serializedName: "location", + readOnly: true, + type: { + name: "String", + }, + }, + parents: { + serializedName: "parents", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "TopologySingleResourceParent", + }, + }, + }, + }, + children: { + serializedName: "children", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "TopologySingleResourceChild", + }, + }, }, }, }, }, }; -export const AlertSimulatorRequestProperties: coreClient.CompositeMapper = { - serializedName: "AlertSimulatorRequestProperties", +export const TopologySingleResourceParent: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AlertSimulatorRequestProperties", - uberParent: "AlertSimulatorRequestProperties", - additionalProperties: { type: { name: "Object" } }, - polymorphicDiscriminator: { - serializedName: "kind", - clientName: "kind", - }, + className: "TopologySingleResourceParent", modelProperties: { - kind: { - serializedName: "kind", - required: true, + resourceId: { + serializedName: "resourceId", + readOnly: true, type: { name: "String", }, @@ -6204,25 +5715,13 @@ export const AlertSimulatorRequestProperties: coreClient.CompositeMapper = { }, }; -export const SettingsList: coreClient.CompositeMapper = { +export const TopologySingleResourceChild: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SettingsList", + className: "TopologySingleResourceChild", modelProperties: { - value: { - serializedName: "value", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "Setting", - }, - }, - }, - }, - nextLink: { - serializedName: "nextLink", + resourceId: { + serializedName: "resourceId", readOnly: true, type: { name: "String", @@ -6232,11 +5731,11 @@ export const SettingsList: coreClient.CompositeMapper = { }, }; -export const ServerVulnerabilityAssessmentsSettingsList: coreClient.CompositeMapper = +export const SecurityAssessmentMetadataResponseList: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ServerVulnerabilityAssessmentsSettingsList", + className: "SecurityAssessmentMetadataResponseList", modelProperties: { value: { serializedName: "value", @@ -6246,7 +5745,7 @@ export const ServerVulnerabilityAssessmentsSettingsList: coreClient.CompositeMap element: { type: { name: "Composite", - className: "ServerVulnerabilityAssessmentsSetting", + className: "SecurityAssessmentMetadataResponse", }, }, }, @@ -6262,47 +5761,166 @@ export const ServerVulnerabilityAssessmentsSettingsList: coreClient.CompositeMap }, }; -export const ResourceAutoGenerated2: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ResourceAutoGenerated2", - modelProperties: { - id: { - serializedName: "id", - readOnly: true, - type: { - name: "String", +export const SecurityAssessmentMetadataPropertiesResponsePublishDates: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "SecurityAssessmentMetadataPropertiesResponsePublishDates", + modelProperties: { + ga: { + constraints: { + Pattern: new RegExp("^([0-9]{2}\\/){2}[0-9]{4}$"), + }, + serializedName: "GA", + type: { + name: "String", + }, }, - }, - name: { - serializedName: "name", - readOnly: true, - type: { - name: "String", + public: { + constraints: { + Pattern: new RegExp("^([0-9]{2}\\/){2}[0-9]{4}$"), + }, + serializedName: "public", + required: true, + type: { + name: "String", + }, }, }, - type: { - serializedName: "type", - readOnly: true, - type: { - name: "String", + }, + }; + +export const SecurityAssessmentMetadataProperties: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "SecurityAssessmentMetadataProperties", + modelProperties: { + displayName: { + serializedName: "displayName", + required: true, + type: { + name: "String", + }, + }, + policyDefinitionId: { + serializedName: "policyDefinitionId", + readOnly: true, + type: { + name: "String", + }, + }, + description: { + serializedName: "description", + type: { + name: "String", + }, + }, + remediationDescription: { + serializedName: "remediationDescription", + type: { + name: "String", + }, + }, + categories: { + serializedName: "categories", + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, + severity: { + serializedName: "severity", + required: true, + type: { + name: "String", + }, + }, + userImpact: { + serializedName: "userImpact", + type: { + name: "String", + }, + }, + implementationEffort: { + serializedName: "implementationEffort", + type: { + name: "String", + }, + }, + threats: { + serializedName: "threats", + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, + preview: { + serializedName: "preview", + type: { + name: "Boolean", + }, + }, + assessmentType: { + serializedName: "assessmentType", + required: true, + type: { + name: "String", + }, + }, + partnerData: { + serializedName: "partnerData", + type: { + name: "Composite", + className: "SecurityAssessmentMetadataPartnerData", + }, }, }, - systemData: { - serializedName: "systemData", - type: { - name: "Composite", - className: "SystemData", + }, + }; + +export const SecurityAssessmentMetadataPartnerData: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "SecurityAssessmentMetadataPartnerData", + modelProperties: { + partnerName: { + serializedName: "partnerName", + required: true, + type: { + name: "String", + }, + }, + productName: { + serializedName: "productName", + type: { + name: "String", + }, + }, + secret: { + serializedName: "secret", + required: true, + type: { + name: "String", + }, }, }, }, - }, -}; + }; -export const ApiCollectionList: coreClient.CompositeMapper = { +export const SecurityAssessmentList: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ApiCollectionList", + className: "SecurityAssessmentList", modelProperties: { value: { serializedName: "value", @@ -6312,7 +5930,7 @@ export const ApiCollectionList: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ApiCollection", + className: "SecurityAssessmentResponse", }, }, }, @@ -6328,116 +5946,143 @@ export const ApiCollectionList: coreClient.CompositeMapper = { }, }; -export const Extension: coreClient.CompositeMapper = { +export const AssessmentStatus: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Extension", + className: "AssessmentStatus", modelProperties: { - name: { - serializedName: "name", + code: { + serializedName: "code", required: true, type: { name: "String", }, }, - isEnabled: { - serializedName: "isEnabled", - required: true, + cause: { + serializedName: "cause", type: { name: "String", }, }, - additionalExtensionProperties: { - serializedName: "additionalExtensionProperties", - type: { - name: "Dictionary", - value: { type: { name: "any" } }, - }, - }, - operationStatus: { - serializedName: "operationStatus", + description: { + serializedName: "description", type: { - name: "Composite", - className: "OperationStatusAutoGenerated", + name: "String", }, }, }, }, }; -export const OperationStatusAutoGenerated: coreClient.CompositeMapper = { +export const SecurityAssessmentPropertiesBase: coreClient.CompositeMapper = { type: { name: "Composite", - className: "OperationStatusAutoGenerated", + className: "SecurityAssessmentPropertiesBase", modelProperties: { - code: { - serializedName: "code", + resourceDetails: { + serializedName: "resourceDetails", type: { - name: "String", + name: "Composite", + className: "ResourceDetails", }, }, - message: { - serializedName: "message", + displayName: { + serializedName: "displayName", + readOnly: true, type: { name: "String", }, }, + additionalData: { + serializedName: "additionalData", + type: { + name: "Dictionary", + value: { type: { name: "String" } }, + }, + }, + links: { + serializedName: "links", + type: { + name: "Composite", + className: "AssessmentLinks", + }, + }, + metadata: { + serializedName: "metadata", + type: { + name: "Composite", + className: "SecurityAssessmentMetadataProperties", + }, + }, + partnersData: { + serializedName: "partnersData", + type: { + name: "Composite", + className: "SecurityAssessmentPartnerData", + }, + }, }, }, }; -export const PricingList: coreClient.CompositeMapper = { +export const AssessmentLinks: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PricingList", + className: "AssessmentLinks", modelProperties: { - value: { - serializedName: "value", - required: true, + azurePortalUri: { + serializedName: "azurePortalUri", + readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "Pricing", - }, - }, + name: "String", }, }, }, }, }; -export const Cvss: coreClient.CompositeMapper = { +export const SecurityAssessmentPartnerData: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Cvss", + className: "SecurityAssessmentPartnerData", modelProperties: { - base: { - serializedName: "base", - readOnly: true, + partnerName: { + serializedName: "partnerName", + required: true, type: { - name: "Number", + name: "String", + }, + }, + secret: { + serializedName: "secret", + required: true, + type: { + name: "String", }, }, }, }, }; -export const Cve: coreClient.CompositeMapper = { +export const AlertList: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Cve", + className: "AlertList", modelProperties: { - title: { - serializedName: "title", - readOnly: true, + value: { + serializedName: "value", type: { - name: "String", + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Alert", + }, + }, }, }, - link: { - serializedName: "link", + nextLink: { + serializedName: "nextLink", readOnly: true, type: { name: "String", @@ -6447,20 +6092,35 @@ export const Cve: coreClient.CompositeMapper = { }, }; -export const VendorReference: coreClient.CompositeMapper = { +export const ResourceIdentifier: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VendorReference", + className: "ResourceIdentifier", + uberParent: "ResourceIdentifier", + polymorphicDiscriminator: { + serializedName: "type", + clientName: "type", + }, modelProperties: { - title: { - serializedName: "title", - readOnly: true, + type: { + serializedName: "type", + required: true, type: { name: "String", }, }, - link: { - serializedName: "link", + }, + }, +}; + +export const AlertEntity: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AlertEntity", + additionalProperties: { type: { name: "Object" } }, + modelProperties: { + type: { + serializedName: "type", readOnly: true, type: { name: "String", @@ -6470,52 +6130,82 @@ export const VendorReference: coreClient.CompositeMapper = { }, }; -export const Condition: coreClient.CompositeMapper = { +export const AlertPropertiesSupportingEvidence: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Condition", + className: "AlertPropertiesSupportingEvidence", + additionalProperties: { type: { name: "Object" } }, modelProperties: { - property: { - serializedName: "property", - type: { - name: "String", - }, - }, - value: { - serializedName: "value", + type: { + serializedName: "type", + readOnly: true, type: { name: "String", }, }, - operator: { - serializedName: "operator", + }, + }, +}; + +export const AlertSimulatorRequestBody: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AlertSimulatorRequestBody", + modelProperties: { + properties: { + serializedName: "properties", type: { - name: "String", + name: "Composite", + className: "AlertSimulatorRequestProperties", }, }, }, }, }; -export const ApplicationCondition: coreClient.CompositeMapper = { +export const AlertSimulatorRequestProperties: coreClient.CompositeMapper = { + serializedName: "AlertSimulatorRequestProperties", type: { name: "Composite", - className: "ApplicationCondition", + className: "AlertSimulatorRequestProperties", + uberParent: "AlertSimulatorRequestProperties", + additionalProperties: { type: { name: "Object" } }, + polymorphicDiscriminator: { + serializedName: "kind", + clientName: "kind", + }, modelProperties: { - property: { - serializedName: "property", + kind: { + serializedName: "kind", + required: true, type: { name: "String", }, }, + }, + }, +}; + +export const SettingsList: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SettingsList", + modelProperties: { value: { serializedName: "value", type: { - name: "String", + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Setting", + }, + }, }, }, - operator: { - serializedName: "operator", + nextLink: { + serializedName: "nextLink", + readOnly: true, type: { name: "String", }, @@ -6524,138 +6214,152 @@ export const ApplicationCondition: coreClient.CompositeMapper = { }, }; -export const AzureDevOpsOrganizationConfiguration: coreClient.CompositeMapper = +export const ServerVulnerabilityAssessmentsSettingsList: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AzureDevOpsOrganizationConfiguration", + className: "ServerVulnerabilityAssessmentsSettingsList", modelProperties: { - autoDiscovery: { - serializedName: "autoDiscovery", - type: { - name: "String", - }, - }, - projectConfigs: { - serializedName: "projectConfigs", - nullable: true, + value: { + serializedName: "value", + readOnly: true, type: { - name: "Dictionary", - value: { + name: "Sequence", + element: { type: { name: "Composite", - className: "AzureDevOpsProjectConfiguration", + className: "ServerVulnerabilityAssessmentsSetting", }, }, }, }, + nextLink: { + serializedName: "nextLink", + readOnly: true, + type: { + name: "String", + }, + }, }, }, }; -export const AzureDevOpsProjectConfiguration: coreClient.CompositeMapper = { +export const ResourceAutoGenerated2: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AzureDevOpsProjectConfiguration", + className: "ResourceAutoGenerated2", modelProperties: { - autoDiscovery: { - serializedName: "autoDiscovery", + id: { + serializedName: "id", + readOnly: true, type: { name: "String", }, }, - repositoryConfigs: { - serializedName: "repositoryConfigs", - nullable: true, + name: { + serializedName: "name", + readOnly: true, type: { - name: "Dictionary", - value: { - type: { name: "Composite", className: "BaseResourceConfiguration" }, - }, + name: "String", }, }, - }, - }, -}; - -export const BaseResourceConfiguration: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "BaseResourceConfiguration", - modelProperties: { - desiredOnboardingState: { - serializedName: "desiredOnboardingState", + type: { + serializedName: "type", + readOnly: true, type: { name: "String", }, }, + systemData: { + serializedName: "systemData", + type: { + name: "Composite", + className: "SystemData", + }, + }, }, }, }; -export const GitHubOwnerConfiguration: coreClient.CompositeMapper = { +export const ApiCollectionList: coreClient.CompositeMapper = { type: { name: "Composite", - className: "GitHubOwnerConfiguration", + className: "ApiCollectionList", modelProperties: { - autoDiscovery: { - serializedName: "autoDiscovery", + value: { + serializedName: "value", + readOnly: true, type: { - name: "String", + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ApiCollection", + }, + }, }, }, - repositoryConfigs: { - serializedName: "repositoryConfigs", - nullable: true, + nextLink: { + serializedName: "nextLink", + readOnly: true, type: { - name: "Dictionary", - value: { - type: { name: "Composite", className: "BaseResourceConfiguration" }, - }, + name: "String", }, }, }, }, }; -export const GitLabGroupConfiguration: coreClient.CompositeMapper = { +export const Extension: coreClient.CompositeMapper = { type: { name: "Composite", - className: "GitLabGroupConfiguration", + className: "Extension", modelProperties: { - autoDiscovery: { - serializedName: "autoDiscovery", + name: { + serializedName: "name", + required: true, type: { name: "String", }, }, - projectConfigs: { - serializedName: "projectConfigs", - nullable: true, + isEnabled: { + serializedName: "isEnabled", + required: true, + type: { + name: "String", + }, + }, + additionalExtensionProperties: { + serializedName: "additionalExtensionProperties", type: { name: "Dictionary", - value: { - type: { name: "Composite", className: "BaseResourceConfiguration" }, - }, + value: { type: { name: "any" } }, + }, + }, + operationStatus: { + serializedName: "operationStatus", + type: { + name: "Composite", + className: "OperationStatusAutoGenerated", }, }, }, }, }; -export const AwsOrganizationalData: coreClient.CompositeMapper = { +export const OperationStatusAutoGenerated: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AwsOrganizationalData", - uberParent: "AwsOrganizationalData", - polymorphicDiscriminator: { - serializedName: "organizationMembershipType", - clientName: "organizationMembershipType", - }, + className: "OperationStatusAutoGenerated", modelProperties: { - organizationMembershipType: { - serializedName: "organizationMembershipType", - required: true, + code: { + serializedName: "code", + type: { + name: "String", + }, + }, + message: { + serializedName: "message", type: { name: "String", }, @@ -6664,53 +6368,81 @@ export const AwsOrganizationalData: coreClient.CompositeMapper = { }, }; -export const GcpOrganizationalData: coreClient.CompositeMapper = { +export const PricingList: coreClient.CompositeMapper = { type: { name: "Composite", - className: "GcpOrganizationalData", - uberParent: "GcpOrganizationalData", - polymorphicDiscriminator: { - serializedName: "organizationMembershipType", - clientName: "organizationMembershipType", - }, + className: "PricingList", modelProperties: { - organizationMembershipType: { - serializedName: "organizationMembershipType", + value: { + serializedName: "value", required: true, type: { - name: "String", + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Pricing", + }, + }, }, }, }, }, }; -export const GcpProjectDetails: coreClient.CompositeMapper = { +export const Cvss: coreClient.CompositeMapper = { type: { name: "Composite", - className: "GcpProjectDetails", + className: "Cvss", modelProperties: { - projectNumber: { - serializedName: "projectNumber", + base: { + serializedName: "base", + readOnly: true, + type: { + name: "Number", + }, + }, + }, + }, +}; + +export const Cve: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "Cve", + modelProperties: { + title: { + serializedName: "title", + readOnly: true, type: { name: "String", }, }, - projectId: { - serializedName: "projectId", + link: { + serializedName: "link", + readOnly: true, type: { name: "String", }, }, - workloadIdentityPoolId: { - serializedName: "workloadIdentityPoolId", + }, + }, +}; + +export const VendorReference: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "VendorReference", + modelProperties: { + title: { + serializedName: "title", readOnly: true, type: { name: "String", }, }, - projectName: { - serializedName: "projectName", + link: { + serializedName: "link", readOnly: true, type: { name: "String", @@ -6720,266 +6452,145 @@ export const GcpProjectDetails: coreClient.CompositeMapper = { }, }; -export const CspmMonitorAwsOfferingNativeCloudConnection: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "CspmMonitorAwsOfferingNativeCloudConnection", - modelProperties: { - cloudRoleArn: { - serializedName: "cloudRoleArn", - type: { - name: "String", - }, +export const Condition: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "Condition", + modelProperties: { + property: { + serializedName: "property", + type: { + name: "String", }, }, - }, - }; - -export const DefenderForContainersAwsOfferingKubernetesService: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "DefenderForContainersAwsOfferingKubernetesService", - modelProperties: { - cloudRoleArn: { - serializedName: "cloudRoleArn", - type: { - name: "String", - }, + value: { + serializedName: "value", + type: { + name: "String", }, }, - }, - }; - -export const DefenderForContainersAwsOfferingKubernetesScubaReader: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "DefenderForContainersAwsOfferingKubernetesScubaReader", - modelProperties: { - cloudRoleArn: { - serializedName: "cloudRoleArn", - type: { - name: "String", - }, + operator: { + serializedName: "operator", + type: { + name: "String", }, }, }, - }; + }, +}; -export const DefenderForContainersAwsOfferingCloudWatchToKinesis: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "DefenderForContainersAwsOfferingCloudWatchToKinesis", - modelProperties: { - cloudRoleArn: { - serializedName: "cloudRoleArn", - type: { - name: "String", - }, +export const ApplicationCondition: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ApplicationCondition", + modelProperties: { + property: { + serializedName: "property", + type: { + name: "String", }, }, - }, - }; - -export const DefenderForContainersAwsOfferingKinesisToS3: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "DefenderForContainersAwsOfferingKinesisToS3", - modelProperties: { - cloudRoleArn: { - serializedName: "cloudRoleArn", - type: { - name: "String", - }, + value: { + serializedName: "value", + type: { + name: "String", }, }, - }, - }; - -export const DefenderForContainersAwsOfferingContainerVulnerabilityAssessment: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: - "DefenderForContainersAwsOfferingContainerVulnerabilityAssessment", - modelProperties: { - cloudRoleArn: { - serializedName: "cloudRoleArn", - type: { - name: "String", - }, + operator: { + serializedName: "operator", + type: { + name: "String", }, }, }, - }; + }, +}; -export const DefenderForContainersAwsOfferingContainerVulnerabilityAssessmentTask: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: - "DefenderForContainersAwsOfferingContainerVulnerabilityAssessmentTask", - modelProperties: { - cloudRoleArn: { - serializedName: "cloudRoleArn", - type: { - name: "String", - }, - }, - }, +export const AwsOrganizationalData: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AwsOrganizationalData", + uberParent: "AwsOrganizationalData", + polymorphicDiscriminator: { + serializedName: "organizationMembershipType", + clientName: "organizationMembershipType", }, - }; - -export const DefenderForContainersAwsOfferingMdcContainersImageAssessment: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "DefenderForContainersAwsOfferingMdcContainersImageAssessment", - modelProperties: { - enabled: { - serializedName: "enabled", - type: { - name: "Boolean", - }, - }, - cloudRoleArn: { - serializedName: "cloudRoleArn", - type: { - name: "String", - }, + modelProperties: { + organizationMembershipType: { + serializedName: "organizationMembershipType", + required: true, + type: { + name: "String", }, }, }, - }; + }, +}; -export const DefenderForContainersAwsOfferingMdcContainersAgentlessDiscoveryK8S: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: - "DefenderForContainersAwsOfferingMdcContainersAgentlessDiscoveryK8S", - modelProperties: { - enabled: { - serializedName: "enabled", - type: { - name: "Boolean", - }, - }, - cloudRoleArn: { - serializedName: "cloudRoleArn", - type: { - name: "String", - }, - }, - }, +export const GcpOrganizationalData: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "GcpOrganizationalData", + uberParent: "GcpOrganizationalData", + polymorphicDiscriminator: { + serializedName: "organizationMembershipType", + clientName: "organizationMembershipType", }, - }; - -export const DefenderForServersAwsOfferingDefenderForServers: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "DefenderForServersAwsOfferingDefenderForServers", - modelProperties: { - cloudRoleArn: { - serializedName: "cloudRoleArn", - type: { - name: "String", - }, + modelProperties: { + organizationMembershipType: { + serializedName: "organizationMembershipType", + required: true, + type: { + name: "String", }, }, }, - }; + }, +}; -export const DefenderForServersAwsOfferingArcAutoProvisioning: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "DefenderForServersAwsOfferingArcAutoProvisioning", - modelProperties: { - enabled: { - serializedName: "enabled", - type: { - name: "Boolean", - }, - }, - cloudRoleArn: { - serializedName: "cloudRoleArn", - type: { - name: "String", - }, - }, - configuration: { - serializedName: "configuration", - type: { - name: "Composite", - className: - "DefenderForServersAwsOfferingArcAutoProvisioningConfiguration", - }, +export const GcpProjectDetails: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "GcpProjectDetails", + modelProperties: { + projectNumber: { + serializedName: "projectNumber", + type: { + name: "String", }, }, - }, - }; - -export const DefenderForServersAwsOfferingArcAutoProvisioningConfiguration: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: - "DefenderForServersAwsOfferingArcAutoProvisioningConfiguration", - modelProperties: { - proxy: { - serializedName: "proxy", - type: { - name: "String", - }, - }, - privateLinkScope: { - serializedName: "privateLinkScope", - type: { - name: "String", - }, + projectId: { + serializedName: "projectId", + type: { + name: "String", }, }, - }, - }; - -export const DefenderForServersAwsOfferingVaAutoProvisioning: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "DefenderForServersAwsOfferingVaAutoProvisioning", - modelProperties: { - enabled: { - serializedName: "enabled", - type: { - name: "Boolean", - }, + workloadIdentityPoolId: { + serializedName: "workloadIdentityPoolId", + readOnly: true, + type: { + name: "String", }, - configuration: { - serializedName: "configuration", - type: { - name: "Composite", - className: - "DefenderForServersAwsOfferingVaAutoProvisioningConfiguration", - }, + }, + projectName: { + serializedName: "projectName", + readOnly: true, + type: { + name: "String", }, }, }, - }; + }, +}; -export const DefenderForServersAwsOfferingVaAutoProvisioningConfiguration: coreClient.CompositeMapper = +export const CspmMonitorAwsOfferingNativeCloudConnection: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DefenderForServersAwsOfferingVaAutoProvisioningConfiguration", + className: "CspmMonitorAwsOfferingNativeCloudConnection", modelProperties: { - type: { - serializedName: "type", + cloudRoleArn: { + serializedName: "cloudRoleArn", type: { name: "String", }, @@ -6988,37 +6599,30 @@ export const DefenderForServersAwsOfferingVaAutoProvisioningConfiguration: coreC }, }; -export const DefenderForServersAwsOfferingMdeAutoProvisioning: coreClient.CompositeMapper = +export const DefenderForContainersAwsOfferingKubernetesService: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DefenderForServersAwsOfferingMdeAutoProvisioning", + className: "DefenderForContainersAwsOfferingKubernetesService", modelProperties: { - enabled: { - serializedName: "enabled", - type: { - name: "Boolean", - }, - }, - configuration: { - serializedName: "configuration", + cloudRoleArn: { + serializedName: "cloudRoleArn", type: { - name: "Dictionary", - value: { type: { name: "any" } }, + name: "String", }, }, }, }, }; -export const DefenderForServersAwsOfferingSubPlan: coreClient.CompositeMapper = +export const DefenderForContainersAwsOfferingKubernetesDataCollection: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DefenderForServersAwsOfferingSubPlan", + className: "DefenderForContainersAwsOfferingKubernetesDataCollection", modelProperties: { - type: { - serializedName: "type", + cloudRoleArn: { + serializedName: "cloudRoleArn", type: { name: "String", }, @@ -7027,34 +6631,27 @@ export const DefenderForServersAwsOfferingSubPlan: coreClient.CompositeMapper = }, }; -export const DefenderForServersAwsOfferingVmScanners: coreClient.CompositeMapper = +export const DefenderForContainersAwsOfferingCloudWatchToKinesis: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DefenderForServersAwsOfferingVmScanners", + className: "DefenderForContainersAwsOfferingCloudWatchToKinesis", modelProperties: { - enabled: { - serializedName: "enabled", - type: { - name: "Boolean", - }, - }, - configuration: { - serializedName: "configuration", + cloudRoleArn: { + serializedName: "cloudRoleArn", type: { - name: "Composite", - className: "DefenderForServersAwsOfferingVmScannersConfiguration", + name: "String", }, }, }, }, }; -export const DefenderForServersAwsOfferingVmScannersConfiguration: coreClient.CompositeMapper = +export const DefenderForContainersAwsOfferingKinesisToS3: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DefenderForServersAwsOfferingVmScannersConfiguration", + className: "DefenderForContainersAwsOfferingKinesisToS3", modelProperties: { cloudRoleArn: { serializedName: "cloudRoleArn", @@ -7062,28 +6659,15 @@ export const DefenderForServersAwsOfferingVmScannersConfiguration: coreClient.Co name: "String", }, }, - scanningMode: { - serializedName: "scanningMode", - type: { - name: "String", - }, - }, - exclusionTags: { - serializedName: "exclusionTags", - type: { - name: "Dictionary", - value: { type: { name: "String" } }, - }, - }, }, }, }; -export const DefenderFoDatabasesAwsOfferingArcAutoProvisioning: coreClient.CompositeMapper = +export const DefenderForContainersAwsOfferingMdcContainersImageAssessment: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DefenderFoDatabasesAwsOfferingArcAutoProvisioning", + className: "DefenderForContainersAwsOfferingMdcContainersImageAssessment", modelProperties: { enabled: { serializedName: "enabled", @@ -7097,33 +6681,25 @@ export const DefenderFoDatabasesAwsOfferingArcAutoProvisioning: coreClient.Compo name: "String", }, }, - configuration: { - serializedName: "configuration", - type: { - name: "Composite", - className: - "DefenderFoDatabasesAwsOfferingArcAutoProvisioningConfiguration", - }, - }, }, }, }; -export const DefenderFoDatabasesAwsOfferingArcAutoProvisioningConfiguration: coreClient.CompositeMapper = +export const DefenderForContainersAwsOfferingMdcContainersAgentlessDiscoveryK8S: coreClient.CompositeMapper = { type: { name: "Composite", className: - "DefenderFoDatabasesAwsOfferingArcAutoProvisioningConfiguration", + "DefenderForContainersAwsOfferingMdcContainersAgentlessDiscoveryK8S", modelProperties: { - proxy: { - serializedName: "proxy", + enabled: { + serializedName: "enabled", type: { - name: "String", + name: "Boolean", }, }, - privateLinkScope: { - serializedName: "privateLinkScope", + cloudRoleArn: { + serializedName: "cloudRoleArn", type: { name: "String", }, @@ -7132,10 +6708,10 @@ export const DefenderFoDatabasesAwsOfferingArcAutoProvisioningConfiguration: cor }, }; -export const DefenderFoDatabasesAwsOfferingRds: coreClient.CompositeMapper = { +export const VmScannersBase: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DefenderFoDatabasesAwsOfferingRds", + className: "VmScannersBase", modelProperties: { enabled: { serializedName: "enabled", @@ -7143,43 +6719,44 @@ export const DefenderFoDatabasesAwsOfferingRds: coreClient.CompositeMapper = { name: "Boolean", }, }, - cloudRoleArn: { - serializedName: "cloudRoleArn", + configuration: { + serializedName: "configuration", type: { - name: "String", + name: "Composite", + className: "VmScannersBaseConfiguration", }, }, }, }, }; -export const DefenderFoDatabasesAwsOfferingDatabasesDspm: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "DefenderFoDatabasesAwsOfferingDatabasesDspm", - modelProperties: { - enabled: { - serializedName: "enabled", - type: { - name: "Boolean", - }, +export const VmScannersBaseConfiguration: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "VmScannersBaseConfiguration", + modelProperties: { + scanningMode: { + serializedName: "scanningMode", + type: { + name: "String", }, - cloudRoleArn: { - serializedName: "cloudRoleArn", - type: { - name: "String", - }, + }, + exclusionTags: { + serializedName: "exclusionTags", + type: { + name: "Dictionary", + value: { type: { name: "String" } }, }, }, }, - }; + }, +}; -export const InformationProtectionAwsOfferingInformationProtection: coreClient.CompositeMapper = +export const DefenderForServersAwsOfferingDefenderForServers: coreClient.CompositeMapper = { type: { name: "Composite", - className: "InformationProtectionAwsOfferingInformationProtection", + className: "DefenderForServersAwsOfferingDefenderForServers", modelProperties: { cloudRoleArn: { serializedName: "cloudRoleArn", @@ -7191,42 +6768,81 @@ export const InformationProtectionAwsOfferingInformationProtection: coreClient.C }, }; -export const CspmMonitorGcpOfferingNativeCloudConnection: coreClient.CompositeMapper = +export const ArcAutoProvisioning: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ArcAutoProvisioning", + modelProperties: { + enabled: { + serializedName: "enabled", + type: { + name: "Boolean", + }, + }, + configuration: { + serializedName: "configuration", + type: { + name: "Composite", + className: "ArcAutoProvisioningConfiguration", + }, + }, + }, + }, +}; + +export const ArcAutoProvisioningConfiguration: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ArcAutoProvisioningConfiguration", + modelProperties: { + proxy: { + serializedName: "proxy", + type: { + name: "String", + }, + }, + privateLinkScope: { + serializedName: "privateLinkScope", + type: { + name: "String", + }, + }, + }, + }, +}; + +export const DefenderForServersAwsOfferingVaAutoProvisioning: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CspmMonitorGcpOfferingNativeCloudConnection", + className: "DefenderForServersAwsOfferingVaAutoProvisioning", modelProperties: { - workloadIdentityProviderId: { - serializedName: "workloadIdentityProviderId", + enabled: { + serializedName: "enabled", type: { - name: "String", + name: "Boolean", }, }, - serviceAccountEmailAddress: { - serializedName: "serviceAccountEmailAddress", + configuration: { + serializedName: "configuration", type: { - name: "String", + name: "Composite", + className: + "DefenderForServersAwsOfferingVaAutoProvisioningConfiguration", }, }, }, }, }; -export const DefenderForServersGcpOfferingDefenderForServers: coreClient.CompositeMapper = +export const DefenderForServersAwsOfferingVaAutoProvisioningConfiguration: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DefenderForServersGcpOfferingDefenderForServers", + className: "DefenderForServersAwsOfferingVaAutoProvisioningConfiguration", modelProperties: { - workloadIdentityProviderId: { - serializedName: "workloadIdentityProviderId", - type: { - name: "String", - }, - }, - serviceAccountEmailAddress: { - serializedName: "serviceAccountEmailAddress", + type: { + serializedName: "type", type: { name: "String", }, @@ -7235,11 +6851,11 @@ export const DefenderForServersGcpOfferingDefenderForServers: coreClient.Composi }, }; -export const DefenderForServersGcpOfferingArcAutoProvisioning: coreClient.CompositeMapper = +export const DefenderForServersAwsOfferingMdeAutoProvisioning: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DefenderForServersGcpOfferingArcAutoProvisioning", + className: "DefenderForServersAwsOfferingMdeAutoProvisioning", modelProperties: { enabled: { serializedName: "enabled", @@ -7250,30 +6866,22 @@ export const DefenderForServersGcpOfferingArcAutoProvisioning: coreClient.Compos configuration: { serializedName: "configuration", type: { - name: "Composite", - className: - "DefenderForServersGcpOfferingArcAutoProvisioningConfiguration", + name: "Dictionary", + value: { type: { name: "any" } }, }, }, }, }, }; -export const DefenderForServersGcpOfferingArcAutoProvisioningConfiguration: coreClient.CompositeMapper = +export const DefenderForServersAwsOfferingSubPlan: coreClient.CompositeMapper = { type: { name: "Composite", - className: - "DefenderForServersGcpOfferingArcAutoProvisioningConfiguration", + className: "DefenderForServersAwsOfferingSubPlan", modelProperties: { - proxy: { - serializedName: "proxy", - type: { - name: "String", - }, - }, - privateLinkScope: { - serializedName: "privateLinkScope", + type: { + serializedName: "type", type: { name: "String", }, @@ -7282,11 +6890,32 @@ export const DefenderForServersGcpOfferingArcAutoProvisioningConfiguration: core }, }; -export const DefenderForServersGcpOfferingVaAutoProvisioning: coreClient.CompositeMapper = +export const DefenderFoDatabasesAwsOfferingRds: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DefenderFoDatabasesAwsOfferingRds", + modelProperties: { + enabled: { + serializedName: "enabled", + type: { + name: "Boolean", + }, + }, + cloudRoleArn: { + serializedName: "cloudRoleArn", + type: { + name: "String", + }, + }, + }, + }, +}; + +export const DefenderFoDatabasesAwsOfferingDatabasesDspm: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DefenderForServersGcpOfferingVaAutoProvisioning", + className: "DefenderFoDatabasesAwsOfferingDatabasesDspm", modelProperties: { enabled: { serializedName: "enabled", @@ -7294,26 +6923,8 @@ export const DefenderForServersGcpOfferingVaAutoProvisioning: coreClient.Composi name: "Boolean", }, }, - configuration: { - serializedName: "configuration", - type: { - name: "Composite", - className: - "DefenderForServersGcpOfferingVaAutoProvisioningConfiguration", - }, - }, - }, - }, - }; - -export const DefenderForServersGcpOfferingVaAutoProvisioningConfiguration: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "DefenderForServersGcpOfferingVaAutoProvisioningConfiguration", - modelProperties: { - type: { - serializedName: "type", + cloudRoleArn: { + serializedName: "cloudRoleArn", type: { name: "String", }, @@ -7322,37 +6933,42 @@ export const DefenderForServersGcpOfferingVaAutoProvisioningConfiguration: coreC }, }; -export const DefenderForServersGcpOfferingMdeAutoProvisioning: coreClient.CompositeMapper = +export const CspmMonitorGcpOfferingNativeCloudConnection: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DefenderForServersGcpOfferingMdeAutoProvisioning", + className: "CspmMonitorGcpOfferingNativeCloudConnection", modelProperties: { - enabled: { - serializedName: "enabled", + workloadIdentityProviderId: { + serializedName: "workloadIdentityProviderId", type: { - name: "Boolean", + name: "String", }, }, - configuration: { - serializedName: "configuration", + serviceAccountEmailAddress: { + serializedName: "serviceAccountEmailAddress", type: { - name: "Dictionary", - value: { type: { name: "any" } }, + name: "String", }, }, }, }, }; -export const DefenderForServersGcpOfferingSubPlan: coreClient.CompositeMapper = +export const DefenderForServersGcpOfferingDefenderForServers: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DefenderForServersGcpOfferingSubPlan", + className: "DefenderForServersGcpOfferingDefenderForServers", modelProperties: { - type: { - serializedName: "type", + workloadIdentityProviderId: { + serializedName: "workloadIdentityProviderId", + type: { + name: "String", + }, + }, + serviceAccountEmailAddress: { + serializedName: "serviceAccountEmailAddress", type: { name: "String", }, @@ -7361,11 +6977,11 @@ export const DefenderForServersGcpOfferingSubPlan: coreClient.CompositeMapper = }, }; -export const DefenderForServersGcpOfferingVmScanners: coreClient.CompositeMapper = +export const DefenderForServersGcpOfferingVaAutoProvisioning: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DefenderForServersGcpOfferingVmScanners", + className: "DefenderForServersGcpOfferingVaAutoProvisioning", modelProperties: { enabled: { serializedName: "enabled", @@ -7377,41 +6993,35 @@ export const DefenderForServersGcpOfferingVmScanners: coreClient.CompositeMapper serializedName: "configuration", type: { name: "Composite", - className: "DefenderForServersGcpOfferingVmScannersConfiguration", + className: + "DefenderForServersGcpOfferingVaAutoProvisioningConfiguration", }, }, }, }, }; -export const DefenderForServersGcpOfferingVmScannersConfiguration: coreClient.CompositeMapper = +export const DefenderForServersGcpOfferingVaAutoProvisioningConfiguration: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DefenderForServersGcpOfferingVmScannersConfiguration", + className: "DefenderForServersGcpOfferingVaAutoProvisioningConfiguration", modelProperties: { - scanningMode: { - serializedName: "scanningMode", + type: { + serializedName: "type", type: { name: "String", }, }, - exclusionTags: { - serializedName: "exclusionTags", - type: { - name: "Dictionary", - value: { type: { name: "String" } }, - }, - }, }, }, }; -export const DefenderForDatabasesGcpOfferingArcAutoProvisioning: coreClient.CompositeMapper = +export const DefenderForServersGcpOfferingMdeAutoProvisioning: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DefenderForDatabasesGcpOfferingArcAutoProvisioning", + className: "DefenderForServersGcpOfferingMdeAutoProvisioning", modelProperties: { enabled: { serializedName: "enabled", @@ -7422,30 +7032,22 @@ export const DefenderForDatabasesGcpOfferingArcAutoProvisioning: coreClient.Comp configuration: { serializedName: "configuration", type: { - name: "Composite", - className: - "DefenderForDatabasesGcpOfferingArcAutoProvisioningConfiguration", + name: "Dictionary", + value: { type: { name: "any" } }, }, }, }, }, }; -export const DefenderForDatabasesGcpOfferingArcAutoProvisioningConfiguration: coreClient.CompositeMapper = +export const DefenderForServersGcpOfferingSubPlan: coreClient.CompositeMapper = { type: { name: "Composite", - className: - "DefenderForDatabasesGcpOfferingArcAutoProvisioningConfiguration", + className: "DefenderForServersGcpOfferingSubPlan", modelProperties: { - proxy: { - serializedName: "proxy", - type: { - name: "String", - }, - }, - privateLinkScope: { - serializedName: "privateLinkScope", + type: { + serializedName: "type", type: { name: "String", }, @@ -7579,57 +7181,6 @@ export const DefenderForContainersGcpOfferingMdcContainersAgentlessDiscoveryK8S: }, }; -export const DefenderCspmAwsOfferingVmScanners: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "DefenderCspmAwsOfferingVmScanners", - modelProperties: { - enabled: { - serializedName: "enabled", - type: { - name: "Boolean", - }, - }, - configuration: { - serializedName: "configuration", - type: { - name: "Composite", - className: "DefenderCspmAwsOfferingVmScannersConfiguration", - }, - }, - }, - }, -}; - -export const DefenderCspmAwsOfferingVmScannersConfiguration: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "DefenderCspmAwsOfferingVmScannersConfiguration", - modelProperties: { - cloudRoleArn: { - serializedName: "cloudRoleArn", - type: { - name: "String", - }, - }, - scanningMode: { - serializedName: "scanningMode", - type: { - name: "String", - }, - }, - exclusionTags: { - serializedName: "exclusionTags", - type: { - name: "Dictionary", - value: { type: { name: "String" } }, - }, - }, - }, - }, - }; - export const DefenderCspmAwsOfferingDataSensitivityDiscovery: coreClient.CompositeMapper = { type: { @@ -7806,56 +7357,39 @@ export const DefenderCspmGcpOfferingCiemDiscovery: coreClient.CompositeMapper = }, }; -export const DefenderCspmGcpOfferingVmScanners: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "DefenderCspmGcpOfferingVmScanners", - modelProperties: { - enabled: { - serializedName: "enabled", - type: { - name: "Boolean", - }, - }, - configuration: { - serializedName: "configuration", - type: { - name: "Composite", - className: "DefenderCspmGcpOfferingVmScannersConfiguration", - }, - }, - }, - }, -}; - -export const DefenderCspmGcpOfferingVmScannersConfiguration: coreClient.CompositeMapper = +export const DefenderCspmGcpOfferingDataSensitivityDiscovery: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DefenderCspmGcpOfferingVmScannersConfiguration", + className: "DefenderCspmGcpOfferingDataSensitivityDiscovery", modelProperties: { - scanningMode: { - serializedName: "scanningMode", + enabled: { + serializedName: "enabled", + type: { + name: "Boolean", + }, + }, + workloadIdentityProviderId: { + serializedName: "workloadIdentityProviderId", type: { name: "String", }, }, - exclusionTags: { - serializedName: "exclusionTags", + serviceAccountEmailAddress: { + serializedName: "serviceAccountEmailAddress", type: { - name: "Dictionary", - value: { type: { name: "String" } }, + name: "String", }, }, }, }, }; -export const DefenderCspmGcpOfferingDataSensitivityDiscovery: coreClient.CompositeMapper = +export const DefenderCspmGcpOfferingMdcContainersImageAssessment: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DefenderCspmGcpOfferingDataSensitivityDiscovery", + className: "DefenderCspmGcpOfferingMdcContainersImageAssessment", modelProperties: { enabled: { serializedName: "enabled", @@ -7879,11 +7413,11 @@ export const DefenderCspmGcpOfferingDataSensitivityDiscovery: coreClient.Composi }, }; -export const DefenderCspmGcpOfferingMdcContainersImageAssessment: coreClient.CompositeMapper = +export const DefenderCspmGcpOfferingMdcContainersAgentlessDiscoveryK8S: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DefenderCspmGcpOfferingMdcContainersImageAssessment", + className: "DefenderCspmGcpOfferingMdcContainersAgentlessDiscoveryK8S", modelProperties: { enabled: { serializedName: "enabled", @@ -7897,43 +7431,134 @@ export const DefenderCspmGcpOfferingMdcContainersImageAssessment: coreClient.Com name: "String", }, }, - serviceAccountEmailAddress: { - serializedName: "serviceAccountEmailAddress", - type: { - name: "String", + serviceAccountEmailAddress: { + serializedName: "serviceAccountEmailAddress", + type: { + name: "String", + }, + }, + }, + }, + }; + +export const AzureDevOpsOrganizationConfiguration: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "AzureDevOpsOrganizationConfiguration", + modelProperties: { + autoDiscovery: { + serializedName: "autoDiscovery", + type: { + name: "String", + }, + }, + projectConfigs: { + serializedName: "projectConfigs", + nullable: true, + type: { + name: "Dictionary", + value: { + type: { + name: "Composite", + className: "AzureDevOpsProjectConfiguration", + }, + }, + }, + }, + }, + }, + }; + +export const AzureDevOpsProjectConfiguration: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AzureDevOpsProjectConfiguration", + modelProperties: { + autoDiscovery: { + serializedName: "autoDiscovery", + type: { + name: "String", + }, + }, + repositoryConfigs: { + serializedName: "repositoryConfigs", + nullable: true, + type: { + name: "Dictionary", + value: { + type: { name: "Composite", className: "BaseResourceConfiguration" }, + }, + }, + }, + }, + }, +}; + +export const BaseResourceConfiguration: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "BaseResourceConfiguration", + modelProperties: { + desiredOnboardingState: { + serializedName: "desiredOnboardingState", + type: { + name: "String", + }, + }, + }, + }, +}; + +export const GitHubOwnerConfiguration: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "GitHubOwnerConfiguration", + modelProperties: { + autoDiscovery: { + serializedName: "autoDiscovery", + type: { + name: "String", + }, + }, + repositoryConfigs: { + serializedName: "repositoryConfigs", + nullable: true, + type: { + name: "Dictionary", + value: { + type: { name: "Composite", className: "BaseResourceConfiguration" }, }, }, }, }, - }; + }, +}; -export const DefenderCspmGcpOfferingMdcContainersAgentlessDiscoveryK8S: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "DefenderCspmGcpOfferingMdcContainersAgentlessDiscoveryK8S", - modelProperties: { - enabled: { - serializedName: "enabled", - type: { - name: "Boolean", - }, - }, - workloadIdentityProviderId: { - serializedName: "workloadIdentityProviderId", - type: { - name: "String", - }, +export const GitLabGroupConfiguration: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "GitLabGroupConfiguration", + modelProperties: { + autoDiscovery: { + serializedName: "autoDiscovery", + type: { + name: "String", }, - serviceAccountEmailAddress: { - serializedName: "serviceAccountEmailAddress", - type: { - name: "String", + }, + projectConfigs: { + serializedName: "projectConfigs", + nullable: true, + type: { + name: "Dictionary", + value: { + type: { name: "Composite", className: "BaseResourceConfiguration" }, }, }, }, }, - }; + }, +}; export const ExternalSecuritySolutionProperties: coreClient.CompositeMapper = { type: { @@ -8266,20 +7891,6 @@ export const AlertsSuppressionRule: coreClient.CompositeMapper = { }, }; -export const TrackedResource: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "TrackedResource", - modelProperties: { - ...Resource.type.modelProperties, - ...AzureTrackedResourceLocation.type.modelProperties, - ...KindAutoGenerated.type.modelProperties, - ...ETag.type.modelProperties, - ...Tags.type.modelProperties, - }, - }, -}; - export const RegulatoryComplianceStandard: coreClient.CompositeMapper = { type: { name: "Composite", @@ -8537,53 +8148,6 @@ export const ConnectorSetting: coreClient.CompositeMapper = { }, }; -export const SecurityContact: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "SecurityContact", - modelProperties: { - ...Resource.type.modelProperties, - emails: { - serializedName: "properties.emails", - type: { - name: "String", - }, - }, - phone: { - serializedName: "properties.phone", - type: { - name: "String", - }, - }, - isEnabled: { - serializedName: "properties.isEnabled", - type: { - name: "Boolean", - }, - }, - notificationsSources: { - serializedName: "properties.notificationsSources", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "NotificationsSource", - }, - }, - }, - }, - notificationsByRole: { - serializedName: "properties.notificationsByRole", - type: { - name: "Composite", - className: "SecurityContactPropertiesNotificationsByRole", - }, - }, - }, - }, -}; - export const Software: coreClient.CompositeMapper = { type: { name: "Composite", @@ -9021,55 +8585,11 @@ export const DefenderForStorageSetting: coreClient.CompositeMapper = { className: "DefenderForStorageSetting", modelProperties: { ...Resource.type.modelProperties, - isEnabledPropertiesIsEnabled: { - serializedName: "properties.isEnabled", - type: { - name: "Boolean", - }, - }, - overrideSubscriptionLevelSettings: { - serializedName: "properties.overrideSubscriptionLevelSettings", - type: { - name: "Boolean", - }, - }, - isEnabledPropertiesSensitiveDataDiscoveryIsEnabled: { - serializedName: "properties.sensitiveDataDiscovery.isEnabled", - type: { - name: "Boolean", - }, - }, - operationStatusPropertiesSensitiveDataDiscoveryOperationStatus: { - serializedName: "properties.sensitiveDataDiscovery.operationStatus", - type: { - name: "Composite", - className: "OperationStatus", - }, - }, - scanResultsEventGridTopicResourceId: { - serializedName: - "properties.malwareScanning.scanResultsEventGridTopicResourceId", - type: { - name: "String", - }, - }, - operationStatusPropertiesMalwareScanningOperationStatus: { - serializedName: "properties.malwareScanning.operationStatus", + properties: { + serializedName: "properties", type: { name: "Composite", - className: "OperationStatus", - }, - }, - isEnabledPropertiesMalwareScanningOnUploadIsEnabled: { - serializedName: "properties.malwareScanning.onUpload.isEnabled", - type: { - name: "Boolean", - }, - }, - capGBPerMonth: { - serializedName: "properties.malwareScanning.onUpload.capGBPerMonth", - type: { - name: "Number", + className: "DefenderForStorageSettingProperties", }, }, }, @@ -9224,6 +8744,67 @@ export const HealthReport: coreClient.CompositeMapper = { }, }; +export const TrackedResource: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "TrackedResource", + modelProperties: { + ...Resource.type.modelProperties, + ...AzureTrackedResourceLocation.type.modelProperties, + ...KindAutoGenerated.type.modelProperties, + ...ETag.type.modelProperties, + ...Tags.type.modelProperties, + }, + }, +}; + +export const SecurityContact: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SecurityContact", + modelProperties: { + ...Resource.type.modelProperties, + emails: { + serializedName: "properties.emails", + type: { + name: "String", + }, + }, + phone: { + serializedName: "properties.phone", + type: { + name: "String", + }, + }, + isEnabled: { + serializedName: "properties.isEnabled", + type: { + name: "Boolean", + }, + }, + notificationsSources: { + serializedName: "properties.notificationsSources", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "NotificationsSource", + }, + }, + }, + }, + notificationsByRole: { + serializedName: "properties.notificationsByRole", + type: { + name: "Composite", + className: "SecurityContactPropertiesNotificationsByRole", + }, + }, + }, + }, +}; + export const ComplianceResult: coreClient.CompositeMapper = { type: { name: "Composite", @@ -9653,89 +9234,49 @@ export const IoTSecuritySolutionModel: coreClient.CompositeMapper = { userDefinedResources: { serializedName: "properties.userDefinedResources", type: { - name: "Composite", - className: "UserDefinedResourcesProperties", - }, - }, - autoDiscoveredResources: { - serializedName: "properties.autoDiscoveredResources", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "String", - }, - }, - }, - }, - recommendationsConfiguration: { - serializedName: "properties.recommendationsConfiguration", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "RecommendationConfigurationProperties", - }, - }, - }, - }, - unmaskedIpLoggingStatus: { - defaultValue: "Disabled", - serializedName: "properties.unmaskedIpLoggingStatus", - type: { - name: "String", + name: "Composite", + className: "UserDefinedResourcesProperties", }, }, - additionalWorkspaces: { - serializedName: "properties.additionalWorkspaces", + autoDiscoveredResources: { + serializedName: "properties.autoDiscoveredResources", + readOnly: true, type: { name: "Sequence", element: { type: { - name: "Composite", - className: "AdditionalWorkspacesProperties", + name: "String", }, }, }, }, - }, - }, -}; - -export const AdaptiveNetworkHardening: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "AdaptiveNetworkHardening", - modelProperties: { - ...Resource.type.modelProperties, - rules: { - serializedName: "properties.rules", + recommendationsConfiguration: { + serializedName: "properties.recommendationsConfiguration", type: { name: "Sequence", element: { type: { name: "Composite", - className: "Rule", + className: "RecommendationConfigurationProperties", }, }, }, }, - rulesCalculationTime: { - serializedName: "properties.rulesCalculationTime", + unmaskedIpLoggingStatus: { + defaultValue: "Disabled", + serializedName: "properties.unmaskedIpLoggingStatus", type: { - name: "DateTime", + name: "String", }, }, - effectiveNetworkSecurityGroups: { - serializedName: "properties.effectiveNetworkSecurityGroups", + additionalWorkspaces: { + serializedName: "properties.additionalWorkspaces", type: { name: "Sequence", element: { type: { name: "Composite", - className: "EffectiveNetworkSecurityGroups", + className: "AdditionalWorkspacesProperties", }, }, }, @@ -9775,88 +9316,6 @@ export const AllowedConnectionsResource: coreClient.CompositeMapper = { }, }; -export const AdaptiveApplicationControlGroup: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "AdaptiveApplicationControlGroup", - modelProperties: { - ...Resource.type.modelProperties, - ...Location.type.modelProperties, - enforcementMode: { - serializedName: "properties.enforcementMode", - type: { - name: "String", - }, - }, - protectionMode: { - serializedName: "properties.protectionMode", - type: { - name: "Composite", - className: "ProtectionMode", - }, - }, - configurationStatus: { - serializedName: "properties.configurationStatus", - readOnly: true, - type: { - name: "String", - }, - }, - recommendationStatus: { - serializedName: "properties.recommendationStatus", - readOnly: true, - type: { - name: "String", - }, - }, - issues: { - serializedName: "properties.issues", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "AdaptiveApplicationControlIssueSummary", - }, - }, - }, - }, - sourceSystem: { - serializedName: "properties.sourceSystem", - readOnly: true, - type: { - name: "String", - }, - }, - vmRecommendations: { - serializedName: "properties.vmRecommendations", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "VmRecommendation", - }, - }, - }, - }, - pathRecommendations: { - serializedName: "properties.pathRecommendations", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "PathRecommendation", - }, - }, - }, - }, - }, - }, -}; - export const DiscoveredSecuritySolution: coreClient.CompositeMapper = { type: { name: "Composite", @@ -10958,255 +10417,115 @@ export const Pricing: coreClient.CompositeMapper = { serializedName: "properties.deprecated", readOnly: true, type: { - name: "Boolean", - }, - }, - replacedBy: { - serializedName: "properties.replacedBy", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "String", - }, - }, - }, - }, - }, - }, -}; - -export const SecurityAssessmentMetadata: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "SecurityAssessmentMetadata", - modelProperties: { - ...Resource.type.modelProperties, - displayName: { - serializedName: "properties.displayName", - type: { - name: "String", - }, - }, - policyDefinitionId: { - serializedName: "properties.policyDefinitionId", - readOnly: true, - type: { - name: "String", - }, - }, - description: { - serializedName: "properties.description", - type: { - name: "String", - }, - }, - remediationDescription: { - serializedName: "properties.remediationDescription", - type: { - name: "String", - }, - }, - categories: { - serializedName: "properties.categories", - type: { - name: "Sequence", - element: { - type: { - name: "String", - }, - }, - }, - }, - severity: { - serializedName: "properties.severity", - type: { - name: "String", - }, - }, - userImpact: { - serializedName: "properties.userImpact", - type: { - name: "String", - }, - }, - implementationEffort: { - serializedName: "properties.implementationEffort", - type: { - name: "String", - }, - }, - threats: { - serializedName: "properties.threats", - type: { - name: "Sequence", - element: { - type: { - name: "String", - }, - }, - }, - }, - preview: { - serializedName: "properties.preview", - type: { - name: "Boolean", - }, - }, - assessmentType: { - serializedName: "properties.assessmentType", - type: { - name: "String", - }, - }, - partnerData: { - serializedName: "properties.partnerData", - type: { - name: "Composite", - className: "SecurityAssessmentMetadataPartnerData", - }, - }, - }, - }, -}; - -export const AutomationActionLogicApp: coreClient.CompositeMapper = { - serializedName: "LogicApp", - type: { - name: "Composite", - className: "AutomationActionLogicApp", - uberParent: "AutomationAction", - polymorphicDiscriminator: AutomationAction.type.polymorphicDiscriminator, - modelProperties: { - ...AutomationAction.type.modelProperties, - logicAppResourceId: { - serializedName: "logicAppResourceId", - type: { - name: "String", - }, - }, - uri: { - serializedName: "uri", - type: { - name: "String", - }, - }, - }, - }, -}; - -export const AutomationActionEventHub: coreClient.CompositeMapper = { - serializedName: "EventHub", - type: { - name: "Composite", - className: "AutomationActionEventHub", - uberParent: "AutomationAction", - polymorphicDiscriminator: AutomationAction.type.polymorphicDiscriminator, - modelProperties: { - ...AutomationAction.type.modelProperties, - eventHubResourceId: { - serializedName: "eventHubResourceId", - type: { - name: "String", - }, - }, - sasPolicyName: { - serializedName: "sasPolicyName", - readOnly: true, - type: { - name: "String", - }, - }, - connectionString: { - serializedName: "connectionString", - type: { - name: "String", + name: "Boolean", }, }, - isTrustedServiceEnabled: { - serializedName: "isTrustedServiceEnabled", + replacedBy: { + serializedName: "properties.replacedBy", + readOnly: true, type: { - name: "Boolean", + name: "Sequence", + element: { + type: { + name: "String", + }, + }, }, }, }, }, }; -export const AutomationActionWorkspace: coreClient.CompositeMapper = { - serializedName: "Workspace", +export const SecurityAssessmentMetadata: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AutomationActionWorkspace", - uberParent: "AutomationAction", - polymorphicDiscriminator: AutomationAction.type.polymorphicDiscriminator, + className: "SecurityAssessmentMetadata", modelProperties: { - ...AutomationAction.type.modelProperties, - workspaceResourceId: { - serializedName: "workspaceResourceId", + ...Resource.type.modelProperties, + displayName: { + serializedName: "properties.displayName", + type: { + name: "String", + }, + }, + policyDefinitionId: { + serializedName: "properties.policyDefinitionId", + readOnly: true, type: { name: "String", }, }, - }, - }, -}; - -export const AutomationUpdateModel: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "AutomationUpdateModel", - modelProperties: { - ...Tags.type.modelProperties, description: { serializedName: "properties.description", type: { name: "String", }, }, - isEnabled: { - serializedName: "properties.isEnabled", + remediationDescription: { + serializedName: "properties.remediationDescription", type: { - name: "Boolean", + name: "String", }, }, - scopes: { - serializedName: "properties.scopes", + categories: { + serializedName: "properties.categories", type: { name: "Sequence", element: { type: { - name: "Composite", - className: "AutomationScope", + name: "String", }, }, }, }, - sources: { - serializedName: "properties.sources", + severity: { + serializedName: "properties.severity", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "AutomationSource", - }, - }, + name: "String", }, }, - actions: { - serializedName: "properties.actions", + userImpact: { + serializedName: "properties.userImpact", + type: { + name: "String", + }, + }, + implementationEffort: { + serializedName: "properties.implementationEffort", + type: { + name: "String", + }, + }, + threats: { + serializedName: "properties.threats", type: { name: "Sequence", element: { type: { - name: "Composite", - className: "AutomationAction", + name: "String", }, }, }, }, + preview: { + serializedName: "properties.preview", + type: { + name: "Boolean", + }, + }, + assessmentType: { + serializedName: "properties.assessmentType", + type: { + name: "String", + }, + }, + partnerData: { + serializedName: "properties.partnerData", + type: { + name: "Composite", + className: "SecurityAssessmentMetadataPartnerData", + }, + }, }, }, }; @@ -11623,6 +10942,146 @@ export const GcpCredentialsDetailsProperties: coreClient.CompositeMapper = { }, }; +export const AutomationActionLogicApp: coreClient.CompositeMapper = { + serializedName: "LogicApp", + type: { + name: "Composite", + className: "AutomationActionLogicApp", + uberParent: "AutomationAction", + polymorphicDiscriminator: AutomationAction.type.polymorphicDiscriminator, + modelProperties: { + ...AutomationAction.type.modelProperties, + logicAppResourceId: { + serializedName: "logicAppResourceId", + type: { + name: "String", + }, + }, + uri: { + serializedName: "uri", + type: { + name: "String", + }, + }, + }, + }, +}; + +export const AutomationActionEventHub: coreClient.CompositeMapper = { + serializedName: "EventHub", + type: { + name: "Composite", + className: "AutomationActionEventHub", + uberParent: "AutomationAction", + polymorphicDiscriminator: AutomationAction.type.polymorphicDiscriminator, + modelProperties: { + ...AutomationAction.type.modelProperties, + eventHubResourceId: { + serializedName: "eventHubResourceId", + type: { + name: "String", + }, + }, + sasPolicyName: { + serializedName: "sasPolicyName", + readOnly: true, + type: { + name: "String", + }, + }, + connectionString: { + serializedName: "connectionString", + type: { + name: "String", + }, + }, + isTrustedServiceEnabled: { + serializedName: "isTrustedServiceEnabled", + type: { + name: "Boolean", + }, + }, + }, + }, +}; + +export const AutomationActionWorkspace: coreClient.CompositeMapper = { + serializedName: "Workspace", + type: { + name: "Composite", + className: "AutomationActionWorkspace", + uberParent: "AutomationAction", + polymorphicDiscriminator: AutomationAction.type.polymorphicDiscriminator, + modelProperties: { + ...AutomationAction.type.modelProperties, + workspaceResourceId: { + serializedName: "workspaceResourceId", + type: { + name: "String", + }, + }, + }, + }, +}; + +export const AutomationUpdateModel: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AutomationUpdateModel", + modelProperties: { + ...Tags.type.modelProperties, + description: { + serializedName: "properties.description", + type: { + name: "String", + }, + }, + isEnabled: { + serializedName: "properties.isEnabled", + type: { + name: "Boolean", + }, + }, + scopes: { + serializedName: "properties.scopes", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "AutomationScope", + }, + }, + }, + }, + sources: { + serializedName: "properties.sources", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "AutomationSource", + }, + }, + }, + }, + actions: { + serializedName: "properties.actions", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "AutomationAction", + }, + }, + }, + }, + }, + }, +}; + export const NotificationsSourceAlert: coreClient.CompositeMapper = { serializedName: "Alert", type: { @@ -11661,16 +11120,6 @@ export const NotificationsSourceAttackPath: coreClient.CompositeMapper = { }, }; -export const ProxyResource: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ProxyResource", - modelProperties: { - ...ResourceAutoGenerated.type.modelProperties, - }, - }, -}; - export const CspmMonitorAwsOffering: coreClient.CompositeMapper = { serializedName: "CspmMonitorAws", type: { @@ -11707,11 +11156,11 @@ export const DefenderForContainersAwsOffering: coreClient.CompositeMapper = { className: "DefenderForContainersAwsOfferingKubernetesService", }, }, - kubernetesScubaReader: { - serializedName: "kubernetesScubaReader", + kubernetesDataCollection: { + serializedName: "kubernetesDataCollection", type: { name: "Composite", - className: "DefenderForContainersAwsOfferingKubernetesScubaReader", + className: "DefenderForContainersAwsOfferingKubernetesDataCollection", }, }, cloudWatchToKinesis: { @@ -11728,30 +11177,20 @@ export const DefenderForContainersAwsOffering: coreClient.CompositeMapper = { className: "DefenderForContainersAwsOfferingKinesisToS3", }, }, - containerVulnerabilityAssessment: { - serializedName: "containerVulnerabilityAssessment", + enableAuditLogsAutoProvisioning: { + serializedName: "enableAuditLogsAutoProvisioning", type: { - name: "Composite", - className: - "DefenderForContainersAwsOfferingContainerVulnerabilityAssessment", - }, - }, - containerVulnerabilityAssessmentTask: { - serializedName: "containerVulnerabilityAssessmentTask", - type: { - name: "Composite", - className: - "DefenderForContainersAwsOfferingContainerVulnerabilityAssessmentTask", + name: "Boolean", }, }, - enableContainerVulnerabilityAssessment: { - serializedName: "enableContainerVulnerabilityAssessment", + enableDefenderAgentAutoProvisioning: { + serializedName: "enableDefenderAgentAutoProvisioning", type: { name: "Boolean", }, }, - autoProvisioning: { - serializedName: "autoProvisioning", + enablePolicyAgentAutoProvisioning: { + serializedName: "enablePolicyAgentAutoProvisioning", type: { name: "Boolean", }, @@ -11762,8 +11201,8 @@ export const DefenderForContainersAwsOffering: coreClient.CompositeMapper = { name: "Number", }, }, - scubaExternalId: { - serializedName: "scubaExternalId", + dataCollectionExternalId: { + serializedName: "dataCollectionExternalId", type: { name: "String", }, @@ -11784,6 +11223,13 @@ export const DefenderForContainersAwsOffering: coreClient.CompositeMapper = { "DefenderForContainersAwsOfferingMdcContainersAgentlessDiscoveryK8S", }, }, + vmScanners: { + serializedName: "vmScanners", + type: { + name: "Composite", + className: "DefenderForContainersAwsOfferingVmScanners", + }, + }, }, }, }; @@ -11877,26 +11323,6 @@ export const DefenderFoDatabasesAwsOffering: coreClient.CompositeMapper = { }, }; -export const InformationProtectionAwsOffering: coreClient.CompositeMapper = { - serializedName: "InformationProtectionAws", - type: { - name: "Composite", - className: "InformationProtectionAwsOffering", - uberParent: "CloudOffering", - polymorphicDiscriminator: CloudOffering.type.polymorphicDiscriminator, - modelProperties: { - ...CloudOffering.type.modelProperties, - informationProtection: { - serializedName: "informationProtection", - type: { - name: "Composite", - className: "InformationProtectionAwsOfferingInformationProtection", - }, - }, - }, - }, -}; - export const CspmMonitorGcpOffering: coreClient.CompositeMapper = { serializedName: "CspmMonitorGcp", type: { @@ -12024,20 +11450,20 @@ export const DefenderForContainersGcpOffering: coreClient.CompositeMapper = { "DefenderForContainersGcpOfferingDataPipelineNativeCloudConnection", }, }, - auditLogsAutoProvisioningFlag: { - serializedName: "auditLogsAutoProvisioningFlag", + enableAuditLogsAutoProvisioning: { + serializedName: "enableAuditLogsAutoProvisioning", type: { name: "Boolean", }, }, - defenderAgentAutoProvisioningFlag: { - serializedName: "defenderAgentAutoProvisioningFlag", + enableDefenderAgentAutoProvisioning: { + serializedName: "enableDefenderAgentAutoProvisioning", type: { name: "Boolean", }, }, - policyAgentAutoProvisioningFlag: { - serializedName: "policyAgentAutoProvisioningFlag", + enablePolicyAgentAutoProvisioning: { + serializedName: "enablePolicyAgentAutoProvisioning", type: { name: "Boolean", }, @@ -12058,6 +11484,13 @@ export const DefenderForContainersGcpOffering: coreClient.CompositeMapper = { "DefenderForContainersGcpOfferingMdcContainersAgentlessDiscoveryK8S", }, }, + vmScanners: { + serializedName: "vmScanners", + type: { + name: "Composite", + className: "DefenderForContainersGcpOfferingVmScanners", + }, + }, }, }, }; @@ -12193,33 +11626,6 @@ export const DefenderCspmGcpOffering: coreClient.CompositeMapper = { }, }; -export const DefenderForDevOpsGithubOffering: coreClient.CompositeMapper = { - serializedName: "DefenderForDevOpsGithub", - type: { - name: "Composite", - className: "DefenderForDevOpsGithubOffering", - uberParent: "CloudOffering", - polymorphicDiscriminator: CloudOffering.type.polymorphicDiscriminator, - modelProperties: { - ...CloudOffering.type.modelProperties, - }, - }, -}; - -export const DefenderForDevOpsAzureDevOpsOffering: coreClient.CompositeMapper = - { - serializedName: "DefenderForDevOpsAzureDevOps", - type: { - name: "Composite", - className: "DefenderForDevOpsAzureDevOpsOffering", - uberParent: "CloudOffering", - polymorphicDiscriminator: CloudOffering.type.polymorphicDiscriminator, - modelProperties: { - ...CloudOffering.type.modelProperties, - }, - }, - }; - export const CspmMonitorGitLabOffering: coreClient.CompositeMapper = { serializedName: "CspmMonitorGitLab", type: { @@ -12233,19 +11639,6 @@ export const CspmMonitorGitLabOffering: coreClient.CompositeMapper = { }, }; -export const DefenderForDevOpsGitLabOffering: coreClient.CompositeMapper = { - serializedName: "DefenderForDevOpsGitLab", - type: { - name: "Composite", - className: "DefenderForDevOpsGitLabOffering", - uberParent: "CloudOffering", - polymorphicDiscriminator: CloudOffering.type.polymorphicDiscriminator, - modelProperties: { - ...CloudOffering.type.modelProperties, - }, - }, -}; - export const AwsEnvironmentData: coreClient.CompositeMapper = { serializedName: "AwsAccount", type: { @@ -12362,6 +11755,16 @@ export const GitlabScopeEnvironmentData: coreClient.CompositeMapper = { }, }; +export const ProxyResource: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ProxyResource", + modelProperties: { + ...ResourceAutoGenerated.type.modelProperties, + }, + }, +}; + export const ThresholdCustomAlertRule: coreClient.CompositeMapper = { serializedName: "ThresholdCustomAlertRule", type: { @@ -12791,6 +12194,58 @@ export const GcpOrganizationalDataMember: coreClient.CompositeMapper = { }, }; +export const VmScannersAws: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "VmScannersAws", + modelProperties: { + ...VmScannersBase.type.modelProperties, + cloudRoleArn: { + serializedName: "cloudRoleArn", + type: { + name: "String", + }, + }, + }, + }, +}; + +export const VmScannersGcp: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "VmScannersGcp", + modelProperties: { + ...VmScannersBase.type.modelProperties, + }, + }, +}; + +export const ArcAutoProvisioningAws: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ArcAutoProvisioningAws", + modelProperties: { + ...ArcAutoProvisioning.type.modelProperties, + cloudRoleArn: { + serializedName: "cloudRoleArn", + type: { + name: "String", + }, + }, + }, + }, +}; + +export const ArcAutoProvisioningGcp: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ArcAutoProvisioningGcp", + modelProperties: { + ...ArcAutoProvisioning.type.modelProperties, + }, + }, +}; + export const CefSolutionProperties: coreClient.CompositeMapper = { type: { name: "Composite", @@ -13187,6 +12642,54 @@ export const DevOpsConfiguration: coreClient.CompositeMapper = { }, }; +export const DevOpsPolicy: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DevOpsPolicy", + modelProperties: { + ...ProxyResource.type.modelProperties, + systemData: { + serializedName: "systemData", + type: { + name: "Composite", + className: "SystemData", + }, + }, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "DevOpsPolicyProperties", + }, + }, + }, + }, +}; + +export const DevOpsPolicyAssignment: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DevOpsPolicyAssignment", + modelProperties: { + ...ProxyResource.type.modelProperties, + systemData: { + serializedName: "systemData", + type: { + name: "Composite", + className: "SystemData", + }, + }, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "DevOpsPolicyAssignmentProperties", + }, + }, + }, + }, +}; + export const GitHubOwner: coreClient.CompositeMapper = { type: { name: "Composite", @@ -13379,6 +12882,114 @@ export const AzureServersSetting: coreClient.CompositeMapper = { }, }; +export const DefenderForContainersAwsOfferingVmScanners: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "DefenderForContainersAwsOfferingVmScanners", + modelProperties: { + ...VmScannersAws.type.modelProperties, + }, + }, + }; + +export const DefenderForServersAwsOfferingVmScanners: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "DefenderForServersAwsOfferingVmScanners", + modelProperties: { + ...VmScannersAws.type.modelProperties, + }, + }, + }; + +export const DefenderCspmAwsOfferingVmScanners: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DefenderCspmAwsOfferingVmScanners", + modelProperties: { + ...VmScannersAws.type.modelProperties, + }, + }, +}; + +export const DefenderForServersGcpOfferingVmScanners: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "DefenderForServersGcpOfferingVmScanners", + modelProperties: { + ...VmScannersGcp.type.modelProperties, + }, + }, + }; + +export const DefenderForContainersGcpOfferingVmScanners: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "DefenderForContainersGcpOfferingVmScanners", + modelProperties: { + ...VmScannersGcp.type.modelProperties, + }, + }, + }; + +export const DefenderCspmGcpOfferingVmScanners: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DefenderCspmGcpOfferingVmScanners", + modelProperties: { + ...VmScannersGcp.type.modelProperties, + }, + }, +}; + +export const DefenderForServersAwsOfferingArcAutoProvisioning: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "DefenderForServersAwsOfferingArcAutoProvisioning", + modelProperties: { + ...ArcAutoProvisioningAws.type.modelProperties, + }, + }, + }; + +export const DefenderFoDatabasesAwsOfferingArcAutoProvisioning: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "DefenderFoDatabasesAwsOfferingArcAutoProvisioning", + modelProperties: { + ...ArcAutoProvisioningAws.type.modelProperties, + }, + }, + }; + +export const DefenderForServersGcpOfferingArcAutoProvisioning: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "DefenderForServersGcpOfferingArcAutoProvisioning", + modelProperties: { + ...ArcAutoProvisioningGcp.type.modelProperties, + }, + }, + }; + +export const DefenderForDatabasesGcpOfferingArcAutoProvisioning: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "DefenderForDatabasesGcpOfferingArcAutoProvisioning", + modelProperties: { + ...ArcAutoProvisioningGcp.type.modelProperties, + }, + }, + }; + export const ActiveConnectionsNotInAllowedRange: coreClient.CompositeMapper = { serializedName: "ActiveConnectionsNotInAllowedRange", type: { @@ -13727,10 +13338,10 @@ export const APICollectionsOnboardAzureApiManagementApiHeaders: coreClient.Compo }; export let discriminators = { - AutomationAction: AutomationAction, ResourceDetails: ResourceDetails, AdditionalData: AdditionalData, AuthenticationDetailsProperties: AuthenticationDetailsProperties, + AutomationAction: AutomationAction, NotificationsSource: NotificationsSource, CloudOffering: CloudOffering, EnvironmentData: EnvironmentData, @@ -13740,9 +13351,6 @@ export let discriminators = { AwsOrganizationalData: AwsOrganizationalData, GcpOrganizationalData: GcpOrganizationalData, "Resource.Setting": Setting, - "AutomationAction.LogicApp": AutomationActionLogicApp, - "AutomationAction.EventHub": AutomationActionEventHub, - "AutomationAction.Workspace": AutomationActionWorkspace, "ResourceDetails.Azure": AzureResourceDetails, "ResourceDetails.OnPremise": OnPremiseResourceDetails, "AdditionalData.SqlServerVulnerability": SqlServerVulnerabilityProperties, @@ -13755,13 +13363,15 @@ export let discriminators = { AwAssumeRoleAuthenticationDetailsProperties, "AuthenticationDetailsProperties.gcpCredentials": GcpCredentialsDetailsProperties, + "AutomationAction.LogicApp": AutomationActionLogicApp, + "AutomationAction.EventHub": AutomationActionEventHub, + "AutomationAction.Workspace": AutomationActionWorkspace, "NotificationsSource.Alert": NotificationsSourceAlert, "NotificationsSource.AttackPath": NotificationsSourceAttackPath, "CloudOffering.CspmMonitorAws": CspmMonitorAwsOffering, "CloudOffering.DefenderForContainersAws": DefenderForContainersAwsOffering, "CloudOffering.DefenderForServersAws": DefenderForServersAwsOffering, "CloudOffering.DefenderForDatabasesAws": DefenderFoDatabasesAwsOffering, - "CloudOffering.InformationProtectionAws": InformationProtectionAwsOffering, "CloudOffering.CspmMonitorGcp": CspmMonitorGcpOffering, "CloudOffering.DefenderForServersGcp": DefenderForServersGcpOffering, "CloudOffering.DefenderForDatabasesGcp": DefenderForDatabasesGcpOffering, @@ -13770,11 +13380,7 @@ export let discriminators = { "CloudOffering.CspmMonitorAzureDevOps": CspmMonitorAzureDevOpsOffering, "CloudOffering.DefenderCspmAws": DefenderCspmAwsOffering, "CloudOffering.DefenderCspmGcp": DefenderCspmGcpOffering, - "CloudOffering.DefenderForDevOpsGithub": DefenderForDevOpsGithubOffering, - "CloudOffering.DefenderForDevOpsAzureDevOps": - DefenderForDevOpsAzureDevOpsOffering, "CloudOffering.CspmMonitorGitLab": CspmMonitorGitLabOffering, - "CloudOffering.DefenderForDevOpsGitLab": DefenderForDevOpsGitLabOffering, "EnvironmentData.AwsAccount": AwsEnvironmentData, "EnvironmentData.GcpProject": GcpProjectEnvironmentData, "EnvironmentData.GithubScope": GithubScopeEnvironmentData, diff --git a/sdk/security/arm-security/src/models/parameters.ts b/sdk/security/arm-security/src/models/parameters.ts index 4e838de3bf96..2fc1d7968255 100644 --- a/sdk/security/arm-security/src/models/parameters.ts +++ b/sdk/security/arm-security/src/models/parameters.ts @@ -16,10 +16,7 @@ import { InformationProtectionPolicy as InformationProtectionPolicyMapper, WorkspaceSetting as WorkspaceSettingMapper, AlertsSuppressionRule as AlertsSuppressionRuleMapper, - Automation as AutomationMapper, - AutomationUpdateModel as AutomationUpdateModelMapper, ConnectorSetting as ConnectorSettingMapper, - SecurityContact as SecurityContactMapper, CustomAssessmentAutomationRequest as CustomAssessmentAutomationRequestMapper, CustomEntityStoreAssignmentRequest as CustomEntityStoreAssignmentRequestMapper, GovernanceAssignment as GovernanceAssignmentMapper, @@ -30,17 +27,19 @@ import { RuleResultsInput as RuleResultsInputMapper, RulesResultsInput as RulesResultsInputMapper, UpdateSensitivitySettingsRequest as UpdateSensitivitySettingsRequestMapper, + Automation as AutomationMapper, + AutomationUpdateModel as AutomationUpdateModelMapper, + SecurityContact as SecurityContactMapper, + SecurityConnector as SecurityConnectorMapper, AzureDevOpsOrg as AzureDevOpsOrgMapper, AzureDevOpsProject as AzureDevOpsProjectMapper, AzureDevOpsRepository as AzureDevOpsRepositoryMapper, DevOpsConfiguration as DevOpsConfigurationMapper, - SecurityConnector as SecurityConnectorMapper, + DevOpsPolicyAssignment as DevOpsPolicyAssignmentMapper, AdvancedThreatProtectionSetting as AdvancedThreatProtectionSettingMapper, DeviceSecurityGroup as DeviceSecurityGroupMapper, IoTSecuritySolutionModel as IoTSecuritySolutionModelMapper, UpdateIotSecuritySolutionData as UpdateIotSecuritySolutionDataMapper, - AdaptiveNetworkHardeningEnforceRequest as AdaptiveNetworkHardeningEnforceRequestMapper, - AdaptiveApplicationControlGroup as AdaptiveApplicationControlGroupMapper, JitNetworkAccessPolicy as JitNetworkAccessPolicyMapper, JitNetworkAccessPolicyInitiateRequest as JitNetworkAccessPolicyInitiateRequestMapper, SecurityAssessmentMetadataResponse as SecurityAssessmentMetadataResponseMapper, @@ -307,39 +306,6 @@ export const alertsSuppressionRule: OperationParameter = { mapper: AlertsSuppressionRuleMapper, }; -export const apiVersion3: OperationQueryParameter = { - parameterPath: "apiVersion", - mapper: { - defaultValue: "2023-12-01-preview", - isConstant: true, - serializedName: "api-version", - type: { - name: "String", - }, - }, -}; - -export const automationName: OperationURLParameter = { - parameterPath: "automationName", - mapper: { - serializedName: "automationName", - required: true, - type: { - name: "String", - }, - }, -}; - -export const automation: OperationParameter = { - parameterPath: "automation", - mapper: AutomationMapper, -}; - -export const automation1: OperationParameter = { - parameterPath: "automation", - mapper: AutomationUpdateModelMapper, -}; - export const regulatoryComplianceStandardName: OperationURLParameter = { parameterPath: "regulatoryComplianceStandardName", mapper: { @@ -395,7 +361,7 @@ export const subAssessmentName: OperationURLParameter = { }, }; -export const apiVersion4: OperationQueryParameter = { +export const apiVersion3: OperationQueryParameter = { parameterPath: "apiVersion", mapper: { defaultValue: "2020-01-01-preview", @@ -423,22 +389,6 @@ export const connectorSetting: OperationParameter = { mapper: ConnectorSettingMapper, }; -export const securityContactName: OperationURLParameter = { - parameterPath: "securityContactName", - mapper: { - serializedName: "securityContactName", - required: true, - type: { - name: "String", - }, - }, -}; - -export const securityContact: OperationParameter = { - parameterPath: "securityContact", - mapper: SecurityContactMapper, -}; - export const resourceNamespace: OperationURLParameter = { parameterPath: "resourceNamespace", mapper: { @@ -472,7 +422,7 @@ export const resourceName: OperationURLParameter = { }, }; -export const apiVersion5: OperationQueryParameter = { +export const apiVersion4: OperationQueryParameter = { parameterPath: "apiVersion", mapper: { defaultValue: "2021-05-01-preview", @@ -495,7 +445,7 @@ export const softwareName: OperationURLParameter = { }, }; -export const apiVersion6: OperationQueryParameter = { +export const apiVersion5: OperationQueryParameter = { parameterPath: "apiVersion", mapper: { defaultValue: "2021-07-01-preview", @@ -539,7 +489,7 @@ export const customEntityStoreAssignmentRequestBody: OperationParameter = { mapper: CustomEntityStoreAssignmentRequestMapper, }; -export const apiVersion7: OperationQueryParameter = { +export const apiVersion6: OperationQueryParameter = { parameterPath: "apiVersion", mapper: { defaultValue: "2021-10-01-preview", @@ -551,7 +501,7 @@ export const apiVersion7: OperationQueryParameter = { }, }; -export const apiVersion8: OperationQueryParameter = { +export const apiVersion7: OperationQueryParameter = { parameterPath: "apiVersion", mapper: { defaultValue: "2022-01-01-preview", @@ -636,7 +586,7 @@ export const operationId: OperationURLParameter = { }, }; -export const apiVersion9: OperationQueryParameter = { +export const apiVersion8: OperationQueryParameter = { parameterPath: "apiVersion", mapper: { defaultValue: "2022-07-01-preview", @@ -675,7 +625,7 @@ export const securityConnectorName: OperationURLParameter = { }, }; -export const apiVersion10: OperationQueryParameter = { +export const apiVersion9: OperationQueryParameter = { parameterPath: "apiVersion", mapper: { defaultValue: "2022-12-01-preview", @@ -715,7 +665,7 @@ export const defenderForStorageSetting: OperationParameter = { mapper: DefenderForStorageSettingMapper, }; -export const apiVersion11: OperationQueryParameter = { +export const apiVersion10: OperationQueryParameter = { parameterPath: "apiVersion", mapper: { defaultValue: "2023-01-01-preview", @@ -775,7 +725,7 @@ export const workspaceId: OperationQueryParameter = { }, }; -export const apiVersion12: OperationQueryParameter = { +export const apiVersion11: OperationQueryParameter = { parameterPath: "apiVersion", mapper: { defaultValue: "2023-02-01-preview", @@ -819,7 +769,7 @@ export const sensitivitySettings: OperationParameter = { mapper: UpdateSensitivitySettingsRequestMapper, }; -export const apiVersion13: OperationQueryParameter = { +export const apiVersion12: OperationQueryParameter = { parameterPath: "apiVersion", mapper: { defaultValue: "2023-02-15-preview", @@ -831,7 +781,7 @@ export const apiVersion13: OperationQueryParameter = { }, }; -export const apiVersion14: OperationQueryParameter = { +export const apiVersion13: OperationQueryParameter = { parameterPath: "apiVersion", mapper: { defaultValue: "2023-05-01-preview", @@ -874,6 +824,72 @@ export const healthReportName: OperationURLParameter = { }, }; +export const apiVersion14: OperationQueryParameter = { + parameterPath: "apiVersion", + mapper: { + defaultValue: "2023-12-01-preview", + isConstant: true, + serializedName: "api-version", + type: { + name: "String", + }, + }, +}; + +export const automationName: OperationURLParameter = { + parameterPath: "automationName", + mapper: { + serializedName: "automationName", + required: true, + type: { + name: "String", + }, + }, +}; + +export const automation: OperationParameter = { + parameterPath: "automation", + mapper: AutomationMapper, +}; + +export const automation1: OperationParameter = { + parameterPath: "automation", + mapper: AutomationUpdateModelMapper, +}; + +export const securityContactName: OperationURLParameter = { + parameterPath: "securityContactName", + mapper: { + serializedName: "securityContactName", + required: true, + type: { + name: "String", + }, + }, +}; + +export const securityContact: OperationParameter = { + parameterPath: "securityContact", + mapper: SecurityContactMapper, +}; + +export const apiVersion15: OperationQueryParameter = { + parameterPath: "apiVersion", + mapper: { + defaultValue: "2024-03-01-preview", + isConstant: true, + serializedName: "api-version", + type: { + name: "String", + }, + }, +}; + +export const securityConnector: OperationParameter = { + parameterPath: "securityConnector", + mapper: SecurityConnectorMapper, +}; + export const resourceGroupName1: OperationURLParameter = { parameterPath: "resourceGroupName", mapper: { @@ -889,10 +905,10 @@ export const resourceGroupName1: OperationURLParameter = { }, }; -export const apiVersion15: OperationQueryParameter = { +export const apiVersion16: OperationQueryParameter = { parameterPath: "apiVersion", mapper: { - defaultValue: "2023-09-01-preview", + defaultValue: "2024-05-15-preview", isConstant: true, serializedName: "api-version", type: { @@ -954,10 +970,20 @@ export const devOpsConfiguration: OperationParameter = { mapper: DevOpsConfigurationMapper, }; -export const ownerName: OperationURLParameter = { - parameterPath: "ownerName", +export const devOpsPolicyType: OperationQueryParameter = { + parameterPath: ["options", "devOpsPolicyType"], mapper: { - serializedName: "ownerName", + serializedName: "devOpsPolicyType", + type: { + name: "String", + }, + }, +}; + +export const policyName: OperationURLParameter = { + parameterPath: "policyName", + mapper: { + serializedName: "policyName", required: true, type: { name: "String", @@ -965,10 +991,20 @@ export const ownerName: OperationURLParameter = { }, }; -export const groupFQName: OperationURLParameter = { - parameterPath: "groupFQName", +export const resourceId1: OperationQueryParameter = { + parameterPath: ["options", "resourceId"], mapper: { - serializedName: "groupFQName", + serializedName: "resourceId", + type: { + name: "String", + }, + }, +}; + +export const policyAssignmentId: OperationURLParameter = { + parameterPath: "policyAssignmentId", + mapper: { + serializedName: "policyAssignmentId", required: true, type: { name: "String", @@ -976,10 +1012,15 @@ export const groupFQName: OperationURLParameter = { }, }; -export const operationResultId: OperationURLParameter = { - parameterPath: "operationResultId", +export const devOpsPolicyAssignment: OperationParameter = { + parameterPath: "devOpsPolicyAssignment", + mapper: DevOpsPolicyAssignmentMapper, +}; + +export const ownerName: OperationURLParameter = { + parameterPath: "ownerName", mapper: { - serializedName: "operationResultId", + serializedName: "ownerName", required: true, type: { name: "String", @@ -987,21 +1028,26 @@ export const operationResultId: OperationURLParameter = { }, }; -export const apiVersion16: OperationQueryParameter = { - parameterPath: "apiVersion", +export const groupFQName: OperationURLParameter = { + parameterPath: "groupFQName", mapper: { - defaultValue: "2023-10-01-preview", - isConstant: true, - serializedName: "api-version", + serializedName: "groupFQName", + required: true, type: { name: "String", }, }, }; -export const securityConnector: OperationParameter = { - parameterPath: "securityConnector", - mapper: SecurityConnectorMapper, +export const operationResultId: OperationURLParameter = { + parameterPath: "operationResultId", + mapper: { + serializedName: "operationResultId", + required: true, + type: { + name: "String", + }, + }, }; export const apiVersion17: OperationQueryParameter = { @@ -1149,34 +1195,6 @@ export const apiVersion20: OperationQueryParameter = { }, }; -export const adaptiveNetworkHardeningResourceName: OperationURLParameter = { - parameterPath: "adaptiveNetworkHardeningResourceName", - mapper: { - serializedName: "adaptiveNetworkHardeningResourceName", - required: true, - type: { - name: "String", - }, - }, -}; - -export const body2: OperationParameter = { - parameterPath: "body", - mapper: AdaptiveNetworkHardeningEnforceRequestMapper, -}; - -export const adaptiveNetworkHardeningEnforceAction: OperationURLParameter = { - parameterPath: "adaptiveNetworkHardeningEnforceAction", - mapper: { - defaultValue: "enforce", - isConstant: true, - serializedName: "adaptiveNetworkHardeningEnforceAction", - type: { - name: "String", - }, - }, -}; - export const connectionType: OperationURLParameter = { parameterPath: "connectionType", mapper: { @@ -1188,42 +1206,6 @@ export const connectionType: OperationURLParameter = { }, }; -export const includePathRecommendations: OperationQueryParameter = { - parameterPath: ["options", "includePathRecommendations"], - mapper: { - serializedName: "includePathRecommendations", - type: { - name: "Boolean", - }, - }, -}; - -export const summary: OperationQueryParameter = { - parameterPath: ["options", "summary"], - mapper: { - serializedName: "summary", - type: { - name: "Boolean", - }, - }, -}; - -export const groupName: OperationURLParameter = { - parameterPath: "groupName", - mapper: { - serializedName: "groupName", - required: true, - type: { - name: "String", - }, - }, -}; - -export const body3: OperationParameter = { - parameterPath: "body", - mapper: AdaptiveApplicationControlGroupMapper, -}; - export const discoveredSecuritySolutionName: OperationURLParameter = { parameterPath: "discoveredSecuritySolutionName", mapper: { @@ -1257,12 +1239,12 @@ export const jitNetworkAccessPolicyName: OperationURLParameter = { }, }; -export const body4: OperationParameter = { +export const body2: OperationParameter = { parameterPath: "body", mapper: JitNetworkAccessPolicyMapper, }; -export const body5: OperationParameter = { +export const body3: OperationParameter = { parameterPath: "body", mapper: JitNetworkAccessPolicyInitiateRequestMapper, }; diff --git a/sdk/security/arm-security/src/operations/adaptiveApplicationControls.ts b/sdk/security/arm-security/src/operations/adaptiveApplicationControls.ts deleted file mode 100644 index 92aa76d8a71e..000000000000 --- a/sdk/security/arm-security/src/operations/adaptiveApplicationControls.ts +++ /dev/null @@ -1,192 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -import { AdaptiveApplicationControls } from "../operationsInterfaces"; -import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { SecurityCenter } from "../securityCenter"; -import { - AdaptiveApplicationControlsListOptionalParams, - AdaptiveApplicationControlsListResponse, - AdaptiveApplicationControlsGetOptionalParams, - AdaptiveApplicationControlsGetResponse, - AdaptiveApplicationControlGroup, - AdaptiveApplicationControlsPutOptionalParams, - AdaptiveApplicationControlsPutResponse, - AdaptiveApplicationControlsDeleteOptionalParams, -} from "../models"; - -/** Class containing AdaptiveApplicationControls operations. */ -export class AdaptiveApplicationControlsImpl - implements AdaptiveApplicationControls -{ - private readonly client: SecurityCenter; - - /** - * Initialize a new instance of the class AdaptiveApplicationControls class. - * @param client Reference to the service client - */ - constructor(client: SecurityCenter) { - this.client = client; - } - - /** - * Gets a list of application control machine groups for the subscription. - * @param options The options parameters. - */ - list( - options?: AdaptiveApplicationControlsListOptionalParams, - ): Promise { - return this.client.sendOperationRequest({ options }, listOperationSpec); - } - - /** - * Gets an application control VM/server group. - * @param ascLocation The location where ASC stores the data of the subscription. can be retrieved from - * Get locations - * @param groupName Name of an application control machine group - * @param options The options parameters. - */ - get( - ascLocation: string, - groupName: string, - options?: AdaptiveApplicationControlsGetOptionalParams, - ): Promise { - return this.client.sendOperationRequest( - { ascLocation, groupName, options }, - getOperationSpec, - ); - } - - /** - * Update an application control machine group - * @param ascLocation The location where ASC stores the data of the subscription. can be retrieved from - * Get locations - * @param groupName Name of an application control machine group - * @param body - * @param options The options parameters. - */ - put( - ascLocation: string, - groupName: string, - body: AdaptiveApplicationControlGroup, - options?: AdaptiveApplicationControlsPutOptionalParams, - ): Promise { - return this.client.sendOperationRequest( - { ascLocation, groupName, body, options }, - putOperationSpec, - ); - } - - /** - * Delete an application control machine group - * @param ascLocation The location where ASC stores the data of the subscription. can be retrieved from - * Get locations - * @param groupName Name of an application control machine group - * @param options The options parameters. - */ - delete( - ascLocation: string, - groupName: string, - options?: AdaptiveApplicationControlsDeleteOptionalParams, - ): Promise { - return this.client.sendOperationRequest( - { ascLocation, groupName, options }, - deleteOperationSpec, - ); - } -} -// Operation Specifications -const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); - -const listOperationSpec: coreClient.OperationSpec = { - path: "/subscriptions/{subscriptionId}/providers/Microsoft.Security/applicationWhitelistings", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.AdaptiveApplicationControlGroups, - }, - default: { - bodyMapper: Mappers.CloudError, - }, - }, - queryParameters: [ - Parameters.apiVersion20, - Parameters.includePathRecommendations, - Parameters.summary, - ], - urlParameters: [Parameters.$host, Parameters.subscriptionId], - headerParameters: [Parameters.accept], - serializer, -}; -const getOperationSpec: coreClient.OperationSpec = { - path: "/subscriptions/{subscriptionId}/providers/Microsoft.Security/locations/{ascLocation}/applicationWhitelistings/{groupName}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.AdaptiveApplicationControlGroup, - }, - default: { - bodyMapper: Mappers.CloudError, - }, - }, - queryParameters: [Parameters.apiVersion20], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.ascLocation, - Parameters.groupName, - ], - headerParameters: [Parameters.accept], - serializer, -}; -const putOperationSpec: coreClient.OperationSpec = { - path: "/subscriptions/{subscriptionId}/providers/Microsoft.Security/locations/{ascLocation}/applicationWhitelistings/{groupName}", - httpMethod: "PUT", - responses: { - 200: { - bodyMapper: Mappers.AdaptiveApplicationControlGroup, - }, - default: { - bodyMapper: Mappers.CloudError, - }, - }, - requestBody: Parameters.body3, - queryParameters: [Parameters.apiVersion20], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.ascLocation, - Parameters.groupName, - ], - headerParameters: [Parameters.accept, Parameters.contentType], - mediaType: "json", - serializer, -}; -const deleteOperationSpec: coreClient.OperationSpec = { - path: "/subscriptions/{subscriptionId}/providers/Microsoft.Security/locations/{ascLocation}/applicationWhitelistings/{groupName}", - httpMethod: "DELETE", - responses: { - 200: {}, - 202: {}, - 204: {}, - default: { - bodyMapper: Mappers.CloudError, - }, - }, - queryParameters: [Parameters.apiVersion20], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.ascLocation, - Parameters.groupName, - ], - headerParameters: [Parameters.accept], - serializer, -}; diff --git a/sdk/security/arm-security/src/operations/adaptiveNetworkHardenings.ts b/sdk/security/arm-security/src/operations/adaptiveNetworkHardenings.ts deleted file mode 100644 index 68ad03ef0c40..000000000000 --- a/sdk/security/arm-security/src/operations/adaptiveNetworkHardenings.ts +++ /dev/null @@ -1,453 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper"; -import { AdaptiveNetworkHardenings } from "../operationsInterfaces"; -import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { SecurityCenter } from "../securityCenter"; -import { - SimplePollerLike, - OperationState, - createHttpPoller, -} from "@azure/core-lro"; -import { createLroSpec } from "../lroImpl"; -import { - AdaptiveNetworkHardening, - AdaptiveNetworkHardeningsListByExtendedResourceNextOptionalParams, - AdaptiveNetworkHardeningsListByExtendedResourceOptionalParams, - AdaptiveNetworkHardeningsListByExtendedResourceResponse, - AdaptiveNetworkHardeningsGetOptionalParams, - AdaptiveNetworkHardeningsGetResponse, - AdaptiveNetworkHardeningEnforceRequest, - AdaptiveNetworkHardeningsEnforceOptionalParams, - AdaptiveNetworkHardeningsListByExtendedResourceNextResponse, -} from "../models"; - -/// -/** Class containing AdaptiveNetworkHardenings operations. */ -export class AdaptiveNetworkHardeningsImpl - implements AdaptiveNetworkHardenings -{ - private readonly client: SecurityCenter; - - /** - * Initialize a new instance of the class AdaptiveNetworkHardenings class. - * @param client Reference to the service client - */ - constructor(client: SecurityCenter) { - this.client = client; - } - - /** - * Gets a list of Adaptive Network Hardenings resources in scope of an extended resource. - * @param resourceGroupName The name of the resource group within the user's subscription. The name is - * case insensitive. - * @param resourceNamespace The Namespace of the resource. - * @param resourceType The type of the resource. - * @param resourceName Name of the resource. - * @param options The options parameters. - */ - public listByExtendedResource( - resourceGroupName: string, - resourceNamespace: string, - resourceType: string, - resourceName: string, - options?: AdaptiveNetworkHardeningsListByExtendedResourceOptionalParams, - ): PagedAsyncIterableIterator { - const iter = this.listByExtendedResourcePagingAll( - resourceGroupName, - resourceNamespace, - resourceType, - resourceName, - options, - ); - return { - next() { - return iter.next(); - }, - [Symbol.asyncIterator]() { - return this; - }, - byPage: (settings?: PageSettings) => { - if (settings?.maxPageSize) { - throw new Error("maxPageSize is not supported by this operation."); - } - return this.listByExtendedResourcePagingPage( - resourceGroupName, - resourceNamespace, - resourceType, - resourceName, - options, - settings, - ); - }, - }; - } - - private async *listByExtendedResourcePagingPage( - resourceGroupName: string, - resourceNamespace: string, - resourceType: string, - resourceName: string, - options?: AdaptiveNetworkHardeningsListByExtendedResourceOptionalParams, - settings?: PageSettings, - ): AsyncIterableIterator { - let result: AdaptiveNetworkHardeningsListByExtendedResourceResponse; - let continuationToken = settings?.continuationToken; - if (!continuationToken) { - result = await this._listByExtendedResource( - resourceGroupName, - resourceNamespace, - resourceType, - resourceName, - options, - ); - let page = result.value || []; - continuationToken = result.nextLink; - setContinuationToken(page, continuationToken); - yield page; - } - while (continuationToken) { - result = await this._listByExtendedResourceNext( - resourceGroupName, - resourceNamespace, - resourceType, - resourceName, - continuationToken, - options, - ); - continuationToken = result.nextLink; - let page = result.value || []; - setContinuationToken(page, continuationToken); - yield page; - } - } - - private async *listByExtendedResourcePagingAll( - resourceGroupName: string, - resourceNamespace: string, - resourceType: string, - resourceName: string, - options?: AdaptiveNetworkHardeningsListByExtendedResourceOptionalParams, - ): AsyncIterableIterator { - for await (const page of this.listByExtendedResourcePagingPage( - resourceGroupName, - resourceNamespace, - resourceType, - resourceName, - options, - )) { - yield* page; - } - } - - /** - * Gets a list of Adaptive Network Hardenings resources in scope of an extended resource. - * @param resourceGroupName The name of the resource group within the user's subscription. The name is - * case insensitive. - * @param resourceNamespace The Namespace of the resource. - * @param resourceType The type of the resource. - * @param resourceName Name of the resource. - * @param options The options parameters. - */ - private _listByExtendedResource( - resourceGroupName: string, - resourceNamespace: string, - resourceType: string, - resourceName: string, - options?: AdaptiveNetworkHardeningsListByExtendedResourceOptionalParams, - ): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - resourceNamespace, - resourceType, - resourceName, - options, - }, - listByExtendedResourceOperationSpec, - ); - } - - /** - * Gets a single Adaptive Network Hardening resource - * @param resourceGroupName The name of the resource group within the user's subscription. The name is - * case insensitive. - * @param resourceNamespace The Namespace of the resource. - * @param resourceType The type of the resource. - * @param resourceName Name of the resource. - * @param adaptiveNetworkHardeningResourceName The name of the Adaptive Network Hardening resource. - * @param options The options parameters. - */ - get( - resourceGroupName: string, - resourceNamespace: string, - resourceType: string, - resourceName: string, - adaptiveNetworkHardeningResourceName: string, - options?: AdaptiveNetworkHardeningsGetOptionalParams, - ): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - resourceNamespace, - resourceType, - resourceName, - adaptiveNetworkHardeningResourceName, - options, - }, - getOperationSpec, - ); - } - - /** - * Enforces the given rules on the NSG(s) listed in the request - * @param resourceGroupName The name of the resource group within the user's subscription. The name is - * case insensitive. - * @param resourceNamespace The Namespace of the resource. - * @param resourceType The type of the resource. - * @param resourceName Name of the resource. - * @param adaptiveNetworkHardeningResourceName The name of the Adaptive Network Hardening resource. - * @param body - * @param options The options parameters. - */ - async beginEnforce( - resourceGroupName: string, - resourceNamespace: string, - resourceType: string, - resourceName: string, - adaptiveNetworkHardeningResourceName: string, - body: AdaptiveNetworkHardeningEnforceRequest, - options?: AdaptiveNetworkHardeningsEnforceOptionalParams, - ): Promise, void>> { - const directSendOperation = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec, - ): Promise => { - return this.client.sendOperationRequest(args, spec); - }; - const sendOperationFn = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec, - ) => { - let currentRawResponse: coreClient.FullOperationResponse | undefined = - undefined; - const providedCallback = args.options?.onResponse; - const callback: coreClient.RawResponseCallback = ( - rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown, - ) => { - currentRawResponse = rawResponse; - providedCallback?.(rawResponse, flatResponse); - }; - const updatedArgs = { - ...args, - options: { - ...args.options, - onResponse: callback, - }, - }; - const flatResponse = await directSendOperation(updatedArgs, spec); - return { - flatResponse, - rawResponse: { - statusCode: currentRawResponse!.status, - body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON(), - }, - }; - }; - - const lro = createLroSpec({ - sendOperationFn, - args: { - resourceGroupName, - resourceNamespace, - resourceType, - resourceName, - adaptiveNetworkHardeningResourceName, - body, - options, - }, - spec: enforceOperationSpec, - }); - const poller = await createHttpPoller>(lro, { - restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs, - }); - await poller.poll(); - return poller; - } - - /** - * Enforces the given rules on the NSG(s) listed in the request - * @param resourceGroupName The name of the resource group within the user's subscription. The name is - * case insensitive. - * @param resourceNamespace The Namespace of the resource. - * @param resourceType The type of the resource. - * @param resourceName Name of the resource. - * @param adaptiveNetworkHardeningResourceName The name of the Adaptive Network Hardening resource. - * @param body - * @param options The options parameters. - */ - async beginEnforceAndWait( - resourceGroupName: string, - resourceNamespace: string, - resourceType: string, - resourceName: string, - adaptiveNetworkHardeningResourceName: string, - body: AdaptiveNetworkHardeningEnforceRequest, - options?: AdaptiveNetworkHardeningsEnforceOptionalParams, - ): Promise { - const poller = await this.beginEnforce( - resourceGroupName, - resourceNamespace, - resourceType, - resourceName, - adaptiveNetworkHardeningResourceName, - body, - options, - ); - return poller.pollUntilDone(); - } - - /** - * ListByExtendedResourceNext - * @param resourceGroupName The name of the resource group within the user's subscription. The name is - * case insensitive. - * @param resourceNamespace The Namespace of the resource. - * @param resourceType The type of the resource. - * @param resourceName Name of the resource. - * @param nextLink The nextLink from the previous successful call to the ListByExtendedResource method. - * @param options The options parameters. - */ - private _listByExtendedResourceNext( - resourceGroupName: string, - resourceNamespace: string, - resourceType: string, - resourceName: string, - nextLink: string, - options?: AdaptiveNetworkHardeningsListByExtendedResourceNextOptionalParams, - ): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - resourceNamespace, - resourceType, - resourceName, - nextLink, - options, - }, - listByExtendedResourceNextOperationSpec, - ); - } -} -// Operation Specifications -const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); - -const listByExtendedResourceOperationSpec: coreClient.OperationSpec = { - path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceNamespace}/{resourceType}/{resourceName}/providers/Microsoft.Security/adaptiveNetworkHardenings", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.AdaptiveNetworkHardeningsList, - }, - default: { - bodyMapper: Mappers.CloudError, - }, - }, - queryParameters: [Parameters.apiVersion20], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.resourceNamespace, - Parameters.resourceType, - Parameters.resourceName, - ], - headerParameters: [Parameters.accept], - serializer, -}; -const getOperationSpec: coreClient.OperationSpec = { - path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceNamespace}/{resourceType}/{resourceName}/providers/Microsoft.Security/adaptiveNetworkHardenings/{adaptiveNetworkHardeningResourceName}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.AdaptiveNetworkHardening, - }, - default: { - bodyMapper: Mappers.CloudError, - }, - }, - queryParameters: [Parameters.apiVersion20], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.resourceNamespace, - Parameters.resourceType, - Parameters.resourceName, - Parameters.adaptiveNetworkHardeningResourceName, - ], - headerParameters: [Parameters.accept], - serializer, -}; -const enforceOperationSpec: coreClient.OperationSpec = { - path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceNamespace}/{resourceType}/{resourceName}/providers/Microsoft.Security/adaptiveNetworkHardenings/{adaptiveNetworkHardeningResourceName}/{adaptiveNetworkHardeningEnforceAction}", - httpMethod: "POST", - responses: { - 200: {}, - 201: {}, - 202: {}, - 204: {}, - default: { - bodyMapper: Mappers.CloudError, - }, - }, - requestBody: Parameters.body2, - queryParameters: [Parameters.apiVersion20], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.resourceNamespace, - Parameters.resourceType, - Parameters.resourceName, - Parameters.adaptiveNetworkHardeningResourceName, - Parameters.adaptiveNetworkHardeningEnforceAction, - ], - headerParameters: [Parameters.accept, Parameters.contentType], - mediaType: "json", - serializer, -}; -const listByExtendedResourceNextOperationSpec: coreClient.OperationSpec = { - path: "{nextLink}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.AdaptiveNetworkHardeningsList, - }, - default: { - bodyMapper: Mappers.CloudError, - }, - }, - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.nextLink, - Parameters.resourceGroupName, - Parameters.resourceNamespace, - Parameters.resourceType, - Parameters.resourceName, - ], - headerParameters: [Parameters.accept], - serializer, -}; diff --git a/sdk/security/arm-security/src/operations/applicationOperations.ts b/sdk/security/arm-security/src/operations/applicationOperations.ts index 076492429a56..3bfc3e498eeb 100644 --- a/sdk/security/arm-security/src/operations/applicationOperations.ts +++ b/sdk/security/arm-security/src/operations/applicationOperations.ts @@ -93,7 +93,7 @@ const getOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError, }, }, - queryParameters: [Parameters.apiVersion9], + queryParameters: [Parameters.apiVersion8], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -117,7 +117,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, }, requestBody: Parameters.application, - queryParameters: [Parameters.apiVersion9], + queryParameters: [Parameters.apiVersion8], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -131,7 +131,7 @@ const deleteOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/providers/Microsoft.Security/applications/{applicationId}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: {} }, - queryParameters: [Parameters.apiVersion9], + queryParameters: [Parameters.apiVersion8], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/security/arm-security/src/operations/applications.ts b/sdk/security/arm-security/src/operations/applications.ts index 6ede6ab13877..afafbebe9f9c 100644 --- a/sdk/security/arm-security/src/operations/applications.ts +++ b/sdk/security/arm-security/src/operations/applications.ts @@ -127,7 +127,7 @@ const listOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError, }, }, - queryParameters: [Parameters.apiVersion9], + queryParameters: [Parameters.apiVersion8], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], serializer, diff --git a/sdk/security/arm-security/src/operations/automations.ts b/sdk/security/arm-security/src/operations/automations.ts index 77c851afa1d3..bdf42d436856 100644 --- a/sdk/security/arm-security/src/operations/automations.ts +++ b/sdk/security/arm-security/src/operations/automations.ts @@ -347,7 +347,7 @@ const listOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError, }, }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion14], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], serializer, @@ -363,7 +363,7 @@ const listByResourceGroupOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError, }, }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion14], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -383,7 +383,7 @@ const getOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError, }, }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion14], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -408,7 +408,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, }, requestBody: Parameters.automation, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion14], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -431,7 +431,7 @@ const updateOperationSpec: coreClient.OperationSpec = { }, }, requestBody: Parameters.automation1, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion14], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -452,7 +452,7 @@ const deleteOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError, }, }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion14], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -474,7 +474,7 @@ const validateOperationSpec: coreClient.OperationSpec = { }, }, requestBody: Parameters.automation, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion14], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/security/arm-security/src/operations/azureDevOpsOrgs.ts b/sdk/security/arm-security/src/operations/azureDevOpsOrgs.ts index 89855621c1ab..6ef09b404cd8 100644 --- a/sdk/security/arm-security/src/operations/azureDevOpsOrgs.ts +++ b/sdk/security/arm-security/src/operations/azureDevOpsOrgs.ts @@ -431,7 +431,7 @@ const listAvailableOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponseAutoGenerated, }, }, - queryParameters: [Parameters.apiVersion15], + queryParameters: [Parameters.apiVersion16], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -452,7 +452,7 @@ const listOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponseAutoGenerated, }, }, - queryParameters: [Parameters.apiVersion15], + queryParameters: [Parameters.apiVersion16], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -473,7 +473,7 @@ const getOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponseAutoGenerated, }, }, - queryParameters: [Parameters.apiVersion15], + queryParameters: [Parameters.apiVersion16], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -505,7 +505,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, }, requestBody: Parameters.azureDevOpsOrg, - queryParameters: [Parameters.apiVersion15], + queryParameters: [Parameters.apiVersion16], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -538,7 +538,7 @@ const updateOperationSpec: coreClient.OperationSpec = { }, }, requestBody: Parameters.azureDevOpsOrg, - queryParameters: [Parameters.apiVersion15], + queryParameters: [Parameters.apiVersion16], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/security/arm-security/src/operations/azureDevOpsProjects.ts b/sdk/security/arm-security/src/operations/azureDevOpsProjects.ts index fc12bda1c086..8f02098616ed 100644 --- a/sdk/security/arm-security/src/operations/azureDevOpsProjects.ts +++ b/sdk/security/arm-security/src/operations/azureDevOpsProjects.ts @@ -444,7 +444,7 @@ const listOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponseAutoGenerated, }, }, - queryParameters: [Parameters.apiVersion15], + queryParameters: [Parameters.apiVersion16], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -466,7 +466,7 @@ const getOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponseAutoGenerated, }, }, - queryParameters: [Parameters.apiVersion15], + queryParameters: [Parameters.apiVersion16], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -499,7 +499,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, }, requestBody: Parameters.azureDevOpsProject, - queryParameters: [Parameters.apiVersion15], + queryParameters: [Parameters.apiVersion16], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -533,7 +533,7 @@ const updateOperationSpec: coreClient.OperationSpec = { }, }, requestBody: Parameters.azureDevOpsProject, - queryParameters: [Parameters.apiVersion15], + queryParameters: [Parameters.apiVersion16], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/security/arm-security/src/operations/azureDevOpsRepos.ts b/sdk/security/arm-security/src/operations/azureDevOpsRepos.ts index 142fec485642..2bf0eed22bf1 100644 --- a/sdk/security/arm-security/src/operations/azureDevOpsRepos.ts +++ b/sdk/security/arm-security/src/operations/azureDevOpsRepos.ts @@ -485,7 +485,7 @@ const listOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponseAutoGenerated, }, }, - queryParameters: [Parameters.apiVersion15], + queryParameters: [Parameters.apiVersion16], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -508,7 +508,7 @@ const getOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponseAutoGenerated, }, }, - queryParameters: [Parameters.apiVersion15], + queryParameters: [Parameters.apiVersion16], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -542,7 +542,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, }, requestBody: Parameters.azureDevOpsRepository, - queryParameters: [Parameters.apiVersion15], + queryParameters: [Parameters.apiVersion16], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -577,7 +577,7 @@ const updateOperationSpec: coreClient.OperationSpec = { }, }, requestBody: Parameters.azureDevOpsRepository, - queryParameters: [Parameters.apiVersion15], + queryParameters: [Parameters.apiVersion16], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/security/arm-security/src/operations/connectors.ts b/sdk/security/arm-security/src/operations/connectors.ts index 958c03197560..b9e65149c0e6 100644 --- a/sdk/security/arm-security/src/operations/connectors.ts +++ b/sdk/security/arm-security/src/operations/connectors.ts @@ -181,7 +181,7 @@ const listOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError, }, }, - queryParameters: [Parameters.apiVersion4], + queryParameters: [Parameters.apiVersion3], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], serializer, @@ -197,7 +197,7 @@ const getOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError, }, }, - queryParameters: [Parameters.apiVersion4], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -218,7 +218,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, }, requestBody: Parameters.connectorSetting, - queryParameters: [Parameters.apiVersion4], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -238,7 +238,7 @@ const deleteOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError, }, }, - queryParameters: [Parameters.apiVersion4], + queryParameters: [Parameters.apiVersion3], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/security/arm-security/src/operations/customAssessmentAutomations.ts b/sdk/security/arm-security/src/operations/customAssessmentAutomations.ts index 51d5a7d601d7..993c422a522b 100644 --- a/sdk/security/arm-security/src/operations/customAssessmentAutomations.ts +++ b/sdk/security/arm-security/src/operations/customAssessmentAutomations.ts @@ -308,7 +308,7 @@ const getOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError, }, }, - queryParameters: [Parameters.apiVersion6], + queryParameters: [Parameters.apiVersion5], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -333,7 +333,7 @@ const createOperationSpec: coreClient.OperationSpec = { }, }, requestBody: Parameters.customAssessmentAutomationBody, - queryParameters: [Parameters.apiVersion6], + queryParameters: [Parameters.apiVersion5], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -354,7 +354,7 @@ const deleteOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError, }, }, - queryParameters: [Parameters.apiVersion6], + queryParameters: [Parameters.apiVersion5], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -375,7 +375,7 @@ const listByResourceGroupOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError, }, }, - queryParameters: [Parameters.apiVersion6], + queryParameters: [Parameters.apiVersion5], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -395,7 +395,7 @@ const listBySubscriptionOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError, }, }, - queryParameters: [Parameters.apiVersion6], + queryParameters: [Parameters.apiVersion5], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], serializer, diff --git a/sdk/security/arm-security/src/operations/customEntityStoreAssignments.ts b/sdk/security/arm-security/src/operations/customEntityStoreAssignments.ts index adc37d73028e..1bc75a4ac6d3 100644 --- a/sdk/security/arm-security/src/operations/customEntityStoreAssignments.ts +++ b/sdk/security/arm-security/src/operations/customEntityStoreAssignments.ts @@ -311,7 +311,7 @@ const getOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError, }, }, - queryParameters: [Parameters.apiVersion6], + queryParameters: [Parameters.apiVersion5], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -336,7 +336,7 @@ const createOperationSpec: coreClient.OperationSpec = { }, }, requestBody: Parameters.customEntityStoreAssignmentRequestBody, - queryParameters: [Parameters.apiVersion6], + queryParameters: [Parameters.apiVersion5], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -357,7 +357,7 @@ const deleteOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError, }, }, - queryParameters: [Parameters.apiVersion6], + queryParameters: [Parameters.apiVersion5], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -378,7 +378,7 @@ const listByResourceGroupOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError, }, }, - queryParameters: [Parameters.apiVersion6], + queryParameters: [Parameters.apiVersion5], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -398,7 +398,7 @@ const listBySubscriptionOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError, }, }, - queryParameters: [Parameters.apiVersion6], + queryParameters: [Parameters.apiVersion5], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], serializer, diff --git a/sdk/security/arm-security/src/operations/defenderForStorage.ts b/sdk/security/arm-security/src/operations/defenderForStorage.ts index 0e0a4b9c2610..8794d89b4410 100644 --- a/sdk/security/arm-security/src/operations/defenderForStorage.ts +++ b/sdk/security/arm-security/src/operations/defenderForStorage.ts @@ -82,7 +82,7 @@ const getOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError, }, }, - queryParameters: [Parameters.apiVersion10], + queryParameters: [Parameters.apiVersion9], urlParameters: [ Parameters.$host, Parameters.resourceId, @@ -106,7 +106,7 @@ const createOperationSpec: coreClient.OperationSpec = { }, }, requestBody: Parameters.defenderForStorageSetting, - queryParameters: [Parameters.apiVersion10], + queryParameters: [Parameters.apiVersion9], urlParameters: [ Parameters.$host, Parameters.resourceId, diff --git a/sdk/security/arm-security/src/operations/devOpsConfigurations.ts b/sdk/security/arm-security/src/operations/devOpsConfigurations.ts index c413dbdebd6b..fb6ae657a362 100644 --- a/sdk/security/arm-security/src/operations/devOpsConfigurations.ts +++ b/sdk/security/arm-security/src/operations/devOpsConfigurations.ts @@ -479,7 +479,7 @@ const listOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponseAutoGenerated, }, }, - queryParameters: [Parameters.apiVersion15], + queryParameters: [Parameters.apiVersion16], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -500,7 +500,7 @@ const getOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponseAutoGenerated, }, }, - queryParameters: [Parameters.apiVersion15], + queryParameters: [Parameters.apiVersion16], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -531,7 +531,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, }, requestBody: Parameters.devOpsConfiguration, - queryParameters: [Parameters.apiVersion15], + queryParameters: [Parameters.apiVersion16], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -563,7 +563,7 @@ const updateOperationSpec: coreClient.OperationSpec = { }, }, requestBody: Parameters.devOpsConfiguration, - queryParameters: [Parameters.apiVersion15], + queryParameters: [Parameters.apiVersion16], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -586,7 +586,7 @@ const deleteOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponseAutoGenerated, }, }, - queryParameters: [Parameters.apiVersion15], + queryParameters: [Parameters.apiVersion16], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/security/arm-security/src/operations/devOpsOperationResults.ts b/sdk/security/arm-security/src/operations/devOpsOperationResults.ts index 06e86dd66bb2..9054fc562099 100644 --- a/sdk/security/arm-security/src/operations/devOpsOperationResults.ts +++ b/sdk/security/arm-security/src/operations/devOpsOperationResults.ts @@ -61,7 +61,7 @@ const getOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponseAutoGenerated, }, }, - queryParameters: [Parameters.apiVersion15], + queryParameters: [Parameters.apiVersion16], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/security/arm-security/src/operations/devOpsPolicies.ts b/sdk/security/arm-security/src/operations/devOpsPolicies.ts new file mode 100644 index 000000000000..b56b8f693797 --- /dev/null +++ b/sdk/security/arm-security/src/operations/devOpsPolicies.ts @@ -0,0 +1,244 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { DevOpsPolicies } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { SecurityCenter } from "../securityCenter"; +import { + DevOpsPolicy, + DevOpsPoliciesListNextOptionalParams, + DevOpsPoliciesListOptionalParams, + DevOpsPoliciesListResponse, + DevOpsPoliciesGetOptionalParams, + DevOpsPoliciesGetResponse, + DevOpsPoliciesListNextResponse, +} from "../models"; + +/// +/** Class containing DevOpsPolicies operations. */ +export class DevOpsPoliciesImpl implements DevOpsPolicies { + private readonly client: SecurityCenter; + + /** + * Initialize a new instance of the class DevOpsPolicies class. + * @param client Reference to the service client + */ + constructor(client: SecurityCenter) { + this.client = client; + } + + /** + * Returns a list of DevOps Policies. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param securityConnectorName The security connector name. + * @param options The options parameters. + */ + public list( + resourceGroupName: string, + securityConnectorName: string, + options?: DevOpsPoliciesListOptionalParams, + ): PagedAsyncIterableIterator { + const iter = this.listPagingAll( + resourceGroupName, + securityConnectorName, + options, + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listPagingPage( + resourceGroupName, + securityConnectorName, + options, + settings, + ); + }, + }; + } + + private async *listPagingPage( + resourceGroupName: string, + securityConnectorName: string, + options?: DevOpsPoliciesListOptionalParams, + settings?: PageSettings, + ): AsyncIterableIterator { + let result: DevOpsPoliciesListResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._list( + resourceGroupName, + securityConnectorName, + options, + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listNext( + resourceGroupName, + securityConnectorName, + continuationToken, + options, + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listPagingAll( + resourceGroupName: string, + securityConnectorName: string, + options?: DevOpsPoliciesListOptionalParams, + ): AsyncIterableIterator { + for await (const page of this.listPagingPage( + resourceGroupName, + securityConnectorName, + options, + )) { + yield* page; + } + } + + /** + * Returns a list of DevOps Policies. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param securityConnectorName The security connector name. + * @param options The options parameters. + */ + private _list( + resourceGroupName: string, + securityConnectorName: string, + options?: DevOpsPoliciesListOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, securityConnectorName, options }, + listOperationSpec, + ); + } + + /** + * Returns a DevOps Policy. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param securityConnectorName The security connector name. + * @param policyName The policy name. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + securityConnectorName: string, + policyName: string, + options?: DevOpsPoliciesGetOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, securityConnectorName, policyName, options }, + getOperationSpec, + ); + } + + /** + * ListNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param securityConnectorName The security connector name. + * @param nextLink The nextLink from the previous successful call to the List method. + * @param options The options parameters. + */ + private _listNext( + resourceGroupName: string, + securityConnectorName: string, + nextLink: string, + options?: DevOpsPoliciesListNextOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, securityConnectorName, nextLink, options }, + listNextOperationSpec, + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName}/devops/default/policies", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.DevOpsPolicyListResponse, + }, + default: { + bodyMapper: Mappers.ErrorResponseAutoGenerated, + }, + }, + queryParameters: [Parameters.apiVersion16, Parameters.devOpsPolicyType], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.securityConnectorName, + Parameters.resourceGroupName1, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const getOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName}/devops/default/policies/{policyName}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.DevOpsPolicy, + }, + default: { + bodyMapper: Mappers.ErrorResponseAutoGenerated, + }, + }, + queryParameters: [Parameters.apiVersion16], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.securityConnectorName, + Parameters.resourceGroupName1, + Parameters.policyName, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const listNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.DevOpsPolicyListResponse, + }, + default: { + bodyMapper: Mappers.ErrorResponseAutoGenerated, + }, + }, + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.nextLink, + Parameters.securityConnectorName, + Parameters.resourceGroupName1, + ], + headerParameters: [Parameters.accept], + serializer, +}; diff --git a/sdk/security/arm-security/src/operations/devOpsPolicyAssignments.ts b/sdk/security/arm-security/src/operations/devOpsPolicyAssignments.ts new file mode 100644 index 000000000000..b2308546816e --- /dev/null +++ b/sdk/security/arm-security/src/operations/devOpsPolicyAssignments.ts @@ -0,0 +1,651 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { DevOpsPolicyAssignments } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { SecurityCenter } from "../securityCenter"; +import { + SimplePollerLike, + OperationState, + createHttpPoller, +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; +import { + DevOpsPolicyAssignment, + DevOpsPolicyAssignmentsListNextOptionalParams, + DevOpsPolicyAssignmentsListOptionalParams, + DevOpsPolicyAssignmentsListResponse, + DevOpsPolicyAssignmentsGetOptionalParams, + DevOpsPolicyAssignmentsGetResponse, + DevOpsPolicyAssignmentsCreateOrUpdateOptionalParams, + DevOpsPolicyAssignmentsCreateOrUpdateResponse, + DevOpsPolicyAssignmentsUpdateOptionalParams, + DevOpsPolicyAssignmentsUpdateResponse, + DevOpsPolicyAssignmentsDeleteOptionalParams, + DevOpsPolicyAssignmentsListNextResponse, +} from "../models"; + +/// +/** Class containing DevOpsPolicyAssignments operations. */ +export class DevOpsPolicyAssignmentsImpl implements DevOpsPolicyAssignments { + private readonly client: SecurityCenter; + + /** + * Initialize a new instance of the class DevOpsPolicyAssignments class. + * @param client Reference to the service client + */ + constructor(client: SecurityCenter) { + this.client = client; + } + + /** + * Returns a list of DevOps Policy Assignments. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param securityConnectorName The security connector name. + * @param options The options parameters. + */ + public list( + resourceGroupName: string, + securityConnectorName: string, + options?: DevOpsPolicyAssignmentsListOptionalParams, + ): PagedAsyncIterableIterator { + const iter = this.listPagingAll( + resourceGroupName, + securityConnectorName, + options, + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listPagingPage( + resourceGroupName, + securityConnectorName, + options, + settings, + ); + }, + }; + } + + private async *listPagingPage( + resourceGroupName: string, + securityConnectorName: string, + options?: DevOpsPolicyAssignmentsListOptionalParams, + settings?: PageSettings, + ): AsyncIterableIterator { + let result: DevOpsPolicyAssignmentsListResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._list( + resourceGroupName, + securityConnectorName, + options, + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listNext( + resourceGroupName, + securityConnectorName, + continuationToken, + options, + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listPagingAll( + resourceGroupName: string, + securityConnectorName: string, + options?: DevOpsPolicyAssignmentsListOptionalParams, + ): AsyncIterableIterator { + for await (const page of this.listPagingPage( + resourceGroupName, + securityConnectorName, + options, + )) { + yield* page; + } + } + + /** + * Returns a list of DevOps Policy Assignments. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param securityConnectorName The security connector name. + * @param options The options parameters. + */ + private _list( + resourceGroupName: string, + securityConnectorName: string, + options?: DevOpsPolicyAssignmentsListOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, securityConnectorName, options }, + listOperationSpec, + ); + } + + /** + * Returns a DevOps Policy Assignment Resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param securityConnectorName The security connector name. + * @param policyAssignmentId The policy assignment Id. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + securityConnectorName: string, + policyAssignmentId: string, + options?: DevOpsPolicyAssignmentsGetOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, securityConnectorName, policyAssignmentId, options }, + getOperationSpec, + ); + } + + /** + * Creates or updates a DevOps Policy Assignment Resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param securityConnectorName The security connector name. + * @param policyAssignmentId The policy assignment Id. + * @param devOpsPolicyAssignment The DevOps Policy Assignment. + * @param options The options parameters. + */ + async beginCreateOrUpdate( + resourceGroupName: string, + securityConnectorName: string, + policyAssignmentId: string, + devOpsPolicyAssignment: DevOpsPolicyAssignment, + options?: DevOpsPolicyAssignmentsCreateOrUpdateOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + DevOpsPolicyAssignmentsCreateOrUpdateResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec, + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec, + ) => { + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown, + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback, + }, + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON(), + }, + }; + }; + + const lro = createLroSpec({ + sendOperationFn, + args: { + resourceGroupName, + securityConnectorName, + policyAssignmentId, + devOpsPolicyAssignment, + options, + }, + spec: createOrUpdateOperationSpec, + }); + const poller = await createHttpPoller< + DevOpsPolicyAssignmentsCreateOrUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "azure-async-operation", + }); + await poller.poll(); + return poller; + } + + /** + * Creates or updates a DevOps Policy Assignment Resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param securityConnectorName The security connector name. + * @param policyAssignmentId The policy assignment Id. + * @param devOpsPolicyAssignment The DevOps Policy Assignment. + * @param options The options parameters. + */ + async beginCreateOrUpdateAndWait( + resourceGroupName: string, + securityConnectorName: string, + policyAssignmentId: string, + devOpsPolicyAssignment: DevOpsPolicyAssignment, + options?: DevOpsPolicyAssignmentsCreateOrUpdateOptionalParams, + ): Promise { + const poller = await this.beginCreateOrUpdate( + resourceGroupName, + securityConnectorName, + policyAssignmentId, + devOpsPolicyAssignment, + options, + ); + return poller.pollUntilDone(); + } + + /** + * Updates a DevOps Policy Assignment Resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param securityConnectorName The security connector name. + * @param policyAssignmentId The policy assignment Id. + * @param devOpsPolicyAssignment The DevOps Policy Assignment. + * @param options The options parameters. + */ + async beginUpdate( + resourceGroupName: string, + securityConnectorName: string, + policyAssignmentId: string, + devOpsPolicyAssignment: DevOpsPolicyAssignment, + options?: DevOpsPolicyAssignmentsUpdateOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + DevOpsPolicyAssignmentsUpdateResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec, + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec, + ) => { + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown, + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback, + }, + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON(), + }, + }; + }; + + const lro = createLroSpec({ + sendOperationFn, + args: { + resourceGroupName, + securityConnectorName, + policyAssignmentId, + devOpsPolicyAssignment, + options, + }, + spec: updateOperationSpec, + }); + const poller = await createHttpPoller< + DevOpsPolicyAssignmentsUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "azure-async-operation", + }); + await poller.poll(); + return poller; + } + + /** + * Updates a DevOps Policy Assignment Resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param securityConnectorName The security connector name. + * @param policyAssignmentId The policy assignment Id. + * @param devOpsPolicyAssignment The DevOps Policy Assignment. + * @param options The options parameters. + */ + async beginUpdateAndWait( + resourceGroupName: string, + securityConnectorName: string, + policyAssignmentId: string, + devOpsPolicyAssignment: DevOpsPolicyAssignment, + options?: DevOpsPolicyAssignmentsUpdateOptionalParams, + ): Promise { + const poller = await this.beginUpdate( + resourceGroupName, + securityConnectorName, + policyAssignmentId, + devOpsPolicyAssignment, + options, + ); + return poller.pollUntilDone(); + } + + /** + * Deletes a DevOps Policy Assignment Resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param securityConnectorName The security connector name. + * @param policyAssignmentId The policy assignment Id. + * @param options The options parameters. + */ + async beginDelete( + resourceGroupName: string, + securityConnectorName: string, + policyAssignmentId: string, + options?: DevOpsPolicyAssignmentsDeleteOptionalParams, + ): Promise, void>> { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec, + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec, + ) => { + let currentRawResponse: coreClient.FullOperationResponse | undefined = + undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown, + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback, + }, + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON(), + }, + }; + }; + + const lro = createLroSpec({ + sendOperationFn, + args: { + resourceGroupName, + securityConnectorName, + policyAssignmentId, + options, + }, + spec: deleteOperationSpec, + }); + const poller = await createHttpPoller>(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + }); + await poller.poll(); + return poller; + } + + /** + * Deletes a DevOps Policy Assignment Resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param securityConnectorName The security connector name. + * @param policyAssignmentId The policy assignment Id. + * @param options The options parameters. + */ + async beginDeleteAndWait( + resourceGroupName: string, + securityConnectorName: string, + policyAssignmentId: string, + options?: DevOpsPolicyAssignmentsDeleteOptionalParams, + ): Promise { + const poller = await this.beginDelete( + resourceGroupName, + securityConnectorName, + policyAssignmentId, + options, + ); + return poller.pollUntilDone(); + } + + /** + * ListNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param securityConnectorName The security connector name. + * @param nextLink The nextLink from the previous successful call to the List method. + * @param options The options parameters. + */ + private _listNext( + resourceGroupName: string, + securityConnectorName: string, + nextLink: string, + options?: DevOpsPolicyAssignmentsListNextOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, securityConnectorName, nextLink, options }, + listNextOperationSpec, + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName}/devops/default/policyAssignments", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.DevOpsPolicyAssignmentListResponse, + }, + default: { + bodyMapper: Mappers.ErrorResponseAutoGenerated, + }, + }, + queryParameters: [ + Parameters.apiVersion16, + Parameters.devOpsPolicyType, + Parameters.resourceId1, + ], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.securityConnectorName, + Parameters.resourceGroupName1, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const getOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName}/devops/default/policyAssignments/{policyAssignmentId}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.DevOpsPolicyAssignment, + }, + default: { + bodyMapper: Mappers.ErrorResponseAutoGenerated, + }, + }, + queryParameters: [Parameters.apiVersion16], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.securityConnectorName, + Parameters.resourceGroupName1, + Parameters.policyAssignmentId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName}/devops/default/policyAssignments/{policyAssignmentId}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.DevOpsPolicyAssignment, + }, + 201: { + bodyMapper: Mappers.DevOpsPolicyAssignment, + }, + 202: { + bodyMapper: Mappers.DevOpsPolicyAssignment, + }, + 204: { + bodyMapper: Mappers.DevOpsPolicyAssignment, + }, + default: { + bodyMapper: Mappers.ErrorResponseAutoGenerated, + }, + }, + requestBody: Parameters.devOpsPolicyAssignment, + queryParameters: [Parameters.apiVersion16], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.securityConnectorName, + Parameters.resourceGroupName1, + Parameters.policyAssignmentId, + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer, +}; +const updateOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName}/devops/default/policyAssignments/{policyAssignmentId}", + httpMethod: "PATCH", + responses: { + 200: { + bodyMapper: Mappers.DevOpsPolicyAssignment, + }, + 201: { + bodyMapper: Mappers.DevOpsPolicyAssignment, + }, + 202: { + bodyMapper: Mappers.DevOpsPolicyAssignment, + }, + 204: { + bodyMapper: Mappers.DevOpsPolicyAssignment, + }, + default: { + bodyMapper: Mappers.ErrorResponseAutoGenerated, + }, + }, + requestBody: Parameters.devOpsPolicyAssignment, + queryParameters: [Parameters.apiVersion16], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.securityConnectorName, + Parameters.resourceGroupName1, + Parameters.policyAssignmentId, + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer, +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName}/devops/default/policyAssignments/{policyAssignmentId}", + httpMethod: "DELETE", + responses: { + 200: {}, + 201: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponseAutoGenerated, + }, + }, + queryParameters: [Parameters.apiVersion16], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.securityConnectorName, + Parameters.resourceGroupName1, + Parameters.policyAssignmentId, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const listNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.DevOpsPolicyAssignmentListResponse, + }, + default: { + bodyMapper: Mappers.ErrorResponseAutoGenerated, + }, + }, + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.nextLink, + Parameters.securityConnectorName, + Parameters.resourceGroupName1, + ], + headerParameters: [Parameters.accept], + serializer, +}; diff --git a/sdk/security/arm-security/src/operations/gitHubOwners.ts b/sdk/security/arm-security/src/operations/gitHubOwners.ts index b77fcaf6d1c9..1a3b9650000e 100644 --- a/sdk/security/arm-security/src/operations/gitHubOwners.ts +++ b/sdk/security/arm-security/src/operations/gitHubOwners.ts @@ -208,7 +208,7 @@ const listAvailableOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponseAutoGenerated, }, }, - queryParameters: [Parameters.apiVersion15], + queryParameters: [Parameters.apiVersion16], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -229,7 +229,7 @@ const listOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponseAutoGenerated, }, }, - queryParameters: [Parameters.apiVersion15], + queryParameters: [Parameters.apiVersion16], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -250,7 +250,7 @@ const getOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponseAutoGenerated, }, }, - queryParameters: [Parameters.apiVersion15], + queryParameters: [Parameters.apiVersion16], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/security/arm-security/src/operations/gitHubRepos.ts b/sdk/security/arm-security/src/operations/gitHubRepos.ts index b4799bcb3332..d68abaf0436e 100644 --- a/sdk/security/arm-security/src/operations/gitHubRepos.ts +++ b/sdk/security/arm-security/src/operations/gitHubRepos.ts @@ -216,7 +216,7 @@ const listOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponseAutoGenerated, }, }, - queryParameters: [Parameters.apiVersion15], + queryParameters: [Parameters.apiVersion16], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -238,7 +238,7 @@ const getOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponseAutoGenerated, }, }, - queryParameters: [Parameters.apiVersion15], + queryParameters: [Parameters.apiVersion16], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/security/arm-security/src/operations/gitLabGroups.ts b/sdk/security/arm-security/src/operations/gitLabGroups.ts index 19333a993f5d..16112594b7be 100644 --- a/sdk/security/arm-security/src/operations/gitLabGroups.ts +++ b/sdk/security/arm-security/src/operations/gitLabGroups.ts @@ -208,7 +208,7 @@ const listAvailableOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponseAutoGenerated, }, }, - queryParameters: [Parameters.apiVersion15], + queryParameters: [Parameters.apiVersion16], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -229,7 +229,7 @@ const listOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponseAutoGenerated, }, }, - queryParameters: [Parameters.apiVersion15], + queryParameters: [Parameters.apiVersion16], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -250,7 +250,7 @@ const getOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponseAutoGenerated, }, }, - queryParameters: [Parameters.apiVersion15], + queryParameters: [Parameters.apiVersion16], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/security/arm-security/src/operations/gitLabProjects.ts b/sdk/security/arm-security/src/operations/gitLabProjects.ts index fa066fc09d65..b46435c1f44a 100644 --- a/sdk/security/arm-security/src/operations/gitLabProjects.ts +++ b/sdk/security/arm-security/src/operations/gitLabProjects.ts @@ -218,7 +218,7 @@ const listOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponseAutoGenerated, }, }, - queryParameters: [Parameters.apiVersion15], + queryParameters: [Parameters.apiVersion16], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -240,7 +240,7 @@ const getOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponseAutoGenerated, }, }, - queryParameters: [Parameters.apiVersion15], + queryParameters: [Parameters.apiVersion16], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/security/arm-security/src/operations/gitLabSubgroups.ts b/sdk/security/arm-security/src/operations/gitLabSubgroups.ts index c63846bb4e11..5b9a00247a85 100644 --- a/sdk/security/arm-security/src/operations/gitLabSubgroups.ts +++ b/sdk/security/arm-security/src/operations/gitLabSubgroups.ts @@ -61,7 +61,7 @@ const listOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponseAutoGenerated, }, }, - queryParameters: [Parameters.apiVersion15], + queryParameters: [Parameters.apiVersion16], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/security/arm-security/src/operations/governanceAssignments.ts b/sdk/security/arm-security/src/operations/governanceAssignments.ts index cc570e4c1f1c..fd29759d7b6e 100644 --- a/sdk/security/arm-security/src/operations/governanceAssignments.ts +++ b/sdk/security/arm-security/src/operations/governanceAssignments.ts @@ -234,7 +234,7 @@ const listOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError, }, }, - queryParameters: [Parameters.apiVersion8], + queryParameters: [Parameters.apiVersion7], urlParameters: [ Parameters.$host, Parameters.scope1, @@ -254,7 +254,7 @@ const getOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError, }, }, - queryParameters: [Parameters.apiVersion8], + queryParameters: [Parameters.apiVersion7], urlParameters: [ Parameters.$host, Parameters.scope1, @@ -279,7 +279,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, }, requestBody: Parameters.governanceAssignment, - queryParameters: [Parameters.apiVersion8], + queryParameters: [Parameters.apiVersion7], urlParameters: [ Parameters.$host, Parameters.scope1, @@ -294,7 +294,7 @@ const deleteOperationSpec: coreClient.OperationSpec = { path: "/{scope}/providers/Microsoft.Security/assessments/{assessmentName}/governanceAssignments/{assignmentKey}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: {} }, - queryParameters: [Parameters.apiVersion8], + queryParameters: [Parameters.apiVersion7], urlParameters: [ Parameters.$host, Parameters.scope1, diff --git a/sdk/security/arm-security/src/operations/governanceRules.ts b/sdk/security/arm-security/src/operations/governanceRules.ts index a295b7848177..693515e641c9 100644 --- a/sdk/security/arm-security/src/operations/governanceRules.ts +++ b/sdk/security/arm-security/src/operations/governanceRules.ts @@ -402,7 +402,7 @@ const listOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError, }, }, - queryParameters: [Parameters.apiVersion8], + queryParameters: [Parameters.apiVersion7], urlParameters: [Parameters.$host, Parameters.scope1], headerParameters: [Parameters.accept], serializer, @@ -418,7 +418,7 @@ const getOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError, }, }, - queryParameters: [Parameters.apiVersion8], + queryParameters: [Parameters.apiVersion7], urlParameters: [Parameters.$host, Parameters.scope1, Parameters.ruleId], headerParameters: [Parameters.accept], serializer, @@ -438,7 +438,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, }, requestBody: Parameters.governanceRule, - queryParameters: [Parameters.apiVersion8], + queryParameters: [Parameters.apiVersion7], urlParameters: [Parameters.$host, Parameters.scope1, Parameters.ruleId], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", @@ -448,7 +448,7 @@ const deleteOperationSpec: coreClient.OperationSpec = { path: "/{scope}/providers/Microsoft.Security/governanceRules/{ruleId}", httpMethod: "DELETE", responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - queryParameters: [Parameters.apiVersion8], + queryParameters: [Parameters.apiVersion7], urlParameters: [Parameters.$host, Parameters.scope1, Parameters.ruleId], serializer, }; @@ -473,7 +473,7 @@ const executeOperationSpec: coreClient.OperationSpec = { }, }, requestBody: Parameters.executeGovernanceRuleParams, - queryParameters: [Parameters.apiVersion8], + queryParameters: [Parameters.apiVersion7], urlParameters: [Parameters.$host, Parameters.scope1, Parameters.ruleId], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", @@ -493,7 +493,7 @@ const operationResultsOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError, }, }, - queryParameters: [Parameters.apiVersion8], + queryParameters: [Parameters.apiVersion7], urlParameters: [ Parameters.$host, Parameters.scope1, diff --git a/sdk/security/arm-security/src/operations/healthReports.ts b/sdk/security/arm-security/src/operations/healthReports.ts index 668204601d26..88cbe29da8a2 100644 --- a/sdk/security/arm-security/src/operations/healthReports.ts +++ b/sdk/security/arm-security/src/operations/healthReports.ts @@ -161,7 +161,7 @@ const listOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse, }, }, - queryParameters: [Parameters.apiVersion14], + queryParameters: [Parameters.apiVersion13], urlParameters: [Parameters.$host, Parameters.scope2], headerParameters: [Parameters.accept], serializer, @@ -177,7 +177,7 @@ const getOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse, }, }, - queryParameters: [Parameters.apiVersion14], + queryParameters: [Parameters.apiVersion13], urlParameters: [ Parameters.$host, Parameters.resourceId, diff --git a/sdk/security/arm-security/src/operations/index.ts b/sdk/security/arm-security/src/operations/index.ts index 1f53d3617824..232fb21dd3c5 100644 --- a/sdk/security/arm-security/src/operations/index.ts +++ b/sdk/security/arm-security/src/operations/index.ts @@ -14,13 +14,11 @@ export * from "./compliances"; export * from "./informationProtectionPolicies"; export * from "./workspaceSettings"; export * from "./alertsSuppressionRules"; -export * from "./automations"; export * from "./regulatoryComplianceStandards"; export * from "./regulatoryComplianceControls"; export * from "./regulatoryComplianceAssessments"; export * from "./subAssessments"; export * from "./connectors"; -export * from "./securityContacts"; export * from "./softwareInventories"; export * from "./customAssessmentAutomations"; export * from "./customEntityStoreAssignments"; @@ -38,17 +36,21 @@ export * from "./sqlVulnerabilityAssessmentScans"; export * from "./sqlVulnerabilityAssessmentScanResults"; export * from "./sensitivitySettings"; export * from "./healthReports"; +export * from "./automations"; +export * from "./securityContacts"; +export * from "./securityConnectors"; export * from "./azureDevOpsOrgs"; export * from "./azureDevOpsProjects"; export * from "./azureDevOpsRepos"; export * from "./devOpsConfigurations"; +export * from "./devOpsPolicies"; +export * from "./devOpsPolicyAssignments"; export * from "./gitHubOwners"; export * from "./gitHubRepos"; export * from "./gitLabGroups"; export * from "./gitLabSubgroups"; export * from "./gitLabProjects"; export * from "./devOpsOperationResults"; -export * from "./securityConnectors"; export * from "./complianceResults"; export * from "./advancedThreatProtection"; export * from "./deviceSecurityGroups"; @@ -56,9 +58,7 @@ export * from "./iotSecuritySolutionAnalytics"; export * from "./iotSecuritySolutionsAnalyticsAggregatedAlert"; export * from "./iotSecuritySolutionsAnalyticsRecommendation"; export * from "./iotSecuritySolution"; -export * from "./adaptiveNetworkHardenings"; export * from "./allowedConnections"; -export * from "./adaptiveApplicationControls"; export * from "./discoveredSecuritySolutions"; export * from "./externalSecuritySolutions"; export * from "./jitNetworkAccessPolicies"; diff --git a/sdk/security/arm-security/src/operations/jitNetworkAccessPolicies.ts b/sdk/security/arm-security/src/operations/jitNetworkAccessPolicies.ts index aa52e07ebbac..6cf10908e398 100644 --- a/sdk/security/arm-security/src/operations/jitNetworkAccessPolicies.ts +++ b/sdk/security/arm-security/src/operations/jitNetworkAccessPolicies.ts @@ -677,7 +677,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError, }, }, - requestBody: Parameters.body4, + requestBody: Parameters.body2, queryParameters: [Parameters.apiVersion20], urlParameters: [ Parameters.$host, @@ -722,7 +722,7 @@ const initiateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError, }, }, - requestBody: Parameters.body5, + requestBody: Parameters.body3, queryParameters: [Parameters.apiVersion20], urlParameters: [ Parameters.$host, diff --git a/sdk/security/arm-security/src/operations/mdeOnboardings.ts b/sdk/security/arm-security/src/operations/mdeOnboardings.ts index baffb2916b9a..082e8b91a996 100644 --- a/sdk/security/arm-security/src/operations/mdeOnboardings.ts +++ b/sdk/security/arm-security/src/operations/mdeOnboardings.ts @@ -64,7 +64,7 @@ const listOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError, }, }, - queryParameters: [Parameters.apiVersion7], + queryParameters: [Parameters.apiVersion6], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], serializer, @@ -80,7 +80,7 @@ const getOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError, }, }, - queryParameters: [Parameters.apiVersion7], + queryParameters: [Parameters.apiVersion6], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], serializer, diff --git a/sdk/security/arm-security/src/operations/securityConnectorApplication.ts b/sdk/security/arm-security/src/operations/securityConnectorApplication.ts index efd29ba939f2..6e72cf7e5e91 100644 --- a/sdk/security/arm-security/src/operations/securityConnectorApplication.ts +++ b/sdk/security/arm-security/src/operations/securityConnectorApplication.ts @@ -116,7 +116,7 @@ const getOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError, }, }, - queryParameters: [Parameters.apiVersion9], + queryParameters: [Parameters.apiVersion8], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -142,7 +142,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, }, requestBody: Parameters.application, - queryParameters: [Parameters.apiVersion9], + queryParameters: [Parameters.apiVersion8], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -158,7 +158,7 @@ const deleteOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName}/providers/Microsoft.Security/applications/{applicationId}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: {} }, - queryParameters: [Parameters.apiVersion9], + queryParameters: [Parameters.apiVersion8], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/security/arm-security/src/operations/securityConnectorApplications.ts b/sdk/security/arm-security/src/operations/securityConnectorApplications.ts index a0457045e4eb..c5fa45a41c26 100644 --- a/sdk/security/arm-security/src/operations/securityConnectorApplications.ts +++ b/sdk/security/arm-security/src/operations/securityConnectorApplications.ts @@ -173,7 +173,7 @@ const listOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError, }, }, - queryParameters: [Parameters.apiVersion9], + queryParameters: [Parameters.apiVersion8], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/security/arm-security/src/operations/securityConnectors.ts b/sdk/security/arm-security/src/operations/securityConnectors.ts index 905add1c79df..5612d0f3eac4 100644 --- a/sdk/security/arm-security/src/operations/securityConnectors.ts +++ b/sdk/security/arm-security/src/operations/securityConnectors.ts @@ -323,7 +323,7 @@ const listOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError, }, }, - queryParameters: [Parameters.apiVersion16], + queryParameters: [Parameters.apiVersion15], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], serializer, @@ -339,7 +339,7 @@ const listByResourceGroupOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError, }, }, - queryParameters: [Parameters.apiVersion16], + queryParameters: [Parameters.apiVersion15], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -359,7 +359,7 @@ const getOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError, }, }, - queryParameters: [Parameters.apiVersion16], + queryParameters: [Parameters.apiVersion15], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -384,7 +384,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, }, requestBody: Parameters.securityConnector, - queryParameters: [Parameters.apiVersion16], + queryParameters: [Parameters.apiVersion15], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -407,7 +407,7 @@ const updateOperationSpec: coreClient.OperationSpec = { }, }, requestBody: Parameters.securityConnector, - queryParameters: [Parameters.apiVersion16], + queryParameters: [Parameters.apiVersion15], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -428,7 +428,7 @@ const deleteOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError, }, }, - queryParameters: [Parameters.apiVersion16], + queryParameters: [Parameters.apiVersion15], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/security/arm-security/src/operations/securityContacts.ts b/sdk/security/arm-security/src/operations/securityContacts.ts index baebd66e728a..6707e19fd47a 100644 --- a/sdk/security/arm-security/src/operations/securityContacts.ts +++ b/sdk/security/arm-security/src/operations/securityContacts.ts @@ -180,7 +180,7 @@ const listOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError, }, }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion14], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], serializer, @@ -196,7 +196,7 @@ const getOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError, }, }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion14], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -220,7 +220,7 @@ const createOperationSpec: coreClient.OperationSpec = { }, }, requestBody: Parameters.securityContact, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion14], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -240,7 +240,7 @@ const deleteOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError, }, }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion14], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/security/arm-security/src/operations/securityOperators.ts b/sdk/security/arm-security/src/operations/securityOperators.ts index 6f31fda044fc..92069ec5b651 100644 --- a/sdk/security/arm-security/src/operations/securityOperators.ts +++ b/sdk/security/arm-security/src/operations/securityOperators.ts @@ -113,7 +113,7 @@ const listOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError, }, }, - queryParameters: [Parameters.apiVersion11], + queryParameters: [Parameters.apiVersion10], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -133,7 +133,7 @@ const getOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError, }, }, - queryParameters: [Parameters.apiVersion11], + queryParameters: [Parameters.apiVersion10], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -154,7 +154,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError, }, }, - queryParameters: [Parameters.apiVersion11], + queryParameters: [Parameters.apiVersion10], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -174,7 +174,7 @@ const deleteOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError, }, }, - queryParameters: [Parameters.apiVersion11], + queryParameters: [Parameters.apiVersion10], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/security/arm-security/src/operations/sensitivitySettings.ts b/sdk/security/arm-security/src/operations/sensitivitySettings.ts index a885fefa6a42..e95c2088822a 100644 --- a/sdk/security/arm-security/src/operations/sensitivitySettings.ts +++ b/sdk/security/arm-security/src/operations/sensitivitySettings.ts @@ -12,6 +12,11 @@ import * as Mappers from "../models/mappers"; import * as Parameters from "../models/parameters"; import { SecurityCenter } from "../securityCenter"; import { + UpdateSensitivitySettingsRequest, + SensitivitySettingsCreateOrUpdateOptionalParams, + SensitivitySettingsCreateOrUpdateResponse, + SensitivitySettingsGetOptionalParams, + SensitivitySettingsGetResponse, SensitivitySettingsListOptionalParams, SensitivitySettingsListResponse, } from "../models"; @@ -28,6 +33,31 @@ export class SensitivitySettingsImpl implements SensitivitySettings { this.client = client; } + /** + * Create or update data sensitivity settings for sensitive data discovery + * @param sensitivitySettings The data sensitivity settings to update + * @param options The options parameters. + */ + createOrUpdate( + sensitivitySettings: UpdateSensitivitySettingsRequest, + options?: SensitivitySettingsCreateOrUpdateOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { sensitivitySettings, options }, + createOrUpdateOperationSpec, + ); + } + + /** + * Gets data sensitivity settings for sensitive data discovery + * @param options The options parameters. + */ + get( + options?: SensitivitySettingsGetOptionalParams, + ): Promise { + return this.client.sendOperationRequest({ options }, getOperationSpec); + } + /** * Gets a list with a single sensitivity settings resource * @param options The options parameters. @@ -41,6 +71,40 @@ export class SensitivitySettingsImpl implements SensitivitySettings { // Operation Specifications const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: "/providers/Microsoft.Security/sensitivitySettings/current", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.GetSensitivitySettingsResponse, + }, + default: { + bodyMapper: Mappers.CloudError, + }, + }, + requestBody: Parameters.sensitivitySettings, + queryParameters: [Parameters.apiVersion12], + urlParameters: [Parameters.$host], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer, +}; +const getOperationSpec: coreClient.OperationSpec = { + path: "/providers/Microsoft.Security/sensitivitySettings/current", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.GetSensitivitySettingsResponse, + }, + default: { + bodyMapper: Mappers.CloudError, + }, + }, + queryParameters: [Parameters.apiVersion12], + urlParameters: [Parameters.$host], + headerParameters: [Parameters.accept], + serializer, +}; const listOperationSpec: coreClient.OperationSpec = { path: "/providers/Microsoft.Security/sensitivitySettings", httpMethod: "GET", @@ -52,7 +116,7 @@ const listOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError, }, }, - queryParameters: [Parameters.apiVersion13], + queryParameters: [Parameters.apiVersion12], urlParameters: [Parameters.$host], headerParameters: [Parameters.accept], serializer, diff --git a/sdk/security/arm-security/src/operations/softwareInventories.ts b/sdk/security/arm-security/src/operations/softwareInventories.ts index c8eb3e6dd624..639db6f10784 100644 --- a/sdk/security/arm-security/src/operations/softwareInventories.ts +++ b/sdk/security/arm-security/src/operations/softwareInventories.ts @@ -329,7 +329,7 @@ const listByExtendedResourceOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError, }, }, - queryParameters: [Parameters.apiVersion5], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -352,7 +352,7 @@ const listBySubscriptionOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError, }, }, - queryParameters: [Parameters.apiVersion5], + queryParameters: [Parameters.apiVersion4], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], serializer, @@ -368,7 +368,7 @@ const getOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError, }, }, - queryParameters: [Parameters.apiVersion5], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/security/arm-security/src/operations/sqlVulnerabilityAssessmentBaselineRules.ts b/sdk/security/arm-security/src/operations/sqlVulnerabilityAssessmentBaselineRules.ts index 8ce8876e6597..6b3bd0f46c52 100644 --- a/sdk/security/arm-security/src/operations/sqlVulnerabilityAssessmentBaselineRules.ts +++ b/sdk/security/arm-security/src/operations/sqlVulnerabilityAssessmentBaselineRules.ts @@ -143,7 +143,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, }, requestBody: Parameters.body, - queryParameters: [Parameters.workspaceId, Parameters.apiVersion12], + queryParameters: [Parameters.workspaceId, Parameters.apiVersion11], urlParameters: [Parameters.$host, Parameters.ruleId, Parameters.resourceId], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", @@ -160,7 +160,7 @@ const getOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError, }, }, - queryParameters: [Parameters.workspaceId, Parameters.apiVersion12], + queryParameters: [Parameters.workspaceId, Parameters.apiVersion11], urlParameters: [Parameters.$host, Parameters.ruleId, Parameters.resourceId], headerParameters: [Parameters.accept], serializer, @@ -175,7 +175,7 @@ const deleteOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError, }, }, - queryParameters: [Parameters.workspaceId, Parameters.apiVersion12], + queryParameters: [Parameters.workspaceId, Parameters.apiVersion11], urlParameters: [Parameters.$host, Parameters.ruleId, Parameters.resourceId], headerParameters: [Parameters.accept], serializer, @@ -191,7 +191,7 @@ const listOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError, }, }, - queryParameters: [Parameters.workspaceId, Parameters.apiVersion12], + queryParameters: [Parameters.workspaceId, Parameters.apiVersion11], urlParameters: [Parameters.$host, Parameters.resourceId], headerParameters: [Parameters.accept], serializer, @@ -208,7 +208,7 @@ const addOperationSpec: coreClient.OperationSpec = { }, }, requestBody: Parameters.body1, - queryParameters: [Parameters.workspaceId, Parameters.apiVersion12], + queryParameters: [Parameters.workspaceId, Parameters.apiVersion11], urlParameters: [Parameters.$host, Parameters.resourceId], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", diff --git a/sdk/security/arm-security/src/operations/sqlVulnerabilityAssessmentScanResults.ts b/sdk/security/arm-security/src/operations/sqlVulnerabilityAssessmentScanResults.ts index 1ce737870b8b..2c96235d1798 100644 --- a/sdk/security/arm-security/src/operations/sqlVulnerabilityAssessmentScanResults.ts +++ b/sdk/security/arm-security/src/operations/sqlVulnerabilityAssessmentScanResults.ts @@ -86,7 +86,7 @@ const getOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError, }, }, - queryParameters: [Parameters.workspaceId, Parameters.apiVersion12], + queryParameters: [Parameters.workspaceId, Parameters.apiVersion11], urlParameters: [ Parameters.$host, Parameters.resourceId, @@ -107,7 +107,7 @@ const listOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError, }, }, - queryParameters: [Parameters.workspaceId, Parameters.apiVersion12], + queryParameters: [Parameters.workspaceId, Parameters.apiVersion11], urlParameters: [Parameters.$host, Parameters.resourceId, Parameters.scanId], headerParameters: [Parameters.accept], serializer, diff --git a/sdk/security/arm-security/src/operations/sqlVulnerabilityAssessmentScans.ts b/sdk/security/arm-security/src/operations/sqlVulnerabilityAssessmentScans.ts index e77b2801477b..c90473cefac8 100644 --- a/sdk/security/arm-security/src/operations/sqlVulnerabilityAssessmentScans.ts +++ b/sdk/security/arm-security/src/operations/sqlVulnerabilityAssessmentScans.ts @@ -82,7 +82,7 @@ const getOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError, }, }, - queryParameters: [Parameters.workspaceId, Parameters.apiVersion12], + queryParameters: [Parameters.workspaceId, Parameters.apiVersion11], urlParameters: [Parameters.$host, Parameters.resourceId, Parameters.scanId], headerParameters: [Parameters.accept], serializer, @@ -98,7 +98,7 @@ const listOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError, }, }, - queryParameters: [Parameters.workspaceId, Parameters.apiVersion12], + queryParameters: [Parameters.workspaceId, Parameters.apiVersion11], urlParameters: [Parameters.$host, Parameters.resourceId], headerParameters: [Parameters.accept], serializer, diff --git a/sdk/security/arm-security/src/operationsInterfaces/adaptiveApplicationControls.ts b/sdk/security/arm-security/src/operationsInterfaces/adaptiveApplicationControls.ts deleted file mode 100644 index 7e9faf9e5a4d..000000000000 --- a/sdk/security/arm-security/src/operationsInterfaces/adaptiveApplicationControls.ts +++ /dev/null @@ -1,67 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -import { - AdaptiveApplicationControlsListOptionalParams, - AdaptiveApplicationControlsListResponse, - AdaptiveApplicationControlsGetOptionalParams, - AdaptiveApplicationControlsGetResponse, - AdaptiveApplicationControlGroup, - AdaptiveApplicationControlsPutOptionalParams, - AdaptiveApplicationControlsPutResponse, - AdaptiveApplicationControlsDeleteOptionalParams, -} from "../models"; - -/** Interface representing a AdaptiveApplicationControls. */ -export interface AdaptiveApplicationControls { - /** - * Gets a list of application control machine groups for the subscription. - * @param options The options parameters. - */ - list( - options?: AdaptiveApplicationControlsListOptionalParams, - ): Promise; - /** - * Gets an application control VM/server group. - * @param ascLocation The location where ASC stores the data of the subscription. can be retrieved from - * Get locations - * @param groupName Name of an application control machine group - * @param options The options parameters. - */ - get( - ascLocation: string, - groupName: string, - options?: AdaptiveApplicationControlsGetOptionalParams, - ): Promise; - /** - * Update an application control machine group - * @param ascLocation The location where ASC stores the data of the subscription. can be retrieved from - * Get locations - * @param groupName Name of an application control machine group - * @param body - * @param options The options parameters. - */ - put( - ascLocation: string, - groupName: string, - body: AdaptiveApplicationControlGroup, - options?: AdaptiveApplicationControlsPutOptionalParams, - ): Promise; - /** - * Delete an application control machine group - * @param ascLocation The location where ASC stores the data of the subscription. can be retrieved from - * Get locations - * @param groupName Name of an application control machine group - * @param options The options parameters. - */ - delete( - ascLocation: string, - groupName: string, - options?: AdaptiveApplicationControlsDeleteOptionalParams, - ): Promise; -} diff --git a/sdk/security/arm-security/src/operationsInterfaces/adaptiveNetworkHardenings.ts b/sdk/security/arm-security/src/operationsInterfaces/adaptiveNetworkHardenings.ts deleted file mode 100644 index 9d79a5e9779c..000000000000 --- a/sdk/security/arm-security/src/operationsInterfaces/adaptiveNetworkHardenings.ts +++ /dev/null @@ -1,97 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -import { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { SimplePollerLike, OperationState } from "@azure/core-lro"; -import { - AdaptiveNetworkHardening, - AdaptiveNetworkHardeningsListByExtendedResourceOptionalParams, - AdaptiveNetworkHardeningsGetOptionalParams, - AdaptiveNetworkHardeningsGetResponse, - AdaptiveNetworkHardeningEnforceRequest, - AdaptiveNetworkHardeningsEnforceOptionalParams, -} from "../models"; - -/// -/** Interface representing a AdaptiveNetworkHardenings. */ -export interface AdaptiveNetworkHardenings { - /** - * Gets a list of Adaptive Network Hardenings resources in scope of an extended resource. - * @param resourceGroupName The name of the resource group within the user's subscription. The name is - * case insensitive. - * @param resourceNamespace The Namespace of the resource. - * @param resourceType The type of the resource. - * @param resourceName Name of the resource. - * @param options The options parameters. - */ - listByExtendedResource( - resourceGroupName: string, - resourceNamespace: string, - resourceType: string, - resourceName: string, - options?: AdaptiveNetworkHardeningsListByExtendedResourceOptionalParams, - ): PagedAsyncIterableIterator; - /** - * Gets a single Adaptive Network Hardening resource - * @param resourceGroupName The name of the resource group within the user's subscription. The name is - * case insensitive. - * @param resourceNamespace The Namespace of the resource. - * @param resourceType The type of the resource. - * @param resourceName Name of the resource. - * @param adaptiveNetworkHardeningResourceName The name of the Adaptive Network Hardening resource. - * @param options The options parameters. - */ - get( - resourceGroupName: string, - resourceNamespace: string, - resourceType: string, - resourceName: string, - adaptiveNetworkHardeningResourceName: string, - options?: AdaptiveNetworkHardeningsGetOptionalParams, - ): Promise; - /** - * Enforces the given rules on the NSG(s) listed in the request - * @param resourceGroupName The name of the resource group within the user's subscription. The name is - * case insensitive. - * @param resourceNamespace The Namespace of the resource. - * @param resourceType The type of the resource. - * @param resourceName Name of the resource. - * @param adaptiveNetworkHardeningResourceName The name of the Adaptive Network Hardening resource. - * @param body - * @param options The options parameters. - */ - beginEnforce( - resourceGroupName: string, - resourceNamespace: string, - resourceType: string, - resourceName: string, - adaptiveNetworkHardeningResourceName: string, - body: AdaptiveNetworkHardeningEnforceRequest, - options?: AdaptiveNetworkHardeningsEnforceOptionalParams, - ): Promise, void>>; - /** - * Enforces the given rules on the NSG(s) listed in the request - * @param resourceGroupName The name of the resource group within the user's subscription. The name is - * case insensitive. - * @param resourceNamespace The Namespace of the resource. - * @param resourceType The type of the resource. - * @param resourceName Name of the resource. - * @param adaptiveNetworkHardeningResourceName The name of the Adaptive Network Hardening resource. - * @param body - * @param options The options parameters. - */ - beginEnforceAndWait( - resourceGroupName: string, - resourceNamespace: string, - resourceType: string, - resourceName: string, - adaptiveNetworkHardeningResourceName: string, - body: AdaptiveNetworkHardeningEnforceRequest, - options?: AdaptiveNetworkHardeningsEnforceOptionalParams, - ): Promise; -} diff --git a/sdk/security/arm-security/src/operationsInterfaces/devOpsPolicies.ts b/sdk/security/arm-security/src/operationsInterfaces/devOpsPolicies.ts new file mode 100644 index 000000000000..9b494b0d8acd --- /dev/null +++ b/sdk/security/arm-security/src/operationsInterfaces/devOpsPolicies.ts @@ -0,0 +1,44 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { + DevOpsPolicy, + DevOpsPoliciesListOptionalParams, + DevOpsPoliciesGetOptionalParams, + DevOpsPoliciesGetResponse, +} from "../models"; + +/// +/** Interface representing a DevOpsPolicies. */ +export interface DevOpsPolicies { + /** + * Returns a list of DevOps Policies. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param securityConnectorName The security connector name. + * @param options The options parameters. + */ + list( + resourceGroupName: string, + securityConnectorName: string, + options?: DevOpsPoliciesListOptionalParams, + ): PagedAsyncIterableIterator; + /** + * Returns a DevOps Policy. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param securityConnectorName The security connector name. + * @param policyName The policy name. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + securityConnectorName: string, + policyName: string, + options?: DevOpsPoliciesGetOptionalParams, + ): Promise; +} diff --git a/sdk/security/arm-security/src/operationsInterfaces/devOpsPolicyAssignments.ts b/sdk/security/arm-security/src/operationsInterfaces/devOpsPolicyAssignments.ts new file mode 100644 index 000000000000..da0dd7096f79 --- /dev/null +++ b/sdk/security/arm-security/src/operationsInterfaces/devOpsPolicyAssignments.ts @@ -0,0 +1,146 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { SimplePollerLike, OperationState } from "@azure/core-lro"; +import { + DevOpsPolicyAssignment, + DevOpsPolicyAssignmentsListOptionalParams, + DevOpsPolicyAssignmentsGetOptionalParams, + DevOpsPolicyAssignmentsGetResponse, + DevOpsPolicyAssignmentsCreateOrUpdateOptionalParams, + DevOpsPolicyAssignmentsCreateOrUpdateResponse, + DevOpsPolicyAssignmentsUpdateOptionalParams, + DevOpsPolicyAssignmentsUpdateResponse, + DevOpsPolicyAssignmentsDeleteOptionalParams, +} from "../models"; + +/// +/** Interface representing a DevOpsPolicyAssignments. */ +export interface DevOpsPolicyAssignments { + /** + * Returns a list of DevOps Policy Assignments. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param securityConnectorName The security connector name. + * @param options The options parameters. + */ + list( + resourceGroupName: string, + securityConnectorName: string, + options?: DevOpsPolicyAssignmentsListOptionalParams, + ): PagedAsyncIterableIterator; + /** + * Returns a DevOps Policy Assignment Resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param securityConnectorName The security connector name. + * @param policyAssignmentId The policy assignment Id. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + securityConnectorName: string, + policyAssignmentId: string, + options?: DevOpsPolicyAssignmentsGetOptionalParams, + ): Promise; + /** + * Creates or updates a DevOps Policy Assignment Resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param securityConnectorName The security connector name. + * @param policyAssignmentId The policy assignment Id. + * @param devOpsPolicyAssignment The DevOps Policy Assignment. + * @param options The options parameters. + */ + beginCreateOrUpdate( + resourceGroupName: string, + securityConnectorName: string, + policyAssignmentId: string, + devOpsPolicyAssignment: DevOpsPolicyAssignment, + options?: DevOpsPolicyAssignmentsCreateOrUpdateOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + DevOpsPolicyAssignmentsCreateOrUpdateResponse + > + >; + /** + * Creates or updates a DevOps Policy Assignment Resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param securityConnectorName The security connector name. + * @param policyAssignmentId The policy assignment Id. + * @param devOpsPolicyAssignment The DevOps Policy Assignment. + * @param options The options parameters. + */ + beginCreateOrUpdateAndWait( + resourceGroupName: string, + securityConnectorName: string, + policyAssignmentId: string, + devOpsPolicyAssignment: DevOpsPolicyAssignment, + options?: DevOpsPolicyAssignmentsCreateOrUpdateOptionalParams, + ): Promise; + /** + * Updates a DevOps Policy Assignment Resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param securityConnectorName The security connector name. + * @param policyAssignmentId The policy assignment Id. + * @param devOpsPolicyAssignment The DevOps Policy Assignment. + * @param options The options parameters. + */ + beginUpdate( + resourceGroupName: string, + securityConnectorName: string, + policyAssignmentId: string, + devOpsPolicyAssignment: DevOpsPolicyAssignment, + options?: DevOpsPolicyAssignmentsUpdateOptionalParams, + ): Promise< + SimplePollerLike< + OperationState, + DevOpsPolicyAssignmentsUpdateResponse + > + >; + /** + * Updates a DevOps Policy Assignment Resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param securityConnectorName The security connector name. + * @param policyAssignmentId The policy assignment Id. + * @param devOpsPolicyAssignment The DevOps Policy Assignment. + * @param options The options parameters. + */ + beginUpdateAndWait( + resourceGroupName: string, + securityConnectorName: string, + policyAssignmentId: string, + devOpsPolicyAssignment: DevOpsPolicyAssignment, + options?: DevOpsPolicyAssignmentsUpdateOptionalParams, + ): Promise; + /** + * Deletes a DevOps Policy Assignment Resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param securityConnectorName The security connector name. + * @param policyAssignmentId The policy assignment Id. + * @param options The options parameters. + */ + beginDelete( + resourceGroupName: string, + securityConnectorName: string, + policyAssignmentId: string, + options?: DevOpsPolicyAssignmentsDeleteOptionalParams, + ): Promise, void>>; + /** + * Deletes a DevOps Policy Assignment Resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param securityConnectorName The security connector name. + * @param policyAssignmentId The policy assignment Id. + * @param options The options parameters. + */ + beginDeleteAndWait( + resourceGroupName: string, + securityConnectorName: string, + policyAssignmentId: string, + options?: DevOpsPolicyAssignmentsDeleteOptionalParams, + ): Promise; +} diff --git a/sdk/security/arm-security/src/operationsInterfaces/index.ts b/sdk/security/arm-security/src/operationsInterfaces/index.ts index 1f53d3617824..232fb21dd3c5 100644 --- a/sdk/security/arm-security/src/operationsInterfaces/index.ts +++ b/sdk/security/arm-security/src/operationsInterfaces/index.ts @@ -14,13 +14,11 @@ export * from "./compliances"; export * from "./informationProtectionPolicies"; export * from "./workspaceSettings"; export * from "./alertsSuppressionRules"; -export * from "./automations"; export * from "./regulatoryComplianceStandards"; export * from "./regulatoryComplianceControls"; export * from "./regulatoryComplianceAssessments"; export * from "./subAssessments"; export * from "./connectors"; -export * from "./securityContacts"; export * from "./softwareInventories"; export * from "./customAssessmentAutomations"; export * from "./customEntityStoreAssignments"; @@ -38,17 +36,21 @@ export * from "./sqlVulnerabilityAssessmentScans"; export * from "./sqlVulnerabilityAssessmentScanResults"; export * from "./sensitivitySettings"; export * from "./healthReports"; +export * from "./automations"; +export * from "./securityContacts"; +export * from "./securityConnectors"; export * from "./azureDevOpsOrgs"; export * from "./azureDevOpsProjects"; export * from "./azureDevOpsRepos"; export * from "./devOpsConfigurations"; +export * from "./devOpsPolicies"; +export * from "./devOpsPolicyAssignments"; export * from "./gitHubOwners"; export * from "./gitHubRepos"; export * from "./gitLabGroups"; export * from "./gitLabSubgroups"; export * from "./gitLabProjects"; export * from "./devOpsOperationResults"; -export * from "./securityConnectors"; export * from "./complianceResults"; export * from "./advancedThreatProtection"; export * from "./deviceSecurityGroups"; @@ -56,9 +58,7 @@ export * from "./iotSecuritySolutionAnalytics"; export * from "./iotSecuritySolutionsAnalyticsAggregatedAlert"; export * from "./iotSecuritySolutionsAnalyticsRecommendation"; export * from "./iotSecuritySolution"; -export * from "./adaptiveNetworkHardenings"; export * from "./allowedConnections"; -export * from "./adaptiveApplicationControls"; export * from "./discoveredSecuritySolutions"; export * from "./externalSecuritySolutions"; export * from "./jitNetworkAccessPolicies"; diff --git a/sdk/security/arm-security/src/operationsInterfaces/sensitivitySettings.ts b/sdk/security/arm-security/src/operationsInterfaces/sensitivitySettings.ts index d3358017d6db..69a15189c8ba 100644 --- a/sdk/security/arm-security/src/operationsInterfaces/sensitivitySettings.ts +++ b/sdk/security/arm-security/src/operationsInterfaces/sensitivitySettings.ts @@ -7,12 +7,33 @@ */ import { + UpdateSensitivitySettingsRequest, + SensitivitySettingsCreateOrUpdateOptionalParams, + SensitivitySettingsCreateOrUpdateResponse, + SensitivitySettingsGetOptionalParams, + SensitivitySettingsGetResponse, SensitivitySettingsListOptionalParams, SensitivitySettingsListResponse, } from "../models"; /** Interface representing a SensitivitySettings. */ export interface SensitivitySettings { + /** + * Create or update data sensitivity settings for sensitive data discovery + * @param sensitivitySettings The data sensitivity settings to update + * @param options The options parameters. + */ + createOrUpdate( + sensitivitySettings: UpdateSensitivitySettingsRequest, + options?: SensitivitySettingsCreateOrUpdateOptionalParams, + ): Promise; + /** + * Gets data sensitivity settings for sensitive data discovery + * @param options The options parameters. + */ + get( + options?: SensitivitySettingsGetOptionalParams, + ): Promise; /** * Gets a list with a single sensitivity settings resource * @param options The options parameters. diff --git a/sdk/security/arm-security/src/securityCenter.ts b/sdk/security/arm-security/src/securityCenter.ts index 7c73206cd541..151ee0233b01 100644 --- a/sdk/security/arm-security/src/securityCenter.ts +++ b/sdk/security/arm-security/src/securityCenter.ts @@ -18,13 +18,11 @@ import { InformationProtectionPoliciesImpl, WorkspaceSettingsImpl, AlertsSuppressionRulesImpl, - AutomationsImpl, RegulatoryComplianceStandardsImpl, RegulatoryComplianceControlsImpl, RegulatoryComplianceAssessmentsImpl, SubAssessmentsImpl, ConnectorsImpl, - SecurityContactsImpl, SoftwareInventoriesImpl, CustomAssessmentAutomationsImpl, CustomEntityStoreAssignmentsImpl, @@ -42,17 +40,21 @@ import { SqlVulnerabilityAssessmentScanResultsImpl, SensitivitySettingsImpl, HealthReportsImpl, + AutomationsImpl, + SecurityContactsImpl, + SecurityConnectorsImpl, AzureDevOpsOrgsImpl, AzureDevOpsProjectsImpl, AzureDevOpsReposImpl, DevOpsConfigurationsImpl, + DevOpsPoliciesImpl, + DevOpsPolicyAssignmentsImpl, GitHubOwnersImpl, GitHubReposImpl, GitLabGroupsImpl, GitLabSubgroupsImpl, GitLabProjectsImpl, DevOpsOperationResultsImpl, - SecurityConnectorsImpl, ComplianceResultsImpl, AdvancedThreatProtectionImpl, DeviceSecurityGroupsImpl, @@ -60,9 +62,7 @@ import { IotSecuritySolutionsAnalyticsAggregatedAlertImpl, IotSecuritySolutionsAnalyticsRecommendationImpl, IotSecuritySolutionImpl, - AdaptiveNetworkHardeningsImpl, AllowedConnectionsImpl, - AdaptiveApplicationControlsImpl, DiscoveredSecuritySolutionsImpl, ExternalSecuritySolutionsImpl, JitNetworkAccessPoliciesImpl, @@ -90,13 +90,11 @@ import { InformationProtectionPolicies, WorkspaceSettings, AlertsSuppressionRules, - Automations, RegulatoryComplianceStandards, RegulatoryComplianceControls, RegulatoryComplianceAssessments, SubAssessments, Connectors, - SecurityContacts, SoftwareInventories, CustomAssessmentAutomations, CustomEntityStoreAssignments, @@ -114,17 +112,21 @@ import { SqlVulnerabilityAssessmentScanResults, SensitivitySettings, HealthReports, + Automations, + SecurityContacts, + SecurityConnectors, AzureDevOpsOrgs, AzureDevOpsProjects, AzureDevOpsRepos, DevOpsConfigurations, + DevOpsPolicies, + DevOpsPolicyAssignments, GitHubOwners, GitHubRepos, GitLabGroups, GitLabSubgroups, GitLabProjects, DevOpsOperationResults, - SecurityConnectors, ComplianceResults, AdvancedThreatProtection, DeviceSecurityGroups, @@ -132,9 +134,7 @@ import { IotSecuritySolutionsAnalyticsAggregatedAlert, IotSecuritySolutionsAnalyticsRecommendation, IotSecuritySolution, - AdaptiveNetworkHardenings, AllowedConnections, - AdaptiveApplicationControls, DiscoveredSecuritySolutions, ExternalSecuritySolutions, JitNetworkAccessPolicies, @@ -153,16 +153,7 @@ import { APICollections, Pricings, } from "./operationsInterfaces"; -import * as Parameters from "./models/parameters"; -import * as Mappers from "./models/mappers"; -import { - SecurityCenterOptionalParams, - UpdateSensitivitySettingsRequest, - UpdateSensitivitySettingsOptionalParams, - UpdateSensitivitySettingsResponse, - GetSensitivitySettingsOptionalParams, - GetSensitivitySettingsOperationResponse, -} from "./models"; +import { SecurityCenterOptionalParams } from "./models"; export class SecurityCenter extends coreClient.ServiceClient { $host: string; @@ -273,7 +264,6 @@ export class SecurityCenter extends coreClient.ServiceClient { ); this.workspaceSettings = new WorkspaceSettingsImpl(this); this.alertsSuppressionRules = new AlertsSuppressionRulesImpl(this); - this.automations = new AutomationsImpl(this); this.regulatoryComplianceStandards = new RegulatoryComplianceStandardsImpl( this, ); @@ -284,7 +274,6 @@ export class SecurityCenter extends coreClient.ServiceClient { new RegulatoryComplianceAssessmentsImpl(this); this.subAssessments = new SubAssessmentsImpl(this); this.connectors = new ConnectorsImpl(this); - this.securityContacts = new SecurityContactsImpl(this); this.softwareInventories = new SoftwareInventoriesImpl(this); this.customAssessmentAutomations = new CustomAssessmentAutomationsImpl( this, @@ -313,17 +302,21 @@ export class SecurityCenter extends coreClient.ServiceClient { new SqlVulnerabilityAssessmentScanResultsImpl(this); this.sensitivitySettings = new SensitivitySettingsImpl(this); this.healthReports = new HealthReportsImpl(this); + this.automations = new AutomationsImpl(this); + this.securityContacts = new SecurityContactsImpl(this); + this.securityConnectors = new SecurityConnectorsImpl(this); this.azureDevOpsOrgs = new AzureDevOpsOrgsImpl(this); this.azureDevOpsProjects = new AzureDevOpsProjectsImpl(this); this.azureDevOpsRepos = new AzureDevOpsReposImpl(this); this.devOpsConfigurations = new DevOpsConfigurationsImpl(this); + this.devOpsPolicies = new DevOpsPoliciesImpl(this); + this.devOpsPolicyAssignments = new DevOpsPolicyAssignmentsImpl(this); this.gitHubOwners = new GitHubOwnersImpl(this); this.gitHubRepos = new GitHubReposImpl(this); this.gitLabGroups = new GitLabGroupsImpl(this); this.gitLabSubgroups = new GitLabSubgroupsImpl(this); this.gitLabProjects = new GitLabProjectsImpl(this); this.devOpsOperationResults = new DevOpsOperationResultsImpl(this); - this.securityConnectors = new SecurityConnectorsImpl(this); this.complianceResults = new ComplianceResultsImpl(this); this.advancedThreatProtection = new AdvancedThreatProtectionImpl(this); this.deviceSecurityGroups = new DeviceSecurityGroupsImpl(this); @@ -335,11 +328,7 @@ export class SecurityCenter extends coreClient.ServiceClient { this.iotSecuritySolutionsAnalyticsRecommendation = new IotSecuritySolutionsAnalyticsRecommendationImpl(this); this.iotSecuritySolution = new IotSecuritySolutionImpl(this); - this.adaptiveNetworkHardenings = new AdaptiveNetworkHardeningsImpl(this); this.allowedConnections = new AllowedConnectionsImpl(this); - this.adaptiveApplicationControls = new AdaptiveApplicationControlsImpl( - this, - ); this.discoveredSecuritySolutions = new DiscoveredSecuritySolutionsImpl( this, ); @@ -366,34 +355,6 @@ export class SecurityCenter extends coreClient.ServiceClient { this.pricings = new PricingsImpl(this); } - /** - * Updates data sensitivity settings for sensitive data discovery - * @param sensitivitySettings The data sensitivity settings to update - * @param options The options parameters. - */ - updateSensitivitySettings( - sensitivitySettings: UpdateSensitivitySettingsRequest, - options?: UpdateSensitivitySettingsOptionalParams, - ): Promise { - return this.sendOperationRequest( - { sensitivitySettings, options }, - updateSensitivitySettingsOperationSpec, - ); - } - - /** - * Gets data sensitivity settings for sensitive data discovery - * @param options The options parameters. - */ - getSensitivitySettings( - options?: GetSensitivitySettingsOptionalParams, - ): Promise { - return this.sendOperationRequest( - { options }, - getSensitivitySettingsOperationSpec, - ); - } - locations: Locations; operations: Operations; tasks: Tasks; @@ -402,13 +363,11 @@ export class SecurityCenter extends coreClient.ServiceClient { informationProtectionPolicies: InformationProtectionPolicies; workspaceSettings: WorkspaceSettings; alertsSuppressionRules: AlertsSuppressionRules; - automations: Automations; regulatoryComplianceStandards: RegulatoryComplianceStandards; regulatoryComplianceControls: RegulatoryComplianceControls; regulatoryComplianceAssessments: RegulatoryComplianceAssessments; subAssessments: SubAssessments; connectors: Connectors; - securityContacts: SecurityContacts; softwareInventories: SoftwareInventories; customAssessmentAutomations: CustomAssessmentAutomations; customEntityStoreAssignments: CustomEntityStoreAssignments; @@ -426,17 +385,21 @@ export class SecurityCenter extends coreClient.ServiceClient { sqlVulnerabilityAssessmentScanResults: SqlVulnerabilityAssessmentScanResults; sensitivitySettings: SensitivitySettings; healthReports: HealthReports; + automations: Automations; + securityContacts: SecurityContacts; + securityConnectors: SecurityConnectors; azureDevOpsOrgs: AzureDevOpsOrgs; azureDevOpsProjects: AzureDevOpsProjects; azureDevOpsRepos: AzureDevOpsRepos; devOpsConfigurations: DevOpsConfigurations; + devOpsPolicies: DevOpsPolicies; + devOpsPolicyAssignments: DevOpsPolicyAssignments; gitHubOwners: GitHubOwners; gitHubRepos: GitHubRepos; gitLabGroups: GitLabGroups; gitLabSubgroups: GitLabSubgroups; gitLabProjects: GitLabProjects; devOpsOperationResults: DevOpsOperationResults; - securityConnectors: SecurityConnectors; complianceResults: ComplianceResults; advancedThreatProtection: AdvancedThreatProtection; deviceSecurityGroups: DeviceSecurityGroups; @@ -444,9 +407,7 @@ export class SecurityCenter extends coreClient.ServiceClient { iotSecuritySolutionsAnalyticsAggregatedAlert: IotSecuritySolutionsAnalyticsAggregatedAlert; iotSecuritySolutionsAnalyticsRecommendation: IotSecuritySolutionsAnalyticsRecommendation; iotSecuritySolution: IotSecuritySolution; - adaptiveNetworkHardenings: AdaptiveNetworkHardenings; allowedConnections: AllowedConnections; - adaptiveApplicationControls: AdaptiveApplicationControls; discoveredSecuritySolutions: DiscoveredSecuritySolutions; externalSecuritySolutions: ExternalSecuritySolutions; jitNetworkAccessPolicies: JitNetworkAccessPolicies; @@ -465,40 +426,3 @@ export class SecurityCenter extends coreClient.ServiceClient { aPICollections: APICollections; pricings: Pricings; } -// Operation Specifications -const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); - -const updateSensitivitySettingsOperationSpec: coreClient.OperationSpec = { - path: "/providers/Microsoft.Security/sensitivitySettings/current", - httpMethod: "PUT", - responses: { - 200: { - bodyMapper: Mappers.GetSensitivitySettingsResponse, - }, - default: { - bodyMapper: Mappers.CloudError, - }, - }, - requestBody: Parameters.sensitivitySettings, - queryParameters: [Parameters.apiVersion13], - urlParameters: [Parameters.$host], - headerParameters: [Parameters.accept, Parameters.contentType], - mediaType: "json", - serializer, -}; -const getSensitivitySettingsOperationSpec: coreClient.OperationSpec = { - path: "/providers/Microsoft.Security/sensitivitySettings/current", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.GetSensitivitySettingsResponse, - }, - default: { - bodyMapper: Mappers.CloudError, - }, - }, - queryParameters: [Parameters.apiVersion13], - urlParameters: [Parameters.$host], - headerParameters: [Parameters.accept], - serializer, -}; diff --git a/sdk/security/arm-security/test/sampleTest.ts b/sdk/security/arm-security/test/sampleTest.ts new file mode 100644 index 000000000000..d64be981b694 --- /dev/null +++ b/sdk/security/arm-security/test/sampleTest.ts @@ -0,0 +1,43 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { + Recorder, + RecorderStartOptions, + env, +} from "@azure-tools/test-recorder"; +import { assert } from "chai"; +import { Context } from "mocha"; + +const replaceableVariables: Record = { + AZURE_CLIENT_ID: "azure_client_id", + AZURE_CLIENT_SECRET: "azure_client_secret", + AZURE_TENANT_ID: "88888888-8888-8888-8888-888888888888", + SUBSCRIPTION_ID: "azure_subscription_id", +}; + +const recorderOptions: RecorderStartOptions = { + envSetupForPlayback: replaceableVariables, +}; + +describe("My test", () => { + let recorder: Recorder; + + beforeEach(async function (this: Context) { + recorder = new Recorder(this.currentTest); + await recorder.start(recorderOptions); + }); + + afterEach(async function () { + await recorder.stop(); + }); + + it("sample test", async function () { + console.log("Hi, I'm a test!"); + }); +}); diff --git a/sdk/security/arm-security/tsconfig.json b/sdk/security/arm-security/tsconfig.json index 3f5144384125..3e6ae96443f3 100644 --- a/sdk/security/arm-security/tsconfig.json +++ b/sdk/security/arm-security/tsconfig.json @@ -15,17 +15,11 @@ ], "declaration": true, "outDir": "./dist-esm", - "importHelpers": true, - "paths": { - "@azure/arm-security": [ - "./src/index" - ] - } + "importHelpers": true }, "include": [ "./src/**/*.ts", - "./test/**/*.ts", - "samples-dev/**/*.ts" + "./test/**/*.ts" ], "exclude": [ "node_modules"