diff --git a/sdk/security/arm-security/CHANGELOG.md b/sdk/security/arm-security/CHANGELOG.md index b9f9980d641b..27caaf3c90a9 100644 --- a/sdk/security/arm-security/CHANGELOG.md +++ b/sdk/security/arm-security/CHANGELOG.md @@ -1,15 +1,745 @@ # Release History - -## 6.0.0-beta.6 (Unreleased) - + +## 6.0.0-beta.6 (2025-05-12) +Compared with version 5.0.0 + ### Features Added + - Added operation group APICollections + - Added operation group ApplicationOperations + - Added operation group Applications + - Added operation group AzureDevOpsOrgs + - Added operation group AzureDevOpsProjects + - Added operation group AzureDevOpsRepos + - Added operation group CustomRecommendations + - Added operation group DefenderForStorage + - Added operation group DevOpsConfigurations + - Added operation group DevOpsOperationResults + - Added operation group GitHubOwners + - Added operation group GitHubRepos + - Added operation group GitLabGroups + - Added operation group GitLabProjects + - Added operation group GitLabSubgroups + - Added operation group GovernanceAssignments + - Added operation group GovernanceRules + - Added operation group HealthReports + - Added operation group SecurityConnectorApplication + - Added operation group SecurityConnectorApplications + - Added operation group SecurityOperators + - Added operation group SecurityStandards + - Added operation group SensitivitySettings + - Added operation group ServerVulnerabilityAssessmentsSettings + - Added operation group StandardAssignments + - Added operation Alerts.beginSimulate + - Added operation Alerts.beginSimulateAndWait + - Added operation Alerts.updateResourceGroupLevelStateToInProgress + - Added operation Alerts.updateSubscriptionLevelStateToInProgress + - Added operation Automations.update + - Added operation Pricings.delete + - Added Interface AadExternalSecuritySolution + - Added Interface AadSolutionProperties + - Added Interface AccessTokenAuthentication + - Added Interface ActionableRemediation + - Added Interface ActiveConnectionsNotInAllowedRange + - Added Interface AdvancedThreatProtectionSetting + - Added Interface AgentlessConfiguration + - 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 ApiCollection + - Added Interface ApiCollectionList + - Added Interface APICollectionsGetByAzureApiManagementServiceOptionalParams + - Added Interface APICollectionsListByAzureApiManagementServiceNextOptionalParams + - Added Interface APICollectionsListByAzureApiManagementServiceOptionalParams + - Added Interface APICollectionsListByResourceGroupNextOptionalParams + - Added Interface APICollectionsListByResourceGroupOptionalParams + - Added Interface APICollectionsListBySubscriptionNextOptionalParams + - Added Interface APICollectionsListBySubscriptionOptionalParams + - Added Interface APICollectionsOffboardAzureApiManagementApiOptionalParams + - Added Interface APICollectionsOnboardAzureApiManagementApiHeaders + - Added Interface APICollectionsOnboardAzureApiManagementApiOptionalParams + - 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 ArcAutoProvisioning + - Added Interface ArcAutoProvisioningAws + - Added Interface ArcAutoProvisioningConfiguration + - Added Interface ArcAutoProvisioningGcp + - Added Interface AscLocation + - Added Interface AssessmentStatusResponse + - Added Interface AssignedAssessmentItem + - Added Interface AssignedStandardItem + - Added Interface AtaExternalSecuritySolution + - Added Interface AtaSolutionProperties + - Added Interface AttestationEvidence + - Added Interface Authentication + - Added Interface Authorization + - Added Interface Automation + - Added Interface AutomationActionEventHub + - Added Interface AutomationActionLogicApp + - Added Interface AutomationActionWorkspace + - Added Interface AutomationsUpdateOptionalParams + - Added Interface AutomationUpdateModel + - Added Interface AutoProvisioningSetting + - Added Interface AwAssumeRoleAuthenticationDetailsProperties + - Added Interface AwsCredsAuthenticationDetailsProperties + - Added Interface AwsEnvironmentData + - Added Interface AwsOrganizationalData + - Added Interface AwsOrganizationalDataMaster + - Added Interface AwsOrganizationalDataMember + - Added Interface AzureDevOpsOrg + - Added Interface AzureDevOpsOrganizationConfiguration + - Added Interface AzureDevOpsOrgListResponse + - Added Interface AzureDevOpsOrgProperties + - Added Interface AzureDevOpsOrgsCreateOrUpdateOptionalParams + - Added Interface AzureDevOpsOrgsGetOptionalParams + - Added Interface AzureDevOpsOrgsListAvailableOptionalParams + - Added Interface AzureDevOpsOrgsListNextOptionalParams + - Added Interface AzureDevOpsOrgsListOptionalParams + - Added Interface AzureDevOpsOrgsUpdateOptionalParams + - Added Interface AzureDevOpsProject + - Added Interface AzureDevOpsProjectConfiguration + - Added Interface AzureDevOpsProjectListResponse + - Added Interface AzureDevOpsProjectProperties + - Added Interface AzureDevOpsProjectsCreateOrUpdateOptionalParams + - Added Interface AzureDevOpsProjectsGetOptionalParams + - Added Interface AzureDevOpsProjectsListNextOptionalParams + - Added Interface AzureDevOpsProjectsListOptionalParams + - Added Interface AzureDevOpsProjectsUpdateOptionalParams + - Added Interface AzureDevOpsReposCreateOrUpdateOptionalParams + - Added Interface AzureDevOpsReposGetOptionalParams + - Added Interface AzureDevOpsRepository + - Added Interface AzureDevOpsRepositoryListResponse + - Added Interface AzureDevOpsRepositoryProperties + - Added Interface AzureDevOpsReposListNextOptionalParams + - Added Interface AzureDevOpsReposListOptionalParams + - Added Interface AzureDevOpsReposUpdateOptionalParams + - Added Interface AzureDevOpsScopeEnvironmentData + - Added Interface AzureResourceDetails + - Added Interface AzureResourceIdentifier + - Added Interface AzureServersSetting + - Added Interface BaseResourceConfiguration + - Added Interface BlobsScanSummary + - Added Interface BuiltInInfoType + - Added Interface CategoryConfiguration + - 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 CspmMonitorDockerHubOffering + - Added Interface CspmMonitorGcpOffering + - Added Interface CspmMonitorGcpOfferingNativeCloudConnection + - Added Interface CspmMonitorGithubOffering + - Added Interface CspmMonitorGitLabOffering + - Added Interface CspmMonitorJFrogOffering + - Added Interface CustomAssessmentAutomation + - Added Interface CustomAssessmentAutomationRequest + - Added Interface CustomEntityStoreAssignment + - Added Interface CustomRecommendation + - Added Interface CustomRecommendationsCreateOrUpdateOptionalParams + - Added Interface CustomRecommendationsDeleteOptionalParams + - Added Interface CustomRecommendationsGetOptionalParams + - Added Interface CustomRecommendationsList + - Added Interface CustomRecommendationsListNextOptionalParams + - Added Interface CustomRecommendationsListOptionalParams + - Added Interface DataExportSettings + - Added Interface DefenderCspmAwsOffering + - Added Interface DefenderCspmAwsOfferingCiem + - Added Interface DefenderCspmAwsOfferingCiemDiscovery + - Added Interface DefenderCspmAwsOfferingCiemOidc + - Added Interface DefenderCspmAwsOfferingDatabasesDspm + - Added Interface DefenderCspmAwsOfferingDataSensitivityDiscovery + - Added Interface DefenderCspmAwsOfferingMdcContainersAgentlessDiscoveryK8S + - Added Interface DefenderCspmAwsOfferingMdcContainersImageAssessment + - Added Interface DefenderCspmAwsOfferingVmScanners + - Added Interface DefenderCspmDockerHubOffering + - Added Interface DefenderCspmGcpOffering + - Added Interface DefenderCspmGcpOfferingCiemDiscovery + - Added Interface DefenderCspmGcpOfferingDataSensitivityDiscovery + - Added Interface DefenderCspmGcpOfferingMdcContainersAgentlessDiscoveryK8S + - Added Interface DefenderCspmGcpOfferingMdcContainersImageAssessment + - Added Interface DefenderCspmGcpOfferingVmScanners + - Added Interface DefenderCspmJFrogOffering + - Added Interface DefenderCspmJFrogOfferingMdcContainersImageAssessment + - Added Interface DefenderFoDatabasesAwsOffering + - Added Interface DefenderFoDatabasesAwsOfferingArcAutoProvisioning + - Added Interface DefenderFoDatabasesAwsOfferingDatabasesDspm + - Added Interface DefenderFoDatabasesAwsOfferingRds + - Added Interface DefenderForContainersAwsOffering + - Added Interface DefenderForContainersAwsOfferingKubernetesDataCollection + - Added Interface DefenderForContainersAwsOfferingMdcContainersAgentlessDiscoveryK8S + - Added Interface DefenderForContainersAwsOfferingMdcContainersImageAssessment + - Added Interface DefenderForContainersAwsOfferingVmScanners + - Added Interface DefenderForContainersDockerHubOffering + - Added Interface DefenderForContainersGcpOffering + - Added Interface DefenderForContainersGcpOfferingDataPipelineNativeCloudConnection + - Added Interface DefenderForContainersGcpOfferingMdcContainersAgentlessDiscoveryK8S + - Added Interface DefenderForContainersGcpOfferingMdcContainersImageAssessment + - Added Interface DefenderForContainersGcpOfferingNativeCloudConnection + - Added Interface DefenderForContainersGcpOfferingVmScanners + - Added Interface DefenderForContainersJFrogOffering + - Added Interface DefenderForDatabasesGcpOffering + - Added Interface DefenderForDatabasesGcpOfferingArcAutoProvisioning + - Added Interface DefenderForDatabasesGcpOfferingDefenderForDatabasesArcAutoProvisioning + - Added Interface DefenderForServersAwsOffering + - Added Interface DefenderForServersAwsOfferingMdeAutoProvisioning + - Added Interface DefenderForServersAwsOfferingSubPlan + - Added Interface DefenderForServersAwsOfferingVaAutoProvisioning + - Added Interface DefenderForServersAwsOfferingVaAutoProvisioningConfiguration + - Added Interface DefenderForServersAwsOfferingVmScanners + - Added Interface DefenderForServersGcpOffering + - Added Interface DefenderForServersGcpOfferingArcAutoProvisioning + - Added Interface DefenderForServersGcpOfferingDefenderForServers + - Added Interface DefenderForServersGcpOfferingMdeAutoProvisioning + - Added Interface DefenderForServersGcpOfferingSubPlan + - Added Interface DefenderForServersGcpOfferingVaAutoProvisioning + - Added Interface DefenderForServersGcpOfferingVaAutoProvisioningConfiguration + - Added Interface DefenderForServersGcpOfferingVmScanners + - Added Interface DefenderForStorageCancelMalwareScanOptionalParams + - Added Interface DefenderForStorageCreateOptionalParams + - Added Interface DefenderForStorageGetMalwareScanOptionalParams + - Added Interface DefenderForStorageGetOptionalParams + - Added Interface DefenderForStorageSetting + - Added Interface DefenderForStorageSettingProperties + - Added Interface DefenderForStorageStartMalwareScanOptionalParams + - Added Interface DenylistCustomAlertRule + - Added Interface DeviceSecurityGroup + - Added Interface DevOpsCapability + - Added Interface DevOpsConfiguration + - Added Interface DevOpsConfigurationListResponse + - Added Interface DevOpsConfigurationProperties + - Added Interface DevOpsConfigurationsCreateOrUpdateOptionalParams + - Added Interface DevOpsConfigurationsDeleteOptionalParams + - Added Interface DevOpsConfigurationsGetOptionalParams + - Added Interface DevOpsConfigurationsListNextOptionalParams + - Added Interface DevOpsConfigurationsListOptionalParams + - Added Interface DevOpsConfigurationsUpdateOptionalParams + - Added Interface DevOpsOperationResultsGetOptionalParams + - Added Interface DirectMethodInvokesNotInAllowedRange + - Added Interface DiscoveredSecuritySolution + - Added Interface DockerHubEnvironmentData + - Added Interface EnvironmentData + - Added Interface EnvironmentDetails + - Added Interface ErrorDetail + - Added Interface ErrorDetailAutoGenerated + - Added Interface ErrorDetailAutoGenerated2 + - Added Interface ErrorDetails + - Added Interface ErrorModel + - Added Interface ErrorResponse + - Added Interface ErrorResponseAutoGenerated + - Added Interface ErrorResponseAutoGenerated2 + - Added Interface ErrorResponseAutoGenerated3 + - 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 GetSensitivitySettingsListResponse + - Added Interface GetSensitivitySettingsResponse + - Added Interface GetSensitivitySettingsResponseProperties + - Added Interface GetSensitivitySettingsResponsePropertiesMipInformation + - Added Interface GitHubOwner + - Added Interface GitHubOwnerConfiguration + - Added Interface GitHubOwnerListResponse + - Added Interface GitHubOwnerProperties + - Added Interface GitHubOwnersGetOptionalParams + - Added Interface GitHubOwnersListAvailableOptionalParams + - Added Interface GitHubOwnersListNextOptionalParams + - Added Interface GitHubOwnersListOptionalParams + - Added Interface GitHubReposGetOptionalParams + - Added Interface GitHubRepository + - Added Interface GitHubRepositoryListResponse + - Added Interface GitHubRepositoryProperties + - Added Interface GitHubReposListNextOptionalParams + - Added Interface GitHubReposListOptionalParams + - Added Interface GithubScopeEnvironmentData + - Added Interface GitLabGroup + - Added Interface GitLabGroupConfiguration + - Added Interface GitLabGroupListResponse + - Added Interface GitLabGroupProperties + - Added Interface GitLabGroupsGetOptionalParams + - Added Interface GitLabGroupsListAvailableOptionalParams + - Added Interface GitLabGroupsListNextOptionalParams + - Added Interface GitLabGroupsListOptionalParams + - Added Interface GitLabProject + - Added Interface GitLabProjectListResponse + - Added Interface GitLabProjectProperties + - Added Interface GitLabProjectsGetOptionalParams + - Added Interface GitLabProjectsListNextOptionalParams + - Added Interface GitLabProjectsListOptionalParams + - Added Interface GitlabScopeEnvironmentData + - Added Interface GitLabSubgroupsListOptionalParams + - 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 HealthReportsGetOptionalParams + - Added Interface HealthReportsList + - Added Interface HealthReportsListNextOptionalParams + - Added Interface HealthReportsListOptionalParams + - Added Interface HttpC2DMessagesNotInAllowedRange + - Added Interface HttpC2DRejectedMessagesNotInAllowedRange + - Added Interface HttpD2CMessagesNotInAllowedRange + - Added Interface Identity + - Added Interface InformationProtectionPolicy + - Added Interface InfoType + - Added Interface InventoryList + - Added Interface IoTSecurityAggregatedAlert + - Added Interface IoTSecurityAggregatedRecommendation + - Added Interface IoTSecuritySolutionAnalyticsModel + - Added Interface IoTSecuritySolutionModel + - Added Interface Issue + - Added Interface JFrogEnvironmentData + - Added Interface JitNetworkAccessPolicy + - Added Interface Label + - Added Interface ListCustomAlertRule + - Added Interface LocalUserNotAllowed + - Added Interface LogAnalyticsIdentifier + - Added Interface MalwareScan + - Added Interface MalwareScanningProperties + - Added Interface MalwareScanProperties + - Added Interface MdeOnboardingData + - Added Interface MqttC2DMessagesNotInAllowedRange + - Added Interface MqttC2DRejectedMessagesNotInAllowedRange + - Added Interface MqttD2CMessagesNotInAllowedRange + - Added Interface NotificationsSource + - Added Interface NotificationsSourceAlert + - Added Interface NotificationsSourceAttackPath + - Added Interface OnPremiseResourceDetails + - Added Interface OnPremiseSqlResourceDetails + - Added Interface OnUploadProperties + - Added Interface OperationListResult + - Added Interface OperationResultAutoGenerated + - Added Interface OperationStatus + - Added Interface OperationStatusAutoGenerated + - Added Interface OperationStatusResult + - Added Interface ParametersSchema + - Added Interface PartialAssessmentProperties + - Added Interface Pricing + - Added Interface PricingsDeleteOptionalParams + - Added Interface ProcessNotAllowed + - Added Interface ProxyResource + - Added Interface QueuePurgesNotInAllowedRange + - Added Interface RegulatoryComplianceAssessment + - Added Interface RegulatoryComplianceControl + - Added Interface RegulatoryComplianceStandard + - Added Interface RemediationEta + - Added Interface ResourceAutoGenerated + - Added Interface ResourceAutoGenerated2 + - Added Interface ResourceDetailsAutoGenerated + - Added Interface RuleResults + - Added Interface Scan + - Added Interface ScanResult + - Added Interface ScanSummary + - Added Interface ScenarioResponse + - 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 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 SecurityStandard + - Added Interface SecurityStandardList + - Added Interface SecurityStandardsCreateOrUpdateOptionalParams + - Added Interface SecurityStandardsDeleteOptionalParams + - Added Interface SecurityStandardsGetOptionalParams + - Added Interface SecurityStandardsListNextOptionalParams + - Added Interface SecurityStandardsListOptionalParams + - Added Interface SecuritySubAssessment + - Added Interface SecurityTask + - Added Interface SensitiveDataDiscoveryProperties + - Added Interface SensitivitySettingsCreateOrUpdateOptionalParams + - Added Interface SensitivitySettingsGetOptionalParams + - Added Interface SensitivitySettingsListOptionalParams + - Added Interface ServerVulnerabilityAssessment + - Added Interface ServerVulnerabilityAssessmentsSetting + - Added Interface ServerVulnerabilityAssessmentsSettingsCreateOrUpdateOptionalParams + - Added Interface ServerVulnerabilityAssessmentsSettingsDeleteOptionalParams + - Added Interface ServerVulnerabilityAssessmentsSettingsGetOptionalParams + - Added Interface ServerVulnerabilityAssessmentsSettingsList + - Added Interface ServerVulnerabilityAssessmentsSettingsListBySubscriptionNextOptionalParams + - Added Interface ServerVulnerabilityAssessmentsSettingsListBySubscriptionOptionalParams + - Added Interface ServerVulnerabilityProperties + - Added Interface Setting + - Added Interface Software + - Added Interface SqlServerVulnerabilityProperties + - Added Interface StandardAssignment + - Added Interface StandardAssignmentMetadata + - Added Interface StandardAssignmentPropertiesAttestationData + - Added Interface StandardAssignmentPropertiesExemptionData + - Added Interface StandardAssignmentsCreateOptionalParams + - Added Interface StandardAssignmentsDeleteOptionalParams + - Added Interface StandardAssignmentsGetOptionalParams + - Added Interface StandardAssignmentsList + - Added Interface StandardAssignmentsListNextOptionalParams + - Added Interface StandardAssignmentsListOptionalParams + - Added Interface StandardMetadata + - Added Interface StatusAutoGenerated + - Added Interface TargetBranchConfiguration + - Added Interface ThresholdCustomAlertRule + - Added Interface TimeWindowCustomAlertRule + - Added Interface TopologyResource + - Added Interface TrackedResource + - Added Interface TwinUpdatesNotInAllowedRange + - Added Interface UnauthorizedOperationsNotInAllowedRange + - Added Interface UpdateIotSecuritySolutionData + - Added Interface UpdateSensitivitySettingsRequest + - Added Interface ViewOptionalParams + - Added Interface VmScannersAws + - Added Interface VmScannersBase + - Added Interface VmScannersBaseConfiguration + - Added Interface VmScannersGcp + - Added Interface WorkspaceSetting + - Added Type Alias ActionableRemediationState + - Added Type Alias AgentlessEnablement + - Added Type Alias AnnotateDefaultBranchState + - Added Type Alias APICollectionsGetByAzureApiManagementServiceResponse + - Added Type Alias APICollectionsListByAzureApiManagementServiceNextResponse + - Added Type Alias APICollectionsListByAzureApiManagementServiceResponse + - Added Type Alias APICollectionsListByResourceGroupNextResponse + - Added Type Alias APICollectionsListByResourceGroupResponse + - Added Type Alias APICollectionsListBySubscriptionNextResponse + - Added Type Alias APICollectionsListBySubscriptionResponse + - Added Type Alias APICollectionsOnboardAzureApiManagementApiResponse + - 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 AttestationComplianceState + - Added Type Alias AuthenticationUnion + - Added Type Alias AutoDiscovery + - Added Type Alias AutomationsUpdateResponse + - Added Type Alias AwsOrganizationalDataUnion + - Added Type Alias AzureDevOpsOrgsCreateOrUpdateResponse + - Added Type Alias AzureDevOpsOrgsGetResponse + - Added Type Alias AzureDevOpsOrgsListAvailableResponse + - Added Type Alias AzureDevOpsOrgsListNextResponse + - Added Type Alias AzureDevOpsOrgsListResponse + - Added Type Alias AzureDevOpsOrgsUpdateResponse + - Added Type Alias AzureDevOpsProjectsCreateOrUpdateResponse + - Added Type Alias AzureDevOpsProjectsGetResponse + - Added Type Alias AzureDevOpsProjectsListNextResponse + - Added Type Alias AzureDevOpsProjectsListResponse + - Added Type Alias AzureDevOpsProjectsUpdateResponse + - Added Type Alias AzureDevOpsReposCreateOrUpdateResponse + - Added Type Alias AzureDevOpsReposGetResponse + - Added Type Alias AzureDevOpsReposListNextResponse + - Added Type Alias AzureDevOpsReposListResponse + - Added Type Alias AzureDevOpsReposUpdateResponse + - Added Type Alias Code + - Added Type Alias ConnectionType + - Added Type Alias CustomRecommendationsCreateOrUpdateResponse + - Added Type Alias CustomRecommendationsGetResponse + - Added Type Alias CustomRecommendationsListNextResponse + - Added Type Alias CustomRecommendationsListResponse + - Added Type Alias DefenderForStorageCancelMalwareScanResponse + - Added Type Alias DefenderForStorageCreateResponse + - Added Type Alias DefenderForStorageGetMalwareScanResponse + - Added Type Alias DefenderForStorageGetResponse + - Added Type Alias DefenderForStorageStartMalwareScanResponse + - Added Type Alias DesiredOnboardingState + - Added Type Alias DevOpsConfigurationsCreateOrUpdateResponse + - Added Type Alias DevOpsConfigurationsGetResponse + - Added Type Alias DevOpsConfigurationsListNextResponse + - Added Type Alias DevOpsConfigurationsListResponse + - Added Type Alias DevOpsConfigurationsUpdateResponse + - Added Type Alias DevOpsOperationResultsGetResponse + - Added Type Alias DevOpsProvisioningState + - Added Type Alias Effect + - Added Type Alias Enforce + - Added Type Alias EnvironmentDataUnion + - Added Type Alias EnvironmentType + - Added Type Alias ExemptionCategory + - Added Type Alias GcpOrganizationalDataUnion + - Added Type Alias GitHubOwnersGetResponse + - Added Type Alias GitHubOwnersListAvailableResponse + - Added Type Alias GitHubOwnersListNextResponse + - Added Type Alias GitHubOwnersListResponse + - Added Type Alias GitHubReposGetResponse + - Added Type Alias GitHubReposListNextResponse + - Added Type Alias GitHubReposListResponse + - Added Type Alias GitLabGroupsGetResponse + - Added Type Alias GitLabGroupsListAvailableResponse + - Added Type Alias GitLabGroupsListNextResponse + - Added Type Alias GitLabGroupsListResponse + - Added Type Alias GitLabProjectsGetResponse + - Added Type Alias GitLabProjectsListNextResponse + - Added Type Alias GitLabProjectsListResponse + - Added Type Alias GitLabSubgroupsListResponse + - 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 HealthReportsGetResponse + - Added Type Alias HealthReportsListNextResponse + - Added Type Alias HealthReportsListResponse + - Added Type Alias Inherited + - Added Type Alias InheritFromParentState + - Added Type Alias InventoryKind + - Added Type Alias InventoryListKind + - Added Type Alias IsEnabled + - Added Type Alias MinimalRiskLevel + - Added Type Alias MinimalSeverity + - Added Type Alias MipIntegrationStatus + - Added Type Alias NotificationsSourceUnion + - Added Type Alias OnboardingState + - Added Type Alias OperationResult + - Added Type Alias Origin + - Added Type Alias RecommendationSupportedClouds + - Added Type Alias ResourcesCoverageStatus + - Added Type Alias RuleCategory + - Added Type Alias ScanningMode + - Added Type Alias SecurityConnectorApplicationCreateOrUpdateResponse + - Added Type Alias SecurityConnectorApplicationGetResponse + - Added Type Alias SecurityConnectorApplicationsListNextResponse + - Added Type Alias SecurityConnectorApplicationsListResponse + - Added Type Alias SecurityContactName + - Added Type Alias SecurityContactRole + - Added Type Alias SecurityIssue + - Added Type Alias SecurityOperatorsCreateOrUpdateResponse + - Added Type Alias SecurityOperatorsGetResponse + - Added Type Alias SecurityOperatorsListResponse + - Added Type Alias SecurityStandardsCreateOrUpdateResponse + - Added Type Alias SecurityStandardsGetResponse + - Added Type Alias SecurityStandardsListNextResponse + - Added Type Alias SecurityStandardsListResponse + - Added Type Alias SensitivitySettingsCreateOrUpdateResponse + - Added Type Alias SensitivitySettingsGetResponse + - Added Type Alias SensitivitySettingsListResponse + - Added Type Alias ServerVulnerabilityAssessmentsAzureSettingSelectedProvider + - Added Type Alias ServerVulnerabilityAssessmentsSettingKind + - Added Type Alias ServerVulnerabilityAssessmentsSettingKindName + - Added Type Alias ServerVulnerabilityAssessmentsSettingsCreateOrUpdateResponse + - Added Type Alias ServerVulnerabilityAssessmentsSettingsGetResponse + - Added Type Alias ServerVulnerabilityAssessmentsSettingsListBySubscriptionNextResponse + - Added Type Alias ServerVulnerabilityAssessmentsSettingsListBySubscriptionResponse + - Added Type Alias ServerVulnerabilityAssessmentsSettingUnion + - Added Type Alias SettingNameAutoGenerated + - Added Type Alias SourceType + - Added Type Alias StandardAssignmentsCreateResponse + - Added Type Alias StandardAssignmentsGetResponse + - Added Type Alias StandardAssignmentsListNextResponse + - Added Type Alias StandardAssignmentsListResponse + - Added Type Alias StandardSupportedCloud + - Added Type Alias StandardType + - Added Type Alias StatusName + - Added Type Alias SubPlan + - Added Type Alias Type + - Added Type Alias ViewResponse + - Interface AlertsSimulateOptionalParams has a new optional parameter resumeFrom + - Interface AlertsSimulateOptionalParams has a new optional parameter updateIntervalInMs + - Interface Operation has a new optional parameter actionType + - Interface Operation has a new optional parameter isDataAction + - Interface PricingsListOptionalParams has a new optional parameter filter + - Interface ScanProperties has a new optional parameter lastScanTime + - Added Enum KnownActionableRemediationState + - Added Enum KnownAgentlessEnablement + - Added Enum KnownAnnotateDefaultBranchState + - Added Enum KnownApplicationConditionOperator + - Added Enum KnownApplicationSourceResourceType + - Added Enum KnownAttestationComplianceState + - Added Enum KnownAutoDiscovery + - Added Enum KnownCode + - Added Enum KnownDesiredOnboardingState + - Added Enum KnownDevOpsProvisioningState + - Added Enum KnownEffect + - Added Enum KnownEnforce + - Added Enum KnownEnvironmentType + - Added Enum KnownExemptionCategory + - Added Enum KnownGovernanceRuleConditionOperator + - Added Enum KnownGovernanceRuleOwnerSourceType + - Added Enum KnownGovernanceRuleSourceResourceType + - Added Enum KnownGovernanceRuleType + - Added Enum KnownInherited + - Added Enum KnownInheritFromParentState + - Added Enum KnownInventoryKind + - Added Enum KnownInventoryListKind + - Added Enum KnownIsEnabled + - Added Enum KnownMinimalRiskLevel + - Added Enum KnownMinimalSeverity + - Added Enum KnownMipIntegrationStatus + - Added Enum KnownOnboardingState + - Added Enum KnownOperationResult + - Added Enum KnownOrigin + - Added Enum KnownRecommendationSupportedClouds + - Added Enum KnownResourcesCoverageStatus + - Added Enum KnownRuleCategory + - Added Enum KnownScanningMode + - Added Enum KnownSecurityContactName + - Added Enum KnownSecurityContactRole + - Added Enum KnownSecurityIssue + - Added Enum KnownServerVulnerabilityAssessmentsAzureSettingSelectedProvider + - Added Enum KnownServerVulnerabilityAssessmentsSettingKind + - Added Enum KnownServerVulnerabilityAssessmentsSettingKindName + - Added Enum KnownSettingNameAutoGenerated + - Added Enum KnownSourceType + - Added Enum KnownStandardSupportedCloud + - Added Enum KnownStandardType + - Added Enum KnownStatusName + - Added Enum KnownSubPlan + - Added Enum KnownType + - Enum KnownActionType has a new value Internal + - 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 DockerHub + - Enum KnownCloudName has a new value Github + - Enum KnownCloudName has a new value GitLab + - Enum KnownCloudName has a new value JFrog + - Enum KnownEventSource has a new value AttackPaths + - Enum KnownEventSource has a new value AttackPathsSnapshot + - Enum KnownOfferingType has a new value CspmMonitorAzureDevOps + - Enum KnownOfferingType has a new value CspmMonitorDockerHub + - 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 CspmMonitorJFrog + - Enum KnownOfferingType has a new value DefenderCspmAws + - Enum KnownOfferingType has a new value DefenderCspmDockerHub + - Enum KnownOfferingType has a new value DefenderCspmGcp + - Enum KnownOfferingType has a new value DefenderCspmJFrog + - Enum KnownOfferingType has a new value DefenderForContainersDockerHub + - Enum KnownOfferingType has a new value DefenderForContainersGcp + - Enum KnownOfferingType has a new value DefenderForContainersJFrog + - 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 + - Added function getContinuationToken + ### Breaking Changes -### Bugs Fixed - -### Other Changes - + - Removed operation group AdaptiveApplicationControls + - Removed operation group AdaptiveNetworkHardenings + - Removed operation group IngestionSettings + - Removed operation Alerts.simulate + - Removed operation SecurityContacts.update + - Operation AllowedConnections.get has a new signature + - Operation Pricings.get has a new signature + - Operation Pricings.list has a new signature + - Operation Pricings.update has a new signature + - Operation SecurityContacts.create has a new signature + - Operation SecurityContacts.delete has a new signature + - Operation SecurityContacts.get 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 + - 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 + - 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" | "CspmMonitorDockerHub" | "DefenderForContainersDockerHub" | "DefenderCspmDockerHub" | "CspmMonitorJFrog" | "DefenderForContainersJFrog" | "DefenderCspmJFrog" + - Type of parameter value of interface ExternalSecuritySolutionList is changed from ExternalSecuritySolutionUnion[] to ExternalSecuritySolution[] + - Type of parameter origin of interface Operation is changed from string to Origin + - 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 + + ## 6.0.0-beta.5 (2024-05-16) Compared with version 5.0.0 diff --git a/sdk/security/arm-security/LICENSE b/sdk/security/arm-security/LICENSE index b2f52a2bad4e..63447fd8bbbf 100644 --- a/sdk/security/arm-security/LICENSE +++ b/sdk/security/arm-security/LICENSE @@ -18,4 +18,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. +SOFTWARE. \ No newline at end of file diff --git a/sdk/security/arm-security/README.md b/sdk/security/arm-security/README.md index d1dd6e6557a4..2003af5a84fb 100644 --- a/sdk/security/arm-security/README.md +++ b/sdk/security/arm-security/README.md @@ -44,7 +44,6 @@ npm install @azure/identity ``` You will also need to **register a new AAD application and grant access to Azure SecurityCenter** by assigning the suitable role to your service principal (note: roles such as `"Owner"` will not grant the necessary permissions). -Set the values of the client ID, tenant ID, and client secret of the AAD application as environment variables: `AZURE_CLIENT_ID`, `AZURE_TENANT_ID`, `AZURE_CLIENT_SECRET`. For more information about how to create an Azure AD Application check out [this guide](https://learn.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal). @@ -64,16 +63,14 @@ For browser environments, use the `InteractiveBrowserCredential` from the `@azur import { InteractiveBrowserCredential } from "@azure/identity"; import { SecurityCenter } from "@azure/arm-security"; -const subscriptionId = "00000000-0000-0000-0000-000000000000"; const credential = new InteractiveBrowserCredential({ tenantId: "", - clientId: "", -}); + clientId: "" + }); const client = new SecurityCenter(credential, subscriptionId); ``` ### JavaScript Bundle - To use this client library in the browser, first you need to use a bundler. For details on how to do this, please refer to our [bundling documentation](https://aka.ms/AzureSDKBundling). ## Key concepts @@ -109,7 +106,6 @@ If you'd like to contribute to this library, please read the [contributing guide - [Microsoft Azure SDK for JavaScript](https://github.com/Azure/azure-sdk-for-js) - [azure_cli]: https://learn.microsoft.com/cli/azure [azure_sub]: https://azure.microsoft.com/free/ [azure_sub]: https://azure.microsoft.com/free/ diff --git a/sdk/security/arm-security/_meta.json b/sdk/security/arm-security/_meta.json index 922a39a7437f..fa4be7bbc2d8 100644 --- a/sdk/security/arm-security/_meta.json +++ b/sdk/security/arm-security/_meta.json @@ -1,8 +1,8 @@ { - "commit": "c43d0d41a6edc75a2cf452e33ea9344863db3c9e", + "commit": "6a95c757593e04a726c01db8144c8f343ac3cff5", "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" -} \ No newline at end of file + "release_tool": "@azure-tools/js-sdk-release-tools@2.7.27", + "use": "@autorest/typescript@^6.0.12" +} diff --git a/sdk/security/arm-security/api-extractor.json b/sdk/security/arm-security/api-extractor.json index 7cf220f6e984..1c619288bab5 100644 --- a/sdk/security/arm-security/api-extractor.json +++ b/sdk/security/arm-security/api-extractor.json @@ -28,4 +28,4 @@ } } } -} +} \ No newline at end of file diff --git a/sdk/security/arm-security/package.json b/sdk/security/arm-security/package.json index 131451c66a8e..a8858f6284e8 100644 --- a/sdk/security/arm-security/package.json +++ b/sdk/security/arm-security/package.json @@ -10,10 +10,10 @@ "dependencies": { "@azure/abort-controller": "^2.1.2", "@azure/core-auth": "^1.9.0", - "@azure/core-client": "^1.9.2", + "@azure/core-client": "^1.9.4", "@azure/core-lro": "^2.5.4", "@azure/core-paging": "^1.6.2", - "@azure/core-rest-pipeline": "^1.19.0", + "@azure/core-rest-pipeline": "^1.20.0", "tslib": "^2.8.1" }, "keywords": [ @@ -21,31 +21,30 @@ "azure", "typescript", "browser", - "isomorphic" + "isomorphic", + "cloud" ], "license": "MIT", "main": "./dist/commonjs/index.js", "module": "./dist/esm/index.js", "types": "./dist/commonjs/index.d.ts", + "type": "module", "devDependencies": { "@azure-tools/test-credential": "^2.0.0", "@azure-tools/test-recorder": "^4.1.0", "@azure-tools/test-utils-vitest": "^1.0.0", "@azure/dev-tool": "^1.0.0", - "@azure/identity": "^4.6.0", - "@azure/logger": "^1.1.4", + "@azure/identity": "^4.9.1", + "@azure/logger": "^1.2.0", "@types/node": "^18.0.0", "@vitest/browser": "^3.0.9", "@vitest/coverage-istanbul": "^3.0.9", "dotenv": "^16.0.0", - "playwright": "^1.50.1", + "playwright": "^1.52.0", "typescript": "~5.8.2", "vitest": "^3.0.9" }, - "repository": { - "type": "git", - "url": "https://github.com/Azure/azure-sdk-for-js.git" - }, + "repository": "github:Azure/azure-sdk-for-js", "bugs": { "url": "https://github.com/Azure/azure-sdk-for-js/issues" }, @@ -58,20 +57,30 @@ ], "scripts": { "build": "npm run clean && dev-tool run build-package && dev-tool run extract-api", + "build:browser": "echo skipped", + "build:node": "echo skipped", "build:samples": "echo skipped.", - "check-format": "echo skipped", + "build:test": "echo skipped", + "check-format": "dev-tool run vendored prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.{ts,cts,mts}\" \"test/**/*.{ts,cts,mts}\" \"*.{js,cjs,mjs,json}\" ", "clean": "dev-tool run vendored rimraf --glob dist dist-browser dist-esm test-dist temp types *.tgz *.log", "execute:samples": "echo skipped", "extract-api": "dev-tool run extract-api", - "format": "echo skipped", + "format": "dev-tool run vendored prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.{ts,cts,mts}\" \"test/**/*.{ts,cts,mts}\" \"*.{js,cjs,mjs,json}\" ", + "integration-test": "npm run integration-test:node && npm run integration-test:browser", + "integration-test:browser": "echo skipped", + "integration-test:node": "dev-tool run test:vitest --esm", "lint": "echo skipped", + "minify": "dev-tool run vendored uglifyjs -c -m --comments --source-map \"content='./dist/index.js.map'\" -o ./dist/index.min.js ./dist/index.js", "pack": "npm pack 2>&1", "prepack": "npm run build", - "test": "npm run test:node && npm run test:browser", + "test": "npm run integration-test", "test:browser": "echo skipped", "test:node": "dev-tool run test:vitest", - "test:node:esm": "dev-tool run test:vitest --esm", - "update-snippets": "dev-tool run update-snippets" + "unit-test": "npm run unit-test:node && npm run unit-test:browser", + "unit-test:browser": "echo skipped", + "unit-test:node": "dev-tool run test:vitest", + "update-snippets": "dev-tool run update-snippets", + "test:node:esm": "dev-tool run test:vitest --esm" }, "sideEffects": false, "//metadata": { @@ -83,16 +92,9 @@ ] }, "autoPublish": true, + "browser": "./dist/browser/index.js", + "react-native": "./dist/react-native/index.js", "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/security/arm-security", - "//sampleConfiguration": { - "productName": "", - "productSlugs": [ - "azure" - ], - "disableDocsMs": true, - "apiRefLink": "https://learn.microsoft.com/javascript/api/@azure/arm-security?view=azure-node-preview" - }, - "type": "module", "tshy": { "project": "./tsconfig.src.json", "exports": { @@ -109,8 +111,6 @@ ], "selfLink": false }, - "browser": "./dist/browser/index.js", - "react-native": "./dist/react-native/index.js", "exports": { "./package.json": "./package.json", ".": { @@ -132,4 +132,4 @@ } } } -} +} \ 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..ba325c91b2d3 100644 --- a/sdk/security/arm-security/review/arm-security.api.md +++ b/sdk/security/arm-security/review/arm-security.api.md @@ -27,6 +27,13 @@ export interface AadExternalSecuritySolution extends ExternalSecuritySolution { export interface AadSolutionProperties extends ExternalSecuritySolutionProperties, AadConnectivityStateAutoGenerated { } +// @public +export interface AccessTokenAuthentication extends Authentication { + accessToken?: string; + authenticationType: "AccessToken"; + username?: string; +} + // @public export interface ActionableRemediation { branchConfiguration?: TargetBranchConfiguration; @@ -46,124 +53,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"; @@ -210,6 +99,18 @@ export interface AdvancedThreatProtectionSetting extends Resource { isEnabled?: boolean; } +// @public +export interface AgentlessConfiguration { + agentlessAutoDiscovery?: AutoDiscovery; + agentlessEnabled?: AgentlessEnablement; + inventoryList?: InventoryList[]; + inventoryListType?: InventoryListKind; + scanners?: string[]; +} + +// @public +export type AgentlessEnablement = string; + // @public export interface Alert extends Resource { readonly alertDisplayName?: string; @@ -733,6 +634,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; @@ -875,6 +797,16 @@ export interface AssessmentStatusResponse extends AssessmentStatus { // @public export type AssessmentType = string; +// @public +export interface AssignedAssessmentItem { + assessmentKey?: string; +} + +// @public +export interface AssignedStandardItem { + id?: string; +} + // @public export interface AtaExternalSecuritySolution extends ExternalSecuritySolution { properties?: AtaSolutionProperties; @@ -886,6 +818,20 @@ export interface AtaSolutionProperties extends ExternalSecuritySolutionPropertie lastEventReceived?: string; } +// @public +export type AttestationComplianceState = string; + +// @public +export interface AttestationEvidence { + description?: string; + sourceUrl?: string; +} + +// @public +export interface Authentication { + authenticationType: "AccessToken"; +} + // @public export interface AuthenticationDetailsProperties { readonly authenticationProvisioningState?: AuthenticationProvisioningState; @@ -902,6 +848,9 @@ export type AuthenticationProvisioningState = string; // @public export type AuthenticationType = string; +// @public (undocumented) +export type AuthenticationUnion = Authentication | AccessTokenAuthentication; + // @public export interface Authorization { code?: string; @@ -1186,7 +1135,7 @@ export interface AzureDevOpsOrgListResponse { export interface AzureDevOpsOrgProperties { actionableRemediation?: ActionableRemediation; onboardingState?: OnboardingState; - provisioningState?: DevOpsProvisioningState; + readonly provisioningState?: DevOpsProvisioningState; readonly provisioningStatusMessage?: string; readonly provisioningStatusUpdateTimeUtc?: Date; } @@ -1274,7 +1223,7 @@ export interface AzureDevOpsProjectProperties { onboardingState?: OnboardingState; parentOrgName?: string; readonly projectId?: string; - provisioningState?: DevOpsProvisioningState; + readonly provisioningState?: DevOpsProvisioningState; readonly provisioningStatusMessage?: string; readonly provisioningStatusUpdateTimeUtc?: Date; } @@ -1372,7 +1321,7 @@ export interface AzureDevOpsRepositoryProperties { onboardingState?: OnboardingState; parentOrgName?: string; parentProjectName?: string; - provisioningState?: DevOpsProvisioningState; + readonly provisioningState?: DevOpsProvisioningState; readonly provisioningStatusMessage?: string; readonly provisioningStatusUpdateTimeUtc?: Date; readonly repoId?: string; @@ -1461,6 +1410,15 @@ export interface BenchmarkReference { reference?: string; } +// @public +export interface BlobsScanSummary { + failedBlobsCount?: number; + maliciousBlobsCount?: number; + scannedBlobsInGB?: number; + skippedBlobsCount?: number; + totalBlobsScanned?: number; +} + // @public export interface BuiltInInfoType { id?: string; @@ -1519,11 +1477,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" | "CspmMonitorDockerHub" | "DefenderForContainersDockerHub" | "DefenderCspmDockerHub" | "CspmMonitorJFrog" | "DefenderForContainersJFrog" | "DefenderCspmJFrog"; } // @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 | CspmMonitorDockerHubOffering | DefenderForContainersDockerHubOffering | DefenderCspmDockerHubOffering | CspmMonitorJFrogOffering | DefenderForContainersJFrogOffering | DefenderCspmJFrogOffering; // @public export type Code = string; @@ -1619,9 +1577,6 @@ export interface Condition { value?: string; } -// @public -export type ConfigurationStatus = string; - // @public export interface ConnectableResource { readonly id?: string; @@ -1743,6 +1698,11 @@ export interface CspmMonitorAzureDevOpsOffering extends CloudOffering { offeringType: "CspmMonitorAzureDevOps"; } +// @public +export interface CspmMonitorDockerHubOffering extends CloudOffering { + offeringType: "CspmMonitorDockerHub"; +} + // @public export interface CspmMonitorGcpOffering extends CloudOffering { nativeCloudConnection?: CspmMonitorGcpOfferingNativeCloudConnection; @@ -1765,6 +1725,11 @@ export interface CspmMonitorGitLabOffering extends CloudOffering { offeringType: "CspmMonitorGitLab"; } +// @public +export interface CspmMonitorJFrogOffering extends CloudOffering { + offeringType: "CspmMonitorJFrog"; +} + // @public export interface CustomAlertRule { readonly description?: string; @@ -1932,6 +1897,65 @@ export interface CustomEntityStoreAssignmentsListResult { readonly value?: CustomEntityStoreAssignment[]; } +// @public +export interface CustomRecommendation extends Resource { + readonly assessmentKey?: string; + cloudProviders?: RecommendationSupportedClouds[]; + description?: string; + displayName?: string; + query?: string; + remediationDescription?: string; + securityIssue?: SecurityIssue; + severity?: SeverityEnum; + readonly systemData?: SystemData; +} + +// @public +export interface CustomRecommendations { + createOrUpdate(scope: string, customRecommendationName: string, customRecommendationBody: CustomRecommendation, options?: CustomRecommendationsCreateOrUpdateOptionalParams): Promise; + delete(scope: string, customRecommendationName: string, options?: CustomRecommendationsDeleteOptionalParams): Promise; + get(scope: string, customRecommendationName: string, options?: CustomRecommendationsGetOptionalParams): Promise; + list(scope: string, options?: CustomRecommendationsListOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface CustomRecommendationsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type CustomRecommendationsCreateOrUpdateResponse = CustomRecommendation; + +// @public +export interface CustomRecommendationsDeleteOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface CustomRecommendationsGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type CustomRecommendationsGetResponse = CustomRecommendation; + +// @public +export interface CustomRecommendationsList { + nextLink?: string; + readonly value: CustomRecommendation[]; +} + +// @public +export interface CustomRecommendationsListNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type CustomRecommendationsListNextResponse = CustomRecommendationsList; + +// @public +export interface CustomRecommendationsListOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type CustomRecommendationsListResponse = CustomRecommendationsList; + // @public export interface Cve { readonly link?: string; @@ -2005,18 +2029,12 @@ export interface DefenderCspmAwsOfferingMdcContainersImageAssessment { } // @public -export interface DefenderCspmAwsOfferingVmScanners { - configuration?: DefenderCspmAwsOfferingVmScannersConfiguration; - enabled?: boolean; +export interface DefenderCspmAwsOfferingVmScanners extends VmScannersAws { } // @public -export interface DefenderCspmAwsOfferingVmScannersConfiguration { - cloudRoleArn?: string; - exclusionTags?: { - [propertyName: string]: string; - }; - scanningMode?: ScanningMode; +export interface DefenderCspmDockerHubOffering extends CloudOffering { + offeringType: "DefenderCspmDockerHub"; } // @public @@ -2058,17 +2076,18 @@ export interface DefenderCspmGcpOfferingMdcContainersImageAssessment { } // @public -export interface DefenderCspmGcpOfferingVmScanners { - configuration?: DefenderCspmGcpOfferingVmScannersConfiguration; - enabled?: boolean; +export interface DefenderCspmGcpOfferingVmScanners extends VmScannersGcp { } // @public -export interface DefenderCspmGcpOfferingVmScannersConfiguration { - exclusionTags?: { - [propertyName: string]: string; - }; - scanningMode?: ScanningMode; +export interface DefenderCspmJFrogOffering extends CloudOffering { + mdcContainersImageAssessment?: DefenderCspmJFrogOfferingMdcContainersImageAssessment; + offeringType: "DefenderCspmJFrog"; +} + +// @public +export interface DefenderCspmJFrogOfferingMdcContainersImageAssessment { + enabled?: boolean; } // @public @@ -2080,16 +2099,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 +2116,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 +2136,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 +2163,26 @@ export interface DefenderForContainersAwsOfferingMdcContainersImageAssessment { enabled?: boolean; } +// @public +export interface DefenderForContainersAwsOfferingVmScanners extends VmScannersAws { +} + +// @public +export interface DefenderForContainersDockerHubOffering extends CloudOffering { + offeringType: "DefenderForContainersDockerHub"; +} + // @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 +2211,15 @@ export interface DefenderForContainersGcpOfferingNativeCloudConnection { workloadIdentityProviderId?: string; } +// @public +export interface DefenderForContainersGcpOfferingVmScanners extends VmScannersGcp { +} + +// @public +export interface DefenderForContainersJFrogOffering extends CloudOffering { + offeringType: "DefenderForContainersJFrog"; +} + // @public export interface DefenderForDatabasesGcpOffering extends CloudOffering { arcAutoProvisioning?: DefenderForDatabasesGcpOfferingArcAutoProvisioning; @@ -2209,15 +2228,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 +2237,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 +2249,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 +2280,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 +2295,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,25 +2327,25 @@ export interface DefenderForServersGcpOfferingVaAutoProvisioningConfiguration { } // @public -export interface DefenderForServersGcpOfferingVmScanners { - configuration?: DefenderForServersGcpOfferingVmScannersConfiguration; - enabled?: boolean; +export interface DefenderForServersGcpOfferingVmScanners extends VmScannersGcp { } // @public -export interface DefenderForServersGcpOfferingVmScannersConfiguration { - exclusionTags?: { - [propertyName: string]: string; - }; - scanningMode?: ScanningMode; +export interface DefenderForStorage { + cancelMalwareScan(resourceId: string, settingName: SettingNameAutoGenerated, scanId: string, options?: DefenderForStorageCancelMalwareScanOptionalParams): Promise; + create(resourceId: string, settingName: SettingNameAutoGenerated, defenderForStorageSetting: DefenderForStorageSetting, options?: DefenderForStorageCreateOptionalParams): Promise; + get(resourceId: string, settingName: SettingNameAutoGenerated, options?: DefenderForStorageGetOptionalParams): Promise; + getMalwareScan(resourceId: string, settingName: SettingNameAutoGenerated, scanId: string, options?: DefenderForStorageGetMalwareScanOptionalParams): Promise; + startMalwareScan(resourceId: string, settingName: SettingNameAutoGenerated, options?: DefenderForStorageStartMalwareScanOptionalParams): Promise; } // @public -export interface DefenderForStorage { - create(resourceId: string, settingName: SettingName, defenderForStorageSetting: DefenderForStorageSetting, options?: DefenderForStorageCreateOptionalParams): Promise; - get(resourceId: string, settingName: SettingName, options?: DefenderForStorageGetOptionalParams): Promise; +export interface DefenderForStorageCancelMalwareScanOptionalParams extends coreClient.OperationOptions { } +// @public +export type DefenderForStorageCancelMalwareScanResponse = MalwareScan; + // @public export interface DefenderForStorageCreateOptionalParams extends coreClient.OperationOptions { } @@ -2385,6 +2353,13 @@ export interface DefenderForStorageCreateOptionalParams extends coreClient.Opera // @public export type DefenderForStorageCreateResponse = DefenderForStorageSetting; +// @public +export interface DefenderForStorageGetMalwareScanOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type DefenderForStorageGetMalwareScanResponse = MalwareScan; + // @public export interface DefenderForStorageGetOptionalParams extends coreClient.OperationOptions { } @@ -2394,16 +2369,24 @@ 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 +export interface DefenderForStorageStartMalwareScanOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type DefenderForStorageStartMalwareScanResponse = MalwareScan; + // @public export interface DenylistCustomAlertRule extends ListCustomAlertRule { denylistValues: string[]; @@ -2467,6 +2450,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; @@ -2481,9 +2470,11 @@ export interface DevOpsConfigurationListResponse { // @public export interface DevOpsConfigurationProperties { + agentlessConfiguration?: AgentlessConfiguration; authorization?: Authorization; autoDiscovery?: AutoDiscovery; - provisioningState?: DevOpsProvisioningState; + readonly capabilities?: DevOpsCapability[]; + readonly provisioningState?: DevOpsProvisioningState; readonly provisioningStatusMessage?: string; readonly provisioningStatusUpdateTimeUtc?: Date; topLevelInventoryList?: string[]; @@ -2561,9 +2552,6 @@ export type DevOpsOperationResultsGetResponse = OperationStatusResult; // @public export type DevOpsProvisioningState = string; -// @public -export type Direction = string; - // @public export interface DirectMethodInvokesNotInAllowedRange extends TimeWindowCustomAlertRule { ruleType: "DirectMethodInvokesNotInAllowedRange"; @@ -2627,30 +2615,28 @@ export interface DiscoveredSecuritySolutionsListOptionalParams extends coreClien export type DiscoveredSecuritySolutionsListResponse = DiscoveredSecuritySolutionList; // @public -export interface EffectiveNetworkSecurityGroups { - networkInterface?: string; - networkSecurityGroups?: string[]; +export interface DockerHubEnvironmentData extends EnvironmentData { + authentication?: AuthenticationUnion; + environmentType: "DockerHubOrganization"; + scanInterval?: number; } // @public -export type EndOfSupportStatus = string; - -// @public -export type Enforce = string; +export type Effect = string; // @public -export type EnforcementMode = string; +export type EndOfSupportStatus = string; // @public -export type EnforcementSupport = string; +export type Enforce = string; // @public export interface EnvironmentData { - environmentType: "AwsAccount" | "GcpProject" | "GithubScope" | "AzureDevOpsScope" | "GitlabScope"; + environmentType: "AwsAccount" | "GcpProject" | "GithubScope" | "AzureDevOpsScope" | "GitlabScope" | "DockerHubOrganization" | "JFrogArtifactory"; } // @public (undocumented) -export type EnvironmentDataUnion = EnvironmentData | AwsEnvironmentData | GcpProjectEnvironmentData | GithubScopeEnvironmentData | AzureDevOpsScopeEnvironmentData | GitlabScopeEnvironmentData; +export type EnvironmentDataUnion = EnvironmentData | AwsEnvironmentData | GcpProjectEnvironmentData | GithubScopeEnvironmentData | AzureDevOpsScopeEnvironmentData | GitlabScopeEnvironmentData | DockerHubEnvironmentData | JFrogEnvironmentData; // @public export interface EnvironmentDetails { @@ -2688,6 +2674,28 @@ export interface ErrorDetailAutoGenerated { readonly target?: string; } +// @public +export interface ErrorDetailAutoGenerated2 { + readonly additionalInfo?: ErrorAdditionalInfo[]; + readonly code?: string; + readonly details?: ErrorDetailAutoGenerated2[]; + readonly message?: string; + readonly target?: string; +} + +// @public +export interface ErrorDetails { + code: string; + message: string; +} + +// @public +export interface ErrorModel { + code: string; + details?: ErrorDetails[]; + message: string; +} + // @public export interface ErrorResponse { error?: ErrorDetail; @@ -2698,6 +2706,16 @@ export interface ErrorResponseAutoGenerated { error?: ErrorDetailAutoGenerated; } +// @public +export interface ErrorResponseAutoGenerated2 { + error: ErrorModel; +} + +// @public +export interface ErrorResponseAutoGenerated3 { + error?: ErrorDetailAutoGenerated2; +} + // @public export interface ETag { etag?: string; @@ -2712,6 +2730,9 @@ export interface ExecuteGovernanceRuleParams { override?: boolean; } +// @public +export type ExemptionCategory = string; + // @public export type ExpandControlsEnum = string; @@ -2728,7 +2749,7 @@ export interface Extension { }; isEnabled: IsEnabled; name: string; - readonly operationStatus?: OperationStatusAutoGenerated; + readonly operationStatus?: OperationStatus; } // @public @@ -2807,9 +2828,6 @@ export interface FailedLocalLoginsNotInAllowedRange extends TimeWindowCustomAler ruleType: "FailedLocalLoginsNotInAllowedRange"; } -// @public -export type FileType = string; - // @public export interface FileUploadsNotInAllowedRange extends TimeWindowCustomAlertRule { ruleType: "FileUploadsNotInAllowedRange"; @@ -2880,13 +2898,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 +2947,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 +3016,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 +3069,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 +3128,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 +3474,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; @@ -3565,6 +3565,18 @@ export type InheritFromParentState = string; // @public export type Intent = string; +// @public +export type InventoryKind = string; + +// @public +export interface InventoryList { + inventoryKind?: InventoryKind; + value?: string; +} + +// @public +export type InventoryListKind = string; + // @public export interface IoTSecurityAggregatedAlert extends Resource, TagsResource { readonly actionTaken?: string; @@ -3849,6 +3861,12 @@ export interface Issue { securityValues?: string[]; } +// @public +export interface JFrogEnvironmentData extends EnvironmentData { + environmentType: "JFrogArtifactory"; + scanInterval?: number; +} + // @public export interface JitNetworkAccessPolicies { createOrUpdate(resourceGroupName: string, ascLocation: string, jitNetworkAccessPolicyName: string, body: JitNetworkAccessPolicy, options?: JitNetworkAccessPoliciesCreateOrUpdateOptionalParams): Promise; @@ -4047,20 +4065,11 @@ export enum KnownActionableRemediationState { // @public export enum KnownActionType { EventHub = "EventHub", + Internal = "Internal", LogicApp = "LogicApp", Workspace = "Workspace" } -// @public -export enum KnownAdaptiveApplicationControlIssue { - ExecutableViolationsAudited = "ExecutableViolationsAudited", - MsiAndScriptViolationsAudited = "MsiAndScriptViolationsAudited", - MsiAndScriptViolationsBlocked = "MsiAndScriptViolationsBlocked", - RulesViolatedManually = "RulesViolatedManually", - ViolationsAudited = "ViolationsAudited", - ViolationsBlocked = "ViolationsBlocked" -} - // @public export enum KnownAdditionalWorkspaceDataType { Alerts = "Alerts", @@ -4072,6 +4081,13 @@ export enum KnownAdditionalWorkspaceType { Sentinel = "Sentinel" } +// @public +export enum KnownAgentlessEnablement { + Disabled = "Disabled", + Enabled = "Enabled", + NotApplicable = "NotApplicable" +} + // @public export enum KnownAlertSeverity { High = "High", @@ -4128,6 +4144,13 @@ export enum KnownAssessmentType { VerifiedPartner = "VerifiedPartner" } +// @public +export enum KnownAttestationComplianceState { + Compliant = "compliant", + NonCompliant = "nonCompliant", + Unknown = "unknown" +} + // @public export enum KnownAuthenticationProvisioningState { Expired = "Expired", @@ -4183,9 +4206,11 @@ export enum KnownCloudName { AWS = "AWS", Azure = "Azure", AzureDevOps = "AzureDevOps", + DockerHub = "DockerHub", GCP = "GCP", Github = "Github", - GitLab = "GitLab" + GitLab = "GitLab", + JFrog = "JFrog" } // @public @@ -4194,15 +4219,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", @@ -4246,9 +4262,10 @@ export enum KnownDevOpsProvisioningState { } // @public -export enum KnownDirection { - Inbound = "Inbound", - Outbound = "Outbound" +export enum KnownEffect { + Attest = "Attest", + Audit = "Audit", + Exempt = "Exempt" } // @public @@ -4261,32 +4278,20 @@ export enum KnownEndOfSupportStatus { } // @public -export enum KnownEnforce { - False = "False", - True = "True" -} - -// @public -export enum KnownEnforcementMode { - Audit = "Audit", - Enforce = "Enforce", - None = "None" -} - -// @public -export enum KnownEnforcementSupport { - NotSupported = "NotSupported", - Supported = "Supported", - Unknown = "Unknown" +export enum KnownEnforce { + False = "False", + True = "True" } // @public export enum KnownEnvironmentType { AwsAccount = "AwsAccount", AzureDevOpsScope = "AzureDevOpsScope", + DockerHubOrganization = "DockerHubOrganization", GcpProject = "GcpProject", GithubScope = "GithubScope", - GitlabScope = "GitlabScope" + GitlabScope = "GitlabScope", + JFrogArtifactory = "JFrogArtifactory" } // @public @@ -4306,6 +4311,12 @@ export enum KnownEventSource { SubAssessmentsSnapshot = "SubAssessmentsSnapshot" } +// @public +export enum KnownExemptionCategory { + Mitigated = "mitigated", + Waiver = "waiver" +} + // @public export enum KnownExpandControlsEnum { Definition = "definition" @@ -4329,16 +4340,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", @@ -4414,6 +4415,21 @@ export enum KnownIntent { Unknown = "Unknown" } +// @public +export enum KnownInventoryKind { + AzureDevOpsOrganization = "AzureDevOpsOrganization", + AzureDevOpsProject = "AzureDevOpsProject", + AzureDevOpsRepository = "AzureDevOpsRepository", + GitHubOwner = "GitHubOwner", + GitHubRepository = "GitHubRepository" +} + +// @public +export enum KnownInventoryListKind { + Exclusion = "Exclusion", + Inclusion = "Inclusion" +} + // @public export enum KnownIsEnabled { False = "False", @@ -4452,21 +4468,23 @@ export enum KnownMipIntegrationStatus { export enum KnownOfferingType { CspmMonitorAws = "CspmMonitorAws", CspmMonitorAzureDevOps = "CspmMonitorAzureDevOps", + CspmMonitorDockerHub = "CspmMonitorDockerHub", CspmMonitorGcp = "CspmMonitorGcp", CspmMonitorGithub = "CspmMonitorGithub", CspmMonitorGitLab = "CspmMonitorGitLab", + CspmMonitorJFrog = "CspmMonitorJFrog", DefenderCspmAws = "DefenderCspmAws", + DefenderCspmDockerHub = "DefenderCspmDockerHub", DefenderCspmGcp = "DefenderCspmGcp", + DefenderCspmJFrog = "DefenderCspmJFrog", DefenderForContainersAws = "DefenderForContainersAws", + DefenderForContainersDockerHub = "DefenderForContainersDockerHub", DefenderForContainersGcp = "DefenderForContainersGcp", + DefenderForContainersJFrog = "DefenderForContainersJFrog", DefenderForDatabasesAws = "DefenderForDatabasesAws", DefenderForDatabasesGcp = "DefenderForDatabasesGcp", - DefenderForDevOpsAzureDevOps = "DefenderForDevOpsAzureDevOps", - DefenderForDevOpsGithub = "DefenderForDevOpsGithub", - DefenderForDevOpsGitLab = "DefenderForDevOpsGitLab", DefenderForServersAws = "DefenderForServersAws", - DefenderForServersGcp = "DefenderForServersGcp", - InformationProtectionAws = "InformationProtectionAws" + DefenderForServersGcp = "DefenderForServersGcp" } // @public @@ -4503,6 +4521,13 @@ export enum KnownOrganizationMembershipType { Organization = "Organization" } +// @public +export enum KnownOrigin { + System = "system", + User = "user", + UserSystem = "user,system" +} + // @public export enum KnownPermissionProperty { AWSAmazonSSMAutomationRole = "AWS::AmazonSSMAutomationRole", @@ -4539,13 +4564,6 @@ export enum KnownProvisioningState { Updating = "Updating" } -// @public -export enum KnownRecommendationAction { - Add = "Add", - Recommended = "Recommended", - Remove = "Remove" -} - // @public export enum KnownRecommendationConfigStatus { Disabled = "Disabled", @@ -4553,11 +4571,10 @@ export enum KnownRecommendationConfigStatus { } // @public -export enum KnownRecommendationStatus { - NoStatus = "NoStatus", - NotAvailable = "NotAvailable", - NotRecommended = "NotRecommended", - Recommended = "Recommended" +export enum KnownRecommendationSupportedClouds { + AWS = "AWS", + Azure = "Azure", + GCP = "GCP" } // @public @@ -4683,6 +4700,16 @@ export enum KnownSecurityFamily { Waf = "Waf" } +// @public +export enum KnownSecurityIssue { + AnonymousAccess = "AnonymousAccess", + BestPractices = "BestPractices", + ExcessivePermissions = "ExcessivePermissions", + NetworkExposure = "NetworkExposure", + TrafficEncryption = "TrafficEncryption", + Vulnerability = "Vulnerability" +} + // @public export enum KnownSecuritySolutionStatus { Disabled = "Disabled", @@ -4722,11 +4749,6 @@ export enum KnownSettingKind { // @public export enum KnownSettingName { - Current = "current" -} - -// @public -export enum KnownSettingNameAutoGenerated { Mcas = "MCAS", Sentinel = "Sentinel", Wdatp = "WDATP", @@ -4734,6 +4756,11 @@ export enum KnownSettingNameAutoGenerated { WdatpUnifiedSolution = "WDATP_UNIFIED_SOLUTION" } +// @public +export enum KnownSettingNameAutoGenerated { + Current = "current" +} + // @public export enum KnownSeverity { High = "High", @@ -4755,21 +4782,26 @@ 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", AttackPath = "AttackPath" } +// @public +export enum KnownStandardSupportedCloud { + AWS = "AWS", + Azure = "Azure", + GCP = "GCP" +} + +// @public +export enum KnownStandardType { + Compliance = "Compliance", + Custom = "Custom", + Default = "Default" +} + // @public export enum KnownState { Failed = "Failed", @@ -4964,12 +4996,6 @@ export enum KnownThreats { ThreatResistance = "threatResistance" } -// @public -export enum KnownTransportProtocol { - TCP = "TCP", - UDP = "UDP" -} - // @public export enum KnownType { Qualys = "Qualys", @@ -5058,6 +5084,29 @@ export interface LogAnalyticsIdentifier extends ResourceIdentifier { readonly workspaceSubscriptionId?: string; } +// @public +export interface MalwareScan { + // (undocumented) + properties?: MalwareScanProperties; +} + +// @public +export interface MalwareScanningProperties { + onUpload?: OnUploadProperties; + readonly operationStatus?: OperationStatusAutoGenerated; + scanResultsEventGridTopicResourceId?: string; +} + +// @public (undocumented) +export interface MalwareScanProperties { + scanEndTime?: string; + scanId?: string; + scanStartTime?: string; + scanStatus?: string; + scanStatusMessage?: string; + scanSummary?: ScanSummary; +} + // @public export interface MdeOnboardingData extends Resource { onboardingPackageLinux?: Uint8Array; @@ -5158,11 +5207,19 @@ export interface OnPremiseSqlResourceDetails extends OnPremiseResourceDetails { source: "OnPremiseSql"; } +// @public +export interface OnUploadProperties { + capGBPerMonth?: number; + isEnabled?: boolean; +} + // @public export interface Operation { + readonly actionType?: ActionType; display?: OperationDisplay; + readonly isDataAction?: boolean; readonly name?: string; - readonly origin?: string; + readonly origin?: Origin; } // @public @@ -5174,9 +5231,9 @@ export interface OperationDisplay { } // @public -export interface OperationList { +export interface OperationListResult { readonly nextLink?: string; - value?: Operation[]; + readonly value?: Operation[]; } // @public @@ -5197,31 +5254,31 @@ export interface OperationsListNextOptionalParams extends coreClient.OperationOp } // @public -export type OperationsListNextResponse = OperationList; +export type OperationsListNextResponse = OperationListResult; // @public export interface OperationsListOptionalParams extends coreClient.OperationOptions { } // @public -export type OperationsListResponse = OperationList; +export type OperationsListResponse = OperationListResult; // @public export interface OperationStatus { - code?: string; + code?: Code; message?: string; } // @public export interface OperationStatusAutoGenerated { - code?: Code; + code?: string; message?: string; } // @public export interface OperationStatusResult { endTime?: Date; - error?: ErrorDetailAutoGenerated; + error?: ErrorDetailAutoGenerated2; id?: string; name?: string; operations?: OperationStatusResult[]; @@ -5237,18 +5294,18 @@ export type Operator = string; 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[]; +export type Origin = string; + +// @public +export interface ParametersSchema { + scenarioName: string; + scenarioParameters: Record; + scopes: string[]; +} + +// @public +export interface PartialAssessmentProperties { + assessmentKey?: string; } // @public @@ -5319,14 +5376,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; @@ -5334,7 +5383,7 @@ export type Protocol = string; export type ProvisioningState = string; // @public -export interface ProxyResource extends ResourceAutoGenerated { +export interface ProxyResource extends ResourceAutoGenerated2 { } // @public @@ -5343,14 +5392,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 +5407,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; @@ -5380,7 +5418,7 @@ export interface RecommendationConfigurationProperties { } // @public -export type RecommendationStatus = string; +export type RecommendationSupportedClouds = string; // @public export type RecommendationType = string; @@ -5547,6 +5585,7 @@ export interface Resource { export interface ResourceAutoGenerated { readonly id?: string; readonly name?: string; + readonly systemData?: SystemData; readonly type?: string; } @@ -5554,7 +5593,6 @@ export interface ResourceAutoGenerated { export interface ResourceAutoGenerated2 { readonly id?: string; readonly name?: string; - readonly systemData?: SystemData; readonly type?: string; } @@ -5590,15 +5628,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; @@ -5699,9 +5728,20 @@ export interface Scans { // @public export type ScanState = string; +// @public +export interface ScanSummary { + blobs?: BlobsScanSummary; + estimatedScanCostUSD?: number; +} + // @public export type ScanTriggerType = string; +// @public +export interface ScenarioResponse { + scenarioResult?: Record; +} + // @public export interface ScopeElement { [property: string]: any; @@ -6028,10 +6068,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; @@ -6070,6 +6106,8 @@ export class SecurityCenter extends coreClient.ServiceClient { // (undocumented) customEntityStoreAssignments: CustomEntityStoreAssignments; // (undocumented) + customRecommendations: CustomRecommendations; + // (undocumented) defenderForStorage: DefenderForStorage; // (undocumented) deviceSecurityGroups: DeviceSecurityGroups; @@ -6081,7 +6119,6 @@ export class SecurityCenter extends coreClient.ServiceClient { discoveredSecuritySolutions: DiscoveredSecuritySolutions; // (undocumented) externalSecuritySolutions: ExternalSecuritySolutions; - getSensitivitySettings(options?: GetSensitivitySettingsOptionalParams): Promise; // (undocumented) gitHubOwners: GitHubOwners; // (undocumented) @@ -6145,6 +6182,8 @@ export class SecurityCenter extends coreClient.ServiceClient { // (undocumented) securitySolutionsReferenceDataOperations: SecuritySolutionsReferenceDataOperations; // (undocumented) + securityStandards: SecurityStandards; + // (undocumented) sensitivitySettings: SensitivitySettings; // (undocumented) serverVulnerabilityAssessmentOperations: ServerVulnerabilityAssessmentOperations; @@ -6161,6 +6200,8 @@ export class SecurityCenter extends coreClient.ServiceClient { // (undocumented) sqlVulnerabilityAssessmentScans: SqlVulnerabilityAssessmentScans; // (undocumented) + standardAssignments: StandardAssignments; + // (undocumented) subAssessments: SubAssessments; // (undocumented) subscriptionId?: string; @@ -6168,7 +6209,7 @@ export class SecurityCenter extends coreClient.ServiceClient { tasks: Tasks; // (undocumented) topology: Topology; - updateSensitivitySettings(sensitivitySettings: UpdateSensitivitySettingsRequest, options?: UpdateSensitivitySettingsOptionalParams): Promise; + view(options?: ViewOptionalParams): Promise; // (undocumented) workspaceSettings: WorkspaceSettings; } @@ -6372,6 +6413,9 @@ export type SecurityContactsListResponse = SecurityContactList; // @public export type SecurityFamily = string; +// @public +export type SecurityIssue = string; + // @public export interface SecurityOperator extends Resource { identity?: Identity; @@ -6497,6 +6541,63 @@ export interface SecuritySolutionsReferenceDataOperations { // @public export type SecuritySolutionStatus = string; +// @public +export interface SecurityStandard extends Resource { + assessments?: PartialAssessmentProperties[]; + cloudProviders?: StandardSupportedCloud[]; + description?: string; + displayName?: string; + metadata?: StandardMetadata; + policySetDefinitionId?: string; + readonly standardType?: StandardType; +} + +// @public +export interface SecurityStandardList { + readonly nextLink?: string; + readonly value: SecurityStandard[]; +} + +// @public +export interface SecurityStandards { + createOrUpdate(scope: string, standardId: string, standard: SecurityStandard, options?: SecurityStandardsCreateOrUpdateOptionalParams): Promise; + delete(scope: string, standardId: string, options?: SecurityStandardsDeleteOptionalParams): Promise; + get(scope: string, standardId: string, options?: SecurityStandardsGetOptionalParams): Promise; + list(scope: string, options?: SecurityStandardsListOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface SecurityStandardsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type SecurityStandardsCreateOrUpdateResponse = SecurityStandard; + +// @public +export interface SecurityStandardsDeleteOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface SecurityStandardsGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type SecurityStandardsGetResponse = SecurityStandard; + +// @public +export interface SecurityStandardsListNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type SecurityStandardsListNextResponse = SecurityStandardList; + +// @public +export interface SecurityStandardsListOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type SecurityStandardsListResponse = SecurityStandardList; + // @public export interface SecuritySubAssessment extends Resource { additionalData?: AdditionalDataUnion; @@ -6538,6 +6639,12 @@ export interface SecurityTaskParameters { readonly name?: string; } +// @public +export interface SensitiveDataDiscoveryProperties { + isEnabled?: boolean; + readonly operationStatus?: OperationStatusAutoGenerated; +} + // @public export interface SensitivityLabel { description?: string; @@ -6549,9 +6656,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 { } @@ -6613,7 +6736,7 @@ export interface ServerVulnerabilityAssessmentsList { } // @public -export interface ServerVulnerabilityAssessmentsSetting extends ResourceAutoGenerated2 { +export interface ServerVulnerabilityAssessmentsSetting extends ResourceAutoGenerated { kind: ServerVulnerabilityAssessmentsSettingKind; } @@ -6708,9 +6831,9 @@ export type SettingNameAutoGenerated = string; // @public export interface Settings { - get(settingName: SettingNameAutoGenerated, options?: SettingsGetOptionalParams): Promise; + get(settingName: SettingName, options?: SettingsGetOptionalParams): Promise; list(options?: SettingsListOptionalParams): PagedAsyncIterableIterator; - update(settingName: SettingNameAutoGenerated, setting: SettingUnion, options?: SettingsUpdateOptionalParams): Promise; + update(settingName: SettingName, setting: SettingUnion, options?: SettingsUpdateOptionalParams): Promise; } // @public @@ -6821,9 +6944,6 @@ export interface SoftwaresList { // @public export type Source = string; -// @public -export type SourceSystem = string; - // @public export type SourceType = string; @@ -6917,6 +7037,101 @@ export interface SqlVulnerabilityAssessmentScansListOptionalParams extends coreC // @public export type SqlVulnerabilityAssessmentScansListResponse = Scans; +// @public +export interface StandardAssignment extends Resource { + assignedStandard?: AssignedStandardItem; + attestationData?: StandardAssignmentPropertiesAttestationData; + description?: string; + displayName?: string; + effect?: Effect; + excludedScopes?: string[]; + exemptionData?: StandardAssignmentPropertiesExemptionData; + expiresOn?: Date; + metadata?: StandardAssignmentMetadata; +} + +// @public +export interface StandardAssignmentMetadata { + readonly createdBy?: string; + readonly createdOn?: Date; + readonly lastUpdatedBy?: string; + readonly lastUpdatedOn?: Date; +} + +// @public +export interface StandardAssignmentPropertiesAttestationData { + assignedAssessment?: AssignedAssessmentItem; + readonly complianceDate?: Date; + complianceState?: AttestationComplianceState; + evidence?: AttestationEvidence[]; +} + +// @public +export interface StandardAssignmentPropertiesExemptionData { + assignedAssessment?: AssignedAssessmentItem; + exemptionCategory?: ExemptionCategory; +} + +// @public +export interface StandardAssignments { + create(resourceId: string, standardAssignmentName: string, standardAssignment: StandardAssignment, options?: StandardAssignmentsCreateOptionalParams): Promise; + delete(resourceId: string, standardAssignmentName: string, options?: StandardAssignmentsDeleteOptionalParams): Promise; + get(resourceId: string, standardAssignmentName: string, options?: StandardAssignmentsGetOptionalParams): Promise; + list(scope: string, options?: StandardAssignmentsListOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface StandardAssignmentsCreateOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type StandardAssignmentsCreateResponse = StandardAssignment; + +// @public +export interface StandardAssignmentsDeleteOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface StandardAssignmentsGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type StandardAssignmentsGetResponse = StandardAssignment; + +// @public +export interface StandardAssignmentsList { + readonly nextLink?: string; + readonly value: StandardAssignment[]; +} + +// @public +export interface StandardAssignmentsListNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type StandardAssignmentsListNextResponse = StandardAssignmentsList; + +// @public +export interface StandardAssignmentsListOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type StandardAssignmentsListResponse = StandardAssignmentsList; + +// @public +export interface StandardMetadata { + readonly createdBy?: string; + readonly createdOn?: Date; + readonly lastUpdatedBy?: string; + readonly lastUpdatedOn?: Date; +} + +// @public +export type StandardSupportedCloud = string; + +// @public +export type StandardType = string; + // @public export type State = string; @@ -7221,9 +7436,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 +7458,6 @@ export interface UpdateIotSecuritySolutionData extends TagsResource { userDefinedResources?: UserDefinedResourcesProperties; } -// @public -export interface UpdateSensitivitySettingsOptionalParams extends coreClient.OperationOptions { -} - // @public export interface UpdateSensitivitySettingsRequest { sensitiveInfoTypesIds: string[]; @@ -7257,9 +7465,6 @@ export interface UpdateSensitivitySettingsRequest { sensitivityThresholdLabelOrder?: number; } -// @public -export type UpdateSensitivitySettingsResponse = GetSensitivitySettingsResponse; - // @public export interface UserDefinedResourcesProperties { query: string | null; @@ -7269,12 +7474,6 @@ export interface UserDefinedResourcesProperties { // @public export type UserImpact = string; -// @public -export interface UserRecommendation { - recommendationAction?: RecommendationAction; - username?: string; -} - // @public export type ValueType = string; @@ -7298,11 +7497,34 @@ export interface VendorReference { } // @public -export interface VmRecommendation { - configurationStatus?: ConfigurationStatus; - enforcementSupport?: EnforcementSupport; - recommendationAction?: RecommendationAction; - resourceId?: string; +export interface ViewOptionalParams extends coreClient.OperationOptions { + parameters?: ParametersSchema; +} + +// @public +export type ViewResponse = ScenarioResponse; + +// @public +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/sample.env b/sdk/security/arm-security/sample.env index 672847a3fea0..508439fc7d62 100644 --- a/sdk/security/arm-security/sample.env +++ b/sdk/security/arm-security/sample.env @@ -1,4 +1 @@ -# App registration secret for AAD authentication -AZURE_CLIENT_SECRET= -AZURE_CLIENT_ID= -AZURE_TENANT_ID= \ No newline at end of file +# Feel free to add your own environment variables. \ No newline at end of file diff --git a/sdk/security/arm-security/src/lroImpl.ts b/sdk/security/arm-security/src/lroImpl.ts index d8bc98987053..1b3a95e6c540 100644 --- a/sdk/security/arm-security/src/lroImpl.ts +++ b/sdk/security/arm-security/src/lroImpl.ts @@ -5,6 +5,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ + import { AbortSignalLike } from "@azure/abort-controller"; import { LongRunningOperation, LroResponse } from "@azure/core-lro"; @@ -22,10 +23,7 @@ export function createLroSpec(inputs: { requestMethod: spec.httpMethod, requestPath: spec.path!, sendInitialRequest: () => sendOperationFn(args, spec), - sendPollRequest: ( - path: string, - options?: { abortSignal?: AbortSignalLike }, - ) => { + sendPollRequest: (path: string, options?: { abortSignal?: AbortSignalLike }) => { const { requestBody, ...restSpec } = spec; return sendOperationFn(args, { ...restSpec, diff --git a/sdk/security/arm-security/src/models/index.ts b/sdk/security/arm-security/src/models/index.ts index 8a35f7ebeea6..5323e0e17cf9 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,17 +45,22 @@ export type CloudOfferingUnion = | CspmMonitorAzureDevOpsOffering | DefenderCspmAwsOffering | DefenderCspmGcpOffering - | DefenderForDevOpsGithubOffering - | DefenderForDevOpsAzureDevOpsOffering | CspmMonitorGitLabOffering - | DefenderForDevOpsGitLabOffering; + | CspmMonitorDockerHubOffering + | DefenderForContainersDockerHubOffering + | DefenderCspmDockerHubOffering + | CspmMonitorJFrogOffering + | DefenderForContainersJFrogOffering + | DefenderCspmJFrogOffering; export type EnvironmentDataUnion = | EnvironmentData | AwsEnvironmentData | GcpProjectEnvironmentData | GithubScopeEnvironmentData | AzureDevOpsScopeEnvironmentData - | GitlabScopeEnvironmentData; + | GitlabScopeEnvironmentData + | DockerHubEnvironmentData + | JFrogEnvironmentData; export type CustomAlertRuleUnion = | CustomAlertRule | ThresholdCustomAlertRuleUnion @@ -76,10 +80,9 @@ export type GcpOrganizationalDataUnion = | GcpOrganizationalData | GcpOrganizationalDataOrganization | GcpOrganizationalDataMember; +export type AuthenticationUnion = Authentication | AccessTokenAuthentication; export type SettingUnion = Setting | DataExportSettings | AlertSyncSettings; -export type OnPremiseResourceDetailsUnion = - | OnPremiseResourceDetails - | OnPremiseSqlResourceDetails; +export type OnPremiseResourceDetailsUnion = OnPremiseResourceDetails | OnPremiseSqlResourceDetails; export type ThresholdCustomAlertRuleUnion = | ThresholdCustomAlertRule | TimeWindowCustomAlertRuleUnion; @@ -217,57 +220,6 @@ export interface ErrorAdditionalInfo { readonly info?: Record; } -/** List of possible operations for Microsoft.Security resource provider */ -export interface OperationList { - /** List of Security operations */ - value?: Operation[]; - /** - * 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; -} - -/** Possible operation in the REST API of Microsoft.Security */ -export interface Operation { - /** - * Name of the operation - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly name?: string; - /** - * Where the operation is originated - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly origin?: string; - /** Security operation display */ - display?: OperationDisplay; -} - -/** Security operation display */ -export interface OperationDisplay { - /** - * The resource provider for the operation. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly provider?: string; - /** - * The display name of the resource the operation applies to. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly resource?: string; - /** - * The display name of the security operation. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly operation?: string; - /** - * The description of the operation. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly description?: string; -} - /** List of security task recommendations */ export interface SecurityTaskList { /** NOTE: This property will not be serialized. It can only be populated by the server. */ @@ -415,88 +367,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 +510,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,14 +693,6 @@ export interface ApplicationsList { readonly nextLink?: string; } -/** A status describing the success/failure of the enablement/disablement operation. */ -export interface OperationStatus { - /** The operation status code. */ - code?: string; - /** Additional information regarding the success/failure of the operation. */ - message?: string; -} - /** List of SecurityOperator response. */ export interface SecurityOperatorList { /** List of SecurityOperator configurations */ @@ -1271,604 +1108,596 @@ 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 { +/** 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[]; /** - * Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + * The URI to fetch the next page. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly id?: string; + 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 name of the resource + * The URI to fetch the next page. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly name?: string; + 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" + | "CspmMonitorDockerHub" + | "DefenderForContainersDockerHub" + | "DefenderCspmDockerHub" + | "CspmMonitorJFrog" + | "DefenderForContainersJFrog" + | "DefenderCspmJFrog"; /** - * The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + * The offering description. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly type?: string; + readonly description?: string; } -/** Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.). */ -export interface ErrorResponseAutoGenerated { - /** The error object. */ - error?: ErrorDetailAutoGenerated; +/** 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" + | "DockerHubOrganization" + | "JFrogArtifactory"; } -/** The error detail. */ -export interface ErrorDetailAutoGenerated { +/** A list of REST API operations supported by an Azure Resource Provider. It contains an URL link to get the next set of results. */ +export interface OperationListResult { /** - * The error code. + * List of operations supported by the resource provider * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly code?: string; + readonly value?: Operation[]; /** - * The error message. + * URL to get the next set of operation list results (if there are any). * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly message?: string; + readonly nextLink?: string; +} + +/** Details of a REST API operation, returned from the Resource Provider Operations API */ +export interface Operation { /** - * The error target. + * The name of the operation, as per Resource-Based Access Control (RBAC). Examples: "Microsoft.Compute/virtualMachines/write", "Microsoft.Compute/virtualMachines/capture/action" * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly target?: string; + readonly name?: string; /** - * The error details. + * Whether the operation applies to data-plane. This is "true" for data-plane operations and "false" for ARM/control-plane operations. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly details?: ErrorDetailAutoGenerated[]; + readonly isDataAction?: boolean; + /** Localized display information for this particular operation. */ + display?: OperationDisplay; /** - * The error additional info. + * The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default value is "user,system" * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly additionalInfo?: ErrorAdditionalInfo[]; -} - -/** List of RP resources which supports pagination. */ -export interface AzureDevOpsProjectListResponse { - /** Gets or sets list of resources. */ - value?: AzureDevOpsProject[]; - /** Gets or sets next link to scroll over the results. */ - nextLink?: string; -} - -/** Azure DevOps Project properties. */ -export interface AzureDevOpsProjectProperties { + readonly origin?: Origin; /** - * Gets or sets resource status message. + * Enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly provisioningStatusMessage?: string; + readonly actionType?: ActionType; +} + +/** Localized display information for this particular operation. */ +export interface OperationDisplay { /** - * Gets or sets time when resource was last checked. + * The localized friendly form of the resource provider name, e.g. "Microsoft Monitoring Insights" or "Microsoft Compute". * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly provisioningStatusUpdateTimeUtc?: Date; + readonly provider?: string; /** - * 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. + * The localized friendly name of the resource type related to this operation. E.g. "Virtual Machines" or "Job Schedule Collections". + * NOTE: This property will not be serialized. It can only be populated by the server. */ - provisioningState?: DevOpsProvisioningState; - /** Gets or sets parent Azure DevOps Organization name. */ - parentOrgName?: string; + readonly resource?: string; /** - * Gets or sets Azure DevOps Project id. + * The concise, localized friendly name for the operation; suitable for dropdowns. E.g. "Create or Update Virtual Machine", "Restart Virtual Machine". * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly projectId?: string; + readonly operation?: 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. + * The short, localized friendly description of the operation; suitable for tool tips and detailed views. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - onboardingState?: OnboardingState; - /** Configuration payload for PR Annotations. */ - actionableRemediation?: ActionableRemediation; + readonly description?: string; } -/** List of RP resources which supports pagination. */ -export interface AzureDevOpsRepositoryListResponse { - /** Gets or sets list of resources. */ - value?: AzureDevOpsRepository[]; - /** Gets or sets next link to scroll over the results. */ - nextLink?: string; +/** Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.). */ +export interface ErrorResponseAutoGenerated { + /** The error object. */ + error?: ErrorDetailAutoGenerated; } -/** Azure DevOps Repository properties. */ -export interface AzureDevOpsRepositoryProperties { +/** The error detail. */ +export interface ErrorDetailAutoGenerated { /** - * Gets or sets resource status message. + * The error code. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly provisioningStatusMessage?: string; + readonly code?: string; /** - * Gets or sets time when resource was last checked. + * The error message. * 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; - /** Gets or sets parent Azure DevOps Organization name. */ - parentOrgName?: string; - /** Gets or sets parent Azure DevOps Project name. */ - parentProjectName?: string; + readonly message?: string; /** - * Gets or sets Azure DevOps Repository id. + * The error target. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly repoId?: string; + readonly target?: string; /** - * Gets or sets Azure DevOps Repository url. + * The error details. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly repoUrl?: string; + readonly details?: ErrorDetailAutoGenerated[]; /** - * Gets or sets Azure DevOps repository visibility, whether it is public or private etc. + * The error additional info. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly visibility?: 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; - /** Configuration payload for PR Annotations. */ - actionableRemediation?: ActionableRemediation; + readonly additionalInfo?: ErrorAdditionalInfo[]; } -/** List of RP resources which supports pagination. */ -export interface DevOpsConfigurationListResponse { - /** Gets or sets list of resources. */ - value?: DevOpsConfiguration[]; - /** Gets or sets next link to scroll over the results. */ - nextLink?: string; +/** Schema for operation parameters. */ +export interface ParametersSchema { + /** The list of scopes for which the data is requested */ + scopes: string[]; + /** The name of the scenario for which the data is requested */ + scenarioName: string; + /** The parameters for the specified scenario and view */ + scenarioParameters: Record; } -/** DevOps Configuration properties. */ -export interface DevOpsConfigurationProperties { +/** Query result. */ +export interface ScenarioResponse { + /** The result of the query operation. */ + scenarioResult?: Record; +} + +/** An error response from the API. */ +export interface ErrorResponseAutoGenerated2 { + /** Error information. */ + error: ErrorModel; +} + +/** Error details. */ +export interface ErrorModel { + /** Error code identifying the specific error. */ + code: string; + /** A human readable error message. */ + message: string; + /** Error details */ + details?: ErrorDetails[]; +} + +/** Error details. */ +export interface ErrorDetails { + /** Error code identifying the specific error. */ + code: string; + /** A human readable error message. */ + message: string; +} + +/** List of compliance results response */ +export interface ComplianceResultList { + /** List of compliance results */ + value: ComplianceResult[]; /** - * Gets or sets resource status message. + * The URI to fetch the next page. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly provisioningStatusMessage?: string; + readonly nextLink?: string; +} + +/** List of device security groups */ +export interface DeviceSecurityGroupList { + /** List of device security group objects */ + value?: DeviceSecurityGroup[]; /** - * 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; + readonly nextLink?: string; +} + +/** A custom alert rule. */ +export interface CustomAlertRule { + /** Polymorphic discriminator, which specifies the different types this object can be */ + ruleType: + | "ThresholdCustomAlertRule" + | "TimeWindowCustomAlertRule" + | "ListCustomAlertRule" + | "AllowlistCustomAlertRule" + | "DenylistCustomAlertRule" + | "ConnectionToIpNotAllowed" + | "ConnectionFromIpNotAllowed" + | "LocalUserNotAllowed" + | "ProcessNotAllowed" + | "ActiveConnectionsNotInAllowedRange" + | "AmqpC2DMessagesNotInAllowedRange" + | "MqttC2DMessagesNotInAllowedRange" + | "HttpC2DMessagesNotInAllowedRange" + | "AmqpC2DRejectedMessagesNotInAllowedRange" + | "MqttC2DRejectedMessagesNotInAllowedRange" + | "HttpC2DRejectedMessagesNotInAllowedRange" + | "AmqpD2CMessagesNotInAllowedRange" + | "MqttD2CMessagesNotInAllowedRange" + | "HttpD2CMessagesNotInAllowedRange" + | "DirectMethodInvokesNotInAllowedRange" + | "FailedLocalLoginsNotInAllowedRange" + | "FileUploadsNotInAllowedRange" + | "QueuePurgesNotInAllowedRange" + | "TwinUpdatesNotInAllowedRange" + | "UnauthorizedOperationsNotInAllowedRange"; /** - * 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. + * The display name of the custom alert. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - provisioningState?: DevOpsProvisioningState; - /** Authorization payload. */ - authorization?: Authorization; - /** AutoDiscovery states. */ - autoDiscovery?: AutoDiscovery; + readonly displayName?: string; /** - * List of top-level inventory to select when AutoDiscovery is disabled. - * This field is ignored when AutoDiscovery is enabled. + * The description of the custom alert. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - topLevelInventoryList?: string[]; + readonly description?: string; + /** Status of the custom alert. */ + isEnabled: boolean; } -/** Authorization payload. */ -export interface Authorization { +/** List of Security analytics of your IoT Security solution */ +export interface IoTSecuritySolutionAnalyticsModelList { + /** List of Security analytics of your IoT Security solution */ + value: IoTSecuritySolutionAnalyticsModel[]; /** - * Gets or sets one-time OAuth code to exchange for refresh and access tokens. - * - * Only used during PUT/PATCH operations. The secret is cleared during GET. + * When there is too much alert data for one page, use this URI to fetch the next page. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - code?: string; + readonly nextLink?: string; } -/** 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; +/** IoT Security solution analytics severity metrics. */ +export interface IoTSeverityMetrics { + /** Count of high severity alerts/recommendations. */ + high?: number; + /** Count of medium severity alerts/recommendations. */ + medium?: number; + /** Count of low severity alerts/recommendations. */ + low?: number; } -/** GitHub Owner properties. */ -export interface GitHubOwnerProperties { +export interface IoTSecuritySolutionAnalyticsModelPropertiesDevicesMetricsItem { + /** Aggregation of IoT Security solution device alert metrics by date. */ + date?: Date; + /** Device alert count by severity. */ + devicesMetrics?: IoTSeverityMetrics; +} + +/** Statistical information about the number of alerts per device during last set number of days. */ +export interface IoTSecurityAlertedDevice { /** - * Gets or sets resource status message. + * Device identifier. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly provisioningStatusMessage?: string; + readonly deviceId?: string; /** - * Gets or sets time when resource was last checked. + * Number of alerts raised for this device. * 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; + readonly alertsCount?: number; +} + +/** Statistical information about the number of alerts per alert type during last set number of days */ +export interface IoTSecurityDeviceAlert { /** - * Gets or sets GitHub Owner url. + * Display name of the alert * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly ownerUrl?: string; + readonly alertDisplayName?: string; /** - * Gets or sets internal GitHub id. + * Assessed Alert severity. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly gitHubInternalId?: string; + readonly reportedSeverity?: ReportedSeverity; /** - * 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. + * Number of alerts raised for this alert type. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - onboardingState?: OnboardingState; -} - -/** List of RP resources which supports pagination. */ -export interface GitHubRepositoryListResponse { - /** Gets or sets list of resources. */ - value?: GitHubRepository[]; - /** Gets or sets next link to scroll over the results. */ - nextLink?: string; + readonly alertsCount?: number; } -/** GitHub Repository properties. */ -export interface GitHubRepositoryProperties { +/** Statistical information about the number of recommendations per device, per recommendation type. */ +export interface IoTSecurityDeviceRecommendation { /** - * Gets or sets resource status message. + * Display name of the recommendation. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly provisioningStatusMessage?: string; + readonly recommendationDisplayName?: string; /** - * Gets or sets time when resource was last checked. + * Assessed recommendation severity. * 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; + readonly reportedSeverity?: ReportedSeverity; /** - * Gets or sets GitHub Repository id. - * - * This is a numeric id defined by Github. - * Eg: "123456". + * Number of devices with this recommendation. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly repoId?: string; + readonly devicesCount?: number; +} + +/** List of IoT Security solution aggregated alert data. */ +export interface IoTSecurityAggregatedAlertList { + /** List of aggregated alerts data. */ + value: IoTSecurityAggregatedAlert[]; /** - * Gets or sets GitHub Repository name. - * Eg: "new-repo-1". + * When there is too much alert data for one page, use this URI to fetch the next page. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly repoName?: string; + readonly nextLink?: string; +} + +export interface IoTSecurityAggregatedAlertPropertiesTopDevicesListItem { /** - * Gets or sets GitHub Full Name. - * Repository name, prefixed with Owner name. - * Eg: "my-org/new-repo-1". + * Name of the device. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly repoFullName?: string; + readonly deviceId?: 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. + * Number of alerts raised for this device. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - onboardingState?: OnboardingState; + readonly alertsCount?: number; /** - * Gets or sets GitHub Repository url. + * Most recent time this alert was raised for this device, on this day. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly repoUrl?: string; - /** Gets or sets parent GitHub Owner name. */ - parentOwnerName?: string; + readonly lastOccurrence?: string; } -/** List of RP resources which supports pagination. */ -export interface GitLabGroupListResponse { - /** Gets or sets list of resources. */ - value?: GitLabGroup[]; - /** Gets or sets next link to scroll over the results. */ - nextLink?: string; +/** A container holding only the Tags for a resource, allowing the user to update the tags. */ +export interface TagsResource { + /** Resource tags */ + tags?: { [propertyName: string]: string }; } -/** GitLab Group properties. */ -export interface GitLabGroupProperties { +/** List of IoT Security solution aggregated recommendations. */ +export interface IoTSecurityAggregatedRecommendationList { + /** List of aggregated recommendations data. */ + value: IoTSecurityAggregatedRecommendation[]; /** - * Gets or sets resource status message. + * When there is too much alert data for one page, use this URI to fetch the next page. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly provisioningStatusMessage?: string; + readonly nextLink?: string; +} + +/** List of IoT Security solutions. */ +export interface IoTSecuritySolutionsList { + /** List of IoT Security solutions */ + value: IoTSecuritySolutionModel[]; /** - * 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; - /** - * Gets or sets the fully-qualified name of the Group object. - * - * This contains the entire namespace hierarchy where namespaces are separated by the '$' character. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly fullyQualifiedName?: string; - /** - * Gets or sets the human readable fully-qualified name of the Group object. - * - * This contains the entire namespace hierarchy as seen on GitLab UI where namespaces are separated by the '/' character. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly fullyQualifiedFriendlyName?: string; - /** - * Gets or sets the url of the GitLab Group. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly url?: 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; + readonly nextLink?: string; } -/** List of RP resources which supports pagination. */ -export interface GitLabProjectListResponse { - /** Gets or sets list of resources. */ - value?: GitLabProject[]; - /** Gets or sets next link to scroll over the results. */ - nextLink?: string; +/** Properties of the IoT Security solution's user defined resources. */ +export interface UserDefinedResourcesProperties { + /** Azure Resource Graph query which represents the security solution's user defined resources. Required to start with "where type != "Microsoft.Devices/IotHubs"" */ + query: string | null; + /** List of Azure subscription ids on which the user defined resources query should be executed. */ + querySubscriptions: string[] | null; } -/** GitLab Project properties. */ -export interface GitLabProjectProperties { +/** The type of IoT Security recommendation. */ +export interface RecommendationConfigurationProperties { + /** The type of IoT Security recommendation. */ + recommendationType: RecommendationType; + /** NOTE: This property will not be serialized. It can only be populated by the server. */ + readonly name?: string; + /** Recommendation status. When the recommendation status is disabled recommendations are not generated. */ + status: RecommendationConfigStatus; +} + +/** Properties of the additional workspaces. */ +export interface AdditionalWorkspacesProperties { + /** Workspace resource id */ + workspace?: string; + /** Workspace type. */ + type?: AdditionalWorkspaceType; + /** List of data types sent to workspace */ + dataTypes?: AdditionalWorkspaceDataType[]; +} + +/** 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. */ + readonly value?: AllowedConnectionsResource[]; /** - * Gets or sets resource status message. + * The URI to fetch the next page. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly provisioningStatusMessage?: string; + readonly nextLink?: string; +} + +/** Describes the allowed inbound and outbound traffic of an Azure resource */ +export interface ConnectableResource { /** - * Gets or sets time when resource was last checked. + * The Azure resource id * 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; + readonly id?: string; /** - * Gets or sets the fully-qualified name of the project object. - * - * This contains the entire hierarchy where entities are separated by the '$' character. + * The list of Azure resources that the resource has inbound allowed connection from * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly fullyQualifiedName?: string; + readonly inboundConnectedResources?: ConnectedResource[]; /** - * Gets or sets the human readable fully-qualified name of the Project object. - * - * This contains the entire namespace hierarchy as seen on GitLab UI where entities are separated by the '/' character. + * The list of Azure resources that the resource has outbound allowed connection to * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly fullyQualifiedFriendlyName?: string; + readonly outboundConnectedResources?: ConnectedResource[]; +} + +/** Describes properties of a connected resource */ +export interface ConnectedResource { /** - * Gets or sets the fully-qualified name of the project's parent group object. - * - * This contains the entire hierarchy where namespaces are separated by the '$' character. + * The Azure resource id of the connected resource * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly fullyQualifiedParentGroupName?: string; + readonly connectedResourceId?: string; /** - * Gets or sets the url of the GitLab Project. + * The allowed tcp ports * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly url?: string; + readonly tcpPorts?: 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. + * The allowed udp ports + * NOTE: This property will not be serialized. It can only be populated by the server. */ - onboardingState?: OnboardingState; + readonly udpPorts?: string; } -/** The current status of an async operation. */ -export interface OperationStatusResult { - /** Fully qualified ID for the async operation. */ - id?: string; - /** Name of the async operation. */ - name?: string; - /** Operation status. */ - status: string; - /** Percent of the operation that is complete. */ - percentComplete?: number; - /** The start time of the operation. */ - startTime?: Date; - /** The end time of the operation. */ - endTime?: Date; - /** The operations list. */ - operations?: OperationStatusResult[]; - /** If present, details of the operation error. */ - error?: ErrorDetailAutoGenerated; +/** Describes an Azure resource with location */ +export interface Location { + /** + * Location where the resource is stored + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly location?: string; } -/** List of security connectors response. */ -export interface SecurityConnectorsList { - /** The list of security connectors under the given scope. */ - value: SecurityConnector[]; +export interface DiscoveredSecuritySolutionList { + value?: DiscoveredSecuritySolution[]; /** * The URI to fetch the next page. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -1876,49 +1705,23 @@ export interface SecurityConnectorsList { 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"; +export interface ExternalSecuritySolutionList { + value?: ExternalSecuritySolution[]; /** - * The offering description. + * The URI to fetch the next page. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly description?: string; + readonly nextLink?: 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"; +/** Describes an Azure resource with kind */ +export interface ExternalSecuritySolutionKindAutoGenerated { + /** The kind of the external solution */ + kind?: ExternalSecuritySolutionKind; } -/** List of compliance results response */ -export interface ComplianceResultList { - /** List of compliance results */ - value: ComplianceResult[]; +export interface JitNetworkAccessPoliciesList { + value?: JitNetworkAccessPolicy[]; /** * The URI to fetch the next page. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -1926,190 +1729,140 @@ export interface ComplianceResultList { readonly nextLink?: string; } -/** List of device security groups */ -export interface DeviceSecurityGroupList { - /** List of device security group objects */ - value?: DeviceSecurityGroup[]; - /** - * 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; +export interface JitNetworkAccessPolicyVirtualMachine { + /** Resource ID of the virtual machine that is linked to this policy */ + id: string; + /** Port configurations for the virtual machine */ + ports: JitNetworkAccessPortRule[]; + /** Public IP address of the Azure Firewall that is linked to this policy, if applicable */ + publicIpAddress?: string; } -/** A custom alert rule. */ -export interface CustomAlertRule { - /** Polymorphic discriminator, which specifies the different types this object can be */ - ruleType: - | "ThresholdCustomAlertRule" - | "TimeWindowCustomAlertRule" - | "ListCustomAlertRule" - | "AllowlistCustomAlertRule" - | "DenylistCustomAlertRule" - | "ConnectionToIpNotAllowed" - | "ConnectionFromIpNotAllowed" - | "LocalUserNotAllowed" - | "ProcessNotAllowed" - | "ActiveConnectionsNotInAllowedRange" - | "AmqpC2DMessagesNotInAllowedRange" - | "MqttC2DMessagesNotInAllowedRange" - | "HttpC2DMessagesNotInAllowedRange" - | "AmqpC2DRejectedMessagesNotInAllowedRange" - | "MqttC2DRejectedMessagesNotInAllowedRange" - | "HttpC2DRejectedMessagesNotInAllowedRange" - | "AmqpD2CMessagesNotInAllowedRange" - | "MqttD2CMessagesNotInAllowedRange" - | "HttpD2CMessagesNotInAllowedRange" - | "DirectMethodInvokesNotInAllowedRange" - | "FailedLocalLoginsNotInAllowedRange" - | "FileUploadsNotInAllowedRange" - | "QueuePurgesNotInAllowedRange" - | "TwinUpdatesNotInAllowedRange" - | "UnauthorizedOperationsNotInAllowedRange"; - /** - * The display name of the custom alert. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly displayName?: string; - /** - * The description of the custom alert. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly description?: string; - /** Status of the custom alert. */ - isEnabled: boolean; +export interface JitNetworkAccessPortRule { + number: number; + protocol: Protocol; + /** Mutually exclusive with the "allowedSourceAddressPrefixes" parameter. Should be an IP address or CIDR, for example "192.168.0.3" or "192.168.0.0/16". */ + allowedSourceAddressPrefix?: string; + /** Mutually exclusive with the "allowedSourceAddressPrefix" parameter. */ + allowedSourceAddressPrefixes?: string[]; + /** Maximum duration requests can be made for. In ISO 8601 duration format. Minimum 5 minutes, maximum 1 day */ + maxRequestAccessDuration: string; } -/** List of Security analytics of your IoT Security solution */ -export interface IoTSecuritySolutionAnalyticsModelList { - /** List of Security analytics of your IoT Security solution */ - value: IoTSecuritySolutionAnalyticsModel[]; - /** - * When there is too much alert data for one page, use this URI to fetch the next page. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly nextLink?: string; +export interface JitNetworkAccessRequest { + virtualMachines: JitNetworkAccessRequestVirtualMachine[]; + /** The start time of the request in UTC */ + startTimeUtc: Date; + /** The identity of the person who made the request */ + requestor: string; + /** The justification for making the initiate request */ + justification?: string; } -/** IoT Security solution analytics severity metrics. */ -export interface IoTSeverityMetrics { - /** Count of high severity alerts/recommendations. */ - high?: number; - /** Count of medium severity alerts/recommendations. */ - medium?: number; - /** Count of low severity alerts/recommendations. */ - low?: number; +export interface JitNetworkAccessRequestVirtualMachine { + /** Resource ID of the virtual machine that is linked to this policy */ + id: string; + /** The ports that were opened for the virtual machine */ + ports: JitNetworkAccessRequestPort[]; } -export interface IoTSecuritySolutionAnalyticsModelPropertiesDevicesMetricsItem { - /** Aggregation of IoT Security solution device alert metrics by date. */ - date?: Date; - /** Device alert count by severity. */ - devicesMetrics?: IoTSeverityMetrics; +export interface JitNetworkAccessRequestPort { + number: number; + /** Mutually exclusive with the "allowedSourceAddressPrefixes" parameter. Should be an IP address or CIDR, for example "192.168.0.3" or "192.168.0.0/16". */ + allowedSourceAddressPrefix?: string; + /** Mutually exclusive with the "allowedSourceAddressPrefix" parameter. */ + allowedSourceAddressPrefixes?: string[]; + /** The date & time at which the request ends in UTC */ + endTimeUtc: Date; + /** The status of the port */ + status: Status; + /** A description of why the `status` has its value */ + statusReason: StatusReason; + /** The port which is mapped to this port's `number` in the Azure Firewall, if applicable */ + mappedPort?: number; } -/** Statistical information about the number of alerts per device during last set number of days. */ -export interface IoTSecurityAlertedDevice { - /** - * Device identifier. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly deviceId?: string; - /** - * Number of alerts raised for this device. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly alertsCount?: number; +export interface JitNetworkAccessPolicyInitiateRequest { + /** A list of virtual machines & ports to open access for */ + virtualMachines: JitNetworkAccessPolicyInitiateVirtualMachine[]; + /** The justification for making the initiate request */ + justification?: string; } -/** Statistical information about the number of alerts per alert type during last set number of days */ -export interface IoTSecurityDeviceAlert { - /** - * Display name of the alert - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly alertDisplayName?: string; +export interface JitNetworkAccessPolicyInitiateVirtualMachine { + /** Resource ID of the virtual machine that is linked to this policy */ + id: string; + /** The ports to open for the resource with the `id` */ + ports: JitNetworkAccessPolicyInitiatePort[]; +} + +export interface JitNetworkAccessPolicyInitiatePort { + number: number; + /** Source of the allowed traffic. If omitted, the request will be for the source IP address of the initiate request. */ + allowedSourceAddressPrefix?: string; + /** The time to close the request in UTC */ + endTimeUtc: Date; +} + +/** List of secure scores */ +export interface SecureScoresList { /** - * Assessed Alert severity. + * Collection of secure scores in this page * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly reportedSeverity?: ReportedSeverity; + readonly value?: SecureScoreItem[]; /** - * Number of alerts raised for this alert type. + * The URI to fetch the next page. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly alertsCount?: number; + readonly nextLink?: string; } -/** Statistical information about the number of recommendations per device, per recommendation type. */ -export interface IoTSecurityDeviceRecommendation { - /** - * Display name of the recommendation. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly recommendationDisplayName?: string; +/** List of security controls */ +export interface SecureScoreControlList { /** - * Assessed recommendation severity. + * Collection of security controls in this page * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly reportedSeverity?: ReportedSeverity; + readonly value?: SecureScoreControlDetails[]; /** - * Number of devices with this recommendation. + * The URI to fetch the next page. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly devicesCount?: number; + readonly nextLink?: string; } -/** List of IoT Security solution aggregated alert data. */ -export interface IoTSecurityAggregatedAlertList { - /** List of aggregated alerts data. */ - value: IoTSecurityAggregatedAlert[]; - /** - * When there is too much alert data for one page, use this 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 type of the security control (For example, BuiltIn) */ +export interface SecureScoreControlDefinitionSource { + /** The type of security control (for example, BuiltIn) */ + sourceType?: ControlType; } -export interface IoTSecurityAggregatedAlertPropertiesTopDevicesListItem { - /** - * Name of the device. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly deviceId?: string; +/** Describes an Azure resource with kind */ +export interface AzureResourceLink { /** - * Number of alerts raised for this device. + * Azure resource Id * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly alertsCount?: number; + readonly id?: string; +} + +/** List of security controls definition */ +export interface SecureScoreControlDefinitionList { /** - * Most recent time this alert was raised for this device, on this day. + * Collection of security controls definition in this page * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly lastOccurrence?: string; -} - -/** A container holding only the Tags for a resource, allowing the user to update the tags. */ -export interface TagsResource { - /** Resource tags */ - tags?: { [propertyName: string]: string }; -} - -/** List of IoT Security solution aggregated recommendations. */ -export interface IoTSecurityAggregatedRecommendationList { - /** List of aggregated recommendations data. */ - value: IoTSecurityAggregatedRecommendation[]; + readonly value?: SecureScoreControlDefinitionItem[]; /** - * When there is too much alert data for one page, use this URI to fetch the next page. + * 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; } -/** List of IoT Security solutions. */ -export interface IoTSecuritySolutionsList { - /** List of IoT Security solutions */ - value: IoTSecuritySolutionModel[]; +export interface SecuritySolutionList { + value?: SecuritySolution[]; /** * The URI to fetch the next page. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -2117,75 +1870,18 @@ export interface IoTSecuritySolutionsList { readonly nextLink?: string; } -/** Properties of the IoT Security solution's user defined resources. */ -export interface UserDefinedResourcesProperties { - /** Azure Resource Graph query which represents the security solution's user defined resources. Required to start with "where type != "Microsoft.Devices/IotHubs"" */ - query: string | null; - /** List of Azure subscription ids on which the user defined resources query should be executed. */ - querySubscriptions: string[] | null; -} - -/** The type of IoT Security recommendation. */ -export interface RecommendationConfigurationProperties { - /** The type of IoT Security recommendation. */ - recommendationType: RecommendationType; - /** NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly name?: string; - /** Recommendation status. When the recommendation status is disabled recommendations are not generated. */ - status: RecommendationConfigStatus; -} - -/** Properties of the additional workspaces. */ -export interface AdditionalWorkspacesProperties { - /** Workspace resource id */ - workspace?: string; - /** Workspace type. */ - type?: AdditionalWorkspaceType; - /** List of data types sent to workspace */ - 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 SecuritySolutionsReferenceDataList { + value?: SecuritySolutionsReferenceData[]; } -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 server vulnerability assessments */ +export interface ServerVulnerabilityAssessmentsList { + value?: ServerVulnerabilityAssessment[]; } -/** List of all possible traffic between Azure resources */ -export interface AllowedConnectionsList { +export interface TopologyList { /** NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: AllowedConnectionsResource[]; + readonly value?: TopologyResource[]; /** * The URI to fetch the next page. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -2193,349 +1889,32 @@ export interface AllowedConnectionsList { readonly nextLink?: string; } -/** Describes the allowed inbound and outbound traffic of an Azure resource */ -export interface ConnectableResource { +export interface TopologySingleResource { /** - * The Azure resource id + * Azure resource id * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly id?: string; + readonly resourceId?: string; /** - * The list of Azure resources that the resource has inbound allowed connection from + * The security severity of the resource * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly inboundConnectedResources?: ConnectedResource[]; + readonly severity?: string; /** - * The list of Azure resources that the resource has outbound allowed connection to + * Indicates if the resource has security recommendations * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly outboundConnectedResources?: ConnectedResource[]; -} - -/** Describes properties of a connected resource */ -export interface ConnectedResource { + readonly recommendationsExist?: boolean; /** - * The Azure resource id of the connected resource + * Indicates the resource connectivity level to the Internet (InternetFacing, Internal ,etc.) * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly connectedResourceId?: string; + readonly networkZones?: string; /** - * The allowed tcp ports + * Score of the resource based on its security severity * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly tcpPorts?: string; - /** - * The allowed udp ports - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly udpPorts?: string; -} - -/** Describes an Azure resource with location */ -export interface Location { - /** - * Location where the resource is stored - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - 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[]; - /** - * 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; -} - -export interface ExternalSecuritySolutionList { - value?: ExternalSecuritySolution[]; - /** - * 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; -} - -/** Describes an Azure resource with kind */ -export interface ExternalSecuritySolutionKindAutoGenerated { - /** The kind of the external solution */ - kind?: ExternalSecuritySolutionKind; -} - -export interface JitNetworkAccessPoliciesList { - value?: JitNetworkAccessPolicy[]; - /** - * 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; -} - -export interface JitNetworkAccessPolicyVirtualMachine { - /** Resource ID of the virtual machine that is linked to this policy */ - id: string; - /** Port configurations for the virtual machine */ - ports: JitNetworkAccessPortRule[]; - /** Public IP address of the Azure Firewall that is linked to this policy, if applicable */ - publicIpAddress?: string; -} - -export interface JitNetworkAccessPortRule { - number: number; - protocol: Protocol; - /** Mutually exclusive with the "allowedSourceAddressPrefixes" parameter. Should be an IP address or CIDR, for example "192.168.0.3" or "192.168.0.0/16". */ - allowedSourceAddressPrefix?: string; - /** Mutually exclusive with the "allowedSourceAddressPrefix" parameter. */ - allowedSourceAddressPrefixes?: string[]; - /** Maximum duration requests can be made for. In ISO 8601 duration format. Minimum 5 minutes, maximum 1 day */ - maxRequestAccessDuration: string; -} - -export interface JitNetworkAccessRequest { - virtualMachines: JitNetworkAccessRequestVirtualMachine[]; - /** The start time of the request in UTC */ - startTimeUtc: Date; - /** The identity of the person who made the request */ - requestor: string; - /** The justification for making the initiate request */ - justification?: string; -} - -export interface JitNetworkAccessRequestVirtualMachine { - /** Resource ID of the virtual machine that is linked to this policy */ - id: string; - /** The ports that were opened for the virtual machine */ - ports: JitNetworkAccessRequestPort[]; -} - -export interface JitNetworkAccessRequestPort { - number: number; - /** Mutually exclusive with the "allowedSourceAddressPrefixes" parameter. Should be an IP address or CIDR, for example "192.168.0.3" or "192.168.0.0/16". */ - allowedSourceAddressPrefix?: string; - /** Mutually exclusive with the "allowedSourceAddressPrefix" parameter. */ - allowedSourceAddressPrefixes?: string[]; - /** The date & time at which the request ends in UTC */ - endTimeUtc: Date; - /** The status of the port */ - status: Status; - /** A description of why the `status` has its value */ - statusReason: StatusReason; - /** The port which is mapped to this port's `number` in the Azure Firewall, if applicable */ - mappedPort?: number; -} - -export interface JitNetworkAccessPolicyInitiateRequest { - /** A list of virtual machines & ports to open access for */ - virtualMachines: JitNetworkAccessPolicyInitiateVirtualMachine[]; - /** The justification for making the initiate request */ - justification?: string; -} - -export interface JitNetworkAccessPolicyInitiateVirtualMachine { - /** Resource ID of the virtual machine that is linked to this policy */ - id: string; - /** The ports to open for the resource with the `id` */ - ports: JitNetworkAccessPolicyInitiatePort[]; -} - -export interface JitNetworkAccessPolicyInitiatePort { - number: number; - /** Source of the allowed traffic. If omitted, the request will be for the source IP address of the initiate request. */ - allowedSourceAddressPrefix?: string; - /** The time to close the request in UTC */ - endTimeUtc: Date; -} - -/** List of secure scores */ -export interface SecureScoresList { - /** - * Collection of secure scores in this page - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly value?: SecureScoreItem[]; - /** - * 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; -} - -/** List of security controls */ -export interface SecureScoreControlList { - /** - * Collection of security controls in this page - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly value?: SecureScoreControlDetails[]; - /** - * 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 type of the security control (For example, BuiltIn) */ -export interface SecureScoreControlDefinitionSource { - /** The type of security control (for example, BuiltIn) */ - sourceType?: ControlType; -} - -/** Describes an Azure resource with kind */ -export interface AzureResourceLink { - /** - * Azure resource Id - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly id?: string; -} - -/** List of security controls definition */ -export interface SecureScoreControlDefinitionList { - /** - * Collection of security controls definition in this page - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly value?: SecureScoreControlDefinitionItem[]; - /** - * 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; -} - -export interface SecuritySolutionList { - value?: SecuritySolution[]; - /** - * 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; -} - -export interface SecuritySolutionsReferenceDataList { - value?: SecuritySolutionsReferenceData[]; -} - -/** List of server vulnerability assessments */ -export interface ServerVulnerabilityAssessmentsList { - value?: ServerVulnerabilityAssessment[]; -} - -export interface TopologyList { - /** NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: TopologyResource[]; - /** - * 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; -} - -export interface TopologySingleResource { - /** - * Azure resource id - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly resourceId?: string; - /** - * The security severity of the resource - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly severity?: string; - /** - * Indicates if the resource has security recommendations - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly recommendationsExist?: boolean; - /** - * Indicates the resource connectivity level to the Internet (InternetFacing, Internal ,etc.) - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly networkZones?: string; - /** - * Score of the resource based on its security severity - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly topologyScore?: number; + readonly topologyScore?: number; /** * The location of this resource * NOTE: This property will not be serialized. It can only be populated by the server. @@ -2766,7 +2145,7 @@ export interface ServerVulnerabilityAssessmentsSettingsList { } /** Common fields that are returned in the response for all Azure Resource Manager resources */ -export interface ResourceAutoGenerated2 { +export interface ResourceAutoGenerated { /** * Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" * NOTE: This property will not be serialized. It can only be populated by the server. @@ -2805,13 +2184,7 @@ export interface ApiCollectionList { /** A plan's extension properties */ export interface Extension { - /** - * The extension name. Supported values are:

**AgentlessDiscoveryForKubernetes** - API-based discovery of information about Kubernetes cluster architecture, workload objects, and setup. Required for Kubernetes inventory, identity and network exposure detection, attack path analysis and risk hunting as part of the cloud security explorer. - * Available for CloudPosture plan.

**OnUploadMalwareScanning** - Limits the GB to be scanned per month for each storage account within the subscription. Once this limit reached on a given storage account, Blobs won't be scanned during current calendar month. - * Available for StorageAccounts plan.

**SensitiveDataDiscovery** - Sensitive data discovery identifies Blob storage container with sensitive data such as credentials, credit cards, and more, to help prioritize and investigate security events. - * Available for StorageAccounts and CloudPosture plans.

**ContainerRegistriesVulnerabilityAssessments** - Provides vulnerability management for images stored in your container registries. - * Available for CloudPosture and Containers plans. - */ + /** The extension name. Supported values are:

**AgentlessDiscoveryForKubernetes** - Provides zero footprint, API-based discovery of Kubernetes clusters, their configurations and deployments. The collected data is used to create a contextualized security graph for Kubernetes clusters, provide risk hunting capabilities, and visualize risks and threats to Kubernetes environments and workloads.
Available for CloudPosture plan and Containers plan.

**OnUploadMalwareScanning** - Limits the GB to be scanned per month for each storage account within the subscription. Once this limit reached on a given storage account, Blobs won't be scanned during current calendar month.
Available for StorageAccounts plan (DefenderForStorageV2 sub plans).

**SensitiveDataDiscovery** - Sensitive data discovery identifies Blob storage container with sensitive data such as credentials, credit cards, and more, to help prioritize and investigate security events.
Available for StorageAccounts plan (DefenderForStorageV2 sub plan) and CloudPosture plan.

**ContainerRegistriesVulnerabilityAssessments** - Provides vulnerability management for images stored in your container registries.
Available for CloudPosture plan and Containers plan.

**MdeDesignatedSubscription** - Direct onboarding is a seamless integration between Defender for Endpoint and Defender for Cloud that doesn’t require extra software deployment on your servers. The onboarded resources will be presented under a designated Azure Subscription you configure
Available for VirtualMachines plan (P1 and P2 sub plans).

**AgentlessVmScanning** - Scans your machines for installed software, vulnerabilities, malware and secret scanning without relying on agents or impacting machine performance. Learn more here https://learn.microsoft.com/en-us/azure/defender-for-cloud/concept-agentless-data-collection.
Available for CloudPosture plan, VirtualMachines plan (P2 sub plan) and Containers plan.

**EntraPermissionsManagement** - Permissions Management provides Cloud Infrastructure Entitlement Management (CIEM) capabilities that helps organizations to manage and control user access and entitlements in their cloud infrastructure - important attack vector for cloud environments.
Permissions Management analyzes all permissions and active usage, and suggests recommendations to reduce permissions to enforce the principle of least privilege. Learn more here https://learn.microsoft.com/en-us/azure/defender-for-cloud/permissions-management.
Available for CloudPosture plan.

**FileIntegrityMonitoring** - File integrity monitoring (FIM), examines operating system files.
Windows registries, Linux system files, in real time, for changes that might indicate an attack.
Available for VirtualMachines plan (P2 sub plan).

**ContainerSensor** - The sensor is based on IG and provides a rich threat detection suite for Kubernetes clusters, nodes, and workloads, powered by Microsoft leading threat intelligence, provides mapping to MITRE ATT&CK framework.
Available for Containers plan.

**AIPromptEvidence** - Exposes the prompts passed between the user and the AI model as alert evidence. This helps classify and triage the alerts with relevant user context. The prompt snippets will include only segments of the user prompt or model response that were deemed suspicious and relevant for security classifications. The prompt evidence will be available through Defender portal as part of each alert.
Available for AI plan.

*/ name: string; /** Indicates whether the extension is enabled. */ isEnabled: IsEnabled; @@ -2821,11 +2194,11 @@ export interface Extension { * Optional. A status describing the success/failure of the extension's enablement/disablement operation. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly operationStatus?: OperationStatusAutoGenerated; + readonly operationStatus?: OperationStatus; } /** A status describing the success/failure of the extension's enablement/disablement operation. */ -export interface OperationStatusAutoGenerated { +export interface OperationStatus { /** The operation status code. */ code?: Code; /** Additional information regarding the success/failure of the operation. */ @@ -2838,1422 +2211,1324 @@ export interface PricingList { value: Pricing[]; } -/** CVSS details */ -export interface Cvss { +/** Page of a Standard list */ +export interface SecurityStandardList { /** - * CVSS base + * Collection of standards in this page * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly base?: number; -} - -/** CVE details */ -export interface Cve { + readonly value: SecurityStandard[]; /** - * CVE title + * The URI to fetch the next page * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly title?: string; + readonly nextLink?: string; +} + +/** Describes properties of an assessment as related to the standard */ +export interface PartialAssessmentProperties { + /** The assessment key */ + assessmentKey?: string; +} + +/** The standard metadata */ +export interface StandardMetadata { /** - * Link url + * Standard Created by object id (GUID) * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly link?: string; -} - -/** Vendor reference */ -export interface VendorReference { + readonly createdBy?: string; /** - * Link title + * Standard creation date * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly title?: string; + readonly createdOn?: Date; /** - * Link url + * Standard last updated by object id (GUID) * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly link?: string; + readonly lastUpdatedBy?: string; + /** + * Standard last update date + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly lastUpdatedOn?: Date; } -/** Governance rule's condition */ -export interface Condition { - /** The governance rule Condition's Property, e.g. Severity or AssessmentKey, see examples */ - property?: string; - /** The governance rule Condition's Value like severity Low, High or assessments keys, see examples */ - value?: string; - /** The governance rule Condition's Operator, for example Equals for severity or In for list of assessments, see examples */ - operator?: GovernanceRuleConditionOperator; +/** Describe the properties of a of a standard assignments object reference */ +export interface AssignedStandardItem { + /** Full resourceId of the Microsoft.Security/standard object */ + id?: string; } -/** Application's condition */ -export interface ApplicationCondition { - /** The application Condition's Property, e.g. ID, see examples */ - property?: string; - /** The application Condition's Value like IDs that contain some string, see examples */ - value?: string; - /** The application Condition's Operator, for example Contains for id or In for list of possible IDs, see examples */ - operator?: ApplicationConditionOperator; +/** Additional data about assignment that has Exempt effect */ +export interface StandardAssignmentPropertiesExemptionData { + /** Exemption category of this assignment */ + exemptionCategory?: ExemptionCategory; + /** Component item with key as applied to this standard assignment over the given scope */ + assignedAssessment?: AssignedAssessmentItem; } -/** 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 }; +/** Describe the properties of a security assessment object reference (by key) */ +export interface AssignedAssessmentItem { + /** Unique key to a security assessment object */ + assessmentKey?: string; } -/** AzureDevOps Project Inventory Configuration. */ -export interface AzureDevOpsProjectConfiguration { - /** AutoDiscovery states. */ - autoDiscovery?: AutoDiscovery; +/** Additional data about assignment that has Attest effect */ +export interface StandardAssignmentPropertiesAttestationData { + /** Attest category of this assignment */ + complianceState?: AttestationComplianceState; + /** Component item with key as applied to this standard assignment over the given scope */ + assignedAssessment?: AssignedAssessmentItem; /** - * AzureDevOps Repository Inventory Configuration. - * Dictionary of AzureDevOps repository name to desired repository configuration. - * If AutoDiscovery is Enabled, this field should be null or empty. + * Attestation compliance date + * NOTE: This property will not be serialized. It can only be populated by the server. */ - repositoryConfigs?: { [propertyName: string]: BaseResourceConfiguration }; + readonly complianceDate?: Date; + /** Array of links to attestation evidence */ + evidence?: AttestationEvidence[]; } -/** Base Resource Inventory configuration changes. */ -export interface BaseResourceConfiguration { - /** Onboarding states. */ - desiredOnboardingState?: DesiredOnboardingState; +/** Describe the properties of a assignment attestation */ +export interface AttestationEvidence { + /** The description of the evidence */ + description?: string; + /** The source url of the evidence */ + sourceUrl?: string; } -/** GitHub Owner Inventory Configuration. */ -export interface GitHubOwnerConfiguration { - /** AutoDiscovery states. */ - autoDiscovery?: AutoDiscovery; +/** The standard assignment metadata */ +export interface StandardAssignmentMetadata { /** - * GitHub Repository Inventory Configuration. - * Dictionary of GitHub repository name to desired repository configuration. - * If AutoDiscovery is Enabled, this field should be null or empty. + * Standard assignment Created by object id (GUID) + * NOTE: This property will not be serialized. It can only be populated by the server. */ - repositoryConfigs?: { [propertyName: string]: BaseResourceConfiguration }; -} - -/** GitLab Group Inventory Configuration. */ -export interface GitLabGroupConfiguration { - /** AutoDiscovery states. */ - autoDiscovery?: AutoDiscovery; + readonly createdBy?: string; /** - * 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. + * Standard assignment creation date + * NOTE: This property will not be serialized. It can only be populated by the server. */ - projectConfigs?: { [propertyName: string]: BaseResourceConfiguration }; -} - -/** The AWS organization data */ -export interface AwsOrganizationalData { - /** Polymorphic discriminator, which specifies the different types this object can be */ - organizationMembershipType: "Organization" | "Member"; -} - -/** The gcpOrganization data */ -export interface GcpOrganizationalData { - /** Polymorphic discriminator, which specifies the different types this object can be */ - organizationMembershipType: "Organization" | "Member"; -} - -/** The details about the project represented by the security connector */ -export interface GcpProjectDetails { - /** The unique GCP Project number */ - projectNumber?: string; - /** The GCP Project id */ - projectId?: string; + readonly createdOn?: Date; /** - * The GCP workload identity federation pool id + * Standard assignment last updated by object id (GUID) * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly workloadIdentityPoolId?: string; + readonly lastUpdatedBy?: string; /** - * GCP project name + * Standard assignment last update date * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly projectName?: string; + readonly lastUpdatedOn?: Date; } -/** The native cloud connection configuration */ -export interface CspmMonitorAwsOfferingNativeCloudConnection { - /** The cloud role ARN in AWS for this feature */ - cloudRoleArn?: string; +/** Page of a standard assignment list */ +export interface StandardAssignmentsList { + /** + * Collection of standardAssignments in this page + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly value: StandardAssignment[]; + /** + * 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 kubernetes service connection configuration */ -export interface DefenderForContainersAwsOfferingKubernetesService { - /** The cloud role ARN in AWS for this feature used for provisioning resources */ - cloudRoleArn?: string; +/** A list of Custom Recommendations */ +export interface CustomRecommendationsList { + /** + * Collection of Custom Recommendations + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly value: CustomRecommendation[]; + /** The link used to get the next page of operations. */ + nextLink?: string; } -/** The kubernetes to scuba connection configuration */ -export interface DefenderForContainersAwsOfferingKubernetesScubaReader { - /** The cloud role ARN in AWS for this feature used for reading data */ - cloudRoleArn?: 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; } -/** The cloudwatch to kinesis connection configuration */ -export interface DefenderForContainersAwsOfferingCloudWatchToKinesis { - /** The cloud role ARN in AWS used by CloudWatch to transfer data into Kinesis */ - cloudRoleArn?: string; +/** 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?: OperationStatusAutoGenerated; } -/** The kinesis to s3 connection configuration */ -export interface DefenderForContainersAwsOfferingKinesisToS3 { - /** The cloud role ARN in AWS used by Kinesis to transfer data into S3 */ - cloudRoleArn?: string; +/** 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. If not specified, the default value is -1. */ + capGBPerMonth?: number; } -/** The container vulnerability assessment configuration */ -export interface DefenderForContainersAwsOfferingContainerVulnerabilityAssessment { - /** The cloud role ARN in AWS for this feature */ - cloudRoleArn?: string; +/** A status describing the success/failure of the enablement/disablement operation. */ +export interface OperationStatusAutoGenerated { + /** The operation status code. */ + code?: string; + /** Additional information regarding the success/failure of the operation. */ + message?: string; } -/** The container vulnerability assessment task configuration */ -export interface DefenderForContainersAwsOfferingContainerVulnerabilityAssessmentTask { - /** The cloud role ARN in AWS for this feature */ - cloudRoleArn?: 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?: OperationStatusAutoGenerated; } -/** The Microsoft Defender container image assessment configuration */ -export interface DefenderForContainersAwsOfferingMdcContainersImageAssessment { - /** Is Microsoft Defender container image assessment enabled */ - enabled?: boolean; - /** The cloud role ARN in AWS for this feature */ - cloudRoleArn?: string; +/** Describes the state of a malware scan operation. */ +export interface MalwareScan { + properties?: MalwareScanProperties; +} + +export interface MalwareScanProperties { + /** The identifier of the scan. */ + scanId?: string; + /** A status code of the scan operation. */ + scanStatus?: string; + /** A description of the status of the scan. */ + scanStatusMessage?: string; + /** The time at which the scan had been initiated. */ + scanStartTime?: string; + /** The time at which the scan has ended. Only available for a scan which has terminated. */ + scanEndTime?: string; + /** A summary of the scan results. */ + scanSummary?: ScanSummary; +} + +/** A summary of the scan results. */ +export interface ScanSummary { + /** A summary of the scan results of the blobs that were scanned. */ + blobs?: BlobsScanSummary; + /** The estimated cost of the scan. Only available for a scan which has terminated. */ + estimatedScanCostUSD?: number; +} + +/** A summary of the scan results of the blobs that were scanned. */ +export interface BlobsScanSummary { + /** The total number of blobs that were scanned. */ + totalBlobsScanned?: number; + /** The number of malicious blobs that were detected during the scan. */ + maliciousBlobsCount?: number; + /** The number of blobs that were skipped. */ + skippedBlobsCount?: number; + /** The number of failed blob scans. */ + failedBlobsCount?: number; + /** The number of gigabytes of data that were scanned. */ + scannedBlobsInGB?: number; } -/** The Microsoft Defender container agentless discovery K8s configuration */ -export interface DefenderForContainersAwsOfferingMdcContainersAgentlessDiscoveryK8S { - /** Is Microsoft Defender container agentless discovery K8s enabled */ - enabled?: boolean; - /** The cloud role ARN in AWS for this feature */ - cloudRoleArn?: string; +/** 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; } -/** The Defender for servers connection configuration */ -export interface DefenderForServersAwsOfferingDefenderForServers { - /** The cloud role ARN in AWS for this feature */ - cloudRoleArn?: 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; } -/** The ARC autoprovisioning configuration */ -export interface DefenderForServersAwsOfferingArcAutoProvisioning { - /** 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 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; } -/** Configuration for servers Arc auto provisioning */ -export interface DefenderForServersAwsOfferingArcAutoProvisioningConfiguration { - /** 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 DefenderForServersAwsOfferingVaAutoProvisioning { - /** Is Vulnerability Assessment auto provisioning enabled */ - enabled?: boolean; - /** configuration for Vulnerability Assessment autoprovisioning */ - configuration?: DefenderForServersAwsOfferingVaAutoProvisioningConfiguration; -} - -/** configuration for Vulnerability Assessment autoprovisioning */ -export interface DefenderForServersAwsOfferingVaAutoProvisioningConfiguration { - /** The Vulnerability Assessment solution to be provisioned. Can be either 'TVM' or 'Qualys' */ - type?: Type; -} - -/** The Microsoft Defender for Endpoint autoprovisioning configuration */ -export interface DefenderForServersAwsOfferingMdeAutoProvisioning { - /** Is Microsoft Defender for Endpoint auto provisioning enabled */ - enabled?: boolean; - /** configuration for Microsoft Defender for Endpoint autoprovisioning */ - configuration?: Record; -} - -/** configuration for the servers offering subPlan */ -export interface DefenderForServersAwsOfferingSubPlan { - /** The available sub plans */ - type?: SubPlan; +/** 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 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; +/** 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; } -/** 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 }; +/** Common fields that are returned in the response for all Azure Resource Manager resources */ +export interface ResourceAutoGenerated2 { + /** + * 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. + */ + readonly name?: string; + /** + * The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly type?: 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; +/** Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.). */ +export interface ErrorResponseAutoGenerated3 { + /** The error object. */ + error?: ErrorDetailAutoGenerated2; } -/** 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 error detail. */ +export interface ErrorDetailAutoGenerated2 { + /** + * The error code. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly code?: string; + /** + * The error message. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly message?: string; + /** + * The error target. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly target?: string; + /** + * The error details. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly details?: ErrorDetailAutoGenerated2[]; + /** + * The error additional info. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly additionalInfo?: ErrorAdditionalInfo[]; } -/** The RDS configuration */ -export interface DefenderFoDatabasesAwsOfferingRds { - /** Is RDS protection enabled */ - enabled?: boolean; - /** The cloud role ARN in AWS for this feature */ - cloudRoleArn?: string; +/** List of RP resources which supports pagination. */ +export interface AzureDevOpsProjectListResponse { + /** Gets or sets list of resources. */ + value?: AzureDevOpsProject[]; + /** Gets or sets next link to scroll over the results. */ + nextLink?: string; } -/** The databases data security posture management (DSPM) configuration */ -export interface DefenderFoDatabasesAwsOfferingDatabasesDspm { - /** Is databases data security posture management (DSPM) protection enabled */ - enabled?: boolean; - /** The cloud role ARN in AWS for this feature */ - cloudRoleArn?: string; +/** Azure DevOps Project properties. */ +export interface AzureDevOpsProjectProperties { + /** + * 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 parent Azure DevOps Organization name. */ + parentOrgName?: string; + /** + * Gets or sets Azure DevOps Project id. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly projectId?: 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; + /** Configuration payload for PR Annotations. */ + actionableRemediation?: ActionableRemediation; } -/** The native cloud connection configuration */ -export interface InformationProtectionAwsOfferingInformationProtection { - /** The cloud role ARN in AWS for this feature */ - cloudRoleArn?: string; +/** List of RP resources which supports pagination. */ +export interface AzureDevOpsRepositoryListResponse { + /** Gets or sets list of resources. */ + value?: AzureDevOpsRepository[]; + /** Gets or sets next link to scroll over the results. */ + nextLink?: string; } -/** The native cloud connection configuration */ -export interface CspmMonitorGcpOfferingNativeCloudConnection { - /** The GCP workload identity provider id for the offering */ - workloadIdentityProviderId?: string; - /** The service account email address in GCP for this offering */ - serviceAccountEmailAddress?: string; +/** Azure DevOps Repository properties. */ +export interface AzureDevOpsRepositoryProperties { + /** + * 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 parent Azure DevOps Organization name. */ + parentOrgName?: string; + /** Gets or sets parent Azure DevOps Project name. */ + parentProjectName?: string; + /** + * Gets or sets Azure DevOps Repository id. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly repoId?: string; + /** + * Gets or sets Azure DevOps Repository url. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly repoUrl?: string; + /** + * Gets or sets Azure DevOps repository visibility, whether it is public or private etc. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly visibility?: 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; + /** Configuration payload for PR Annotations. */ + actionableRemediation?: ActionableRemediation; } -/** The Defender for servers connection configuration */ -export interface DefenderForServersGcpOfferingDefenderForServers { - /** The workload identity provider id in GCP for this feature */ - workloadIdentityProviderId?: string; - /** The service account email address in GCP for this feature */ - serviceAccountEmailAddress?: string; +/** List of RP resources which supports pagination. */ +export interface DevOpsConfigurationListResponse { + /** Gets or sets list of resources. */ + value?: DevOpsConfiguration[]; + /** Gets or sets next link to scroll over the results. */ + nextLink?: 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 */ - enabled?: boolean; - /** configuration for Vulnerability Assessment autoprovisioning */ - configuration?: DefenderForServersGcpOfferingVaAutoProvisioningConfiguration; -} - -/** configuration for Vulnerability Assessment autoprovisioning */ -export interface DefenderForServersGcpOfferingVaAutoProvisioningConfiguration { - /** The Vulnerability Assessment solution to be provisioned. Can be either 'TVM' or 'Qualys' */ - type?: Type; -} - -/** The Microsoft Defender for Endpoint autoprovisioning configuration */ -export interface DefenderForServersGcpOfferingMdeAutoProvisioning { - /** Is Microsoft Defender for Endpoint auto provisioning enabled */ - enabled?: boolean; - /** configuration for Microsoft Defender for Endpoint autoprovisioning */ - configuration?: Record; -} - -/** configuration for the servers offering subPlan */ -export interface DefenderForServersGcpOfferingSubPlan { - /** The available sub plans */ - 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; +/** DevOps Configuration properties. */ +export interface DevOpsConfigurationProperties { + /** + * 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; + /** Authorization payload. */ + authorization?: Authorization; + /** AutoDiscovery states. */ + autoDiscovery?: AutoDiscovery; + /** + * List of top-level inventory to select when AutoDiscovery is disabled. + * 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[]; + /** Details about Agentless configuration. */ + agentlessConfiguration?: AgentlessConfiguration; } -/** 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 }; +/** Authorization payload. */ +export interface Authorization { + /** + * Gets or sets one-time OAuth code to exchange for refresh and access tokens. + * + * Only used during PUT/PATCH operations. The secret is cleared during GET. + */ + code?: string; } -/** The ARC autoprovisioning configuration */ -export interface DefenderForDatabasesGcpOfferingArcAutoProvisioning { - /** Is arc auto provisioning enabled */ - enabled?: boolean; - /** Configuration for servers Arc auto provisioning */ - configuration?: DefenderForDatabasesGcpOfferingArcAutoProvisioningConfiguration; +/** 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; } -/** 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; +/** Details about Agentless configuration. */ +export interface AgentlessConfiguration { + /** Agentless Enablement states. */ + agentlessEnabled?: AgentlessEnablement; + /** AutoDiscovery states. */ + agentlessAutoDiscovery?: AutoDiscovery; + /** Gets or sets the scanners for the connector. */ + scanners?: string[]; + /** Types for inventory list. */ + inventoryListType?: InventoryListKind; + /** + * Gets or sets the inventory list for inclusion or exclusion from Agentless. + * Will be ignored if agentless auto-discovery is enabled. + */ + inventoryList?: InventoryList[]; } -/** The native cloud connection configuration */ -export interface DefenderForDatabasesGcpOfferingDefenderForDatabasesArcAutoProvisioning { - /** The service account email address in GCP for this offering */ - serviceAccountEmailAddress?: string; - /** The GCP workload identity provider id for this offering */ - workloadIdentityProviderId?: string; +/** Model for inventory to be included or excluded from Agentless. */ +export interface InventoryList { + /** Types for inventory kind. */ + inventoryKind?: InventoryKind; + /** Gets or sets the value for inventory type. */ + value?: string; } -/** The native cloud connection configuration */ -export interface DefenderForContainersGcpOfferingNativeCloudConnection { - /** The service account email address in GCP for this offering */ - serviceAccountEmailAddress?: string; - /** The GCP workload identity provider id for this offering */ - workloadIdentityProviderId?: string; +/** 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; } -/** The native cloud connection configuration */ -export interface DefenderForContainersGcpOfferingDataPipelineNativeCloudConnection { - /** The data collection service account email address in GCP for this offering */ - serviceAccountEmailAddress?: string; - /** The data collection GCP workload identity provider id for this offering */ - workloadIdentityProviderId?: 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; } -/** The Microsoft Defender Container image assessment configuration */ -export interface DefenderForContainersGcpOfferingMdcContainersImageAssessment { - /** Is Microsoft Defender container image assessment enabled */ - enabled?: boolean; - /** The workload identity provider id in GCP for this feature */ - workloadIdentityProviderId?: string; - /** The service account email address in GCP for this feature */ - serviceAccountEmailAddress?: string; +/** List of RP resources which supports pagination. */ +export interface GitHubRepositoryListResponse { + /** Gets or sets list of resources. */ + value?: GitHubRepository[]; + /** Gets or sets next link to scroll over the results. */ + nextLink?: string; } -/** The Microsoft Defender Container agentless discovery configuration */ -export interface DefenderForContainersGcpOfferingMdcContainersAgentlessDiscoveryK8S { - /** Is Microsoft Defender container agentless discovery enabled */ - enabled?: boolean; - /** The workload identity provider id in GCP for this feature */ - workloadIdentityProviderId?: string; - /** The service account email address in GCP for this feature */ - serviceAccountEmailAddress?: string; +/** GitHub Repository properties. */ +export interface GitHubRepositoryProperties { + /** + * 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 Repository id. + * + * This is a numeric id defined by Github. + * Eg: "123456". + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly repoId?: string; + /** + * Gets or sets GitHub Repository name. + * Eg: "new-repo-1". + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly repoName?: string; + /** + * Gets or sets GitHub Full Name. + * Repository name, prefixed with Owner name. + * Eg: "my-org/new-repo-1". + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly repoFullName?: 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; + /** + * Gets or sets GitHub Repository url. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly repoUrl?: string; + /** Gets or sets parent GitHub Owner name. */ + parentOwnerName?: 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; +/** List of RP resources which supports pagination. */ +export interface GitLabGroupListResponse { + /** Gets or sets list of resources. */ + value?: GitLabGroup[]; + /** Gets or sets next link to scroll over the results. */ + nextLink?: string; } -/** 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 */ - enabled?: boolean; - /** The cloud role ARN in AWS for this feature */ - cloudRoleArn?: string; -} - -/** The databases DSPM configuration */ -export interface DefenderCspmAwsOfferingDatabasesDspm { - /** Is databases DSPM protection enabled */ - enabled?: boolean; - /** The cloud role ARN in AWS for this feature */ - cloudRoleArn?: string; -} - -/** Defenders CSPM Cloud infrastructure entitlement management (CIEM) offering configurations */ -export interface DefenderCspmAwsOfferingCiem { - /** Defender CSPM CIEM discovery configuration */ - ciemDiscovery?: DefenderCspmAwsOfferingCiemDiscovery; - /** Defender CSPM CIEM AWS OIDC (open id connect) configuration */ - ciemOidc?: DefenderCspmAwsOfferingCiemOidc; -} - -/** Defender CSPM CIEM discovery configuration */ -export interface DefenderCspmAwsOfferingCiemDiscovery { - /** The cloud role ARN in AWS for CIEM discovery */ - cloudRoleArn?: string; -} - -/** Defender CSPM CIEM AWS OIDC (open id connect) configuration */ -export interface DefenderCspmAwsOfferingCiemOidc { - /** The cloud role ARN in AWS for CIEM oidc connection */ - cloudRoleArn?: string; - /** the azure active directory app name used of authenticating against AWS */ - azureActiveDirectoryAppName?: string; -} - -/** The Microsoft Defender container image assessment configuration */ -export interface DefenderCspmAwsOfferingMdcContainersImageAssessment { - /** Is Microsoft Defender container image assessment enabled */ - enabled?: boolean; - /** The cloud role ARN in AWS for this feature */ - cloudRoleArn?: string; -} - -/** The Microsoft Defender container agentless discovery K8s configuration */ -export interface DefenderCspmAwsOfferingMdcContainersAgentlessDiscoveryK8S { - /** Is Microsoft Defender container agentless discovery K8s enabled */ - enabled?: boolean; - /** The cloud role ARN in AWS for this feature */ - cloudRoleArn?: string; -} - -/** GCP Defenders CSPM Cloud infrastructure entitlement management (CIEM) discovery offering configurations */ -export interface DefenderCspmGcpOfferingCiemDiscovery { - /** The GCP workload identity provider id for CIEM discovery offering */ - workloadIdentityProviderId?: string; - /** The service account email address in GCP for CIEM discovery 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 */ - enabled?: boolean; - /** The workload identity provider id in GCP for this feature */ - workloadIdentityProviderId?: string; - /** The service account email address in GCP for this feature */ - serviceAccountEmailAddress?: string; -} - -/** The Microsoft Defender Container image assessment configuration */ -export interface DefenderCspmGcpOfferingMdcContainersImageAssessment { - /** Is Microsoft Defender container image assessment enabled */ - enabled?: boolean; - /** The workload identity provider id in GCP for this feature */ - workloadIdentityProviderId?: string; - /** The service account email address in GCP for this feature */ - serviceAccountEmailAddress?: string; -} - -/** The Microsoft Defender Container agentless discovery configuration */ -export interface DefenderCspmGcpOfferingMdcContainersAgentlessDiscoveryK8S { - /** Is Microsoft Defender container agentless discovery enabled */ - enabled?: boolean; - /** The workload identity provider id in GCP for this feature */ - workloadIdentityProviderId?: string; - /** The service account email address in GCP for this feature */ - serviceAccountEmailAddress?: string; -} - -/** 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. */ - [property: string]: any; - deviceVendor?: string; - deviceType?: string; - /** Represents an OMS workspace to which the solution is connected */ - workspace?: ConnectedWorkspace; -} - -/** Represents an OMS workspace to which the solution is connected */ -export interface ConnectedWorkspace { - /** Azure resource ID of the connected OMS workspace */ - id?: string; -} - -/** Describes an Azure resource with kind */ -export interface AadConnectivityStateAutoGenerated { - /** The connectivity state of the external AAD solution */ - connectivityState?: AadConnectivityState; -} - -/** Calculation result data */ -export interface SecureScoreControlScore { +/** GitLab Group properties. */ +export interface GitLabGroupProperties { /** - * Maximum control score (0..10) + * Gets the resource status message. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly max?: number; + readonly provisioningStatusMessage?: string; /** - * Actual score for the control = (achieved points / total points) * max score. if total points is zeroed, the return number is 0.00 + * Gets the time when resource was last checked. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly current?: number; + readonly provisioningStatusUpdateTimeUtc?: Date; /** - * Ratio of the current score divided by the maximum. Rounded to 4 digits after the decimal point + * 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 percentage?: number; -} - -/** The ASC location of the subscription is in the "name" field */ -export interface AscLocation extends Resource { - /** An empty set of properties */ - properties?: Record; -} - -/** Security task that we recommend to do in order to strengthen security */ -export interface SecurityTask extends Resource { + readonly provisioningState?: DevOpsProvisioningState; /** - * State of the task (Active, Resolved etc.) + * Gets or sets the fully-qualified name of the Group object. + * + * This contains the entire namespace hierarchy where namespaces are separated by the '$' character. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly state?: string; + readonly fullyQualifiedName?: string; /** - * The time this task was discovered in UTC + * Gets or sets the human readable fully-qualified name of the Group object. + * + * This contains the entire namespace hierarchy as seen on GitLab UI where namespaces are separated by the '/' character. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly creationTimeUtc?: Date; - /** Changing set of properties, depending on the task type that is derived from the name field */ - securityTaskParameters?: SecurityTaskParameters; + readonly fullyQualifiedFriendlyName?: string; /** - * The time this task's details were last changed in UTC + * Gets or sets the url of the GitLab Group. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly lastStateChangeTimeUtc?: Date; + readonly url?: string; /** - * Additional data on the state of the task - * NOTE: This property will not be serialized. It can only be populated by the server. + * 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. */ - readonly subState?: string; + onboardingState?: OnboardingState; } -/** Auto provisioning setting */ -export interface AutoProvisioningSetting extends Resource { - /** Describes what kind of security agent provisioning action to take */ - autoProvision?: AutoProvision; +/** List of RP resources which supports pagination. */ +export interface GitLabProjectListResponse { + /** Gets or sets list of resources. */ + value?: GitLabProject[]; + /** Gets or sets next link to scroll over the results. */ + nextLink?: string; } -/** Compliance of a scope */ -export interface Compliance extends Resource { +/** GitLab Project properties. */ +export interface GitLabProjectProperties { /** - * The timestamp when the Compliance calculation was conducted. + * Gets the resource status message. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly assessmentTimestampUtcDate?: Date; + readonly provisioningStatusMessage?: string; /** - * The resource count of the given subscription for which the Compliance calculation was conducted (needed for Management Group Compliance calculation). + * Gets the time when resource was last checked. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly resourceCount?: number; + readonly provisioningStatusUpdateTimeUtc?: Date; /** - * An array of segment, which is the actually the compliance assessment. + * 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 assessmentResult?: ComplianceSegment[]; -} - -/** Information protection policy. */ -export interface InformationProtectionPolicy extends Resource { + readonly provisioningState?: DevOpsProvisioningState; /** - * Describes the last UTC time the policy was modified. + * Gets or sets the fully-qualified name of the project object. + * + * This contains the entire hierarchy where entities are separated by the '$' character. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly lastModifiedUtc?: Date; + readonly fullyQualifiedName?: string; /** - * Describes the version of the policy. + * Gets or sets the human readable fully-qualified name of the Project object. + * + * This contains the entire namespace hierarchy as seen on GitLab UI where entities are separated by the '/' character. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly version?: string; - /** Dictionary of sensitivity labels. */ - labels?: { [propertyName: string]: SensitivityLabel }; - /** The sensitivity information types. */ - informationTypes?: { [propertyName: string]: InformationType }; -} - -/** Configures where to store the OMS agent data for workspaces under a scope */ -export interface WorkspaceSetting extends Resource { - /** The full Azure ID of the workspace to save the data in */ - workspaceId?: string; - /** All the VMs in this scope will send their security data to the mentioned workspace unless overridden by a setting with more specific scope */ - scope?: string; -} - -/** Describes the suppression rule */ -export interface AlertsSuppressionRule extends Resource { - /** Type of the alert to automatically suppress. For all alert types, use '*' */ - alertType?: string; + readonly fullyQualifiedFriendlyName?: string; /** - * The last time this rule was modified + * Gets or sets the fully-qualified name of the project's parent group object. + * + * This contains the entire hierarchy where namespaces are separated by the '$' character. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly lastModifiedUtc?: Date; - /** Expiration date of the rule, if value is not provided or provided as null there will no expiration at all */ - expirationDateUtc?: Date; - /** The reason for dismissing the alert */ - reason?: string; - /** Possible states of the rule */ - state?: RuleState; - /** Any comment regarding the rule */ - comment?: string; - /** The suppression conditions */ - 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 */ - state?: State; - /** - * The number of supported regulatory compliance controls of the given standard with a passed state - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly passedControls?: number; - /** - * The number of supported regulatory compliance controls of the given standard with a failed state - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly failedControls?: number; + readonly fullyQualifiedParentGroupName?: string; /** - * The number of supported regulatory compliance controls of the given standard with a skipped state + * Gets or sets the url of the GitLab Project. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly skippedControls?: number; + readonly url?: string; /** - * The number of regulatory compliance controls of the given standard which are unsupported by automated assessments - * NOTE: This property will not be serialized. It can only be populated by the server. + * 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. */ - readonly unsupportedControls?: number; + onboardingState?: OnboardingState; } -/** Regulatory compliance control details and state */ -export interface RegulatoryComplianceControl extends Resource { - /** - * The description of the regulatory compliance control - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly description?: string; - /** Aggregative state based on the control's supported assessments states */ - state?: State; - /** - * The number of supported regulatory compliance assessments of the given control with a passed state - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly passedAssessments?: number; - /** - * The number of supported regulatory compliance assessments of the given control with a failed state - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly failedAssessments?: number; - /** - * The number of supported regulatory compliance assessments of the given control with a skipped state - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly skippedAssessments?: number; +/** The current status of an async operation. */ +export interface OperationStatusResult { + /** Fully qualified ID for the async operation. */ + id?: string; + /** Name of the async operation. */ + name?: string; + /** Operation status. */ + status: string; + /** Percent of the operation that is complete. */ + percentComplete?: number; + /** The start time of the operation. */ + startTime?: Date; + /** The end time of the operation. */ + endTime?: Date; + /** The operations list. */ + operations?: OperationStatusResult[]; + /** If present, details of the operation error. */ + error?: ErrorDetailAutoGenerated2; } -/** Regulatory compliance assessment details and state */ -export interface RegulatoryComplianceAssessment extends Resource { - /** - * The description of the regulatory compliance assessment - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly description?: string; - /** - * The expected type of assessment contained in the AssessmentDetailsLink - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly assessmentType?: string; - /** - * Link to more detailed assessment results data. The response type will be according to the assessmentType field - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly assessmentDetailsLink?: string; - /** Aggregative state based on the assessment's scanned resources states */ - state?: State; - /** - * The given assessment's related resources count with passed state. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly passedResources?: number; - /** - * The given assessment's related resources count with failed state. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly failedResources?: number; - /** - * The given assessment's related resources count with skipped state. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly skippedResources?: number; +/** CVSS details */ +export interface Cvss { /** - * The given assessment's related resources count with unsupported state. + * CVSS base * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly unsupportedResources?: number; + readonly base?: number; } -/** Security sub-assessment on a resource */ -export interface SecuritySubAssessment extends Resource { - /** - * Vulnerability ID - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly idPropertiesId?: string; +/** CVE details */ +export interface Cve { /** - * User friendly display name of the sub-assessment + * CVE title * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly displayName?: string; - /** Status of the sub-assessment */ - status?: SubAssessmentStatus; + readonly title?: string; /** - * Information on how to remediate this sub-assessment + * Link url * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly remediation?: string; + readonly link?: string; +} + +/** Vendor reference */ +export interface VendorReference { /** - * Description of the impact of this sub-assessment + * Link title * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly impact?: string; + readonly title?: string; /** - * Category of the sub-assessment + * Link url * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly category?: string; + readonly link?: string; +} + +/** Governance rule's condition */ +export interface Condition { + /** The governance rule Condition's Property, e.g. Severity or AssessmentKey, see examples */ + property?: string; + /** The governance rule Condition's Value like severity Low, High or assessments keys, see examples */ + value?: string; + /** The governance rule Condition's Operator, for example Equals for severity or In for list of assessments, see examples */ + operator?: GovernanceRuleConditionOperator; +} + +/** Application's condition */ +export interface ApplicationCondition { + /** The application Condition's Property, e.g. ID, see examples */ + property?: string; + /** The application Condition's Value like IDs that contain some string, see examples */ + value?: string; + /** The application Condition's Operator, for example Contains for id or In for list of possible IDs, see examples */ + operator?: ApplicationConditionOperator; +} + +/** The AWS organization data */ +export interface AwsOrganizationalData { + /** Polymorphic discriminator, which specifies the different types this object can be */ + organizationMembershipType: "Organization" | "Member"; +} + +/** The gcpOrganization data */ +export interface GcpOrganizationalData { + /** Polymorphic discriminator, which specifies the different types this object can be */ + organizationMembershipType: "Organization" | "Member"; +} + +/** The details about the project represented by the security connector */ +export interface GcpProjectDetails { + /** The unique GCP Project number */ + projectNumber?: string; + /** The GCP Project id */ + projectId?: string; /** - * Human readable description of the assessment status + * The GCP workload identity federation pool id * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly description?: string; + readonly workloadIdentityPoolId?: string; /** - * The date and time the sub-assessment was generated + * GCP project name * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly timeGenerated?: Date; - /** Details of the resource that was assessed */ - resourceDetails?: ResourceDetailsUnion; - /** Details of the sub-assessment */ - additionalData?: AdditionalDataUnion; + readonly projectName?: string; } -/** The connector setting */ -export interface ConnectorSetting extends Resource { - /** Settings for hybrid compute management. These settings are relevant only for Arc autoProvision (Hybrid Compute). */ - hybridComputeSettings?: HybridComputeSettingsProperties; - /** Settings for authentication management, these settings are relevant only for the cloud connector. */ - authenticationDetails?: AuthenticationDetailsPropertiesUnion; +/** The environment authentication details */ +export interface Authentication { + /** Polymorphic discriminator, which specifies the different types this object can be */ + authenticationType: "AccessToken"; } -/** 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; +/** The native cloud connection configuration */ +export interface CspmMonitorAwsOfferingNativeCloudConnection { + /** The cloud role ARN in AWS for this feature */ + cloudRoleArn?: string; } -/** Represents a software data */ -export interface Software extends Resource { - /** Unique identifier for the virtual machine in the service. */ - deviceId?: string; - /** Platform of the operating system running on the device. */ - osPlatform?: string; - /** Name of the software vendor. */ - vendor?: string; - /** Name of the software product. */ - softwareName?: string; - /** Version number of the software product. */ - version?: string; - /** End of support status. */ - endOfSupportStatus?: EndOfSupportStatus; - /** The end of support date in case the product is upcoming end of support. */ - endOfSupportDate?: string; - /** Number of weaknesses. */ - numberOfKnownVulnerabilities?: number; - /** First time that the software was seen in the device. */ - firstSeenAt?: string; +/** The kubernetes service connection configuration */ +export interface DefenderForContainersAwsOfferingKubernetesService { + /** The cloud role ARN in AWS for this feature used for provisioning resources */ + cloudRoleArn?: string; } -/** Custom Assessment Automation */ -export interface CustomAssessmentAutomation extends Resource { - /** - * Azure Resource Manager metadata containing createdBy and modifiedBy information. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly systemData?: SystemData; - /** GZip encoded KQL query representing the assessment automation results required. */ - compressedQuery?: string; - /** Relevant cloud for the custom assessment automation. */ - supportedCloud?: SupportedCloudEnum; - /** The severity to relate to the assessments generated by this assessment automation. */ - severity?: SeverityEnum; - /** The display name of the assessments generated by this assessment automation. */ - displayName?: string; - /** The description to relate to the assessments generated by this assessment automation. */ - description?: string; - /** The remediation description to relate to the assessments generated by this assessment automation. */ - remediationDescription?: string; - /** The assessment metadata key used when an assessment is generated for this assessment automation. */ - assessmentKey?: string; +/** The kubernetes data collection connection configuration */ +export interface DefenderForContainersAwsOfferingKubernetesDataCollection { + /** The cloud role ARN in AWS for this feature used for reading data */ + cloudRoleArn?: string; } -/** Custom Assessment Automation request */ -export interface CustomAssessmentAutomationRequest extends Resource { - /** Base 64 encoded KQL query representing the assessment automation results required. */ - compressedQuery?: string; - /** Relevant cloud for the custom assessment automation. */ - supportedCloud?: SupportedCloudEnum; - /** The severity to relate to the assessments generated by this assessment automation. */ - severity?: SeverityEnum; - /** The display name of the assessments generated by this assessment automation. */ - displayName?: string; - /** The description to relate to the assessments generated by this assessment automation. */ - description?: string; - /** The remediation description to relate to the assessments generated by this assessment automation. */ - remediationDescription?: string; +/** The cloudwatch to kinesis connection configuration */ +export interface DefenderForContainersAwsOfferingCloudWatchToKinesis { + /** The cloud role ARN in AWS used by CloudWatch to transfer data into Kinesis */ + cloudRoleArn?: string; } -/** Custom entity store assignment */ -export interface CustomEntityStoreAssignment extends Resource { - /** - * Azure Resource Manager metadata containing createdBy and modifiedBy information. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly systemData?: SystemData; - /** The principal assigned with entity store. Format of principal is: [AAD type]=[PrincipalObjectId];[TenantId] */ - principal?: string; - /** The link to entity store database. */ - entityStoreDatabaseLink?: string; +/** The kinesis to s3 connection configuration */ +export interface DefenderForContainersAwsOfferingKinesisToS3 { + /** The cloud role ARN in AWS used by Kinesis to transfer data into S3 */ + cloudRoleArn?: string; } -/** The resource of the configuration or data needed to onboard the machine to MDE */ -export interface MdeOnboardingData extends Resource { - /** The onboarding package used to onboard Windows machines to MDE, coded in base64. This can also be used for onboarding using the dedicated VM Extension */ - onboardingPackageWindows?: Uint8Array; - /** The onboarding package used to onboard Linux machines to MDE, coded in base64. This can also be used for onboarding using the dedicated VM Extension */ - onboardingPackageLinux?: Uint8Array; +/** The Microsoft Defender container image assessment configuration */ +export interface DefenderForContainersAwsOfferingMdcContainersImageAssessment { + /** Is Microsoft Defender container image assessment enabled */ + enabled?: boolean; + /** The cloud role ARN in AWS for this feature */ + cloudRoleArn?: string; } -/** Governance assignment over a given scope */ -export interface GovernanceAssignment extends Resource { - /** The Owner for the governance assignment - e.g. user@contoso.com - see example */ - owner?: string; - /** The remediation due-date - after this date Secure Score will be affected (in case of active grace-period) */ - remediationDueDate?: Date; - /** The ETA (estimated time of arrival) for remediation (optional), see example */ - remediationEta?: RemediationEta; - /** Defines whether there is a grace period on the governance assignment */ - isGracePeriod?: boolean; - /** The email notifications settings for the governance rule, states whether to disable notifications for mangers and owners */ - governanceEmailNotification?: GovernanceEmailNotification; - /** The additional data for the governance assignment - e.g. links to ticket (optional), see example */ - additionalData?: GovernanceAssignmentAdditionalData; +/** The Microsoft Defender container agentless discovery K8s configuration */ +export interface DefenderForContainersAwsOfferingMdcContainersAgentlessDiscoveryK8S { + /** Is Microsoft Defender container agentless discovery K8s enabled */ + enabled?: boolean; + /** The cloud role ARN in AWS for this feature */ + cloudRoleArn?: string; } -/** Governance rule over a given scope */ -export interface GovernanceRule extends Resource { - /** - * The tenantId (GUID) - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly tenantId?: string; - /** Display name of the governance rule */ - displayName?: string; - /** Description of the governance rule */ - description?: string; - /** Governance rule remediation timeframe - this is the time that will affect on the grace-period duration e.g. 7.00:00:00 - means 7 days */ - remediationTimeframe?: string; - /** Defines whether there is a grace period on the governance rule */ - isGracePeriod?: boolean; - /** The governance rule priority, priority to the lower number. Rules with the same priority on the same scope will not be allowed */ - rulePriority?: number; - /** Defines whether the rule is active/inactive */ - isDisabled?: boolean; - /** The rule type of the governance rule, defines the source of the rule e.g. Integrated */ - ruleType?: GovernanceRuleType; - /** The governance rule source, what the rule affects, e.g. Assessments */ - sourceResourceType?: GovernanceRuleSourceResourceType; - /** Excluded scopes, filter out the descendants of the scope (on management scopes) */ - excludedScopes?: string[]; - /** The governance rule conditionSets - see examples */ - conditionSets?: Record[]; - /** Defines whether the rule is management scope rule (master connector as a single scope or management scope) */ - includeMemberScopes?: boolean; - /** The owner source for the governance rule - e.g. Manually by user@contoso.com - see example */ - ownerSource?: GovernanceRuleOwnerSource; - /** The email notifications settings for the governance rule, states whether to disable notifications for mangers and owners */ - governanceEmailNotification?: GovernanceRuleEmailNotification; - /** The governance rule metadata */ - metadata?: GovernanceRuleMetadata; +/** 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; } -/** Security Application over a given scope */ -export interface Application extends Resource { - /** display name of the application */ - displayName?: string; - /** description of the application */ - description?: string; - /** The application source, what it affects, e.g. Assessments */ - sourceResourceType?: ApplicationSourceResourceType; - /** The application conditionSets - see examples */ - conditionSets?: Record[]; +/** 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 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; +/** The Defender for servers connection configuration */ +export interface DefenderForServersAwsOfferingDefenderForServers { + /** The cloud role ARN in AWS for this feature */ + cloudRoleArn?: string; } -/** Security operator under a given subscription and pricing */ -export interface SecurityOperator extends Resource { - /** Identity for the resource. */ - identity?: Identity; +/** The ARC autoprovisioning configuration */ +export interface ArcAutoProvisioning { + /** Is arc auto provisioning enabled */ + enabled?: boolean; + /** Configuration for servers Arc auto provisioning for a given environment */ + configuration?: ArcAutoProvisioningConfiguration; } -/** Rule results. */ -export interface RuleResults extends Resource { - /** Rule results properties. */ - properties?: RuleResultsProperties; +/** 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 */ + privateLinkScope?: string; } -/** A vulnerability assessment scan record. */ -export interface Scan extends Resource { - /** A vulnerability assessment scan record properties. */ - properties?: ScanProperties; +/** The Vulnerability Assessment autoprovisioning configuration */ +export interface DefenderForServersAwsOfferingVaAutoProvisioning { + /** Is Vulnerability Assessment auto provisioning enabled */ + enabled?: boolean; + /** configuration for Vulnerability Assessment autoprovisioning */ + configuration?: DefenderForServersAwsOfferingVaAutoProvisioningConfiguration; } -/** A vulnerability assessment scan result for a single rule. */ -export interface ScanResult extends Resource { - /** A vulnerability assessment scan result properties for a single rule. */ - properties?: ScanResultProperties; +/** configuration for Vulnerability Assessment autoprovisioning */ +export interface DefenderForServersAwsOfferingVaAutoProvisioningConfiguration { + /** The Vulnerability Assessment solution to be provisioned. Can be either 'TVM' or 'Qualys' */ + type?: Type; } -/** The health report resource */ -export interface HealthReport extends Resource { - /** The resource details of the health report */ - resourceDetails?: ResourceDetailsAutoGenerated; - /** The environment details of the resource */ - environmentDetails?: EnvironmentDetails; - /** The classification of the health report */ - healthDataClassification?: HealthDataClassification; - /** The status of the health report */ - status?: StatusAutoGenerated; - /** The affected defenders plans by unhealthy report */ - affectedDefendersPlans?: string[]; - /** The affected defenders sub plans by unhealthy report */ - affectedDefendersSubPlans?: string[]; - /** - * Additional data for the given health report, this field can include more details on the resource and the health scenario. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly reportAdditionalData?: { [propertyName: string]: string }; - /** A collection of the issues in the report */ - issues?: Issue[]; +/** The Microsoft Defender for Endpoint autoprovisioning configuration */ +export interface DefenderForServersAwsOfferingMdeAutoProvisioning { + /** Is Microsoft Defender for Endpoint auto provisioning enabled */ + enabled?: boolean; + /** configuration for Microsoft Defender for Endpoint autoprovisioning */ + configuration?: Record; } -/** a compliance result */ -export interface ComplianceResult extends Resource { - /** - * The status of the resource regarding a single assessment - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly resourceStatus?: ResourceStatus; +/** configuration for the servers offering subPlan */ +export interface DefenderForServersAwsOfferingSubPlan { + /** The available sub plans */ + type?: SubPlan; } -/** The Advanced Threat Protection resource. */ -export interface AdvancedThreatProtectionSetting extends Resource { - /** Indicates whether Advanced Threat Protection is enabled. */ - isEnabled?: boolean; +/** The RDS configuration */ +export interface DefenderFoDatabasesAwsOfferingRds { + /** Is RDS protection enabled */ + enabled?: boolean; + /** The cloud role ARN in AWS for this feature */ + cloudRoleArn?: string; } -/** The device security group resource */ -export interface DeviceSecurityGroup extends Resource { - /** The list of custom alert threshold rules. */ - thresholdRules?: ThresholdCustomAlertRuleUnion[]; - /** The list of custom alert time-window rules. */ - timeWindowRules?: TimeWindowCustomAlertRuleUnion[]; - /** The allow-list custom alert rules. */ - allowlistRules?: AllowlistCustomAlertRuleUnion[]; - /** The deny-list custom alert rules. */ - denylistRules?: DenylistCustomAlertRule[]; +/** The databases data security posture management (DSPM) configuration */ +export interface DefenderFoDatabasesAwsOfferingDatabasesDspm { + /** Is databases data security posture management (DSPM) protection enabled */ + enabled?: boolean; + /** The cloud role ARN in AWS for this feature */ + cloudRoleArn?: string; } -/** Security analytics of your IoT Security solution */ -export interface IoTSecuritySolutionAnalyticsModel extends Resource { - /** - * Security analytics of your IoT Security solution. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly metrics?: IoTSeverityMetrics; - /** - * Number of unhealthy devices within your IoT Security solution. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly unhealthyDeviceCount?: number; - /** - * List of device metrics by the aggregation date. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly devicesMetrics?: IoTSecuritySolutionAnalyticsModelPropertiesDevicesMetricsItem[]; - /** List of the 3 devices with the most alerts. */ - topAlertedDevices?: IoTSecurityAlertedDevice[]; - /** List of the 3 most prevalent device alerts. */ - mostPrevalentDeviceAlerts?: IoTSecurityDeviceAlert[]; - /** List of the 3 most prevalent device recommendations. */ - mostPrevalentDeviceRecommendations?: IoTSecurityDeviceRecommendation[]; +/** The native cloud connection configuration */ +export interface CspmMonitorGcpOfferingNativeCloudConnection { + /** The GCP workload identity provider id for the offering */ + workloadIdentityProviderId?: string; + /** The service account email address in GCP for this offering */ + serviceAccountEmailAddress?: string; } -/** Security Solution Aggregated Alert information */ -export interface IoTSecurityAggregatedAlert extends Resource, TagsResource { - /** - * Name of the alert type. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly alertType?: string; - /** - * Display name of the alert type. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly alertDisplayName?: string; - /** - * Date of detection. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly aggregatedDateUtc?: Date; - /** - * Name of the organization that raised the alert. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly vendorName?: string; - /** - * Assessed alert severity. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly reportedSeverity?: ReportedSeverity; - /** - * Recommended steps for remediation. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly remediationSteps?: string; - /** - * Description of the suspected vulnerability and meaning. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly description?: string; - /** - * Number of alerts occurrences within the aggregated time window. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly count?: number; - /** - * Azure resource ID of the resource that received the alerts. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly effectedResourceType?: string; - /** - * The type of the alerted resource (Azure, Non-Azure). - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly systemSource?: string; - /** - * IoT Security solution alert response. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly actionTaken?: string; - /** - * Log analytics query for getting the list of affected devices/alerts. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly logAnalyticsQuery?: string; - /** - * 10 devices with the highest number of occurrences of this alert type, on this day. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly topDevicesList?: IoTSecurityAggregatedAlertPropertiesTopDevicesListItem[]; +/** The Defender for servers connection configuration */ +export interface DefenderForServersGcpOfferingDefenderForServers { + /** The workload identity provider id in GCP for this feature */ + workloadIdentityProviderId?: string; + /** The service account email address in GCP for this feature */ + serviceAccountEmailAddress?: string; } -/** IoT Security solution recommendation information. */ -export interface IoTSecurityAggregatedRecommendation - extends Resource, - TagsResource { - /** Name of the recommendation. */ - recommendationName?: string; - /** - * Display name of the recommendation type. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly recommendationDisplayName?: string; - /** - * Description of the suspected vulnerability and meaning. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly description?: string; - /** - * Recommendation-type GUID. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly recommendationTypeId?: string; - /** - * Name of the organization that made the recommendation. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly detectedBy?: string; - /** - * Recommended steps for remediation - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly remediationSteps?: string; - /** - * Assessed recommendation severity. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly reportedSeverity?: ReportedSeverity; - /** - * Number of healthy devices within the IoT Security solution. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly healthyDevices?: number; - /** - * Number of unhealthy devices within the IoT Security solution. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly unhealthyDeviceCount?: number; - /** - * Log analytics query for getting the list of affected devices/alerts. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly logAnalyticsQuery?: string; +/** The Vulnerability Assessment autoprovisioning configuration */ +export interface DefenderForServersGcpOfferingVaAutoProvisioning { + /** Is Vulnerability Assessment auto provisioning enabled */ + enabled?: boolean; + /** configuration for Vulnerability Assessment autoprovisioning */ + configuration?: DefenderForServersGcpOfferingVaAutoProvisioningConfiguration; } -/** IoT Security solution configuration and resource information. */ -export interface IoTSecuritySolutionModel extends Resource, TagsResource { - /** The resource location. */ - location?: string; - /** - * Azure Resource Manager metadata containing createdBy and modifiedBy information. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly systemData?: SystemData; - /** Workspace resource ID */ - workspace?: string; - /** Resource display name. */ - displayName?: string; - /** Status of the IoT Security solution. */ - status?: SecuritySolutionStatus; - /** List of additional options for exporting to workspace data. */ - export?: ExportData[]; - /** Disabled data sources. Disabling these data sources compromises the system. */ - disabledDataSources?: DataSource[]; - /** IoT Hub resource IDs */ - iotHubs?: string[]; - /** Properties of the IoT Security solution's user defined resources. */ - userDefinedResources?: UserDefinedResourcesProperties; - /** - * List of resources that were automatically discovered as relevant to the security solution. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly autoDiscoveredResources?: string[]; - /** List of the configuration status for each recommendation type. */ - recommendationsConfiguration?: RecommendationConfigurationProperties[]; - /** Unmasked IP address logging status */ - unmaskedIpLoggingStatus?: UnmaskedIpLoggingStatus; - /** List of additional workspaces */ - additionalWorkspaces?: AdditionalWorkspacesProperties[]; +/** configuration for Vulnerability Assessment autoprovisioning */ +export interface DefenderForServersGcpOfferingVaAutoProvisioningConfiguration { + /** The Vulnerability Assessment solution to be provisioned. Can be either 'TVM' or 'Qualys' */ + type?: Type; } -/** 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 Microsoft Defender for Endpoint autoprovisioning configuration */ +export interface DefenderForServersGcpOfferingMdeAutoProvisioning { + /** Is Microsoft Defender for Endpoint auto provisioning enabled */ + enabled?: boolean; + /** configuration for Microsoft Defender for Endpoint autoprovisioning */ + configuration?: Record; } -/** The resource whose properties describes the allowed traffic between Azure resources */ -export interface AllowedConnectionsResource extends Resource, Location { - /** - * The UTC time on which the allowed connections resource was calculated - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly calculatedDateTime?: Date; - /** - * List of connectable resources - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly connectableResources?: ConnectableResource[]; +/** configuration for the servers offering subPlan */ +export interface DefenderForServersGcpOfferingSubPlan { + /** The available sub plans */ + type?: SubPlan; } -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[]; +/** The native cloud connection configuration */ +export interface DefenderForDatabasesGcpOfferingDefenderForDatabasesArcAutoProvisioning { + /** The service account email address in GCP for this offering */ + serviceAccountEmailAddress?: string; + /** The GCP workload identity provider id for this offering */ + workloadIdentityProviderId?: string; } -export interface DiscoveredSecuritySolution extends Resource, Location { - /** The security family of the discovered solution */ - securityFamily: SecurityFamily; - /** The security solutions' image offer */ - offer: string; - /** The security solutions' image publisher */ - publisher: string; - /** The security solutions' image sku */ - sku: string; +/** The native cloud connection configuration */ +export interface DefenderForContainersGcpOfferingNativeCloudConnection { + /** The service account email address in GCP for this offering */ + serviceAccountEmailAddress?: string; + /** The GCP workload identity provider id for this offering */ + workloadIdentityProviderId?: string; } -/** Represents a security solution external to Microsoft Defender for Cloud which sends information to an OMS workspace and whose data is displayed by Microsoft Defender for Cloud. */ -export interface ExternalSecuritySolution - extends Resource, - ExternalSecuritySolutionKindAutoGenerated, - Location {} - -export interface JitNetworkAccessPolicy - extends Resource, - KindAutoGenerated, - Location { - /** Configurations for Microsoft.Compute/virtualMachines resource type. */ - virtualMachines: JitNetworkAccessPolicyVirtualMachine[]; - requests?: JitNetworkAccessRequest[]; - /** - * Gets the provisioning state of the Just-in-Time policy. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly provisioningState?: string; +/** The native cloud connection configuration */ +export interface DefenderForContainersGcpOfferingDataPipelineNativeCloudConnection { + /** The data collection service account email address in GCP for this offering */ + serviceAccountEmailAddress?: string; + /** The data collection GCP workload identity provider id for this offering */ + workloadIdentityProviderId?: string; } -/** Secure score item data model */ -export interface SecureScoreItem extends Resource { - /** - * The initiative’s name - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly displayName?: string; - /** - * The relative weight for each subscription. Used when calculating an aggregated secure score for multiple subscriptions. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly weight?: number; +/** The Microsoft Defender Container image assessment configuration */ +export interface DefenderForContainersGcpOfferingMdcContainersImageAssessment { + /** Is Microsoft Defender container image assessment enabled */ + enabled?: boolean; + /** The workload identity provider id in GCP for this feature */ + workloadIdentityProviderId?: string; + /** The service account email address in GCP for this feature */ + serviceAccountEmailAddress?: string; +} + +/** The Microsoft Defender Container agentless discovery configuration */ +export interface DefenderForContainersGcpOfferingMdcContainersAgentlessDiscoveryK8S { + /** Is Microsoft Defender container agentless discovery enabled */ + enabled?: boolean; + /** The workload identity provider id in GCP for this feature */ + workloadIdentityProviderId?: string; + /** The service account email address in GCP for this feature */ + serviceAccountEmailAddress?: string; +} + +/** The Microsoft Defender Data Sensitivity discovery configuration */ +export interface DefenderCspmAwsOfferingDataSensitivityDiscovery { + /** Is Microsoft Defender Data Sensitivity discovery enabled */ + enabled?: boolean; + /** The cloud role ARN in AWS for this feature */ + cloudRoleArn?: string; +} + +/** The databases DSPM configuration */ +export interface DefenderCspmAwsOfferingDatabasesDspm { + /** Is databases DSPM protection enabled */ + enabled?: boolean; + /** The cloud role ARN in AWS for this feature */ + cloudRoleArn?: string; +} + +/** Defenders CSPM Permissions Management offering configurations */ +export interface DefenderCspmAwsOfferingCiem { + /** Defender CSPM Permissions Management discovery configuration */ + ciemDiscovery?: DefenderCspmAwsOfferingCiemDiscovery; + /** AWS Defender CSPM Permissions Management OIDC (open id connect) connection configurations */ + ciemOidc?: DefenderCspmAwsOfferingCiemOidc; +} + +/** Defender CSPM Permissions Management discovery configuration */ +export interface DefenderCspmAwsOfferingCiemDiscovery { + /** The cloud role ARN in AWS for Permissions Management discovery */ + cloudRoleArn?: string; +} + +/** AWS Defender CSPM Permissions Management OIDC (open id connect) connection configurations */ +export interface DefenderCspmAwsOfferingCiemOidc { + /** 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; +} + +/** The Microsoft Defender container image assessment configuration */ +export interface DefenderCspmAwsOfferingMdcContainersImageAssessment { + /** Is Microsoft Defender container image assessment enabled */ + enabled?: boolean; + /** The cloud role ARN in AWS for this feature */ + cloudRoleArn?: string; +} + +/** The Microsoft Defender container agentless discovery K8s configuration */ +export interface DefenderCspmAwsOfferingMdcContainersAgentlessDiscoveryK8S { + /** Is Microsoft Defender container agentless discovery K8s enabled */ + enabled?: boolean; + /** The cloud role ARN in AWS for this feature */ + cloudRoleArn?: string; +} + +/** GCP Defenders CSPM Permissions Management OIDC (Open ID connect) connection configurations */ +export interface DefenderCspmGcpOfferingCiemDiscovery { + /** The GCP workload identity provider id for Permissions Management offering */ + workloadIdentityProviderId?: string; + /** 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 Data Sensitivity discovery configuration */ +export interface DefenderCspmGcpOfferingDataSensitivityDiscovery { + /** Is Microsoft Defender Data Sensitivity discovery enabled */ + enabled?: boolean; + /** The workload identity provider id in GCP for this feature */ + workloadIdentityProviderId?: string; + /** The service account email address in GCP for this feature */ + serviceAccountEmailAddress?: string; +} + +/** The Microsoft Defender Container image assessment configuration */ +export interface DefenderCspmGcpOfferingMdcContainersImageAssessment { + /** Is Microsoft Defender container image assessment enabled */ + enabled?: boolean; + /** The workload identity provider id in GCP for this feature */ + workloadIdentityProviderId?: string; + /** The service account email address in GCP for this feature */ + serviceAccountEmailAddress?: string; +} + +/** The Microsoft Defender Container agentless discovery configuration */ +export interface DefenderCspmGcpOfferingMdcContainersAgentlessDiscoveryK8S { + /** Is Microsoft Defender container agentless discovery enabled */ + enabled?: boolean; + /** The workload identity provider id in GCP for this feature */ + workloadIdentityProviderId?: string; + /** The service account email address in GCP for this feature */ + serviceAccountEmailAddress?: string; +} + +/** The Microsoft Defender Container image assessment configuration */ +export interface DefenderCspmJFrogOfferingMdcContainersImageAssessment { + /** Is Microsoft Defender container image assessment enabled */ + enabled?: boolean; +} + +/** 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. */ + [property: string]: any; + deviceVendor?: string; + deviceType?: string; + /** Represents an OMS workspace to which the solution is connected */ + workspace?: ConnectedWorkspace; +} + +/** Represents an OMS workspace to which the solution is connected */ +export interface ConnectedWorkspace { + /** Azure resource ID of the connected OMS workspace */ + id?: string; +} + +/** Describes an Azure resource with kind */ +export interface AadConnectivityStateAutoGenerated { + /** The connectivity state of the external AAD solution */ + connectivityState?: AadConnectivityState; +} + +/** Calculation result data */ +export interface SecureScoreControlScore { /** - * Maximum score available + * Maximum control score (0..10) * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly max?: number; /** - * Current score + * Actual score for the control = (achieved points / total points) * max score. if total points is zeroed, the return number is 0.00 * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly current?: number; @@ -4264,3429 +3539,3994 @@ export interface SecureScoreItem extends Resource { readonly percentage?: number; } -/** Information about the security control. */ -export interface SecureScoreControlDefinitionItem extends Resource { - /** - * User friendly display name of the control - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly displayName?: string; - /** - * User friendly description of the control - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly description?: string; +/** AzureDevOps Org Inventory Configuration. */ +export interface AzureDevOpsOrganizationConfiguration { + /** AutoDiscovery states. */ + autoDiscovery?: AutoDiscovery; /** - * Maximum control score (0..10) - * NOTE: This property will not be serialized. It can only be populated by the server. + * AzureDevOps Project Inventory Configuration. + * Dictionary of AzureDevOps project name to desired project configuration. + * If AutoDiscovery is Enabled, this field should be empty or null. */ - readonly maxScore?: number; + projectConfigs?: { [propertyName: string]: AzureDevOpsProjectConfiguration }; +} + +/** AzureDevOps Project Inventory Configuration. */ +export interface AzureDevOpsProjectConfiguration { + /** AutoDiscovery states. */ + autoDiscovery?: AutoDiscovery; /** - * Source object from which the control was created - * NOTE: This property will not be serialized. It can only be populated by the server. + * AzureDevOps Repository Inventory Configuration. + * Dictionary of AzureDevOps repository name to desired repository configuration. + * If AutoDiscovery is Enabled, this field should be null or empty. */ - readonly source?: SecureScoreControlDefinitionSource; + 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; /** - * Array of assessments metadata IDs that are included in this security control - * NOTE: This property will not be serialized. It can only be populated by the server. + * GitHub Repository Inventory Configuration. + * Dictionary of GitHub repository name to desired repository configuration. + * If AutoDiscovery is Enabled, this field should be null or empty. */ - readonly assessmentDefinitions?: AzureResourceLink[]; + repositoryConfigs?: { [propertyName: string]: BaseResourceConfiguration }; } -/** Details of the security control, its score, and the health status of the relevant resources. */ -export interface SecureScoreControlDetails extends Resource { +/** GitLab Group Inventory Configuration. */ +export interface GitLabGroupConfiguration { + /** AutoDiscovery states. */ + autoDiscovery?: AutoDiscovery; /** - * User friendly display name of the control - * NOTE: This property will not be serialized. It can only be populated by the server. + * 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. */ - readonly displayName?: string; + projectConfigs?: { [propertyName: string]: BaseResourceConfiguration }; +} + +/** The ASC location of the subscription is in the "name" field */ +export interface AscLocation extends Resource { + /** An empty set of properties */ + properties?: Record; +} + +/** Security task that we recommend to do in order to strengthen security */ +export interface SecurityTask extends Resource { /** - * Number of healthy resources in the control + * State of the task (Active, Resolved etc.) * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly healthyResourceCount?: number; + readonly state?: string; /** - * Number of unhealthy resources in the control + * The time this task was discovered in UTC * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly unhealthyResourceCount?: number; + readonly creationTimeUtc?: Date; + /** Changing set of properties, depending on the task type that is derived from the name field */ + securityTaskParameters?: SecurityTaskParameters; /** - * Number of not applicable resources in the control + * The time this task's details were last changed in UTC * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly notApplicableResourceCount?: number; + readonly lastStateChangeTimeUtc?: Date; /** - * The relative weight for this specific control in each of your subscriptions. Used when calculating an aggregated score for this control across all of your subscriptions. + * Additional data on the state of the task * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly weight?: number; - /** Information about the security control. */ - definition?: SecureScoreControlDefinitionItem; - /** - * Maximum score available - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly max?: number; + readonly subState?: string; +} + +/** Auto provisioning setting */ +export interface AutoProvisioningSetting extends Resource { + /** Describes what kind of security agent provisioning action to take */ + autoProvision?: AutoProvision; +} + +/** Compliance of a scope */ +export interface Compliance extends Resource { /** - * Current score + * The timestamp when the Compliance calculation was conducted. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly current?: number; + readonly assessmentTimestampUtcDate?: Date; /** - * Ratio of the current score divided by the maximum. Rounded to 4 digits after the decimal point + * The resource count of the given subscription for which the Compliance calculation was conducted (needed for Management Group Compliance calculation). * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly percentage?: number; -} - -export interface SecuritySolution extends Resource, Location { - /** The security family of the security solution */ - securityFamily?: SecurityFamily; - /** The security family provisioning State */ - provisioningState?: ProvisioningState; - /** The security solutions' template */ - template?: string; - /** The security solutions' status */ - protectionStatus?: string; -} - -export interface SecuritySolutionsReferenceData extends Resource, Location { - /** The security family of the security solution */ - securityFamily: SecurityFamily; - /** The security solutions' vendor name */ - alertVendorName: string; - /** The security solutions' package info url */ - packageInfoUrl: string; - /** The security solutions' product name */ - productName: string; - /** The security solutions' publisher */ - publisher: string; - /** The security solutions' publisher display name */ - publisherDisplayName: string; - /** The security solutions' template */ - template: string; -} - -/** Describes the server vulnerability assessment details on a resource */ -export interface ServerVulnerabilityAssessment extends Resource { + readonly resourceCount?: number; /** - * The provisioningState of the vulnerability assessment capability on the VM + * An array of segment, which is the actually the compliance assessment. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly provisioningState?: ServerVulnerabilityAssessmentPropertiesProvisioningState; + readonly assessmentResult?: ComplianceSegment[]; } -export interface TopologyResource extends Resource, Location { +/** Information protection policy. */ +export interface InformationProtectionPolicy extends Resource { /** - * The UTC time on which the topology was calculated + * Describes the last UTC time the policy was modified. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly calculatedDateTime?: Date; + readonly lastModifiedUtc?: Date; /** - * Azure resources which are part of this topology resource + * Describes the version of the policy. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly topologyResources?: TopologySingleResource[]; + readonly version?: string; + /** Dictionary of sensitivity labels. */ + labels?: { [propertyName: string]: SensitivityLabel }; + /** The sensitivity information types. */ + informationTypes?: { [propertyName: string]: InformationType }; } -/** Security assessment metadata response */ -export interface SecurityAssessmentMetadataResponse extends Resource { - /** User friendly display name of the assessment */ - displayName?: string; +/** Configures where to store the OMS agent data for workspaces under a scope */ +export interface WorkspaceSetting extends Resource { + /** The full Azure ID of the workspace to save the data in */ + workspaceId?: string; + /** All the VMs in this scope will send their security data to the mentioned workspace unless overridden by a setting with more specific scope */ + scope?: string; +} + +/** Describes the suppression rule */ +export interface AlertsSuppressionRule extends Resource { + /** Type of the alert to automatically suppress. For all alert types, use '*' */ + alertType?: string; /** - * Azure resource ID of the policy definition that turns this assessment calculation on + * The last time this rule was modified * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly policyDefinitionId?: string; - /** Human readable description of the assessment */ - description?: string; - /** Human readable description of what you should do to mitigate this security issue */ - remediationDescription?: string; - categories?: Categories[]; - /** The severity level of the assessment */ - severity?: Severity; - /** The user impact of the assessment */ - userImpact?: UserImpact; - /** The implementation effort required to remediate this assessment */ - implementationEffort?: ImplementationEffort; - threats?: Threats[]; - /** True if this assessment is in preview release status */ - preview?: boolean; - /** BuiltIn if the assessment based on built-in Azure Policy definition, Custom if the assessment based on custom Azure Policy definition */ - assessmentType?: AssessmentType; - /** Describes the partner that created the assessment */ - partnerData?: SecurityAssessmentMetadataPartnerData; - publishDates?: SecurityAssessmentMetadataPropertiesResponsePublishDates; - plannedDeprecationDate?: string; - tactics?: Tactics[]; - techniques?: Techniques[]; + readonly lastModifiedUtc?: Date; + /** Expiration date of the rule, if value is not provided or provided as null there will no expiration at all */ + expirationDateUtc?: Date; + /** The reason for dismissing the alert */ + reason?: string; + /** Possible states of the rule */ + state?: RuleState; + /** Any comment regarding the rule */ + comment?: string; + /** The suppression conditions */ + suppressionAlertsScope?: SuppressionAlertsScope; } -/** Security assessment on a resource - response format */ -export interface SecurityAssessmentResponse extends Resource { - /** Details of the resource that was assessed */ - resourceDetails?: ResourceDetailsUnion; +/** Regulatory compliance standard details and state */ +export interface RegulatoryComplianceStandard extends Resource { + /** Aggregative state based on the standard's supported controls states */ + state?: State; /** - * User friendly display name of the assessment + * The number of supported regulatory compliance controls of the given standard with a passed state * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly displayName?: string; - /** Additional data regarding the assessment */ - additionalData?: { [propertyName: string]: string }; + readonly passedControls?: number; /** - * Links relevant to the assessment + * The number of supported regulatory compliance controls of the given standard with a failed state * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly links?: AssessmentLinks; - /** Describes properties of an assessment metadata. */ - metadata?: SecurityAssessmentMetadataProperties; - /** Data regarding 3rd party partner integration */ - partnersData?: SecurityAssessmentPartnerData; - /** The result of the assessment */ - status?: AssessmentStatusResponse; -} - -/** Security assessment on a resource */ -export interface SecurityAssessment extends Resource { - /** Details of the resource that was assessed */ - resourceDetails?: ResourceDetailsUnion; + readonly failedControls?: number; /** - * User friendly display name of the assessment + * The number of supported regulatory compliance controls of the given standard with a skipped state * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly displayName?: string; - /** Additional data regarding the assessment */ - additionalData?: { [propertyName: string]: string }; + readonly skippedControls?: number; /** - * Links relevant to the assessment + * The number of regulatory compliance controls of the given standard which are unsupported by automated assessments * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly links?: AssessmentLinks; - /** Describes properties of an assessment metadata. */ - metadata?: SecurityAssessmentMetadataProperties; - /** Data regarding 3rd party partner integration */ - partnersData?: SecurityAssessmentPartnerData; - /** The result of the assessment */ - status?: AssessmentStatus; + readonly unsupportedControls?: number; } -/** Security alert */ -export interface Alert extends Resource { +/** Regulatory compliance control details and state */ +export interface RegulatoryComplianceControl extends Resource { /** - * Schema version. + * The description of the regulatory compliance control * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly version?: string; + readonly description?: string; + /** Aggregative state based on the control's supported assessments states */ + state?: State; /** - * Unique identifier for the detection logic (all alert instances from the same detection logic will have the same alertType). + * The number of supported regulatory compliance assessments of the given control with a passed state * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly alertType?: string; + readonly passedAssessments?: number; /** - * Unique identifier for the alert. + * The number of supported regulatory compliance assessments of the given control with a failed state * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly systemAlertId?: string; + readonly failedAssessments?: number; /** - * The name of Azure Security Center pricing tier which powering this alert. Learn more: https://docs.microsoft.com/en-us/azure/security-center/security-center-pricing + * The number of supported regulatory compliance assessments of the given control with a skipped state * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly productComponentName?: string; + readonly skippedAssessments?: number; +} + +/** Regulatory compliance assessment details and state */ +export interface RegulatoryComplianceAssessment extends Resource { /** - * The display name of the alert. + * The description of the regulatory compliance assessment * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly alertDisplayName?: string; + readonly description?: string; /** - * Description of the suspicious activity that was detected. + * The expected type of assessment contained in the AssessmentDetailsLink * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly description?: string; + readonly assessmentType?: string; /** - * The risk level of the threat that was detected. Learn more: https://docs.microsoft.com/en-us/azure/security-center/security-center-alerts-overview#how-are-alerts-classified. + * Link to more detailed assessment results data. The response type will be according to the assessmentType field * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly severity?: AlertSeverity; + readonly assessmentDetailsLink?: string; + /** Aggregative state based on the assessment's scanned resources states */ + state?: State; /** - * The kill chain related intent behind the alert. For list of supported values, and explanations of Azure Security Center's supported kill chain intents. + * The given assessment's related resources count with passed state. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly intent?: Intent; + readonly passedResources?: number; /** - * The UTC time of the first event or activity included in the alert in ISO8601 format. + * The given assessment's related resources count with failed state. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly startTimeUtc?: Date; + readonly failedResources?: number; /** - * The UTC time of the last event or activity included in the alert in ISO8601 format. + * The given assessment's related resources count with skipped state. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly endTimeUtc?: Date; + readonly skippedResources?: number; /** - * The resource identifiers that can be used to direct the alert to the right product exposure group (tenant, workspace, subscription etc.). There can be multiple identifiers of different type per alert. + * The given assessment's related resources count with unsupported state. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly resourceIdentifiers?: ResourceIdentifierUnion[]; + readonly unsupportedResources?: number; +} + +/** Security sub-assessment on a resource */ +export interface SecuritySubAssessment extends Resource { /** - * Manual action items to take to remediate the alert. + * Vulnerability ID * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly remediationSteps?: string[]; + readonly idPropertiesId?: string; /** - * The name of the vendor that raises the alert. + * User friendly display name of the sub-assessment * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly vendorName?: string; + readonly displayName?: string; + /** Status of the sub-assessment */ + status?: SubAssessmentStatus; /** - * The life cycle status of the alert. + * Information on how to remediate this sub-assessment * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly status?: AlertStatus; + readonly remediation?: string; /** - * Links related to the alert + * Description of the impact of this sub-assessment * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly extendedLinks?: { [propertyName: string]: string }[]; + readonly impact?: string; /** - * A direct link to the alert page in Azure Portal. + * Category of the sub-assessment * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly alertUri?: string; + readonly category?: string; /** - * The UTC time the alert was generated in ISO8601 format. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly timeGeneratedUtc?: Date; - /** - * The name of the product which published this alert (Microsoft Sentinel, Microsoft Defender for Identity, Microsoft Defender for Endpoint, Microsoft Defender for Office, Microsoft Defender for Cloud Apps, and so on). - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly productName?: string; - /** - * The UTC processing end time of the alert in ISO8601 format. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly processingEndTimeUtc?: Date; - /** - * A list of entities related to the alert. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly entities?: AlertEntity[]; - /** - * This field determines whether the alert is an incident (a compound grouping of several alerts) or a single alert. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly isIncident?: boolean; - /** - * Key for corelating related alerts. Alerts with the same correlation key considered to be related. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly correlationKey?: string; - /** Custom properties for the alert. */ - extendedProperties?: { [propertyName: string]: string }; - /** - * The display name of the resource most related to this alert. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly compromisedEntity?: string; - /** - * kill chain related techniques behind the alert. + * Human readable description of the assessment status * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly techniques?: string[]; + readonly description?: string; /** - * Kill chain related sub-techniques behind the alert. + * The date and time the sub-assessment was generated * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly subTechniques?: string[]; - /** Changing set of properties depending on the supportingEvidence type. */ - supportingEvidence?: AlertPropertiesSupportingEvidence; + readonly timeGenerated?: Date; + /** Details of the resource that was assessed */ + resourceDetails?: ResourceDetailsUnion; + /** Details of the sub-assessment */ + additionalData?: AdditionalDataUnion; } -/** The kind of the security setting */ -export interface Setting extends Resource { - /** the kind of the settings string */ - kind: SettingKind; +/** The connector setting */ +export interface ConnectorSetting extends Resource { + /** Settings for hybrid compute management. These settings are relevant only for Arc autoProvision (Hybrid Compute). */ + hybridComputeSettings?: HybridComputeSettingsProperties; + /** Settings for authentication management, these settings are relevant only for the cloud connector. */ + authenticationDetails?: AuthenticationDetailsPropertiesUnion; } -/** An API collection as represented by Microsoft Defender for APIs. */ -export interface ApiCollection extends Resource { - /** - * Gets the provisioning state of the API collection. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly provisioningState?: ProvisioningState; - /** - * The display name of the API collection. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly displayName?: string; - /** - * The resource Id of the resource from where this API collection was discovered. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly discoveredVia?: string; - /** - * The base URI for this API collection. All endpoints of this API collection extend this base URI. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly baseUrl?: string; - /** - * The number of API endpoints discovered in this API collection. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly numberOfApiEndpoints?: number; - /** - * The number of API endpoints in this API collection that have not received any API traffic in the last 30 days. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly numberOfInactiveApiEndpoints?: number; - /** - * The number of API endpoints in this API collection that are unauthenticated. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly numberOfUnauthenticatedApiEndpoints?: number; - /** - * The number of API endpoints in this API collection for which API traffic from the internet was observed. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly numberOfExternalApiEndpoints?: number; - /** - * The number of API endpoints in this API collection which are exposing sensitive data in their requests and/or responses. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly numberOfApiEndpointsWithSensitiveDataExposed?: number; - /** - * The highest priority sensitivity label from Microsoft Purview in this API collection. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly sensitivityLabel?: string; +/** Represents a software data */ +export interface Software extends Resource { + /** Unique identifier for the virtual machine in the service. */ + deviceId?: string; + /** Platform of the operating system running on the device. */ + osPlatform?: string; + /** Name of the software vendor. */ + vendor?: string; + /** Name of the software product. */ + softwareName?: string; + /** Version number of the software product. */ + version?: string; + /** End of support status. */ + endOfSupportStatus?: EndOfSupportStatus; + /** The end of support date in case the product is upcoming end of support. */ + endOfSupportDate?: string; + /** Number of weaknesses. */ + numberOfKnownVulnerabilities?: number; + /** First time that the software was seen in the device. */ + firstSeenAt?: string; } -/** Microsoft Defender for Cloud is provided in two pricing tiers: free and standard. The standard tier offers advanced security capabilities, while the free tier offers basic security features. */ -export interface Pricing extends Resource { - /** Indicates whether the Defender plan is enabled on the selected scope. Microsoft Defender for Cloud is provided in two pricing tiers: free and standard. The standard tier offers advanced security capabilities, while the free tier offers basic security features. */ - pricingTier?: PricingTier; - /** The sub-plan selected for a Standard pricing configuration, when more than one sub-plan is available. Each sub-plan enables a set of security features. When not specified, full plan is applied. For VirtualMachines plan, available sub plans are 'P1' & 'P2', where for resource level only 'P1' sub plan is supported. */ - subPlan?: string; - /** - * The duration left for the subscriptions free trial period - in ISO 8601 format (e.g. P3Y6M4DT12H30M5S). - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly freeTrialRemainingTime?: string; - /** - * Optional. If `pricingTier` is `Standard` then this property holds the date of the last time the `pricingTier` was set to `Standard`, when available (e.g 2023-03-01T12:42:42.1921106Z). - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly enablementTime?: Date; - /** If set to "False", it allows the descendants of this scope to override the pricing configuration set on this scope (allows setting inherited="False"). If set to "True", it prevents overrides and forces this pricing configuration on all the descendants of this scope. This field is only available for subscription-level pricing. */ - enforce?: Enforce; - /** - * "inherited" = "True" indicates that the current scope inherits its pricing configuration from its parent. The ID of the parent scope that provides the inherited configuration is displayed in the "inheritedFrom" field. On the other hand, "inherited" = "False" indicates that the current scope has its own pricing configuration explicitly set, and does not inherit from its parent. This field is read only and available only for resource-level pricing. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly inherited?: Inherited; - /** - * The id of the scope inherited from. "Null" if not inherited. This field is only available for resource-level pricing. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly inheritedFrom?: string; - /** - * This field is available for subscription-level only, and reflects the coverage status of the resources under the subscription. Please note: The "pricingTier" field reflects the plan status of the subscription. However, since the plan status can also be defined at the resource level, there might be misalignment between the subscription's plan status and the resource status. This field helps indicate the coverage status of the resources. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly resourcesCoverageStatus?: ResourcesCoverageStatus; - /** Optional. List of extensions offered under a plan. */ - extensions?: Extension[]; - /** - * Optional. True if the plan is deprecated. If there are replacing plans they will appear in `replacedBy` property - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly deprecated?: boolean; +/** Custom Assessment Automation */ +export interface CustomAssessmentAutomation extends Resource { /** - * Optional. List of plans that replace this plan. This property exists only if this plan is deprecated. + * Azure Resource Manager metadata containing createdBy and modifiedBy information. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly replacedBy?: string[]; -} - -/** Security assessment metadata */ -export interface SecurityAssessmentMetadata extends Resource { - /** User friendly display name of the assessment */ + readonly systemData?: SystemData; + /** GZip encoded KQL query representing the assessment automation results required. */ + compressedQuery?: string; + /** Relevant cloud for the custom assessment automation. */ + supportedCloud?: SupportedCloudEnum; + /** The severity to relate to the assessments generated by this assessment automation. */ + severity?: SeverityEnum; + /** The display name of the assessments generated by this assessment automation. */ displayName?: string; - /** - * Azure resource ID of the policy definition that turns this assessment calculation on - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly policyDefinitionId?: string; - /** Human readable description of the assessment */ + /** The description to relate to the assessments generated by this assessment automation. */ description?: string; - /** Human readable description of what you should do to mitigate this security issue */ + /** The remediation description to relate to the assessments generated by this assessment automation. */ remediationDescription?: string; - categories?: Categories[]; - /** The severity level of the assessment */ - severity?: Severity; - /** The user impact of the assessment */ - userImpact?: UserImpact; - /** The implementation effort required to remediate this assessment */ - implementationEffort?: ImplementationEffort; - threats?: Threats[]; - /** True if this assessment is in preview release status */ - preview?: boolean; - /** BuiltIn if the assessment based on built-in Azure Policy definition, Custom if the assessment based on custom Azure Policy definition */ - assessmentType?: AssessmentType; - /** Describes the partner that created the assessment */ - partnerData?: SecurityAssessmentMetadataPartnerData; + /** The assessment metadata key used when an assessment is generated for this assessment automation. */ + assessmentKey?: string; } -/** 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; +/** Custom Assessment Automation request */ +export interface CustomAssessmentAutomationRequest extends Resource { + /** Base 64 encoded KQL query representing the assessment automation results required. */ + compressedQuery?: string; + /** Relevant cloud for the custom assessment automation. */ + supportedCloud?: SupportedCloudEnum; + /** The severity to relate to the assessments generated by this assessment automation. */ + severity?: SeverityEnum; + /** The display name of the assessments generated by this assessment automation. */ + displayName?: string; + /** The description to relate to the assessments generated by this assessment automation. */ + description?: string; + /** The remediation description to relate to the assessments generated by this assessment automation. */ + remediationDescription?: 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; +/** Custom entity store assignment */ +export interface CustomEntityStoreAssignment extends Resource { /** - * The target Event Hub SAS policy name. + * Azure Resource Manager metadata containing createdBy and modifiedBy information. * 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; + readonly systemData?: SystemData; + /** The principal assigned with entity store. Format of principal is: [AAD type]=[PrincipalObjectId];[TenantId] */ + principal?: string; + /** The link to entity store database. */ + entityStoreDatabaseLink?: 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[]; +/** The resource of the configuration or data needed to onboard the machine to MDE */ +export interface MdeOnboardingData extends Resource { + /** The onboarding package used to onboard Windows machines to MDE, coded in base64. This can also be used for onboarding using the dedicated VM Extension */ + onboardingPackageWindows?: Uint8Array; + /** The onboarding package used to onboard Linux machines to MDE, coded in base64. This can also be used for onboarding using the dedicated VM Extension */ + onboardingPackageLinux?: Uint8Array; } -/** Details of the Azure resource that was assessed */ -export interface AzureResourceDetails extends ResourceDetails { - /** Polymorphic discriminator, which specifies the different types this object can be */ - source: "Azure"; +/** Governance assignment over a given scope */ +export interface GovernanceAssignment extends Resource { + /** The Owner for the governance assignment - e.g. user@contoso.com - see example */ + owner?: string; + /** The remediation due-date - after this date Secure Score will be affected (in case of active grace-period) */ + remediationDueDate?: Date; + /** The ETA (estimated time of arrival) for remediation (optional), see example */ + remediationEta?: RemediationEta; + /** Defines whether there is a grace period on the governance assignment */ + isGracePeriod?: boolean; + /** The email notifications settings for the governance rule, states whether to disable notifications for mangers and owners */ + governanceEmailNotification?: GovernanceEmailNotification; + /** The additional data for the governance assignment - e.g. links to ticket (optional), see example */ + additionalData?: GovernanceAssignmentAdditionalData; +} + +/** Governance rule over a given scope */ +export interface GovernanceRule extends Resource { /** - * Azure resource Id of the assessed resource + * The tenantId (GUID) * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly id?: string; + readonly tenantId?: string; + /** Display name of the governance rule */ + displayName?: string; + /** Description of the governance rule */ + description?: string; + /** Governance rule remediation timeframe - this is the time that will affect on the grace-period duration e.g. 7.00:00:00 - means 7 days */ + remediationTimeframe?: string; + /** Defines whether there is a grace period on the governance rule */ + isGracePeriod?: boolean; + /** The governance rule priority, priority to the lower number. Rules with the same priority on the same scope will not be allowed */ + rulePriority?: number; + /** Defines whether the rule is active/inactive */ + isDisabled?: boolean; + /** The rule type of the governance rule, defines the source of the rule e.g. Integrated */ + ruleType?: GovernanceRuleType; + /** The governance rule source, what the rule affects, e.g. Assessments */ + sourceResourceType?: GovernanceRuleSourceResourceType; + /** Excluded scopes, filter out the descendants of the scope (on management scopes) */ + excludedScopes?: string[]; + /** The governance rule conditionSets - see examples */ + conditionSets?: Record[]; + /** Defines whether the rule is management scope rule (master connector as a single scope or management scope) */ + includeMemberScopes?: boolean; + /** The owner source for the governance rule - e.g. Manually by user@contoso.com - see example */ + ownerSource?: GovernanceRuleOwnerSource; + /** The email notifications settings for the governance rule, states whether to disable notifications for mangers and owners */ + governanceEmailNotification?: GovernanceRuleEmailNotification; + /** The governance rule metadata */ + metadata?: GovernanceRuleMetadata; } -/** Details of the On Premise resource that was assessed */ -export interface OnPremiseResourceDetails extends ResourceDetails { - /** Polymorphic discriminator, which specifies the different types this object can be */ - source: "OnPremise" | "OnPremiseSql"; - /** Azure resource Id of the workspace the machine is attached to */ - workspaceId: string; - /** The unique Id of the machine */ - vmuuid: string; - /** The oms agent Id installed on the machine */ - sourceComputerId: string; - /** The name of the machine */ - machineName: string; +/** Security Application over a given scope */ +export interface Application extends Resource { + /** display name of the application */ + displayName?: string; + /** description of the application */ + description?: string; + /** The application source, what it affects, e.g. Assessments */ + sourceResourceType?: ApplicationSourceResourceType; + /** The application conditionSets - see examples */ + conditionSets?: Record[]; } -/** Details of the resource that was assessed */ -export interface SqlServerVulnerabilityProperties extends AdditionalData { - /** Polymorphic discriminator, which specifies the different types this object can be */ - assessedResourceType: "SqlServerVulnerability"; +/** Security operator under a given subscription and pricing */ +export interface SecurityOperator extends Resource { + /** Identity for the resource. */ + identity?: Identity; +} + +/** Rule results. */ +export interface RuleResults extends Resource { + /** Rule results properties. */ + properties?: RuleResultsProperties; +} + +/** A vulnerability assessment scan record. */ +export interface Scan extends Resource { + /** A vulnerability assessment scan record properties. */ + properties?: ScanProperties; +} + +/** A vulnerability assessment scan result for a single rule. */ +export interface ScanResult extends Resource { + /** A vulnerability assessment scan result properties for a single rule. */ + properties?: ScanResultProperties; +} + +/** The health report resource */ +export interface HealthReport extends Resource { + /** The resource details of the health report */ + resourceDetails?: ResourceDetailsAutoGenerated; + /** The environment details of the resource */ + environmentDetails?: EnvironmentDetails; + /** The classification of the health report */ + healthDataClassification?: HealthDataClassification; + /** The status of the health report */ + status?: StatusAutoGenerated; + /** The affected defenders plans by unhealthy report */ + affectedDefendersPlans?: string[]; + /** The affected defenders sub plans by unhealthy report */ + affectedDefendersSubPlans?: string[]; /** - * The resource type the sub assessment refers to in its resource details + * Additional data for the given health report, this field can include more details on the resource and the health scenario. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly type?: string; + readonly reportAdditionalData?: { [propertyName: string]: string }; + /** A collection of the issues in the report */ + 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 { /** - * The T-SQL query that runs on your SQL database to perform the particular check + * The status of the resource regarding a single assessment * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly query?: string; + readonly resourceStatus?: ResourceStatus; } -/** Additional context fields for container registry Vulnerability assessment */ -export interface ContainerRegistryVulnerabilityProperties - extends AdditionalData { - /** Polymorphic discriminator, which specifies the different types this object can be */ - assessedResourceType: "ContainerRegistryVulnerability"; +/** The Advanced Threat Protection resource. */ +export interface AdvancedThreatProtectionSetting extends Resource { + /** Indicates whether Advanced Threat Protection is enabled. */ + isEnabled?: boolean; +} + +/** The device security group resource */ +export interface DeviceSecurityGroup extends Resource { + /** The list of custom alert threshold rules. */ + thresholdRules?: ThresholdCustomAlertRuleUnion[]; + /** The list of custom alert time-window rules. */ + timeWindowRules?: TimeWindowCustomAlertRuleUnion[]; + /** The allow-list custom alert rules. */ + allowlistRules?: AllowlistCustomAlertRuleUnion[]; + /** The deny-list custom alert rules. */ + denylistRules?: DenylistCustomAlertRule[]; +} + +/** Security analytics of your IoT Security solution */ +export interface IoTSecuritySolutionAnalyticsModel extends Resource { /** - * Vulnerability Type. e.g: Vulnerability, Potential Vulnerability, Information Gathered, Vulnerability + * Security analytics of your IoT Security solution. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly type?: string; + readonly metrics?: IoTSeverityMetrics; /** - * Dictionary from cvss version to cvss details object + * Number of unhealthy devices within your IoT Security solution. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly cvss?: { [propertyName: string]: Cvss }; + readonly unhealthyDeviceCount?: number; /** - * Indicates whether a patch is available or not + * List of device metrics by the aggregation date. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly patchable?: boolean; + readonly devicesMetrics?: IoTSecuritySolutionAnalyticsModelPropertiesDevicesMetricsItem[]; + /** List of the 3 devices with the most alerts. */ + topAlertedDevices?: IoTSecurityAlertedDevice[]; + /** List of the 3 most prevalent device alerts. */ + mostPrevalentDeviceAlerts?: IoTSecurityDeviceAlert[]; + /** List of the 3 most prevalent device recommendations. */ + mostPrevalentDeviceRecommendations?: IoTSecurityDeviceRecommendation[]; +} + +/** Security Solution Aggregated Alert information */ +export interface IoTSecurityAggregatedAlert extends Resource, TagsResource { /** - * List of CVEs + * Name of the alert type. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly cve?: Cve[]; + readonly alertType?: string; /** - * Published time + * Display name of the alert type. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly publishedTime?: Date; - /** NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly vendorReferences?: VendorReference[]; + readonly alertDisplayName?: string; /** - * Name of the repository which the vulnerable image belongs to + * Date of detection. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly repositoryName?: string; + readonly aggregatedDateUtc?: Date; /** - * Digest of the vulnerable image + * Name of the organization that raised the alert. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly imageDigest?: string; -} - -/** Additional context fields for server vulnerability assessment */ -export interface ServerVulnerabilityProperties extends AdditionalData { - /** Polymorphic discriminator, which specifies the different types this object can be */ - assessedResourceType: "ServerVulnerabilityAssessment"; + readonly vendorName?: string; /** - * Vulnerability Type. e.g: Vulnerability, Potential Vulnerability, Information Gathered + * Assessed alert severity. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly type?: string; + readonly reportedSeverity?: ReportedSeverity; /** - * Dictionary from cvss version to cvss details object + * Recommended steps for remediation. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly cvss?: { [propertyName: string]: Cvss }; + readonly remediationSteps?: string; /** - * Indicates whether a patch is available or not + * Description of the suspected vulnerability and meaning. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly patchable?: boolean; + readonly description?: string; /** - * List of CVEs + * Number of alerts occurrences within the aggregated time window. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly cve?: Cve[]; + readonly count?: number; /** - * Threat name + * Azure resource ID of the resource that received the alerts. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly threat?: string; + readonly effectedResourceType?: string; /** - * Published time + * The type of the alerted resource (Azure, Non-Azure). * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly publishedTime?: Date; - /** NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly vendorReferences?: VendorReference[]; + readonly systemSource?: string; + /** + * IoT Security solution alert response. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly actionTaken?: string; + /** + * Log analytics query for getting the list of affected devices/alerts. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly logAnalyticsQuery?: string; + /** + * 10 devices with the highest number of occurrences of this alert type, on this day. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly topDevicesList?: IoTSecurityAggregatedAlertPropertiesTopDevicesListItem[]; } -/** AWS cloud account connector based credentials, the credentials is composed of access key ID and secret key, for more details, refer to Creating an IAM User in Your AWS Account (write only) */ -export interface AwsCredsAuthenticationDetailsProperties - extends AuthenticationDetailsProperties { - /** Polymorphic discriminator, which specifies the different types this object can be */ - authenticationType: "awsCreds"; +/** IoT Security solution recommendation information. */ +export interface IoTSecurityAggregatedRecommendation extends Resource, TagsResource { + /** Name of the recommendation. */ + recommendationName?: string; /** - * The ID of the cloud account + * Display name of the recommendation type. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly accountId?: string; - /** Public key element of the AWS credential object (write only) */ - awsAccessKeyId: string; - /** Secret key element of the AWS credential object (write only) */ - awsSecretAccessKey: string; + readonly recommendationDisplayName?: string; + /** + * Description of the suspected vulnerability and meaning. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly description?: string; + /** + * Recommendation-type GUID. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly recommendationTypeId?: string; + /** + * Name of the organization that made the recommendation. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly detectedBy?: string; + /** + * Recommended steps for remediation + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly remediationSteps?: string; + /** + * Assessed recommendation severity. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly reportedSeverity?: ReportedSeverity; + /** + * Number of healthy devices within the IoT Security solution. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly healthyDevices?: number; + /** + * Number of unhealthy devices within the IoT Security solution. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly unhealthyDeviceCount?: number; + /** + * Log analytics query for getting the list of affected devices/alerts. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly logAnalyticsQuery?: string; } -/** AWS cloud account connector based assume role, the role enables delegating access to your AWS resources. The role is composed of role Amazon Resource Name (ARN) and external ID. For more details, refer to Creating a Role to Delegate Permissions to an IAM User (write only) */ -export interface AwAssumeRoleAuthenticationDetailsProperties - extends AuthenticationDetailsProperties { - /** Polymorphic discriminator, which specifies the different types this object can be */ - authenticationType: "awsAssumeRole"; +/** IoT Security solution configuration and resource information. */ +export interface IoTSecuritySolutionModel extends Resource, TagsResource { + /** The resource location. */ + location?: string; /** - * The ID of the cloud account + * Azure Resource Manager metadata containing createdBy and modifiedBy information. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly accountId?: string; - /** Assumed role ID is an identifier that you can use to create temporary security credentials. */ - awsAssumeRoleArn: string; - /** A unique identifier that is required when you assume a role in another account. */ - awsExternalId: string; + readonly systemData?: SystemData; + /** Workspace resource ID */ + workspace?: string; + /** Resource display name. */ + displayName?: string; + /** Status of the IoT Security solution. */ + status?: SecuritySolutionStatus; + /** List of additional options for exporting to workspace data. */ + export?: ExportData[]; + /** Disabled data sources. Disabling these data sources compromises the system. */ + disabledDataSources?: DataSource[]; + /** IoT Hub resource IDs */ + iotHubs?: string[]; + /** Properties of the IoT Security solution's user defined resources. */ + userDefinedResources?: UserDefinedResourcesProperties; + /** + * List of resources that were automatically discovered as relevant to the security solution. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly autoDiscoveredResources?: string[]; + /** List of the configuration status for each recommendation type. */ + recommendationsConfiguration?: RecommendationConfigurationProperties[]; + /** Unmasked IP address logging status */ + unmaskedIpLoggingStatus?: UnmaskedIpLoggingStatus; + /** List of additional workspaces */ + additionalWorkspaces?: AdditionalWorkspacesProperties[]; } -/** GCP cloud account connector based service to service credentials, the credentials are composed of the organization ID and a JSON API key (write only) */ -export interface GcpCredentialsDetailsProperties - extends AuthenticationDetailsProperties { - /** Polymorphic discriminator, which specifies the different types this object can be */ - authenticationType: "gcpCredentials"; - /** The organization ID of the GCP cloud account */ - organizationId: string; - /** Type field of the API key (write only) */ - type: string; - /** Project ID field of the API key (write only) */ - projectId: string; - /** Private key ID field of the API key (write only) */ - privateKeyId: string; - /** Private key field of the API key (write only) */ - privateKey: string; - /** Client email field of the API key (write only) */ - clientEmail: string; - /** Client ID field of the API key (write only) */ - clientId: string; - /** Auth URI field of the API key (write only) */ - authUri: string; - /** Token URI field of the API key (write only) */ - tokenUri: string; - /** Auth provider x509 certificate URL field of the API key (write only) */ - authProviderX509CertUrl: string; - /** Client x509 certificate URL field of the API key (write only) */ - clientX509CertUrl: string; +/** The resource whose properties describes the allowed traffic between Azure resources */ +export interface AllowedConnectionsResource extends Resource, Location { + /** + * The UTC time on which the allowed connections resource was calculated + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly calculatedDateTime?: Date; + /** + * List of connectable resources + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly connectableResources?: ConnectableResource[]; } -/** 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; +export interface DiscoveredSecuritySolution extends Resource, Location { + /** The security family of the discovered solution */ + securityFamily: SecurityFamily; + /** The security solutions' image offer */ + offer: string; + /** The security solutions' image publisher */ + publisher: string; + /** The security solutions' image sku */ + sku: string; } -/** 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; -} +/** Represents a security solution external to Microsoft Defender for Cloud which sends information to an OMS workspace and whose data is displayed by Microsoft Defender for Cloud. */ +export interface ExternalSecuritySolution + extends Resource, + ExternalSecuritySolutionKindAutoGenerated, + Location {} -/** The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location */ -export interface ProxyResource extends ResourceAutoGenerated {} +export interface JitNetworkAccessPolicy extends Resource, KindAutoGenerated, Location { + /** Configurations for Microsoft.Compute/virtualMachines resource type. */ + virtualMachines: JitNetworkAccessPolicyVirtualMachine[]; + requests?: JitNetworkAccessRequest[]; + /** + * Gets the provisioning state of the Just-in-Time policy. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: string; +} -/** The CSPM monitoring for AWS offering */ -export interface CspmMonitorAwsOffering extends CloudOffering { - /** Polymorphic discriminator, which specifies the different types this object can be */ - offeringType: "CspmMonitorAws"; - /** The native cloud connection configuration */ - nativeCloudConnection?: CspmMonitorAwsOfferingNativeCloudConnection; +/** Secure score item data model */ +export interface SecureScoreItem extends Resource { + /** + * The initiative’s name + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly displayName?: string; + /** + * The relative weight for each subscription. Used when calculating an aggregated secure score for multiple subscriptions. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly weight?: number; + /** + * Maximum score available + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly max?: number; + /** + * Current score + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly current?: number; + /** + * Ratio of the current score divided by the maximum. Rounded to 4 digits after the decimal point + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly percentage?: number; } -/** The Defender for Containers AWS offering */ -export interface DefenderForContainersAwsOffering extends CloudOffering { - /** Polymorphic discriminator, which specifies the different types this object can be */ - offeringType: "DefenderForContainersAws"; - /** The kubernetes service connection configuration */ - kubernetesService?: DefenderForContainersAwsOfferingKubernetesService; - /** The kubernetes to scuba connection configuration */ - kubernetesScubaReader?: DefenderForContainersAwsOfferingKubernetesScubaReader; - /** 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; - /** 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; - /** The Microsoft Defender container image assessment configuration */ - mdcContainersImageAssessment?: DefenderForContainersAwsOfferingMdcContainersImageAssessment; - /** The Microsoft Defender container agentless discovery K8s configuration */ - mdcContainersAgentlessDiscoveryK8S?: DefenderForContainersAwsOfferingMdcContainersAgentlessDiscoveryK8S; -} - -/** The Defender for Servers AWS offering */ -export interface DefenderForServersAwsOffering extends CloudOffering { - /** Polymorphic discriminator, which specifies the different types this object can be */ - offeringType: "DefenderForServersAws"; - /** The Defender for servers connection configuration */ - defenderForServers?: DefenderForServersAwsOfferingDefenderForServers; - /** The ARC autoprovisioning configuration */ - arcAutoProvisioning?: DefenderForServersAwsOfferingArcAutoProvisioning; - /** The Vulnerability Assessment autoprovisioning configuration */ - vaAutoProvisioning?: DefenderForServersAwsOfferingVaAutoProvisioning; - /** The Microsoft Defender for Endpoint autoprovisioning configuration */ - mdeAutoProvisioning?: DefenderForServersAwsOfferingMdeAutoProvisioning; - /** configuration for the servers offering subPlan */ - subPlan?: DefenderForServersAwsOfferingSubPlan; - /** The Microsoft Defender for Server VM scanning configuration */ - vmScanners?: DefenderForServersAwsOfferingVmScanners; -} - -/** The Defender for Databases AWS offering */ -export interface DefenderFoDatabasesAwsOffering extends CloudOffering { - /** Polymorphic discriminator, which specifies the different types this object can be */ - offeringType: "DefenderForDatabasesAws"; - /** The ARC autoprovisioning configuration */ - arcAutoProvisioning?: DefenderFoDatabasesAwsOfferingArcAutoProvisioning; - /** The RDS configuration */ - rds?: DefenderFoDatabasesAwsOfferingRds; - /** The databases data security posture management (DSPM) configuration */ - databasesDspm?: DefenderFoDatabasesAwsOfferingDatabasesDspm; +/** Information about the security control. */ +export interface SecureScoreControlDefinitionItem extends Resource { + /** + * User friendly display name of the control + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly displayName?: string; + /** + * User friendly description of the control + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly description?: string; + /** + * Maximum control score (0..10) + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly maxScore?: number; + /** + * Source object from which the control was created + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly source?: SecureScoreControlDefinitionSource; + /** + * Array of assessments metadata IDs that are included in this security control + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly assessmentDefinitions?: AzureResourceLink[]; } -/** 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; +/** Details of the security control, its score, and the health status of the relevant resources. */ +export interface SecureScoreControlDetails extends Resource { + /** + * User friendly display name of the control + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly displayName?: string; + /** + * Number of healthy resources in the control + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly healthyResourceCount?: number; + /** + * Number of unhealthy resources in the control + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly unhealthyResourceCount?: number; + /** + * Number of not applicable resources in the control + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly notApplicableResourceCount?: number; + /** + * The relative weight for this specific control in each of your subscriptions. Used when calculating an aggregated score for this control across all of your subscriptions. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly weight?: number; + /** Information about the security control. */ + definition?: SecureScoreControlDefinitionItem; + /** + * Maximum score available + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly max?: number; + /** + * Current score + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly current?: number; + /** + * Ratio of the current score divided by the maximum. Rounded to 4 digits after the decimal point + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly percentage?: number; } -/** The CSPM monitoring for GCP offering */ -export interface CspmMonitorGcpOffering extends CloudOffering { - /** Polymorphic discriminator, which specifies the different types this object can be */ - offeringType: "CspmMonitorGcp"; - /** The native cloud connection configuration */ - nativeCloudConnection?: CspmMonitorGcpOfferingNativeCloudConnection; +export interface SecuritySolution extends Resource, Location { + /** The security family of the security solution */ + securityFamily?: SecurityFamily; + /** The security family provisioning State */ + provisioningState?: ProvisioningState; + /** The security solutions' template */ + template?: string; + /** The security solutions' status */ + protectionStatus?: string; } -/** The Defender for Servers GCP offering configurations */ -export interface DefenderForServersGcpOffering extends CloudOffering { - /** Polymorphic discriminator, which specifies the different types this object can be */ - offeringType: "DefenderForServersGcp"; - /** The Defender for servers connection configuration */ - defenderForServers?: DefenderForServersGcpOfferingDefenderForServers; - /** The ARC autoprovisioning configuration */ - arcAutoProvisioning?: DefenderForServersGcpOfferingArcAutoProvisioning; - /** The Vulnerability Assessment autoprovisioning configuration */ - vaAutoProvisioning?: DefenderForServersGcpOfferingVaAutoProvisioning; - /** The Microsoft Defender for Endpoint autoprovisioning configuration */ - mdeAutoProvisioning?: DefenderForServersGcpOfferingMdeAutoProvisioning; - /** configuration for the servers offering subPlan */ - subPlan?: DefenderForServersGcpOfferingSubPlan; - /** The Microsoft Defender for Server VM scanning configuration */ - vmScanners?: DefenderForServersGcpOfferingVmScanners; +export interface SecuritySolutionsReferenceData extends Resource, Location { + /** The security family of the security solution */ + securityFamily: SecurityFamily; + /** The security solutions' vendor name */ + alertVendorName: string; + /** The security solutions' package info url */ + packageInfoUrl: string; + /** The security solutions' product name */ + productName: string; + /** The security solutions' publisher */ + publisher: string; + /** The security solutions' publisher display name */ + publisherDisplayName: string; + /** The security solutions' template */ + template: string; } -/** The Defender for Databases GCP offering configurations */ -export interface DefenderForDatabasesGcpOffering extends CloudOffering { - /** Polymorphic discriminator, which specifies the different types this object can be */ - offeringType: "DefenderForDatabasesGcp"; - /** The ARC autoprovisioning configuration */ - arcAutoProvisioning?: DefenderForDatabasesGcpOfferingArcAutoProvisioning; - /** The native cloud connection configuration */ - defenderForDatabasesArcAutoProvisioning?: DefenderForDatabasesGcpOfferingDefenderForDatabasesArcAutoProvisioning; +/** Describes the server vulnerability assessment details on a resource */ +export interface ServerVulnerabilityAssessment extends Resource { + /** + * The provisioningState of the vulnerability assessment capability on the VM + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: ServerVulnerabilityAssessmentPropertiesProvisioningState; } -/** The containers GCP offering */ -export interface DefenderForContainersGcpOffering extends CloudOffering { - /** Polymorphic discriminator, which specifies the different types this object can be */ - offeringType: "DefenderForContainersGcp"; - /** The native cloud connection configuration */ - nativeCloudConnection?: DefenderForContainersGcpOfferingNativeCloudConnection; - /** The native cloud connection configuration */ - dataPipelineNativeCloudConnection?: DefenderForContainersGcpOfferingDataPipelineNativeCloudConnection; - /** Is audit logs data collection enabled */ - auditLogsAutoProvisioningFlag?: boolean; - /** Is Microsoft Defender for Cloud Kubernetes agent auto provisioning enabled */ - defenderAgentAutoProvisioningFlag?: boolean; - /** Is Policy Kubernetes agent auto provisioning enabled */ - policyAgentAutoProvisioningFlag?: boolean; - /** The Microsoft Defender Container image assessment configuration */ - mdcContainersImageAssessment?: DefenderForContainersGcpOfferingMdcContainersImageAssessment; - /** The Microsoft Defender Container agentless discovery configuration */ - mdcContainersAgentlessDiscoveryK8S?: DefenderForContainersGcpOfferingMdcContainersAgentlessDiscoveryK8S; +export interface TopologyResource extends Resource, Location { + /** + * The UTC time on which the topology was calculated + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly calculatedDateTime?: Date; + /** + * Azure resources which are part of this topology resource + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly topologyResources?: TopologySingleResource[]; } -/** The CSPM monitoring for github offering */ -export interface CspmMonitorGithubOffering extends CloudOffering { - /** Polymorphic discriminator, which specifies the different types this object can be */ - offeringType: "CspmMonitorGithub"; +/** Security assessment metadata response */ +export interface SecurityAssessmentMetadataResponse extends Resource { + /** User friendly display name of the assessment */ + displayName?: string; + /** + * Azure resource ID of the policy definition that turns this assessment calculation on + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly policyDefinitionId?: string; + /** Human readable description of the assessment */ + description?: string; + /** Human readable description of what you should do to mitigate this security issue */ + remediationDescription?: string; + categories?: Categories[]; + /** The severity level of the assessment */ + severity?: Severity; + /** The user impact of the assessment */ + userImpact?: UserImpact; + /** The implementation effort required to remediate this assessment */ + implementationEffort?: ImplementationEffort; + threats?: Threats[]; + /** True if this assessment is in preview release status */ + preview?: boolean; + /** BuiltIn if the assessment based on built-in Azure Policy definition, Custom if the assessment based on custom Azure Policy definition */ + assessmentType?: AssessmentType; + /** Describes the partner that created the assessment */ + partnerData?: SecurityAssessmentMetadataPartnerData; + publishDates?: SecurityAssessmentMetadataPropertiesResponsePublishDates; + plannedDeprecationDate?: string; + tactics?: Tactics[]; + techniques?: Techniques[]; } -/** The CSPM monitoring for AzureDevOps offering */ -export interface CspmMonitorAzureDevOpsOffering extends CloudOffering { - /** Polymorphic discriminator, which specifies the different types this object can be */ - offeringType: "CspmMonitorAzureDevOps"; +/** Security assessment on a resource - response format */ +export interface SecurityAssessmentResponse extends Resource { + /** Details of the resource that was assessed */ + resourceDetails?: ResourceDetailsUnion; + /** + * User friendly display name of the assessment + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly displayName?: string; + /** Additional data regarding the assessment */ + additionalData?: { [propertyName: string]: string }; + /** + * Links relevant to the assessment + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly links?: AssessmentLinks; + /** Describes properties of an assessment metadata. */ + metadata?: SecurityAssessmentMetadataProperties; + /** Data regarding 3rd party partner integration */ + partnersData?: SecurityAssessmentPartnerData; + /** The result of the assessment */ + status?: AssessmentStatusResponse; } -/** The CSPM P1 for AWS offering */ -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 */ - 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 */ - ciem?: DefenderCspmAwsOfferingCiem; - /** The Microsoft Defender container image assessment configuration */ - mdcContainersImageAssessment?: DefenderCspmAwsOfferingMdcContainersImageAssessment; - /** The Microsoft Defender container agentless discovery K8s configuration */ - mdcContainersAgentlessDiscoveryK8S?: DefenderCspmAwsOfferingMdcContainersAgentlessDiscoveryK8S; -} - -/** The CSPM P1 for GCP offering */ -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 */ - ciemDiscovery?: DefenderCspmGcpOfferingCiemDiscovery; - /** The Microsoft Defender for Server VM scanning configuration */ - vmScanners?: DefenderCspmGcpOfferingVmScanners; - /** The Microsoft Defender Data Sensitivity discovery configuration */ - dataSensitivityDiscovery?: DefenderCspmGcpOfferingDataSensitivityDiscovery; - /** The Microsoft Defender Container image assessment configuration */ - mdcContainersImageAssessment?: DefenderCspmGcpOfferingMdcContainersImageAssessment; - /** The Microsoft Defender Container agentless discovery configuration */ - 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 */ - environmentType: "AwsAccount"; - /** The AWS account's organizational data */ - organizationalData?: AwsOrganizationalDataUnion; - /** list of regions to scan */ - regions?: string[]; +/** Security assessment on a resource */ +export interface SecurityAssessment extends Resource { + /** Details of the resource that was assessed */ + resourceDetails?: ResourceDetailsUnion; /** - * The AWS account name + * User friendly display name of the assessment * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly accountName?: string; - /** Scan interval in hours (value should be between 1-hour to 24-hours) */ - scanInterval?: number; -} - -/** The GCP project connector environment data */ -export interface GcpProjectEnvironmentData extends EnvironmentData { - /** Polymorphic discriminator, which specifies the different types this object can be */ - environmentType: "GcpProject"; - /** The Gcp project's organizational data */ - organizationalData?: GcpOrganizationalDataUnion; - /** The Gcp project's details */ - projectDetails?: GcpProjectDetails; - /** Scan interval in hours (value should be between 1-hour to 24-hours) */ - scanInterval?: number; -} - -/** The github scope connector's environment data */ -export interface GithubScopeEnvironmentData extends EnvironmentData { - /** Polymorphic discriminator, which specifies the different types this object can be */ - environmentType: "GithubScope"; -} - -/** The AzureDevOps scope connector's environment data */ -export interface AzureDevOpsScopeEnvironmentData extends EnvironmentData { - /** Polymorphic discriminator, which specifies the different types this object can be */ - environmentType: "AzureDevOpsScope"; -} - -/** The GitLab scope connector's environment data */ -export interface GitlabScopeEnvironmentData extends EnvironmentData { - /** Polymorphic discriminator, which specifies the different types this object can be */ - environmentType: "GitlabScope"; -} - -/** 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 */ - ruleType: - | "ThresholdCustomAlertRule" - | "TimeWindowCustomAlertRule" - | "ActiveConnectionsNotInAllowedRange" - | "AmqpC2DMessagesNotInAllowedRange" - | "MqttC2DMessagesNotInAllowedRange" - | "HttpC2DMessagesNotInAllowedRange" - | "AmqpC2DRejectedMessagesNotInAllowedRange" - | "MqttC2DRejectedMessagesNotInAllowedRange" - | "HttpC2DRejectedMessagesNotInAllowedRange" - | "AmqpD2CMessagesNotInAllowedRange" - | "MqttD2CMessagesNotInAllowedRange" - | "HttpD2CMessagesNotInAllowedRange" - | "DirectMethodInvokesNotInAllowedRange" - | "FailedLocalLoginsNotInAllowedRange" - | "FileUploadsNotInAllowedRange" - | "QueuePurgesNotInAllowedRange" - | "TwinUpdatesNotInAllowedRange" - | "UnauthorizedOperationsNotInAllowedRange"; - /** The minimum threshold. */ - minThreshold: number; - /** The maximum threshold. */ - maxThreshold: number; -} - -/** A List custom alert rule. */ -export interface ListCustomAlertRule extends CustomAlertRule { - /** Polymorphic discriminator, which specifies the different types this object can be */ - ruleType: - | "ListCustomAlertRule" - | "AllowlistCustomAlertRule" - | "DenylistCustomAlertRule" - | "ConnectionToIpNotAllowed" - | "ConnectionFromIpNotAllowed" - | "LocalUserNotAllowed" - | "ProcessNotAllowed"; + readonly displayName?: string; + /** Additional data regarding the assessment */ + additionalData?: { [propertyName: string]: string }; /** - * The value type of the items in the list. + * Links relevant to the assessment * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly valueType?: ValueType; -} - -export interface UpdateIotSecuritySolutionData extends TagsResource { - /** Properties of the IoT Security solution's user defined resources. */ - userDefinedResources?: UserDefinedResourcesProperties; - /** List of the configuration status for each recommendation type. */ - recommendationsConfiguration?: RecommendationConfigurationProperties[]; -} - -/** Describes properties of an assessment metadata response. */ -export interface SecurityAssessmentMetadataPropertiesResponse - extends SecurityAssessmentMetadataProperties { - publishDates?: SecurityAssessmentMetadataPropertiesResponsePublishDates; - plannedDeprecationDate?: string; - tactics?: Tactics[]; - techniques?: Techniques[]; + readonly links?: AssessmentLinks; + /** Describes properties of an assessment metadata. */ + metadata?: SecurityAssessmentMetadataProperties; + /** Data regarding 3rd party partner integration */ + partnersData?: SecurityAssessmentPartnerData; + /** The result of the assessment */ + status?: AssessmentStatus; } -/** The result of the assessment */ -export interface AssessmentStatusResponse extends AssessmentStatus { +/** Security alert */ +export interface Alert extends Resource { /** - * The time that the assessment was created and first evaluated. Returned as UTC time in ISO 8601 format + * Schema version. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly firstEvaluationDate?: Date; + readonly version?: string; /** - * The time that the status of the assessment last changed. Returned as UTC time in ISO 8601 format + * Unique identifier for the detection logic (all alert instances from the same detection logic will have the same alertType). * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly statusChangeDate?: Date; -} - -/** Describes properties of an assessment. */ -export interface SecurityAssessmentPropertiesResponse - extends SecurityAssessmentPropertiesBase { - /** The result of the assessment */ - status: AssessmentStatusResponse; -} - -/** Describes properties of an assessment. */ -export interface SecurityAssessmentProperties - extends SecurityAssessmentPropertiesBase { - /** The result of the assessment */ - status: AssessmentStatus; -} - -/** Azure resource identifier. */ -export interface AzureResourceIdentifier extends ResourceIdentifier { - /** Polymorphic discriminator, which specifies the different types this object can be */ - type: "AzureResource"; + readonly alertType?: string; /** - * ARM resource identifier for the cloud resource being alerted on + * Unique identifier for the alert. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly azureResourceId?: string; -} - -/** Represents a Log Analytics workspace scope identifier. */ -export interface LogAnalyticsIdentifier extends ResourceIdentifier { - /** Polymorphic discriminator, which specifies the different types this object can be */ - type: "LogAnalytics"; + readonly systemAlertId?: string; /** - * The LogAnalytics workspace id that stores this alert. + * The name of Azure Security Center pricing tier which powering this alert. Learn more: https://docs.microsoft.com/en-us/azure/security-center/security-center-pricing * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly workspaceId?: string; + readonly productComponentName?: string; /** - * The azure subscription id for the LogAnalytics workspace storing this alert. + * The display name of the alert. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly workspaceSubscriptionId?: string; + readonly alertDisplayName?: string; /** - * The azure resource group for the LogAnalytics workspace storing this alert + * Description of the suspicious activity that was detected. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly workspaceResourceGroup?: string; + readonly description?: string; /** - * (optional) The LogAnalytics agent id reporting the event that this alert is based on. + * The risk level of the threat that was detected. Learn more: https://docs.microsoft.com/en-us/azure/security-center/security-center-alerts-overview#how-are-alerts-classified. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly agentId?: string; -} - -/** Simulate alerts according to this bundles. */ -export interface AlertSimulatorBundlesRequestProperties - extends AlertSimulatorRequestProperties { - /** Polymorphic discriminator, which specifies the different types this object can be */ - kind: "Bundles"; - /** Bundles list. */ - bundles?: BundleType[]; -} - -/** A base vulnerability assessments setting on servers in the defined scope. */ -export interface ServerVulnerabilityAssessmentsSetting - extends ResourceAutoGenerated2 { - /** The kind of the server vulnerability assessments setting. */ - kind: ServerVulnerabilityAssessmentsSettingKind; -} - -/** The AWS organization data for the master account */ -export interface AwsOrganizationalDataMaster extends AwsOrganizationalData { - /** Polymorphic discriminator, which specifies the different types this object can be */ - organizationMembershipType: "Organization"; - /** If the multi cloud account is of membership type organization, this will be the name of the onboarding stackset */ - stacksetName?: string; - /** If the multi cloud account is of membership type organization, list of accounts excluded from offering */ - excludedAccountIds?: string[]; -} - -/** The AWS organization data for the member account */ -export interface AwsOrganizationalDataMember extends AwsOrganizationalData { - /** Polymorphic discriminator, which specifies the different types this object can be */ - organizationMembershipType: "Member"; - /** If the multi cloud account is not of membership type organization, this will be the ID of the account's parent */ - parentHierarchyId?: string; -} - -/** The gcpOrganization data for the parent account */ -export interface GcpOrganizationalDataOrganization - extends GcpOrganizationalData { - /** Polymorphic discriminator, which specifies the different types this object can be */ - organizationMembershipType: "Organization"; - /** If the multi cloud account is of membership type organization, list of accounts excluded from offering */ - excludedProjectNumbers?: string[]; - /** The service account email address which represents the organization level permissions container. */ - serviceAccountEmailAddress?: string; - /** The GCP workload identity provider id which represents the permissions required to auto provision security connectors */ - workloadIdentityProviderId?: string; + readonly severity?: AlertSeverity; /** - * GCP organization name + * The kill chain related intent behind the alert. For list of supported values, and explanations of Azure Security Center's supported kill chain intents. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly organizationName?: string; -} - -/** The gcpOrganization data for the member account */ -export interface GcpOrganizationalDataMember extends GcpOrganizationalData { - /** Polymorphic discriminator, which specifies the different types this object can be */ - organizationMembershipType: "Member"; - /** If the multi cloud account is not of membership type organization, this will be the ID of the project's parent */ - parentHierarchyId?: string; - /** The GCP management project number from organizational onboarding */ - managementProjectNumber?: string; -} - -/** The external security solution properties for CEF solutions */ -export interface CefSolutionProperties - extends ExternalSecuritySolutionProperties { - hostname?: string; - agent?: string; - lastEventReceived?: string; -} - -/** The external security solution properties for ATA solutions */ -export interface AtaSolutionProperties - extends ExternalSecuritySolutionProperties { - lastEventReceived?: string; -} - -/** The external security solution properties for AAD solutions */ -export interface AadSolutionProperties - extends ExternalSecuritySolutionProperties, - AadConnectivityStateAutoGenerated {} - -/** The security automation resource. */ -export interface Automation extends TrackedResource { - /** 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[]; -} - -/** The security connector resource. */ -export interface SecurityConnector extends TrackedResource { + readonly intent?: Intent; /** - * Azure Resource Manager metadata containing createdBy and modifiedBy information. + * The UTC time of the first event or activity included in the alert in ISO8601 format. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly systemData?: SystemData; - /** The multi cloud resource identifier (account id in case of AWS connector, project number in case of GCP connector). */ - hierarchyIdentifier?: string; + readonly startTimeUtc?: Date; /** - * The date on which the trial period will end, if applicable. Trial period exists for 30 days after upgrading to payed offerings. + * The UTC time of the last event or activity included in the alert in ISO8601 format. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly hierarchyIdentifierTrialEndDate?: Date; - /** The multi cloud resource's cloud name. */ - environmentName?: CloudName; - /** A collection of offerings for the security connector. */ - offerings?: CloudOfferingUnion[]; - /** The security connector environment data. */ - environmentData?: EnvironmentDataUnion; -} - -/** Represents a security solution which sends CEF logs to an OMS workspace */ -export interface CefExternalSecuritySolution extends ExternalSecuritySolution { - /** The external security solution properties for CEF solutions */ - properties?: CefSolutionProperties; -} - -/** Represents an ATA security solution which sends logs to an OMS workspace */ -export interface AtaExternalSecuritySolution extends ExternalSecuritySolution { - /** The external security solution properties for ATA solutions */ - properties?: AtaSolutionProperties; -} - -/** Represents an AAD identity protection solution which sends logs to an OMS workspace. */ -export interface AadExternalSecuritySolution extends ExternalSecuritySolution { - /** The external security solution properties for AAD solutions */ - properties?: AadSolutionProperties; -} - -/** Represents a data export setting */ -export interface DataExportSettings extends Setting { - /** Polymorphic discriminator, which specifies the different types this object can be */ - kind: "DataExportSettings"; - /** Is the data export setting enabled */ - enabled?: boolean; -} - -/** Represents an alert sync setting */ -export interface AlertSyncSettings extends Setting { - /** Polymorphic discriminator, which specifies the different types this object can be */ - kind: "AlertSyncSettings"; - /** Is the alert sync setting enabled */ - enabled?: boolean; -} - -/** Details of the On Premise Sql resource that was assessed */ -export interface OnPremiseSqlResourceDetails extends OnPremiseResourceDetails { - /** Polymorphic discriminator, which specifies the different types this object can be */ - source: "OnPremiseSql"; - /** The Sql server name installed on the machine */ - serverName: string; - /** The Sql database name installed on the machine */ - databaseName: string; -} - -/** Azure DevOps Organization resource. */ -export interface AzureDevOpsOrg extends ProxyResource { + readonly endTimeUtc?: Date; /** - * Metadata pertaining to creation and last modification of the resource. + * The resource identifiers that can be used to direct the alert to the right product exposure group (tenant, workspace, subscription etc.). There can be multiple identifiers of different type per alert. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly systemData?: SystemData; - /** Azure DevOps Organization properties. */ - properties?: AzureDevOpsOrgProperties; -} - -/** Azure DevOps Project resource. */ -export interface AzureDevOpsProject extends ProxyResource { + readonly resourceIdentifiers?: ResourceIdentifierUnion[]; /** - * Metadata pertaining to creation and last modification of the resource. + * Manual action items to take to remediate the alert. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly systemData?: SystemData; - /** Azure DevOps Project properties. */ - properties?: AzureDevOpsProjectProperties; -} - -/** Azure DevOps Repository resource. */ -export interface AzureDevOpsRepository extends ProxyResource { + readonly remediationSteps?: string[]; /** - * Metadata pertaining to creation and last modification of the resource. + * The name of the vendor that raises the alert. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly systemData?: SystemData; - /** Azure DevOps Repository properties. */ - properties?: AzureDevOpsRepositoryProperties; -} - -/** DevOps Configuration resource. */ -export interface DevOpsConfiguration extends ProxyResource { + readonly vendorName?: string; /** - * Metadata pertaining to creation and last modification of the resource. + * The life cycle status of the alert. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly systemData?: SystemData; - /** DevOps Configuration properties. */ - properties?: DevOpsConfigurationProperties; -} - -/** GitHub Owner resource. */ -export interface GitHubOwner extends ProxyResource { + readonly status?: AlertStatus; /** - * Metadata pertaining to creation and last modification of the resource. + * Links related to the alert * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly systemData?: SystemData; - /** GitHub Owner properties. */ - properties?: GitHubOwnerProperties; -} - -/** GitHub Repository resource. */ -export interface GitHubRepository extends ProxyResource { + readonly extendedLinks?: { [propertyName: string]: string }[]; /** - * Metadata pertaining to creation and last modification of the resource. + * A direct link to the alert page in Azure Portal. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly systemData?: SystemData; - /** GitHub Repository properties. */ - properties?: GitHubRepositoryProperties; -} - -/** GitLab Group resource. */ -export interface GitLabGroup extends ProxyResource { + readonly alertUri?: string; /** - * Metadata pertaining to creation and last modification of the resource. + * The UTC time the alert was generated in ISO8601 format. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly systemData?: SystemData; - /** GitLab Group properties. */ - properties?: GitLabGroupProperties; -} - -/** GitLab Project resource. */ -export interface GitLabProject extends ProxyResource { + readonly timeGeneratedUtc?: Date; /** - * Metadata pertaining to creation and last modification of the resource. + * The name of the product which published this alert (Microsoft Sentinel, Microsoft Defender for Identity, Microsoft Defender for Endpoint, Microsoft Defender for Office, Microsoft Defender for Cloud Apps, and so on). * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly systemData?: SystemData; - /** GitLab Project properties. */ - properties?: GitLabProjectProperties; + readonly productName?: string; + /** + * The UTC processing end time of the alert in ISO8601 format. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly processingEndTimeUtc?: Date; + /** + * A list of entities related to the alert. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly entities?: AlertEntity[]; + /** + * This field determines whether the alert is an incident (a compound grouping of several alerts) or a single alert. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly isIncident?: boolean; + /** + * Key for corelating related alerts. Alerts with the same correlation key considered to be related. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly correlationKey?: string; + /** Custom properties for the alert. */ + extendedProperties?: { [propertyName: string]: string }; + /** + * The display name of the resource most related to this alert. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly compromisedEntity?: string; + /** + * kill chain related techniques behind the alert. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly techniques?: string[]; + /** + * Kill chain related sub-techniques behind the alert. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly subTechniques?: string[]; + /** Changing set of properties depending on the supportingEvidence type. */ + supportingEvidence?: AlertPropertiesSupportingEvidence; } -/** A custom alert rule that checks if the number of activities (depends on the custom alert type) in a time window is within the given range. */ -export interface TimeWindowCustomAlertRule extends ThresholdCustomAlertRule { - /** Polymorphic discriminator, which specifies the different types this object can be */ - ruleType: - | "TimeWindowCustomAlertRule" - | "ActiveConnectionsNotInAllowedRange" - | "AmqpC2DMessagesNotInAllowedRange" - | "MqttC2DMessagesNotInAllowedRange" - | "HttpC2DMessagesNotInAllowedRange" - | "AmqpC2DRejectedMessagesNotInAllowedRange" - | "MqttC2DRejectedMessagesNotInAllowedRange" - | "HttpC2DRejectedMessagesNotInAllowedRange" - | "AmqpD2CMessagesNotInAllowedRange" - | "MqttD2CMessagesNotInAllowedRange" - | "HttpD2CMessagesNotInAllowedRange" - | "DirectMethodInvokesNotInAllowedRange" - | "FailedLocalLoginsNotInAllowedRange" - | "FileUploadsNotInAllowedRange" - | "QueuePurgesNotInAllowedRange" - | "TwinUpdatesNotInAllowedRange" - | "UnauthorizedOperationsNotInAllowedRange"; - /** The time window size in iso8601 format. */ - timeWindowSize: string; +/** The kind of the security setting */ +export interface Setting extends Resource { + /** the kind of the settings string */ + kind: SettingKind; } -/** A custom alert rule that checks if a value (depends on the custom alert type) is allowed. */ -export interface AllowlistCustomAlertRule extends ListCustomAlertRule { - /** Polymorphic discriminator, which specifies the different types this object can be */ - ruleType: - | "AllowlistCustomAlertRule" - | "ConnectionToIpNotAllowed" - | "ConnectionFromIpNotAllowed" - | "LocalUserNotAllowed" - | "ProcessNotAllowed"; - /** The values to allow. The format of the values depends on the rule type. */ - allowlistValues: string[]; +/** An API collection as represented by Microsoft Defender for APIs. */ +export interface ApiCollection extends Resource { + /** + * Gets the provisioning state of the API collection. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: ProvisioningState; + /** + * The display name of the API collection. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly displayName?: string; + /** + * The resource Id of the resource from where this API collection was discovered. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly discoveredVia?: string; + /** + * The base URI for this API collection. All endpoints of this API collection extend this base URI. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly baseUrl?: string; + /** + * The number of API endpoints discovered in this API collection. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly numberOfApiEndpoints?: number; + /** + * The number of API endpoints in this API collection that have not received any API traffic in the last 30 days. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly numberOfInactiveApiEndpoints?: number; + /** + * The number of API endpoints in this API collection that are unauthenticated. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly numberOfUnauthenticatedApiEndpoints?: number; + /** + * The number of API endpoints in this API collection for which API traffic from the internet was observed. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly numberOfExternalApiEndpoints?: number; + /** + * The number of API endpoints in this API collection which are exposing sensitive data in their requests and/or responses. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly numberOfApiEndpointsWithSensitiveDataExposed?: number; + /** + * The highest priority sensitivity label from Microsoft Purview in this API collection. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly sensitivityLabel?: string; } -/** A custom alert rule that checks if a value (depends on the custom alert type) is denied. */ -export interface DenylistCustomAlertRule extends ListCustomAlertRule { - /** Polymorphic discriminator, which specifies the different types this object can be */ - ruleType: "DenylistCustomAlertRule"; - /** The values to deny. The format of the values depends on the rule type. */ - denylistValues: string[]; +/** Microsoft Defender for Cloud is provided in two pricing tiers: free and standard. The standard tier offers advanced security capabilities, while the free tier offers basic security features. */ +export interface Pricing extends Resource { + /** Indicates whether the Defender plan is enabled on the selected scope. Microsoft Defender for Cloud is provided in two pricing tiers: free and standard. The standard tier offers advanced security capabilities, while the free tier offers basic security features. */ + pricingTier?: PricingTier; + /** The sub-plan selected for a Standard pricing configuration, when more than one sub-plan is available. Each sub-plan enables a set of security features. When not specified, full plan is applied. For VirtualMachines plan, available sub plans are 'P1' & 'P2', where for resource level only 'P1' sub plan is supported. */ + subPlan?: string; + /** + * The duration left for the subscriptions free trial period - in ISO 8601 format (e.g. P3Y6M4DT12H30M5S). + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly freeTrialRemainingTime?: string; + /** + * Optional. If `pricingTier` is `Standard` then this property holds the date of the last time the `pricingTier` was set to `Standard`, when available (e.g 2023-03-01T12:42:42.1921106Z). + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly enablementTime?: Date; + /** If set to "False", it allows the descendants of this scope to override the pricing configuration set on this scope (allows setting inherited="False"). If set to "True", it prevents overrides and forces this pricing configuration on all the descendants of this scope. This field is only available for subscription-level pricing. */ + enforce?: Enforce; + /** + * "inherited" = "True" indicates that the current scope inherits its pricing configuration from its parent. The ID of the parent scope that provides the inherited configuration is displayed in the "inheritedFrom" field. On the other hand, "inherited" = "False" indicates that the current scope has its own pricing configuration explicitly set, and does not inherit from its parent. This field is read only and available only for resource-level pricing. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly inherited?: Inherited; + /** + * The id of the scope inherited from. "Null" if not inherited. This field is only available for resource-level pricing. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly inheritedFrom?: string; + /** + * This field is available for subscription-level only, and reflects the coverage status of the resources under the subscription. Please note: The "pricingTier" field reflects the plan status of the subscription. However, since the plan status can also be defined at the resource level, there might be misalignment between the subscription's plan status and the resource status. This field helps indicate the coverage status of the resources. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly resourcesCoverageStatus?: ResourcesCoverageStatus; + /** Optional. List of extensions offered under a plan. */ + extensions?: Extension[]; + /** + * Optional. True if the plan is deprecated. If there are replacing plans they will appear in `replacedBy` property + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly deprecated?: boolean; + /** + * Optional. List of plans that replace this plan. This property exists only if this plan is deprecated. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly replacedBy?: string[]; } -/** A vulnerability assessments setting on Azure servers in the defined scope. */ -export interface AzureServersSetting - extends ServerVulnerabilityAssessmentsSetting { - /** Polymorphic discriminator, which specifies the different types this object can be */ - kind: "AzureServersSetting"; - /** The selected vulnerability assessments provider on Azure servers in the defined scope. */ - selectedProvider?: ServerVulnerabilityAssessmentsAzureSettingSelectedProvider; +/** Security Standard on a resource */ +export interface SecurityStandard extends Resource { + /** Display name of the standard, equivalent to the standardId */ + displayName?: string; + /** + * Standard type (Custom or Default or Compliance only currently) + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly standardType?: StandardType; + /** Description of the standard */ + description?: string; + /** List of assessment keys to apply to standard scope. */ + assessments?: PartialAssessmentProperties[]; + /** List of all standard supported clouds. */ + cloudProviders?: StandardSupportedCloud[]; + /** The policy set definition id associated with the standard. */ + policySetDefinitionId?: string; + /** The security standard metadata. */ + metadata?: StandardMetadata; +} + +/** Security Assignment on a resource group over a given scope */ +export interface StandardAssignment extends Resource { + /** Display name of the standardAssignment */ + displayName?: string; + /** Description of the standardAssignment */ + description?: string; + /** Standard item with key as applied to this standard assignment over the given scope */ + assignedStandard?: AssignedStandardItem; + /** Expected effect of this assignment (Audit/Exempt/Attest) */ + effect?: Effect; + /** Excluded scopes, filter out the descendants of the scope (on management scopes) */ + excludedScopes?: string[]; + /** Expiration date of this assignment as a full ISO date */ + expiresOn?: Date; + /** Additional data about assignment that has Exempt effect */ + exemptionData?: StandardAssignmentPropertiesExemptionData; + /** Additional data about assignment that has Attest effect */ + attestationData?: StandardAssignmentPropertiesAttestationData; + /** The standard assignment metadata. */ + metadata?: StandardAssignmentMetadata; } -/** Number of active connections is not in allowed range. */ -export interface ActiveConnectionsNotInAllowedRange - extends TimeWindowCustomAlertRule { - /** Polymorphic discriminator, which specifies the different types this object can be */ - ruleType: "ActiveConnectionsNotInAllowedRange"; +/** Custom Recommendation */ +export interface CustomRecommendation extends Resource { + /** + * Azure Resource Manager metadata containing createdBy and modifiedBy information. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly systemData?: SystemData; + /** KQL query representing the Recommendation results required. */ + query?: string; + /** List of all standard supported clouds. */ + cloudProviders?: RecommendationSupportedClouds[]; + /** The severity to relate to the assessments generated by this Recommendation. */ + severity?: SeverityEnum; + /** The severity to relate to the assessments generated by this Recommendation. */ + securityIssue?: SecurityIssue; + /** The display name of the assessments generated by this Recommendation. */ + displayName?: string; + /** The description to relate to the assessments generated by this Recommendation. */ + description?: string; + /** The remediation description to relate to the assessments generated by this Recommendation. */ + remediationDescription?: string; + /** + * The assessment metadata key used when an assessment is generated for this Recommendation. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly assessmentKey?: string; } -/** Number of cloud to device messages (AMQP protocol) is not in allowed range. */ -export interface AmqpC2DMessagesNotInAllowedRange - extends TimeWindowCustomAlertRule { - /** Polymorphic discriminator, which specifies the different types this object can be */ - ruleType: "AmqpC2DMessagesNotInAllowedRange"; +/** The Defender for Storage resource. */ +export interface DefenderForStorageSetting extends Resource { + /** Defender for Storage resource properties. */ + properties?: DefenderForStorageSettingProperties; } -/** Number of cloud to device messages (MQTT protocol) is not in allowed range. */ -export interface MqttC2DMessagesNotInAllowedRange - extends TimeWindowCustomAlertRule { - /** Polymorphic discriminator, which specifies the different types this object can be */ - ruleType: "MqttC2DMessagesNotInAllowedRange"; +/** Security assessment metadata */ +export interface SecurityAssessmentMetadata extends Resource { + /** User friendly display name of the assessment */ + displayName?: string; + /** + * Azure resource ID of the policy definition that turns this assessment calculation on + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly policyDefinitionId?: string; + /** Human readable description of the assessment */ + description?: string; + /** Human readable description of what you should do to mitigate this security issue */ + remediationDescription?: string; + categories?: Categories[]; + /** The severity level of the assessment */ + severity?: Severity; + /** The user impact of the assessment */ + userImpact?: UserImpact; + /** The implementation effort required to remediate this assessment */ + implementationEffort?: ImplementationEffort; + threats?: Threats[]; + /** True if this assessment is in preview release status */ + preview?: boolean; + /** BuiltIn if the assessment based on built-in Azure Policy definition, Custom if the assessment based on custom Azure Policy definition */ + assessmentType?: AssessmentType; + /** Describes the partner that created the assessment */ + partnerData?: SecurityAssessmentMetadataPartnerData; } -/** Number of cloud to device messages (HTTP protocol) is not in allowed range. */ -export interface HttpC2DMessagesNotInAllowedRange - extends TimeWindowCustomAlertRule { +/** Details of the Azure resource that was assessed */ +export interface AzureResourceDetails extends ResourceDetails { /** Polymorphic discriminator, which specifies the different types this object can be */ - ruleType: "HttpC2DMessagesNotInAllowedRange"; + source: "Azure"; + /** + * Azure resource Id of the assessed resource + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly id?: string; } -/** Number of rejected cloud to device messages (AMQP protocol) is not in allowed range. */ -export interface AmqpC2DRejectedMessagesNotInAllowedRange - extends TimeWindowCustomAlertRule { +/** Details of the On Premise resource that was assessed */ +export interface OnPremiseResourceDetails extends ResourceDetails { /** Polymorphic discriminator, which specifies the different types this object can be */ - ruleType: "AmqpC2DRejectedMessagesNotInAllowedRange"; + source: "OnPremise" | "OnPremiseSql"; + /** Azure resource Id of the workspace the machine is attached to */ + workspaceId: string; + /** The unique Id of the machine */ + vmuuid: string; + /** The oms agent Id installed on the machine */ + sourceComputerId: string; + /** The name of the machine */ + machineName: string; } -/** Number of rejected cloud to device messages (MQTT protocol) is not in allowed range. */ -export interface MqttC2DRejectedMessagesNotInAllowedRange - extends TimeWindowCustomAlertRule { +/** Details of the resource that was assessed */ +export interface SqlServerVulnerabilityProperties extends AdditionalData { /** Polymorphic discriminator, which specifies the different types this object can be */ - ruleType: "MqttC2DRejectedMessagesNotInAllowedRange"; + assessedResourceType: "SqlServerVulnerability"; + /** + * The resource type the sub assessment refers to in its resource details + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly type?: string; + /** + * The T-SQL query that runs on your SQL database to perform the particular check + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly query?: string; } -/** Number of rejected cloud to device messages (HTTP protocol) is not in allowed range. */ -export interface HttpC2DRejectedMessagesNotInAllowedRange - extends TimeWindowCustomAlertRule { +/** Additional context fields for container registry Vulnerability assessment */ +export interface ContainerRegistryVulnerabilityProperties extends AdditionalData { /** Polymorphic discriminator, which specifies the different types this object can be */ - ruleType: "HttpC2DRejectedMessagesNotInAllowedRange"; + assessedResourceType: "ContainerRegistryVulnerability"; + /** + * Vulnerability Type. e.g: Vulnerability, Potential Vulnerability, Information Gathered, Vulnerability + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly type?: string; + /** + * Dictionary from cvss version to cvss details object + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly cvss?: { [propertyName: string]: Cvss }; + /** + * Indicates whether a patch is available or not + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly patchable?: boolean; + /** + * List of CVEs + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly cve?: Cve[]; + /** + * Published time + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly publishedTime?: Date; + /** NOTE: This property will not be serialized. It can only be populated by the server. */ + readonly vendorReferences?: VendorReference[]; + /** + * Name of the repository which the vulnerable image belongs to + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly repositoryName?: string; + /** + * Digest of the vulnerable image + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly imageDigest?: string; } -/** Number of device to cloud messages (AMQP protocol) is not in allowed range. */ -export interface AmqpD2CMessagesNotInAllowedRange - extends TimeWindowCustomAlertRule { - /** Polymorphic discriminator, which specifies the different types this object can be */ - ruleType: "AmqpD2CMessagesNotInAllowedRange"; +/** Additional context fields for server vulnerability assessment */ +export interface ServerVulnerabilityProperties extends AdditionalData { + /** Polymorphic discriminator, which specifies the different types this object can be */ + assessedResourceType: "ServerVulnerabilityAssessment"; + /** + * Vulnerability Type. e.g: Vulnerability, Potential Vulnerability, Information Gathered + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly type?: string; + /** + * Dictionary from cvss version to cvss details object + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly cvss?: { [propertyName: string]: Cvss }; + /** + * Indicates whether a patch is available or not + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly patchable?: boolean; + /** + * List of CVEs + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly cve?: Cve[]; + /** + * Threat name + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly threat?: string; + /** + * Published time + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly publishedTime?: Date; + /** NOTE: This property will not be serialized. It can only be populated by the server. */ + readonly vendorReferences?: VendorReference[]; } -/** Number of device to cloud messages (MQTT protocol) is not in allowed range. */ -export interface MqttD2CMessagesNotInAllowedRange - extends TimeWindowCustomAlertRule { +/** AWS cloud account connector based credentials, the credentials is composed of access key ID and secret key, for more details, refer to Creating an IAM User in Your AWS Account (write only) */ +export interface AwsCredsAuthenticationDetailsProperties extends AuthenticationDetailsProperties { /** Polymorphic discriminator, which specifies the different types this object can be */ - ruleType: "MqttD2CMessagesNotInAllowedRange"; + authenticationType: "awsCreds"; + /** + * The ID of the cloud account + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly accountId?: string; + /** Public key element of the AWS credential object (write only) */ + awsAccessKeyId: string; + /** Secret key element of the AWS credential object (write only) */ + awsSecretAccessKey: string; } -/** Number of device to cloud messages (HTTP protocol) is not in allowed range. */ -export interface HttpD2CMessagesNotInAllowedRange - extends TimeWindowCustomAlertRule { +/** AWS cloud account connector based assume role, the role enables delegating access to your AWS resources. The role is composed of role Amazon Resource Name (ARN) and external ID. For more details, refer to Creating a Role to Delegate Permissions to an IAM User (write only) */ +export interface AwAssumeRoleAuthenticationDetailsProperties + extends AuthenticationDetailsProperties { /** Polymorphic discriminator, which specifies the different types this object can be */ - ruleType: "HttpD2CMessagesNotInAllowedRange"; + authenticationType: "awsAssumeRole"; + /** + * The ID of the cloud account + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly accountId?: string; + /** Assumed role ID is an identifier that you can use to create temporary security credentials. */ + awsAssumeRoleArn: string; + /** A unique identifier that is required when you assume a role in another account. */ + awsExternalId: string; } -/** Number of direct method invokes is not in allowed range. */ -export interface DirectMethodInvokesNotInAllowedRange - extends TimeWindowCustomAlertRule { +/** GCP cloud account connector based service to service credentials, the credentials are composed of the organization ID and a JSON API key (write only) */ +export interface GcpCredentialsDetailsProperties extends AuthenticationDetailsProperties { /** Polymorphic discriminator, which specifies the different types this object can be */ - ruleType: "DirectMethodInvokesNotInAllowedRange"; + authenticationType: "gcpCredentials"; + /** The organization ID of the GCP cloud account */ + organizationId: string; + /** Type field of the API key (write only) */ + type: string; + /** Project ID field of the API key (write only) */ + projectId: string; + /** Private key ID field of the API key (write only) */ + privateKeyId: string; + /** Private key field of the API key (write only) */ + privateKey: string; + /** Client email field of the API key (write only) */ + clientEmail: string; + /** Client ID field of the API key (write only) */ + clientId: string; + /** Auth URI field of the API key (write only) */ + authUri: string; + /** Token URI field of the API key (write only) */ + tokenUri: string; + /** Auth provider x509 certificate URL field of the API key (write only) */ + authProviderX509CertUrl: string; + /** Client x509 certificate URL field of the API key (write only) */ + clientX509CertUrl: string; } -/** Number of failed local logins is not in allowed range. */ -export interface FailedLocalLoginsNotInAllowedRange - extends TimeWindowCustomAlertRule { +/** 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 */ - ruleType: "FailedLocalLoginsNotInAllowedRange"; + 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; } -/** Number of file uploads is not in allowed range. */ -export interface FileUploadsNotInAllowedRange - extends TimeWindowCustomAlertRule { +/** 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 */ - ruleType: "FileUploadsNotInAllowedRange"; + 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; } -/** Number of device queue purges is not in allowed range. */ -export interface QueuePurgesNotInAllowedRange - extends TimeWindowCustomAlertRule { +/** 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 */ - ruleType: "QueuePurgesNotInAllowedRange"; + actionType: "Workspace"; + /** The fully qualified Log Analytics Workspace Azure Resource ID. */ + workspaceResourceId?: string; } -/** Number of twin updates is not in allowed range. */ -export interface TwinUpdatesNotInAllowedRange - extends TimeWindowCustomAlertRule { - /** Polymorphic discriminator, which specifies the different types this object can be */ - ruleType: "TwinUpdatesNotInAllowedRange"; +/** 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[]; } -/** Number of unauthorized operations is not in allowed range. */ -export interface UnauthorizedOperationsNotInAllowedRange - extends TimeWindowCustomAlertRule { +/** Alert notification source */ +export interface NotificationsSourceAlert extends NotificationsSource { /** Polymorphic discriminator, which specifies the different types this object can be */ - ruleType: "UnauthorizedOperationsNotInAllowedRange"; + sourceType: "Alert"; + /** Defines the minimal alert severity which will be sent as email notifications */ + minimalSeverity?: MinimalSeverity; } -/** Outbound connection to an ip that isn't allowed. Allow list consists of ipv4 or ipv6 range in CIDR notation. */ -export interface ConnectionToIpNotAllowed extends AllowlistCustomAlertRule { +/** Attack path notification source */ +export interface NotificationsSourceAttackPath extends NotificationsSource { /** Polymorphic discriminator, which specifies the different types this object can be */ - ruleType: "ConnectionToIpNotAllowed"; + sourceType: "AttackPath"; + /** Defines the minimal attach path risk level which will be sent as email notifications */ + minimalRiskLevel?: MinimalRiskLevel; } -/** Inbound connection from an ip that isn't allowed. Allow list consists of ipv4 or ipv6 range in CIDR notation. */ -export interface ConnectionFromIpNotAllowed extends AllowlistCustomAlertRule { +/** The CSPM monitoring for AWS offering */ +export interface CspmMonitorAwsOffering extends CloudOffering { /** Polymorphic discriminator, which specifies the different types this object can be */ - ruleType: "ConnectionFromIpNotAllowed"; + offeringType: "CspmMonitorAws"; + /** The native cloud connection configuration */ + nativeCloudConnection?: CspmMonitorAwsOfferingNativeCloudConnection; } -/** Login by a local user that isn't allowed. Allow list consists of login names to allow. */ -export interface LocalUserNotAllowed extends AllowlistCustomAlertRule { +/** The Defender for Containers AWS offering */ +export interface DefenderForContainersAwsOffering extends CloudOffering { /** Polymorphic discriminator, which specifies the different types this object can be */ - ruleType: "LocalUserNotAllowed"; + offeringType: "DefenderForContainersAws"; + /** The kubernetes service connection configuration */ + kubernetesService?: DefenderForContainersAwsOfferingKubernetesService; + /** The kubernetes data collection connection configuration */ + kubernetesDataCollection?: DefenderForContainersAwsOfferingKubernetesDataCollection; + /** The cloudwatch to kinesis connection configuration */ + cloudWatchToKinesis?: DefenderForContainersAwsOfferingCloudWatchToKinesis; + /** The kinesis to s3 connection configuration */ + kinesisToS3?: DefenderForContainersAwsOfferingKinesisToS3; + /** 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 */ + 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; } -/** Execution of a process that isn't allowed. Allow list consists of process names to allow. */ -export interface ProcessNotAllowed extends AllowlistCustomAlertRule { +/** The Defender for Servers AWS offering */ +export interface DefenderForServersAwsOffering extends CloudOffering { /** Polymorphic discriminator, which specifies the different types this object can be */ - ruleType: "ProcessNotAllowed"; + offeringType: "DefenderForServersAws"; + /** The Defender for servers connection configuration */ + defenderForServers?: DefenderForServersAwsOfferingDefenderForServers; + /** The ARC autoprovisioning configuration */ + arcAutoProvisioning?: DefenderForServersAwsOfferingArcAutoProvisioning; + /** The Vulnerability Assessment autoprovisioning configuration */ + vaAutoProvisioning?: DefenderForServersAwsOfferingVaAutoProvisioning; + /** The Microsoft Defender for Endpoint autoprovisioning configuration */ + mdeAutoProvisioning?: DefenderForServersAwsOfferingMdeAutoProvisioning; + /** configuration for the servers offering subPlan */ + subPlan?: DefenderForServersAwsOfferingSubPlan; + /** The Microsoft Defender for Server VM scanning configuration */ + vmScanners?: DefenderForServersAwsOfferingVmScanners; } -/** Defines headers for GovernanceRules_delete operation. */ -export interface GovernanceRulesDeleteHeaders { - /** Location URL for the deletion status */ - location?: string; +/** The Defender for Databases AWS offering */ +export interface DefenderFoDatabasesAwsOffering extends CloudOffering { + /** Polymorphic discriminator, which specifies the different types this object can be */ + offeringType: "DefenderForDatabasesAws"; + /** The ARC autoprovisioning configuration */ + arcAutoProvisioning?: DefenderFoDatabasesAwsOfferingArcAutoProvisioning; + /** The RDS configuration */ + rds?: DefenderFoDatabasesAwsOfferingRds; + /** The databases data security posture management (DSPM) configuration */ + databasesDspm?: DefenderFoDatabasesAwsOfferingDatabasesDspm; } -/** Defines headers for GovernanceRules_execute operation. */ -export interface GovernanceRulesExecuteHeaders { - /** Location URL for the execution status */ - location?: string; +/** The CSPM monitoring for GCP offering */ +export interface CspmMonitorGcpOffering extends CloudOffering { + /** Polymorphic discriminator, which specifies the different types this object can be */ + offeringType: "CspmMonitorGcp"; + /** The native cloud connection configuration */ + nativeCloudConnection?: CspmMonitorGcpOfferingNativeCloudConnection; } -/** Defines headers for GovernanceRules_operationResults operation. */ -export interface GovernanceRulesOperationResultsHeaders { - /** Location URL for the execution status */ - location?: string; +/** The Defender for Servers GCP offering configurations */ +export interface DefenderForServersGcpOffering extends CloudOffering { + /** Polymorphic discriminator, which specifies the different types this object can be */ + offeringType: "DefenderForServersGcp"; + /** The Defender for servers connection configuration */ + defenderForServers?: DefenderForServersGcpOfferingDefenderForServers; + /** The ARC autoprovisioning configuration */ + arcAutoProvisioning?: DefenderForServersGcpOfferingArcAutoProvisioning; + /** The Vulnerability Assessment autoprovisioning configuration */ + vaAutoProvisioning?: DefenderForServersGcpOfferingVaAutoProvisioning; + /** The Microsoft Defender for Endpoint autoprovisioning configuration */ + mdeAutoProvisioning?: DefenderForServersGcpOfferingMdeAutoProvisioning; + /** configuration for the servers offering subPlan */ + subPlan?: DefenderForServersGcpOfferingSubPlan; + /** The Microsoft Defender for Server VM scanning configuration */ + vmScanners?: DefenderForServersGcpOfferingVmScanners; } -/** Defines headers for APICollections_onboardAzureApiManagementApi operation. */ -export interface APICollectionsOnboardAzureApiManagementApiHeaders { - location?: string; +/** The Defender for Databases GCP offering configurations */ +export interface DefenderForDatabasesGcpOffering extends CloudOffering { + /** Polymorphic discriminator, which specifies the different types this object can be */ + offeringType: "DefenderForDatabasesGcp"; + /** The ARC autoprovisioning configuration */ + arcAutoProvisioning?: DefenderForDatabasesGcpOfferingArcAutoProvisioning; + /** The native cloud connection configuration */ + defenderForDatabasesArcAutoProvisioning?: DefenderForDatabasesGcpOfferingDefenderForDatabasesArcAutoProvisioning; } -/** Known values of {@link TaskUpdateActionType} that the service accepts. */ -export enum KnownTaskUpdateActionType { - /** Activate */ - Activate = "Activate", - /** Dismiss */ - Dismiss = "Dismiss", - /** Start */ - Start = "Start", - /** Resolve */ - Resolve = "Resolve", - /** Close */ - Close = "Close", +/** The containers GCP offering */ +export interface DefenderForContainersGcpOffering extends CloudOffering { + /** Polymorphic discriminator, which specifies the different types this object can be */ + offeringType: "DefenderForContainersGcp"; + /** The native cloud connection configuration */ + nativeCloudConnection?: DefenderForContainersGcpOfferingNativeCloudConnection; + /** The native cloud connection configuration */ + dataPipelineNativeCloudConnection?: DefenderForContainersGcpOfferingDataPipelineNativeCloudConnection; + /** 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 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; } -/** - * Defines values for TaskUpdateActionType. \ - * {@link KnownTaskUpdateActionType} can be used interchangeably with TaskUpdateActionType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Activate** \ - * **Dismiss** \ - * **Start** \ - * **Resolve** \ - * **Close** - */ -export type TaskUpdateActionType = string; - -/** Known values of {@link AutoProvision} that the service accepts. */ -export enum KnownAutoProvision { - /** Install missing security agent on VMs automatically */ - On = "On", - /** Do not install security agent on the VMs automatically */ - Off = "Off", +/** The CSPM monitoring for github offering */ +export interface CspmMonitorGithubOffering extends CloudOffering { + /** Polymorphic discriminator, which specifies the different types this object can be */ + offeringType: "CspmMonitorGithub"; } -/** - * Defines values for AutoProvision. \ - * {@link KnownAutoProvision} can be used interchangeably with AutoProvision, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **On**: Install missing security agent on VMs automatically \ - * **Off**: Do not install security agent on the VMs automatically - */ -export type AutoProvision = string; - -/** Known values of {@link InformationProtectionPolicyName} that the service accepts. */ -export enum KnownInformationProtectionPolicyName { - /** Effective */ - Effective = "effective", - /** Custom */ - Custom = "custom", +/** The CSPM monitoring for AzureDevOps offering */ +export interface CspmMonitorAzureDevOpsOffering extends CloudOffering { + /** Polymorphic discriminator, which specifies the different types this object can be */ + offeringType: "CspmMonitorAzureDevOps"; } -/** - * Defines values for InformationProtectionPolicyName. \ - * {@link KnownInformationProtectionPolicyName} can be used interchangeably with InformationProtectionPolicyName, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **effective** \ - * **custom** - */ -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", +/** The CSPM P1 for AWS offering */ +export interface DefenderCspmAwsOffering extends CloudOffering { + /** Polymorphic discriminator, which specifies the different types this object can be */ + offeringType: "DefenderCspmAws"; + /** 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 Permissions Management offering configurations */ + ciem?: DefenderCspmAwsOfferingCiem; + /** The Microsoft Defender container image assessment configuration */ + mdcContainersImageAssessment?: DefenderCspmAwsOfferingMdcContainersImageAssessment; + /** The Microsoft Defender container agentless discovery K8s configuration */ + mdcContainersAgentlessDiscoveryK8S?: DefenderCspmAwsOfferingMdcContainersAgentlessDiscoveryK8S; } -/** - * 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; +/** The CSPM P1 for GCP offering */ +export interface DefenderCspmGcpOffering extends CloudOffering { + /** Polymorphic discriminator, which specifies the different types this object can be */ + offeringType: "DefenderCspmGcp"; + /** GCP Defenders CSPM Permissions Management OIDC (Open ID connect) connection configurations */ + ciemDiscovery?: DefenderCspmGcpOfferingCiemDiscovery; + /** The Microsoft Defender for CSPM VM scanning configuration */ + vmScanners?: DefenderCspmGcpOfferingVmScanners; + /** The Microsoft Defender Data Sensitivity discovery configuration */ + dataSensitivityDiscovery?: DefenderCspmGcpOfferingDataSensitivityDiscovery; + /** The Microsoft Defender Container image assessment configuration */ + mdcContainersImageAssessment?: DefenderCspmGcpOfferingMdcContainersImageAssessment; + /** The Microsoft Defender Container agentless discovery configuration */ + mdcContainersAgentlessDiscoveryK8S?: DefenderCspmGcpOfferingMdcContainersAgentlessDiscoveryK8S; +} -/** Known values of {@link PropertyType} that the service accepts. */ -export enum KnownPropertyType { - /** String */ - String = "String", - /** Integer */ - Integer = "Integer", - /** Number */ - Number = "Number", - /** Boolean */ - Boolean = "Boolean", +/** 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"; } -/** - * 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; +/** The CSPM (Cloud security posture management) monitoring for Docker Hub offering */ +export interface CspmMonitorDockerHubOffering extends CloudOffering { + /** Polymorphic discriminator, which specifies the different types this object can be */ + offeringType: "CspmMonitorDockerHub"; +} -/** 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", +/** The Defender for containers Docker Hub offering configurations */ +export interface DefenderForContainersDockerHubOffering extends CloudOffering { + /** Polymorphic discriminator, which specifies the different types this object can be */ + offeringType: "DefenderForContainersDockerHub"; } -/** - * 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; +/** The Defender for CSPM Docker Hub offering configurations */ +export interface DefenderCspmDockerHubOffering extends CloudOffering { + /** Polymorphic discriminator, which specifies the different types this object can be */ + offeringType: "DefenderCspmDockerHub"; +} -/** Known values of {@link ActionType} that the service accepts. */ -export enum KnownActionType { - /** LogicApp */ - LogicApp = "LogicApp", - /** EventHub */ - EventHub = "EventHub", - /** Workspace */ - Workspace = "Workspace", +/** The CSPM (Cloud security posture management) monitoring for JFrog Artifactory offering */ +export interface CspmMonitorJFrogOffering extends CloudOffering { + /** Polymorphic discriminator, which specifies the different types this object can be */ + offeringType: "CspmMonitorJFrog"; } -/** - * 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; +/** The Defender for Containers for JFrog Artifactory offering */ +export interface DefenderForContainersJFrogOffering extends CloudOffering { + /** Polymorphic discriminator, which specifies the different types this object can be */ + offeringType: "DefenderForContainersJFrog"; +} -/** 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 */ - Passed = "Passed", - /** At least one supported regulatory compliance control in the given standard has a state of failed */ - Failed = "Failed", - /** All supported regulatory compliance controls in the given standard have a state of skipped */ - Skipped = "Skipped", - /** No supported regulatory compliance data for the given standard */ - Unsupported = "Unsupported", +/** The CSPM P1 for JFrog Artifactory offering */ +export interface DefenderCspmJFrogOffering extends CloudOffering { + /** Polymorphic discriminator, which specifies the different types this object can be */ + offeringType: "DefenderCspmJFrog"; + /** The Microsoft Defender Container image assessment configuration */ + mdcContainersImageAssessment?: DefenderCspmJFrogOfferingMdcContainersImageAssessment; } -/** - * Defines values for State. \ - * {@link KnownState} can be used interchangeably with State, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Passed**: All supported regulatory compliance controls in the given standard have a passed state \ - * **Failed**: At least one supported regulatory compliance control in the given standard has a state of failed \ - * **Skipped**: All supported regulatory compliance controls in the given standard have a state of skipped \ - * **Unsupported**: No supported regulatory compliance data for the given standard - */ -export type State = string; +/** The AWS connector environment data */ +export interface AwsEnvironmentData extends EnvironmentData { + /** Polymorphic discriminator, which specifies the different types this object can be */ + environmentType: "AwsAccount"; + /** The AWS account's organizational data */ + organizationalData?: AwsOrganizationalDataUnion; + /** list of regions to scan */ + regions?: string[]; + /** + * The AWS account name + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly accountName?: string; + /** Scan interval in hours (value should be between 1-hour to 24-hours) */ + scanInterval?: number; +} -/** Known values of {@link SubAssessmentStatusCode} that the service accepts. */ -export enum KnownSubAssessmentStatusCode { - /** The resource is healthy */ - Healthy = "Healthy", - /** The resource has a security issue that needs to be addressed */ - Unhealthy = "Unhealthy", - /** Assessment for this resource did not happen */ - NotApplicable = "NotApplicable", +/** The GCP project connector environment data */ +export interface GcpProjectEnvironmentData extends EnvironmentData { + /** Polymorphic discriminator, which specifies the different types this object can be */ + environmentType: "GcpProject"; + /** The Gcp project's organizational data */ + organizationalData?: GcpOrganizationalDataUnion; + /** The Gcp project's details */ + projectDetails?: GcpProjectDetails; + /** Scan interval in hours (value should be between 1-hour to 24-hours) */ + scanInterval?: number; } -/** - * Defines values for SubAssessmentStatusCode. \ - * {@link KnownSubAssessmentStatusCode} can be used interchangeably with SubAssessmentStatusCode, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Healthy**: The resource is healthy \ - * **Unhealthy**: The resource has a security issue that needs to be addressed \ - * **NotApplicable**: Assessment for this resource did not happen - */ -export type SubAssessmentStatusCode = string; +/** The github scope connector's environment data */ +export interface GithubScopeEnvironmentData extends EnvironmentData { + /** Polymorphic discriminator, which specifies the different types this object can be */ + environmentType: "GithubScope"; +} -/** Known values of {@link Severity} that the service accepts. */ -export enum KnownSeverity { - /** Low */ - Low = "Low", - /** Medium */ - Medium = "Medium", - /** High */ - High = "High", +/** The AzureDevOps scope connector's environment data */ +export interface AzureDevOpsScopeEnvironmentData extends EnvironmentData { + /** Polymorphic discriminator, which specifies the different types this object can be */ + environmentType: "AzureDevOpsScope"; } -/** - * Defines values for Severity. \ - * {@link KnownSeverity} can be used interchangeably with Severity, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Low** \ - * **Medium** \ - * **High** - */ -export type Severity = string; +/** The GitLab scope connector's environment data */ +export interface GitlabScopeEnvironmentData extends EnvironmentData { + /** Polymorphic discriminator, which specifies the different types this object can be */ + environmentType: "GitlabScope"; +} -/** Known values of {@link Source} that the service accepts. */ -export enum KnownSource { - /** Resource is in Azure */ - Azure = "Azure", - /** Resource in an on premise machine connected to Azure cloud */ - OnPremise = "OnPremise", - /** SQL Resource in an on premise machine connected to Azure cloud */ - OnPremiseSql = "OnPremiseSql", +/** The Docker Hub connector environment data */ +export interface DockerHubEnvironmentData extends EnvironmentData { + /** Polymorphic discriminator, which specifies the different types this object can be */ + environmentType: "DockerHubOrganization"; + /** The Docker Hub organization authentication details */ + authentication?: AuthenticationUnion; + /** Scan interval in hours (value should be between 1-hour to 24-hours) */ + scanInterval?: number; } -/** - * Defines values for Source. \ - * {@link KnownSource} can be used interchangeably with Source, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Azure**: Resource is in Azure \ - * **OnPremise**: Resource in an on premise machine connected to Azure cloud \ - * **OnPremiseSql**: SQL Resource in an on premise machine connected to Azure cloud - */ -export type Source = string; +/** The JFrog Artifactory connector environment data */ +export interface JFrogEnvironmentData extends EnvironmentData { + /** Polymorphic discriminator, which specifies the different types this object can be */ + environmentType: "JFrogArtifactory"; + /** Scan interval in hours (value should be between 1-hour to 24-hours) */ + scanInterval?: number; +} -/** Known values of {@link AssessedResourceType} that the service accepts. */ -export enum KnownAssessedResourceType { - /** SqlServerVulnerability */ - SqlServerVulnerability = "SqlServerVulnerability", - /** ContainerRegistryVulnerability */ - ContainerRegistryVulnerability = "ContainerRegistryVulnerability", - /** ServerVulnerability */ - ServerVulnerability = "ServerVulnerability", +/** 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 */ + ruleType: + | "ThresholdCustomAlertRule" + | "TimeWindowCustomAlertRule" + | "ActiveConnectionsNotInAllowedRange" + | "AmqpC2DMessagesNotInAllowedRange" + | "MqttC2DMessagesNotInAllowedRange" + | "HttpC2DMessagesNotInAllowedRange" + | "AmqpC2DRejectedMessagesNotInAllowedRange" + | "MqttC2DRejectedMessagesNotInAllowedRange" + | "HttpC2DRejectedMessagesNotInAllowedRange" + | "AmqpD2CMessagesNotInAllowedRange" + | "MqttD2CMessagesNotInAllowedRange" + | "HttpD2CMessagesNotInAllowedRange" + | "DirectMethodInvokesNotInAllowedRange" + | "FailedLocalLoginsNotInAllowedRange" + | "FileUploadsNotInAllowedRange" + | "QueuePurgesNotInAllowedRange" + | "TwinUpdatesNotInAllowedRange" + | "UnauthorizedOperationsNotInAllowedRange"; + /** The minimum threshold. */ + minThreshold: number; + /** The maximum threshold. */ + maxThreshold: number; } -/** - * Defines values for AssessedResourceType. \ - * {@link KnownAssessedResourceType} can be used interchangeably with AssessedResourceType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **SqlServerVulnerability** \ - * **ContainerRegistryVulnerability** \ - * **ServerVulnerability** - */ -export type AssessedResourceType = string; +/** A List custom alert rule. */ +export interface ListCustomAlertRule extends CustomAlertRule { + /** Polymorphic discriminator, which specifies the different types this object can be */ + ruleType: + | "ListCustomAlertRule" + | "AllowlistCustomAlertRule" + | "DenylistCustomAlertRule" + | "ConnectionToIpNotAllowed" + | "ConnectionFromIpNotAllowed" + | "LocalUserNotAllowed" + | "ProcessNotAllowed"; + /** + * The value type of the items in the list. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly valueType?: ValueType; +} -/** Known values of {@link HybridComputeProvisioningState} that the service accepts. */ -export enum KnownHybridComputeProvisioningState { - /** Valid service principal details. */ - Valid = "Valid", - /** Invalid service principal details. */ - Invalid = "Invalid", - /** the service principal details are expired */ - Expired = "Expired", +export interface UpdateIotSecuritySolutionData extends TagsResource { + /** Properties of the IoT Security solution's user defined resources. */ + userDefinedResources?: UserDefinedResourcesProperties; + /** List of the configuration status for each recommendation type. */ + recommendationsConfiguration?: RecommendationConfigurationProperties[]; } -/** - * Defines values for HybridComputeProvisioningState. \ - * {@link KnownHybridComputeProvisioningState} can be used interchangeably with HybridComputeProvisioningState, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Valid**: Valid service principal details. \ - * **Invalid**: Invalid service principal details. \ - * **Expired**: the service principal details are expired - */ -export type HybridComputeProvisioningState = string; +/** Describes properties of an assessment metadata response. */ +export interface SecurityAssessmentMetadataPropertiesResponse + extends SecurityAssessmentMetadataProperties { + publishDates?: SecurityAssessmentMetadataPropertiesResponsePublishDates; + plannedDeprecationDate?: string; + tactics?: Tactics[]; + techniques?: Techniques[]; +} -/** Known values of {@link AuthenticationProvisioningState} that the service accepts. */ -export enum KnownAuthenticationProvisioningState { - /** Valid connector */ - Valid = "Valid", - /** Invalid connector */ - Invalid = "Invalid", - /** the connection has expired */ - Expired = "Expired", - /** Incorrect policy of the connector */ - IncorrectPolicy = "IncorrectPolicy", +/** The result of the assessment */ +export interface AssessmentStatusResponse extends AssessmentStatus { + /** + * The time that the assessment was created and first evaluated. Returned as UTC time in ISO 8601 format + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly firstEvaluationDate?: Date; + /** + * The time that the status of the assessment last changed. Returned as UTC time in ISO 8601 format + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly statusChangeDate?: Date; } -/** - * Defines values for AuthenticationProvisioningState. \ - * {@link KnownAuthenticationProvisioningState} can be used interchangeably with AuthenticationProvisioningState, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Valid**: Valid connector \ - * **Invalid**: Invalid connector \ - * **Expired**: the connection has expired \ - * **IncorrectPolicy**: Incorrect policy of the connector - */ -export type AuthenticationProvisioningState = string; +/** Describes properties of an assessment. */ +export interface SecurityAssessmentPropertiesResponse extends SecurityAssessmentPropertiesBase { + /** The result of the assessment */ + status: AssessmentStatusResponse; +} -/** Known values of {@link PermissionProperty} that the service accepts. */ -export enum KnownPermissionProperty { - /** This permission provides read only access to AWS Security Hub resources. */ - AWSAWSSecurityHubReadOnlyAccess = "AWS::AWSSecurityHubReadOnlyAccess", - /** This permission grants access to read security configuration metadata. */ - AWSSecurityAudit = "AWS::SecurityAudit", - /** The permission provides for EC2 Automation service to execute activities defined within Automation documents. */ - AWSAmazonSSMAutomationRole = "AWS::AmazonSSMAutomationRole", - /** This permission provides read only access to GCP Security Command Center. */ - GCPSecurityCenterAdminViewer = "GCP::Security Center Admin Viewer", +/** Describes properties of an assessment. */ +export interface SecurityAssessmentProperties extends SecurityAssessmentPropertiesBase { + /** The result of the assessment */ + status: AssessmentStatus; } -/** - * Defines values for PermissionProperty. \ - * {@link KnownPermissionProperty} can be used interchangeably with PermissionProperty, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **AWS::AWSSecurityHubReadOnlyAccess**: This permission provides read only access to AWS Security Hub resources. \ - * **AWS::SecurityAudit**: This permission grants access to read security configuration metadata. \ - * **AWS::AmazonSSMAutomationRole**: The permission provides for EC2 Automation service to execute activities defined within Automation documents. \ - * **GCP::Security Center Admin Viewer**: This permission provides read only access to GCP Security Command Center. - */ -export type PermissionProperty = string; +/** Azure resource identifier. */ +export interface AzureResourceIdentifier extends ResourceIdentifier { + /** Polymorphic discriminator, which specifies the different types this object can be */ + type: "AzureResource"; + /** + * ARM resource identifier for the cloud resource being alerted on + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly azureResourceId?: string; +} -/** Known values of {@link AuthenticationType} that the service accepts. */ -export enum KnownAuthenticationType { - /** AWS cloud account connector user credentials authentication */ - AwsCreds = "awsCreds", - /** AWS account connector assume role authentication */ - AwsAssumeRole = "awsAssumeRole", - /** GCP account connector service to service authentication */ - GcpCredentials = "gcpCredentials", +/** Represents a Log Analytics workspace scope identifier. */ +export interface LogAnalyticsIdentifier extends ResourceIdentifier { + /** Polymorphic discriminator, which specifies the different types this object can be */ + type: "LogAnalytics"; + /** + * The LogAnalytics workspace id that stores this alert. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly workspaceId?: string; + /** + * The azure subscription id for the LogAnalytics workspace storing this alert. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly workspaceSubscriptionId?: string; + /** + * The azure resource group for the LogAnalytics workspace storing this alert + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly workspaceResourceGroup?: string; + /** + * (optional) The LogAnalytics agent id reporting the event that this alert is based on. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly agentId?: string; } -/** - * Defines values for AuthenticationType. \ - * {@link KnownAuthenticationType} can be used interchangeably with AuthenticationType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **awsCreds**: AWS cloud account connector user credentials authentication \ - * **awsAssumeRole**: AWS account connector assume role authentication \ - * **gcpCredentials**: GCP account connector service to service authentication - */ -export type AuthenticationType = string; +/** Simulate alerts according to this bundles. */ +export interface AlertSimulatorBundlesRequestProperties extends AlertSimulatorRequestProperties { + /** Polymorphic discriminator, which specifies the different types this object can be */ + kind: "Bundles"; + /** Bundles list. */ + bundles?: BundleType[]; +} -/** Known values of {@link SourceType} that the service accepts. */ -export enum KnownSourceType { - /** Alert */ - Alert = "Alert", - /** AttackPath */ - AttackPath = "AttackPath", +/** A base vulnerability assessments setting on servers in the defined scope. */ +export interface ServerVulnerabilityAssessmentsSetting extends ResourceAutoGenerated { + /** The kind of the server vulnerability assessments setting. */ + kind: ServerVulnerabilityAssessmentsSettingKind; } -/** - * 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; +/** The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location */ +export interface ProxyResource extends ResourceAutoGenerated2 {} -/** 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", +/** The AWS organization data for the master account */ +export interface AwsOrganizationalDataMaster extends AwsOrganizationalData { + /** Polymorphic discriminator, which specifies the different types this object can be */ + organizationMembershipType: "Organization"; + /** If the multi cloud account is of membership type organization, this will be the name of the onboarding stackset */ + stacksetName?: string; + /** If the multi cloud account is of membership type organization, list of accounts excluded from offering */ + excludedAccountIds?: string[]; } -/** - * 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", +/** The AWS organization data for the member account */ +export interface AwsOrganizationalDataMember extends AwsOrganizationalData { + /** Polymorphic discriminator, which specifies the different types this object can be */ + organizationMembershipType: "Member"; + /** If the multi cloud account is not of membership type organization, this will be the ID of the account's parent */ + parentHierarchyId?: string; } -/** - * 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; +/** The gcpOrganization data for the parent account */ +export interface GcpOrganizationalDataOrganization extends GcpOrganizationalData { + /** Polymorphic discriminator, which specifies the different types this object can be */ + organizationMembershipType: "Organization"; + /** If the multi cloud account is of membership type organization, list of accounts excluded from offering */ + excludedProjectNumbers?: string[]; + /** The service account email address which represents the organization level permissions container. */ + serviceAccountEmailAddress?: string; + /** The GCP workload identity provider id which represents the permissions required to auto provision security connectors */ + workloadIdentityProviderId?: string; + /** + * GCP organization name + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly organizationName?: 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", +/** The gcpOrganization data for the member account */ +export interface GcpOrganizationalDataMember extends GcpOrganizationalData { + /** Polymorphic discriminator, which specifies the different types this object can be */ + organizationMembershipType: "Member"; + /** If the multi cloud account is not of membership type organization, this will be the ID of the project's parent */ + parentHierarchyId?: string; + /** The GCP management project number from organizational onboarding */ + managementProjectNumber?: string; } -/** - * 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** \ - * **noLongerSupported** \ - * **versionNoLongerSupported** \ - * **upcomingNoLongerSupported** \ - * **upcomingVersionNoLongerSupported** - */ -export type EndOfSupportStatus = string; +/** The environment authentication details */ +export interface AccessTokenAuthentication extends Authentication { + /** Polymorphic discriminator, which specifies the different types this object can be */ + authenticationType: "AccessToken"; + /** The user name that will be used while authenticating with the onboarded environment */ + username?: string; + /** The access token that will be used while authenticating with the onboarded environment */ + accessToken?: string; +} -/** Known values of {@link CreatedByType} that the service accepts. */ -export enum KnownCreatedByType { - /** User */ - User = "User", - /** Application */ - Application = "Application", - /** ManagedIdentity */ - ManagedIdentity = "ManagedIdentity", - /** Key */ - Key = "Key", +/** 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; } -/** - * Defines values for CreatedByType. \ - * {@link KnownCreatedByType} can be used interchangeably with CreatedByType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **User** \ - * **Application** \ - * **ManagedIdentity** \ - * **Key** - */ -export type CreatedByType = string; +/** A VM scanning configuration for a security offering of a GCP environment */ +export interface VmScannersGcp extends VmScannersBase {} -/** Known values of {@link SupportedCloudEnum} that the service accepts. */ -export enum KnownSupportedCloudEnum { - /** AWS */ - AWS = "AWS", - /** GCP */ - GCP = "GCP", +/** The ARC autoprovisioning configuration for an AWS environment */ +export interface ArcAutoProvisioningAws extends ArcAutoProvisioning { + /** The cloud role ARN in AWS for this feature */ + cloudRoleArn?: string; } -/** - * Defines values for SupportedCloudEnum. \ - * {@link KnownSupportedCloudEnum} can be used interchangeably with SupportedCloudEnum, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **AWS** \ - * **GCP** - */ -export type SupportedCloudEnum = string; +/** The ARC autoprovisioning configuration for an GCP environment */ +export interface ArcAutoProvisioningGcp extends ArcAutoProvisioning {} -/** Known values of {@link SeverityEnum} that the service accepts. */ -export enum KnownSeverityEnum { - /** High */ - High = "High", - /** Medium */ - Medium = "Medium", - /** Low */ - Low = "Low", +/** The external security solution properties for CEF solutions */ +export interface CefSolutionProperties extends ExternalSecuritySolutionProperties { + hostname?: string; + agent?: string; + lastEventReceived?: string; } -/** - * Defines values for SeverityEnum. \ - * {@link KnownSeverityEnum} can be used interchangeably with SeverityEnum, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **High** \ - * **Medium** \ - * **Low** - */ -export type SeverityEnum = string; - -/** Known values of {@link GovernanceRuleType} that the service accepts. */ -export enum KnownGovernanceRuleType { - /** The source of the rule type definition is integrated */ - Integrated = "Integrated", - /** The source of the rule type definition is ServiceNow */ - ServiceNow = "ServiceNow", +/** The external security solution properties for ATA solutions */ +export interface AtaSolutionProperties extends ExternalSecuritySolutionProperties { + lastEventReceived?: string; } -/** - * Defines values for GovernanceRuleType. \ - * {@link KnownGovernanceRuleType} can be used interchangeably with GovernanceRuleType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Integrated**: The source of the rule type definition is integrated \ - * **ServiceNow**: The source of the rule type definition is ServiceNow - */ -export type GovernanceRuleType = string; +/** The external security solution properties for AAD solutions */ +export interface AadSolutionProperties + extends ExternalSecuritySolutionProperties, + AadConnectivityStateAutoGenerated {} -/** Known values of {@link GovernanceRuleSourceResourceType} that the service accepts. */ -export enum KnownGovernanceRuleSourceResourceType { - /** The source of the governance rule is assessments */ - Assessments = "Assessments", +/** The security automation resource. */ +export interface Automation extends TrackedResource { + /** 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[]; } -/** - * Defines values for GovernanceRuleSourceResourceType. \ - * {@link KnownGovernanceRuleSourceResourceType} can be used interchangeably with GovernanceRuleSourceResourceType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Assessments**: The source of the governance rule is assessments - */ -export type GovernanceRuleSourceResourceType = string; - -/** Known values of {@link GovernanceRuleOwnerSourceType} that the service accepts. */ -export enum KnownGovernanceRuleOwnerSourceType { - /** The rule source type defined using resource tag */ - ByTag = "ByTag", - /** The rule source type defined manually */ - Manually = "Manually", +/** The security connector resource. */ +export interface SecurityConnector extends TrackedResource { + /** + * Azure Resource Manager metadata containing createdBy and modifiedBy information. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly systemData?: SystemData; + /** The multi cloud resource identifier (account id in case of AWS connector, project number in case of GCP connector). */ + hierarchyIdentifier?: string; + /** + * The date on which the trial period will end, if applicable. Trial period exists for 30 days after upgrading to payed offerings. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly hierarchyIdentifierTrialEndDate?: Date; + /** The multi cloud resource's cloud name. */ + environmentName?: CloudName; + /** A collection of offerings for the security connector. */ + offerings?: CloudOfferingUnion[]; + /** The security connector environment data. */ + environmentData?: EnvironmentDataUnion; } -/** - * Defines values for GovernanceRuleOwnerSourceType. \ - * {@link KnownGovernanceRuleOwnerSourceType} can be used interchangeably with GovernanceRuleOwnerSourceType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **ByTag**: The rule source type defined using resource tag \ - * **Manually**: The rule source type defined manually - */ -export type GovernanceRuleOwnerSourceType = string; +/** Represents a security solution which sends CEF logs to an OMS workspace */ +export interface CefExternalSecuritySolution extends ExternalSecuritySolution { + /** The external security solution properties for CEF solutions */ + properties?: CefSolutionProperties; +} -/** Known values of {@link OperationResult} that the service accepts. */ -export enum KnownOperationResult { - /** The operation succeeded */ - Succeeded = "Succeeded", - /** The operation failed */ - Failed = "Failed", - /** The operation canceled */ - Canceled = "Canceled", +/** Represents an ATA security solution which sends logs to an OMS workspace */ +export interface AtaExternalSecuritySolution extends ExternalSecuritySolution { + /** The external security solution properties for ATA solutions */ + properties?: AtaSolutionProperties; } -/** - * Defines values for OperationResult. \ - * {@link KnownOperationResult} can be used interchangeably with OperationResult, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Succeeded**: The operation succeeded \ - * **Failed**: The operation failed \ - * **Canceled**: The operation canceled - */ -export type OperationResult = string; +/** Represents an AAD identity protection solution which sends logs to an OMS workspace. */ +export interface AadExternalSecuritySolution extends ExternalSecuritySolution { + /** The external security solution properties for AAD solutions */ + properties?: AadSolutionProperties; +} -/** Known values of {@link ApplicationSourceResourceType} that the service accepts. */ -export enum KnownApplicationSourceResourceType { - /** The source of the application is assessments */ - Assessments = "Assessments", +/** Represents a data export setting */ +export interface DataExportSettings extends Setting { + /** Polymorphic discriminator, which specifies the different types this object can be */ + kind: "DataExportSettings"; + /** Is the data export setting enabled */ + enabled?: boolean; } -/** - * Defines values for ApplicationSourceResourceType. \ - * {@link KnownApplicationSourceResourceType} can be used interchangeably with ApplicationSourceResourceType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Assessments**: The source of the application is assessments - */ -export type ApplicationSourceResourceType = string; +/** Represents an alert sync setting */ +export interface AlertSyncSettings extends Setting { + /** Polymorphic discriminator, which specifies the different types this object can be */ + kind: "AlertSyncSettings"; + /** Is the alert sync setting enabled */ + enabled?: boolean; +} -/** Known values of {@link SettingName} that the service accepts. */ -export enum KnownSettingName { - /** Name of the Defender for Storage Settings name. */ - Current = "current", +/** Details of the On Premise Sql resource that was assessed */ +export interface OnPremiseSqlResourceDetails extends OnPremiseResourceDetails { + /** Polymorphic discriminator, which specifies the different types this object can be */ + source: "OnPremiseSql"; + /** The Sql server name installed on the machine */ + serverName: string; + /** The Sql database name installed on the machine */ + databaseName: string; } -/** - * Defines values for SettingName. \ - * {@link KnownSettingName} can be used interchangeably with SettingName, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **current**: Name of the Defender for Storage Settings name. - */ -export type SettingName = string; +/** A custom alert rule that checks if the number of activities (depends on the custom alert type) in a time window is within the given range. */ +export interface TimeWindowCustomAlertRule extends ThresholdCustomAlertRule { + /** Polymorphic discriminator, which specifies the different types this object can be */ + ruleType: + | "TimeWindowCustomAlertRule" + | "ActiveConnectionsNotInAllowedRange" + | "AmqpC2DMessagesNotInAllowedRange" + | "MqttC2DMessagesNotInAllowedRange" + | "HttpC2DMessagesNotInAllowedRange" + | "AmqpC2DRejectedMessagesNotInAllowedRange" + | "MqttC2DRejectedMessagesNotInAllowedRange" + | "HttpC2DRejectedMessagesNotInAllowedRange" + | "AmqpD2CMessagesNotInAllowedRange" + | "MqttD2CMessagesNotInAllowedRange" + | "HttpD2CMessagesNotInAllowedRange" + | "DirectMethodInvokesNotInAllowedRange" + | "FailedLocalLoginsNotInAllowedRange" + | "FileUploadsNotInAllowedRange" + | "QueuePurgesNotInAllowedRange" + | "TwinUpdatesNotInAllowedRange" + | "UnauthorizedOperationsNotInAllowedRange"; + /** The time window size in iso8601 format. */ + timeWindowSize: string; +} -/** Known values of {@link ScanTriggerType} that the service accepts. */ -export enum KnownScanTriggerType { - /** OnDemand */ - OnDemand = "OnDemand", - /** Recurring */ - Recurring = "Recurring", +/** A custom alert rule that checks if a value (depends on the custom alert type) is allowed. */ +export interface AllowlistCustomAlertRule extends ListCustomAlertRule { + /** Polymorphic discriminator, which specifies the different types this object can be */ + ruleType: + | "AllowlistCustomAlertRule" + | "ConnectionToIpNotAllowed" + | "ConnectionFromIpNotAllowed" + | "LocalUserNotAllowed" + | "ProcessNotAllowed"; + /** The values to allow. The format of the values depends on the rule type. */ + allowlistValues: string[]; } -/** - * Defines values for ScanTriggerType. \ - * {@link KnownScanTriggerType} can be used interchangeably with ScanTriggerType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **OnDemand**: OnDemand \ - * **Recurring**: Recurring - */ -export type ScanTriggerType = string; +/** A custom alert rule that checks if a value (depends on the custom alert type) is denied. */ +export interface DenylistCustomAlertRule extends ListCustomAlertRule { + /** Polymorphic discriminator, which specifies the different types this object can be */ + ruleType: "DenylistCustomAlertRule"; + /** The values to deny. The format of the values depends on the rule type. */ + denylistValues: string[]; +} -/** Known values of {@link ScanState} that the service accepts. */ -export enum KnownScanState { - /** Failed */ - Failed = "Failed", - /** FailedToRun */ - FailedToRun = "FailedToRun", - /** InProgress */ - InProgress = "InProgress", - /** Passed */ - Passed = "Passed", +/** A vulnerability assessments setting on Azure servers in the defined scope. */ +export interface AzureServersSetting extends ServerVulnerabilityAssessmentsSetting { + /** Polymorphic discriminator, which specifies the different types this object can be */ + kind: "AzureServersSetting"; + /** The selected vulnerability assessments provider on Azure servers in the defined scope. */ + selectedProvider?: ServerVulnerabilityAssessmentsAzureSettingSelectedProvider; } -/** - * Defines values for ScanState. \ - * {@link KnownScanState} can be used interchangeably with ScanState, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Failed**: Failed \ - * **FailedToRun**: FailedToRun \ - * **InProgress**: InProgress \ - * **Passed**: Passed - */ -export type ScanState = string; +/** Azure DevOps Organization resource. */ +export interface AzureDevOpsOrg 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; + /** Azure DevOps Organization properties. */ + properties?: AzureDevOpsOrgProperties; +} -/** Known values of {@link RuleStatus} that the service accepts. */ -export enum KnownRuleStatus { - /** NonFinding */ - NonFinding = "NonFinding", - /** Finding */ - Finding = "Finding", - /** InternalError */ - InternalError = "InternalError", +/** Azure DevOps Project resource. */ +export interface AzureDevOpsProject 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; + /** Azure DevOps Project properties. */ + properties?: AzureDevOpsProjectProperties; } -/** - * Defines values for RuleStatus. \ - * {@link KnownRuleStatus} can be used interchangeably with RuleStatus, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **NonFinding**: NonFinding \ - * **Finding**: Finding \ - * **InternalError**: InternalError - */ -export type RuleStatus = string; +/** Azure DevOps Repository resource. */ +export interface AzureDevOpsRepository 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; + /** Azure DevOps Repository properties. */ + properties?: AzureDevOpsRepositoryProperties; +} -/** Known values of {@link RuleSeverity} that the service accepts. */ -export enum KnownRuleSeverity { - /** High */ - High = "High", - /** Medium */ - Medium = "Medium", - /** Low */ - Low = "Low", - /** Informational */ - Informational = "Informational", - /** Obsolete */ - Obsolete = "Obsolete", +/** DevOps Configuration resource. */ +export interface DevOpsConfiguration 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; + /** DevOps Configuration properties. */ + properties?: DevOpsConfigurationProperties; } -/** - * Defines values for RuleSeverity. \ - * {@link KnownRuleSeverity} can be used interchangeably with RuleSeverity, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **High**: High \ - * **Medium**: Medium \ - * **Low**: Low \ - * **Informational**: Informational \ - * **Obsolete**: Obsolete - */ -export type RuleSeverity = string; +/** GitHub Owner resource. */ +export interface GitHubOwner 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; + /** GitHub Owner properties. */ + properties?: GitHubOwnerProperties; +} -/** Known values of {@link RuleType} that the service accepts. */ -export enum KnownRuleType { - /** Binary */ - Binary = "Binary", - /** BaselineExpected */ - BaselineExpected = "BaselineExpected", - /** PositiveList */ - PositiveList = "PositiveList", - /** NegativeList */ - NegativeList = "NegativeList", +/** GitHub Repository resource. */ +export interface GitHubRepository 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; + /** GitHub Repository properties. */ + properties?: GitHubRepositoryProperties; } -/** - * Defines values for RuleType. \ - * {@link KnownRuleType} can be used interchangeably with RuleType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Binary**: Binary \ - * **BaselineExpected**: BaselineExpected \ - * **PositiveList**: PositiveList \ - * **NegativeList**: NegativeList - */ -export type RuleType = string; +/** GitLab Group resource. */ +export interface GitLabGroup 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; + /** GitLab Group properties. */ + properties?: GitLabGroupProperties; +} -/** Known values of {@link MipIntegrationStatus} that the service accepts. */ -export enum KnownMipIntegrationStatus { - /** Ok */ - Ok = "Ok", - /** NoConsent */ - NoConsent = "noConsent", - /** NoAutoLabelingRules */ - NoAutoLabelingRules = "noAutoLabelingRules", - /** NoMipLabels */ - NoMipLabels = "noMipLabels", +/** GitLab Project resource. */ +export interface GitLabProject 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; + /** GitLab Project properties. */ + properties?: GitLabProjectProperties; } -/** - * Defines values for MipIntegrationStatus. \ - * {@link KnownMipIntegrationStatus} can be used interchangeably with MipIntegrationStatus, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Ok** \ - * **noConsent** \ - * **noAutoLabelingRules** \ - * **noMipLabels** - */ -export type MipIntegrationStatus = string; +/** The Microsoft Defender for Container K8s VM host scanning configuration */ +export interface DefenderForContainersAwsOfferingVmScanners extends VmScannersAws {} -/** Known values of {@link StatusName} that the service accepts. */ -export enum KnownStatusName { - /** Healthy */ - Healthy = "Healthy", - /** NotHealthy */ - NotHealthy = "NotHealthy", - /** NotApplicable */ - NotApplicable = "NotApplicable", -} +/** The Microsoft Defender for Server VM scanning configuration */ +export interface DefenderForServersAwsOfferingVmScanners extends VmScannersAws {} -/** - * Defines values for StatusName. \ - * {@link KnownStatusName} can be used interchangeably with StatusName, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Healthy** \ - * **NotHealthy** \ - * **NotApplicable** - */ -export type StatusName = string; +/** The Microsoft Defender for CSPM offering VM scanning configuration */ +export interface DefenderCspmAwsOfferingVmScanners extends VmScannersAws {} -/** Known values of {@link DevOpsProvisioningState} that the service accepts. */ -export enum KnownDevOpsProvisioningState { - /** Succeeded */ - Succeeded = "Succeeded", - /** Failed */ - Failed = "Failed", - /** Canceled */ - Canceled = "Canceled", - /** Pending */ - Pending = "Pending", - /** PendingDeletion */ - PendingDeletion = "PendingDeletion", - /** DeletionSuccess */ - DeletionSuccess = "DeletionSuccess", - /** DeletionFailure */ - DeletionFailure = "DeletionFailure", -} +/** The Microsoft Defender for Server VM scanning configuration */ +export interface DefenderForServersGcpOfferingVmScanners extends VmScannersGcp {} -/** - * Defines values for DevOpsProvisioningState. \ - * {@link KnownDevOpsProvisioningState} can be used interchangeably with DevOpsProvisioningState, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Succeeded** \ - * **Failed** \ - * **Canceled** \ - * **Pending** \ - * **PendingDeletion** \ - * **DeletionSuccess** \ - * **DeletionFailure** - */ -export type DevOpsProvisioningState = string; +/** The Microsoft Defender for Container K8s VM host scanning configuration */ +export interface DefenderForContainersGcpOfferingVmScanners extends VmScannersGcp {} -/** Known values of {@link OnboardingState} that the service accepts. */ -export enum KnownOnboardingState { - /** NotApplicable */ - NotApplicable = "NotApplicable", - /** OnboardedByOtherConnector */ - OnboardedByOtherConnector = "OnboardedByOtherConnector", - /** Onboarded */ - Onboarded = "Onboarded", - /** NotOnboarded */ - NotOnboarded = "NotOnboarded", -} +/** The Microsoft Defender for CSPM VM scanning configuration */ +export interface DefenderCspmGcpOfferingVmScanners extends VmScannersGcp {} -/** - * Defines values for OnboardingState. \ - * {@link KnownOnboardingState} can be used interchangeably with OnboardingState, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **NotApplicable** \ - * **OnboardedByOtherConnector** \ - * **Onboarded** \ - * **NotOnboarded** - */ -export type OnboardingState = string; +/** The ARC autoprovisioning configuration */ +export interface DefenderForServersAwsOfferingArcAutoProvisioning extends ArcAutoProvisioningAws {} -/** Known values of {@link ActionableRemediationState} that the service accepts. */ -export enum KnownActionableRemediationState { - /** None */ - None = "None", - /** Disabled */ - Disabled = "Disabled", - /** Enabled */ - Enabled = "Enabled", +/** 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 { + /** Polymorphic discriminator, which specifies the different types this object can be */ + ruleType: "ActiveConnectionsNotInAllowedRange"; } -/** - * Defines values for ActionableRemediationState. \ - * {@link KnownActionableRemediationState} can be used interchangeably with ActionableRemediationState, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **None** \ - * **Disabled** \ - * **Enabled** - */ -export type ActionableRemediationState = string; +/** Number of cloud to device messages (AMQP protocol) is not in allowed range. */ +export interface AmqpC2DMessagesNotInAllowedRange extends TimeWindowCustomAlertRule { + /** Polymorphic discriminator, which specifies the different types this object can be */ + ruleType: "AmqpC2DMessagesNotInAllowedRange"; +} -/** Known values of {@link RuleCategory} that the service accepts. */ -export enum KnownRuleCategory { - /** Code */ - Code = "Code", - /** Artifacts */ - Artifacts = "Artifacts", - /** Dependencies */ - Dependencies = "Dependencies", - /** Secrets */ - Secrets = "Secrets", - /** IaC */ - IaC = "IaC", - /** Containers */ - Containers = "Containers", +/** Number of cloud to device messages (MQTT protocol) is not in allowed range. */ +export interface MqttC2DMessagesNotInAllowedRange extends TimeWindowCustomAlertRule { + /** Polymorphic discriminator, which specifies the different types this object can be */ + ruleType: "MqttC2DMessagesNotInAllowedRange"; +} + +/** Number of cloud to device messages (HTTP protocol) is not in allowed range. */ +export interface HttpC2DMessagesNotInAllowedRange extends TimeWindowCustomAlertRule { + /** Polymorphic discriminator, which specifies the different types this object can be */ + ruleType: "HttpC2DMessagesNotInAllowedRange"; +} + +/** Number of rejected cloud to device messages (AMQP protocol) is not in allowed range. */ +export interface AmqpC2DRejectedMessagesNotInAllowedRange extends TimeWindowCustomAlertRule { + /** Polymorphic discriminator, which specifies the different types this object can be */ + ruleType: "AmqpC2DRejectedMessagesNotInAllowedRange"; +} + +/** Number of rejected cloud to device messages (MQTT protocol) is not in allowed range. */ +export interface MqttC2DRejectedMessagesNotInAllowedRange extends TimeWindowCustomAlertRule { + /** Polymorphic discriminator, which specifies the different types this object can be */ + ruleType: "MqttC2DRejectedMessagesNotInAllowedRange"; +} + +/** Number of rejected cloud to device messages (HTTP protocol) is not in allowed range. */ +export interface HttpC2DRejectedMessagesNotInAllowedRange extends TimeWindowCustomAlertRule { + /** Polymorphic discriminator, which specifies the different types this object can be */ + ruleType: "HttpC2DRejectedMessagesNotInAllowedRange"; +} + +/** Number of device to cloud messages (AMQP protocol) is not in allowed range. */ +export interface AmqpD2CMessagesNotInAllowedRange extends TimeWindowCustomAlertRule { + /** Polymorphic discriminator, which specifies the different types this object can be */ + ruleType: "AmqpD2CMessagesNotInAllowedRange"; +} + +/** Number of device to cloud messages (MQTT protocol) is not in allowed range. */ +export interface MqttD2CMessagesNotInAllowedRange extends TimeWindowCustomAlertRule { + /** Polymorphic discriminator, which specifies the different types this object can be */ + ruleType: "MqttD2CMessagesNotInAllowedRange"; +} + +/** Number of device to cloud messages (HTTP protocol) is not in allowed range. */ +export interface HttpD2CMessagesNotInAllowedRange extends TimeWindowCustomAlertRule { + /** Polymorphic discriminator, which specifies the different types this object can be */ + ruleType: "HttpD2CMessagesNotInAllowedRange"; +} + +/** Number of direct method invokes is not in allowed range. */ +export interface DirectMethodInvokesNotInAllowedRange extends TimeWindowCustomAlertRule { + /** Polymorphic discriminator, which specifies the different types this object can be */ + ruleType: "DirectMethodInvokesNotInAllowedRange"; +} + +/** Number of failed local logins is not in allowed range. */ +export interface FailedLocalLoginsNotInAllowedRange extends TimeWindowCustomAlertRule { + /** Polymorphic discriminator, which specifies the different types this object can be */ + ruleType: "FailedLocalLoginsNotInAllowedRange"; +} + +/** Number of file uploads is not in allowed range. */ +export interface FileUploadsNotInAllowedRange extends TimeWindowCustomAlertRule { + /** Polymorphic discriminator, which specifies the different types this object can be */ + ruleType: "FileUploadsNotInAllowedRange"; +} + +/** Number of device queue purges is not in allowed range. */ +export interface QueuePurgesNotInAllowedRange extends TimeWindowCustomAlertRule { + /** Polymorphic discriminator, which specifies the different types this object can be */ + ruleType: "QueuePurgesNotInAllowedRange"; +} + +/** Number of twin updates is not in allowed range. */ +export interface TwinUpdatesNotInAllowedRange extends TimeWindowCustomAlertRule { + /** Polymorphic discriminator, which specifies the different types this object can be */ + ruleType: "TwinUpdatesNotInAllowedRange"; +} + +/** Number of unauthorized operations is not in allowed range. */ +export interface UnauthorizedOperationsNotInAllowedRange extends TimeWindowCustomAlertRule { + /** Polymorphic discriminator, which specifies the different types this object can be */ + ruleType: "UnauthorizedOperationsNotInAllowedRange"; +} + +/** Outbound connection to an ip that isn't allowed. Allow list consists of ipv4 or ipv6 range in CIDR notation. */ +export interface ConnectionToIpNotAllowed extends AllowlistCustomAlertRule { + /** Polymorphic discriminator, which specifies the different types this object can be */ + ruleType: "ConnectionToIpNotAllowed"; +} + +/** Inbound connection from an ip that isn't allowed. Allow list consists of ipv4 or ipv6 range in CIDR notation. */ +export interface ConnectionFromIpNotAllowed extends AllowlistCustomAlertRule { + /** Polymorphic discriminator, which specifies the different types this object can be */ + ruleType: "ConnectionFromIpNotAllowed"; +} + +/** Login by a local user that isn't allowed. Allow list consists of login names to allow. */ +export interface LocalUserNotAllowed extends AllowlistCustomAlertRule { + /** Polymorphic discriminator, which specifies the different types this object can be */ + ruleType: "LocalUserNotAllowed"; +} + +/** Execution of a process that isn't allowed. Allow list consists of process names to allow. */ +export interface ProcessNotAllowed extends AllowlistCustomAlertRule { + /** Polymorphic discriminator, which specifies the different types this object can be */ + ruleType: "ProcessNotAllowed"; +} + +/** Defines headers for GovernanceRules_delete operation. */ +export interface GovernanceRulesDeleteHeaders { + /** Location URL for the deletion status */ + location?: string; +} + +/** Defines headers for GovernanceRules_execute operation. */ +export interface GovernanceRulesExecuteHeaders { + /** Location URL for the execution status */ + location?: string; +} + +/** Defines headers for GovernanceRules_operationResults operation. */ +export interface GovernanceRulesOperationResultsHeaders { + /** Location URL for the execution status */ + location?: string; +} + +/** Defines headers for APICollections_onboardAzureApiManagementApi operation. */ +export interface APICollectionsOnboardAzureApiManagementApiHeaders { + location?: string; +} + +/** Known values of {@link TaskUpdateActionType} that the service accepts. */ +export enum KnownTaskUpdateActionType { + /** Activate */ + Activate = "Activate", + /** Dismiss */ + Dismiss = "Dismiss", + /** Start */ + Start = "Start", + /** Resolve */ + Resolve = "Resolve", + /** Close */ + Close = "Close", } /** - * Defines values for RuleCategory. \ - * {@link KnownRuleCategory} can be used interchangeably with RuleCategory, + * Defines values for TaskUpdateActionType. \ + * {@link KnownTaskUpdateActionType} can be used interchangeably with TaskUpdateActionType, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Code** \ - * **Artifacts** \ - * **Dependencies** \ - * **Secrets** \ - * **IaC** \ - * **Containers** + * **Activate** \ + * **Dismiss** \ + * **Start** \ + * **Resolve** \ + * **Close** */ -export type RuleCategory = string; +export type TaskUpdateActionType = string; -/** Known values of {@link AnnotateDefaultBranchState} that the service accepts. */ -export enum KnownAnnotateDefaultBranchState { - /** Disabled */ - Disabled = "Disabled", - /** Enabled */ - Enabled = "Enabled", +/** Known values of {@link AutoProvision} that the service accepts. */ +export enum KnownAutoProvision { + /** Install missing security agent on VMs automatically */ + On = "On", + /** Do not install security agent on the VMs automatically */ + Off = "Off", } /** - * Defines values for AnnotateDefaultBranchState. \ - * {@link KnownAnnotateDefaultBranchState} can be used interchangeably with AnnotateDefaultBranchState, + * Defines values for AutoProvision. \ + * {@link KnownAutoProvision} can be used interchangeably with AutoProvision, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Disabled** \ - * **Enabled** + * **On**: Install missing security agent on VMs automatically \ + * **Off**: Do not install security agent on the VMs automatically */ -export type AnnotateDefaultBranchState = string; +export type AutoProvision = string; -/** Known values of {@link InheritFromParentState} that the service accepts. */ -export enum KnownInheritFromParentState { - /** Disabled */ - Disabled = "Disabled", - /** Enabled */ - Enabled = "Enabled", +/** Known values of {@link InformationProtectionPolicyName} that the service accepts. */ +export enum KnownInformationProtectionPolicyName { + /** Effective */ + Effective = "effective", + /** Custom */ + Custom = "custom", } /** - * Defines values for InheritFromParentState. \ - * {@link KnownInheritFromParentState} can be used interchangeably with InheritFromParentState, + * Defines values for InformationProtectionPolicyName. \ + * {@link KnownInformationProtectionPolicyName} can be used interchangeably with InformationProtectionPolicyName, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Disabled** \ - * **Enabled** + * **effective** \ + * **custom** */ -export type InheritFromParentState = string; +export type InformationProtectionPolicyName = string; -/** Known values of {@link AutoDiscovery} that the service accepts. */ -export enum KnownAutoDiscovery { - /** Disabled */ - Disabled = "Disabled", - /** Enabled */ - Enabled = "Enabled", - /** NotApplicable */ - NotApplicable = "NotApplicable", +/** 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 */ + Passed = "Passed", + /** At least one supported regulatory compliance control in the given standard has a state of failed */ + Failed = "Failed", + /** All supported regulatory compliance controls in the given standard have a state of skipped */ + Skipped = "Skipped", + /** No supported regulatory compliance data for the given standard */ + Unsupported = "Unsupported", } /** - * Defines values for AutoDiscovery. \ - * {@link KnownAutoDiscovery} can be used interchangeably with AutoDiscovery, + * Defines values for State. \ + * {@link KnownState} can be used interchangeably with State, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Disabled** \ - * **Enabled** \ - * **NotApplicable** + * **Passed**: All supported regulatory compliance controls in the given standard have a passed state \ + * **Failed**: At least one supported regulatory compliance control in the given standard has a state of failed \ + * **Skipped**: All supported regulatory compliance controls in the given standard have a state of skipped \ + * **Unsupported**: No supported regulatory compliance data for the given standard */ -export type AutoDiscovery = string; +export type State = 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", +/** Known values of {@link SubAssessmentStatusCode} that the service accepts. */ +export enum KnownSubAssessmentStatusCode { + /** The resource is healthy */ + Healthy = "Healthy", + /** The resource has a security issue that needs to be addressed */ + Unhealthy = "Unhealthy", + /** Assessment for this resource did not happen */ + NotApplicable = "NotApplicable", } /** - * Defines values for CloudName. \ - * {@link KnownCloudName} can be used interchangeably with CloudName, + * Defines values for SubAssessmentStatusCode. \ + * {@link KnownSubAssessmentStatusCode} can be used interchangeably with SubAssessmentStatusCode, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Azure** \ - * **AWS** \ - * **GCP** \ - * **Github** \ - * **AzureDevOps** \ - * **GitLab** + * **Healthy**: The resource is healthy \ + * **Unhealthy**: The resource has a security issue that needs to be addressed \ + * **NotApplicable**: Assessment for this resource did not happen */ -export type CloudName = string; +export type SubAssessmentStatusCode = 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", +/** Known values of {@link Severity} that the service accepts. */ +export enum KnownSeverity { + /** Low */ + Low = "Low", + /** Medium */ + Medium = "Medium", + /** High */ + High = "High", } /** - * Defines values for OfferingType. \ - * {@link KnownOfferingType} can be used interchangeably with OfferingType, + * Defines values for Severity. \ + * {@link KnownSeverity} can be used interchangeably with Severity, * 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** + * **Low** \ + * **Medium** \ + * **High** */ -export type OfferingType = string; +export type Severity = 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 Source} that the service accepts. */ +export enum KnownSource { + /** Resource is in Azure */ + Azure = "Azure", + /** Resource in an on premise machine connected to Azure cloud */ + OnPremise = "OnPremise", + /** SQL Resource in an on premise machine connected to Azure cloud */ + OnPremiseSql = "OnPremiseSql", } /** - * Defines values for EnvironmentType. \ - * {@link KnownEnvironmentType} can be used interchangeably with EnvironmentType, + * Defines values for Source. \ + * {@link KnownSource} can be used interchangeably with Source, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **AwsAccount** \ - * **GcpProject** \ - * **GithubScope** \ - * **AzureDevOpsScope** \ - * **GitlabScope** + * **Azure**: Resource is in Azure \ + * **OnPremise**: Resource in an on premise machine connected to Azure cloud \ + * **OnPremiseSql**: SQL Resource in an on premise machine connected to Azure cloud */ -export type EnvironmentType = string; +export type Source = string; -/** Known values of {@link ResourceStatus} that the service accepts. */ -export enum KnownResourceStatus { - /** This assessment on the resource is healthy */ - Healthy = "Healthy", - /** This assessment is not applicable to this resource */ - NotApplicable = "NotApplicable", - /** This assessment is turned off by policy on this subscription */ - OffByPolicy = "OffByPolicy", - /** This assessment on the resource is not healthy */ - NotHealthy = "NotHealthy", +/** Known values of {@link AssessedResourceType} that the service accepts. */ +export enum KnownAssessedResourceType { + /** SqlServerVulnerability */ + SqlServerVulnerability = "SqlServerVulnerability", + /** ContainerRegistryVulnerability */ + ContainerRegistryVulnerability = "ContainerRegistryVulnerability", + /** ServerVulnerability */ + ServerVulnerability = "ServerVulnerability", } /** - * Defines values for ResourceStatus. \ - * {@link KnownResourceStatus} can be used interchangeably with ResourceStatus, + * Defines values for AssessedResourceType. \ + * {@link KnownAssessedResourceType} can be used interchangeably with AssessedResourceType, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Healthy**: This assessment on the resource is healthy \ - * **NotApplicable**: This assessment is not applicable to this resource \ - * **OffByPolicy**: This assessment is turned off by policy on this subscription \ - * **NotHealthy**: This assessment on the resource is not healthy + * **SqlServerVulnerability** \ + * **ContainerRegistryVulnerability** \ + * **ServerVulnerability** */ -export type ResourceStatus = string; +export type AssessedResourceType = string; -/** Known values of {@link ValueType} that the service accepts. */ -export enum KnownValueType { - /** An IP range in CIDR format (e.g. '192.168.0.1\/8'). */ - IpCidr = "IpCidr", - /** Any string value. */ - String = "String", +/** Known values of {@link HybridComputeProvisioningState} that the service accepts. */ +export enum KnownHybridComputeProvisioningState { + /** Valid service principal details. */ + Valid = "Valid", + /** Invalid service principal details. */ + Invalid = "Invalid", + /** the service principal details are expired */ + Expired = "Expired", } /** - * Defines values for ValueType. \ - * {@link KnownValueType} can be used interchangeably with ValueType, + * Defines values for HybridComputeProvisioningState. \ + * {@link KnownHybridComputeProvisioningState} can be used interchangeably with HybridComputeProvisioningState, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **IpCidr**: An IP range in CIDR format (e.g. '192.168.0.1\/8'). \ - * **String**: Any string value. + * **Valid**: Valid service principal details. \ + * **Invalid**: Invalid service principal details. \ + * **Expired**: the service principal details are expired */ -export type ValueType = string; +export type HybridComputeProvisioningState = string; -/** Known values of {@link ReportedSeverity} that the service accepts. */ -export enum KnownReportedSeverity { - /** Informational */ - Informational = "Informational", - /** Low */ - Low = "Low", - /** Medium */ - Medium = "Medium", - /** High */ - High = "High", +/** Known values of {@link AuthenticationProvisioningState} that the service accepts. */ +export enum KnownAuthenticationProvisioningState { + /** Valid connector */ + Valid = "Valid", + /** Invalid connector */ + Invalid = "Invalid", + /** the connection has expired */ + Expired = "Expired", + /** Incorrect policy of the connector */ + IncorrectPolicy = "IncorrectPolicy", } /** - * Defines values for ReportedSeverity. \ - * {@link KnownReportedSeverity} can be used interchangeably with ReportedSeverity, + * Defines values for AuthenticationProvisioningState. \ + * {@link KnownAuthenticationProvisioningState} can be used interchangeably with AuthenticationProvisioningState, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Informational** \ - * **Low** \ - * **Medium** \ - * **High** + * **Valid**: Valid connector \ + * **Invalid**: Invalid connector \ + * **Expired**: the connection has expired \ + * **IncorrectPolicy**: Incorrect policy of the connector */ -export type ReportedSeverity = string; +export type AuthenticationProvisioningState = string; -/** Known values of {@link SecuritySolutionStatus} that the service accepts. */ -export enum KnownSecuritySolutionStatus { - /** Enabled */ - Enabled = "Enabled", - /** Disabled */ - Disabled = "Disabled", +/** Known values of {@link PermissionProperty} that the service accepts. */ +export enum KnownPermissionProperty { + /** This permission provides read only access to AWS Security Hub resources. */ + AWSAWSSecurityHubReadOnlyAccess = "AWS::AWSSecurityHubReadOnlyAccess", + /** This permission grants access to read security configuration metadata. */ + AWSSecurityAudit = "AWS::SecurityAudit", + /** The permission provides for EC2 Automation service to execute activities defined within Automation documents. */ + AWSAmazonSSMAutomationRole = "AWS::AmazonSSMAutomationRole", + /** This permission provides read only access to GCP Security Command Center. */ + GCPSecurityCenterAdminViewer = "GCP::Security Center Admin Viewer", } /** - * Defines values for SecuritySolutionStatus. \ - * {@link KnownSecuritySolutionStatus} can be used interchangeably with SecuritySolutionStatus, + * Defines values for PermissionProperty. \ + * {@link KnownPermissionProperty} can be used interchangeably with PermissionProperty, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Enabled** \ - * **Disabled** + * **AWS::AWSSecurityHubReadOnlyAccess**: This permission provides read only access to AWS Security Hub resources. \ + * **AWS::SecurityAudit**: This permission grants access to read security configuration metadata. \ + * **AWS::AmazonSSMAutomationRole**: The permission provides for EC2 Automation service to execute activities defined within Automation documents. \ + * **GCP::Security Center Admin Viewer**: This permission provides read only access to GCP Security Command Center. */ -export type SecuritySolutionStatus = string; +export type PermissionProperty = string; -/** Known values of {@link ExportData} that the service accepts. */ -export enum KnownExportData { - /** Agent raw events */ - RawEvents = "RawEvents", +/** Known values of {@link AuthenticationType} that the service accepts. */ +export enum KnownAuthenticationType { + /** AWS cloud account connector user credentials authentication */ + AwsCreds = "awsCreds", + /** AWS account connector assume role authentication */ + AwsAssumeRole = "awsAssumeRole", + /** GCP account connector service to service authentication */ + GcpCredentials = "gcpCredentials", } /** - * Defines values for ExportData. \ - * {@link KnownExportData} can be used interchangeably with ExportData, + * Defines values for AuthenticationType. \ + * {@link KnownAuthenticationType} can be used interchangeably with AuthenticationType, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **RawEvents**: Agent raw events + * **awsCreds**: AWS cloud account connector user credentials authentication \ + * **awsAssumeRole**: AWS account connector assume role authentication \ + * **gcpCredentials**: GCP account connector service to service authentication */ -export type ExportData = string; +export type AuthenticationType = string; -/** Known values of {@link DataSource} that the service accepts. */ -export enum KnownDataSource { - /** Devices twin data */ - TwinData = "TwinData", +/** 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 DataSource. \ - * {@link KnownDataSource} can be used interchangeably with DataSource, + * 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 - * **TwinData**: Devices twin data + * **None** \ + * **noLongerSupported** \ + * **versionNoLongerSupported** \ + * **upcomingNoLongerSupported** \ + * **upcomingVersionNoLongerSupported** */ -export type DataSource = string; +export type EndOfSupportStatus = string; -/** Known values of {@link RecommendationType} that the service accepts. */ -export enum KnownRecommendationType { - /** Authentication schema used for pull an edge module from an ACR repository does not use Service Principal Authentication. */ - IoTAcrauthentication = "IoT_ACRAuthentication", - /** IoT agent message size capacity is currently underutilized, causing an increase in the number of sent messages. Adjust message intervals for better utilization. */ - IoTAgentSendsUnutilizedMessages = "IoT_AgentSendsUnutilizedMessages", - /** Identified security related system configuration issues. */ - IoTBaseline = "IoT_Baseline", - /** You can optimize Edge Hub memory usage by turning off protocol heads for any protocols not used by Edge modules in your solution. */ - IoTEdgeHubMemOptimize = "IoT_EdgeHubMemOptimize", - /** Logging is disabled for this edge module. */ - IoTEdgeLoggingOptions = "IoT_EdgeLoggingOptions", - /** A minority within a device security group has inconsistent Edge Module settings with the rest of their group. */ - IoTInconsistentModuleSettings = "IoT_InconsistentModuleSettings", - /** Install the Azure Security of Things Agent. */ - IoTInstallAgent = "IoT_InstallAgent", - /** IP Filter Configuration should have rules defined for allowed traffic and should deny all other traffic by default. */ - IoTIpfilterDenyAll = "IoT_IPFilter_DenyAll", - /** An Allow IP Filter rules source IP range is too large. Overly permissive rules might expose your IoT hub to malicious intenders. */ - IoTIpfilterPermissiveRule = "IoT_IPFilter_PermissiveRule", - /** A listening endpoint was found on the device. */ - IoTOpenPorts = "IoT_OpenPorts", - /** An Allowed firewall policy was found (INPUT\/OUTPUT). The policy should Deny all traffic by default and define rules to allow necessary communication to\/from the device. */ - IoTPermissiveFirewallPolicy = "IoT_PermissiveFirewallPolicy", - /** A rule in the firewall has been found that contains a permissive pattern for a wide range of IP addresses or Ports. */ - IoTPermissiveInputFirewallRules = "IoT_PermissiveInputFirewallRules", - /** A rule in the firewall has been found that contains a permissive pattern for a wide range of IP addresses or Ports. */ - IoTPermissiveOutputFirewallRules = "IoT_PermissiveOutputFirewallRules", - /** Edge module is configured to run in privileged mode, with extensive Linux capabilities or with host-level network access (send\/receive data to host machine). */ - IoTPrivilegedDockerOptions = "IoT_PrivilegedDockerOptions", - /** Same authentication credentials to the IoT Hub used by multiple devices. This could indicate an illegitimate device impersonating a legitimate device. It also exposes the risk of device impersonation by an attacker. */ - IoTSharedCredentials = "IoT_SharedCredentials", - /** Insecure TLS configurations detected. Immediate upgrade recommended. */ - IoTVulnerableTLSCipherSuite = "IoT_VulnerableTLSCipherSuite", +/** Known values of {@link CreatedByType} that the service accepts. */ +export enum KnownCreatedByType { + /** User */ + User = "User", + /** Application */ + Application = "Application", + /** ManagedIdentity */ + ManagedIdentity = "ManagedIdentity", + /** Key */ + Key = "Key", } /** - * Defines values for RecommendationType. \ - * {@link KnownRecommendationType} can be used interchangeably with RecommendationType, + * Defines values for CreatedByType. \ + * {@link KnownCreatedByType} can be used interchangeably with CreatedByType, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **IoT_ACRAuthentication**: Authentication schema used for pull an edge module from an ACR repository does not use Service Principal Authentication. \ - * **IoT_AgentSendsUnutilizedMessages**: IoT agent message size capacity is currently underutilized, causing an increase in the number of sent messages. Adjust message intervals for better utilization. \ - * **IoT_Baseline**: Identified security related system configuration issues. \ - * **IoT_EdgeHubMemOptimize**: You can optimize Edge Hub memory usage by turning off protocol heads for any protocols not used by Edge modules in your solution. \ - * **IoT_EdgeLoggingOptions**: Logging is disabled for this edge module. \ - * **IoT_InconsistentModuleSettings**: A minority within a device security group has inconsistent Edge Module settings with the rest of their group. \ - * **IoT_InstallAgent**: Install the Azure Security of Things Agent. \ - * **IoT_IPFilter_DenyAll**: IP Filter Configuration should have rules defined for allowed traffic and should deny all other traffic by default. \ - * **IoT_IPFilter_PermissiveRule**: An Allow IP Filter rules source IP range is too large. Overly permissive rules might expose your IoT hub to malicious intenders. \ - * **IoT_OpenPorts**: A listening endpoint was found on the device. \ - * **IoT_PermissiveFirewallPolicy**: An Allowed firewall policy was found (INPUT\/OUTPUT). The policy should Deny all traffic by default and define rules to allow necessary communication to\/from the device. \ - * **IoT_PermissiveInputFirewallRules**: A rule in the firewall has been found that contains a permissive pattern for a wide range of IP addresses or Ports. \ - * **IoT_PermissiveOutputFirewallRules**: A rule in the firewall has been found that contains a permissive pattern for a wide range of IP addresses or Ports. \ - * **IoT_PrivilegedDockerOptions**: Edge module is configured to run in privileged mode, with extensive Linux capabilities or with host-level network access (send\/receive data to host machine). \ - * **IoT_SharedCredentials**: Same authentication credentials to the IoT Hub used by multiple devices. This could indicate an illegitimate device impersonating a legitimate device. It also exposes the risk of device impersonation by an attacker. \ - * **IoT_VulnerableTLSCipherSuite**: Insecure TLS configurations detected. Immediate upgrade recommended. + * **User** \ + * **Application** \ + * **ManagedIdentity** \ + * **Key** */ -export type RecommendationType = string; +export type CreatedByType = string; -/** Known values of {@link RecommendationConfigStatus} that the service accepts. */ -export enum KnownRecommendationConfigStatus { - /** Disabled */ - Disabled = "Disabled", - /** Enabled */ - Enabled = "Enabled", +/** Known values of {@link SupportedCloudEnum} that the service accepts. */ +export enum KnownSupportedCloudEnum { + /** AWS */ + AWS = "AWS", + /** GCP */ + GCP = "GCP", } /** - * Defines values for RecommendationConfigStatus. \ - * {@link KnownRecommendationConfigStatus} can be used interchangeably with RecommendationConfigStatus, + * Defines values for SupportedCloudEnum. \ + * {@link KnownSupportedCloudEnum} can be used interchangeably with SupportedCloudEnum, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Disabled** \ - * **Enabled** + * **AWS** \ + * **GCP** */ -export type RecommendationConfigStatus = string; +export type SupportedCloudEnum = string; -/** Known values of {@link UnmaskedIpLoggingStatus} that the service accepts. */ -export enum KnownUnmaskedIpLoggingStatus { - /** Unmasked IP logging is disabled */ - Disabled = "Disabled", - /** Unmasked IP logging is enabled */ - Enabled = "Enabled", +/** Known values of {@link SeverityEnum} that the service accepts. */ +export enum KnownSeverityEnum { + /** High */ + High = "High", + /** Medium */ + Medium = "Medium", + /** Low */ + Low = "Low", } /** - * Defines values for UnmaskedIpLoggingStatus. \ - * {@link KnownUnmaskedIpLoggingStatus} can be used interchangeably with UnmaskedIpLoggingStatus, + * Defines values for SeverityEnum. \ + * {@link KnownSeverityEnum} can be used interchangeably with SeverityEnum, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Disabled**: Unmasked IP logging is disabled \ - * **Enabled**: Unmasked IP logging is enabled + * **High** \ + * **Medium** \ + * **Low** */ -export type UnmaskedIpLoggingStatus = string; +export type SeverityEnum = string; -/** Known values of {@link AdditionalWorkspaceType} that the service accepts. */ -export enum KnownAdditionalWorkspaceType { - /** Sentinel */ - Sentinel = "Sentinel", +/** Known values of {@link GovernanceRuleType} that the service accepts. */ +export enum KnownGovernanceRuleType { + /** The source of the rule type definition is integrated */ + Integrated = "Integrated", + /** The source of the rule type definition is ServiceNow */ + ServiceNow = "ServiceNow", } /** - * Defines values for AdditionalWorkspaceType. \ - * {@link KnownAdditionalWorkspaceType} can be used interchangeably with AdditionalWorkspaceType, + * Defines values for GovernanceRuleType. \ + * {@link KnownGovernanceRuleType} can be used interchangeably with GovernanceRuleType, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Sentinel** + * **Integrated**: The source of the rule type definition is integrated \ + * **ServiceNow**: The source of the rule type definition is ServiceNow */ -export type AdditionalWorkspaceType = string; +export type GovernanceRuleType = string; -/** Known values of {@link AdditionalWorkspaceDataType} that the service accepts. */ -export enum KnownAdditionalWorkspaceDataType { - /** Alerts */ - Alerts = "Alerts", - /** RawEvents */ - RawEvents = "RawEvents", +/** Known values of {@link GovernanceRuleSourceResourceType} that the service accepts. */ +export enum KnownGovernanceRuleSourceResourceType { + /** The source of the governance rule is assessments */ + Assessments = "Assessments", } /** - * Defines values for AdditionalWorkspaceDataType. \ - * {@link KnownAdditionalWorkspaceDataType} can be used interchangeably with AdditionalWorkspaceDataType, + * Defines values for GovernanceRuleSourceResourceType. \ + * {@link KnownGovernanceRuleSourceResourceType} can be used interchangeably with GovernanceRuleSourceResourceType, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Alerts** \ - * **RawEvents** + * **Assessments**: The source of the governance rule is assessments */ -export type AdditionalWorkspaceDataType = string; +export type GovernanceRuleSourceResourceType = string; -/** Known values of {@link Direction} that the service accepts. */ -export enum KnownDirection { - /** Inbound */ - Inbound = "Inbound", - /** Outbound */ - Outbound = "Outbound", +/** Known values of {@link GovernanceRuleOwnerSourceType} that the service accepts. */ +export enum KnownGovernanceRuleOwnerSourceType { + /** The rule source type defined using resource tag */ + ByTag = "ByTag", + /** The rule source type defined manually */ + Manually = "Manually", } /** - * Defines values for Direction. \ - * {@link KnownDirection} can be used interchangeably with Direction, + * Defines values for GovernanceRuleOwnerSourceType. \ + * {@link KnownGovernanceRuleOwnerSourceType} can be used interchangeably with GovernanceRuleOwnerSourceType, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Inbound** \ - * **Outbound** + * **ByTag**: The rule source type defined using resource tag \ + * **Manually**: The rule source type defined manually */ -export type Direction = string; +export type GovernanceRuleOwnerSourceType = string; -/** Known values of {@link TransportProtocol} that the service accepts. */ -export enum KnownTransportProtocol { - /** TCP */ - TCP = "TCP", - /** UDP */ - UDP = "UDP", +/** Known values of {@link OperationResult} that the service accepts. */ +export enum KnownOperationResult { + /** The operation succeeded */ + Succeeded = "Succeeded", + /** The operation failed */ + Failed = "Failed", + /** The operation canceled */ + Canceled = "Canceled", } /** - * Defines values for TransportProtocol. \ - * {@link KnownTransportProtocol} can be used interchangeably with TransportProtocol, + * Defines values for OperationResult. \ + * {@link KnownOperationResult} can be used interchangeably with OperationResult, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **TCP** \ - * **UDP** + * **Succeeded**: The operation succeeded \ + * **Failed**: The operation failed \ + * **Canceled**: The operation canceled */ -export type TransportProtocol = string; +export type OperationResult = string; -/** Known values of {@link ConnectionType} that the service accepts. */ -export enum KnownConnectionType { - /** Internal */ - Internal = "Internal", - /** External */ - External = "External", +/** Known values of {@link ApplicationSourceResourceType} that the service accepts. */ +export enum KnownApplicationSourceResourceType { + /** The source of the application is assessments */ + Assessments = "Assessments", } /** - * Defines values for ConnectionType. \ - * {@link KnownConnectionType} can be used interchangeably with ConnectionType, + * Defines values for ApplicationSourceResourceType. \ + * {@link KnownApplicationSourceResourceType} can be used interchangeably with ApplicationSourceResourceType, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Internal** \ - * **External** + * **Assessments**: The source of the application is assessments */ -export type ConnectionType = string; +export type ApplicationSourceResourceType = string; -/** Known values of {@link EnforcementMode} that the service accepts. */ -export enum KnownEnforcementMode { - /** Audit */ - Audit = "Audit", - /** Enforce */ - Enforce = "Enforce", - /** None */ - None = "None", +/** Known values of {@link ScanTriggerType} that the service accepts. */ +export enum KnownScanTriggerType { + /** OnDemand */ + OnDemand = "OnDemand", + /** Recurring */ + Recurring = "Recurring", } /** - * Defines values for EnforcementMode. \ - * {@link KnownEnforcementMode} can be used interchangeably with EnforcementMode, + * Defines values for ScanTriggerType. \ + * {@link KnownScanTriggerType} can be used interchangeably with ScanTriggerType, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Audit** \ - * **Enforce** \ - * **None** + * **OnDemand**: OnDemand \ + * **Recurring**: Recurring */ -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", +export type ScanTriggerType = string; + +/** Known values of {@link ScanState} that the service accepts. */ +export enum KnownScanState { /** Failed */ Failed = "Failed", - /** NoStatus */ - NoStatus = "NoStatus", + /** FailedToRun */ + FailedToRun = "FailedToRun", + /** InProgress */ + InProgress = "InProgress", + /** Passed */ + Passed = "Passed", } /** - * Defines values for ConfigurationStatus. \ - * {@link KnownConfigurationStatus} can be used interchangeably with ConfigurationStatus, + * Defines values for ScanState. \ + * {@link KnownScanState} can be used interchangeably with ScanState, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Configured** \ - * **NotConfigured** \ - * **InProgress** \ - * **Failed** \ - * **NoStatus** + * **Failed**: Failed \ + * **FailedToRun**: FailedToRun \ + * **InProgress**: InProgress \ + * **Passed**: Passed */ -export type ConfigurationStatus = string; +export type ScanState = 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", +/** Known values of {@link RuleStatus} that the service accepts. */ +export enum KnownRuleStatus { + /** NonFinding */ + NonFinding = "NonFinding", + /** Finding */ + Finding = "Finding", + /** InternalError */ + InternalError = "InternalError", } /** - * Defines values for RecommendationStatus. \ - * {@link KnownRecommendationStatus} can be used interchangeably with RecommendationStatus, + * Defines values for RuleStatus. \ + * {@link KnownRuleStatus} can be used interchangeably with RuleStatus, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Recommended** \ - * **NotRecommended** \ - * **NotAvailable** \ - * **NoStatus** + * **NonFinding**: NonFinding \ + * **Finding**: Finding \ + * **InternalError**: InternalError */ -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", -} +export type RuleStatus = string; -/** - * Defines values for AdaptiveApplicationControlIssue. \ - * {@link KnownAdaptiveApplicationControlIssue} can be used interchangeably with AdaptiveApplicationControlIssue, +/** Known values of {@link RuleSeverity} that the service accepts. */ +export enum KnownRuleSeverity { + /** High */ + High = "High", + /** Medium */ + Medium = "Medium", + /** Low */ + Low = "Low", + /** Informational */ + Informational = "Informational", + /** Obsolete */ + Obsolete = "Obsolete", +} + +/** + * Defines values for RuleSeverity. \ + * {@link KnownRuleSeverity} can be used interchangeably with RuleSeverity, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **ViolationsAudited** \ - * **ViolationsBlocked** \ - * **MsiAndScriptViolationsAudited** \ - * **MsiAndScriptViolationsBlocked** \ - * **ExecutableViolationsAudited** \ - * **RulesViolatedManually** + * **High**: High \ + * **Medium**: Medium \ + * **Low**: Low \ + * **Informational**: Informational \ + * **Obsolete**: Obsolete */ -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", +export type RuleSeverity = string; + +/** Known values of {@link RuleType} that the service accepts. */ +export enum KnownRuleType { + /** Binary */ + Binary = "Binary", + /** BaselineExpected */ + BaselineExpected = "BaselineExpected", + /** PositiveList */ + PositiveList = "PositiveList", + /** NegativeList */ + NegativeList = "NegativeList", } /** - * Defines values for SourceSystem. \ - * {@link KnownSourceSystem} can be used interchangeably with SourceSystem, + * Defines values for RuleType. \ + * {@link KnownRuleType} can be used interchangeably with RuleType, * 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** + * **Binary**: Binary \ + * **BaselineExpected**: BaselineExpected \ + * **PositiveList**: PositiveList \ + * **NegativeList**: NegativeList */ -export type SourceSystem = string; +export type RuleType = string; -/** Known values of {@link RecommendationAction} that the service accepts. */ -export enum KnownRecommendationAction { - /** Recommended */ - Recommended = "Recommended", - /** Add */ - Add = "Add", - /** Remove */ - Remove = "Remove", +/** Known values of {@link MipIntegrationStatus} that the service accepts. */ +export enum KnownMipIntegrationStatus { + /** Ok */ + Ok = "Ok", + /** NoConsent */ + NoConsent = "noConsent", + /** NoAutoLabelingRules */ + NoAutoLabelingRules = "noAutoLabelingRules", + /** NoMipLabels */ + NoMipLabels = "noMipLabels", } /** - * Defines values for RecommendationAction. \ - * {@link KnownRecommendationAction} can be used interchangeably with RecommendationAction, + * Defines values for MipIntegrationStatus. \ + * {@link KnownMipIntegrationStatus} can be used interchangeably with MipIntegrationStatus, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Recommended** \ - * **Add** \ - * **Remove** + * **Ok** \ + * **noConsent** \ + * **noAutoLabelingRules** \ + * **noMipLabels** */ -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", +export type MipIntegrationStatus = string; + +/** Known values of {@link StatusName} that the service accepts. */ +export enum KnownStatusName { + /** Healthy */ + Healthy = "Healthy", + /** NotHealthy */ + NotHealthy = "NotHealthy", + /** NotApplicable */ + NotApplicable = "NotApplicable", } /** - * Defines values for EnforcementSupport. \ - * {@link KnownEnforcementSupport} can be used interchangeably with EnforcementSupport, + * Defines values for StatusName. \ + * {@link KnownStatusName} can be used interchangeably with StatusName, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Supported** \ - * **NotSupported** \ - * **Unknown** + * **Healthy** \ + * **NotHealthy** \ + * **NotApplicable** */ -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", +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 FileType. \ - * {@link KnownFileType} can be used interchangeably with FileType, + * 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 - * **Exe** \ - * **Dll** \ - * **Msi** \ - * **Script** \ - * **Executable** \ - * **Unknown** + * **Assessments** \ + * **AssessmentsSnapshot** \ + * **SubAssessments** \ + * **SubAssessmentsSnapshot** \ + * **Alerts** \ + * **SecureScores** \ + * **SecureScoresSnapshot** \ + * **SecureScoreControls** \ + * **SecureScoreControlsSnapshot** \ + * **RegulatoryComplianceAssessment** \ + * **RegulatoryComplianceAssessmentSnapshot** \ + * **AttackPaths** \ + * **AttackPathsSnapshot** */ -export type FileType = string; +export type EventSource = string; -/** Known values of {@link SecurityFamily} that the service accepts. */ -export enum KnownSecurityFamily { - /** Waf */ - Waf = "Waf", - /** Ngfw */ - Ngfw = "Ngfw", - /** SaasWaf */ - SaasWaf = "SaasWaf", - /** Va */ - Va = "Va", +/** 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 SecurityFamily. \ - * {@link KnownSecurityFamily} can be used interchangeably with SecurityFamily, + * 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 - * **Waf** \ - * **Ngfw** \ - * **SaasWaf** \ - * **Va** + * **String** \ + * **Integer** \ + * **Number** \ + * **Boolean** */ -export type SecurityFamily = string; +export type PropertyType = string; -/** Known values of {@link ExternalSecuritySolutionKind} that the service accepts. */ -export enum KnownExternalSecuritySolutionKind { - /** CEF */ - CEF = "CEF", - /** ATA */ - ATA = "ATA", - /** AAD */ - AAD = "AAD", +/** 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 ExternalSecuritySolutionKind. \ - * {@link KnownExternalSecuritySolutionKind} can be used interchangeably with ExternalSecuritySolutionKind, + * 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 - * **CEF** \ - * **ATA** \ - * **AAD** + * **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 ExternalSecuritySolutionKind = string; +export type Operator = string; -/** Known values of {@link Protocol} that the service accepts. */ -export enum KnownProtocol { - /** TCP */ - TCP = "TCP", - /** UDP */ - UDP = "UDP", - /** All */ - All = "*", +/** Known values of {@link ActionType} that the service accepts. */ +export enum KnownActionType { + /** Internal */ + Internal = "Internal", + /** LogicApp */ + LogicApp = "LogicApp", + /** EventHub */ + EventHub = "EventHub", + /** Workspace */ + Workspace = "Workspace", } /** - * Defines values for Protocol. \ - * {@link KnownProtocol} can be used interchangeably with Protocol, + * 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 - * **TCP** \ - * **UDP** \ - * ***** + * **Internal** \ + * **LogicApp** \ + * **EventHub** \ + * **Workspace** */ -export type Protocol = string; +export type ActionType = string; -/** Known values of {@link Status} that the service accepts. */ -export enum KnownStatus { - /** Revoked */ - Revoked = "Revoked", - /** Initiated */ - Initiated = "Initiated", +/** Known values of {@link SourceType} that the service accepts. */ +export enum KnownSourceType { + /** Alert */ + Alert = "Alert", + /** AttackPath */ + AttackPath = "AttackPath", } /** - * Defines values for Status. \ - * {@link KnownStatus} can be used interchangeably with Status, + * 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 - * **Revoked** \ - * **Initiated** + * **Alert** \ + * **AttackPath** */ -export type Status = string; +export type SourceType = string; -/** Known values of {@link StatusReason} that the service accepts. */ -export enum KnownStatusReason { - /** Expired */ - Expired = "Expired", - /** UserRequested */ - UserRequested = "UserRequested", - /** NewerRequestInitiated */ - NewerRequestInitiated = "NewerRequestInitiated", +/** 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 StatusReason. \ - * {@link KnownStatusReason} can be used interchangeably with StatusReason, + * 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 - * **Expired** \ - * **UserRequested** \ - * **NewerRequestInitiated** + * **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 StatusReason = string; +export type SecurityContactRole = string; -/** Known values of {@link ExpandControlsEnum} that the service accepts. */ -export enum KnownExpandControlsEnum { - /** Add definition object for each control */ - Definition = "definition", +/** 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 ExpandControlsEnum. \ - * {@link KnownExpandControlsEnum} can be used interchangeably with ExpandControlsEnum, + * 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 - * **definition**: Add definition object for each control + * **default**: The single applicable name of the security contact object */ -export type ExpandControlsEnum = string; +export type SecurityContactName = string; -/** Known values of {@link ControlType} that the service accepts. */ -export enum KnownControlType { - /** Microsoft Defender for Cloud managed assessments */ - BuiltIn = "BuiltIn", - /** Non Microsoft Defender for Cloud managed assessments */ - Custom = "Custom", +/** 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", + /** DockerHub */ + DockerHub = "DockerHub", + /** JFrog */ + JFrog = "JFrog", } /** - * Defines values for ControlType. \ - * {@link KnownControlType} can be used interchangeably with ControlType, + * 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 - * **BuiltIn**: Microsoft Defender for Cloud managed assessments \ - * **Custom**: Non Microsoft Defender for Cloud managed assessments + * **Azure** \ + * **AWS** \ + * **GCP** \ + * **Github** \ + * **AzureDevOps** \ + * **GitLab** \ + * **DockerHub** \ + * **JFrog** */ -export type ControlType = string; +export type CloudName = string; -/** Known values of {@link ProvisioningState} that the service accepts. */ -export enum KnownProvisioningState { - /** Succeeded */ - Succeeded = "Succeeded", - /** Failed */ - Failed = "Failed", - /** Updating */ - Updating = "Updating", +/** 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", + /** CspmMonitorDockerHub */ + CspmMonitorDockerHub = "CspmMonitorDockerHub", + /** DefenderForContainersDockerHub */ + DefenderForContainersDockerHub = "DefenderForContainersDockerHub", + /** DefenderCspmDockerHub */ + DefenderCspmDockerHub = "DefenderCspmDockerHub", + /** CspmMonitorJFrog */ + CspmMonitorJFrog = "CspmMonitorJFrog", + /** DefenderForContainersJFrog */ + DefenderForContainersJFrog = "DefenderForContainersJFrog", + /** DefenderCspmJFrog */ + DefenderCspmJFrog = "DefenderCspmJFrog", } /** - * Defines values for ProvisioningState. \ - * {@link KnownProvisioningState} can be used interchangeably with ProvisioningState, + * 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 - * **Succeeded** \ - * **Failed** \ - * **Updating** + * **CspmMonitorAws** \ + * **DefenderForContainersAws** \ + * **DefenderForServersAws** \ + * **DefenderForDatabasesAws** \ + * **CspmMonitorGcp** \ + * **CspmMonitorGithub** \ + * **CspmMonitorAzureDevOps** \ + * **DefenderForServersGcp** \ + * **DefenderForContainersGcp** \ + * **DefenderForDatabasesGcp** \ + * **DefenderCspmAws** \ + * **DefenderCspmGcp** \ + * **CspmMonitorGitLab** \ + * **CspmMonitorDockerHub** \ + * **DefenderForContainersDockerHub** \ + * **DefenderCspmDockerHub** \ + * **CspmMonitorJFrog** \ + * **DefenderForContainersJFrog** \ + * **DefenderCspmJFrog** */ -export type ProvisioningState = string; +export type OfferingType = string; -/** Known values of {@link ServerVulnerabilityAssessmentPropertiesProvisioningState} that the service accepts. */ -export enum KnownServerVulnerabilityAssessmentPropertiesProvisioningState { - /** Succeeded */ - Succeeded = "Succeeded", - /** Failed */ - Failed = "Failed", - /** Canceled */ - Canceled = "Canceled", - /** Provisioning */ - Provisioning = "Provisioning", - /** Deprovisioning */ - Deprovisioning = "Deprovisioning", +/** 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", + /** DockerHubOrganization */ + DockerHubOrganization = "DockerHubOrganization", + /** JFrogArtifactory */ + JFrogArtifactory = "JFrogArtifactory", } /** - * Defines values for ServerVulnerabilityAssessmentPropertiesProvisioningState. \ - * {@link KnownServerVulnerabilityAssessmentPropertiesProvisioningState} can be used interchangeably with ServerVulnerabilityAssessmentPropertiesProvisioningState, + * 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 - * **Succeeded** \ - * **Failed** \ - * **Canceled** \ - * **Provisioning** \ - * **Deprovisioning** + * **AwsAccount** \ + * **GcpProject** \ + * **GithubScope** \ + * **AzureDevOpsScope** \ + * **GitlabScope** \ + * **DockerHubOrganization** \ + * **JFrogArtifactory** */ -export type ServerVulnerabilityAssessmentPropertiesProvisioningState = string; +export type EnvironmentType = string; -/** Known values of {@link Tactics} that the service accepts. */ -export enum KnownTactics { - /** Reconnaissance */ - Reconnaissance = "Reconnaissance", - /** ResourceDevelopment */ - ResourceDevelopment = "Resource Development", - /** InitialAccess */ - InitialAccess = "Initial Access", - /** Execution */ - Execution = "Execution", - /** Persistence */ - Persistence = "Persistence", - /** PrivilegeEscalation */ - PrivilegeEscalation = "Privilege Escalation", - /** DefenseEvasion */ - DefenseEvasion = "Defense Evasion", - /** CredentialAccess */ - CredentialAccess = "Credential Access", - /** Discovery */ - Discovery = "Discovery", - /** LateralMovement */ - LateralMovement = "Lateral Movement", - /** Collection */ - Collection = "Collection", - /** CommandAndControl */ - CommandAndControl = "Command and Control", - /** Exfiltration */ - Exfiltration = "Exfiltration", - /** Impact */ - Impact = "Impact", +/** Known values of {@link Origin} that the service accepts. */ +export enum KnownOrigin { + /** User */ + User = "user", + /** System */ + System = "system", + /** UserSystem */ + UserSystem = "user,system", } /** - * Defines values for Tactics. \ - * {@link KnownTactics} can be used interchangeably with Tactics, + * Defines values for Origin. \ + * {@link KnownOrigin} can be used interchangeably with Origin, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Reconnaissance** \ - * **Resource Development** \ - * **Initial Access** \ - * **Execution** \ - * **Persistence** \ - * **Privilege Escalation** \ - * **Defense Evasion** \ - * **Credential Access** \ - * **Discovery** \ - * **Lateral Movement** \ - * **Collection** \ - * **Command and Control** \ - * **Exfiltration** \ - * **Impact** + * **user** \ + * **system** \ + * **user,system** */ -export type Tactics = string; +export type Origin = string; -/** Known values of {@link Techniques} that the service accepts. */ -export enum KnownTechniques { - /** AbuseElevationControlMechanism */ - AbuseElevationControlMechanism = "Abuse Elevation Control Mechanism", - /** AccessTokenManipulation */ - AccessTokenManipulation = "Access Token Manipulation", - /** AccountDiscovery */ - AccountDiscovery = "Account Discovery", - /** AccountManipulation */ - AccountManipulation = "Account Manipulation", - /** ActiveScanning */ - ActiveScanning = "Active Scanning", - /** ApplicationLayerProtocol */ - ApplicationLayerProtocol = "Application Layer Protocol", - /** AudioCapture */ - AudioCapture = "Audio Capture", - /** BootOrLogonAutostartExecution */ - BootOrLogonAutostartExecution = "Boot or Logon Autostart Execution", - /** BootOrLogonInitializationScripts */ - BootOrLogonInitializationScripts = "Boot or Logon Initialization Scripts", - /** BruteForce */ - BruteForce = "Brute Force", - /** CloudInfrastructureDiscovery */ - CloudInfrastructureDiscovery = "Cloud Infrastructure Discovery", - /** CloudServiceDashboard */ - CloudServiceDashboard = "Cloud Service Dashboard", - /** CloudServiceDiscovery */ - CloudServiceDiscovery = "Cloud Service Discovery", - /** CommandAndScriptingInterpreter */ - CommandAndScriptingInterpreter = "Command and Scripting Interpreter", +/** Known values of {@link ResourceStatus} that the service accepts. */ +export enum KnownResourceStatus { + /** This assessment on the resource is healthy */ + Healthy = "Healthy", + /** This assessment is not applicable to this resource */ + NotApplicable = "NotApplicable", + /** This assessment is turned off by policy on this subscription */ + OffByPolicy = "OffByPolicy", + /** This assessment on the resource is not healthy */ + NotHealthy = "NotHealthy", +} + +/** + * Defines values for ResourceStatus. \ + * {@link KnownResourceStatus} can be used interchangeably with ResourceStatus, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Healthy**: This assessment on the resource is healthy \ + * **NotApplicable**: This assessment is not applicable to this resource \ + * **OffByPolicy**: This assessment is turned off by policy on this subscription \ + * **NotHealthy**: This assessment on the resource is not healthy + */ +export type ResourceStatus = string; + +/** Known values of {@link ValueType} that the service accepts. */ +export enum KnownValueType { + /** An IP range in CIDR format (e.g. '192.168.0.1\/8'). */ + IpCidr = "IpCidr", + /** Any string value. */ + String = "String", +} + +/** + * Defines values for ValueType. \ + * {@link KnownValueType} can be used interchangeably with ValueType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **IpCidr**: An IP range in CIDR format (e.g. '192.168.0.1\/8'). \ + * **String**: Any string value. + */ +export type ValueType = string; + +/** Known values of {@link ReportedSeverity} that the service accepts. */ +export enum KnownReportedSeverity { + /** Informational */ + Informational = "Informational", + /** Low */ + Low = "Low", + /** Medium */ + Medium = "Medium", + /** High */ + High = "High", +} + +/** + * Defines values for ReportedSeverity. \ + * {@link KnownReportedSeverity} can be used interchangeably with ReportedSeverity, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Informational** \ + * **Low** \ + * **Medium** \ + * **High** + */ +export type ReportedSeverity = string; + +/** Known values of {@link SecuritySolutionStatus} that the service accepts. */ +export enum KnownSecuritySolutionStatus { + /** Enabled */ + Enabled = "Enabled", + /** Disabled */ + Disabled = "Disabled", +} + +/** + * Defines values for SecuritySolutionStatus. \ + * {@link KnownSecuritySolutionStatus} can be used interchangeably with SecuritySolutionStatus, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Enabled** \ + * **Disabled** + */ +export type SecuritySolutionStatus = string; + +/** Known values of {@link ExportData} that the service accepts. */ +export enum KnownExportData { + /** Agent raw events */ + RawEvents = "RawEvents", +} + +/** + * Defines values for ExportData. \ + * {@link KnownExportData} can be used interchangeably with ExportData, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **RawEvents**: Agent raw events + */ +export type ExportData = string; + +/** Known values of {@link DataSource} that the service accepts. */ +export enum KnownDataSource { + /** Devices twin data */ + TwinData = "TwinData", +} + +/** + * Defines values for DataSource. \ + * {@link KnownDataSource} can be used interchangeably with DataSource, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **TwinData**: Devices twin data + */ +export type DataSource = string; + +/** Known values of {@link RecommendationType} that the service accepts. */ +export enum KnownRecommendationType { + /** Authentication schema used for pull an edge module from an ACR repository does not use Service Principal Authentication. */ + IoTAcrauthentication = "IoT_ACRAuthentication", + /** IoT agent message size capacity is currently underutilized, causing an increase in the number of sent messages. Adjust message intervals for better utilization. */ + IoTAgentSendsUnutilizedMessages = "IoT_AgentSendsUnutilizedMessages", + /** Identified security related system configuration issues. */ + IoTBaseline = "IoT_Baseline", + /** You can optimize Edge Hub memory usage by turning off protocol heads for any protocols not used by Edge modules in your solution. */ + IoTEdgeHubMemOptimize = "IoT_EdgeHubMemOptimize", + /** Logging is disabled for this edge module. */ + IoTEdgeLoggingOptions = "IoT_EdgeLoggingOptions", + /** A minority within a device security group has inconsistent Edge Module settings with the rest of their group. */ + IoTInconsistentModuleSettings = "IoT_InconsistentModuleSettings", + /** Install the Azure Security of Things Agent. */ + IoTInstallAgent = "IoT_InstallAgent", + /** IP Filter Configuration should have rules defined for allowed traffic and should deny all other traffic by default. */ + IoTIpfilterDenyAll = "IoT_IPFilter_DenyAll", + /** An Allow IP Filter rules source IP range is too large. Overly permissive rules might expose your IoT hub to malicious intenders. */ + IoTIpfilterPermissiveRule = "IoT_IPFilter_PermissiveRule", + /** A listening endpoint was found on the device. */ + IoTOpenPorts = "IoT_OpenPorts", + /** An Allowed firewall policy was found (INPUT\/OUTPUT). The policy should Deny all traffic by default and define rules to allow necessary communication to\/from the device. */ + IoTPermissiveFirewallPolicy = "IoT_PermissiveFirewallPolicy", + /** A rule in the firewall has been found that contains a permissive pattern for a wide range of IP addresses or Ports. */ + IoTPermissiveInputFirewallRules = "IoT_PermissiveInputFirewallRules", + /** A rule in the firewall has been found that contains a permissive pattern for a wide range of IP addresses or Ports. */ + IoTPermissiveOutputFirewallRules = "IoT_PermissiveOutputFirewallRules", + /** Edge module is configured to run in privileged mode, with extensive Linux capabilities or with host-level network access (send\/receive data to host machine). */ + IoTPrivilegedDockerOptions = "IoT_PrivilegedDockerOptions", + /** Same authentication credentials to the IoT Hub used by multiple devices. This could indicate an illegitimate device impersonating a legitimate device. It also exposes the risk of device impersonation by an attacker. */ + IoTSharedCredentials = "IoT_SharedCredentials", + /** Insecure TLS configurations detected. Immediate upgrade recommended. */ + IoTVulnerableTLSCipherSuite = "IoT_VulnerableTLSCipherSuite", +} + +/** + * Defines values for RecommendationType. \ + * {@link KnownRecommendationType} can be used interchangeably with RecommendationType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **IoT_ACRAuthentication**: Authentication schema used for pull an edge module from an ACR repository does not use Service Principal Authentication. \ + * **IoT_AgentSendsUnutilizedMessages**: IoT agent message size capacity is currently underutilized, causing an increase in the number of sent messages. Adjust message intervals for better utilization. \ + * **IoT_Baseline**: Identified security related system configuration issues. \ + * **IoT_EdgeHubMemOptimize**: You can optimize Edge Hub memory usage by turning off protocol heads for any protocols not used by Edge modules in your solution. \ + * **IoT_EdgeLoggingOptions**: Logging is disabled for this edge module. \ + * **IoT_InconsistentModuleSettings**: A minority within a device security group has inconsistent Edge Module settings with the rest of their group. \ + * **IoT_InstallAgent**: Install the Azure Security of Things Agent. \ + * **IoT_IPFilter_DenyAll**: IP Filter Configuration should have rules defined for allowed traffic and should deny all other traffic by default. \ + * **IoT_IPFilter_PermissiveRule**: An Allow IP Filter rules source IP range is too large. Overly permissive rules might expose your IoT hub to malicious intenders. \ + * **IoT_OpenPorts**: A listening endpoint was found on the device. \ + * **IoT_PermissiveFirewallPolicy**: An Allowed firewall policy was found (INPUT\/OUTPUT). The policy should Deny all traffic by default and define rules to allow necessary communication to\/from the device. \ + * **IoT_PermissiveInputFirewallRules**: A rule in the firewall has been found that contains a permissive pattern for a wide range of IP addresses or Ports. \ + * **IoT_PermissiveOutputFirewallRules**: A rule in the firewall has been found that contains a permissive pattern for a wide range of IP addresses or Ports. \ + * **IoT_PrivilegedDockerOptions**: Edge module is configured to run in privileged mode, with extensive Linux capabilities or with host-level network access (send\/receive data to host machine). \ + * **IoT_SharedCredentials**: Same authentication credentials to the IoT Hub used by multiple devices. This could indicate an illegitimate device impersonating a legitimate device. It also exposes the risk of device impersonation by an attacker. \ + * **IoT_VulnerableTLSCipherSuite**: Insecure TLS configurations detected. Immediate upgrade recommended. + */ +export type RecommendationType = string; + +/** Known values of {@link RecommendationConfigStatus} that the service accepts. */ +export enum KnownRecommendationConfigStatus { + /** Disabled */ + Disabled = "Disabled", + /** Enabled */ + Enabled = "Enabled", +} + +/** + * Defines values for RecommendationConfigStatus. \ + * {@link KnownRecommendationConfigStatus} can be used interchangeably with RecommendationConfigStatus, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Disabled** \ + * **Enabled** + */ +export type RecommendationConfigStatus = string; + +/** Known values of {@link UnmaskedIpLoggingStatus} that the service accepts. */ +export enum KnownUnmaskedIpLoggingStatus { + /** Unmasked IP logging is disabled */ + Disabled = "Disabled", + /** Unmasked IP logging is enabled */ + Enabled = "Enabled", +} + +/** + * Defines values for UnmaskedIpLoggingStatus. \ + * {@link KnownUnmaskedIpLoggingStatus} can be used interchangeably with UnmaskedIpLoggingStatus, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Disabled**: Unmasked IP logging is disabled \ + * **Enabled**: Unmasked IP logging is enabled + */ +export type UnmaskedIpLoggingStatus = string; + +/** Known values of {@link AdditionalWorkspaceType} that the service accepts. */ +export enum KnownAdditionalWorkspaceType { + /** Sentinel */ + Sentinel = "Sentinel", +} + +/** + * Defines values for AdditionalWorkspaceType. \ + * {@link KnownAdditionalWorkspaceType} can be used interchangeably with AdditionalWorkspaceType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Sentinel** + */ +export type AdditionalWorkspaceType = string; + +/** Known values of {@link AdditionalWorkspaceDataType} that the service accepts. */ +export enum KnownAdditionalWorkspaceDataType { + /** Alerts */ + Alerts = "Alerts", + /** RawEvents */ + RawEvents = "RawEvents", +} + +/** + * Defines values for AdditionalWorkspaceDataType. \ + * {@link KnownAdditionalWorkspaceDataType} can be used interchangeably with AdditionalWorkspaceDataType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Alerts** \ + * **RawEvents** + */ +export type AdditionalWorkspaceDataType = string; + +/** Known values of {@link ConnectionType} that the service accepts. */ +export enum KnownConnectionType { + /** Internal */ + Internal = "Internal", + /** External */ + External = "External", +} + +/** + * Defines values for ConnectionType. \ + * {@link KnownConnectionType} can be used interchangeably with ConnectionType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Internal** \ + * **External** + */ +export type ConnectionType = string; + +/** Known values of {@link SecurityFamily} that the service accepts. */ +export enum KnownSecurityFamily { + /** Waf */ + Waf = "Waf", + /** Ngfw */ + Ngfw = "Ngfw", + /** SaasWaf */ + SaasWaf = "SaasWaf", + /** Va */ + Va = "Va", +} + +/** + * Defines values for SecurityFamily. \ + * {@link KnownSecurityFamily} can be used interchangeably with SecurityFamily, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Waf** \ + * **Ngfw** \ + * **SaasWaf** \ + * **Va** + */ +export type SecurityFamily = string; + +/** Known values of {@link ExternalSecuritySolutionKind} that the service accepts. */ +export enum KnownExternalSecuritySolutionKind { + /** CEF */ + CEF = "CEF", + /** ATA */ + ATA = "ATA", + /** AAD */ + AAD = "AAD", +} + +/** + * Defines values for ExternalSecuritySolutionKind. \ + * {@link KnownExternalSecuritySolutionKind} can be used interchangeably with ExternalSecuritySolutionKind, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **CEF** \ + * **ATA** \ + * **AAD** + */ +export type ExternalSecuritySolutionKind = string; + +/** Known values of {@link Protocol} that the service accepts. */ +export enum KnownProtocol { + /** TCP */ + TCP = "TCP", + /** UDP */ + UDP = "UDP", + /** All */ + All = "*", +} + +/** + * Defines values for Protocol. \ + * {@link KnownProtocol} can be used interchangeably with Protocol, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **TCP** \ + * **UDP** \ + * ***** + */ +export type Protocol = string; + +/** Known values of {@link Status} that the service accepts. */ +export enum KnownStatus { + /** Revoked */ + Revoked = "Revoked", + /** Initiated */ + Initiated = "Initiated", +} + +/** + * Defines values for Status. \ + * {@link KnownStatus} can be used interchangeably with Status, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Revoked** \ + * **Initiated** + */ +export type Status = string; + +/** Known values of {@link StatusReason} that the service accepts. */ +export enum KnownStatusReason { + /** Expired */ + Expired = "Expired", + /** UserRequested */ + UserRequested = "UserRequested", + /** NewerRequestInitiated */ + NewerRequestInitiated = "NewerRequestInitiated", +} + +/** + * Defines values for StatusReason. \ + * {@link KnownStatusReason} can be used interchangeably with StatusReason, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Expired** \ + * **UserRequested** \ + * **NewerRequestInitiated** + */ +export type StatusReason = string; + +/** Known values of {@link ExpandControlsEnum} that the service accepts. */ +export enum KnownExpandControlsEnum { + /** Add definition object for each control */ + Definition = "definition", +} + +/** + * Defines values for ExpandControlsEnum. \ + * {@link KnownExpandControlsEnum} can be used interchangeably with ExpandControlsEnum, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **definition**: Add definition object for each control + */ +export type ExpandControlsEnum = string; + +/** Known values of {@link ControlType} that the service accepts. */ +export enum KnownControlType { + /** Microsoft Defender for Cloud managed assessments */ + BuiltIn = "BuiltIn", + /** Non Microsoft Defender for Cloud managed assessments */ + Custom = "Custom", +} + +/** + * Defines values for ControlType. \ + * {@link KnownControlType} can be used interchangeably with ControlType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **BuiltIn**: Microsoft Defender for Cloud managed assessments \ + * **Custom**: Non Microsoft Defender for Cloud managed assessments + */ +export type ControlType = string; + +/** Known values of {@link ProvisioningState} that the service accepts. */ +export enum KnownProvisioningState { + /** Succeeded */ + Succeeded = "Succeeded", + /** Failed */ + Failed = "Failed", + /** Updating */ + Updating = "Updating", +} + +/** + * Defines values for ProvisioningState. \ + * {@link KnownProvisioningState} can be used interchangeably with ProvisioningState, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Succeeded** \ + * **Failed** \ + * **Updating** + */ +export type ProvisioningState = string; + +/** Known values of {@link ServerVulnerabilityAssessmentPropertiesProvisioningState} that the service accepts. */ +export enum KnownServerVulnerabilityAssessmentPropertiesProvisioningState { + /** Succeeded */ + Succeeded = "Succeeded", + /** Failed */ + Failed = "Failed", + /** Canceled */ + Canceled = "Canceled", + /** Provisioning */ + Provisioning = "Provisioning", + /** Deprovisioning */ + Deprovisioning = "Deprovisioning", +} + +/** + * Defines values for ServerVulnerabilityAssessmentPropertiesProvisioningState. \ + * {@link KnownServerVulnerabilityAssessmentPropertiesProvisioningState} can be used interchangeably with ServerVulnerabilityAssessmentPropertiesProvisioningState, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Succeeded** \ + * **Failed** \ + * **Canceled** \ + * **Provisioning** \ + * **Deprovisioning** + */ +export type ServerVulnerabilityAssessmentPropertiesProvisioningState = string; + +/** Known values of {@link Tactics} that the service accepts. */ +export enum KnownTactics { + /** Reconnaissance */ + Reconnaissance = "Reconnaissance", + /** ResourceDevelopment */ + ResourceDevelopment = "Resource Development", + /** InitialAccess */ + InitialAccess = "Initial Access", + /** Execution */ + Execution = "Execution", + /** Persistence */ + Persistence = "Persistence", + /** PrivilegeEscalation */ + PrivilegeEscalation = "Privilege Escalation", + /** DefenseEvasion */ + DefenseEvasion = "Defense Evasion", + /** CredentialAccess */ + CredentialAccess = "Credential Access", + /** Discovery */ + Discovery = "Discovery", + /** LateralMovement */ + LateralMovement = "Lateral Movement", + /** Collection */ + Collection = "Collection", + /** CommandAndControl */ + CommandAndControl = "Command and Control", + /** Exfiltration */ + Exfiltration = "Exfiltration", + /** Impact */ + Impact = "Impact", +} + +/** + * Defines values for Tactics. \ + * {@link KnownTactics} can be used interchangeably with Tactics, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Reconnaissance** \ + * **Resource Development** \ + * **Initial Access** \ + * **Execution** \ + * **Persistence** \ + * **Privilege Escalation** \ + * **Defense Evasion** \ + * **Credential Access** \ + * **Discovery** \ + * **Lateral Movement** \ + * **Collection** \ + * **Command and Control** \ + * **Exfiltration** \ + * **Impact** + */ +export type Tactics = string; + +/** Known values of {@link Techniques} that the service accepts. */ +export enum KnownTechniques { + /** AbuseElevationControlMechanism */ + AbuseElevationControlMechanism = "Abuse Elevation Control Mechanism", + /** AccessTokenManipulation */ + AccessTokenManipulation = "Access Token Manipulation", + /** AccountDiscovery */ + AccountDiscovery = "Account Discovery", + /** AccountManipulation */ + AccountManipulation = "Account Manipulation", + /** ActiveScanning */ + ActiveScanning = "Active Scanning", + /** ApplicationLayerProtocol */ + ApplicationLayerProtocol = "Application Layer Protocol", + /** AudioCapture */ + AudioCapture = "Audio Capture", + /** BootOrLogonAutostartExecution */ + BootOrLogonAutostartExecution = "Boot or Logon Autostart Execution", + /** BootOrLogonInitializationScripts */ + BootOrLogonInitializationScripts = "Boot or Logon Initialization Scripts", + /** BruteForce */ + BruteForce = "Brute Force", + /** CloudInfrastructureDiscovery */ + CloudInfrastructureDiscovery = "Cloud Infrastructure Discovery", + /** CloudServiceDashboard */ + CloudServiceDashboard = "Cloud Service Dashboard", + /** CloudServiceDiscovery */ + CloudServiceDiscovery = "Cloud Service Discovery", + /** CommandAndScriptingInterpreter */ + CommandAndScriptingInterpreter = "Command and Scripting Interpreter", /** CompromiseClientSoftwareBinary */ CompromiseClientSoftwareBinary = "Compromise Client Software Binary", /** CompromiseInfrastructure */ @@ -7870,459 +7710,772 @@ export enum KnownTechniques { } /** - * Defines values for Techniques. \ - * {@link KnownTechniques} can be used interchangeably with Techniques, + * Defines values for Techniques. \ + * {@link KnownTechniques} can be used interchangeably with Techniques, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Abuse Elevation Control Mechanism** \ + * **Access Token Manipulation** \ + * **Account Discovery** \ + * **Account Manipulation** \ + * **Active Scanning** \ + * **Application Layer Protocol** \ + * **Audio Capture** \ + * **Boot or Logon Autostart Execution** \ + * **Boot or Logon Initialization Scripts** \ + * **Brute Force** \ + * **Cloud Infrastructure Discovery** \ + * **Cloud Service Dashboard** \ + * **Cloud Service Discovery** \ + * **Command and Scripting Interpreter** \ + * **Compromise Client Software Binary** \ + * **Compromise Infrastructure** \ + * **Container and Resource Discovery** \ + * **Create Account** \ + * **Create or Modify System Process** \ + * **Credentials from Password Stores** \ + * **Data Destruction** \ + * **Data Encrypted for Impact** \ + * **Data from Cloud Storage Object** \ + * **Data from Configuration Repository** \ + * **Data from Information Repositories** \ + * **Data from Local System** \ + * **Data Manipulation** \ + * **Data Staged** \ + * **Defacement** \ + * **Deobfuscate\/Decode Files or Information** \ + * **Disk Wipe** \ + * **Domain Trust Discovery** \ + * **Drive-by Compromise** \ + * **Dynamic Resolution** \ + * **Endpoint Denial of Service** \ + * **Event Triggered Execution** \ + * **Exfiltration Over Alternative Protocol** \ + * **Exploit Public-Facing Application** \ + * **Exploitation for Client Execution** \ + * **Exploitation for Credential Access** \ + * **Exploitation for Defense Evasion** \ + * **Exploitation for Privilege Escalation** \ + * **Exploitation of Remote Services** \ + * **External Remote Services** \ + * **Fallback Channels** \ + * **File and Directory Discovery** \ + * **Gather Victim Network Information** \ + * **Hide Artifacts** \ + * **Hijack Execution Flow** \ + * **Impair Defenses** \ + * **Implant Container Image** \ + * **Indicator Removal on Host** \ + * **Indirect Command Execution** \ + * **Ingress Tool Transfer** \ + * **Input Capture** \ + * **Inter-Process Communication** \ + * **Lateral Tool Transfer** \ + * **Man-in-the-Middle** \ + * **Masquerading** \ + * **Modify Authentication Process** \ + * **Modify Registry** \ + * **Network Denial of Service** \ + * **Network Service Scanning** \ + * **Network Sniffing** \ + * **Non-Application Layer Protocol** \ + * **Non-Standard Port** \ + * **Obtain Capabilities** \ + * **Obfuscated Files or Information** \ + * **Office Application Startup** \ + * **OS Credential Dumping** \ + * **Permission Groups Discovery** \ + * **Phishing** \ + * **Pre-OS Boot** \ + * **Process Discovery** \ + * **Process Injection** \ + * **Protocol Tunneling** \ + * **Proxy** \ + * **Query Registry** \ + * **Remote Access Software** \ + * **Remote Service Session Hijacking** \ + * **Remote Services** \ + * **Remote System Discovery** \ + * **Resource Hijacking** \ + * **Scheduled Task\/Job** \ + * **Screen Capture** \ + * **Search Victim-Owned Websites** \ + * **Server Software Component** \ + * **Service Stop** \ + * **Signed Binary Proxy Execution** \ + * **Software Deployment Tools** \ + * **SQL Stored Procedures** \ + * **Steal or Forge Kerberos Tickets** \ + * **Subvert Trust Controls** \ + * **Supply Chain Compromise** \ + * **System Information Discovery** \ + * **Taint Shared Content** \ + * **Traffic Signaling** \ + * **Transfer Data to Cloud Account** \ + * **Trusted Relationship** \ + * **Unsecured Credentials** \ + * **User Execution** \ + * **Valid Accounts** \ + * **Windows Management Instrumentation** \ + * **File and Directory Permissions Modification** + */ +export type Techniques = string; + +/** Known values of {@link Categories} that the service accepts. */ +export enum KnownCategories { + /** Compute */ + Compute = "Compute", + /** Networking */ + Networking = "Networking", + /** Data */ + Data = "Data", + /** IdentityAndAccess */ + IdentityAndAccess = "IdentityAndAccess", + /** IoT */ + IoT = "IoT", +} + +/** + * Defines values for Categories. \ + * {@link KnownCategories} can be used interchangeably with Categories, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Compute** \ + * **Networking** \ + * **Data** \ + * **IdentityAndAccess** \ + * **IoT** + */ +export type Categories = string; + +/** Known values of {@link UserImpact} that the service accepts. */ +export enum KnownUserImpact { + /** Low */ + Low = "Low", + /** Moderate */ + Moderate = "Moderate", + /** High */ + High = "High", +} + +/** + * Defines values for UserImpact. \ + * {@link KnownUserImpact} can be used interchangeably with UserImpact, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Low** \ + * **Moderate** \ + * **High** + */ +export type UserImpact = string; + +/** Known values of {@link ImplementationEffort} that the service accepts. */ +export enum KnownImplementationEffort { + /** Low */ + Low = "Low", + /** Moderate */ + Moderate = "Moderate", + /** High */ + High = "High", +} + +/** + * Defines values for ImplementationEffort. \ + * {@link KnownImplementationEffort} can be used interchangeably with ImplementationEffort, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Low** \ + * **Moderate** \ + * **High** + */ +export type ImplementationEffort = string; + +/** Known values of {@link Threats} that the service accepts. */ +export enum KnownThreats { + /** AccountBreach */ + AccountBreach = "accountBreach", + /** DataExfiltration */ + DataExfiltration = "dataExfiltration", + /** DataSpillage */ + DataSpillage = "dataSpillage", + /** MaliciousInsider */ + MaliciousInsider = "maliciousInsider", + /** ElevationOfPrivilege */ + ElevationOfPrivilege = "elevationOfPrivilege", + /** ThreatResistance */ + ThreatResistance = "threatResistance", + /** MissingCoverage */ + MissingCoverage = "missingCoverage", + /** DenialOfService */ + DenialOfService = "denialOfService", +} + +/** + * Defines values for Threats. \ + * {@link KnownThreats} can be used interchangeably with Threats, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **accountBreach** \ + * **dataExfiltration** \ + * **dataSpillage** \ + * **maliciousInsider** \ + * **elevationOfPrivilege** \ + * **threatResistance** \ + * **missingCoverage** \ + * **denialOfService** + */ +export type Threats = string; + +/** Known values of {@link AssessmentType} that the service accepts. */ +export enum KnownAssessmentType { + /** Microsoft Defender for Cloud managed assessments */ + BuiltIn = "BuiltIn", + /** User defined policies that are automatically ingested from Azure Policy to Microsoft Defender for Cloud */ + CustomPolicy = "CustomPolicy", + /** User assessments pushed directly by the user or other third party to Microsoft Defender for Cloud */ + CustomerManaged = "CustomerManaged", + /** An assessment that was created by a verified 3rd party if the user connected it to ASC */ + VerifiedPartner = "VerifiedPartner", +} + +/** + * Defines values for AssessmentType. \ + * {@link KnownAssessmentType} can be used interchangeably with AssessmentType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **BuiltIn**: Microsoft Defender for Cloud managed assessments \ + * **CustomPolicy**: User defined policies that are automatically ingested from Azure Policy to Microsoft Defender for Cloud \ + * **CustomerManaged**: User assessments pushed directly by the user or other third party to Microsoft Defender for Cloud \ + * **VerifiedPartner**: An assessment that was created by a verified 3rd party if the user connected it to ASC + */ +export type AssessmentType = string; + +/** Known values of {@link AssessmentStatusCode} that the service accepts. */ +export enum KnownAssessmentStatusCode { + /** The resource is healthy */ + Healthy = "Healthy", + /** The resource has a security issue that needs to be addressed */ + Unhealthy = "Unhealthy", + /** Assessment for this resource did not happen */ + NotApplicable = "NotApplicable", +} + +/** + * Defines values for AssessmentStatusCode. \ + * {@link KnownAssessmentStatusCode} can be used interchangeably with AssessmentStatusCode, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Healthy**: The resource is healthy \ + * **Unhealthy**: The resource has a security issue that needs to be addressed \ + * **NotApplicable**: Assessment for this resource did not happen + */ +export type AssessmentStatusCode = string; + +/** Known values of {@link ExpandEnum} that the service accepts. */ +export enum KnownExpandEnum { + /** All links associated with an assessment */ + Links = "links", + /** Assessment metadata */ + Metadata = "metadata", +} + +/** + * Defines values for ExpandEnum. \ + * {@link KnownExpandEnum} can be used interchangeably with ExpandEnum, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **links**: All links associated with an assessment \ + * **metadata**: Assessment metadata + */ +export type ExpandEnum = string; + +/** Known values of {@link AlertSeverity} that the service accepts. */ +export enum KnownAlertSeverity { + /** Informational */ + Informational = "Informational", + /** Low */ + Low = "Low", + /** Medium */ + Medium = "Medium", + /** High */ + High = "High", +} + +/** + * Defines values for AlertSeverity. \ + * {@link KnownAlertSeverity} can be used interchangeably with AlertSeverity, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Abuse Elevation Control Mechanism** \ - * **Access Token Manipulation** \ - * **Account Discovery** \ - * **Account Manipulation** \ - * **Active Scanning** \ - * **Application Layer Protocol** \ - * **Audio Capture** \ - * **Boot or Logon Autostart Execution** \ - * **Boot or Logon Initialization Scripts** \ - * **Brute Force** \ - * **Cloud Infrastructure Discovery** \ - * **Cloud Service Dashboard** \ - * **Cloud Service Discovery** \ - * **Command and Scripting Interpreter** \ - * **Compromise Client Software Binary** \ - * **Compromise Infrastructure** \ - * **Container and Resource Discovery** \ - * **Create Account** \ - * **Create or Modify System Process** \ - * **Credentials from Password Stores** \ - * **Data Destruction** \ - * **Data Encrypted for Impact** \ - * **Data from Cloud Storage Object** \ - * **Data from Configuration Repository** \ - * **Data from Information Repositories** \ - * **Data from Local System** \ - * **Data Manipulation** \ - * **Data Staged** \ - * **Defacement** \ - * **Deobfuscate\/Decode Files or Information** \ - * **Disk Wipe** \ - * **Domain Trust Discovery** \ - * **Drive-by Compromise** \ - * **Dynamic Resolution** \ - * **Endpoint Denial of Service** \ - * **Event Triggered Execution** \ - * **Exfiltration Over Alternative Protocol** \ - * **Exploit Public-Facing Application** \ - * **Exploitation for Client Execution** \ - * **Exploitation for Credential Access** \ - * **Exploitation for Defense Evasion** \ - * **Exploitation for Privilege Escalation** \ - * **Exploitation of Remote Services** \ - * **External Remote Services** \ - * **Fallback Channels** \ - * **File and Directory Discovery** \ - * **Gather Victim Network Information** \ - * **Hide Artifacts** \ - * **Hijack Execution Flow** \ - * **Impair Defenses** \ - * **Implant Container Image** \ - * **Indicator Removal on Host** \ - * **Indirect Command Execution** \ - * **Ingress Tool Transfer** \ - * **Input Capture** \ - * **Inter-Process Communication** \ - * **Lateral Tool Transfer** \ - * **Man-in-the-Middle** \ - * **Masquerading** \ - * **Modify Authentication Process** \ - * **Modify Registry** \ - * **Network Denial of Service** \ - * **Network Service Scanning** \ - * **Network Sniffing** \ - * **Non-Application Layer Protocol** \ - * **Non-Standard Port** \ - * **Obtain Capabilities** \ - * **Obfuscated Files or Information** \ - * **Office Application Startup** \ - * **OS Credential Dumping** \ - * **Permission Groups Discovery** \ - * **Phishing** \ - * **Pre-OS Boot** \ - * **Process Discovery** \ - * **Process Injection** \ - * **Protocol Tunneling** \ - * **Proxy** \ - * **Query Registry** \ - * **Remote Access Software** \ - * **Remote Service Session Hijacking** \ - * **Remote Services** \ - * **Remote System Discovery** \ - * **Resource Hijacking** \ - * **Scheduled Task\/Job** \ - * **Screen Capture** \ - * **Search Victim-Owned Websites** \ - * **Server Software Component** \ - * **Service Stop** \ - * **Signed Binary Proxy Execution** \ - * **Software Deployment Tools** \ - * **SQL Stored Procedures** \ - * **Steal or Forge Kerberos Tickets** \ - * **Subvert Trust Controls** \ - * **Supply Chain Compromise** \ - * **System Information Discovery** \ - * **Taint Shared Content** \ - * **Traffic Signaling** \ - * **Transfer Data to Cloud Account** \ - * **Trusted Relationship** \ - * **Unsecured Credentials** \ - * **User Execution** \ - * **Valid Accounts** \ - * **Windows Management Instrumentation** \ - * **File and Directory Permissions Modification** + * **Informational**: Informational \ + * **Low**: Low \ + * **Medium**: Medium \ + * **High**: High + */ +export type AlertSeverity = string; + +/** Known values of {@link Intent} that the service accepts. */ +export enum KnownIntent { + /** Unknown */ + Unknown = "Unknown", + /** PreAttack could be either an attempt to access a certain resource regardless of a malicious intent, or a failed attempt to gain access to a target system to gather information prior to exploitation. This step is usually detected as an attempt, originating from outside the network, to scan the target system and find a way in. Further details on the PreAttack stage can be read in [MITRE Pre-Att&ck matrix](https:\//attack.mitre.org\/matrices\/pre\/). */ + PreAttack = "PreAttack", + /** InitialAccess is the stage where an attacker manages to get foothold on the attacked resource. */ + InitialAccess = "InitialAccess", + /** Persistence is any access, action, or configuration change to a system that gives a threat actor a persistent presence on that system. */ + Persistence = "Persistence", + /** Privilege escalation is the result of actions that allow an adversary to obtain a higher level of permissions on a system or network. */ + PrivilegeEscalation = "PrivilegeEscalation", + /** Defense evasion consists of techniques an adversary may use to evade detection or avoid other defenses. */ + DefenseEvasion = "DefenseEvasion", + /** Credential access represents techniques resulting in access to or control over system, domain, or service credentials that are used within an enterprise environment. */ + CredentialAccess = "CredentialAccess", + /** Discovery consists of techniques that allow the adversary to gain knowledge about the system and internal network. */ + Discovery = "Discovery", + /** Lateral movement consists of techniques that enable an adversary to access and control remote systems on a network and could, but does not necessarily, include execution of tools on remote systems. */ + LateralMovement = "LateralMovement", + /** The execution tactic represents techniques that result in execution of adversary-controlled code on a local or remote system. */ + Execution = "Execution", + /** Collection consists of techniques used to identify and gather information, such as sensitive files, from a target network prior to exfiltration. */ + Collection = "Collection", + /** Exfiltration refers to techniques and attributes that result or aid in the adversary removing files and information from a target network. */ + Exfiltration = "Exfiltration", + /** The command and control tactic represents how adversaries communicate with systems under their control within a target network. */ + CommandAndControl = "CommandAndControl", + /** Impact events primarily try to directly reduce the availability or integrity of a system, service, or network; including manipulation of data to impact a business or operational process. */ + Impact = "Impact", + /** Probing could be either an attempt to access a certain resource regardless of a malicious intent, or a failed attempt to gain access to a target system to gather information prior to exploitation. */ + Probing = "Probing", + /** Exploitation is the stage where an attacker manages to get a foothold on the attacked resource. This stage is relevant for compute hosts and resources such as user accounts, certificates etc. */ + Exploitation = "Exploitation", +} + +/** + * Defines values for Intent. \ + * {@link KnownIntent} can be used interchangeably with Intent, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Unknown**: Unknown \ + * **PreAttack**: PreAttack could be either an attempt to access a certain resource regardless of a malicious intent, or a failed attempt to gain access to a target system to gather information prior to exploitation. This step is usually detected as an attempt, originating from outside the network, to scan the target system and find a way in. Further details on the PreAttack stage can be read in [MITRE Pre-Att&ck matrix](https:\/\/attack.mitre.org\/matrices\/pre\/). \ + * **InitialAccess**: InitialAccess is the stage where an attacker manages to get foothold on the attacked resource. \ + * **Persistence**: Persistence is any access, action, or configuration change to a system that gives a threat actor a persistent presence on that system. \ + * **PrivilegeEscalation**: Privilege escalation is the result of actions that allow an adversary to obtain a higher level of permissions on a system or network. \ + * **DefenseEvasion**: Defense evasion consists of techniques an adversary may use to evade detection or avoid other defenses. \ + * **CredentialAccess**: Credential access represents techniques resulting in access to or control over system, domain, or service credentials that are used within an enterprise environment. \ + * **Discovery**: Discovery consists of techniques that allow the adversary to gain knowledge about the system and internal network. \ + * **LateralMovement**: Lateral movement consists of techniques that enable an adversary to access and control remote systems on a network and could, but does not necessarily, include execution of tools on remote systems. \ + * **Execution**: The execution tactic represents techniques that result in execution of adversary-controlled code on a local or remote system. \ + * **Collection**: Collection consists of techniques used to identify and gather information, such as sensitive files, from a target network prior to exfiltration. \ + * **Exfiltration**: Exfiltration refers to techniques and attributes that result or aid in the adversary removing files and information from a target network. \ + * **CommandAndControl**: The command and control tactic represents how adversaries communicate with systems under their control within a target network. \ + * **Impact**: Impact events primarily try to directly reduce the availability or integrity of a system, service, or network; including manipulation of data to impact a business or operational process. \ + * **Probing**: Probing could be either an attempt to access a certain resource regardless of a malicious intent, or a failed attempt to gain access to a target system to gather information prior to exploitation. \ + * **Exploitation**: Exploitation is the stage where an attacker manages to get a foothold on the attacked resource. This stage is relevant for compute hosts and resources such as user accounts, certificates etc. + */ +export type Intent = string; + +/** Known values of {@link ResourceIdentifierType} that the service accepts. */ +export enum KnownResourceIdentifierType { + /** AzureResource */ + AzureResource = "AzureResource", + /** LogAnalytics */ + LogAnalytics = "LogAnalytics", +} + +/** + * Defines values for ResourceIdentifierType. \ + * {@link KnownResourceIdentifierType} can be used interchangeably with ResourceIdentifierType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **AzureResource** \ + * **LogAnalytics** + */ +export type ResourceIdentifierType = string; + +/** Known values of {@link AlertStatus} that the service accepts. */ +export enum KnownAlertStatus { + /** An alert which doesn't specify a value is assigned the status 'Active' */ + Active = "Active", + /** An alert which is in handling state */ + InProgress = "InProgress", + /** Alert closed after handling */ + Resolved = "Resolved", + /** Alert dismissed as false positive */ + Dismissed = "Dismissed", +} + +/** + * Defines values for AlertStatus. \ + * {@link KnownAlertStatus} can be used interchangeably with AlertStatus, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Active**: An alert which doesn't specify a value is assigned the status 'Active' \ + * **InProgress**: An alert which is in handling state \ + * **Resolved**: Alert closed after handling \ + * **Dismissed**: Alert dismissed as false positive + */ +export type AlertStatus = string; + +/** Known values of {@link Kind} that the service accepts. */ +export enum KnownKind { + /** Simulate alerts according to bundles */ + Bundles = "Bundles", +} + +/** + * Defines values for Kind. \ + * {@link KnownKind} can be used interchangeably with Kind, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Bundles**: Simulate alerts according to bundles + */ +export type Kind = string; + +/** Known values of {@link SettingKind} that the service accepts. */ +export enum KnownSettingKind { + /** DataExportSettings */ + DataExportSettings = "DataExportSettings", + /** AlertSuppressionSetting */ + AlertSuppressionSetting = "AlertSuppressionSetting", + /** AlertSyncSettings */ + AlertSyncSettings = "AlertSyncSettings", +} + +/** + * Defines values for SettingKind. \ + * {@link KnownSettingKind} can be used interchangeably with SettingKind, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **DataExportSettings** \ + * **AlertSuppressionSetting** \ + * **AlertSyncSettings** */ -export type Techniques = string; +export type SettingKind = string; -/** Known values of {@link Categories} that the service accepts. */ -export enum KnownCategories { - /** Compute */ - Compute = "Compute", - /** Networking */ - Networking = "Networking", - /** Data */ - Data = "Data", - /** IdentityAndAccess */ - IdentityAndAccess = "IdentityAndAccess", - /** IoT */ - IoT = "IoT", +/** Known values of {@link SettingName} that the service accepts. */ +export enum KnownSettingName { + /** Mcas */ + Mcas = "MCAS", + /** Wdatp */ + Wdatp = "WDATP", + /** WdatpExcludeLinuxPublicPreview */ + WdatpExcludeLinuxPublicPreview = "WDATP_EXCLUDE_LINUX_PUBLIC_PREVIEW", + /** WdatpUnifiedSolution */ + WdatpUnifiedSolution = "WDATP_UNIFIED_SOLUTION", + /** Sentinel */ + Sentinel = "Sentinel", } /** - * Defines values for Categories. \ - * {@link KnownCategories} can be used interchangeably with Categories, + * Defines values for SettingName. \ + * {@link KnownSettingName} can be used interchangeably with SettingName, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Compute** \ - * **Networking** \ - * **Data** \ - * **IdentityAndAccess** \ - * **IoT** + * **MCAS** \ + * **WDATP** \ + * **WDATP_EXCLUDE_LINUX_PUBLIC_PREVIEW** \ + * **WDATP_UNIFIED_SOLUTION** \ + * **Sentinel** */ -export type Categories = string; +export type SettingName = string; -/** Known values of {@link UserImpact} that the service accepts. */ -export enum KnownUserImpact { - /** Low */ - Low = "Low", - /** Moderate */ - Moderate = "Moderate", - /** High */ - High = "High", +/** Known values of {@link ServerVulnerabilityAssessmentsSettingKind} that the service accepts. */ +export enum KnownServerVulnerabilityAssessmentsSettingKind { + /** AzureServersSetting */ + AzureServersSetting = "AzureServersSetting", } /** - * Defines values for UserImpact. \ - * {@link KnownUserImpact} can be used interchangeably with UserImpact, + * Defines values for ServerVulnerabilityAssessmentsSettingKind. \ + * {@link KnownServerVulnerabilityAssessmentsSettingKind} can be used interchangeably with ServerVulnerabilityAssessmentsSettingKind, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Low** \ - * **Moderate** \ - * **High** + * **AzureServersSetting** */ -export type UserImpact = string; +export type ServerVulnerabilityAssessmentsSettingKind = string; -/** Known values of {@link ImplementationEffort} that the service accepts. */ -export enum KnownImplementationEffort { - /** Low */ - Low = "Low", - /** Moderate */ - Moderate = "Moderate", - /** High */ - High = "High", +/** Known values of {@link ServerVulnerabilityAssessmentsSettingKindName} that the service accepts. */ +export enum KnownServerVulnerabilityAssessmentsSettingKindName { + /** AzureServersSetting */ + AzureServersSetting = "azureServersSetting", } /** - * Defines values for ImplementationEffort. \ - * {@link KnownImplementationEffort} can be used interchangeably with ImplementationEffort, + * Defines values for ServerVulnerabilityAssessmentsSettingKindName. \ + * {@link KnownServerVulnerabilityAssessmentsSettingKindName} can be used interchangeably with ServerVulnerabilityAssessmentsSettingKindName, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Low** \ - * **Moderate** \ - * **High** + * **azureServersSetting** */ -export type ImplementationEffort = string; +export type ServerVulnerabilityAssessmentsSettingKindName = string; -/** Known values of {@link Threats} that the service accepts. */ -export enum KnownThreats { - /** AccountBreach */ - AccountBreach = "accountBreach", - /** DataExfiltration */ - DataExfiltration = "dataExfiltration", - /** DataSpillage */ - DataSpillage = "dataSpillage", - /** MaliciousInsider */ - MaliciousInsider = "maliciousInsider", - /** ElevationOfPrivilege */ - ElevationOfPrivilege = "elevationOfPrivilege", - /** ThreatResistance */ - ThreatResistance = "threatResistance", - /** MissingCoverage */ - MissingCoverage = "missingCoverage", - /** DenialOfService */ - DenialOfService = "denialOfService", +/** Known values of {@link PricingTier} that the service accepts. */ +export enum KnownPricingTier { + /** Get free Microsoft Defender for Cloud experience with basic security features */ + Free = "Free", + /** Get the standard Microsoft Defender for Cloud experience with advanced security features */ + Standard = "Standard", } /** - * Defines values for Threats. \ - * {@link KnownThreats} can be used interchangeably with Threats, + * Defines values for PricingTier. \ + * {@link KnownPricingTier} can be used interchangeably with PricingTier, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **accountBreach** \ - * **dataExfiltration** \ - * **dataSpillage** \ - * **maliciousInsider** \ - * **elevationOfPrivilege** \ - * **threatResistance** \ - * **missingCoverage** \ - * **denialOfService** + * **Free**: Get free Microsoft Defender for Cloud experience with basic security features \ + * **Standard**: Get the standard Microsoft Defender for Cloud experience with advanced security features */ -export type Threats = string; +export type PricingTier = string; -/** Known values of {@link AssessmentType} that the service accepts. */ -export enum KnownAssessmentType { - /** Microsoft Defender for Cloud managed assessments */ - BuiltIn = "BuiltIn", - /** User defined policies that are automatically ingested from Azure Policy to Microsoft Defender for Cloud */ - CustomPolicy = "CustomPolicy", - /** User assessments pushed directly by the user or other third party to Microsoft Defender for Cloud */ - CustomerManaged = "CustomerManaged", - /** An assessment that was created by a verified 3rd party if the user connected it to ASC */ - VerifiedPartner = "VerifiedPartner", +/** Known values of {@link Enforce} that the service accepts. */ +export enum KnownEnforce { + /** Allows the descendants of this scope to override the pricing configuration set on this scope (allows setting inherited="False") */ + False = "False", + /** Prevents overrides and forces the current scope's pricing configuration to all descendants */ + True = "True", } /** - * Defines values for AssessmentType. \ - * {@link KnownAssessmentType} can be used interchangeably with AssessmentType, + * Defines values for Enforce. \ + * {@link KnownEnforce} can be used interchangeably with Enforce, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **BuiltIn**: Microsoft Defender for Cloud managed assessments \ - * **CustomPolicy**: User defined policies that are automatically ingested from Azure Policy to Microsoft Defender for Cloud \ - * **CustomerManaged**: User assessments pushed directly by the user or other third party to Microsoft Defender for Cloud \ - * **VerifiedPartner**: An assessment that was created by a verified 3rd party if the user connected it to ASC + * **False**: Allows the descendants of this scope to override the pricing configuration set on this scope (allows setting inherited="False") \ + * **True**: Prevents overrides and forces the current scope's pricing configuration to all descendants */ -export type AssessmentType = string; +export type Enforce = string; -/** Known values of {@link AssessmentStatusCode} that the service accepts. */ -export enum KnownAssessmentStatusCode { - /** The resource is healthy */ - Healthy = "Healthy", - /** The resource has a security issue that needs to be addressed */ - Unhealthy = "Unhealthy", - /** Assessment for this resource did not happen */ - NotApplicable = "NotApplicable", +/** Known values of {@link Inherited} that the service accepts. */ +export enum KnownInherited { + /** Indicates that the current scope is inheriting its pricing configuration from its parent */ + True = "True", + /** Indicates that the current scope sets its own pricing configuration and does not inherit it from its parent */ + False = "False", } /** - * Defines values for AssessmentStatusCode. \ - * {@link KnownAssessmentStatusCode} can be used interchangeably with AssessmentStatusCode, + * Defines values for Inherited. \ + * {@link KnownInherited} can be used interchangeably with Inherited, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Healthy**: The resource is healthy \ - * **Unhealthy**: The resource has a security issue that needs to be addressed \ - * **NotApplicable**: Assessment for this resource did not happen + * **True**: Indicates that the current scope is inheriting its pricing configuration from its parent \ + * **False**: Indicates that the current scope sets its own pricing configuration and does not inherit it from its parent */ -export type AssessmentStatusCode = string; +export type Inherited = string; -/** Known values of {@link ExpandEnum} that the service accepts. */ -export enum KnownExpandEnum { - /** All links associated with an assessment */ - Links = "links", - /** Assessment metadata */ - Metadata = "metadata", +/** Known values of {@link ResourcesCoverageStatus} that the service accepts. */ +export enum KnownResourcesCoverageStatus { + /** This value indicates that all resources associated with the subscription have the Defender plan enabled. */ + FullyCovered = "FullyCovered", + /** This value indicates that some resources under the subscription have the Defender plan enabled, while others have it disabled. There is a mixed coverage status among resources. */ + PartiallyCovered = "PartiallyCovered", + /** This value indicates that the Defender plan is disabled for all resources under the subscription. None of the resources are protected by the Defender plan. */ + NotCovered = "NotCovered", } /** - * Defines values for ExpandEnum. \ - * {@link KnownExpandEnum} can be used interchangeably with ExpandEnum, + * Defines values for ResourcesCoverageStatus. \ + * {@link KnownResourcesCoverageStatus} can be used interchangeably with ResourcesCoverageStatus, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **links**: All links associated with an assessment \ - * **metadata**: Assessment metadata + * **FullyCovered**: This value indicates that all resources associated with the subscription have the Defender plan enabled. \ + * **PartiallyCovered**: This value indicates that some resources under the subscription have the Defender plan enabled, while others have it disabled. There is a mixed coverage status among resources. \ + * **NotCovered**: This value indicates that the Defender plan is disabled for all resources under the subscription. None of the resources are protected by the Defender plan. */ -export type ExpandEnum = string; +export type ResourcesCoverageStatus = string; -/** Known values of {@link AlertSeverity} that the service accepts. */ -export enum KnownAlertSeverity { - /** Informational */ - Informational = "Informational", - /** Low */ - Low = "Low", - /** Medium */ - Medium = "Medium", - /** High */ - High = "High", +/** Known values of {@link IsEnabled} that the service accepts. */ +export enum KnownIsEnabled { + /** Indicates the extension is enabled */ + True = "True", + /** Indicates the extension is disabled */ + False = "False", +} + +/** + * Defines values for IsEnabled. \ + * {@link KnownIsEnabled} can be used interchangeably with IsEnabled, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **True**: Indicates the extension is enabled \ + * **False**: Indicates the extension is disabled + */ +export type IsEnabled = string; + +/** Known values of {@link Code} that the service accepts. */ +export enum KnownCode { + /** Extension was created\/updated successfully. */ + Succeeded = "Succeeded", + /** Extension was not created\/updated successfully. See operation status message for more details. */ + Failed = "Failed", +} + +/** + * Defines values for Code. \ + * {@link KnownCode} can be used interchangeably with Code, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Succeeded**: Extension was created\/updated successfully. \ + * **Failed**: Extension was not created\/updated successfully. See operation status message for more details. + */ +export type Code = string; + +/** Known values of {@link StandardType} that the service accepts. */ +export enum KnownStandardType { + /** Custom */ + Custom = "Custom", + /** Default */ + Default = "Default", + /** Compliance */ + Compliance = "Compliance", } /** - * Defines values for AlertSeverity. \ - * {@link KnownAlertSeverity} can be used interchangeably with AlertSeverity, + * Defines values for StandardType. \ + * {@link KnownStandardType} can be used interchangeably with StandardType, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Informational**: Informational \ - * **Low**: Low \ - * **Medium**: Medium \ - * **High**: High + * **Custom** \ + * **Default** \ + * **Compliance** */ -export type AlertSeverity = string; +export type StandardType = string; -/** Known values of {@link Intent} that the service accepts. */ -export enum KnownIntent { - /** Unknown */ - Unknown = "Unknown", - /** PreAttack could be either an attempt to access a certain resource regardless of a malicious intent, or a failed attempt to gain access to a target system to gather information prior to exploitation. This step is usually detected as an attempt, originating from outside the network, to scan the target system and find a way in. Further details on the PreAttack stage can be read in [MITRE Pre-Att&ck matrix](https:\//attack.mitre.org\/matrices\/pre\/). */ - PreAttack = "PreAttack", - /** InitialAccess is the stage where an attacker manages to get foothold on the attacked resource. */ - InitialAccess = "InitialAccess", - /** Persistence is any access, action, or configuration change to a system that gives a threat actor a persistent presence on that system. */ - Persistence = "Persistence", - /** Privilege escalation is the result of actions that allow an adversary to obtain a higher level of permissions on a system or network. */ - PrivilegeEscalation = "PrivilegeEscalation", - /** Defense evasion consists of techniques an adversary may use to evade detection or avoid other defenses. */ - DefenseEvasion = "DefenseEvasion", - /** Credential access represents techniques resulting in access to or control over system, domain, or service credentials that are used within an enterprise environment. */ - CredentialAccess = "CredentialAccess", - /** Discovery consists of techniques that allow the adversary to gain knowledge about the system and internal network. */ - Discovery = "Discovery", - /** Lateral movement consists of techniques that enable an adversary to access and control remote systems on a network and could, but does not necessarily, include execution of tools on remote systems. */ - LateralMovement = "LateralMovement", - /** The execution tactic represents techniques that result in execution of adversary-controlled code on a local or remote system. */ - Execution = "Execution", - /** Collection consists of techniques used to identify and gather information, such as sensitive files, from a target network prior to exfiltration. */ - Collection = "Collection", - /** Exfiltration refers to techniques and attributes that result or aid in the adversary removing files and information from a target network. */ - Exfiltration = "Exfiltration", - /** The command and control tactic represents how adversaries communicate with systems under their control within a target network. */ - CommandAndControl = "CommandAndControl", - /** Impact events primarily try to directly reduce the availability or integrity of a system, service, or network; including manipulation of data to impact a business or operational process. */ - Impact = "Impact", - /** Probing could be either an attempt to access a certain resource regardless of a malicious intent, or a failed attempt to gain access to a target system to gather information prior to exploitation. */ - Probing = "Probing", - /** Exploitation is the stage where an attacker manages to get a foothold on the attacked resource. This stage is relevant for compute hosts and resources such as user accounts, certificates etc. */ - Exploitation = "Exploitation", +/** Known values of {@link StandardSupportedCloud} that the service accepts. */ +export enum KnownStandardSupportedCloud { + /** Azure */ + Azure = "Azure", + /** AWS */ + AWS = "AWS", + /** GCP */ + GCP = "GCP", } /** - * Defines values for Intent. \ - * {@link KnownIntent} can be used interchangeably with Intent, + * Defines values for StandardSupportedCloud. \ + * {@link KnownStandardSupportedCloud} can be used interchangeably with StandardSupportedCloud, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Unknown**: Unknown \ - * **PreAttack**: PreAttack could be either an attempt to access a certain resource regardless of a malicious intent, or a failed attempt to gain access to a target system to gather information prior to exploitation. This step is usually detected as an attempt, originating from outside the network, to scan the target system and find a way in. Further details on the PreAttack stage can be read in [MITRE Pre-Att&ck matrix](https:\/\/attack.mitre.org\/matrices\/pre\/). \ - * **InitialAccess**: InitialAccess is the stage where an attacker manages to get foothold on the attacked resource. \ - * **Persistence**: Persistence is any access, action, or configuration change to a system that gives a threat actor a persistent presence on that system. \ - * **PrivilegeEscalation**: Privilege escalation is the result of actions that allow an adversary to obtain a higher level of permissions on a system or network. \ - * **DefenseEvasion**: Defense evasion consists of techniques an adversary may use to evade detection or avoid other defenses. \ - * **CredentialAccess**: Credential access represents techniques resulting in access to or control over system, domain, or service credentials that are used within an enterprise environment. \ - * **Discovery**: Discovery consists of techniques that allow the adversary to gain knowledge about the system and internal network. \ - * **LateralMovement**: Lateral movement consists of techniques that enable an adversary to access and control remote systems on a network and could, but does not necessarily, include execution of tools on remote systems. \ - * **Execution**: The execution tactic represents techniques that result in execution of adversary-controlled code on a local or remote system. \ - * **Collection**: Collection consists of techniques used to identify and gather information, such as sensitive files, from a target network prior to exfiltration. \ - * **Exfiltration**: Exfiltration refers to techniques and attributes that result or aid in the adversary removing files and information from a target network. \ - * **CommandAndControl**: The command and control tactic represents how adversaries communicate with systems under their control within a target network. \ - * **Impact**: Impact events primarily try to directly reduce the availability or integrity of a system, service, or network; including manipulation of data to impact a business or operational process. \ - * **Probing**: Probing could be either an attempt to access a certain resource regardless of a malicious intent, or a failed attempt to gain access to a target system to gather information prior to exploitation. \ - * **Exploitation**: Exploitation is the stage where an attacker manages to get a foothold on the attacked resource. This stage is relevant for compute hosts and resources such as user accounts, certificates etc. + * **Azure** \ + * **AWS** \ + * **GCP** */ -export type Intent = string; +export type StandardSupportedCloud = string; -/** Known values of {@link ResourceIdentifierType} that the service accepts. */ -export enum KnownResourceIdentifierType { - /** AzureResource */ - AzureResource = "AzureResource", - /** LogAnalytics */ - LogAnalytics = "LogAnalytics", +/** Known values of {@link Effect} that the service accepts. */ +export enum KnownEffect { + /** Audit */ + Audit = "Audit", + /** Exempt */ + Exempt = "Exempt", + /** Attest */ + Attest = "Attest", } /** - * Defines values for ResourceIdentifierType. \ - * {@link KnownResourceIdentifierType} can be used interchangeably with ResourceIdentifierType, + * Defines values for Effect. \ + * {@link KnownEffect} can be used interchangeably with Effect, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **AzureResource** \ - * **LogAnalytics** + * **Audit** \ + * **Exempt** \ + * **Attest** */ -export type ResourceIdentifierType = string; +export type Effect = string; -/** Known values of {@link AlertStatus} that the service accepts. */ -export enum KnownAlertStatus { - /** An alert which doesn't specify a value is assigned the status 'Active' */ - Active = "Active", - /** An alert which is in handling state */ - InProgress = "InProgress", - /** Alert closed after handling */ - Resolved = "Resolved", - /** Alert dismissed as false positive */ - Dismissed = "Dismissed", +/** Known values of {@link ExemptionCategory} that the service accepts. */ +export enum KnownExemptionCategory { + /** Waiver */ + Waiver = "waiver", + /** Mitigated */ + Mitigated = "mitigated", } /** - * Defines values for AlertStatus. \ - * {@link KnownAlertStatus} can be used interchangeably with AlertStatus, + * Defines values for ExemptionCategory. \ + * {@link KnownExemptionCategory} can be used interchangeably with ExemptionCategory, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Active**: An alert which doesn't specify a value is assigned the status 'Active' \ - * **InProgress**: An alert which is in handling state \ - * **Resolved**: Alert closed after handling \ - * **Dismissed**: Alert dismissed as false positive + * **waiver** \ + * **mitigated** */ -export type AlertStatus = string; +export type ExemptionCategory = string; -/** Known values of {@link Kind} that the service accepts. */ -export enum KnownKind { - /** Simulate alerts according to bundles */ - Bundles = "Bundles", +/** Known values of {@link AttestationComplianceState} that the service accepts. */ +export enum KnownAttestationComplianceState { + /** Unknown */ + Unknown = "unknown", + /** Compliant */ + Compliant = "compliant", + /** NonCompliant */ + NonCompliant = "nonCompliant", } /** - * Defines values for Kind. \ - * {@link KnownKind} can be used interchangeably with Kind, + * Defines values for AttestationComplianceState. \ + * {@link KnownAttestationComplianceState} can be used interchangeably with AttestationComplianceState, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Bundles**: Simulate alerts according to bundles + * **unknown** \ + * **compliant** \ + * **nonCompliant** */ -export type Kind = string; +export type AttestationComplianceState = string; -/** Known values of {@link SettingKind} that the service accepts. */ -export enum KnownSettingKind { - /** DataExportSettings */ - DataExportSettings = "DataExportSettings", - /** AlertSuppressionSetting */ - AlertSuppressionSetting = "AlertSuppressionSetting", - /** AlertSyncSettings */ - AlertSyncSettings = "AlertSyncSettings", +/** Known values of {@link RecommendationSupportedClouds} that the service accepts. */ +export enum KnownRecommendationSupportedClouds { + /** Azure */ + Azure = "Azure", + /** AWS */ + AWS = "AWS", + /** GCP */ + GCP = "GCP", } /** - * Defines values for SettingKind. \ - * {@link KnownSettingKind} can be used interchangeably with SettingKind, + * Defines values for RecommendationSupportedClouds. \ + * {@link KnownRecommendationSupportedClouds} can be used interchangeably with RecommendationSupportedClouds, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **DataExportSettings** \ - * **AlertSuppressionSetting** \ - * **AlertSyncSettings** + * **Azure** \ + * **AWS** \ + * **GCP** */ -export type SettingKind = string; +export type RecommendationSupportedClouds = string; + +/** Known values of {@link SecurityIssue} that the service accepts. */ +export enum KnownSecurityIssue { + /** Vulnerability */ + Vulnerability = "Vulnerability", + /** ExcessivePermissions */ + ExcessivePermissions = "ExcessivePermissions", + /** AnonymousAccess */ + AnonymousAccess = "AnonymousAccess", + /** NetworkExposure */ + NetworkExposure = "NetworkExposure", + /** TrafficEncryption */ + TrafficEncryption = "TrafficEncryption", + /** BestPractices */ + BestPractices = "BestPractices", +} + +/** + * Defines values for SecurityIssue. \ + * {@link KnownSecurityIssue} can be used interchangeably with SecurityIssue, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Vulnerability** \ + * **ExcessivePermissions** \ + * **AnonymousAccess** \ + * **NetworkExposure** \ + * **TrafficEncryption** \ + * **BestPractices** + */ +export type SecurityIssue = string; /** Known values of {@link SettingNameAutoGenerated} that the service accepts. */ export enum KnownSettingNameAutoGenerated { - /** Mcas */ - Mcas = "MCAS", - /** Wdatp */ - Wdatp = "WDATP", - /** WdatpExcludeLinuxPublicPreview */ - WdatpExcludeLinuxPublicPreview = "WDATP_EXCLUDE_LINUX_PUBLIC_PREVIEW", - /** WdatpUnifiedSolution */ - WdatpUnifiedSolution = "WDATP_UNIFIED_SOLUTION", - /** Sentinel */ - Sentinel = "Sentinel", + /** Name of the Defender for Storage Settings name. */ + Current = "current", } /** @@ -8330,199 +8483,240 @@ export enum KnownSettingNameAutoGenerated { * {@link KnownSettingNameAutoGenerated} can be used interchangeably with SettingNameAutoGenerated, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **MCAS** \ - * **WDATP** \ - * **WDATP_EXCLUDE_LINUX_PUBLIC_PREVIEW** \ - * **WDATP_UNIFIED_SOLUTION** \ - * **Sentinel** + * **current**: Name of the Defender for Storage Settings name. */ export type SettingNameAutoGenerated = string; -/** Known values of {@link ServerVulnerabilityAssessmentsSettingKind} that the service accepts. */ -export enum KnownServerVulnerabilityAssessmentsSettingKind { - /** AzureServersSetting */ - AzureServersSetting = "AzureServersSetting", +/** Known values of {@link DevOpsProvisioningState} that the service accepts. */ +export enum KnownDevOpsProvisioningState { + /** Succeeded */ + Succeeded = "Succeeded", + /** Failed */ + Failed = "Failed", + /** Canceled */ + Canceled = "Canceled", + /** Pending */ + Pending = "Pending", + /** PendingDeletion */ + PendingDeletion = "PendingDeletion", + /** DeletionSuccess */ + DeletionSuccess = "DeletionSuccess", + /** DeletionFailure */ + DeletionFailure = "DeletionFailure", } /** - * Defines values for ServerVulnerabilityAssessmentsSettingKind. \ - * {@link KnownServerVulnerabilityAssessmentsSettingKind} can be used interchangeably with ServerVulnerabilityAssessmentsSettingKind, + * Defines values for DevOpsProvisioningState. \ + * {@link KnownDevOpsProvisioningState} can be used interchangeably with DevOpsProvisioningState, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **AzureServersSetting** + * **Succeeded** \ + * **Failed** \ + * **Canceled** \ + * **Pending** \ + * **PendingDeletion** \ + * **DeletionSuccess** \ + * **DeletionFailure** */ -export type ServerVulnerabilityAssessmentsSettingKind = string; +export type DevOpsProvisioningState = string; -/** Known values of {@link ServerVulnerabilityAssessmentsSettingKindName} that the service accepts. */ -export enum KnownServerVulnerabilityAssessmentsSettingKindName { - /** AzureServersSetting */ - AzureServersSetting = "azureServersSetting", +/** Known values of {@link OnboardingState} that the service accepts. */ +export enum KnownOnboardingState { + /** NotApplicable */ + NotApplicable = "NotApplicable", + /** OnboardedByOtherConnector */ + OnboardedByOtherConnector = "OnboardedByOtherConnector", + /** Onboarded */ + Onboarded = "Onboarded", + /** NotOnboarded */ + NotOnboarded = "NotOnboarded", } /** - * Defines values for ServerVulnerabilityAssessmentsSettingKindName. \ - * {@link KnownServerVulnerabilityAssessmentsSettingKindName} can be used interchangeably with ServerVulnerabilityAssessmentsSettingKindName, + * Defines values for OnboardingState. \ + * {@link KnownOnboardingState} can be used interchangeably with OnboardingState, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **azureServersSetting** + * **NotApplicable** \ + * **OnboardedByOtherConnector** \ + * **Onboarded** \ + * **NotOnboarded** */ -export type ServerVulnerabilityAssessmentsSettingKindName = string; +export type OnboardingState = string; -/** Known values of {@link PricingTier} that the service accepts. */ -export enum KnownPricingTier { - /** Get free Microsoft Defender for Cloud experience with basic security features */ - Free = "Free", - /** Get the standard Microsoft Defender for Cloud experience with advanced security features */ - Standard = "Standard", +/** Known values of {@link ActionableRemediationState} that the service accepts. */ +export enum KnownActionableRemediationState { + /** None */ + None = "None", + /** Disabled */ + Disabled = "Disabled", + /** Enabled */ + Enabled = "Enabled", } /** - * Defines values for PricingTier. \ - * {@link KnownPricingTier} can be used interchangeably with PricingTier, + * Defines values for ActionableRemediationState. \ + * {@link KnownActionableRemediationState} can be used interchangeably with ActionableRemediationState, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Free**: Get free Microsoft Defender for Cloud experience with basic security features \ - * **Standard**: Get the standard Microsoft Defender for Cloud experience with advanced security features + * **None** \ + * **Disabled** \ + * **Enabled** */ -export type PricingTier = string; +export type ActionableRemediationState = string; -/** Known values of {@link Enforce} that the service accepts. */ -export enum KnownEnforce { - /** Allows the descendants of this scope to override the pricing configuration set on this scope (allows setting inherited="False") */ - False = "False", - /** Prevents overrides and forces the current scope's pricing configuration to all descendants */ - True = "True", +/** Known values of {@link RuleCategory} that the service accepts. */ +export enum KnownRuleCategory { + /** Code */ + Code = "Code", + /** Artifacts */ + Artifacts = "Artifacts", + /** Dependencies */ + Dependencies = "Dependencies", + /** Secrets */ + Secrets = "Secrets", + /** IaC */ + IaC = "IaC", + /** Containers */ + Containers = "Containers", } /** - * Defines values for Enforce. \ - * {@link KnownEnforce} can be used interchangeably with Enforce, + * Defines values for RuleCategory. \ + * {@link KnownRuleCategory} can be used interchangeably with RuleCategory, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **False**: Allows the descendants of this scope to override the pricing configuration set on this scope (allows setting inherited="False") \ - * **True**: Prevents overrides and forces the current scope's pricing configuration to all descendants + * **Code** \ + * **Artifacts** \ + * **Dependencies** \ + * **Secrets** \ + * **IaC** \ + * **Containers** */ -export type Enforce = string; +export type RuleCategory = string; -/** Known values of {@link Inherited} that the service accepts. */ -export enum KnownInherited { - /** Indicates that the current scope is inheriting its pricing configuration from its parent */ - True = "True", - /** Indicates that the current scope sets its own pricing configuration and does not inherit it from its parent */ - False = "False", +/** Known values of {@link AnnotateDefaultBranchState} that the service accepts. */ +export enum KnownAnnotateDefaultBranchState { + /** Disabled */ + Disabled = "Disabled", + /** Enabled */ + Enabled = "Enabled", } /** - * Defines values for Inherited. \ - * {@link KnownInherited} can be used interchangeably with Inherited, + * Defines values for AnnotateDefaultBranchState. \ + * {@link KnownAnnotateDefaultBranchState} can be used interchangeably with AnnotateDefaultBranchState, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **True**: Indicates that the current scope is inheriting its pricing configuration from its parent \ - * **False**: Indicates that the current scope sets its own pricing configuration and does not inherit it from its parent + * **Disabled** \ + * **Enabled** */ -export type Inherited = string; +export type AnnotateDefaultBranchState = string; -/** Known values of {@link ResourcesCoverageStatus} that the service accepts. */ -export enum KnownResourcesCoverageStatus { - /** This value indicates that all resources associated with the subscription have the Defender plan enabled. */ - FullyCovered = "FullyCovered", - /** This value indicates that some resources under the subscription have the Defender plan enabled, while others have it disabled. There is a mixed coverage status among resources. */ - PartiallyCovered = "PartiallyCovered", - /** This value indicates that the Defender plan is disabled for all resources under the subscription. None of the resources are protected by the Defender plan. */ - NotCovered = "NotCovered", +/** Known values of {@link InheritFromParentState} that the service accepts. */ +export enum KnownInheritFromParentState { + /** Disabled */ + Disabled = "Disabled", + /** Enabled */ + Enabled = "Enabled", } /** - * Defines values for ResourcesCoverageStatus. \ - * {@link KnownResourcesCoverageStatus} can be used interchangeably with ResourcesCoverageStatus, + * Defines values for InheritFromParentState. \ + * {@link KnownInheritFromParentState} can be used interchangeably with InheritFromParentState, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **FullyCovered**: This value indicates that all resources associated with the subscription have the Defender plan enabled. \ - * **PartiallyCovered**: This value indicates that some resources under the subscription have the Defender plan enabled, while others have it disabled. There is a mixed coverage status among resources. \ - * **NotCovered**: This value indicates that the Defender plan is disabled for all resources under the subscription. None of the resources are protected by the Defender plan. + * **Disabled** \ + * **Enabled** */ -export type ResourcesCoverageStatus = string; +export type InheritFromParentState = string; -/** Known values of {@link IsEnabled} that the service accepts. */ -export enum KnownIsEnabled { - /** Indicates the extension is enabled */ - True = "True", - /** Indicates the extension is disabled */ - False = "False", +/** Known values of {@link AutoDiscovery} that the service accepts. */ +export enum KnownAutoDiscovery { + /** Disabled */ + Disabled = "Disabled", + /** Enabled */ + Enabled = "Enabled", + /** NotApplicable */ + NotApplicable = "NotApplicable", } /** - * Defines values for IsEnabled. \ - * {@link KnownIsEnabled} can be used interchangeably with IsEnabled, + * 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 - * **True**: Indicates the extension is enabled \ - * **False**: Indicates the extension is disabled + * **Disabled** \ + * **Enabled** \ + * **NotApplicable** */ -export type IsEnabled = string; +export type AutoDiscovery = string; -/** Known values of {@link Code} that the service accepts. */ -export enum KnownCode { - /** Extension was created\/updated successfully. */ - Succeeded = "Succeeded", - /** Extension was not created\/updated successfully. See operation status message for more details. */ - Failed = "Failed", +/** Known values of {@link AgentlessEnablement} that the service accepts. */ +export enum KnownAgentlessEnablement { + /** Disabled */ + Disabled = "Disabled", + /** Enabled */ + Enabled = "Enabled", + /** NotApplicable */ + NotApplicable = "NotApplicable", } /** - * Defines values for Code. \ - * {@link KnownCode} can be used interchangeably with Code, + * Defines values for AgentlessEnablement. \ + * {@link KnownAgentlessEnablement} can be used interchangeably with AgentlessEnablement, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Succeeded**: Extension was created\/updated successfully. \ - * **Failed**: Extension was not created\/updated successfully. See operation status message for more details. + * **Disabled** \ + * **Enabled** \ + * **NotApplicable** */ -export type Code = string; +export type AgentlessEnablement = 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", +/** Known values of {@link InventoryListKind} that the service accepts. */ +export enum KnownInventoryListKind { + /** Inclusion */ + Inclusion = "Inclusion", + /** Exclusion */ + Exclusion = "Exclusion", } /** - * Defines values for MinimalSeverity. \ - * {@link KnownMinimalSeverity} can be used interchangeably with MinimalSeverity, + * Defines values for InventoryListKind. \ + * {@link KnownInventoryListKind} can be used interchangeably with InventoryListKind, * 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 + * **Inclusion** \ + * **Exclusion** */ -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", +export type InventoryListKind = string; + +/** Known values of {@link InventoryKind} that the service accepts. */ +export enum KnownInventoryKind { + /** AzureDevOpsOrganization */ + AzureDevOpsOrganization = "AzureDevOpsOrganization", + /** AzureDevOpsProject */ + AzureDevOpsProject = "AzureDevOpsProject", + /** AzureDevOpsRepository */ + AzureDevOpsRepository = "AzureDevOpsRepository", + /** GitHubOwner */ + GitHubOwner = "GitHubOwner", + /** GitHubRepository */ + GitHubRepository = "GitHubRepository", } /** - * Defines values for MinimalRiskLevel. \ - * {@link KnownMinimalRiskLevel} can be used interchangeably with MinimalRiskLevel, + * Defines values for InventoryKind. \ + * {@link KnownInventoryKind} can be used interchangeably with InventoryKind, * 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 + * **AzureDevOpsOrganization** \ + * **AzureDevOpsProject** \ + * **AzureDevOpsRepository** \ + * **GitHubOwner** \ + * **GitHubRepository** */ -export type MinimalRiskLevel = string; +export type InventoryKind = string; /** Known values of {@link GovernanceRuleConditionOperator} that the service accepts. */ export enum KnownGovernanceRuleConditionOperator { @@ -8563,23 +8757,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 +8820,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 */ @@ -8635,21 +8871,6 @@ export enum KnownSubPlan { */ export type SubPlan = 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 AadConnectivityState} that the service accepts. */ export enum KnownAadConnectivityState { /** Discovered */ @@ -8724,46 +8945,47 @@ export enum KnownServerVulnerabilityAssessmentsAzureSettingSelectedProvider { * **MdeTvm**: Microsoft Defender for Endpoints threat and vulnerability management. */ export type ServerVulnerabilityAssessmentsAzureSettingSelectedProvider = string; + +/** Known values of {@link DesiredOnboardingState} that the service accepts. */ +export enum KnownDesiredOnboardingState { + /** Disabled */ + Disabled = "Disabled", + /** Enabled */ + Enabled = "Enabled", +} + +/** + * 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 + * **Disabled** \ + * **Enabled** + */ +export type DesiredOnboardingState = string; /** Defines values for Rank. */ export type Rank = "None" | "Low" | "Medium" | "High" | "Critical"; /** Defines values for RuleState. */ export type RuleState = "Enabled" | "Disabled" | "Expired"; /** Optional parameters. */ -export interface LocationsListOptionalParams - extends coreClient.OperationOptions {} +export interface LocationsListOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the list operation. */ export type LocationsListResponse = AscLocationList; /** Optional parameters. */ -export interface LocationsGetOptionalParams - extends coreClient.OperationOptions {} +export interface LocationsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ export type LocationsGetResponse = AscLocation; /** Optional parameters. */ -export interface LocationsListNextOptionalParams - extends coreClient.OperationOptions {} +export interface LocationsListNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ export type LocationsListNextResponse = AscLocationList; -/** Optional parameters. */ -export interface OperationsListOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the list operation. */ -export type OperationsListResponse = OperationList; - -/** Optional parameters. */ -export interface OperationsListNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listNext operation. */ -export type OperationsListNextResponse = OperationList; - /** Optional parameters. */ export interface TasksListOptionalParams extends coreClient.OperationOptions { /** OData filter. Optional. */ @@ -8774,8 +8996,7 @@ export interface TasksListOptionalParams extends coreClient.OperationOptions { export type TasksListResponse = SecurityTaskList; /** Optional parameters. */ -export interface TasksListByHomeRegionOptionalParams - extends coreClient.OperationOptions { +export interface TasksListByHomeRegionOptionalParams extends coreClient.OperationOptions { /** OData filter. Optional. */ filter?: string; } @@ -8784,8 +9005,7 @@ export interface TasksListByHomeRegionOptionalParams export type TasksListByHomeRegionResponse = SecurityTaskList; /** Optional parameters. */ -export interface TasksGetSubscriptionLevelTaskOptionalParams - extends coreClient.OperationOptions {} +export interface TasksGetSubscriptionLevelTaskOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the getSubscriptionLevelTask operation. */ export type TasksGetSubscriptionLevelTaskResponse = SecurityTask; @@ -8795,8 +9015,7 @@ export interface TasksUpdateSubscriptionLevelTaskStateOptionalParams extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface TasksListByResourceGroupOptionalParams - extends coreClient.OperationOptions { +export interface TasksListByResourceGroupOptionalParams extends coreClient.OperationOptions { /** OData filter. Optional. */ filter?: string; } @@ -8805,8 +9024,7 @@ export interface TasksListByResourceGroupOptionalParams export type TasksListByResourceGroupResponse = SecurityTaskList; /** Optional parameters. */ -export interface TasksGetResourceGroupLevelTaskOptionalParams - extends coreClient.OperationOptions {} +export interface TasksGetResourceGroupLevelTaskOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the getResourceGroupLevelTask operation. */ export type TasksGetResourceGroupLevelTaskResponse = SecurityTask; @@ -8816,43 +9034,37 @@ export interface TasksUpdateResourceGroupLevelTaskStateOptionalParams extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface TasksListNextOptionalParams - extends coreClient.OperationOptions {} +export interface TasksListNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ export type TasksListNextResponse = SecurityTaskList; /** Optional parameters. */ -export interface TasksListByHomeRegionNextOptionalParams - extends coreClient.OperationOptions {} +export interface TasksListByHomeRegionNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByHomeRegionNext operation. */ export type TasksListByHomeRegionNextResponse = SecurityTaskList; /** Optional parameters. */ -export interface TasksListByResourceGroupNextOptionalParams - extends coreClient.OperationOptions {} +export interface TasksListByResourceGroupNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByResourceGroupNext operation. */ export type TasksListByResourceGroupNextResponse = SecurityTaskList; /** Optional parameters. */ -export interface AutoProvisioningSettingsListOptionalParams - extends coreClient.OperationOptions {} +export interface AutoProvisioningSettingsListOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the list operation. */ export type AutoProvisioningSettingsListResponse = AutoProvisioningSettingList; /** Optional parameters. */ -export interface AutoProvisioningSettingsGetOptionalParams - extends coreClient.OperationOptions {} +export interface AutoProvisioningSettingsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ export type AutoProvisioningSettingsGetResponse = AutoProvisioningSetting; /** Optional parameters. */ -export interface AutoProvisioningSettingsCreateOptionalParams - extends coreClient.OperationOptions {} +export interface AutoProvisioningSettingsCreateOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the create operation. */ export type AutoProvisioningSettingsCreateResponse = AutoProvisioningSetting; @@ -8862,26 +9074,22 @@ export interface AutoProvisioningSettingsListNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ -export type AutoProvisioningSettingsListNextResponse = - AutoProvisioningSettingList; +export type AutoProvisioningSettingsListNextResponse = AutoProvisioningSettingList; /** Optional parameters. */ -export interface CompliancesListOptionalParams - extends coreClient.OperationOptions {} +export interface CompliancesListOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the list operation. */ export type CompliancesListResponse = ComplianceList; /** Optional parameters. */ -export interface CompliancesGetOptionalParams - extends coreClient.OperationOptions {} +export interface CompliancesGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ export type CompliancesGetResponse = Compliance; /** Optional parameters. */ -export interface CompliancesListNextOptionalParams - extends coreClient.OperationOptions {} +export interface CompliancesListNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ export type CompliancesListNextResponse = ComplianceList; @@ -8891,75 +9099,64 @@ export interface InformationProtectionPoliciesGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type InformationProtectionPoliciesGetResponse = - InformationProtectionPolicy; +export type InformationProtectionPoliciesGetResponse = InformationProtectionPolicy; /** Optional parameters. */ export interface InformationProtectionPoliciesCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the createOrUpdate operation. */ -export type InformationProtectionPoliciesCreateOrUpdateResponse = - InformationProtectionPolicy; +export type InformationProtectionPoliciesCreateOrUpdateResponse = InformationProtectionPolicy; /** Optional parameters. */ export interface InformationProtectionPoliciesListOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the list operation. */ -export type InformationProtectionPoliciesListResponse = - InformationProtectionPolicyList; +export type InformationProtectionPoliciesListResponse = InformationProtectionPolicyList; /** Optional parameters. */ export interface InformationProtectionPoliciesListNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ -export type InformationProtectionPoliciesListNextResponse = - InformationProtectionPolicyList; +export type InformationProtectionPoliciesListNextResponse = InformationProtectionPolicyList; /** Optional parameters. */ -export interface WorkspaceSettingsListOptionalParams - extends coreClient.OperationOptions {} +export interface WorkspaceSettingsListOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the list operation. */ export type WorkspaceSettingsListResponse = WorkspaceSettingList; /** Optional parameters. */ -export interface WorkspaceSettingsGetOptionalParams - extends coreClient.OperationOptions {} +export interface WorkspaceSettingsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ export type WorkspaceSettingsGetResponse = WorkspaceSetting; /** Optional parameters. */ -export interface WorkspaceSettingsCreateOptionalParams - extends coreClient.OperationOptions {} +export interface WorkspaceSettingsCreateOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the create operation. */ export type WorkspaceSettingsCreateResponse = WorkspaceSetting; /** Optional parameters. */ -export interface WorkspaceSettingsUpdateOptionalParams - extends coreClient.OperationOptions {} +export interface WorkspaceSettingsUpdateOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the update operation. */ export type WorkspaceSettingsUpdateResponse = WorkspaceSetting; /** Optional parameters. */ -export interface WorkspaceSettingsDeleteOptionalParams - extends coreClient.OperationOptions {} +export interface WorkspaceSettingsDeleteOptionalParams extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface WorkspaceSettingsListNextOptionalParams - extends coreClient.OperationOptions {} +export interface WorkspaceSettingsListNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ export type WorkspaceSettingsListNextResponse = WorkspaceSettingList; /** Optional parameters. */ -export interface AlertsSuppressionRulesListOptionalParams - extends coreClient.OperationOptions { +export interface AlertsSuppressionRulesListOptionalParams extends coreClient.OperationOptions { /** Type of the alert to get rules for */ alertType?: string; } @@ -8968,90 +9165,26 @@ export interface AlertsSuppressionRulesListOptionalParams export type AlertsSuppressionRulesListResponse = AlertsSuppressionRulesList; /** Optional parameters. */ -export interface AlertsSuppressionRulesGetOptionalParams - extends coreClient.OperationOptions {} +export interface AlertsSuppressionRulesGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ export type AlertsSuppressionRulesGetResponse = AlertsSuppressionRule; /** Optional parameters. */ -export interface AlertsSuppressionRulesUpdateOptionalParams - extends coreClient.OperationOptions {} +export interface AlertsSuppressionRulesUpdateOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the update operation. */ export type AlertsSuppressionRulesUpdateResponse = AlertsSuppressionRule; /** Optional parameters. */ -export interface AlertsSuppressionRulesDeleteOptionalParams - extends coreClient.OperationOptions {} +export interface AlertsSuppressionRulesDeleteOptionalParams extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface AlertsSuppressionRulesListNextOptionalParams - extends coreClient.OperationOptions {} +export interface AlertsSuppressionRulesListNextOptionalParams extends coreClient.OperationOptions {} /** 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 { @@ -9060,24 +9193,21 @@ export interface RegulatoryComplianceStandardsListOptionalParams } /** Contains response data for the list operation. */ -export type RegulatoryComplianceStandardsListResponse = - RegulatoryComplianceStandardList; +export type RegulatoryComplianceStandardsListResponse = RegulatoryComplianceStandardList; /** Optional parameters. */ export interface RegulatoryComplianceStandardsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type RegulatoryComplianceStandardsGetResponse = - RegulatoryComplianceStandard; +export type RegulatoryComplianceStandardsGetResponse = RegulatoryComplianceStandard; /** Optional parameters. */ export interface RegulatoryComplianceStandardsListNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ -export type RegulatoryComplianceStandardsListNextResponse = - RegulatoryComplianceStandardList; +export type RegulatoryComplianceStandardsListNextResponse = RegulatoryComplianceStandardList; /** Optional parameters. */ export interface RegulatoryComplianceControlsListOptionalParams @@ -9087,24 +9217,21 @@ export interface RegulatoryComplianceControlsListOptionalParams } /** Contains response data for the list operation. */ -export type RegulatoryComplianceControlsListResponse = - RegulatoryComplianceControlList; +export type RegulatoryComplianceControlsListResponse = RegulatoryComplianceControlList; /** Optional parameters. */ export interface RegulatoryComplianceControlsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type RegulatoryComplianceControlsGetResponse = - RegulatoryComplianceControl; +export type RegulatoryComplianceControlsGetResponse = RegulatoryComplianceControl; /** Optional parameters. */ export interface RegulatoryComplianceControlsListNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ -export type RegulatoryComplianceControlsListNextResponse = - RegulatoryComplianceControlList; +export type RegulatoryComplianceControlsListNextResponse = RegulatoryComplianceControlList; /** Optional parameters. */ export interface RegulatoryComplianceAssessmentsListOptionalParams @@ -9114,124 +9241,79 @@ export interface RegulatoryComplianceAssessmentsListOptionalParams } /** Contains response data for the list operation. */ -export type RegulatoryComplianceAssessmentsListResponse = - RegulatoryComplianceAssessmentList; +export type RegulatoryComplianceAssessmentsListResponse = RegulatoryComplianceAssessmentList; /** Optional parameters. */ export interface RegulatoryComplianceAssessmentsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type RegulatoryComplianceAssessmentsGetResponse = - RegulatoryComplianceAssessment; +export type RegulatoryComplianceAssessmentsGetResponse = RegulatoryComplianceAssessment; /** Optional parameters. */ export interface RegulatoryComplianceAssessmentsListNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ -export type RegulatoryComplianceAssessmentsListNextResponse = - RegulatoryComplianceAssessmentList; +export type RegulatoryComplianceAssessmentsListNextResponse = RegulatoryComplianceAssessmentList; /** Optional parameters. */ -export interface SubAssessmentsListAllOptionalParams - extends coreClient.OperationOptions {} +export interface SubAssessmentsListAllOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listAll operation. */ export type SubAssessmentsListAllResponse = SecuritySubAssessmentList; /** Optional parameters. */ -export interface SubAssessmentsListOptionalParams - extends coreClient.OperationOptions {} +export interface SubAssessmentsListOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the list operation. */ export type SubAssessmentsListResponse = SecuritySubAssessmentList; /** Optional parameters. */ -export interface SubAssessmentsGetOptionalParams - extends coreClient.OperationOptions {} +export interface SubAssessmentsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ export type SubAssessmentsGetResponse = SecuritySubAssessment; /** Optional parameters. */ -export interface SubAssessmentsListAllNextOptionalParams - extends coreClient.OperationOptions {} +export interface SubAssessmentsListAllNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listAllNext operation. */ export type SubAssessmentsListAllNextResponse = SecuritySubAssessmentList; /** Optional parameters. */ -export interface SubAssessmentsListNextOptionalParams - extends coreClient.OperationOptions {} +export interface SubAssessmentsListNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ export type SubAssessmentsListNextResponse = SecuritySubAssessmentList; /** Optional parameters. */ -export interface ConnectorsListOptionalParams - extends coreClient.OperationOptions {} +export interface ConnectorsListOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the list operation. */ export type ConnectorsListResponse = ConnectorSettingList; /** Optional parameters. */ -export interface ConnectorsGetOptionalParams - extends coreClient.OperationOptions {} +export interface ConnectorsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ export type ConnectorsGetResponse = ConnectorSetting; /** Optional parameters. */ -export interface ConnectorsCreateOrUpdateOptionalParams - extends coreClient.OperationOptions {} +export interface ConnectorsCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the createOrUpdate operation. */ export type ConnectorsCreateOrUpdateResponse = ConnectorSetting; /** Optional parameters. */ -export interface ConnectorsDeleteOptionalParams - extends coreClient.OperationOptions {} +export interface ConnectorsDeleteOptionalParams extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface ConnectorsListNextOptionalParams - extends coreClient.OperationOptions {} +export interface ConnectorsListNextOptionalParams extends coreClient.OperationOptions {} /** 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 {} @@ -9247,8 +9329,7 @@ export interface SoftwareInventoriesListBySubscriptionOptionalParams export type SoftwareInventoriesListBySubscriptionResponse = SoftwaresList; /** Optional parameters. */ -export interface SoftwareInventoriesGetOptionalParams - extends coreClient.OperationOptions {} +export interface SoftwareInventoriesGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ export type SoftwareInventoriesGetResponse = Software; @@ -9258,8 +9339,7 @@ export interface SoftwareInventoriesListByExtendedResourceNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByExtendedResourceNext operation. */ -export type SoftwareInventoriesListByExtendedResourceNextResponse = - SoftwaresList; +export type SoftwareInventoriesListByExtendedResourceNextResponse = SoftwaresList; /** Optional parameters. */ export interface SoftwareInventoriesListBySubscriptionNextOptionalParams @@ -9269,8 +9349,7 @@ export interface SoftwareInventoriesListBySubscriptionNextOptionalParams export type SoftwareInventoriesListBySubscriptionNextResponse = SoftwaresList; /** Optional parameters. */ -export interface CustomAssessmentAutomationsGetOptionalParams - extends coreClient.OperationOptions {} +export interface CustomAssessmentAutomationsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ export type CustomAssessmentAutomationsGetResponse = CustomAssessmentAutomation; @@ -9280,8 +9359,7 @@ export interface CustomAssessmentAutomationsCreateOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the create operation. */ -export type CustomAssessmentAutomationsCreateResponse = - CustomAssessmentAutomation; +export type CustomAssessmentAutomationsCreateResponse = CustomAssessmentAutomation; /** Optional parameters. */ export interface CustomAssessmentAutomationsDeleteOptionalParams @@ -9324,16 +9402,14 @@ export interface CustomEntityStoreAssignmentsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type CustomEntityStoreAssignmentsGetResponse = - CustomEntityStoreAssignment; +export type CustomEntityStoreAssignmentsGetResponse = CustomEntityStoreAssignment; /** Optional parameters. */ export interface CustomEntityStoreAssignmentsCreateOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the create operation. */ -export type CustomEntityStoreAssignmentsCreateResponse = - CustomEntityStoreAssignment; +export type CustomEntityStoreAssignmentsCreateResponse = CustomEntityStoreAssignment; /** Optional parameters. */ export interface CustomEntityStoreAssignmentsDeleteOptionalParams @@ -9372,29 +9448,25 @@ export type CustomEntityStoreAssignmentsListBySubscriptionNextResponse = CustomEntityStoreAssignmentsListResult; /** Optional parameters. */ -export interface MdeOnboardingsListOptionalParams - extends coreClient.OperationOptions {} +export interface MdeOnboardingsListOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the list operation. */ export type MdeOnboardingsListResponse = MdeOnboardingDataList; /** Optional parameters. */ -export interface MdeOnboardingsGetOptionalParams - extends coreClient.OperationOptions {} +export interface MdeOnboardingsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ export type MdeOnboardingsGetResponse = MdeOnboardingData; /** Optional parameters. */ -export interface GovernanceAssignmentsListOptionalParams - extends coreClient.OperationOptions {} +export interface GovernanceAssignmentsListOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the list operation. */ export type GovernanceAssignmentsListResponse = GovernanceAssignmentsList; /** Optional parameters. */ -export interface GovernanceAssignmentsGetOptionalParams - extends coreClient.OperationOptions {} +export interface GovernanceAssignmentsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ export type GovernanceAssignmentsGetResponse = GovernanceAssignment; @@ -9407,40 +9479,34 @@ export interface GovernanceAssignmentsCreateOrUpdateOptionalParams export type GovernanceAssignmentsCreateOrUpdateResponse = GovernanceAssignment; /** Optional parameters. */ -export interface GovernanceAssignmentsDeleteOptionalParams - extends coreClient.OperationOptions {} +export interface GovernanceAssignmentsDeleteOptionalParams extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface GovernanceAssignmentsListNextOptionalParams - extends coreClient.OperationOptions {} +export interface GovernanceAssignmentsListNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ export type GovernanceAssignmentsListNextResponse = GovernanceAssignmentsList; /** Optional parameters. */ -export interface GovernanceRulesListOptionalParams - extends coreClient.OperationOptions {} +export interface GovernanceRulesListOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the list operation. */ export type GovernanceRulesListResponse = GovernanceRuleList; /** Optional parameters. */ -export interface GovernanceRulesGetOptionalParams - extends coreClient.OperationOptions {} +export interface GovernanceRulesGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ export type GovernanceRulesGetResponse = GovernanceRule; /** Optional parameters. */ -export interface GovernanceRulesCreateOrUpdateOptionalParams - extends coreClient.OperationOptions {} +export interface GovernanceRulesCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the createOrUpdate operation. */ export type GovernanceRulesCreateOrUpdateResponse = GovernanceRule; /** Optional parameters. */ -export interface GovernanceRulesDeleteOptionalParams - extends coreClient.OperationOptions { +export interface GovernanceRulesDeleteOptionalParams 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. */ @@ -9448,8 +9514,7 @@ export interface GovernanceRulesDeleteOptionalParams } /** Optional parameters. */ -export interface GovernanceRulesExecuteOptionalParams - extends coreClient.OperationOptions { +export interface GovernanceRulesExecuteOptionalParams extends coreClient.OperationOptions { /** Execute governance rule over a given scope */ executeGovernanceRuleParams?: ExecuteGovernanceRuleParams; /** Delay to wait until next poll, in milliseconds. */ @@ -9466,47 +9531,40 @@ export interface GovernanceRulesOperationResultsOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the operationResults operation. */ -export type GovernanceRulesOperationResultsResponse = - OperationResultAutoGenerated; +export type GovernanceRulesOperationResultsResponse = OperationResultAutoGenerated; /** Optional parameters. */ -export interface GovernanceRulesListNextOptionalParams - extends coreClient.OperationOptions {} +export interface GovernanceRulesListNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ export type GovernanceRulesListNextResponse = GovernanceRuleList; /** Optional parameters. */ -export interface ApplicationsListOptionalParams - extends coreClient.OperationOptions {} +export interface ApplicationsListOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the list operation. */ export type ApplicationsListResponse = ApplicationsList; /** Optional parameters. */ -export interface ApplicationsListNextOptionalParams - extends coreClient.OperationOptions {} +export interface ApplicationsListNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ export type ApplicationsListNextResponse = ApplicationsList; /** Optional parameters. */ -export interface ApplicationGetOptionalParams - extends coreClient.OperationOptions {} +export interface ApplicationGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ export type ApplicationGetResponse = Application; /** Optional parameters. */ -export interface ApplicationCreateOrUpdateOptionalParams - extends coreClient.OperationOptions {} +export interface ApplicationCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the createOrUpdate operation. */ export type ApplicationCreateOrUpdateResponse = Application; /** Optional parameters. */ -export interface ApplicationDeleteOptionalParams - extends coreClient.OperationOptions {} +export interface ApplicationDeleteOptionalParams extends coreClient.OperationOptions {} /** Optional parameters. */ export interface SecurityConnectorApplicationsListOptionalParams @@ -9541,29 +9599,13 @@ export interface SecurityConnectorApplicationDeleteOptionalParams extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface DefenderForStorageGetOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the get operation. */ -export type DefenderForStorageGetResponse = DefenderForStorageSetting; - -/** Optional parameters. */ -export interface DefenderForStorageCreateOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the create operation. */ -export type DefenderForStorageCreateResponse = DefenderForStorageSetting; - -/** Optional parameters. */ -export interface SecurityOperatorsListOptionalParams - extends coreClient.OperationOptions {} +export interface SecurityOperatorsListOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the list operation. */ export type SecurityOperatorsListResponse = SecurityOperatorList; /** Optional parameters. */ -export interface SecurityOperatorsGetOptionalParams - extends coreClient.OperationOptions {} +export interface SecurityOperatorsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ export type SecurityOperatorsGetResponse = SecurityOperator; @@ -9576,8 +9618,7 @@ export interface SecurityOperatorsCreateOrUpdateOptionalParams export type SecurityOperatorsCreateOrUpdateResponse = SecurityOperator; /** Optional parameters. */ -export interface SecurityOperatorsDeleteOptionalParams - extends coreClient.OperationOptions {} +export interface SecurityOperatorsDeleteOptionalParams extends coreClient.OperationOptions {} /** Optional parameters. */ export interface SqlVulnerabilityAssessmentBaselineRulesCreateOrUpdateOptionalParams @@ -9587,8 +9628,7 @@ export interface SqlVulnerabilityAssessmentBaselineRulesCreateOrUpdateOptionalPa } /** Contains response data for the createOrUpdate operation. */ -export type SqlVulnerabilityAssessmentBaselineRulesCreateOrUpdateResponse = - RuleResults; +export type SqlVulnerabilityAssessmentBaselineRulesCreateOrUpdateResponse = RuleResults; /** Optional parameters. */ export interface SqlVulnerabilityAssessmentBaselineRulesGetOptionalParams @@ -9647,639 +9687,692 @@ export interface SqlVulnerabilityAssessmentScanResultsListOptionalParams export type SqlVulnerabilityAssessmentScanResultsListResponse = ScanResults; /** Optional parameters. */ -export interface UpdateSensitivitySettingsOptionalParams +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 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 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 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 updateSensitivitySettings operation. */ -export type UpdateSensitivitySettingsResponse = GetSensitivitySettingsResponse; +/** Contains response data for the createOrUpdate operation. */ +export type SecurityConnectorsCreateOrUpdateResponse = SecurityConnector; /** Optional parameters. */ -export interface GetSensitivitySettingsOptionalParams - extends coreClient.OperationOptions {} +export interface SecurityConnectorsUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the getSensitivitySettings operation. */ -export type GetSensitivitySettingsOperationResponse = - GetSensitivitySettingsResponse; +/** Contains response data for the update operation. */ +export type SecurityConnectorsUpdateResponse = SecurityConnector; /** Optional parameters. */ -export interface SensitivitySettingsListOptionalParams - extends coreClient.OperationOptions {} +export interface SecurityConnectorsDeleteOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the list operation. */ -export type SensitivitySettingsListResponse = - GetSensitivitySettingsListResponse; +/** Optional parameters. */ +export interface SecurityConnectorsListNextOptionalParams extends coreClient.OperationOptions {} + +/** Contains response data for the listNext operation. */ +export type SecurityConnectorsListNextResponse = SecurityConnectorsList; /** Optional parameters. */ -export interface HealthReportsListOptionalParams +export interface SecurityConnectorsListByResourceGroupNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the list operation. */ -export type HealthReportsListResponse = HealthReportsList; +/** Contains response data for the listByResourceGroupNext operation. */ +export type SecurityConnectorsListByResourceGroupNextResponse = SecurityConnectorsList; /** Optional parameters. */ -export interface HealthReportsGetOptionalParams - extends coreClient.OperationOptions {} +export interface OperationsListOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type HealthReportsGetResponse = HealthReport; +/** Contains response data for the list operation. */ +export type OperationsListResponse = OperationListResult; /** Optional parameters. */ -export interface HealthReportsListNextOptionalParams - extends coreClient.OperationOptions {} +export interface OperationsListNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ -export type HealthReportsListNextResponse = HealthReportsList; +export type OperationsListNextResponse = OperationListResult; /** Optional parameters. */ -export interface AzureDevOpsOrgsListAvailableOptionalParams - extends coreClient.OperationOptions {} +export interface ViewOptionalParams extends coreClient.OperationOptions { + /** Additional parameters supplied to the operation. */ + parameters?: ParametersSchema; +} -/** Contains response data for the listAvailable operation. */ -export type AzureDevOpsOrgsListAvailableResponse = AzureDevOpsOrgListResponse; +/** Contains response data for the view operation. */ +export type ViewResponse = ScenarioResponse; /** Optional parameters. */ -export interface AzureDevOpsOrgsListOptionalParams - extends coreClient.OperationOptions {} +export interface ComplianceResultsListOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the list operation. */ -export type AzureDevOpsOrgsListResponse = AzureDevOpsOrgListResponse; +export type ComplianceResultsListResponse = ComplianceResultList; /** Optional parameters. */ -export interface AzureDevOpsOrgsGetOptionalParams - extends coreClient.OperationOptions {} +export interface ComplianceResultsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type AzureDevOpsOrgsGetResponse = AzureDevOpsOrg; +export type ComplianceResultsGetResponse = ComplianceResult; /** Optional parameters. */ -export interface AzureDevOpsOrgsCreateOrUpdateOptionalParams - 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; -} +export interface ComplianceResultsListNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the createOrUpdate operation. */ -export type AzureDevOpsOrgsCreateOrUpdateResponse = AzureDevOpsOrg; +/** Contains response data for the listNext operation. */ +export type ComplianceResultsListNextResponse = ComplianceResultList; /** Optional parameters. */ -export interface AzureDevOpsOrgsUpdateOptionalParams - 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; -} +export interface AdvancedThreatProtectionGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the update operation. */ -export type AzureDevOpsOrgsUpdateResponse = AzureDevOpsOrg; +/** Contains response data for the get operation. */ +export type AdvancedThreatProtectionGetResponse = AdvancedThreatProtectionSetting; /** Optional parameters. */ -export interface AzureDevOpsOrgsListNextOptionalParams - extends coreClient.OperationOptions {} +export interface AdvancedThreatProtectionCreateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listNext operation. */ -export type AzureDevOpsOrgsListNextResponse = AzureDevOpsOrgListResponse; +/** Contains response data for the create operation. */ +export type AdvancedThreatProtectionCreateResponse = AdvancedThreatProtectionSetting; /** Optional parameters. */ -export interface AzureDevOpsProjectsListOptionalParams - extends coreClient.OperationOptions {} +export interface DeviceSecurityGroupsListOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the list operation. */ -export type AzureDevOpsProjectsListResponse = AzureDevOpsProjectListResponse; +export type DeviceSecurityGroupsListResponse = DeviceSecurityGroupList; /** Optional parameters. */ -export interface AzureDevOpsProjectsGetOptionalParams - extends coreClient.OperationOptions {} +export interface DeviceSecurityGroupsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type AzureDevOpsProjectsGetResponse = AzureDevOpsProject; +export type DeviceSecurityGroupsGetResponse = DeviceSecurityGroup; /** Optional parameters. */ -export interface AzureDevOpsProjectsCreateOrUpdateOptionalParams - 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; -} +export interface DeviceSecurityGroupsCreateOrUpdateOptionalParams + extends coreClient.OperationOptions {} /** Contains response data for the createOrUpdate operation. */ -export type AzureDevOpsProjectsCreateOrUpdateResponse = AzureDevOpsProject; +export type DeviceSecurityGroupsCreateOrUpdateResponse = DeviceSecurityGroup; /** Optional parameters. */ -export interface AzureDevOpsProjectsUpdateOptionalParams - 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 AzureDevOpsProjectsUpdateResponse = AzureDevOpsProject; +export interface DeviceSecurityGroupsDeleteOptionalParams extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface AzureDevOpsProjectsListNextOptionalParams - extends coreClient.OperationOptions {} +export interface DeviceSecurityGroupsListNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ -export type AzureDevOpsProjectsListNextResponse = - AzureDevOpsProjectListResponse; +export type DeviceSecurityGroupsListNextResponse = DeviceSecurityGroupList; /** Optional parameters. */ -export interface AzureDevOpsReposListOptionalParams +export interface IotSecuritySolutionAnalyticsListOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the list operation. */ -export type AzureDevOpsReposListResponse = AzureDevOpsRepositoryListResponse; +export type IotSecuritySolutionAnalyticsListResponse = IoTSecuritySolutionAnalyticsModelList; /** Optional parameters. */ -export interface AzureDevOpsReposGetOptionalParams +export interface IotSecuritySolutionAnalyticsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type AzureDevOpsReposGetResponse = AzureDevOpsRepository; +export type IotSecuritySolutionAnalyticsGetResponse = IoTSecuritySolutionAnalyticsModel; /** Optional parameters. */ -export interface AzureDevOpsReposCreateOrUpdateOptionalParams +export interface IotSecuritySolutionsAnalyticsAggregatedAlertListOptionalParams 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; + /** Number of results to retrieve. */ + top?: number; } -/** Contains response data for the createOrUpdate operation. */ -export type AzureDevOpsReposCreateOrUpdateResponse = AzureDevOpsRepository; +/** Contains response data for the list operation. */ +export type IotSecuritySolutionsAnalyticsAggregatedAlertListResponse = + IoTSecurityAggregatedAlertList; /** Optional parameters. */ -export interface AzureDevOpsReposUpdateOptionalParams - 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; -} +export interface IotSecuritySolutionsAnalyticsAggregatedAlertGetOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the update operation. */ -export type AzureDevOpsReposUpdateResponse = AzureDevOpsRepository; +/** Contains response data for the get operation. */ +export type IotSecuritySolutionsAnalyticsAggregatedAlertGetResponse = IoTSecurityAggregatedAlert; /** Optional parameters. */ -export interface AzureDevOpsReposListNextOptionalParams +export interface IotSecuritySolutionsAnalyticsAggregatedAlertDismissOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listNext operation. */ -export type AzureDevOpsReposListNextResponse = - AzureDevOpsRepositoryListResponse; - /** Optional parameters. */ -export interface DevOpsConfigurationsListOptionalParams +export interface IotSecuritySolutionsAnalyticsAggregatedAlertListNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the list operation. */ -export type DevOpsConfigurationsListResponse = DevOpsConfigurationListResponse; +/** Contains response data for the listNext operation. */ +export type IotSecuritySolutionsAnalyticsAggregatedAlertListNextResponse = + IoTSecurityAggregatedAlertList; /** Optional parameters. */ -export interface DevOpsConfigurationsGetOptionalParams +export interface IotSecuritySolutionsAnalyticsRecommendationGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type DevOpsConfigurationsGetResponse = DevOpsConfiguration; +export type IotSecuritySolutionsAnalyticsRecommendationGetResponse = + IoTSecurityAggregatedRecommendation; /** Optional parameters. */ -export interface DevOpsConfigurationsCreateOrUpdateOptionalParams +export interface IotSecuritySolutionsAnalyticsRecommendationListOptionalParams 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; + /** Number of results to retrieve. */ + top?: number; } -/** Contains response data for the createOrUpdate operation. */ -export type DevOpsConfigurationsCreateOrUpdateResponse = DevOpsConfiguration; +/** Contains response data for the list operation. */ +export type IotSecuritySolutionsAnalyticsRecommendationListResponse = + IoTSecurityAggregatedRecommendationList; /** Optional parameters. */ -export interface DevOpsConfigurationsUpdateOptionalParams - 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; -} +export interface IotSecuritySolutionsAnalyticsRecommendationListNextOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the update operation. */ -export type DevOpsConfigurationsUpdateResponse = DevOpsConfiguration; +/** Contains response data for the listNext operation. */ +export type IotSecuritySolutionsAnalyticsRecommendationListNextResponse = + IoTSecurityAggregatedRecommendationList; /** Optional parameters. */ -export interface DevOpsConfigurationsDeleteOptionalParams +export interface IotSecuritySolutionListBySubscriptionOptionalParams 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; + /** Filter the IoT Security solution with OData syntax. Supports filtering by iotHubs. */ + filter?: string; } -/** Optional parameters. */ -export interface DevOpsConfigurationsListNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listNext operation. */ -export type DevOpsConfigurationsListNextResponse = - DevOpsConfigurationListResponse; +/** Contains response data for the listBySubscription operation. */ +export type IotSecuritySolutionListBySubscriptionResponse = IoTSecuritySolutionsList; /** Optional parameters. */ -export interface GitHubOwnersListAvailableOptionalParams - extends coreClient.OperationOptions {} +export interface IotSecuritySolutionListByResourceGroupOptionalParams + extends coreClient.OperationOptions { + /** Filter the IoT Security solution with OData syntax. Supports filtering by iotHubs. */ + filter?: string; +} -/** Contains response data for the listAvailable operation. */ -export type GitHubOwnersListAvailableResponse = GitHubOwnerListResponse; +/** Contains response data for the listByResourceGroup operation. */ +export type IotSecuritySolutionListByResourceGroupResponse = IoTSecuritySolutionsList; /** Optional parameters. */ -export interface GitHubOwnersListOptionalParams - extends coreClient.OperationOptions {} +export interface IotSecuritySolutionGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the list operation. */ -export type GitHubOwnersListResponse = GitHubOwnerListResponse; +/** Contains response data for the get operation. */ +export type IotSecuritySolutionGetResponse = IoTSecuritySolutionModel; /** Optional parameters. */ -export interface GitHubOwnersGetOptionalParams +export interface IotSecuritySolutionCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type GitHubOwnersGetResponse = GitHubOwner; +/** Contains response data for the createOrUpdate operation. */ +export type IotSecuritySolutionCreateOrUpdateResponse = IoTSecuritySolutionModel; /** Optional parameters. */ -export interface GitHubOwnersListNextOptionalParams - extends coreClient.OperationOptions {} +export interface IotSecuritySolutionUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listNext operation. */ -export type GitHubOwnersListNextResponse = GitHubOwnerListResponse; +/** Contains response data for the update operation. */ +export type IotSecuritySolutionUpdateResponse = IoTSecuritySolutionModel; /** Optional parameters. */ -export interface GitHubReposListOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the list operation. */ -export type GitHubReposListResponse = GitHubRepositoryListResponse; +export interface IotSecuritySolutionDeleteOptionalParams extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface GitHubReposGetOptionalParams +export interface IotSecuritySolutionListBySubscriptionNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type GitHubReposGetResponse = GitHubRepository; +/** Contains response data for the listBySubscriptionNext operation. */ +export type IotSecuritySolutionListBySubscriptionNextResponse = IoTSecuritySolutionsList; /** Optional parameters. */ -export interface GitHubReposListNextOptionalParams +export interface IotSecuritySolutionListByResourceGroupNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listNext operation. */ -export type GitHubReposListNextResponse = GitHubRepositoryListResponse; +/** Contains response data for the listByResourceGroupNext operation. */ +export type IotSecuritySolutionListByResourceGroupNextResponse = IoTSecuritySolutionsList; /** Optional parameters. */ -export interface GitLabGroupsListAvailableOptionalParams - extends coreClient.OperationOptions {} +export interface AllowedConnectionsListOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listAvailable operation. */ -export type GitLabGroupsListAvailableResponse = GitLabGroupListResponse; +/** Contains response data for the list operation. */ +export type AllowedConnectionsListResponse = AllowedConnectionsList; /** Optional parameters. */ -export interface GitLabGroupsListOptionalParams +export interface AllowedConnectionsListByHomeRegionOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the list operation. */ -export type GitLabGroupsListResponse = GitLabGroupListResponse; +/** Contains response data for the listByHomeRegion operation. */ +export type AllowedConnectionsListByHomeRegionResponse = AllowedConnectionsList; /** Optional parameters. */ -export interface GitLabGroupsGetOptionalParams - extends coreClient.OperationOptions {} +export interface AllowedConnectionsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type GitLabGroupsGetResponse = GitLabGroup; +export type AllowedConnectionsGetResponse = AllowedConnectionsResource; /** Optional parameters. */ -export interface GitLabGroupsListNextOptionalParams - extends coreClient.OperationOptions {} +export interface AllowedConnectionsListNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ -export type GitLabGroupsListNextResponse = GitLabGroupListResponse; +export type AllowedConnectionsListNextResponse = AllowedConnectionsList; /** Optional parameters. */ -export interface GitLabSubgroupsListOptionalParams +export interface AllowedConnectionsListByHomeRegionNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the list operation. */ -export type GitLabSubgroupsListResponse = GitLabGroupListResponse; +/** Contains response data for the listByHomeRegionNext operation. */ +export type AllowedConnectionsListByHomeRegionNextResponse = AllowedConnectionsList; /** Optional parameters. */ -export interface GitLabProjectsListOptionalParams +export interface DiscoveredSecuritySolutionsListOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the list operation. */ -export type GitLabProjectsListResponse = GitLabProjectListResponse; - -/** Optional parameters. */ -export interface GitLabProjectsGetOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the get operation. */ -export type GitLabProjectsGetResponse = GitLabProject; +export type DiscoveredSecuritySolutionsListResponse = DiscoveredSecuritySolutionList; /** Optional parameters. */ -export interface GitLabProjectsListNextOptionalParams +export interface DiscoveredSecuritySolutionsListByHomeRegionOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listNext operation. */ -export type GitLabProjectsListNextResponse = GitLabProjectListResponse; +/** Contains response data for the listByHomeRegion operation. */ +export type DiscoveredSecuritySolutionsListByHomeRegionResponse = DiscoveredSecuritySolutionList; /** Optional parameters. */ -export interface DevOpsOperationResultsGetOptionalParams - extends coreClient.OperationOptions {} +export interface DiscoveredSecuritySolutionsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type DevOpsOperationResultsGetResponse = OperationStatusResult; +export type DiscoveredSecuritySolutionsGetResponse = DiscoveredSecuritySolution; /** Optional parameters. */ -export interface SecurityConnectorsListOptionalParams +export interface DiscoveredSecuritySolutionsListNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the list operation. */ -export type SecurityConnectorsListResponse = SecurityConnectorsList; +/** Contains response data for the listNext operation. */ +export type DiscoveredSecuritySolutionsListNextResponse = DiscoveredSecuritySolutionList; /** Optional parameters. */ -export interface SecurityConnectorsListByResourceGroupOptionalParams +export interface DiscoveredSecuritySolutionsListByHomeRegionNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByResourceGroup operation. */ -export type SecurityConnectorsListByResourceGroupResponse = - SecurityConnectorsList; +/** Contains response data for the listByHomeRegionNext operation. */ +export type DiscoveredSecuritySolutionsListByHomeRegionNextResponse = + DiscoveredSecuritySolutionList; /** Optional parameters. */ -export interface SecurityConnectorsGetOptionalParams - extends coreClient.OperationOptions {} +export interface ExternalSecuritySolutionsListOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type SecurityConnectorsGetResponse = SecurityConnector; +/** Contains response data for the list operation. */ +export type ExternalSecuritySolutionsListResponse = ExternalSecuritySolutionList; /** Optional parameters. */ -export interface SecurityConnectorsCreateOrUpdateOptionalParams +export interface ExternalSecuritySolutionsListByHomeRegionOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the createOrUpdate operation. */ -export type SecurityConnectorsCreateOrUpdateResponse = SecurityConnector; +/** Contains response data for the listByHomeRegion operation. */ +export type ExternalSecuritySolutionsListByHomeRegionResponse = ExternalSecuritySolutionList; /** Optional parameters. */ -export interface SecurityConnectorsUpdateOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the update operation. */ -export type SecurityConnectorsUpdateResponse = SecurityConnector; +export interface ExternalSecuritySolutionsGetOptionalParams extends coreClient.OperationOptions {} -/** Optional parameters. */ -export interface SecurityConnectorsDeleteOptionalParams - extends coreClient.OperationOptions {} +/** Contains response data for the get operation. */ +export type ExternalSecuritySolutionsGetResponse = ExternalSecuritySolution; /** Optional parameters. */ -export interface SecurityConnectorsListNextOptionalParams +export interface ExternalSecuritySolutionsListNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ -export type SecurityConnectorsListNextResponse = SecurityConnectorsList; +export type ExternalSecuritySolutionsListNextResponse = ExternalSecuritySolutionList; /** Optional parameters. */ -export interface SecurityConnectorsListByResourceGroupNextOptionalParams +export interface ExternalSecuritySolutionsListByHomeRegionNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByResourceGroupNext operation. */ -export type SecurityConnectorsListByResourceGroupNextResponse = - SecurityConnectorsList; +/** Contains response data for the listByHomeRegionNext operation. */ +export type ExternalSecuritySolutionsListByHomeRegionNextResponse = ExternalSecuritySolutionList; /** Optional parameters. */ -export interface ComplianceResultsListOptionalParams - extends coreClient.OperationOptions {} +export interface JitNetworkAccessPoliciesListOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the list operation. */ -export type ComplianceResultsListResponse = ComplianceResultList; +export type JitNetworkAccessPoliciesListResponse = JitNetworkAccessPoliciesList; /** Optional parameters. */ -export interface ComplianceResultsGetOptionalParams +export interface JitNetworkAccessPoliciesListByRegionOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type ComplianceResultsGetResponse = ComplianceResult; +/** Contains response data for the listByRegion operation. */ +export type JitNetworkAccessPoliciesListByRegionResponse = JitNetworkAccessPoliciesList; /** Optional parameters. */ -export interface ComplianceResultsListNextOptionalParams +export interface JitNetworkAccessPoliciesListByResourceGroupOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listNext operation. */ -export type ComplianceResultsListNextResponse = ComplianceResultList; +/** Contains response data for the listByResourceGroup operation. */ +export type JitNetworkAccessPoliciesListByResourceGroupResponse = JitNetworkAccessPoliciesList; /** Optional parameters. */ -export interface AdvancedThreatProtectionGetOptionalParams +export interface JitNetworkAccessPoliciesListByResourceGroupAndRegionOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the listByResourceGroupAndRegion operation. */ +export type JitNetworkAccessPoliciesListByResourceGroupAndRegionResponse = + JitNetworkAccessPoliciesList; + +/** Optional parameters. */ +export interface JitNetworkAccessPoliciesGetOptionalParams extends coreClient.OperationOptions {} + /** Contains response data for the get operation. */ -export type AdvancedThreatProtectionGetResponse = - AdvancedThreatProtectionSetting; +export type JitNetworkAccessPoliciesGetResponse = JitNetworkAccessPolicy; /** Optional parameters. */ -export interface AdvancedThreatProtectionCreateOptionalParams +export interface JitNetworkAccessPoliciesCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the create operation. */ -export type AdvancedThreatProtectionCreateResponse = - AdvancedThreatProtectionSetting; +/** Contains response data for the createOrUpdate operation. */ +export type JitNetworkAccessPoliciesCreateOrUpdateResponse = JitNetworkAccessPolicy; + +/** Optional parameters. */ +export interface JitNetworkAccessPoliciesDeleteOptionalParams extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface DeviceSecurityGroupsListOptionalParams +export interface JitNetworkAccessPoliciesInitiateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the list operation. */ -export type DeviceSecurityGroupsListResponse = DeviceSecurityGroupList; +/** Contains response data for the initiate operation. */ +export type JitNetworkAccessPoliciesInitiateResponse = JitNetworkAccessRequest; /** Optional parameters. */ -export interface DeviceSecurityGroupsGetOptionalParams +export interface JitNetworkAccessPoliciesListNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type DeviceSecurityGroupsGetResponse = DeviceSecurityGroup; +/** Contains response data for the listNext operation. */ +export type JitNetworkAccessPoliciesListNextResponse = JitNetworkAccessPoliciesList; /** Optional parameters. */ -export interface DeviceSecurityGroupsCreateOrUpdateOptionalParams +export interface JitNetworkAccessPoliciesListByRegionNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the createOrUpdate operation. */ -export type DeviceSecurityGroupsCreateOrUpdateResponse = DeviceSecurityGroup; +/** Contains response data for the listByRegionNext operation. */ +export type JitNetworkAccessPoliciesListByRegionNextResponse = JitNetworkAccessPoliciesList; /** Optional parameters. */ -export interface DeviceSecurityGroupsDeleteOptionalParams +export interface JitNetworkAccessPoliciesListByResourceGroupNextOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the listByResourceGroupNext operation. */ +export type JitNetworkAccessPoliciesListByResourceGroupNextResponse = JitNetworkAccessPoliciesList; + /** Optional parameters. */ -export interface DeviceSecurityGroupsListNextOptionalParams +export interface JitNetworkAccessPoliciesListByResourceGroupAndRegionNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listNext operation. */ -export type DeviceSecurityGroupsListNextResponse = DeviceSecurityGroupList; +/** Contains response data for the listByResourceGroupAndRegionNext operation. */ +export type JitNetworkAccessPoliciesListByResourceGroupAndRegionNextResponse = + JitNetworkAccessPoliciesList; /** Optional parameters. */ -export interface IotSecuritySolutionAnalyticsListOptionalParams - extends coreClient.OperationOptions {} +export interface SecureScoresListOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the list operation. */ -export type IotSecuritySolutionAnalyticsListResponse = - IoTSecuritySolutionAnalyticsModelList; +export type SecureScoresListResponse = SecureScoresList; /** Optional parameters. */ -export interface IotSecuritySolutionAnalyticsGetOptionalParams - extends coreClient.OperationOptions {} +export interface SecureScoresGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type IotSecuritySolutionAnalyticsGetResponse = - IoTSecuritySolutionAnalyticsModel; +export type SecureScoresGetResponse = SecureScoreItem; /** Optional parameters. */ -export interface IotSecuritySolutionsAnalyticsAggregatedAlertListOptionalParams +export interface SecureScoresListNextOptionalParams extends coreClient.OperationOptions {} + +/** Contains response data for the listNext operation. */ +export type SecureScoresListNextResponse = SecureScoresList; + +/** Optional parameters. */ +export interface SecureScoreControlsListBySecureScoreOptionalParams extends coreClient.OperationOptions { - /** Number of results to retrieve. */ - top?: number; + /** OData expand. Optional. */ + expand?: ExpandControlsEnum; } -/** Contains response data for the list operation. */ -export type IotSecuritySolutionsAnalyticsAggregatedAlertListResponse = - IoTSecurityAggregatedAlertList; +/** Contains response data for the listBySecureScore operation. */ +export type SecureScoreControlsListBySecureScoreResponse = SecureScoreControlList; /** Optional parameters. */ -export interface IotSecuritySolutionsAnalyticsAggregatedAlertGetOptionalParams - extends coreClient.OperationOptions {} +export interface SecureScoreControlsListOptionalParams extends coreClient.OperationOptions { + /** OData expand. Optional. */ + expand?: ExpandControlsEnum; +} -/** Contains response data for the get operation. */ -export type IotSecuritySolutionsAnalyticsAggregatedAlertGetResponse = - IoTSecurityAggregatedAlert; +/** Contains response data for the list operation. */ +export type SecureScoreControlsListResponse = SecureScoreControlList; /** Optional parameters. */ -export interface IotSecuritySolutionsAnalyticsAggregatedAlertDismissOptionalParams +export interface SecureScoreControlsListBySecureScoreNextOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the listBySecureScoreNext operation. */ +export type SecureScoreControlsListBySecureScoreNextResponse = SecureScoreControlList; + /** Optional parameters. */ -export interface IotSecuritySolutionsAnalyticsAggregatedAlertListNextOptionalParams - extends coreClient.OperationOptions {} +export interface SecureScoreControlsListNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ -export type IotSecuritySolutionsAnalyticsAggregatedAlertListNextResponse = - IoTSecurityAggregatedAlertList; +export type SecureScoreControlsListNextResponse = SecureScoreControlList; /** Optional parameters. */ -export interface IotSecuritySolutionsAnalyticsRecommendationGetOptionalParams +export interface SecureScoreControlDefinitionsListOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type IotSecuritySolutionsAnalyticsRecommendationGetResponse = - IoTSecurityAggregatedRecommendation; +/** Contains response data for the list operation. */ +export type SecureScoreControlDefinitionsListResponse = SecureScoreControlDefinitionList; /** Optional parameters. */ -export interface IotSecuritySolutionsAnalyticsRecommendationListOptionalParams - extends coreClient.OperationOptions { - /** Number of results to retrieve. */ - top?: number; -} +export interface SecureScoreControlDefinitionsListBySubscriptionOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the list operation. */ -export type IotSecuritySolutionsAnalyticsRecommendationListResponse = - IoTSecurityAggregatedRecommendationList; +/** Contains response data for the listBySubscription operation. */ +export type SecureScoreControlDefinitionsListBySubscriptionResponse = + SecureScoreControlDefinitionList; /** Optional parameters. */ -export interface IotSecuritySolutionsAnalyticsRecommendationListNextOptionalParams +export interface SecureScoreControlDefinitionsListNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ -export type IotSecuritySolutionsAnalyticsRecommendationListNextResponse = - IoTSecurityAggregatedRecommendationList; +export type SecureScoreControlDefinitionsListNextResponse = SecureScoreControlDefinitionList; /** Optional parameters. */ -export interface IotSecuritySolutionListBySubscriptionOptionalParams - extends coreClient.OperationOptions { - /** Filter the IoT Security solution with OData syntax. Supports filtering by iotHubs. */ - filter?: string; -} +export interface SecureScoreControlDefinitionsListBySubscriptionNextOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the listBySubscription operation. */ -export type IotSecuritySolutionListBySubscriptionResponse = - IoTSecuritySolutionsList; +/** Contains response data for the listBySubscriptionNext operation. */ +export type SecureScoreControlDefinitionsListBySubscriptionNextResponse = + SecureScoreControlDefinitionList; /** Optional parameters. */ -export interface IotSecuritySolutionListByResourceGroupOptionalParams - extends coreClient.OperationOptions { - /** Filter the IoT Security solution with OData syntax. Supports filtering by iotHubs. */ - filter?: string; -} +export interface SecuritySolutionsListOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByResourceGroup operation. */ -export type IotSecuritySolutionListByResourceGroupResponse = - IoTSecuritySolutionsList; +/** Contains response data for the list operation. */ +export type SecuritySolutionsListResponse = SecuritySolutionList; /** Optional parameters. */ -export interface IotSecuritySolutionGetOptionalParams - extends coreClient.OperationOptions {} +export interface SecuritySolutionsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type IotSecuritySolutionGetResponse = IoTSecuritySolutionModel; +export type SecuritySolutionsGetResponse = SecuritySolution; /** Optional parameters. */ -export interface IotSecuritySolutionCreateOrUpdateOptionalParams - extends coreClient.OperationOptions {} +export interface SecuritySolutionsListNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the createOrUpdate operation. */ -export type IotSecuritySolutionCreateOrUpdateResponse = - IoTSecuritySolutionModel; +/** Contains response data for the listNext operation. */ +export type SecuritySolutionsListNextResponse = SecuritySolutionList; /** Optional parameters. */ -export interface IotSecuritySolutionUpdateOptionalParams +export interface SecuritySolutionsReferenceDataListOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the update operation. */ -export type IotSecuritySolutionUpdateResponse = IoTSecuritySolutionModel; - -/** Optional parameters. */ -export interface IotSecuritySolutionDeleteOptionalParams - extends coreClient.OperationOptions {} +/** Contains response data for the list operation. */ +export type SecuritySolutionsReferenceDataListResponse = SecuritySolutionsReferenceDataList; /** Optional parameters. */ -export interface IotSecuritySolutionListBySubscriptionNextOptionalParams +export interface SecuritySolutionsReferenceDataListByHomeRegionOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listBySubscriptionNext operation. */ -export type IotSecuritySolutionListBySubscriptionNextResponse = - IoTSecuritySolutionsList; +/** Contains response data for the listByHomeRegion operation. */ +export type SecuritySolutionsReferenceDataListByHomeRegionResponse = + SecuritySolutionsReferenceDataList; /** Optional parameters. */ -export interface IotSecuritySolutionListByResourceGroupNextOptionalParams +export interface ServerVulnerabilityAssessmentListByExtendedResourceOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByResourceGroupNext operation. */ -export type IotSecuritySolutionListByResourceGroupNextResponse = - IoTSecuritySolutionsList; +/** Contains response data for the listByExtendedResource operation. */ +export type ServerVulnerabilityAssessmentListByExtendedResourceResponse = + ServerVulnerabilityAssessmentsList; /** Optional parameters. */ -export interface AdaptiveNetworkHardeningsListByExtendedResourceOptionalParams +export interface ServerVulnerabilityAssessmentGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByExtendedResource operation. */ -export type AdaptiveNetworkHardeningsListByExtendedResourceResponse = - AdaptiveNetworkHardeningsList; +/** Contains response data for the get operation. */ +export type ServerVulnerabilityAssessmentGetResponse = ServerVulnerabilityAssessment; /** Optional parameters. */ -export interface AdaptiveNetworkHardeningsGetOptionalParams +export interface ServerVulnerabilityAssessmentCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type AdaptiveNetworkHardeningsGetResponse = AdaptiveNetworkHardening; +/** Contains response data for the createOrUpdate operation. */ +export type ServerVulnerabilityAssessmentCreateOrUpdateResponse = ServerVulnerabilityAssessment; /** Optional parameters. */ -export interface AdaptiveNetworkHardeningsEnforceOptionalParams +export interface ServerVulnerabilityAssessmentDeleteOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -10288,401 +10381,310 @@ export interface AdaptiveNetworkHardeningsEnforceOptionalParams } /** 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 {} +export interface TopologyListOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the list operation. */ -export type AllowedConnectionsListResponse = AllowedConnectionsList; +export type TopologyListResponse = TopologyList; /** Optional parameters. */ -export interface AllowedConnectionsListByHomeRegionOptionalParams - extends coreClient.OperationOptions {} +export interface TopologyListByHomeRegionOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByHomeRegion operation. */ -export type AllowedConnectionsListByHomeRegionResponse = AllowedConnectionsList; +export type TopologyListByHomeRegionResponse = TopologyList; /** Optional parameters. */ -export interface AllowedConnectionsGetOptionalParams - extends coreClient.OperationOptions {} +export interface TopologyGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type AllowedConnectionsGetResponse = AllowedConnectionsResource; +export type TopologyGetResponse = TopologyResource; /** Optional parameters. */ -export interface AllowedConnectionsListNextOptionalParams - extends coreClient.OperationOptions {} +export interface TopologyListNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ -export type AllowedConnectionsListNextResponse = AllowedConnectionsList; +export type TopologyListNextResponse = TopologyList; /** Optional parameters. */ -export interface AllowedConnectionsListByHomeRegionNextOptionalParams - extends coreClient.OperationOptions {} +export interface TopologyListByHomeRegionNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByHomeRegionNext operation. */ -export type AllowedConnectionsListByHomeRegionNextResponse = - AllowedConnectionsList; +export type TopologyListByHomeRegionNextResponse = TopologyList; /** Optional parameters. */ -export interface AdaptiveApplicationControlsListOptionalParams - extends coreClient.OperationOptions { - /** Include the policy rules */ - includePathRecommendations?: boolean; - /** Return output in a summarized form */ - summary?: boolean; -} +export interface AssessmentsMetadataListOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the list operation. */ -export type AdaptiveApplicationControlsListResponse = - AdaptiveApplicationControlGroups; +export type AssessmentsMetadataListResponse = SecurityAssessmentMetadataResponseList; /** Optional parameters. */ -export interface AdaptiveApplicationControlsGetOptionalParams - extends coreClient.OperationOptions {} +export interface AssessmentsMetadataGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type AdaptiveApplicationControlsGetResponse = - AdaptiveApplicationControlGroup; +export type AssessmentsMetadataGetResponse = SecurityAssessmentMetadataResponse; /** Optional parameters. */ -export interface AdaptiveApplicationControlsPutOptionalParams +export interface AssessmentsMetadataListBySubscriptionOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the put operation. */ -export type AdaptiveApplicationControlsPutResponse = - AdaptiveApplicationControlGroup; - -/** Optional parameters. */ -export interface AdaptiveApplicationControlsDeleteOptionalParams - extends coreClient.OperationOptions {} +/** Contains response data for the listBySubscription operation. */ +export type AssessmentsMetadataListBySubscriptionResponse = SecurityAssessmentMetadataResponseList; /** Optional parameters. */ -export interface DiscoveredSecuritySolutionsListOptionalParams +export interface AssessmentsMetadataGetInSubscriptionOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the list operation. */ -export type DiscoveredSecuritySolutionsListResponse = - DiscoveredSecuritySolutionList; +/** Contains response data for the getInSubscription operation. */ +export type AssessmentsMetadataGetInSubscriptionResponse = SecurityAssessmentMetadataResponse; /** Optional parameters. */ -export interface DiscoveredSecuritySolutionsListByHomeRegionOptionalParams +export interface AssessmentsMetadataCreateInSubscriptionOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByHomeRegion operation. */ -export type DiscoveredSecuritySolutionsListByHomeRegionResponse = - DiscoveredSecuritySolutionList; +/** Contains response data for the createInSubscription operation. */ +export type AssessmentsMetadataCreateInSubscriptionResponse = SecurityAssessmentMetadataResponse; /** Optional parameters. */ -export interface DiscoveredSecuritySolutionsGetOptionalParams +export interface AssessmentsMetadataDeleteInSubscriptionOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type DiscoveredSecuritySolutionsGetResponse = DiscoveredSecuritySolution; - /** Optional parameters. */ -export interface DiscoveredSecuritySolutionsListNextOptionalParams - extends coreClient.OperationOptions {} +export interface AssessmentsMetadataListNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ -export type DiscoveredSecuritySolutionsListNextResponse = - DiscoveredSecuritySolutionList; +export type AssessmentsMetadataListNextResponse = SecurityAssessmentMetadataResponseList; /** Optional parameters. */ -export interface DiscoveredSecuritySolutionsListByHomeRegionNextOptionalParams +export interface AssessmentsMetadataListBySubscriptionNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByHomeRegionNext operation. */ -export type DiscoveredSecuritySolutionsListByHomeRegionNextResponse = - DiscoveredSecuritySolutionList; +/** Contains response data for the listBySubscriptionNext operation. */ +export type AssessmentsMetadataListBySubscriptionNextResponse = + SecurityAssessmentMetadataResponseList; /** Optional parameters. */ -export interface ExternalSecuritySolutionsListOptionalParams - extends coreClient.OperationOptions {} +export interface AssessmentsListOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the list operation. */ -export type ExternalSecuritySolutionsListResponse = - ExternalSecuritySolutionList; +export type AssessmentsListResponse = SecurityAssessmentList; /** Optional parameters. */ -export interface ExternalSecuritySolutionsListByHomeRegionOptionalParams - extends coreClient.OperationOptions {} +export interface AssessmentsGetOptionalParams extends coreClient.OperationOptions { + /** OData expand. Optional. */ + expand?: ExpandEnum; +} -/** Contains response data for the listByHomeRegion operation. */ -export type ExternalSecuritySolutionsListByHomeRegionResponse = - ExternalSecuritySolutionList; +/** Contains response data for the get operation. */ +export type AssessmentsGetResponse = SecurityAssessmentResponse; /** Optional parameters. */ -export interface ExternalSecuritySolutionsGetOptionalParams - extends coreClient.OperationOptions {} +export interface AssessmentsCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type ExternalSecuritySolutionsGetResponse = ExternalSecuritySolution; +/** Contains response data for the createOrUpdate operation. */ +export type AssessmentsCreateOrUpdateResponse = SecurityAssessmentResponse; /** Optional parameters. */ -export interface ExternalSecuritySolutionsListNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listNext operation. */ -export type ExternalSecuritySolutionsListNextResponse = - ExternalSecuritySolutionList; +export interface AssessmentsDeleteOptionalParams extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface ExternalSecuritySolutionsListByHomeRegionNextOptionalParams - extends coreClient.OperationOptions {} +export interface AssessmentsListNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByHomeRegionNext operation. */ -export type ExternalSecuritySolutionsListByHomeRegionNextResponse = - ExternalSecuritySolutionList; +/** Contains response data for the listNext operation. */ +export type AssessmentsListNextResponse = SecurityAssessmentList; /** Optional parameters. */ -export interface JitNetworkAccessPoliciesListOptionalParams - extends coreClient.OperationOptions {} +export interface AlertsListOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the list operation. */ -export type JitNetworkAccessPoliciesListResponse = JitNetworkAccessPoliciesList; +export type AlertsListResponse = AlertList; /** Optional parameters. */ -export interface JitNetworkAccessPoliciesListByRegionOptionalParams - extends coreClient.OperationOptions {} +export interface AlertsListByResourceGroupOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByRegion operation. */ -export type JitNetworkAccessPoliciesListByRegionResponse = - JitNetworkAccessPoliciesList; +/** Contains response data for the listByResourceGroup operation. */ +export type AlertsListByResourceGroupResponse = AlertList; /** Optional parameters. */ -export interface JitNetworkAccessPoliciesListByResourceGroupOptionalParams +export interface AlertsListSubscriptionLevelByRegionOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByResourceGroup operation. */ -export type JitNetworkAccessPoliciesListByResourceGroupResponse = - JitNetworkAccessPoliciesList; +/** Contains response data for the listSubscriptionLevelByRegion operation. */ +export type AlertsListSubscriptionLevelByRegionResponse = AlertList; /** Optional parameters. */ -export interface JitNetworkAccessPoliciesListByResourceGroupAndRegionOptionalParams +export interface AlertsListResourceGroupLevelByRegionOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByResourceGroupAndRegion operation. */ -export type JitNetworkAccessPoliciesListByResourceGroupAndRegionResponse = - JitNetworkAccessPoliciesList; +/** Contains response data for the listResourceGroupLevelByRegion operation. */ +export type AlertsListResourceGroupLevelByRegionResponse = AlertList; /** Optional parameters. */ -export interface JitNetworkAccessPoliciesGetOptionalParams - extends coreClient.OperationOptions {} +export interface AlertsGetSubscriptionLevelOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type JitNetworkAccessPoliciesGetResponse = JitNetworkAccessPolicy; +/** Contains response data for the getSubscriptionLevel operation. */ +export type AlertsGetSubscriptionLevelResponse = Alert; /** Optional parameters. */ -export interface JitNetworkAccessPoliciesCreateOrUpdateOptionalParams - extends coreClient.OperationOptions {} +export interface AlertsGetResourceGroupLevelOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the createOrUpdate operation. */ -export type JitNetworkAccessPoliciesCreateOrUpdateResponse = - JitNetworkAccessPolicy; +/** Contains response data for the getResourceGroupLevel operation. */ +export type AlertsGetResourceGroupLevelResponse = Alert; /** Optional parameters. */ -export interface JitNetworkAccessPoliciesDeleteOptionalParams +export interface AlertsUpdateSubscriptionLevelStateToDismissOptionalParams extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface JitNetworkAccessPoliciesInitiateOptionalParams +export interface AlertsUpdateSubscriptionLevelStateToResolveOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the initiate operation. */ -export type JitNetworkAccessPoliciesInitiateResponse = JitNetworkAccessRequest; - /** Optional parameters. */ -export interface JitNetworkAccessPoliciesListNextOptionalParams +export interface AlertsUpdateSubscriptionLevelStateToActivateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listNext operation. */ -export type JitNetworkAccessPoliciesListNextResponse = - JitNetworkAccessPoliciesList; - /** Optional parameters. */ -export interface JitNetworkAccessPoliciesListByRegionNextOptionalParams +export interface AlertsUpdateSubscriptionLevelStateToInProgressOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByRegionNext operation. */ -export type JitNetworkAccessPoliciesListByRegionNextResponse = - JitNetworkAccessPoliciesList; - /** Optional parameters. */ -export interface JitNetworkAccessPoliciesListByResourceGroupNextOptionalParams +export interface AlertsUpdateResourceGroupLevelStateToResolveOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByResourceGroupNext operation. */ -export type JitNetworkAccessPoliciesListByResourceGroupNextResponse = - JitNetworkAccessPoliciesList; - /** Optional parameters. */ -export interface JitNetworkAccessPoliciesListByResourceGroupAndRegionNextOptionalParams +export interface AlertsUpdateResourceGroupLevelStateToDismissOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByResourceGroupAndRegionNext operation. */ -export type JitNetworkAccessPoliciesListByResourceGroupAndRegionNextResponse = - JitNetworkAccessPoliciesList; - /** Optional parameters. */ -export interface SecureScoresListOptionalParams +export interface AlertsUpdateResourceGroupLevelStateToActivateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the list operation. */ -export type SecureScoresListResponse = SecureScoresList; - /** Optional parameters. */ -export interface SecureScoresGetOptionalParams +export interface AlertsUpdateResourceGroupLevelStateToInProgressOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type SecureScoresGetResponse = SecureScoreItem; +/** Optional parameters. */ +export interface AlertsSimulateOptionalParams 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 SecureScoresListNextOptionalParams - extends coreClient.OperationOptions {} +export interface AlertsListNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ -export type SecureScoresListNextResponse = SecureScoresList; +export type AlertsListNextResponse = AlertList; /** Optional parameters. */ -export interface SecureScoreControlsListBySecureScoreOptionalParams - extends coreClient.OperationOptions { - /** OData expand. Optional. */ - expand?: ExpandControlsEnum; -} +export interface AlertsListByResourceGroupNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listBySecureScore operation. */ -export type SecureScoreControlsListBySecureScoreResponse = - SecureScoreControlList; +/** Contains response data for the listByResourceGroupNext operation. */ +export type AlertsListByResourceGroupNextResponse = AlertList; /** Optional parameters. */ -export interface SecureScoreControlsListOptionalParams - extends coreClient.OperationOptions { - /** OData expand. Optional. */ - expand?: ExpandControlsEnum; -} +export interface AlertsListSubscriptionLevelByRegionNextOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the list operation. */ -export type SecureScoreControlsListResponse = SecureScoreControlList; +/** Contains response data for the listSubscriptionLevelByRegionNext operation. */ +export type AlertsListSubscriptionLevelByRegionNextResponse = AlertList; /** Optional parameters. */ -export interface SecureScoreControlsListBySecureScoreNextOptionalParams +export interface AlertsListResourceGroupLevelByRegionNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listBySecureScoreNext operation. */ -export type SecureScoreControlsListBySecureScoreNextResponse = - SecureScoreControlList; +/** Contains response data for the listResourceGroupLevelByRegionNext operation. */ +export type AlertsListResourceGroupLevelByRegionNextResponse = AlertList; /** Optional parameters. */ -export interface SecureScoreControlsListNextOptionalParams - extends coreClient.OperationOptions {} +export interface SettingsListOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listNext operation. */ -export type SecureScoreControlsListNextResponse = SecureScoreControlList; +/** Contains response data for the list operation. */ +export type SettingsListResponse = SettingsList; /** Optional parameters. */ -export interface SecureScoreControlDefinitionsListOptionalParams - extends coreClient.OperationOptions {} +export interface SettingsGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the list operation. */ -export type SecureScoreControlDefinitionsListResponse = - SecureScoreControlDefinitionList; +/** Contains response data for the get operation. */ +export type SettingsGetResponse = SettingUnion; /** Optional parameters. */ -export interface SecureScoreControlDefinitionsListBySubscriptionOptionalParams - extends coreClient.OperationOptions {} +export interface SettingsUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listBySubscription operation. */ -export type SecureScoreControlDefinitionsListBySubscriptionResponse = - SecureScoreControlDefinitionList; +/** Contains response data for the update operation. */ +export type SettingsUpdateResponse = SettingUnion; /** Optional parameters. */ -export interface SecureScoreControlDefinitionsListNextOptionalParams - extends coreClient.OperationOptions {} +export interface SettingsListNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ -export type SecureScoreControlDefinitionsListNextResponse = - SecureScoreControlDefinitionList; +export type SettingsListNextResponse = SettingsList; /** Optional parameters. */ -export interface SecureScoreControlDefinitionsListBySubscriptionNextOptionalParams +export interface ServerVulnerabilityAssessmentsSettingsListBySubscriptionOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listBySubscriptionNext operation. */ -export type SecureScoreControlDefinitionsListBySubscriptionNextResponse = - SecureScoreControlDefinitionList; +/** Contains response data for the listBySubscription operation. */ +export type ServerVulnerabilityAssessmentsSettingsListBySubscriptionResponse = + ServerVulnerabilityAssessmentsSettingsList; /** Optional parameters. */ -export interface SecuritySolutionsListOptionalParams +export interface ServerVulnerabilityAssessmentsSettingsGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the list operation. */ -export type SecuritySolutionsListResponse = SecuritySolutionList; +/** Contains response data for the get operation. */ +export type ServerVulnerabilityAssessmentsSettingsGetResponse = + ServerVulnerabilityAssessmentsSettingUnion; /** Optional parameters. */ -export interface SecuritySolutionsGetOptionalParams +export interface ServerVulnerabilityAssessmentsSettingsCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type SecuritySolutionsGetResponse = SecuritySolution; +/** Contains response data for the createOrUpdate operation. */ +export type ServerVulnerabilityAssessmentsSettingsCreateOrUpdateResponse = + ServerVulnerabilityAssessmentsSettingUnion; /** Optional parameters. */ -export interface SecuritySolutionsListNextOptionalParams +export interface ServerVulnerabilityAssessmentsSettingsDeleteOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listNext operation. */ -export type SecuritySolutionsListNextResponse = SecuritySolutionList; - /** Optional parameters. */ -export interface SecuritySolutionsReferenceDataListOptionalParams +export interface ServerVulnerabilityAssessmentsSettingsListBySubscriptionNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the list operation. */ -export type SecuritySolutionsReferenceDataListResponse = - SecuritySolutionsReferenceDataList; +/** Contains response data for the listBySubscriptionNext operation. */ +export type ServerVulnerabilityAssessmentsSettingsListBySubscriptionNextResponse = + ServerVulnerabilityAssessmentsSettingsList; /** Optional parameters. */ -export interface SecuritySolutionsReferenceDataListByHomeRegionOptionalParams +export interface APICollectionsListBySubscriptionOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByHomeRegion operation. */ -export type SecuritySolutionsReferenceDataListByHomeRegionResponse = - SecuritySolutionsReferenceDataList; +/** Contains response data for the listBySubscription operation. */ +export type APICollectionsListBySubscriptionResponse = ApiCollectionList; /** Optional parameters. */ -export interface ServerVulnerabilityAssessmentListByExtendedResourceOptionalParams +export interface APICollectionsListByResourceGroupOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByExtendedResource operation. */ -export type ServerVulnerabilityAssessmentListByExtendedResourceResponse = - ServerVulnerabilityAssessmentsList; +/** Contains response data for the listByResourceGroup operation. */ +export type APICollectionsListByResourceGroupResponse = ApiCollectionList; /** Optional parameters. */ -export interface ServerVulnerabilityAssessmentGetOptionalParams +export interface APICollectionsListByAzureApiManagementServiceOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type ServerVulnerabilityAssessmentGetResponse = - ServerVulnerabilityAssessment; +/** Contains response data for the listByAzureApiManagementService operation. */ +export type APICollectionsListByAzureApiManagementServiceResponse = ApiCollectionList; /** Optional parameters. */ -export interface ServerVulnerabilityAssessmentCreateOrUpdateOptionalParams +export interface APICollectionsGetByAzureApiManagementServiceOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the createOrUpdate operation. */ -export type ServerVulnerabilityAssessmentCreateOrUpdateResponse = - ServerVulnerabilityAssessment; +/** Contains response data for the getByAzureApiManagementService operation. */ +export type APICollectionsGetByAzureApiManagementServiceResponse = ApiCollection; /** Optional parameters. */ -export interface ServerVulnerabilityAssessmentDeleteOptionalParams +export interface APICollectionsOnboardAzureApiManagementApiOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -10690,210 +10692,234 @@ export interface ServerVulnerabilityAssessmentDeleteOptionalParams resumeFrom?: string; } +/** Contains response data for the onboardAzureApiManagementApi operation. */ +export type APICollectionsOnboardAzureApiManagementApiResponse = ApiCollection; + /** Optional parameters. */ -export interface TopologyListOptionalParams +export interface APICollectionsOffboardAzureApiManagementApiOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the list operation. */ -export type TopologyListResponse = TopologyList; +/** Optional parameters. */ +export interface APICollectionsListBySubscriptionNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listBySubscriptionNext operation. */ +export type APICollectionsListBySubscriptionNextResponse = ApiCollectionList; /** Optional parameters. */ -export interface TopologyListByHomeRegionOptionalParams +export interface APICollectionsListByResourceGroupNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByHomeRegion operation. */ -export type TopologyListByHomeRegionResponse = TopologyList; +/** Contains response data for the listByResourceGroupNext operation. */ +export type APICollectionsListByResourceGroupNextResponse = ApiCollectionList; /** Optional parameters. */ -export interface TopologyGetOptionalParams +export interface APICollectionsListByAzureApiManagementServiceNextOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the listByAzureApiManagementServiceNext operation. */ +export type APICollectionsListByAzureApiManagementServiceNextResponse = ApiCollectionList; + +/** Optional parameters. */ +export interface PricingsGetOptionalParams extends coreClient.OperationOptions {} + /** Contains response data for the get operation. */ -export type TopologyGetResponse = TopologyResource; +export type PricingsGetResponse = Pricing; /** Optional parameters. */ -export interface TopologyListNextOptionalParams - extends coreClient.OperationOptions {} +export interface PricingsUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listNext operation. */ -export type TopologyListNextResponse = TopologyList; +/** Contains response data for the update operation. */ +export type PricingsUpdateResponse = Pricing; /** Optional parameters. */ -export interface TopologyListByHomeRegionNextOptionalParams - extends coreClient.OperationOptions {} +export interface PricingsDeleteOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByHomeRegionNext operation. */ -export type TopologyListByHomeRegionNextResponse = TopologyList; +/** Optional parameters. */ +export interface PricingsListOptionalParams extends coreClient.OperationOptions { + /** OData filter. Optional. */ + filter?: string; +} + +/** Contains response data for the list operation. */ +export type PricingsListResponse = PricingList; /** Optional parameters. */ -export interface AssessmentsMetadataListOptionalParams - extends coreClient.OperationOptions {} +export interface SecurityStandardsListOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the list operation. */ -export type AssessmentsMetadataListResponse = - SecurityAssessmentMetadataResponseList; +export type SecurityStandardsListResponse = SecurityStandardList; /** Optional parameters. */ -export interface AssessmentsMetadataGetOptionalParams - extends coreClient.OperationOptions {} +export interface SecurityStandardsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type AssessmentsMetadataGetResponse = SecurityAssessmentMetadataResponse; +export type SecurityStandardsGetResponse = SecurityStandard; /** Optional parameters. */ -export interface AssessmentsMetadataListBySubscriptionOptionalParams +export interface SecurityStandardsCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listBySubscription operation. */ -export type AssessmentsMetadataListBySubscriptionResponse = - SecurityAssessmentMetadataResponseList; +/** Contains response data for the createOrUpdate operation. */ +export type SecurityStandardsCreateOrUpdateResponse = SecurityStandard; /** Optional parameters. */ -export interface AssessmentsMetadataGetInSubscriptionOptionalParams - extends coreClient.OperationOptions {} +export interface SecurityStandardsDeleteOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the getInSubscription operation. */ -export type AssessmentsMetadataGetInSubscriptionResponse = - SecurityAssessmentMetadataResponse; +/** Optional parameters. */ +export interface SecurityStandardsListNextOptionalParams extends coreClient.OperationOptions {} + +/** Contains response data for the listNext operation. */ +export type SecurityStandardsListNextResponse = SecurityStandardList; /** Optional parameters. */ -export interface AssessmentsMetadataCreateInSubscriptionOptionalParams - extends coreClient.OperationOptions {} +export interface StandardAssignmentsGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the createInSubscription operation. */ -export type AssessmentsMetadataCreateInSubscriptionResponse = - SecurityAssessmentMetadataResponse; +/** Contains response data for the get operation. */ +export type StandardAssignmentsGetResponse = StandardAssignment; /** Optional parameters. */ -export interface AssessmentsMetadataDeleteInSubscriptionOptionalParams - extends coreClient.OperationOptions {} +export interface StandardAssignmentsCreateOptionalParams extends coreClient.OperationOptions {} + +/** Contains response data for the create operation. */ +export type StandardAssignmentsCreateResponse = StandardAssignment; /** Optional parameters. */ -export interface AssessmentsMetadataListNextOptionalParams - extends coreClient.OperationOptions {} +export interface StandardAssignmentsDeleteOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listNext operation. */ -export type AssessmentsMetadataListNextResponse = - SecurityAssessmentMetadataResponseList; +/** Optional parameters. */ +export interface StandardAssignmentsListOptionalParams extends coreClient.OperationOptions {} + +/** Contains response data for the list operation. */ +export type StandardAssignmentsListResponse = StandardAssignmentsList; /** Optional parameters. */ -export interface AssessmentsMetadataListBySubscriptionNextOptionalParams - extends coreClient.OperationOptions {} +export interface StandardAssignmentsListNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listBySubscriptionNext operation. */ -export type AssessmentsMetadataListBySubscriptionNextResponse = - SecurityAssessmentMetadataResponseList; +/** Contains response data for the listNext operation. */ +export type StandardAssignmentsListNextResponse = StandardAssignmentsList; /** Optional parameters. */ -export interface AssessmentsListOptionalParams - extends coreClient.OperationOptions {} +export interface CustomRecommendationsListOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the list operation. */ -export type AssessmentsListResponse = SecurityAssessmentList; +export type CustomRecommendationsListResponse = CustomRecommendationsList; /** Optional parameters. */ -export interface AssessmentsGetOptionalParams - extends coreClient.OperationOptions { - /** OData expand. Optional. */ - expand?: ExpandEnum; -} +export interface CustomRecommendationsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type AssessmentsGetResponse = SecurityAssessmentResponse; +export type CustomRecommendationsGetResponse = CustomRecommendation; /** Optional parameters. */ -export interface AssessmentsCreateOrUpdateOptionalParams +export interface CustomRecommendationsCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the createOrUpdate operation. */ -export type AssessmentsCreateOrUpdateResponse = SecurityAssessmentResponse; +export type CustomRecommendationsCreateOrUpdateResponse = CustomRecommendation; /** Optional parameters. */ -export interface AssessmentsDeleteOptionalParams - extends coreClient.OperationOptions {} +export interface CustomRecommendationsDeleteOptionalParams extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface AssessmentsListNextOptionalParams - extends coreClient.OperationOptions {} +export interface CustomRecommendationsListNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ -export type AssessmentsListNextResponse = SecurityAssessmentList; +export type CustomRecommendationsListNextResponse = CustomRecommendationsList; + +/** Optional parameters. */ +export interface DefenderForStorageGetOptionalParams extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type DefenderForStorageGetResponse = DefenderForStorageSetting; /** Optional parameters. */ -export interface AlertsListOptionalParams extends coreClient.OperationOptions {} +export interface DefenderForStorageCreateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the list operation. */ -export type AlertsListResponse = AlertList; +/** Contains response data for the create operation. */ +export type DefenderForStorageCreateResponse = DefenderForStorageSetting; /** Optional parameters. */ -export interface AlertsListByResourceGroupOptionalParams +export interface DefenderForStorageStartMalwareScanOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByResourceGroup operation. */ -export type AlertsListByResourceGroupResponse = AlertList; +/** Contains response data for the startMalwareScan operation. */ +export type DefenderForStorageStartMalwareScanResponse = MalwareScan; /** Optional parameters. */ -export interface AlertsListSubscriptionLevelByRegionOptionalParams +export interface DefenderForStorageCancelMalwareScanOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listSubscriptionLevelByRegion operation. */ -export type AlertsListSubscriptionLevelByRegionResponse = AlertList; +/** Contains response data for the cancelMalwareScan operation. */ +export type DefenderForStorageCancelMalwareScanResponse = MalwareScan; /** Optional parameters. */ -export interface AlertsListResourceGroupLevelByRegionOptionalParams +export interface DefenderForStorageGetMalwareScanOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listResourceGroupLevelByRegion operation. */ -export type AlertsListResourceGroupLevelByRegionResponse = AlertList; +/** Contains response data for the getMalwareScan operation. */ +export type DefenderForStorageGetMalwareScanResponse = MalwareScan; /** Optional parameters. */ -export interface AlertsGetSubscriptionLevelOptionalParams - extends coreClient.OperationOptions {} +export interface AzureDevOpsOrgsListAvailableOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the getSubscriptionLevel operation. */ -export type AlertsGetSubscriptionLevelResponse = Alert; +/** Contains response data for the listAvailable operation. */ +export type AzureDevOpsOrgsListAvailableResponse = AzureDevOpsOrgListResponse; /** Optional parameters. */ -export interface AlertsGetResourceGroupLevelOptionalParams - extends coreClient.OperationOptions {} +export interface AzureDevOpsOrgsListOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the getResourceGroupLevel operation. */ -export type AlertsGetResourceGroupLevelResponse = Alert; +/** Contains response data for the list operation. */ +export type AzureDevOpsOrgsListResponse = AzureDevOpsOrgListResponse; /** Optional parameters. */ -export interface AlertsUpdateSubscriptionLevelStateToDismissOptionalParams - extends coreClient.OperationOptions {} +export interface AzureDevOpsOrgsGetOptionalParams extends coreClient.OperationOptions {} -/** Optional parameters. */ -export interface AlertsUpdateSubscriptionLevelStateToResolveOptionalParams - extends coreClient.OperationOptions {} +/** Contains response data for the get operation. */ +export type AzureDevOpsOrgsGetResponse = AzureDevOpsOrg; /** Optional parameters. */ -export interface AlertsUpdateSubscriptionLevelStateToActivateOptionalParams - extends coreClient.OperationOptions {} +export interface AzureDevOpsOrgsCreateOrUpdateOptionalParams 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 AlertsUpdateSubscriptionLevelStateToInProgressOptionalParams - extends coreClient.OperationOptions {} +/** Contains response data for the createOrUpdate operation. */ +export type AzureDevOpsOrgsCreateOrUpdateResponse = AzureDevOpsOrg; /** Optional parameters. */ -export interface AlertsUpdateResourceGroupLevelStateToResolveOptionalParams - extends coreClient.OperationOptions {} +export interface AzureDevOpsOrgsUpdateOptionalParams 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 AzureDevOpsOrgsUpdateResponse = AzureDevOpsOrg; /** Optional parameters. */ -export interface AlertsUpdateResourceGroupLevelStateToDismissOptionalParams - extends coreClient.OperationOptions {} +export interface AzureDevOpsOrgsListNextOptionalParams extends coreClient.OperationOptions {} + +/** Contains response data for the listNext operation. */ +export type AzureDevOpsOrgsListNextResponse = AzureDevOpsOrgListResponse; /** Optional parameters. */ -export interface AlertsUpdateResourceGroupLevelStateToActivateOptionalParams - extends coreClient.OperationOptions {} +export interface AzureDevOpsProjectsListOptionalParams extends coreClient.OperationOptions {} + +/** Contains response data for the list operation. */ +export type AzureDevOpsProjectsListResponse = AzureDevOpsProjectListResponse; /** Optional parameters. */ -export interface AlertsUpdateResourceGroupLevelStateToInProgressOptionalParams - extends coreClient.OperationOptions {} +export interface AzureDevOpsProjectsGetOptionalParams extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type AzureDevOpsProjectsGetResponse = AzureDevOpsProject; /** Optional parameters. */ -export interface AlertsSimulateOptionalParams +export interface AzureDevOpsProjectsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -10901,197 +10927,213 @@ export interface AlertsSimulateOptionalParams resumeFrom?: string; } -/** Optional parameters. */ -export interface AlertsListNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listNext operation. */ -export type AlertsListNextResponse = AlertList; +/** Contains response data for the createOrUpdate operation. */ +export type AzureDevOpsProjectsCreateOrUpdateResponse = AzureDevOpsProject; /** Optional parameters. */ -export interface AlertsListByResourceGroupNextOptionalParams - extends coreClient.OperationOptions {} +export interface AzureDevOpsProjectsUpdateOptionalParams 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 listByResourceGroupNext operation. */ -export type AlertsListByResourceGroupNextResponse = AlertList; +/** Contains response data for the update operation. */ +export type AzureDevOpsProjectsUpdateResponse = AzureDevOpsProject; /** Optional parameters. */ -export interface AlertsListSubscriptionLevelByRegionNextOptionalParams - extends coreClient.OperationOptions {} +export interface AzureDevOpsProjectsListNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listSubscriptionLevelByRegionNext operation. */ -export type AlertsListSubscriptionLevelByRegionNextResponse = AlertList; +/** Contains response data for the listNext operation. */ +export type AzureDevOpsProjectsListNextResponse = AzureDevOpsProjectListResponse; /** Optional parameters. */ -export interface AlertsListResourceGroupLevelByRegionNextOptionalParams - extends coreClient.OperationOptions {} +export interface AzureDevOpsReposListOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listResourceGroupLevelByRegionNext operation. */ -export type AlertsListResourceGroupLevelByRegionNextResponse = AlertList; +/** Contains response data for the list operation. */ +export type AzureDevOpsReposListResponse = AzureDevOpsRepositoryListResponse; /** Optional parameters. */ -export interface SettingsListOptionalParams - extends coreClient.OperationOptions {} +export interface AzureDevOpsReposGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the list operation. */ -export type SettingsListResponse = SettingsList; +/** Contains response data for the get operation. */ +export type AzureDevOpsReposGetResponse = AzureDevOpsRepository; /** Optional parameters. */ -export interface SettingsGetOptionalParams - extends coreClient.OperationOptions {} +export interface AzureDevOpsReposCreateOrUpdateOptionalParams 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 get operation. */ -export type SettingsGetResponse = SettingUnion; +/** Contains response data for the createOrUpdate operation. */ +export type AzureDevOpsReposCreateOrUpdateResponse = AzureDevOpsRepository; /** Optional parameters. */ -export interface SettingsUpdateOptionalParams - extends coreClient.OperationOptions {} +export interface AzureDevOpsReposUpdateOptionalParams 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 SettingsUpdateResponse = SettingUnion; +export type AzureDevOpsReposUpdateResponse = AzureDevOpsRepository; /** Optional parameters. */ -export interface SettingsListNextOptionalParams - extends coreClient.OperationOptions {} +export interface AzureDevOpsReposListNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ -export type SettingsListNextResponse = SettingsList; +export type AzureDevOpsReposListNextResponse = AzureDevOpsRepositoryListResponse; /** Optional parameters. */ -export interface ServerVulnerabilityAssessmentsSettingsListBySubscriptionOptionalParams - extends coreClient.OperationOptions {} +export interface DevOpsConfigurationsListOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listBySubscription operation. */ -export type ServerVulnerabilityAssessmentsSettingsListBySubscriptionResponse = - ServerVulnerabilityAssessmentsSettingsList; +/** Contains response data for the list operation. */ +export type DevOpsConfigurationsListResponse = DevOpsConfigurationListResponse; /** Optional parameters. */ -export interface ServerVulnerabilityAssessmentsSettingsGetOptionalParams - extends coreClient.OperationOptions {} +export interface DevOpsConfigurationsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ServerVulnerabilityAssessmentsSettingsGetResponse = - ServerVulnerabilityAssessmentsSettingUnion; +export type DevOpsConfigurationsGetResponse = DevOpsConfiguration; /** Optional parameters. */ -export interface ServerVulnerabilityAssessmentsSettingsCreateOrUpdateOptionalParams - extends coreClient.OperationOptions {} +export interface DevOpsConfigurationsCreateOrUpdateOptionalParams + 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 ServerVulnerabilityAssessmentsSettingsCreateOrUpdateResponse = - ServerVulnerabilityAssessmentsSettingUnion; +export type DevOpsConfigurationsCreateOrUpdateResponse = DevOpsConfiguration; /** Optional parameters. */ -export interface ServerVulnerabilityAssessmentsSettingsDeleteOptionalParams - extends coreClient.OperationOptions {} +export interface DevOpsConfigurationsUpdateOptionalParams 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 DevOpsConfigurationsUpdateResponse = DevOpsConfiguration; /** Optional parameters. */ -export interface ServerVulnerabilityAssessmentsSettingsListBySubscriptionNextOptionalParams - extends coreClient.OperationOptions {} +export interface DevOpsConfigurationsDeleteOptionalParams 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 listBySubscriptionNext operation. */ -export type ServerVulnerabilityAssessmentsSettingsListBySubscriptionNextResponse = - ServerVulnerabilityAssessmentsSettingsList; +/** Optional parameters. */ +export interface DevOpsConfigurationsListNextOptionalParams extends coreClient.OperationOptions {} + +/** Contains response data for the listNext operation. */ +export type DevOpsConfigurationsListNextResponse = DevOpsConfigurationListResponse; /** Optional parameters. */ -export interface APICollectionsListBySubscriptionOptionalParams - extends coreClient.OperationOptions {} +export interface GitHubOwnersListAvailableOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listBySubscription operation. */ -export type APICollectionsListBySubscriptionResponse = ApiCollectionList; +/** Contains response data for the listAvailable operation. */ +export type GitHubOwnersListAvailableResponse = GitHubOwnerListResponse; /** Optional parameters. */ -export interface APICollectionsListByResourceGroupOptionalParams - extends coreClient.OperationOptions {} +export interface GitHubOwnersListOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByResourceGroup operation. */ -export type APICollectionsListByResourceGroupResponse = ApiCollectionList; +/** Contains response data for the list operation. */ +export type GitHubOwnersListResponse = GitHubOwnerListResponse; /** Optional parameters. */ -export interface APICollectionsListByAzureApiManagementServiceOptionalParams - extends coreClient.OperationOptions {} +export interface GitHubOwnersGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByAzureApiManagementService operation. */ -export type APICollectionsListByAzureApiManagementServiceResponse = - ApiCollectionList; +/** Contains response data for the get operation. */ +export type GitHubOwnersGetResponse = GitHubOwner; /** Optional parameters. */ -export interface APICollectionsGetByAzureApiManagementServiceOptionalParams - extends coreClient.OperationOptions {} +export interface GitHubOwnersListNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the getByAzureApiManagementService operation. */ -export type APICollectionsGetByAzureApiManagementServiceResponse = - ApiCollection; +/** Contains response data for the listNext operation. */ +export type GitHubOwnersListNextResponse = GitHubOwnerListResponse; /** Optional parameters. */ -export interface APICollectionsOnboardAzureApiManagementApiOptionalParams - 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; -} +export interface GitHubReposListOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the onboardAzureApiManagementApi operation. */ -export type APICollectionsOnboardAzureApiManagementApiResponse = ApiCollection; +/** Contains response data for the list operation. */ +export type GitHubReposListResponse = GitHubRepositoryListResponse; /** Optional parameters. */ -export interface APICollectionsOffboardAzureApiManagementApiOptionalParams - extends coreClient.OperationOptions {} +export interface GitHubReposGetOptionalParams extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type GitHubReposGetResponse = GitHubRepository; /** Optional parameters. */ -export interface APICollectionsListBySubscriptionNextOptionalParams - extends coreClient.OperationOptions {} +export interface GitHubReposListNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listBySubscriptionNext operation. */ -export type APICollectionsListBySubscriptionNextResponse = ApiCollectionList; +/** Contains response data for the listNext operation. */ +export type GitHubReposListNextResponse = GitHubRepositoryListResponse; /** Optional parameters. */ -export interface APICollectionsListByResourceGroupNextOptionalParams - extends coreClient.OperationOptions {} +export interface GitLabGroupsListAvailableOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByResourceGroupNext operation. */ -export type APICollectionsListByResourceGroupNextResponse = ApiCollectionList; +/** Contains response data for the listAvailable operation. */ +export type GitLabGroupsListAvailableResponse = GitLabGroupListResponse; /** Optional parameters. */ -export interface APICollectionsListByAzureApiManagementServiceNextOptionalParams - extends coreClient.OperationOptions {} +export interface GitLabGroupsListOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByAzureApiManagementServiceNext operation. */ -export type APICollectionsListByAzureApiManagementServiceNextResponse = - ApiCollectionList; +/** Contains response data for the list operation. */ +export type GitLabGroupsListResponse = GitLabGroupListResponse; /** Optional parameters. */ -export interface PricingsGetOptionalParams - extends coreClient.OperationOptions {} +export interface GitLabGroupsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type PricingsGetResponse = Pricing; +export type GitLabGroupsGetResponse = GitLabGroup; /** Optional parameters. */ -export interface PricingsUpdateOptionalParams - extends coreClient.OperationOptions {} +export interface GitLabGroupsListNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the update operation. */ -export type PricingsUpdateResponse = Pricing; +/** Contains response data for the listNext operation. */ +export type GitLabGroupsListNextResponse = GitLabGroupListResponse; /** Optional parameters. */ -export interface PricingsDeleteOptionalParams - extends coreClient.OperationOptions {} +export interface GitLabSubgroupsListOptionalParams extends coreClient.OperationOptions {} + +/** Contains response data for the list operation. */ +export type GitLabSubgroupsListResponse = GitLabGroupListResponse; /** Optional parameters. */ -export interface PricingsListOptionalParams - extends coreClient.OperationOptions { - /** OData filter. Optional. */ - filter?: string; -} +export interface GitLabProjectsListOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the list operation. */ -export type PricingsListResponse = PricingList; +export type GitLabProjectsListResponse = GitLabProjectListResponse; + +/** Optional parameters. */ +export interface GitLabProjectsGetOptionalParams extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type GitLabProjectsGetResponse = GitLabProject; + +/** Optional parameters. */ +export interface GitLabProjectsListNextOptionalParams extends coreClient.OperationOptions {} + +/** Contains response data for the listNext operation. */ +export type GitLabProjectsListNextResponse = GitLabProjectListResponse; + +/** Optional parameters. */ +export interface DevOpsOperationResultsGetOptionalParams extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type DevOpsOperationResultsGetResponse = OperationStatusResult; /** Optional parameters. */ -export interface SecurityCenterOptionalParams - extends coreClient.ServiceClientOptions { +export interface SecurityCenterOptionalParams extends coreClient.ServiceClientOptions { /** server parameter */ $host?: string; /** Overrides client endpoint. */ diff --git a/sdk/security/arm-security/src/models/mappers.ts b/sdk/security/arm-security/src/models/mappers.ts index b3a699b668d5..0c0db2f92263 100644 --- a/sdk/security/arm-security/src/models/mappers.ts +++ b/sdk/security/arm-security/src/models/mappers.ts @@ -203,101 +203,6 @@ export const ErrorAdditionalInfo: coreClient.CompositeMapper = { }, }; -export const OperationList: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "OperationList", - modelProperties: { - value: { - serializedName: "value", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "Operation", - }, - }, - }, - }, - nextLink: { - serializedName: "nextLink", - readOnly: true, - type: { - name: "String", - }, - }, - }, - }, -}; - -export const Operation: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "Operation", - modelProperties: { - name: { - serializedName: "name", - readOnly: true, - type: { - name: "String", - }, - }, - origin: { - serializedName: "origin", - readOnly: true, - type: { - name: "String", - }, - }, - display: { - serializedName: "display", - type: { - name: "Composite", - className: "OperationDisplay", - }, - }, - }, - }, -}; - -export const OperationDisplay: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "OperationDisplay", - modelProperties: { - provider: { - serializedName: "provider", - readOnly: true, - type: { - name: "String", - }, - }, - resource: { - serializedName: "resource", - readOnly: true, - type: { - name: "String", - }, - }, - operation: { - serializedName: "operation", - readOnly: true, - type: { - name: "String", - }, - }, - description: { - serializedName: "description", - readOnly: true, - type: { - name: "String", - }, - }, - }, - }, -}; - export const SecurityTaskList: coreClient.CompositeMapper = { type: { name: "Composite", @@ -677,10 +582,10 @@ export const ScopeElement: coreClient.CompositeMapper = { }, }; -export const AutomationList: coreClient.CompositeMapper = { +export const RegulatoryComplianceStandardList: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AutomationList", + className: "RegulatoryComplianceStandardList", modelProperties: { value: { serializedName: "value", @@ -690,7 +595,7 @@ export const AutomationList: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "Automation", + className: "RegulatoryComplianceStandard", }, }, }, @@ -706,19 +611,27 @@ export const AutomationList: coreClient.CompositeMapper = { }, }; -export const AutomationScope: coreClient.CompositeMapper = { +export const RegulatoryComplianceControlList: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AutomationScope", + className: "RegulatoryComplianceControlList", modelProperties: { - description: { - serializedName: "description", + value: { + serializedName: "value", + required: true, type: { - name: "String", + name: "Sequence", + element: { + type: { + name: "Composite", + className: "RegulatoryComplianceControl", + }, + }, }, }, - scopePath: { - serializedName: "scopePath", + nextLink: { + serializedName: "nextLink", + readOnly: true, type: { name: "String", }, @@ -727,79 +640,93 @@ export const AutomationScope: coreClient.CompositeMapper = { }, }; -export const AutomationSource: coreClient.CompositeMapper = { +export const RegulatoryComplianceAssessmentList: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AutomationSource", + className: "RegulatoryComplianceAssessmentList", modelProperties: { - eventSource: { - serializedName: "eventSource", - type: { - name: "String", - }, - }, - ruleSets: { - serializedName: "ruleSets", + value: { + serializedName: "value", + required: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "AutomationRuleSet", + className: "RegulatoryComplianceAssessment", }, }, }, }, + nextLink: { + serializedName: "nextLink", + readOnly: true, + type: { + name: "String", + }, + }, }, }, }; -export const AutomationRuleSet: coreClient.CompositeMapper = { +export const SecuritySubAssessmentList: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AutomationRuleSet", + className: "SecuritySubAssessmentList", modelProperties: { - rules: { - serializedName: "rules", + value: { + serializedName: "value", + readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "AutomationTriggeringRule", + className: "SecuritySubAssessment", }, }, }, }, + nextLink: { + serializedName: "nextLink", + readOnly: true, + type: { + name: "String", + }, + }, }, }, }; -export const AutomationTriggeringRule: coreClient.CompositeMapper = { +export const SubAssessmentStatus: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AutomationTriggeringRule", + className: "SubAssessmentStatus", modelProperties: { - propertyJPath: { - serializedName: "propertyJPath", + code: { + serializedName: "code", + readOnly: true, type: { name: "String", }, }, - propertyType: { - serializedName: "propertyType", + cause: { + serializedName: "cause", + readOnly: true, type: { name: "String", }, }, - expectedValue: { - serializedName: "expectedValue", + description: { + serializedName: "description", + readOnly: true, type: { name: "String", }, }, - operator: { - serializedName: "operator", + severity: { + serializedName: "severity", + readOnly: true, type: { name: "String", }, @@ -808,18 +735,18 @@ export const AutomationTriggeringRule: coreClient.CompositeMapper = { }, }; -export const AutomationAction: coreClient.CompositeMapper = { +export const ResourceDetails: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AutomationAction", - uberParent: "AutomationAction", + className: "ResourceDetails", + uberParent: "ResourceDetails", polymorphicDiscriminator: { - serializedName: "actionType", - clientName: "actionType", + serializedName: "source", + clientName: "source", }, modelProperties: { - actionType: { - serializedName: "actionType", + source: { + serializedName: "source", required: true, type: { name: "String", @@ -829,13 +756,19 @@ export const AutomationAction: coreClient.CompositeMapper = { }, }; -export const AzureTrackedResourceLocation: coreClient.CompositeMapper = { +export const AdditionalData: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AzureTrackedResourceLocation", + className: "AdditionalData", + uberParent: "AdditionalData", + polymorphicDiscriminator: { + serializedName: "assessedResourceType", + clientName: "assessedResourceType", + }, modelProperties: { - location: { - serializedName: "location", + assessedResourceType: { + serializedName: "assessedResourceType", + required: true, type: { name: "String", }, @@ -844,28 +777,26 @@ export const AzureTrackedResourceLocation: coreClient.CompositeMapper = { }, }; -export const KindAutoGenerated: coreClient.CompositeMapper = { +export const ConnectorSettingList: coreClient.CompositeMapper = { type: { name: "Composite", - className: "KindAutoGenerated", + className: "ConnectorSettingList", modelProperties: { - kind: { - serializedName: "kind", + value: { + serializedName: "value", type: { - name: "String", + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ConnectorSetting", + }, + }, }, }, - }, - }, -}; - -export const ETag: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ETag", - modelProperties: { - etag: { - serializedName: "etag", + nextLink: { + serializedName: "nextLink", + readOnly: true, type: { name: "String", }, @@ -874,35 +805,68 @@ export const ETag: coreClient.CompositeMapper = { }, }; -export const Tags: coreClient.CompositeMapper = { +export const HybridComputeSettingsProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Tags", + className: "HybridComputeSettingsProperties", modelProperties: { - tags: { - serializedName: "tags", + hybridComputeProvisioningState: { + serializedName: "hybridComputeProvisioningState", + readOnly: true, type: { - name: "Dictionary", - value: { type: { name: "String" } }, + name: "String", + }, + }, + autoProvision: { + serializedName: "autoProvision", + required: true, + type: { + name: "String", + }, + }, + resourceGroupName: { + serializedName: "resourceGroupName", + type: { + name: "String", + }, + }, + region: { + serializedName: "region", + type: { + name: "String", + }, + }, + proxyServer: { + serializedName: "proxyServer", + type: { + name: "Composite", + className: "ProxyServerProperties", + }, + }, + servicePrincipal: { + serializedName: "servicePrincipal", + type: { + name: "Composite", + className: "ServicePrincipalProperties", }, }, }, }, }; -export const AutomationValidationStatus: coreClient.CompositeMapper = { +export const ProxyServerProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AutomationValidationStatus", + className: "ProxyServerProperties", modelProperties: { - isValid: { - serializedName: "isValid", + ip: { + serializedName: "ip", type: { - name: "Boolean", + name: "String", }, }, - message: { - serializedName: "message", + port: { + serializedName: "port", type: { name: "String", }, @@ -911,27 +875,19 @@ export const AutomationValidationStatus: coreClient.CompositeMapper = { }, }; -export const RegulatoryComplianceStandardList: coreClient.CompositeMapper = { +export const ServicePrincipalProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RegulatoryComplianceStandardList", + className: "ServicePrincipalProperties", modelProperties: { - value: { - serializedName: "value", - required: true, + applicationId: { + serializedName: "applicationId", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "RegulatoryComplianceStandard", - }, - }, + name: "String", }, }, - nextLink: { - serializedName: "nextLink", - readOnly: true, + secret: { + serializedName: "secret", type: { name: "String", }, @@ -940,27 +896,38 @@ export const RegulatoryComplianceStandardList: coreClient.CompositeMapper = { }, }; -export const RegulatoryComplianceControlList: coreClient.CompositeMapper = { +export const AuthenticationDetailsProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RegulatoryComplianceControlList", + className: "AuthenticationDetailsProperties", + uberParent: "AuthenticationDetailsProperties", + polymorphicDiscriminator: { + serializedName: "authenticationType", + clientName: "authenticationType", + }, modelProperties: { - value: { - serializedName: "value", - required: true, + authenticationProvisioningState: { + serializedName: "authenticationProvisioningState", + readOnly: true, + type: { + name: "String", + }, + }, + grantedPermissions: { + serializedName: "grantedPermissions", + readOnly: true, type: { name: "Sequence", element: { type: { - name: "Composite", - className: "RegulatoryComplianceControl", + name: "String", }, }, }, }, - nextLink: { - serializedName: "nextLink", - readOnly: true, + authenticationType: { + serializedName: "authenticationType", + required: true, type: { name: "String", }, @@ -969,20 +936,19 @@ export const RegulatoryComplianceControlList: coreClient.CompositeMapper = { }, }; -export const RegulatoryComplianceAssessmentList: coreClient.CompositeMapper = { +export const SoftwaresList: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RegulatoryComplianceAssessmentList", + className: "SoftwaresList", modelProperties: { value: { serializedName: "value", - required: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "RegulatoryComplianceAssessment", + className: "Software", }, }, }, @@ -998,10 +964,55 @@ export const RegulatoryComplianceAssessmentList: coreClient.CompositeMapper = { }, }; -export const SecuritySubAssessmentList: coreClient.CompositeMapper = { +export const SystemData: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SecuritySubAssessmentList", + className: "SystemData", + modelProperties: { + createdBy: { + serializedName: "createdBy", + type: { + name: "String", + }, + }, + createdByType: { + serializedName: "createdByType", + type: { + name: "String", + }, + }, + createdAt: { + serializedName: "createdAt", + type: { + name: "DateTime", + }, + }, + lastModifiedBy: { + serializedName: "lastModifiedBy", + type: { + name: "String", + }, + }, + lastModifiedByType: { + serializedName: "lastModifiedByType", + type: { + name: "String", + }, + }, + lastModifiedAt: { + serializedName: "lastModifiedAt", + type: { + name: "DateTime", + }, + }, + }, + }, +}; + +export const CustomAssessmentAutomationsListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "CustomAssessmentAutomationsListResult", modelProperties: { value: { serializedName: "value", @@ -1011,14 +1022,13 @@ export const SecuritySubAssessmentList: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "SecuritySubAssessment", + className: "CustomAssessmentAutomation", }, }, }, }, nextLink: { serializedName: "nextLink", - readOnly: true, type: { name: "String", }, @@ -1027,35 +1037,13 @@ export const SecuritySubAssessmentList: coreClient.CompositeMapper = { }, }; -export const SubAssessmentStatus: coreClient.CompositeMapper = { +export const CustomEntityStoreAssignmentRequest: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SubAssessmentStatus", + className: "CustomEntityStoreAssignmentRequest", modelProperties: { - code: { - serializedName: "code", - readOnly: true, - type: { - name: "String", - }, - }, - cause: { - serializedName: "cause", - readOnly: true, - type: { - name: "String", - }, - }, - description: { - serializedName: "description", - readOnly: true, - type: { - name: "String", - }, - }, - severity: { - serializedName: "severity", - readOnly: true, + principal: { + serializedName: "properties.principal", type: { name: "String", }, @@ -1064,19 +1052,26 @@ export const SubAssessmentStatus: coreClient.CompositeMapper = { }, }; -export const ResourceDetails: coreClient.CompositeMapper = { +export const CustomEntityStoreAssignmentsListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ResourceDetails", - uberParent: "ResourceDetails", - polymorphicDiscriminator: { - serializedName: "source", - clientName: "source", - }, + className: "CustomEntityStoreAssignmentsListResult", modelProperties: { - source: { - serializedName: "source", - required: true, + value: { + serializedName: "value", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "CustomEntityStoreAssignment", + }, + }, + }, + }, + nextLink: { + serializedName: "nextLink", type: { name: "String", }, @@ -1085,40 +1080,41 @@ export const ResourceDetails: coreClient.CompositeMapper = { }, }; -export const AdditionalData: coreClient.CompositeMapper = { +export const MdeOnboardingDataList: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AdditionalData", - uberParent: "AdditionalData", - polymorphicDiscriminator: { - serializedName: "assessedResourceType", - clientName: "assessedResourceType", - }, + className: "MdeOnboardingDataList", modelProperties: { - assessedResourceType: { - serializedName: "assessedResourceType", - required: true, + value: { + serializedName: "value", type: { - name: "String", + name: "Sequence", + element: { + type: { + name: "Composite", + className: "MdeOnboardingData", + }, + }, }, }, }, }, }; -export const ConnectorSettingList: coreClient.CompositeMapper = { +export const GovernanceAssignmentsList: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ConnectorSettingList", + className: "GovernanceAssignmentsList", modelProperties: { value: { serializedName: "value", + readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "ConnectorSetting", + className: "GovernanceAssignment", }, }, }, @@ -1134,129 +1130,72 @@ export const ConnectorSettingList: coreClient.CompositeMapper = { }, }; -export const HybridComputeSettingsProperties: coreClient.CompositeMapper = { +export const RemediationEta: coreClient.CompositeMapper = { type: { name: "Composite", - className: "HybridComputeSettingsProperties", + className: "RemediationEta", modelProperties: { - hybridComputeProvisioningState: { - serializedName: "hybridComputeProvisioningState", - readOnly: true, + eta: { + serializedName: "eta", + required: true, type: { - name: "String", + name: "DateTime", }, }, - autoProvision: { - serializedName: "autoProvision", + justification: { + serializedName: "justification", required: true, type: { name: "String", }, }, - resourceGroupName: { - serializedName: "resourceGroupName", - type: { - name: "String", - }, - }, - region: { - serializedName: "region", - type: { - name: "String", - }, - }, - proxyServer: { - serializedName: "proxyServer", - type: { - name: "Composite", - className: "ProxyServerProperties", - }, - }, - servicePrincipal: { - serializedName: "servicePrincipal", - type: { - name: "Composite", - className: "ServicePrincipalProperties", - }, - }, }, }, }; -export const ProxyServerProperties: coreClient.CompositeMapper = { +export const GovernanceEmailNotification: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ProxyServerProperties", + className: "GovernanceEmailNotification", modelProperties: { - ip: { - serializedName: "ip", + disableManagerEmailNotification: { + serializedName: "disableManagerEmailNotification", type: { - name: "String", + name: "Boolean", }, }, - port: { - serializedName: "port", + disableOwnerEmailNotification: { + serializedName: "disableOwnerEmailNotification", type: { - name: "String", + name: "Boolean", }, }, }, }, }; -export const ServicePrincipalProperties: coreClient.CompositeMapper = { +export const GovernanceAssignmentAdditionalData: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ServicePrincipalProperties", + className: "GovernanceAssignmentAdditionalData", modelProperties: { - applicationId: { - serializedName: "applicationId", - type: { - name: "String", + ticketNumber: { + constraints: { + InclusiveMinimum: 0, }, - }, - secret: { - serializedName: "secret", + serializedName: "ticketNumber", type: { - name: "String", + name: "Number", }, }, - }, - }, -}; - -export const AuthenticationDetailsProperties: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "AuthenticationDetailsProperties", - uberParent: "AuthenticationDetailsProperties", - polymorphicDiscriminator: { - serializedName: "authenticationType", - clientName: "authenticationType", - }, - modelProperties: { - authenticationProvisioningState: { - serializedName: "authenticationProvisioningState", - readOnly: true, + ticketLink: { + serializedName: "ticketLink", type: { name: "String", }, }, - grantedPermissions: { - serializedName: "grantedPermissions", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "String", - }, - }, - }, - }, - authenticationType: { - serializedName: "authenticationType", - required: true, + ticketStatus: { + serializedName: "ticketStatus", type: { name: "String", }, @@ -1265,20 +1204,20 @@ export const AuthenticationDetailsProperties: coreClient.CompositeMapper = { }, }; -export const SecurityContactList: coreClient.CompositeMapper = { +export const GovernanceRuleList: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SecurityContactList", + className: "GovernanceRuleList", modelProperties: { value: { serializedName: "value", - required: true, + readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "SecurityContact", + className: "GovernanceRule", }, }, }, @@ -1294,119 +1233,77 @@ export const SecurityContactList: coreClient.CompositeMapper = { }, }; -export const NotificationsSource: coreClient.CompositeMapper = { +export const GovernanceRuleOwnerSource: coreClient.CompositeMapper = { type: { name: "Composite", - className: "NotificationsSource", - uberParent: "NotificationsSource", - polymorphicDiscriminator: { - serializedName: "sourceType", - clientName: "sourceType", - }, + className: "GovernanceRuleOwnerSource", modelProperties: { - sourceType: { - serializedName: "sourceType", - required: true, + type: { + serializedName: "type", 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", - }, - }, - }, + value: { + serializedName: "value", + type: { + name: "String", }, }, }, - }; + }, +}; -export const SoftwaresList: coreClient.CompositeMapper = { +export const GovernanceRuleEmailNotification: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SoftwaresList", + className: "GovernanceRuleEmailNotification", modelProperties: { - value: { - serializedName: "value", + disableManagerEmailNotification: { + serializedName: "disableManagerEmailNotification", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "Software", - }, - }, + name: "Boolean", }, }, - nextLink: { - serializedName: "nextLink", - readOnly: true, + disableOwnerEmailNotification: { + serializedName: "disableOwnerEmailNotification", type: { - name: "String", + name: "Boolean", }, }, }, }, }; -export const SystemData: coreClient.CompositeMapper = { +export const GovernanceRuleMetadata: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SystemData", + className: "GovernanceRuleMetadata", modelProperties: { createdBy: { serializedName: "createdBy", + readOnly: true, type: { name: "String", }, }, - createdByType: { - serializedName: "createdByType", - type: { - name: "String", - }, - }, - createdAt: { - serializedName: "createdAt", + createdOn: { + serializedName: "createdOn", + readOnly: true, type: { name: "DateTime", }, }, - lastModifiedBy: { - serializedName: "lastModifiedBy", - type: { - name: "String", - }, - }, - lastModifiedByType: { - serializedName: "lastModifiedByType", + updatedBy: { + serializedName: "updatedBy", + readOnly: true, type: { name: "String", }, }, - lastModifiedAt: { - serializedName: "lastModifiedAt", + updatedOn: { + serializedName: "updatedOn", + readOnly: true, type: { name: "DateTime", }, @@ -1415,42 +1312,29 @@ export const SystemData: coreClient.CompositeMapper = { }, }; -export const CustomAssessmentAutomationsListResult: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "CustomAssessmentAutomationsListResult", - modelProperties: { - value: { - serializedName: "value", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "CustomAssessmentAutomation", - }, - }, - }, - }, - nextLink: { - serializedName: "nextLink", - type: { - name: "String", - }, +export const ExecuteGovernanceRuleParams: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ExecuteGovernanceRuleParams", + modelProperties: { + override: { + serializedName: "override", + type: { + name: "Boolean", }, }, }, - }; + }, +}; -export const CustomEntityStoreAssignmentRequest: coreClient.CompositeMapper = { +export const OperationResultAutoGenerated: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CustomEntityStoreAssignmentRequest", + className: "OperationResultAutoGenerated", modelProperties: { - principal: { - serializedName: "properties.principal", + status: { + serializedName: "status", + readOnly: true, type: { name: "String", }, @@ -1459,100 +1343,80 @@ export const CustomEntityStoreAssignmentRequest: coreClient.CompositeMapper = { }, }; -export const CustomEntityStoreAssignmentsListResult: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "CustomEntityStoreAssignmentsListResult", - modelProperties: { - value: { - serializedName: "value", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "CustomEntityStoreAssignment", - }, - }, - }, - }, - nextLink: { - serializedName: "nextLink", - type: { - name: "String", - }, - }, - }, - }, - }; - -export const MdeOnboardingDataList: coreClient.CompositeMapper = { +export const ApplicationsList: coreClient.CompositeMapper = { type: { name: "Composite", - className: "MdeOnboardingDataList", + className: "ApplicationsList", modelProperties: { value: { serializedName: "value", + readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "MdeOnboardingData", + className: "Application", }, }, }, }, - }, - }, -}; - -export const GovernanceAssignmentsList: coreClient.CompositeMapper = { + nextLink: { + serializedName: "nextLink", + readOnly: true, + type: { + name: "String", + }, + }, + }, + }, +}; + +export const SecurityOperatorList: coreClient.CompositeMapper = { type: { name: "Composite", - className: "GovernanceAssignmentsList", + className: "SecurityOperatorList", modelProperties: { value: { serializedName: "value", - readOnly: true, + required: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "GovernanceAssignment", + className: "SecurityOperator", }, }, }, }, - nextLink: { - serializedName: "nextLink", - readOnly: true, - type: { - name: "String", - }, - }, }, }, }; -export const RemediationEta: coreClient.CompositeMapper = { +export const Identity: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RemediationEta", + className: "Identity", modelProperties: { - eta: { - serializedName: "eta", - required: true, + principalId: { + serializedName: "principalId", + readOnly: true, type: { - name: "DateTime", + name: "String", }, }, - justification: { - serializedName: "justification", - required: true, + tenantId: { + serializedName: "tenantId", + readOnly: true, + type: { + name: "String", + }, + }, + type: { + defaultValue: "SystemAssigned", + isConstant: true, + serializedName: "type", type: { name: "String", }, @@ -1561,465 +1425,172 @@ export const RemediationEta: coreClient.CompositeMapper = { }, }; -export const GovernanceEmailNotification: coreClient.CompositeMapper = { +export const RuleResultsInput: coreClient.CompositeMapper = { type: { name: "Composite", - className: "GovernanceEmailNotification", + className: "RuleResultsInput", modelProperties: { - disableManagerEmailNotification: { - serializedName: "disableManagerEmailNotification", + latestScan: { + serializedName: "latestScan", type: { name: "Boolean", }, }, - disableOwnerEmailNotification: { - serializedName: "disableOwnerEmailNotification", + results: { + serializedName: "results", type: { - name: "Boolean", + name: "Sequence", + element: { + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, }, }, }, }, }; -export const GovernanceAssignmentAdditionalData: coreClient.CompositeMapper = { +export const RuleResultsProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "GovernanceAssignmentAdditionalData", + className: "RuleResultsProperties", modelProperties: { - ticketNumber: { - constraints: { - InclusiveMinimum: 0, - }, - serializedName: "ticketNumber", - type: { - name: "Number", - }, - }, - ticketLink: { - serializedName: "ticketLink", - type: { - name: "String", - }, - }, - ticketStatus: { - serializedName: "ticketStatus", + results: { + serializedName: "results", type: { - name: "String", + name: "Sequence", + element: { + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, }, }, }, }, }; -export const GovernanceRuleList: coreClient.CompositeMapper = { +export const RulesResults: coreClient.CompositeMapper = { type: { name: "Composite", - className: "GovernanceRuleList", + className: "RulesResults", modelProperties: { value: { serializedName: "value", - readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "GovernanceRule", + className: "RuleResults", }, }, }, }, - nextLink: { - serializedName: "nextLink", - readOnly: true, - type: { - name: "String", - }, - }, }, }, }; -export const GovernanceRuleOwnerSource: coreClient.CompositeMapper = { +export const RulesResultsInput: coreClient.CompositeMapper = { type: { name: "Composite", - className: "GovernanceRuleOwnerSource", + className: "RulesResultsInput", modelProperties: { - type: { - serializedName: "type", + latestScan: { + serializedName: "latestScan", type: { - name: "String", + name: "Boolean", }, }, - value: { - serializedName: "value", + results: { + serializedName: "results", type: { - name: "String", + name: "Dictionary", + value: { + type: { + name: "Sequence", + element: { + type: { + name: "Sequence", + element: { type: { name: "String" } }, + }, + }, + }, + }, }, }, }, }, }; -export const GovernanceRuleEmailNotification: coreClient.CompositeMapper = { +export const ScanProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "GovernanceRuleEmailNotification", + className: "ScanProperties", modelProperties: { - disableManagerEmailNotification: { - serializedName: "disableManagerEmailNotification", + triggerType: { + serializedName: "triggerType", type: { - name: "Boolean", + name: "String", }, }, - disableOwnerEmailNotification: { - serializedName: "disableOwnerEmailNotification", + state: { + serializedName: "state", type: { - name: "Boolean", + name: "String", }, }, - }, - }, -}; - -export const GovernanceRuleMetadata: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "GovernanceRuleMetadata", - modelProperties: { - createdBy: { - serializedName: "createdBy", - readOnly: true, + server: { + serializedName: "server", type: { name: "String", }, }, - createdOn: { - serializedName: "createdOn", - readOnly: true, + database: { + serializedName: "database", type: { - name: "DateTime", + name: "String", }, }, - updatedBy: { - serializedName: "updatedBy", - readOnly: true, + sqlVersion: { + serializedName: "sqlVersion", type: { name: "String", }, }, - updatedOn: { - serializedName: "updatedOn", - readOnly: true, + startTime: { + serializedName: "startTime", type: { name: "DateTime", }, }, - }, - }, -}; - -export const ExecuteGovernanceRuleParams: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ExecuteGovernanceRuleParams", - modelProperties: { - override: { - serializedName: "override", + endTime: { + serializedName: "endTime", type: { - name: "Boolean", + name: "DateTime", }, }, - }, - }, -}; - -export const OperationResultAutoGenerated: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "OperationResultAutoGenerated", - modelProperties: { - status: { - serializedName: "status", - readOnly: true, + highSeverityFailedRulesCount: { + serializedName: "highSeverityFailedRulesCount", type: { - name: "String", + name: "Number", }, }, - }, - }, -}; - -export const ApplicationsList: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ApplicationsList", - modelProperties: { - value: { - serializedName: "value", - readOnly: true, + mediumSeverityFailedRulesCount: { + serializedName: "mediumSeverityFailedRulesCount", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "Application", - }, - }, - }, - }, - nextLink: { - serializedName: "nextLink", - readOnly: true, - type: { - name: "String", - }, - }, - }, - }, -}; - -export const OperationStatus: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "OperationStatus", - modelProperties: { - code: { - serializedName: "code", - type: { - name: "String", - }, - }, - message: { - serializedName: "message", - type: { - name: "String", - }, - }, - }, - }, -}; - -export const SecurityOperatorList: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "SecurityOperatorList", - modelProperties: { - value: { - serializedName: "value", - required: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SecurityOperator", - }, - }, - }, - }, - }, - }, -}; - -export const Identity: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "Identity", - modelProperties: { - principalId: { - serializedName: "principalId", - readOnly: true, - type: { - name: "String", - }, - }, - tenantId: { - serializedName: "tenantId", - readOnly: true, - type: { - name: "String", - }, - }, - type: { - defaultValue: "SystemAssigned", - isConstant: true, - serializedName: "type", - type: { - name: "String", - }, - }, - }, - }, -}; - -export const RuleResultsInput: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "RuleResultsInput", - modelProperties: { - latestScan: { - serializedName: "latestScan", - type: { - name: "Boolean", - }, - }, - results: { - serializedName: "results", - type: { - name: "Sequence", - element: { - type: { - name: "Sequence", - element: { - type: { - name: "String", - }, - }, - }, - }, - }, - }, - }, - }, -}; - -export const RuleResultsProperties: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "RuleResultsProperties", - modelProperties: { - results: { - serializedName: "results", - type: { - name: "Sequence", - element: { - type: { - name: "Sequence", - element: { - type: { - name: "String", - }, - }, - }, - }, - }, - }, - }, - }, -}; - -export const RulesResults: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "RulesResults", - modelProperties: { - value: { - serializedName: "value", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "RuleResults", - }, - }, - }, - }, - }, - }, -}; - -export const RulesResultsInput: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "RulesResultsInput", - modelProperties: { - latestScan: { - serializedName: "latestScan", - type: { - name: "Boolean", - }, - }, - results: { - serializedName: "results", - type: { - name: "Dictionary", - value: { - type: { - name: "Sequence", - element: { - type: { - name: "Sequence", - element: { type: { name: "String" } }, - }, - }, - }, - }, - }, - }, - }, - }, -}; - -export const ScanProperties: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ScanProperties", - modelProperties: { - triggerType: { - serializedName: "triggerType", - type: { - name: "String", - }, - }, - state: { - serializedName: "state", - type: { - name: "String", - }, - }, - server: { - serializedName: "server", - type: { - name: "String", - }, - }, - database: { - serializedName: "database", - type: { - name: "String", - }, - }, - sqlVersion: { - serializedName: "sqlVersion", - type: { - name: "String", - }, - }, - startTime: { - serializedName: "startTime", - type: { - name: "DateTime", - }, - }, - endTime: { - serializedName: "endTime", - type: { - name: "DateTime", - }, - }, - highSeverityFailedRulesCount: { - serializedName: "highSeverityFailedRulesCount", - type: { - name: "Number", - }, - }, - mediumSeverityFailedRulesCount: { - serializedName: "mediumSeverityFailedRulesCount", - type: { - name: "Number", + name: "Number", }, }, lowSeverityFailedRulesCount: { @@ -2494,97 +2065,95 @@ export const GetSensitivitySettingsResponse: coreClient.CompositeMapper = { }, }; -export const GetSensitivitySettingsResponseProperties: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "GetSensitivitySettingsResponseProperties", - modelProperties: { - sensitiveInfoTypesIds: { - serializedName: "sensitiveInfoTypesIds", - type: { - name: "Sequence", - element: { - type: { - name: "Uuid", - }, - }, +export const GetSensitivitySettingsResponseProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "GetSensitivitySettingsResponseProperties", + modelProperties: { + sensitiveInfoTypesIds: { + serializedName: "sensitiveInfoTypesIds", + type: { + name: "Sequence", + element: { + type: { + name: "Uuid", + }, }, }, - sensitivityThresholdLabelOrder: { - serializedName: "sensitivityThresholdLabelOrder", - type: { - name: "Number", - }, + }, + sensitivityThresholdLabelOrder: { + serializedName: "sensitivityThresholdLabelOrder", + type: { + name: "Number", }, - sensitivityThresholdLabelId: { - serializedName: "sensitivityThresholdLabelId", - type: { - name: "Uuid", - }, + }, + sensitivityThresholdLabelId: { + serializedName: "sensitivityThresholdLabelId", + type: { + name: "Uuid", }, - mipInformation: { - serializedName: "mipInformation", - type: { - name: "Composite", - className: "GetSensitivitySettingsResponsePropertiesMipInformation", - }, + }, + mipInformation: { + serializedName: "mipInformation", + type: { + name: "Composite", + className: "GetSensitivitySettingsResponsePropertiesMipInformation", }, }, }, - }; + }, +}; -export const GetSensitivitySettingsResponsePropertiesMipInformation: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "GetSensitivitySettingsResponsePropertiesMipInformation", - modelProperties: { - mipIntegrationStatus: { - serializedName: "mipIntegrationStatus", - type: { - name: "String", - }, +export const GetSensitivitySettingsResponsePropertiesMipInformation: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "GetSensitivitySettingsResponsePropertiesMipInformation", + modelProperties: { + mipIntegrationStatus: { + serializedName: "mipIntegrationStatus", + type: { + name: "String", }, - labels: { - serializedName: "labels", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "Label", - }, + }, + labels: { + serializedName: "labels", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Label", }, }, }, - customInfoTypes: { - serializedName: "customInfoTypes", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "InfoType", - }, + }, + customInfoTypes: { + serializedName: "customInfoTypes", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "InfoType", }, }, }, - builtInInfoTypes: { - serializedName: "builtInInfoTypes", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "BuiltInInfoType", - }, + }, + builtInInfoTypes: { + serializedName: "builtInInfoTypes", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "BuiltInInfoType", }, }, }, }, }, - }; + }, +}; export const Label: coreClient.CompositeMapper = { type: { @@ -2985,25 +2554,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,127 +2583,100 @@ 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", + }, + }, +}; + +export const AutomationRuleSet: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AutomationRuleSet", + modelProperties: { + rules: { + serializedName: "rules", type: { - name: "String", + name: "Sequence", + element: { + type: { + name: "Composite", + className: "AutomationTriggeringRule", + }, + }, }, }, }, }, }; -export const CategoryConfiguration: coreClient.CompositeMapper = { +export const AutomationTriggeringRule: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CategoryConfiguration", + className: "AutomationTriggeringRule", modelProperties: { - minimumSeverityLevel: { - serializedName: "minimumSeverityLevel", + propertyJPath: { + serializedName: "propertyJPath", type: { name: "String", }, }, - category: { - serializedName: "category", + propertyType: { + serializedName: "propertyType", type: { name: "String", }, }, - }, - }, -}; - -export const TargetBranchConfiguration: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "TargetBranchConfiguration", - modelProperties: { - branchNames: { - serializedName: "branchNames", + expectedValue: { + serializedName: "expectedValue", type: { - name: "Sequence", - element: { - type: { - name: "String", - }, - }, + name: "String", }, }, - annotateDefaultBranch: { - serializedName: "annotateDefaultBranch", + operator: { + serializedName: "operator", type: { name: "String", }, @@ -3141,28 +2685,49 @@ export const TargetBranchConfiguration: coreClient.CompositeMapper = { }, }; -export const ResourceAutoGenerated: coreClient.CompositeMapper = { +export const AutomationAction: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ResourceAutoGenerated", + className: "AutomationAction", + uberParent: "AutomationAction", + polymorphicDiscriminator: { + serializedName: "actionType", + clientName: "actionType", + }, modelProperties: { - id: { - serializedName: "id", - readOnly: true, + actionType: { + serializedName: "actionType", + required: true, type: { name: "String", }, }, - name: { - serializedName: "name", - readOnly: true, + }, + }, +}; + +export const AzureTrackedResourceLocation: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AzureTrackedResourceLocation", + modelProperties: { + location: { + serializedName: "location", type: { name: "String", }, }, - type: { - serializedName: "type", - readOnly: true, + }, + }, +}; + +export const KindAutoGenerated: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "KindAutoGenerated", + modelProperties: { + kind: { + serializedName: "kind", type: { name: "String", }, @@ -3171,70 +2736,126 @@ export const ResourceAutoGenerated: coreClient.CompositeMapper = { }, }; -export const ErrorResponseAutoGenerated: coreClient.CompositeMapper = { +export const ETag: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ErrorResponseAutoGenerated", + className: "ETag", modelProperties: { - error: { - serializedName: "error", + etag: { + serializedName: "etag", type: { - name: "Composite", - className: "ErrorDetailAutoGenerated", + name: "String", }, }, }, }, }; -export const ErrorDetailAutoGenerated: coreClient.CompositeMapper = { +export const Tags: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ErrorDetailAutoGenerated", + className: "Tags", modelProperties: { - code: { - serializedName: "code", - readOnly: true, + tags: { + serializedName: "tags", type: { - name: "String", + name: "Dictionary", + value: { type: { name: "String" } }, }, }, - message: { - serializedName: "message", - readOnly: true, + }, + }, +}; + +export const AutomationValidationStatus: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AutomationValidationStatus", + modelProperties: { + isValid: { + serializedName: "isValid", type: { - name: "String", + name: "Boolean", }, }, - target: { - serializedName: "target", - readOnly: true, + message: { + serializedName: "message", type: { name: "String", }, }, - details: { - serializedName: "details", - readOnly: true, + }, + }, +}; + +export const SecurityContactList: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SecurityContactList", + modelProperties: { + value: { + serializedName: "value", + required: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "ErrorDetailAutoGenerated", + className: "SecurityContact", }, }, }, }, - additionalInfo: { - serializedName: "additionalInfo", + nextLink: { + serializedName: "nextLink", readOnly: true, + type: { + name: "String", + }, + }, + }, + }, +}; + +export const NotificationsSource: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "NotificationsSource", + uberParent: "NotificationsSource", + polymorphicDiscriminator: { + serializedName: "sourceType", + clientName: "sourceType", + }, + 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: "Composite", - className: "ErrorAdditionalInfo", + name: "String", }, }, }, @@ -3243,25 +2864,27 @@ export const ErrorDetailAutoGenerated: coreClient.CompositeMapper = { }, }; -export const AzureDevOpsProjectListResponse: coreClient.CompositeMapper = { +export const SecurityConnectorsList: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AzureDevOpsProjectListResponse", + className: "SecurityConnectorsList", modelProperties: { value: { serializedName: "value", + required: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "AzureDevOpsProject", + className: "SecurityConnector", }, }, }, }, nextLink: { serializedName: "nextLink", + readOnly: true, type: { name: "String", }, @@ -3270,80 +2893,76 @@ export const AzureDevOpsProjectListResponse: coreClient.CompositeMapper = { }, }; -export const AzureDevOpsProjectProperties: coreClient.CompositeMapper = { +export const CloudOffering: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AzureDevOpsProjectProperties", + className: "CloudOffering", + uberParent: "CloudOffering", + polymorphicDiscriminator: { + serializedName: "offeringType", + clientName: "offeringType", + }, 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", + offeringType: { + serializedName: "offeringType", + required: true, type: { name: "String", }, }, - projectId: { - serializedName: "projectId", + description: { + serializedName: "description", 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 AzureDevOpsRepositoryListResponse: coreClient.CompositeMapper = { +export const OperationListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AzureDevOpsRepositoryListResponse", + className: "OperationListResult", modelProperties: { value: { serializedName: "value", + readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "AzureDevOpsRepository", + className: "Operation", }, }, }, }, nextLink: { serializedName: "nextLink", + readOnly: true, type: { name: "String", }, @@ -3352,244 +2971,277 @@ export const AzureDevOpsRepositoryListResponse: coreClient.CompositeMapper = { }, }; -export const AzureDevOpsRepositoryProperties: coreClient.CompositeMapper = { +export const Operation: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AzureDevOpsRepositoryProperties", + className: "Operation", modelProperties: { - provisioningStatusMessage: { - serializedName: "provisioningStatusMessage", + name: { + serializedName: "name", readOnly: true, type: { name: "String", }, }, - provisioningStatusUpdateTimeUtc: { - serializedName: "provisioningStatusUpdateTimeUtc", + isDataAction: { + serializedName: "isDataAction", readOnly: true, type: { - name: "DateTime", + name: "Boolean", }, }, - provisioningState: { - serializedName: "provisioningState", + display: { + serializedName: "display", type: { - name: "String", + name: "Composite", + className: "OperationDisplay", }, }, - parentOrgName: { - serializedName: "parentOrgName", + origin: { + serializedName: "origin", + readOnly: true, type: { name: "String", }, }, - parentProjectName: { - serializedName: "parentProjectName", + actionType: { + serializedName: "actionType", + readOnly: true, type: { name: "String", }, }, - repoId: { - serializedName: "repoId", + }, + }, +}; + +export const OperationDisplay: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "OperationDisplay", + modelProperties: { + provider: { + serializedName: "provider", readOnly: true, type: { name: "String", }, }, - repoUrl: { - serializedName: "repoUrl", + resource: { + serializedName: "resource", readOnly: true, type: { name: "String", }, }, - visibility: { - serializedName: "visibility", + operation: { + serializedName: "operation", readOnly: true, type: { name: "String", }, }, - onboardingState: { - serializedName: "onboardingState", + description: { + serializedName: "description", + readOnly: true, type: { name: "String", }, }, - actionableRemediation: { - serializedName: "actionableRemediation", + }, + }, +}; + +export const ErrorResponseAutoGenerated: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ErrorResponseAutoGenerated", + modelProperties: { + error: { + serializedName: "error", type: { name: "Composite", - className: "ActionableRemediation", + className: "ErrorDetailAutoGenerated", }, }, }, }, }; -export const DevOpsConfigurationListResponse: coreClient.CompositeMapper = { +export const ErrorDetailAutoGenerated: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DevOpsConfigurationListResponse", + className: "ErrorDetailAutoGenerated", modelProperties: { - value: { - serializedName: "value", + code: { + serializedName: "code", + readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "DevOpsConfiguration", - }, - }, + name: "String", }, }, - nextLink: { - serializedName: "nextLink", + message: { + serializedName: "message", + readOnly: true, type: { name: "String", }, }, - }, - }, -}; - -export const DevOpsConfigurationProperties: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "DevOpsConfigurationProperties", - modelProperties: { - provisioningStatusMessage: { - serializedName: "provisioningStatusMessage", + target: { + serializedName: "target", readOnly: true, type: { name: "String", }, }, - provisioningStatusUpdateTimeUtc: { - serializedName: "provisioningStatusUpdateTimeUtc", + details: { + serializedName: "details", readOnly: true, type: { - name: "DateTime", + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ErrorDetailAutoGenerated", + }, + }, }, }, - provisioningState: { - serializedName: "provisioningState", + additionalInfo: { + serializedName: "additionalInfo", + readOnly: true, type: { - name: "String", + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ErrorAdditionalInfo", + }, + }, }, }, - authorization: { - serializedName: "authorization", + }, + }, +}; + +export const ParametersSchema: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ParametersSchema", + modelProperties: { + scopes: { + serializedName: "scopes", + required: true, type: { - name: "Composite", - className: "Authorization", + name: "Sequence", + element: { + type: { + name: "String", + }, + }, }, }, - autoDiscovery: { - serializedName: "autoDiscovery", + scenarioName: { + serializedName: "scenarioName", + required: true, type: { name: "String", }, }, - topLevelInventoryList: { - serializedName: "topLevelInventoryList", + scenarioParameters: { + serializedName: "scenarioParameters", + required: true, type: { - name: "Sequence", - element: { - type: { - name: "String", - }, - }, + name: "Dictionary", + value: { type: { name: "any" } }, }, }, }, }, }; -export const Authorization: coreClient.CompositeMapper = { +export const ScenarioResponse: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Authorization", + className: "ScenarioResponse", modelProperties: { - code: { - serializedName: "code", + scenarioResult: { + serializedName: "scenarioResult", type: { - name: "String", + name: "Dictionary", + value: { type: { name: "any" } }, }, }, }, }, }; -export const GitHubOwnerListResponse: coreClient.CompositeMapper = { +export const ErrorResponseAutoGenerated2: coreClient.CompositeMapper = { type: { name: "Composite", - className: "GitHubOwnerListResponse", + className: "ErrorResponseAutoGenerated2", modelProperties: { - value: { - serializedName: "value", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "GitHubOwner", - }, - }, - }, - }, - nextLink: { - serializedName: "nextLink", + error: { + serializedName: "error", type: { - name: "String", + name: "Composite", + className: "ErrorModel", }, }, }, }, }; -export const GitHubOwnerProperties: coreClient.CompositeMapper = { +export const ErrorModel: coreClient.CompositeMapper = { type: { name: "Composite", - className: "GitHubOwnerProperties", + className: "ErrorModel", modelProperties: { - provisioningStatusMessage: { - serializedName: "provisioningStatusMessage", - readOnly: true, + code: { + serializedName: "code", + required: true, type: { name: "String", }, }, - provisioningStatusUpdateTimeUtc: { - serializedName: "provisioningStatusUpdateTimeUtc", - readOnly: true, - type: { - name: "DateTime", - }, - }, - provisioningState: { - serializedName: "provisioningState", + message: { + serializedName: "message", + required: true, type: { name: "String", }, }, - ownerUrl: { - serializedName: "ownerUrl", - readOnly: true, + details: { + serializedName: "details", type: { - name: "String", + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ErrorDetails", + }, + }, }, }, - gitHubInternalId: { - serializedName: "gitHubInternalId", - readOnly: true, + }, + }, +}; + +export const ErrorDetails: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ErrorDetails", + modelProperties: { + code: { + serializedName: "code", + required: true, type: { name: "String", }, }, - onboardingState: { - serializedName: "onboardingState", + message: { + serializedName: "message", + required: true, type: { name: "String", }, @@ -3598,25 +3250,27 @@ export const GitHubOwnerProperties: coreClient.CompositeMapper = { }, }; -export const GitHubRepositoryListResponse: coreClient.CompositeMapper = { +export const ComplianceResultList: coreClient.CompositeMapper = { type: { name: "Composite", - className: "GitHubRepositoryListResponse", + className: "ComplianceResultList", modelProperties: { value: { serializedName: "value", + required: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "GitHubRepository", + className: "ComplianceResult", }, }, }, }, nextLink: { serializedName: "nextLink", + readOnly: true, type: { name: "String", }, @@ -3625,67 +3279,68 @@ export const GitHubRepositoryListResponse: coreClient.CompositeMapper = { }, }; -export const GitHubRepositoryProperties: coreClient.CompositeMapper = { +export const DeviceSecurityGroupList: coreClient.CompositeMapper = { type: { name: "Composite", - className: "GitHubRepositoryProperties", + className: "DeviceSecurityGroupList", modelProperties: { - provisioningStatusMessage: { - serializedName: "provisioningStatusMessage", - readOnly: true, - type: { - name: "String", - }, - }, - provisioningStatusUpdateTimeUtc: { - serializedName: "provisioningStatusUpdateTimeUtc", - readOnly: true, - type: { - name: "DateTime", - }, - }, - provisioningState: { - serializedName: "provisioningState", + value: { + serializedName: "value", type: { - name: "String", + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DeviceSecurityGroup", + }, + }, }, }, - repoId: { - serializedName: "repoId", + nextLink: { + serializedName: "nextLink", readOnly: true, type: { name: "String", }, }, - repoName: { - serializedName: "repoName", + }, + }, +}; + +export const CustomAlertRule: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "CustomAlertRule", + uberParent: "CustomAlertRule", + polymorphicDiscriminator: { + serializedName: "ruleType", + clientName: "ruleType", + }, + modelProperties: { + displayName: { + serializedName: "displayName", readOnly: true, type: { name: "String", }, }, - repoFullName: { - serializedName: "repoFullName", + description: { + serializedName: "description", readOnly: true, type: { name: "String", }, }, - onboardingState: { - serializedName: "onboardingState", - type: { - name: "String", - }, - }, - repoUrl: { - serializedName: "repoUrl", - readOnly: true, + isEnabled: { + serializedName: "isEnabled", + required: true, type: { - name: "String", + name: "Boolean", }, }, - parentOwnerName: { - serializedName: "parentOwnerName", + ruleType: { + serializedName: "ruleType", + required: true, type: { name: "String", }, @@ -3694,25 +3349,27 @@ export const GitHubRepositoryProperties: coreClient.CompositeMapper = { }, }; -export const GitLabGroupListResponse: coreClient.CompositeMapper = { +export const IoTSecuritySolutionAnalyticsModelList: coreClient.CompositeMapper = { type: { name: "Composite", - className: "GitLabGroupListResponse", + className: "IoTSecuritySolutionAnalyticsModelList", modelProperties: { value: { serializedName: "value", + required: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "GitLabGroup", + className: "IoTSecuritySolutionAnalyticsModel", }, }, }, }, nextLink: { serializedName: "nextLink", + readOnly: true, type: { name: "String", }, @@ -3721,225 +3378,143 @@ export const GitLabGroupListResponse: coreClient.CompositeMapper = { }, }; -export const GitLabGroupProperties: coreClient.CompositeMapper = { +export const IoTSeverityMetrics: coreClient.CompositeMapper = { type: { name: "Composite", - className: "GitLabGroupProperties", + className: "IoTSeverityMetrics", modelProperties: { - provisioningStatusMessage: { - serializedName: "provisioningStatusMessage", - readOnly: true, + high: { + serializedName: "high", type: { - name: "String", + name: "Number", }, }, - provisioningStatusUpdateTimeUtc: { - serializedName: "provisioningStatusUpdateTimeUtc", - readOnly: true, + medium: { + serializedName: "medium", type: { - name: "DateTime", + name: "Number", }, }, - provisioningState: { - serializedName: "provisioningState", - type: { - name: "String", - }, - }, - fullyQualifiedName: { - serializedName: "fullyQualifiedName", - readOnly: true, - type: { - name: "String", - }, - }, - fullyQualifiedFriendlyName: { - serializedName: "fullyQualifiedFriendlyName", - readOnly: true, - type: { - name: "String", - }, - }, - url: { - serializedName: "url", - readOnly: true, - type: { - name: "String", - }, - }, - onboardingState: { - serializedName: "onboardingState", + low: { + serializedName: "low", type: { - name: "String", + name: "Number", }, }, }, }, }; -export const GitLabProjectListResponse: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "GitLabProjectListResponse", - modelProperties: { - value: { - serializedName: "value", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "GitLabProject", - }, +export const IoTSecuritySolutionAnalyticsModelPropertiesDevicesMetricsItem: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "IoTSecuritySolutionAnalyticsModelPropertiesDevicesMetricsItem", + modelProperties: { + date: { + serializedName: "date", + type: { + name: "DateTime", }, }, - }, - nextLink: { - serializedName: "nextLink", - type: { - name: "String", + devicesMetrics: { + serializedName: "devicesMetrics", + type: { + name: "Composite", + className: "IoTSeverityMetrics", + }, }, }, }, - }, -}; + }; -export const GitLabProjectProperties: coreClient.CompositeMapper = { +export const IoTSecurityAlertedDevice: coreClient.CompositeMapper = { type: { name: "Composite", - className: "GitLabProjectProperties", + className: "IoTSecurityAlertedDevice", modelProperties: { - provisioningStatusMessage: { - serializedName: "provisioningStatusMessage", - readOnly: true, - type: { - name: "String", - }, - }, - provisioningStatusUpdateTimeUtc: { - serializedName: "provisioningStatusUpdateTimeUtc", + deviceId: { + serializedName: "deviceId", readOnly: true, - type: { - name: "DateTime", - }, - }, - provisioningState: { - serializedName: "provisioningState", type: { name: "String", }, }, - fullyQualifiedName: { - serializedName: "fullyQualifiedName", + alertsCount: { + serializedName: "alertsCount", readOnly: true, type: { - name: "String", + name: "Number", }, }, - fullyQualifiedFriendlyName: { - serializedName: "fullyQualifiedFriendlyName", + }, + }, +}; + +export const IoTSecurityDeviceAlert: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "IoTSecurityDeviceAlert", + modelProperties: { + alertDisplayName: { + serializedName: "alertDisplayName", readOnly: true, type: { name: "String", }, }, - fullyQualifiedParentGroupName: { - serializedName: "fullyQualifiedParentGroupName", + reportedSeverity: { + serializedName: "reportedSeverity", readOnly: true, type: { name: "String", }, }, - url: { - serializedName: "url", + alertsCount: { + serializedName: "alertsCount", readOnly: true, type: { - name: "String", - }, - }, - onboardingState: { - serializedName: "onboardingState", - type: { - name: "String", + name: "Number", }, }, }, }, }; -export const OperationStatusResult: coreClient.CompositeMapper = { +export const IoTSecurityDeviceRecommendation: coreClient.CompositeMapper = { type: { name: "Composite", - className: "OperationStatusResult", + className: "IoTSecurityDeviceRecommendation", modelProperties: { - id: { - serializedName: "id", - type: { - name: "String", - }, - }, - name: { - serializedName: "name", + recommendationDisplayName: { + serializedName: "recommendationDisplayName", + readOnly: true, type: { name: "String", }, }, - status: { - serializedName: "status", - required: true, + reportedSeverity: { + serializedName: "reportedSeverity", + readOnly: true, type: { name: "String", }, }, - percentComplete: { - constraints: { - InclusiveMaximum: 100, - InclusiveMinimum: 0, - }, - serializedName: "percentComplete", + devicesCount: { + serializedName: "devicesCount", + readOnly: true, 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 IoTSecurityAggregatedAlertList: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SecurityConnectorsList", + className: "IoTSecurityAggregatedAlertList", modelProperties: { value: { serializedName: "value", @@ -3949,7 +3524,7 @@ export const SecurityConnectorsList: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "SecurityConnector", + className: "IoTSecurityAggregatedAlert", }, }, }, @@ -3965,25 +3540,27 @@ export const SecurityConnectorsList: coreClient.CompositeMapper = { }, }; -export const CloudOffering: coreClient.CompositeMapper = { +export const IoTSecurityAggregatedAlertPropertiesTopDevicesListItem: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CloudOffering", - uberParent: "CloudOffering", - polymorphicDiscriminator: { - serializedName: "offeringType", - clientName: "offeringType", - }, + className: "IoTSecurityAggregatedAlertPropertiesTopDevicesListItem", modelProperties: { - offeringType: { - serializedName: "offeringType", - required: true, + deviceId: { + serializedName: "deviceId", + readOnly: true, type: { name: "String", }, }, - description: { - serializedName: "description", + alertsCount: { + serializedName: "alertsCount", + readOnly: true, + type: { + name: "Number", + }, + }, + lastOccurrence: { + serializedName: "lastOccurrence", readOnly: true, type: { name: "String", @@ -3993,31 +3570,26 @@ export const CloudOffering: coreClient.CompositeMapper = { }, }; -export const EnvironmentData: coreClient.CompositeMapper = { +export const TagsResource: coreClient.CompositeMapper = { type: { name: "Composite", - className: "EnvironmentData", - uberParent: "EnvironmentData", - polymorphicDiscriminator: { - serializedName: "environmentType", - clientName: "environmentType", - }, + className: "TagsResource", modelProperties: { - environmentType: { - serializedName: "environmentType", - required: true, + tags: { + serializedName: "tags", type: { - name: "String", + name: "Dictionary", + value: { type: { name: "String" } }, }, }, }, }, }; -export const ComplianceResultList: coreClient.CompositeMapper = { +export const IoTSecurityAggregatedRecommendationList: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ComplianceResultList", + className: "IoTSecurityAggregatedRecommendationList", modelProperties: { value: { serializedName: "value", @@ -4027,7 +3599,7 @@ export const ComplianceResultList: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ComplianceResult", + className: "IoTSecurityAggregatedRecommendation", }, }, }, @@ -4043,19 +3615,20 @@ export const ComplianceResultList: coreClient.CompositeMapper = { }, }; -export const DeviceSecurityGroupList: coreClient.CompositeMapper = { +export const IoTSecuritySolutionsList: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DeviceSecurityGroupList", + className: "IoTSecuritySolutionsList", modelProperties: { value: { serializedName: "value", + required: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "DeviceSecurityGroup", + className: "IoTSecuritySolutionModel", }, }, }, @@ -4071,39 +3644,61 @@ export const DeviceSecurityGroupList: coreClient.CompositeMapper = { }, }; -export const CustomAlertRule: coreClient.CompositeMapper = { +export const UserDefinedResourcesProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CustomAlertRule", - uberParent: "CustomAlertRule", - polymorphicDiscriminator: { - serializedName: "ruleType", - clientName: "ruleType", - }, + className: "UserDefinedResourcesProperties", modelProperties: { - displayName: { - serializedName: "displayName", - readOnly: true, + query: { + serializedName: "query", + required: true, + nullable: true, type: { name: "String", }, }, - description: { - serializedName: "description", - readOnly: true, + querySubscriptions: { + serializedName: "querySubscriptions", + required: true, + nullable: true, type: { - name: "String", + 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", + }, + }, }, }, - isEnabled: { - serializedName: "isEnabled", + }, + }, +}; + +export const RecommendationConfigurationProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "RecommendationConfigurationProperties", + modelProperties: { + recommendationType: { + serializedName: "recommendationType", required: true, type: { - name: "Boolean", + name: "String", }, }, - ruleType: { - serializedName: "ruleType", + name: { + serializedName: "name", + readOnly: true, + type: { + name: "String", + }, + }, + status: { + defaultValue: "Enabled", + serializedName: "status", required: true, type: { name: "String", @@ -4113,184 +3708,169 @@ export const CustomAlertRule: coreClient.CompositeMapper = { }, }; -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", - }, - }, - }, - }, - nextLink: { - serializedName: "nextLink", - readOnly: true, - type: { - name: "String", - }, - }, - }, - }, - }; - -export const IoTSeverityMetrics: coreClient.CompositeMapper = { +export const AdditionalWorkspacesProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "IoTSeverityMetrics", + className: "AdditionalWorkspacesProperties", modelProperties: { - high: { - serializedName: "high", + workspace: { + serializedName: "workspace", type: { - name: "Number", + name: "String", }, }, - medium: { - serializedName: "medium", + type: { + defaultValue: "Sentinel", + serializedName: "type", type: { - name: "Number", + name: "String", }, }, - low: { - serializedName: "low", + dataTypes: { + serializedName: "dataTypes", type: { - name: "Number", + 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", - }, - }, - }, - }, - }; - -export const IoTSecurityAlertedDevice: coreClient.CompositeMapper = { +export const AllowedConnectionsList: coreClient.CompositeMapper = { type: { name: "Composite", - className: "IoTSecurityAlertedDevice", + className: "AllowedConnectionsList", modelProperties: { - deviceId: { - serializedName: "deviceId", + value: { + serializedName: "value", readOnly: true, type: { - name: "String", + name: "Sequence", + element: { + type: { + name: "Composite", + className: "AllowedConnectionsResource", + }, + }, }, }, - alertsCount: { - serializedName: "alertsCount", + nextLink: { + serializedName: "nextLink", readOnly: true, type: { - name: "Number", + name: "String", }, }, }, }, }; -export const IoTSecurityDeviceAlert: coreClient.CompositeMapper = { +export const ConnectableResource: coreClient.CompositeMapper = { type: { name: "Composite", - className: "IoTSecurityDeviceAlert", + className: "ConnectableResource", modelProperties: { - alertDisplayName: { - serializedName: "alertDisplayName", + id: { + serializedName: "id", readOnly: true, type: { name: "String", }, }, - reportedSeverity: { - serializedName: "reportedSeverity", + inboundConnectedResources: { + serializedName: "inboundConnectedResources", readOnly: true, type: { - name: "String", + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ConnectedResource", + }, + }, }, }, - alertsCount: { - serializedName: "alertsCount", + outboundConnectedResources: { + serializedName: "outboundConnectedResources", readOnly: true, type: { - name: "Number", + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ConnectedResource", + }, + }, }, }, }, }, }; -export const IoTSecurityDeviceRecommendation: coreClient.CompositeMapper = { +export const ConnectedResource: coreClient.CompositeMapper = { type: { name: "Composite", - className: "IoTSecurityDeviceRecommendation", + className: "ConnectedResource", modelProperties: { - recommendationDisplayName: { - serializedName: "recommendationDisplayName", + connectedResourceId: { + serializedName: "connectedResourceId", readOnly: true, type: { name: "String", }, }, - reportedSeverity: { - serializedName: "reportedSeverity", + tcpPorts: { + serializedName: "tcpPorts", readOnly: true, type: { name: "String", }, }, - devicesCount: { - serializedName: "devicesCount", + udpPorts: { + serializedName: "udpPorts", readOnly: true, type: { - name: "Number", + name: "String", }, }, }, }, }; -export const IoTSecurityAggregatedAlertList: coreClient.CompositeMapper = { +export const Location: coreClient.CompositeMapper = { type: { name: "Composite", - className: "IoTSecurityAggregatedAlertList", + className: "Location", + modelProperties: { + location: { + serializedName: "location", + readOnly: true, + type: { + name: "String", + }, + }, + }, + }, +}; + +export const DiscoveredSecuritySolutionList: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DiscoveredSecuritySolutionList", modelProperties: { value: { serializedName: "value", - required: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "IoTSecurityAggregatedAlert", + className: "DiscoveredSecuritySolution", }, }, }, @@ -4306,97 +3886,62 @@ 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", +export const ExternalSecuritySolutionList: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ExternalSecuritySolutionList", + modelProperties: { + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ExternalSecuritySolution", + }, }, }, - lastOccurrence: { - serializedName: "lastOccurrence", - readOnly: true, - type: { - name: "String", - }, + }, + nextLink: { + serializedName: "nextLink", + readOnly: true, + type: { + name: "String", }, }, }, - }; + }, +}; -export const TagsResource: coreClient.CompositeMapper = { +export const ExternalSecuritySolutionKindAutoGenerated: coreClient.CompositeMapper = { type: { name: "Composite", - className: "TagsResource", + className: "ExternalSecuritySolutionKindAutoGenerated", modelProperties: { - tags: { - serializedName: "tags", + kind: { + serializedName: "kind", 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", - }, - }, - }, - }, - }; - -export const IoTSecuritySolutionsList: coreClient.CompositeMapper = { +export const JitNetworkAccessPoliciesList: coreClient.CompositeMapper = { type: { name: "Composite", - className: "IoTSecuritySolutionsList", + className: "JitNetworkAccessPoliciesList", modelProperties: { value: { serializedName: "value", - required: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "IoTSecuritySolutionModel", + className: "JitNetworkAccessPolicy", }, }, }, @@ -4412,93 +3957,72 @@ export const IoTSecuritySolutionsList: coreClient.CompositeMapper = { }, }; -export const UserDefinedResourcesProperties: coreClient.CompositeMapper = { +export const JitNetworkAccessPolicyVirtualMachine: coreClient.CompositeMapper = { type: { name: "Composite", - className: "UserDefinedResourcesProperties", + className: "JitNetworkAccessPolicyVirtualMachine", modelProperties: { - query: { - serializedName: "query", + id: { + serializedName: "id", required: true, - nullable: true, type: { name: "String", }, }, - querySubscriptions: { - serializedName: "querySubscriptions", + ports: { + serializedName: "ports", 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", + name: "Composite", + className: "JitNetworkAccessPortRule", }, }, }, }, - }, - }, -}; - -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", - }, + publicIpAddress: { + serializedName: "publicIpAddress", + type: { + name: "String", }, }, }, - }; + }, +}; -export const AdditionalWorkspacesProperties: coreClient.CompositeMapper = { +export const JitNetworkAccessPortRule: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AdditionalWorkspacesProperties", + className: "JitNetworkAccessPortRule", modelProperties: { - workspace: { - serializedName: "workspace", + number: { + constraints: { + InclusiveMaximum: 65535, + InclusiveMinimum: 0, + }, + serializedName: "number", + required: true, + type: { + name: "Number", + }, + }, + protocol: { + serializedName: "protocol", + required: true, type: { name: "String", }, }, - type: { - defaultValue: "Sentinel", - serializedName: "type", + allowedSourceAddressPrefix: { + serializedName: "allowedSourceAddressPrefix", type: { name: "String", }, }, - dataTypes: { - serializedName: "dataTypes", + allowedSourceAddressPrefixes: { + serializedName: "allowedSourceAddressPrefixes", type: { name: "Sequence", element: { @@ -4508,29 +4032,51 @@ export const AdditionalWorkspacesProperties: coreClient.CompositeMapper = { }, }, }, + maxRequestAccessDuration: { + serializedName: "maxRequestAccessDuration", + required: true, + type: { + name: "String", + }, + }, }, }, }; -export const AdaptiveNetworkHardeningsList: coreClient.CompositeMapper = { +export const JitNetworkAccessRequest: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AdaptiveNetworkHardeningsList", + className: "JitNetworkAccessRequest", modelProperties: { - value: { - serializedName: "value", + virtualMachines: { + serializedName: "virtualMachines", + required: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "AdaptiveNetworkHardening", + className: "JitNetworkAccessRequestVirtualMachine", }, }, }, }, - nextLink: { - serializedName: "nextLink", + startTimeUtc: { + serializedName: "startTimeUtc", + required: true, + type: { + name: "DateTime", + }, + }, + requestor: { + serializedName: "requestor", + required: true, + type: { + name: "String", + }, + }, + justification: { + serializedName: "justification", type: { name: "String", }, @@ -4539,35 +4085,59 @@ export const AdaptiveNetworkHardeningsList: coreClient.CompositeMapper = { }, }; -export const Rule: coreClient.CompositeMapper = { +export const JitNetworkAccessRequestVirtualMachine: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Rule", + className: "JitNetworkAccessRequestVirtualMachine", modelProperties: { - name: { - serializedName: "name", + id: { + serializedName: "id", + required: true, type: { name: "String", }, }, - direction: { - serializedName: "direction", + ports: { + serializedName: "ports", + required: true, type: { - name: "String", + name: "Sequence", + element: { + type: { + name: "Composite", + className: "JitNetworkAccessRequestPort", + }, + }, }, }, - destinationPort: { + }, + }, +}; + +export const JitNetworkAccessRequestPort: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "JitNetworkAccessRequestPort", + modelProperties: { + number: { constraints: { InclusiveMaximum: 65535, InclusiveMinimum: 0, }, - serializedName: "destinationPort", + serializedName: "number", + required: true, type: { name: "Number", }, }, - protocols: { - serializedName: "protocols", + allowedSourceAddressPrefix: { + serializedName: "allowedSourceAddressPrefix", + type: { + name: "String", + }, + }, + allowedSourceAddressPrefixes: { + serializedName: "allowedSourceAddressPrefixes", type: { name: "Sequence", element: { @@ -4577,39 +4147,86 @@ export const Rule: coreClient.CompositeMapper = { }, }, }, - ipAddresses: { - serializedName: "ipAddresses", + 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 JitNetworkAccessPolicyInitiateRequest: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "JitNetworkAccessPolicyInitiateRequest", + modelProperties: { + virtualMachines: { + serializedName: "virtualMachines", + required: true, type: { name: "Sequence", element: { type: { - name: "String", + name: "Composite", + className: "JitNetworkAccessPolicyInitiateVirtualMachine", }, }, }, }, + justification: { + serializedName: "justification", + type: { + name: "String", + }, + }, }, }, }; -export const EffectiveNetworkSecurityGroups: coreClient.CompositeMapper = { +export const JitNetworkAccessPolicyInitiateVirtualMachine: coreClient.CompositeMapper = { type: { name: "Composite", - className: "EffectiveNetworkSecurityGroups", + className: "JitNetworkAccessPolicyInitiateVirtualMachine", modelProperties: { - networkInterface: { - serializedName: "networkInterface", + id: { + serializedName: "id", + required: true, type: { name: "String", }, }, - networkSecurityGroups: { - serializedName: "networkSecurityGroups", + ports: { + serializedName: "ports", + required: true, type: { name: "Sequence", element: { type: { - name: "String", + name: "Composite", + className: "JitNetworkAccessPolicyInitiatePort", }, }, }, @@ -4618,45 +4235,43 @@ export const EffectiveNetworkSecurityGroups: coreClient.CompositeMapper = { }, }; -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", - }, - }, - }, +export const JitNetworkAccessPolicyInitiatePort: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "JitNetworkAccessPolicyInitiatePort", + modelProperties: { + number: { + constraints: { + InclusiveMaximum: 65535, + InclusiveMinimum: 0, }, - networkSecurityGroups: { - serializedName: "networkSecurityGroups", - required: true, - type: { - name: "Sequence", - element: { - type: { - name: "String", - }, - }, - }, + serializedName: "number", + required: true, + type: { + name: "Number", + }, + }, + allowedSourceAddressPrefix: { + serializedName: "allowedSourceAddressPrefix", + type: { + name: "String", + }, + }, + endTimeUtc: { + serializedName: "endTimeUtc", + required: true, + type: { + name: "DateTime", }, }, }, - }; + }, +}; -export const AllowedConnectionsList: coreClient.CompositeMapper = { +export const SecureScoresList: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AllowedConnectionsList", + className: "SecureScoresList", modelProperties: { value: { serializedName: "value", @@ -4666,7 +4281,7 @@ export const AllowedConnectionsList: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "AllowedConnectionsResource", + className: "SecureScoreItem", }, }, }, @@ -4682,70 +4297,42 @@ export const AllowedConnectionsList: coreClient.CompositeMapper = { }, }; -export const ConnectableResource: coreClient.CompositeMapper = { +export const SecureScoreControlList: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ConnectableResource", + className: "SecureScoreControlList", modelProperties: { - id: { - serializedName: "id", - readOnly: true, - type: { - name: "String", - }, - }, - inboundConnectedResources: { - serializedName: "inboundConnectedResources", + value: { + serializedName: "value", readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "ConnectedResource", + className: "SecureScoreControlDetails", }, }, }, }, - outboundConnectedResources: { - serializedName: "outboundConnectedResources", + nextLink: { + serializedName: "nextLink", readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ConnectedResource", - }, - }, + name: "String", }, }, }, }, }; -export const ConnectedResource: coreClient.CompositeMapper = { +export const SecureScoreControlDefinitionSource: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ConnectedResource", + className: "SecureScoreControlDefinitionSource", modelProperties: { - connectedResourceId: { - serializedName: "connectedResourceId", - readOnly: true, - type: { - name: "String", - }, - }, - tcpPorts: { - serializedName: "tcpPorts", - readOnly: true, - type: { - name: "String", - }, - }, - udpPorts: { - serializedName: "udpPorts", - readOnly: true, + sourceType: { + serializedName: "sourceType", type: { name: "String", }, @@ -4754,13 +4341,13 @@ export const ConnectedResource: coreClient.CompositeMapper = { }, }; -export const Location: coreClient.CompositeMapper = { +export const AzureResourceLink: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Location", + className: "AzureResourceLink", modelProperties: { - location: { - serializedName: "location", + id: { + serializedName: "id", readOnly: true, type: { name: "String", @@ -4770,52 +4357,55 @@ export const Location: coreClient.CompositeMapper = { }, }; -export const AdaptiveApplicationControlGroups: coreClient.CompositeMapper = { +export const SecureScoreControlDefinitionList: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AdaptiveApplicationControlGroups", + className: "SecureScoreControlDefinitionList", modelProperties: { value: { serializedName: "value", + readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "AdaptiveApplicationControlGroup", + className: "SecureScoreControlDefinitionItem", }, }, }, }, + nextLink: { + serializedName: "nextLink", + readOnly: true, + type: { + name: "String", + }, + }, }, }, }; -export const ProtectionMode: coreClient.CompositeMapper = { +export const SecuritySolutionList: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ProtectionMode", + className: "SecuritySolutionList", modelProperties: { - exe: { - serializedName: "exe", - type: { - name: "String", - }, - }, - msi: { - serializedName: "msi", - type: { - name: "String", - }, - }, - script: { - serializedName: "script", + value: { + serializedName: "value", type: { - name: "String", + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SecuritySolution", + }, + }, }, }, - executable: { - serializedName: "executable", + nextLink: { + serializedName: "nextLink", + readOnly: true, type: { name: "String", }, @@ -4824,53 +4414,69 @@ 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 SecuritySolutionsReferenceDataList: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SecuritySolutionsReferenceDataList", + modelProperties: { + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SecuritySolutionsReferenceData", + }, }, }, }, }, - }; + }, +}; -export const VmRecommendation: coreClient.CompositeMapper = { +export const ServerVulnerabilityAssessmentsList: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VmRecommendation", + className: "ServerVulnerabilityAssessmentsList", modelProperties: { - configurationStatus: { - serializedName: "configurationStatus", - type: { - name: "String", - }, - }, - recommendationAction: { - serializedName: "recommendationAction", + value: { + serializedName: "value", type: { - name: "String", + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ServerVulnerabilityAssessment", + }, + }, }, }, - resourceId: { - serializedName: "resourceId", + }, + }, +}; + +export const TopologyList: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "TopologyList", + modelProperties: { + value: { + serializedName: "value", + readOnly: true, type: { - name: "String", + name: "Sequence", + element: { + type: { + name: "Composite", + className: "TopologyResource", + }, + }, }, }, - enforcementSupport: { - serializedName: "enforcementSupport", + nextLink: { + serializedName: "nextLink", + readOnly: true, type: { name: "String", }, @@ -4879,106 +4485,91 @@ export const VmRecommendation: coreClient.CompositeMapper = { }, }; -export const PathRecommendation: coreClient.CompositeMapper = { +export const TopologySingleResource: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PathRecommendation", + className: "TopologySingleResource", modelProperties: { - path: { - serializedName: "path", + resourceId: { + serializedName: "resourceId", + readOnly: true, type: { name: "String", }, }, - action: { - serializedName: "action", + severity: { + serializedName: "severity", + readOnly: true, type: { name: "String", }, }, - type: { - serializedName: "type", + recommendationsExist: { + serializedName: "recommendationsExist", + readOnly: true, + type: { + name: "Boolean", + }, + }, + networkZones: { + serializedName: "networkZones", + readOnly: true, type: { name: "String", }, }, - publisherInfo: { - serializedName: "publisherInfo", + topologyScore: { + serializedName: "topologyScore", + readOnly: true, type: { - name: "Composite", - className: "PublisherInfo", + name: "Number", }, }, - common: { - serializedName: "common", + location: { + serializedName: "location", + readOnly: true, type: { - name: "Boolean", + name: "String", }, }, - userSids: { - serializedName: "userSids", + parents: { + serializedName: "parents", + readOnly: true, type: { name: "Sequence", element: { type: { - name: "String", + name: "Composite", + className: "TopologySingleResourceParent", }, }, }, }, - usernames: { - serializedName: "usernames", + children: { + serializedName: "children", + readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "UserRecommendation", + className: "TopologySingleResourceChild", }, }, }, }, - fileType: { - serializedName: "fileType", - type: { - name: "String", - }, - }, - configurationStatus: { - serializedName: "configurationStatus", - type: { - name: "String", - }, - }, }, }, }; -export const PublisherInfo: coreClient.CompositeMapper = { +export const TopologySingleResourceParent: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PublisherInfo", + className: "TopologySingleResourceParent", modelProperties: { - publisherName: { - serializedName: "publisherName", - type: { - name: "String", - }, - }, - productName: { - serializedName: "productName", - type: { - name: "String", - }, - }, - binaryName: { - serializedName: "binaryName", - type: { - name: "String", - }, - }, - version: { - serializedName: "version", + resourceId: { + serializedName: "resourceId", + readOnly: true, type: { name: "String", }, @@ -4987,19 +4578,14 @@ export const PublisherInfo: coreClient.CompositeMapper = { }, }; -export const UserRecommendation: coreClient.CompositeMapper = { +export const TopologySingleResourceChild: coreClient.CompositeMapper = { type: { name: "Composite", - className: "UserRecommendation", + className: "TopologySingleResourceChild", modelProperties: { - username: { - serializedName: "username", - type: { - name: "String", - }, - }, - recommendationAction: { - serializedName: "recommendationAction", + resourceId: { + serializedName: "resourceId", + readOnly: true, type: { name: "String", }, @@ -5008,19 +4594,20 @@ export const UserRecommendation: coreClient.CompositeMapper = { }, }; -export const DiscoveredSecuritySolutionList: coreClient.CompositeMapper = { +export const SecurityAssessmentMetadataResponseList: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DiscoveredSecuritySolutionList", + className: "SecurityAssessmentMetadataResponseList", modelProperties: { value: { serializedName: "value", + readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "DiscoveredSecuritySolution", + className: "SecurityAssessmentMetadataResponse", }, }, }, @@ -5036,106 +4623,27 @@ export const DiscoveredSecuritySolutionList: coreClient.CompositeMapper = { }, }; -export const ExternalSecuritySolutionList: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ExternalSecuritySolutionList", - modelProperties: { - value: { - serializedName: "value", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ExternalSecuritySolution", - }, - }, - }, - }, - nextLink: { - serializedName: "nextLink", - readOnly: true, - type: { - name: "String", - }, - }, - }, - }, -}; - -export const ExternalSecuritySolutionKindAutoGenerated: coreClient.CompositeMapper = +export const SecurityAssessmentMetadataPropertiesResponsePublishDates: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ExternalSecuritySolutionKindAutoGenerated", + className: "SecurityAssessmentMetadataPropertiesResponsePublishDates", modelProperties: { - kind: { - serializedName: "kind", - type: { - name: "String", - }, - }, - }, - }, - }; - -export const JitNetworkAccessPoliciesList: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "JitNetworkAccessPoliciesList", - modelProperties: { - value: { - serializedName: "value", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "JitNetworkAccessPolicy", - }, + ga: { + constraints: { + Pattern: new RegExp("^([0-9]{2}\\/){2}[0-9]{4}$"), }, - }, - }, - nextLink: { - serializedName: "nextLink", - readOnly: true, - type: { - name: "String", - }, - }, - }, - }, -}; - -export const JitNetworkAccessPolicyVirtualMachine: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "JitNetworkAccessPolicyVirtualMachine", - modelProperties: { - id: { - serializedName: "id", - required: true, + serializedName: "GA", type: { name: "String", }, }, - ports: { - serializedName: "ports", - required: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "JitNetworkAccessPortRule", - }, - }, + public: { + constraints: { + Pattern: new RegExp("^([0-9]{2}\\/){2}[0-9]{4}$"), }, - }, - publicIpAddress: { - serializedName: "publicIpAddress", + serializedName: "public", + required: true, type: { name: "String", }, @@ -5144,37 +4652,39 @@ export const JitNetworkAccessPolicyVirtualMachine: coreClient.CompositeMapper = }, }; -export const JitNetworkAccessPortRule: coreClient.CompositeMapper = { +export const SecurityAssessmentMetadataProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "JitNetworkAccessPortRule", + className: "SecurityAssessmentMetadataProperties", modelProperties: { - number: { - constraints: { - InclusiveMaximum: 65535, - InclusiveMinimum: 0, - }, - serializedName: "number", + displayName: { + serializedName: "displayName", required: true, type: { - name: "Number", + name: "String", }, }, - protocol: { - serializedName: "protocol", - required: true, + policyDefinitionId: { + serializedName: "policyDefinitionId", + readOnly: true, type: { name: "String", }, }, - allowedSourceAddressPrefix: { - serializedName: "allowedSourceAddressPrefix", + description: { + serializedName: "description", type: { name: "String", }, }, - allowedSourceAddressPrefixes: { - serializedName: "allowedSourceAddressPrefixes", + remediationDescription: { + serializedName: "remediationDescription", + type: { + name: "String", + }, + }, + categories: { + serializedName: "categories", type: { name: "Sequence", element: { @@ -5184,259 +4694,249 @@ export const JitNetworkAccessPortRule: coreClient.CompositeMapper = { }, }, }, - maxRequestAccessDuration: { - serializedName: "maxRequestAccessDuration", + severity: { + serializedName: "severity", required: true, type: { name: "String", }, }, - }, - }, -}; - -export const JitNetworkAccessRequest: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "JitNetworkAccessRequest", - modelProperties: { - virtualMachines: { - serializedName: "virtualMachines", - required: true, + userImpact: { + serializedName: "userImpact", + type: { + name: "String", + }, + }, + implementationEffort: { + serializedName: "implementationEffort", + type: { + name: "String", + }, + }, + threats: { + serializedName: "threats", type: { name: "Sequence", element: { type: { - name: "Composite", - className: "JitNetworkAccessRequestVirtualMachine", + name: "String", }, }, }, }, - startTimeUtc: { - serializedName: "startTimeUtc", - required: true, + preview: { + serializedName: "preview", type: { - name: "DateTime", + name: "Boolean", }, }, - requestor: { - serializedName: "requestor", + assessmentType: { + serializedName: "assessmentType", required: true, type: { name: "String", }, }, - justification: { - serializedName: "justification", + partnerData: { + serializedName: "partnerData", type: { - name: "String", + name: "Composite", + className: "SecurityAssessmentMetadataPartnerData", }, }, }, }, }; -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 SecurityAssessmentMetadataPartnerData: coreClient.CompositeMapper = { type: { name: "Composite", - className: "JitNetworkAccessRequestPort", + className: "SecurityAssessmentMetadataPartnerData", modelProperties: { - number: { - constraints: { - InclusiveMaximum: 65535, - InclusiveMinimum: 0, - }, - serializedName: "number", + partnerName: { + serializedName: "partnerName", required: true, type: { - name: "Number", + name: "String", }, }, - allowedSourceAddressPrefix: { - serializedName: "allowedSourceAddressPrefix", + productName: { + serializedName: "productName", type: { name: "String", }, }, - allowedSourceAddressPrefixes: { - serializedName: "allowedSourceAddressPrefixes", + secret: { + serializedName: "secret", + required: true, + type: { + name: "String", + }, + }, + }, + }, +}; + +export const SecurityAssessmentList: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SecurityAssessmentList", + modelProperties: { + value: { + serializedName: "value", + readOnly: true, type: { name: "Sequence", element: { type: { - name: "String", + name: "Composite", + className: "SecurityAssessmentResponse", }, }, }, }, - endTimeUtc: { - serializedName: "endTimeUtc", - required: true, + nextLink: { + serializedName: "nextLink", + readOnly: true, type: { - name: "DateTime", + name: "String", }, }, - status: { - serializedName: "status", + }, + }, +}; + +export const AssessmentStatus: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AssessmentStatus", + modelProperties: { + code: { + serializedName: "code", required: true, type: { name: "String", }, }, - statusReason: { - serializedName: "statusReason", - required: true, + cause: { + serializedName: "cause", type: { name: "String", }, }, - mappedPort: { - serializedName: "mappedPort", + description: { + serializedName: "description", type: { - name: "Number", + name: "String", }, }, }, }, }; -export const JitNetworkAccessPolicyInitiateRequest: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "JitNetworkAccessPolicyInitiateRequest", - modelProperties: { - virtualMachines: { - serializedName: "virtualMachines", - required: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "JitNetworkAccessPolicyInitiateVirtualMachine", - }, - }, - }, - }, - justification: { - serializedName: "justification", - type: { - name: "String", - }, +export const SecurityAssessmentPropertiesBase: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SecurityAssessmentPropertiesBase", + modelProperties: { + resourceDetails: { + serializedName: "resourceDetails", + type: { + name: "Composite", + className: "ResourceDetails", }, }, - }, - }; - -export const JitNetworkAccessPolicyInitiateVirtualMachine: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "JitNetworkAccessPolicyInitiateVirtualMachine", - modelProperties: { - id: { - serializedName: "id", - required: true, - type: { - name: "String", - }, + displayName: { + serializedName: "displayName", + readOnly: true, + type: { + name: "String", }, - ports: { - serializedName: "ports", - required: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "JitNetworkAccessPolicyInitiatePort", - }, - }, - }, + }, + 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 JitNetworkAccessPolicyInitiatePort: coreClient.CompositeMapper = { +export const AssessmentLinks: coreClient.CompositeMapper = { type: { name: "Composite", - className: "JitNetworkAccessPolicyInitiatePort", + className: "AssessmentLinks", modelProperties: { - number: { - constraints: { - InclusiveMaximum: 65535, - InclusiveMinimum: 0, - }, - serializedName: "number", - required: true, + azurePortalUri: { + serializedName: "azurePortalUri", + readOnly: true, type: { - name: "Number", + name: "String", }, }, - allowedSourceAddressPrefix: { - serializedName: "allowedSourceAddressPrefix", + }, + }, +}; + +export const SecurityAssessmentPartnerData: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SecurityAssessmentPartnerData", + modelProperties: { + partnerName: { + serializedName: "partnerName", + required: true, type: { name: "String", }, }, - endTimeUtc: { - serializedName: "endTimeUtc", + secret: { + serializedName: "secret", required: true, type: { - name: "DateTime", + name: "String", }, }, }, }, }; -export const SecureScoresList: coreClient.CompositeMapper = { +export const AlertList: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SecureScoresList", + className: "AlertList", modelProperties: { value: { serializedName: "value", - readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "SecureScoreItem", + className: "Alert", }, }, }, @@ -5452,27 +4952,19 @@ export const SecureScoresList: coreClient.CompositeMapper = { }, }; -export const SecureScoreControlList: coreClient.CompositeMapper = { +export const ResourceIdentifier: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SecureScoreControlList", + className: "ResourceIdentifier", + uberParent: "ResourceIdentifier", + polymorphicDiscriminator: { + serializedName: "type", + clientName: "type", + }, modelProperties: { - value: { - serializedName: "value", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SecureScoreControlDetails", - }, - }, - }, - }, - nextLink: { - serializedName: "nextLink", - readOnly: true, + type: { + serializedName: "type", + required: true, type: { name: "String", }, @@ -5481,13 +4973,15 @@ export const SecureScoreControlList: coreClient.CompositeMapper = { }, }; -export const SecureScoreControlDefinitionSource: coreClient.CompositeMapper = { +export const AlertEntity: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SecureScoreControlDefinitionSource", + className: "AlertEntity", + additionalProperties: { type: { name: "Object" } }, modelProperties: { - sourceType: { - serializedName: "sourceType", + type: { + serializedName: "type", + readOnly: true, type: { name: "String", }, @@ -5496,13 +4990,14 @@ export const SecureScoreControlDefinitionSource: coreClient.CompositeMapper = { }, }; -export const AzureResourceLink: coreClient.CompositeMapper = { +export const AlertPropertiesSupportingEvidence: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AzureResourceLink", + className: "AlertPropertiesSupportingEvidence", + additionalProperties: { type: { name: "Object" } }, modelProperties: { - id: { - serializedName: "id", + type: { + serializedName: "type", readOnly: true, type: { name: "String", @@ -5512,27 +5007,37 @@ export const AzureResourceLink: coreClient.CompositeMapper = { }, }; -export const SecureScoreControlDefinitionList: coreClient.CompositeMapper = { +export const AlertSimulatorRequestBody: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SecureScoreControlDefinitionList", + className: "AlertSimulatorRequestBody", modelProperties: { - value: { - serializedName: "value", - readOnly: true, + properties: { + serializedName: "properties", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SecureScoreControlDefinitionItem", - }, - }, + name: "Composite", + className: "AlertSimulatorRequestProperties", }, }, - nextLink: { - serializedName: "nextLink", - readOnly: true, + }, + }, +}; + +export const AlertSimulatorRequestProperties: coreClient.CompositeMapper = { + serializedName: "AlertSimulatorRequestProperties", + type: { + name: "Composite", + className: "AlertSimulatorRequestProperties", + uberParent: "AlertSimulatorRequestProperties", + additionalProperties: { type: { name: "Object" } }, + polymorphicDiscriminator: { + serializedName: "kind", + clientName: "kind", + }, + modelProperties: { + kind: { + serializedName: "kind", + required: true, type: { name: "String", }, @@ -5541,10 +5046,10 @@ export const SecureScoreControlDefinitionList: coreClient.CompositeMapper = { }, }; -export const SecuritySolutionList: coreClient.CompositeMapper = { +export const SettingsList: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SecuritySolutionList", + className: "SettingsList", modelProperties: { value: { serializedName: "value", @@ -5553,7 +5058,7 @@ export const SecuritySolutionList: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "SecuritySolution", + className: "Setting", }, }, }, @@ -5569,52 +5074,76 @@ export const SecuritySolutionList: coreClient.CompositeMapper = { }, }; -export const SecuritySolutionsReferenceDataList: coreClient.CompositeMapper = { +export const ServerVulnerabilityAssessmentsSettingsList: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SecuritySolutionsReferenceDataList", + className: "ServerVulnerabilityAssessmentsSettingsList", modelProperties: { value: { serializedName: "value", + readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "SecuritySolutionsReferenceData", + className: "ServerVulnerabilityAssessmentsSetting", }, }, }, }, + nextLink: { + serializedName: "nextLink", + readOnly: true, + type: { + name: "String", + }, + }, }, }, }; -export const ServerVulnerabilityAssessmentsList: coreClient.CompositeMapper = { +export const ResourceAutoGenerated: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ServerVulnerabilityAssessmentsList", + className: "ResourceAutoGenerated", modelProperties: { - value: { - serializedName: "value", + id: { + serializedName: "id", + readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ServerVulnerabilityAssessment", - }, - }, + name: "String", + }, + }, + name: { + serializedName: "name", + readOnly: true, + type: { + name: "String", + }, + }, + type: { + serializedName: "type", + readOnly: true, + type: { + name: "String", + }, + }, + systemData: { + serializedName: "systemData", + type: { + name: "Composite", + className: "SystemData", }, }, }, }, }; -export const TopologyList: coreClient.CompositeMapper = { +export const ApiCollectionList: coreClient.CompositeMapper = { type: { name: "Composite", - className: "TopologyList", + className: "ApiCollectionList", modelProperties: { value: { serializedName: "value", @@ -5624,7 +5153,7 @@ export const TopologyList: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "TopologyResource", + className: "ApiCollection", }, }, }, @@ -5640,91 +5169,123 @@ export const TopologyList: coreClient.CompositeMapper = { }, }; -export const TopologySingleResource: coreClient.CompositeMapper = { +export const Extension: coreClient.CompositeMapper = { type: { name: "Composite", - className: "TopologySingleResource", + className: "Extension", modelProperties: { - resourceId: { - serializedName: "resourceId", - readOnly: true, + name: { + serializedName: "name", + required: true, type: { name: "String", }, }, - severity: { - serializedName: "severity", - readOnly: true, + isEnabled: { + serializedName: "isEnabled", + required: true, type: { name: "String", }, }, - recommendationsExist: { - serializedName: "recommendationsExist", - readOnly: true, + additionalExtensionProperties: { + serializedName: "additionalExtensionProperties", type: { - name: "Boolean", + name: "Dictionary", + value: { type: { name: "any" } }, }, }, - networkZones: { - serializedName: "networkZones", - readOnly: true, + operationStatus: { + serializedName: "operationStatus", type: { - name: "String", + name: "Composite", + className: "OperationStatus", }, }, - topologyScore: { - serializedName: "topologyScore", - readOnly: true, + }, + }, +}; + +export const OperationStatus: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "OperationStatus", + modelProperties: { + code: { + serializedName: "code", type: { - name: "Number", + name: "String", }, }, - location: { - serializedName: "location", - readOnly: true, + message: { + serializedName: "message", type: { name: "String", }, }, - parents: { - serializedName: "parents", - readOnly: true, + }, + }, +}; + +export const PricingList: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "PricingList", + modelProperties: { + value: { + serializedName: "value", + required: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "TopologySingleResourceParent", + className: "Pricing", }, }, }, }, - children: { - serializedName: "children", + }, + }, +}; + +export const SecurityStandardList: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SecurityStandardList", + modelProperties: { + value: { + serializedName: "value", + required: true, readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "TopologySingleResourceChild", + className: "SecurityStandard", }, }, }, }, + nextLink: { + serializedName: "nextLink", + readOnly: true, + type: { + name: "String", + }, + }, }, }, }; -export const TopologySingleResourceParent: coreClient.CompositeMapper = { +export const PartialAssessmentProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "TopologySingleResourceParent", + className: "PartialAssessmentProperties", modelProperties: { - resourceId: { - serializedName: "resourceId", - readOnly: true, + assessmentKey: { + serializedName: "assessmentKey", type: { name: "String", }, @@ -5733,257 +5294,87 @@ export const TopologySingleResourceParent: coreClient.CompositeMapper = { }, }; -export const TopologySingleResourceChild: coreClient.CompositeMapper = { +export const StandardMetadata: coreClient.CompositeMapper = { type: { name: "Composite", - className: "TopologySingleResourceChild", + className: "StandardMetadata", modelProperties: { - resourceId: { - serializedName: "resourceId", + createdBy: { + serializedName: "createdBy", readOnly: true, type: { name: "String", }, }, - }, - }, -}; - -export const SecurityAssessmentMetadataResponseList: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "SecurityAssessmentMetadataResponseList", - modelProperties: { - value: { - serializedName: "value", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SecurityAssessmentMetadataResponse", - }, - }, - }, - }, - nextLink: { - serializedName: "nextLink", - readOnly: true, - type: { - name: "String", - }, + createdOn: { + serializedName: "createdOn", + readOnly: true, + type: { + name: "DateTime", }, }, - }, - }; - -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", - }, + lastUpdatedBy: { + serializedName: "lastUpdatedBy", + 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", - }, + lastUpdatedOn: { + serializedName: "lastUpdatedOn", + readOnly: true, + type: { + name: "DateTime", }, }, }, - }; + }, +}; -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 AssignedStandardItem: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AssignedStandardItem", + modelProperties: { + id: { + serializedName: "id", + type: { + name: "String", }, }, }, - }; + }, +}; -export const SecurityAssessmentList: coreClient.CompositeMapper = { +export const StandardAssignmentPropertiesExemptionData: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SecurityAssessmentList", + className: "StandardAssignmentPropertiesExemptionData", modelProperties: { - value: { - serializedName: "value", - readOnly: true, + exemptionCategory: { + serializedName: "exemptionCategory", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SecurityAssessmentResponse", - }, - }, + name: "String", }, }, - nextLink: { - serializedName: "nextLink", - readOnly: true, + assignedAssessment: { + serializedName: "assignedAssessment", type: { - name: "String", + name: "Composite", + className: "AssignedAssessmentItem", }, }, }, }, }; -export const AssessmentStatus: coreClient.CompositeMapper = { +export const AssignedAssessmentItem: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AssessmentStatus", + className: "AssignedAssessmentItem", modelProperties: { - code: { - serializedName: "code", - required: true, - type: { - name: "String", - }, - }, - cause: { - serializedName: "cause", - type: { - name: "String", - }, - }, - description: { - serializedName: "description", + assessmentKey: { + serializedName: "assessmentKey", type: { name: "String", }, @@ -5992,65 +5383,60 @@ export const AssessmentStatus: coreClient.CompositeMapper = { }, }; -export const SecurityAssessmentPropertiesBase: coreClient.CompositeMapper = { +export const StandardAssignmentPropertiesAttestationData: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SecurityAssessmentPropertiesBase", + className: "StandardAssignmentPropertiesAttestationData", modelProperties: { - resourceDetails: { - serializedName: "resourceDetails", - type: { - name: "Composite", - className: "ResourceDetails", - }, - }, - displayName: { - serializedName: "displayName", - readOnly: true, + complianceState: { + serializedName: "complianceState", type: { name: "String", }, }, - additionalData: { - serializedName: "additionalData", - type: { - name: "Dictionary", - value: { type: { name: "String" } }, - }, - }, - links: { - serializedName: "links", + assignedAssessment: { + serializedName: "assignedAssessment", type: { name: "Composite", - className: "AssessmentLinks", + className: "AssignedAssessmentItem", }, }, - metadata: { - serializedName: "metadata", + complianceDate: { + serializedName: "complianceDate", + readOnly: true, type: { - name: "Composite", - className: "SecurityAssessmentMetadataProperties", + name: "DateTime", }, }, - partnersData: { - serializedName: "partnersData", + evidence: { + serializedName: "evidence", type: { - name: "Composite", - className: "SecurityAssessmentPartnerData", + name: "Sequence", + element: { + type: { + name: "Composite", + className: "AttestationEvidence", + }, + }, }, }, }, }, }; -export const AssessmentLinks: coreClient.CompositeMapper = { +export const AttestationEvidence: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AssessmentLinks", + className: "AttestationEvidence", modelProperties: { - azurePortalUri: { - serializedName: "azurePortalUri", - readOnly: true, + description: { + serializedName: "description", + type: { + name: "String", + }, + }, + sourceUrl: { + serializedName: "sourceUrl", type: { name: "String", }, @@ -6059,42 +5445,58 @@ export const AssessmentLinks: coreClient.CompositeMapper = { }, }; -export const SecurityAssessmentPartnerData: coreClient.CompositeMapper = { +export const StandardAssignmentMetadata: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SecurityAssessmentPartnerData", + className: "StandardAssignmentMetadata", modelProperties: { - partnerName: { - serializedName: "partnerName", - required: true, + createdBy: { + serializedName: "createdBy", + readOnly: true, type: { name: "String", }, }, - secret: { - serializedName: "secret", - required: true, + createdOn: { + serializedName: "createdOn", + readOnly: true, + type: { + name: "DateTime", + }, + }, + lastUpdatedBy: { + serializedName: "lastUpdatedBy", + readOnly: true, type: { name: "String", }, }, + lastUpdatedOn: { + serializedName: "lastUpdatedOn", + readOnly: true, + type: { + name: "DateTime", + }, + }, }, }, }; -export const AlertList: coreClient.CompositeMapper = { +export const StandardAssignmentsList: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AlertList", + className: "StandardAssignmentsList", modelProperties: { value: { serializedName: "value", + required: true, + readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "Alert", + className: "StandardAssignment", }, }, }, @@ -6110,19 +5512,27 @@ export const AlertList: coreClient.CompositeMapper = { }, }; -export const ResourceIdentifier: coreClient.CompositeMapper = { +export const CustomRecommendationsList: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ResourceIdentifier", - uberParent: "ResourceIdentifier", - polymorphicDiscriminator: { - serializedName: "type", - clientName: "type", - }, + className: "CustomRecommendationsList", modelProperties: { - type: { - serializedName: "type", + value: { + serializedName: "value", required: true, + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "CustomRecommendation", + }, + }, + }, + }, + nextLink: { + serializedName: "nextLink", type: { name: "String", }, @@ -6131,71 +5541,104 @@ export const ResourceIdentifier: coreClient.CompositeMapper = { }, }; -export const AlertEntity: coreClient.CompositeMapper = { +export const DefenderForStorageSettingProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AlertEntity", - additionalProperties: { type: { name: "Object" } }, + className: "DefenderForStorageSettingProperties", modelProperties: { - type: { - serializedName: "type", - readOnly: true, + isEnabled: { + serializedName: "isEnabled", type: { - name: "String", + 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 AlertPropertiesSupportingEvidence: coreClient.CompositeMapper = { +export const MalwareScanningProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AlertPropertiesSupportingEvidence", - additionalProperties: { type: { name: "Object" } }, + className: "MalwareScanningProperties", modelProperties: { - type: { - serializedName: "type", - readOnly: true, + onUpload: { + serializedName: "onUpload", + type: { + name: "Composite", + className: "OnUploadProperties", + }, + }, + scanResultsEventGridTopicResourceId: { + serializedName: "scanResultsEventGridTopicResourceId", type: { name: "String", }, }, + operationStatus: { + serializedName: "operationStatus", + type: { + name: "Composite", + className: "OperationStatusAutoGenerated", + }, + }, }, }, }; -export const AlertSimulatorRequestBody: coreClient.CompositeMapper = { +export const OnUploadProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AlertSimulatorRequestBody", + className: "OnUploadProperties", modelProperties: { - properties: { - serializedName: "properties", + isEnabled: { + serializedName: "isEnabled", type: { - name: "Composite", - className: "AlertSimulatorRequestProperties", + name: "Boolean", + }, + }, + capGBPerMonth: { + serializedName: "capGBPerMonth", + type: { + name: "Number", }, }, }, }, }; -export const AlertSimulatorRequestProperties: coreClient.CompositeMapper = { - serializedName: "AlertSimulatorRequestProperties", +export const OperationStatusAutoGenerated: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AlertSimulatorRequestProperties", - uberParent: "AlertSimulatorRequestProperties", - additionalProperties: { type: { name: "Object" } }, - polymorphicDiscriminator: { - serializedName: "kind", - clientName: "kind", - }, + className: "OperationStatusAutoGenerated", modelProperties: { - kind: { - serializedName: "kind", - required: true, + code: { + serializedName: "code", + type: { + name: "String", + }, + }, + message: { + serializedName: "message", type: { name: "String", }, @@ -6204,291 +5647,253 @@ export const AlertSimulatorRequestProperties: coreClient.CompositeMapper = { }, }; -export const SettingsList: coreClient.CompositeMapper = { +export const SensitiveDataDiscoveryProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SettingsList", + className: "SensitiveDataDiscoveryProperties", modelProperties: { - value: { - serializedName: "value", + isEnabled: { + serializedName: "isEnabled", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "Setting", - }, - }, + name: "Boolean", }, }, - nextLink: { - serializedName: "nextLink", - readOnly: true, + operationStatus: { + serializedName: "operationStatus", type: { - name: "String", + name: "Composite", + className: "OperationStatusAutoGenerated", }, }, }, }, }; -export const ServerVulnerabilityAssessmentsSettingsList: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "ServerVulnerabilityAssessmentsSettingsList", - modelProperties: { - value: { - serializedName: "value", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ServerVulnerabilityAssessmentsSetting", - }, - }, - }, - }, - nextLink: { - serializedName: "nextLink", - readOnly: true, - type: { - name: "String", - }, +export const MalwareScan: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "MalwareScan", + modelProperties: { + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "MalwareScanProperties", }, }, }, - }; + }, +}; -export const ResourceAutoGenerated2: coreClient.CompositeMapper = { +export const MalwareScanProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ResourceAutoGenerated2", + className: "MalwareScanProperties", modelProperties: { - id: { - serializedName: "id", - readOnly: true, + scanId: { + serializedName: "scanId", type: { name: "String", }, }, - name: { - serializedName: "name", - readOnly: true, + scanStatus: { + serializedName: "scanStatus", type: { name: "String", }, }, - type: { - serializedName: "type", - readOnly: true, + scanStatusMessage: { + serializedName: "scanStatusMessage", type: { name: "String", }, }, - systemData: { - serializedName: "systemData", + scanStartTime: { + serializedName: "scanStartTime", + type: { + name: "String", + }, + }, + scanEndTime: { + serializedName: "scanEndTime", + type: { + name: "String", + }, + }, + scanSummary: { + serializedName: "scanSummary", type: { name: "Composite", - className: "SystemData", + className: "ScanSummary", }, }, }, }, }; -export const ApiCollectionList: coreClient.CompositeMapper = { +export const ScanSummary: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ApiCollectionList", + className: "ScanSummary", modelProperties: { - value: { - serializedName: "value", - readOnly: true, + blobs: { + serializedName: "blobs", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ApiCollection", - }, - }, + name: "Composite", + className: "BlobsScanSummary", }, }, - nextLink: { - serializedName: "nextLink", - readOnly: true, + estimatedScanCostUSD: { + serializedName: "estimatedScanCostUSD", type: { - name: "String", + name: "Number", }, }, }, }, }; -export const Extension: coreClient.CompositeMapper = { +export const BlobsScanSummary: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Extension", + className: "BlobsScanSummary", modelProperties: { - name: { - serializedName: "name", - required: true, - type: { - name: "String", - }, - }, - isEnabled: { - serializedName: "isEnabled", - required: true, + totalBlobsScanned: { + serializedName: "totalBlobsScanned", type: { - name: "String", + name: "Number", }, }, - additionalExtensionProperties: { - serializedName: "additionalExtensionProperties", + maliciousBlobsCount: { + serializedName: "maliciousBlobsCount", type: { - name: "Dictionary", - value: { type: { name: "any" } }, + name: "Number", }, }, - operationStatus: { - serializedName: "operationStatus", + skippedBlobsCount: { + serializedName: "skippedBlobsCount", type: { - name: "Composite", - className: "OperationStatusAutoGenerated", + name: "Number", }, }, - }, - }, -}; - -export const OperationStatusAutoGenerated: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "OperationStatusAutoGenerated", - modelProperties: { - code: { - serializedName: "code", + failedBlobsCount: { + serializedName: "failedBlobsCount", type: { - name: "String", + name: "Number", }, }, - message: { - serializedName: "message", + scannedBlobsInGB: { + serializedName: "scannedBlobsInGB", type: { - name: "String", + name: "Number", }, }, }, }, }; -export const PricingList: coreClient.CompositeMapper = { +export const AzureDevOpsOrgListResponse: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PricingList", + className: "AzureDevOpsOrgListResponse", modelProperties: { value: { serializedName: "value", - required: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "Pricing", + className: "AzureDevOpsOrg", }, }, }, }, - }, - }, -}; - -export const Cvss: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "Cvss", - modelProperties: { - base: { - serializedName: "base", - readOnly: true, + nextLink: { + serializedName: "nextLink", type: { - name: "Number", + name: "String", }, }, }, }, }; -export const Cve: coreClient.CompositeMapper = { +export const AzureDevOpsOrgProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Cve", + className: "AzureDevOpsOrgProperties", modelProperties: { - title: { - serializedName: "title", + provisioningStatusMessage: { + serializedName: "provisioningStatusMessage", readOnly: true, type: { name: "String", }, }, - link: { - serializedName: "link", + provisioningStatusUpdateTimeUtc: { + serializedName: "provisioningStatusUpdateTimeUtc", readOnly: true, type: { - name: "String", + name: "DateTime", }, }, - }, - }, -}; - -export const VendorReference: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "VendorReference", - modelProperties: { - title: { - serializedName: "title", + provisioningState: { + serializedName: "provisioningState", readOnly: true, type: { name: "String", }, }, - link: { - serializedName: "link", - readOnly: true, + onboardingState: { + serializedName: "onboardingState", type: { name: "String", }, }, + actionableRemediation: { + serializedName: "actionableRemediation", + type: { + name: "Composite", + className: "ActionableRemediation", + }, + }, }, }, }; -export const Condition: coreClient.CompositeMapper = { +export const ActionableRemediation: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Condition", + className: "ActionableRemediation", modelProperties: { - property: { - serializedName: "property", + state: { + serializedName: "state", type: { name: "String", }, }, - value: { - serializedName: "value", + categoryConfigurations: { + serializedName: "categoryConfigurations", type: { - name: "String", + name: "Sequence", + element: { + type: { + name: "Composite", + className: "CategoryConfiguration", + }, + }, }, }, - operator: { - serializedName: "operator", + branchConfiguration: { + serializedName: "branchConfiguration", + type: { + name: "Composite", + className: "TargetBranchConfiguration", + }, + }, + inheritFromParentState: { + serializedName: "inheritFromParentState", type: { name: "String", }, @@ -6497,25 +5902,19 @@ export const Condition: coreClient.CompositeMapper = { }, }; -export const ApplicationCondition: coreClient.CompositeMapper = { +export const CategoryConfiguration: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ApplicationCondition", + className: "CategoryConfiguration", modelProperties: { - property: { - serializedName: "property", - type: { - name: "String", - }, - }, - value: { - serializedName: "value", + minimumSeverityLevel: { + serializedName: "minimumSeverityLevel", type: { name: "String", }, }, - operator: { - serializedName: "operator", + category: { + serializedName: "category", type: { name: "String", }, @@ -6524,118 +5923,127 @@ export const ApplicationCondition: coreClient.CompositeMapper = { }, }; -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 TargetBranchConfiguration: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "TargetBranchConfiguration", + modelProperties: { + branchNames: { + serializedName: "branchNames", + type: { + name: "Sequence", + element: { + type: { + name: "String", }, }, }, }, + annotateDefaultBranch: { + serializedName: "annotateDefaultBranch", + 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", + }, + }, + type: { + serializedName: "type", + readOnly: true, + type: { + name: "String", }, }, }, }, }; -export const BaseResourceConfiguration: coreClient.CompositeMapper = { +export const ErrorResponseAutoGenerated3: coreClient.CompositeMapper = { type: { name: "Composite", - className: "BaseResourceConfiguration", + className: "ErrorResponseAutoGenerated3", modelProperties: { - desiredOnboardingState: { - serializedName: "desiredOnboardingState", + error: { + serializedName: "error", type: { - name: "String", + name: "Composite", + className: "ErrorDetailAutoGenerated2", }, }, }, }, }; -export const GitHubOwnerConfiguration: coreClient.CompositeMapper = { +export const ErrorDetailAutoGenerated2: coreClient.CompositeMapper = { type: { name: "Composite", - className: "GitHubOwnerConfiguration", + className: "ErrorDetailAutoGenerated2", modelProperties: { - autoDiscovery: { - serializedName: "autoDiscovery", + code: { + serializedName: "code", + readOnly: true, type: { name: "String", }, }, - repositoryConfigs: { - serializedName: "repositoryConfigs", - nullable: true, + message: { + serializedName: "message", + readOnly: true, type: { - name: "Dictionary", - value: { - type: { name: "Composite", className: "BaseResourceConfiguration" }, - }, + name: "String", }, }, - }, - }, -}; - -export const GitLabGroupConfiguration: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "GitLabGroupConfiguration", - modelProperties: { - autoDiscovery: { - serializedName: "autoDiscovery", + target: { + serializedName: "target", + readOnly: true, type: { name: "String", }, }, - projectConfigs: { - serializedName: "projectConfigs", - nullable: true, + details: { + serializedName: "details", + readOnly: true, type: { - name: "Dictionary", - value: { - type: { name: "Composite", className: "BaseResourceConfiguration" }, + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ErrorDetailAutoGenerated2", + }, + }, + }, + }, + additionalInfo: { + serializedName: "additionalInfo", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ErrorAdditionalInfo", + }, }, }, }, @@ -6643,19 +6051,25 @@ export const GitLabGroupConfiguration: coreClient.CompositeMapper = { }, }; -export const AwsOrganizationalData: coreClient.CompositeMapper = { +export const AzureDevOpsProjectListResponse: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AwsOrganizationalData", - uberParent: "AwsOrganizationalData", - polymorphicDiscriminator: { - serializedName: "organizationMembershipType", - clientName: "organizationMembershipType", - }, + className: "AzureDevOpsProjectListResponse", modelProperties: { - organizationMembershipType: { - serializedName: "organizationMembershipType", - required: true, + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "AzureDevOpsProject", + }, + }, + }, + }, + nextLink: { + serializedName: "nextLink", type: { name: "String", }, @@ -6664,322 +6078,1045 @@ export const AwsOrganizationalData: coreClient.CompositeMapper = { }, }; -export const GcpOrganizationalData: coreClient.CompositeMapper = { +export const AzureDevOpsProjectProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "GcpOrganizationalData", - uberParent: "GcpOrganizationalData", - polymorphicDiscriminator: { - serializedName: "organizationMembershipType", - clientName: "organizationMembershipType", - }, + className: "AzureDevOpsProjectProperties", modelProperties: { - organizationMembershipType: { - serializedName: "organizationMembershipType", - required: true, + provisioningStatusMessage: { + serializedName: "provisioningStatusMessage", + readOnly: true, type: { name: "String", }, }, - }, - }, -}; - -export const GcpProjectDetails: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "GcpProjectDetails", - modelProperties: { - projectNumber: { - serializedName: "projectNumber", + provisioningStatusUpdateTimeUtc: { + serializedName: "provisioningStatusUpdateTimeUtc", + readOnly: true, + type: { + name: "DateTime", + }, + }, + provisioningState: { + serializedName: "provisioningState", + readOnly: true, type: { name: "String", }, }, - projectId: { - serializedName: "projectId", + parentOrgName: { + serializedName: "parentOrgName", type: { name: "String", }, }, - workloadIdentityPoolId: { - serializedName: "workloadIdentityPoolId", + projectId: { + serializedName: "projectId", readOnly: true, type: { name: "String", }, }, - projectName: { - serializedName: "projectName", - readOnly: true, + onboardingState: { + serializedName: "onboardingState", type: { name: "String", }, }, + actionableRemediation: { + serializedName: "actionableRemediation", + type: { + name: "Composite", + className: "ActionableRemediation", + }, + }, }, }, }; -export const CspmMonitorAwsOfferingNativeCloudConnection: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "CspmMonitorAwsOfferingNativeCloudConnection", - modelProperties: { - cloudRoleArn: { - serializedName: "cloudRoleArn", - type: { - name: "String", +export const AzureDevOpsRepositoryListResponse: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AzureDevOpsRepositoryListResponse", + modelProperties: { + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "AzureDevOpsRepository", + }, }, }, }, - }, - }; - -export const DefenderForContainersAwsOfferingKubernetesService: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "DefenderForContainersAwsOfferingKubernetesService", - modelProperties: { - cloudRoleArn: { - serializedName: "cloudRoleArn", - type: { - name: "String", - }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String", }, }, }, - }; + }, +}; -export const DefenderForContainersAwsOfferingKubernetesScubaReader: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "DefenderForContainersAwsOfferingKubernetesScubaReader", - modelProperties: { - cloudRoleArn: { - serializedName: "cloudRoleArn", - type: { - name: "String", - }, +export const AzureDevOpsRepositoryProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AzureDevOpsRepositoryProperties", + modelProperties: { + provisioningStatusMessage: { + serializedName: "provisioningStatusMessage", + readOnly: true, + type: { + name: "String", }, }, - }, - }; - -export const DefenderForContainersAwsOfferingCloudWatchToKinesis: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "DefenderForContainersAwsOfferingCloudWatchToKinesis", - modelProperties: { - cloudRoleArn: { - serializedName: "cloudRoleArn", - type: { - name: "String", - }, + provisioningStatusUpdateTimeUtc: { + serializedName: "provisioningStatusUpdateTimeUtc", + readOnly: true, + type: { + name: "DateTime", }, }, - }, - }; - -export const DefenderForContainersAwsOfferingKinesisToS3: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "DefenderForContainersAwsOfferingKinesisToS3", - modelProperties: { - cloudRoleArn: { - serializedName: "cloudRoleArn", - type: { - name: "String", - }, + provisioningState: { + serializedName: "provisioningState", + readOnly: true, + type: { + name: "String", }, }, - }, - }; - -export const DefenderForContainersAwsOfferingContainerVulnerabilityAssessment: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: - "DefenderForContainersAwsOfferingContainerVulnerabilityAssessment", - modelProperties: { - cloudRoleArn: { - serializedName: "cloudRoleArn", - type: { - name: "String", - }, + parentOrgName: { + serializedName: "parentOrgName", + type: { + name: "String", }, }, - }, - }; - -export const DefenderForContainersAwsOfferingContainerVulnerabilityAssessmentTask: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: - "DefenderForContainersAwsOfferingContainerVulnerabilityAssessmentTask", - modelProperties: { - cloudRoleArn: { - serializedName: "cloudRoleArn", - type: { - name: "String", - }, + parentProjectName: { + serializedName: "parentProjectName", + type: { + name: "String", }, }, - }, - }; - -export const DefenderForContainersAwsOfferingMdcContainersImageAssessment: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "DefenderForContainersAwsOfferingMdcContainersImageAssessment", - modelProperties: { - enabled: { - serializedName: "enabled", - type: { - name: "Boolean", + 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", + type: { + name: "String", + }, + }, + actionableRemediation: { + serializedName: "actionableRemediation", + type: { + name: "Composite", + className: "ActionableRemediation", + }, + }, + }, + }, +}; + +export const DevOpsConfigurationListResponse: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DevOpsConfigurationListResponse", + modelProperties: { + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DevOpsConfiguration", + }, }, }, - cloudRoleArn: { - serializedName: "cloudRoleArn", - type: { - name: "String", + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String", + }, + }, + }, + }, +}; + +export const DevOpsConfigurationProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DevOpsConfigurationProperties", + modelProperties: { + provisioningStatusMessage: { + serializedName: "provisioningStatusMessage", + readOnly: true, + type: { + name: "String", + }, + }, + provisioningStatusUpdateTimeUtc: { + serializedName: "provisioningStatusUpdateTimeUtc", + readOnly: true, + type: { + name: "DateTime", + }, + }, + provisioningState: { + serializedName: "provisioningState", + readOnly: true, + type: { + name: "String", + }, + }, + authorization: { + serializedName: "authorization", + type: { + name: "Composite", + className: "Authorization", + }, + }, + autoDiscovery: { + serializedName: "autoDiscovery", + type: { + name: "String", + }, + }, + topLevelInventoryList: { + serializedName: "topLevelInventoryList", + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, + capabilities: { + serializedName: "capabilities", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DevOpsCapability", + }, }, }, }, + agentlessConfiguration: { + serializedName: "agentlessConfiguration", + type: { + name: "Composite", + className: "AgentlessConfiguration", + }, + }, }, - }; + }, +}; -export const DefenderForContainersAwsOfferingMdcContainersAgentlessDiscoveryK8S: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: - "DefenderForContainersAwsOfferingMdcContainersAgentlessDiscoveryK8S", - modelProperties: { - enabled: { - serializedName: "enabled", - type: { - name: "Boolean", +export const Authorization: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "Authorization", + modelProperties: { + 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", + }, + }, + value: { + serializedName: "value", + readOnly: true, + type: { + name: "String", + }, + }, + }, + }, +}; + +export const AgentlessConfiguration: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AgentlessConfiguration", + modelProperties: { + agentlessEnabled: { + serializedName: "agentlessEnabled", + type: { + name: "String", + }, + }, + agentlessAutoDiscovery: { + serializedName: "agentlessAutoDiscovery", + type: { + name: "String", + }, + }, + scanners: { + serializedName: "scanners", + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, }, }, - cloudRoleArn: { - serializedName: "cloudRoleArn", - type: { - name: "String", + }, + inventoryListType: { + serializedName: "inventoryListType", + type: { + name: "String", + }, + }, + inventoryList: { + serializedName: "inventoryList", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "InventoryList", + }, + }, + }, + }, + }, + }, +}; + +export const InventoryList: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "InventoryList", + modelProperties: { + inventoryKind: { + serializedName: "inventoryKind", + type: { + name: "String", + }, + }, + value: { + serializedName: "value", + type: { + name: "String", + }, + }, + }, + }, +}; + +export const GitHubOwnerListResponse: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "GitHubOwnerListResponse", + modelProperties: { + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "GitHubOwner", + }, }, }, }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String", + }, + }, + }, + }, +}; + +export const GitHubOwnerProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "GitHubOwnerProperties", + modelProperties: { + provisioningStatusMessage: { + serializedName: "provisioningStatusMessage", + readOnly: true, + type: { + name: "String", + }, + }, + provisioningStatusUpdateTimeUtc: { + serializedName: "provisioningStatusUpdateTimeUtc", + readOnly: true, + type: { + name: "DateTime", + }, + }, + provisioningState: { + serializedName: "provisioningState", + readOnly: true, + type: { + name: "String", + }, + }, + ownerUrl: { + serializedName: "ownerUrl", + readOnly: true, + type: { + name: "String", + }, + }, + gitHubInternalId: { + serializedName: "gitHubInternalId", + readOnly: true, + type: { + name: "String", + }, + }, + onboardingState: { + serializedName: "onboardingState", + type: { + name: "String", + }, + }, + }, + }, +}; + +export const GitHubRepositoryListResponse: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "GitHubRepositoryListResponse", + modelProperties: { + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "GitHubRepository", + }, + }, + }, + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String", + }, + }, + }, + }, +}; + +export const GitHubRepositoryProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "GitHubRepositoryProperties", + modelProperties: { + provisioningStatusMessage: { + serializedName: "provisioningStatusMessage", + readOnly: true, + type: { + name: "String", + }, + }, + provisioningStatusUpdateTimeUtc: { + serializedName: "provisioningStatusUpdateTimeUtc", + readOnly: true, + type: { + name: "DateTime", + }, + }, + provisioningState: { + serializedName: "provisioningState", + readOnly: true, + type: { + name: "String", + }, + }, + repoId: { + serializedName: "repoId", + readOnly: true, + type: { + name: "String", + }, + }, + repoName: { + serializedName: "repoName", + readOnly: true, + type: { + name: "String", + }, + }, + repoFullName: { + serializedName: "repoFullName", + readOnly: true, + type: { + name: "String", + }, + }, + onboardingState: { + serializedName: "onboardingState", + type: { + name: "String", + }, + }, + repoUrl: { + serializedName: "repoUrl", + readOnly: true, + type: { + name: "String", + }, + }, + parentOwnerName: { + serializedName: "parentOwnerName", + type: { + name: "String", + }, + }, + }, + }, +}; + +export const GitLabGroupListResponse: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "GitLabGroupListResponse", + modelProperties: { + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "GitLabGroup", + }, + }, + }, + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String", + }, + }, + }, + }, +}; + +export const GitLabGroupProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "GitLabGroupProperties", + modelProperties: { + provisioningStatusMessage: { + serializedName: "provisioningStatusMessage", + readOnly: true, + type: { + name: "String", + }, + }, + provisioningStatusUpdateTimeUtc: { + serializedName: "provisioningStatusUpdateTimeUtc", + readOnly: true, + type: { + name: "DateTime", + }, + }, + provisioningState: { + serializedName: "provisioningState", + readOnly: true, + type: { + name: "String", + }, + }, + fullyQualifiedName: { + serializedName: "fullyQualifiedName", + readOnly: true, + type: { + name: "String", + }, + }, + fullyQualifiedFriendlyName: { + serializedName: "fullyQualifiedFriendlyName", + readOnly: true, + type: { + name: "String", + }, + }, + url: { + serializedName: "url", + readOnly: true, + type: { + name: "String", + }, + }, + onboardingState: { + serializedName: "onboardingState", + type: { + name: "String", + }, + }, + }, + }, +}; + +export const GitLabProjectListResponse: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "GitLabProjectListResponse", + modelProperties: { + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "GitLabProject", + }, + }, + }, + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String", + }, + }, + }, + }, +}; + +export const GitLabProjectProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "GitLabProjectProperties", + modelProperties: { + provisioningStatusMessage: { + serializedName: "provisioningStatusMessage", + readOnly: true, + type: { + name: "String", + }, + }, + provisioningStatusUpdateTimeUtc: { + serializedName: "provisioningStatusUpdateTimeUtc", + readOnly: true, + type: { + name: "DateTime", + }, + }, + provisioningState: { + serializedName: "provisioningState", + readOnly: true, + type: { + name: "String", + }, + }, + fullyQualifiedName: { + serializedName: "fullyQualifiedName", + readOnly: true, + type: { + name: "String", + }, + }, + fullyQualifiedFriendlyName: { + serializedName: "fullyQualifiedFriendlyName", + readOnly: true, + type: { + name: "String", + }, + }, + fullyQualifiedParentGroupName: { + serializedName: "fullyQualifiedParentGroupName", + readOnly: true, + type: { + name: "String", + }, + }, + url: { + serializedName: "url", + readOnly: true, + type: { + name: "String", + }, + }, + onboardingState: { + serializedName: "onboardingState", + type: { + name: "String", + }, + }, + }, + }, +}; + +export const OperationStatusResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "OperationStatusResult", + modelProperties: { + id: { + serializedName: "id", + type: { + name: "String", + }, + }, + name: { + serializedName: "name", + type: { + name: "String", + }, + }, + status: { + serializedName: "status", + required: 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: "ErrorDetailAutoGenerated2", + }, + }, + }, + }, +}; + +export const Cvss: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "Cvss", + modelProperties: { + 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", + }, + }, + link: { + serializedName: "link", + readOnly: true, + type: { + name: "String", + }, + }, + }, + }, +}; + +export const VendorReference: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "VendorReference", + modelProperties: { + title: { + serializedName: "title", + readOnly: true, + type: { + name: "String", + }, + }, + link: { + serializedName: "link", + readOnly: true, + type: { + name: "String", + }, + }, + }, + }, +}; + +export const Condition: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "Condition", + modelProperties: { + property: { + serializedName: "property", + type: { + name: "String", + }, + }, + value: { + serializedName: "value", + type: { + name: "String", + }, + }, + operator: { + serializedName: "operator", + type: { + name: "String", + }, + }, + }, + }, +}; + +export const ApplicationCondition: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ApplicationCondition", + modelProperties: { + property: { + serializedName: "property", + type: { + name: "String", + }, + }, + value: { + serializedName: "value", + type: { + name: "String", + }, + }, + operator: { + serializedName: "operator", + type: { + name: "String", + }, + }, + }, + }, +}; + +export const AwsOrganizationalData: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AwsOrganizationalData", + uberParent: "AwsOrganizationalData", + polymorphicDiscriminator: { + serializedName: "organizationMembershipType", + clientName: "organizationMembershipType", + }, + modelProperties: { + organizationMembershipType: { + serializedName: "organizationMembershipType", + required: true, + type: { + name: "String", + }, + }, }, - }; + }, +}; -export const DefenderForServersAwsOfferingDefenderForServers: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "DefenderForServersAwsOfferingDefenderForServers", - modelProperties: { - cloudRoleArn: { - serializedName: "cloudRoleArn", - type: { - name: "String", - }, +export const GcpOrganizationalData: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "GcpOrganizationalData", + uberParent: "GcpOrganizationalData", + polymorphicDiscriminator: { + serializedName: "organizationMembershipType", + clientName: "organizationMembershipType", + }, + 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", - }, +export const GcpProjectDetails: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "GcpProjectDetails", + modelProperties: { + projectNumber: { + serializedName: "projectNumber", + type: { + name: "String", }, - cloudRoleArn: { - serializedName: "cloudRoleArn", - type: { - name: "String", - }, + }, + projectId: { + serializedName: "projectId", + type: { + name: "String", }, - configuration: { - serializedName: "configuration", - type: { - name: "Composite", - className: - "DefenderForServersAwsOfferingArcAutoProvisioningConfiguration", - }, + }, + workloadIdentityPoolId: { + serializedName: "workloadIdentityPoolId", + readOnly: true, + type: { + name: "String", + }, + }, + projectName: { + serializedName: "projectName", + readOnly: true, + 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", - }, +export const Authentication: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "Authentication", + uberParent: "Authentication", + polymorphicDiscriminator: { + serializedName: "authenticationType", + clientName: "authenticationType", + }, + modelProperties: { + authenticationType: { + serializedName: "authenticationType", + required: true, + type: { + name: "String", }, }, }, - }; + }, +}; -export const DefenderForServersAwsOfferingVaAutoProvisioning: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "DefenderForServersAwsOfferingVaAutoProvisioning", - modelProperties: { - enabled: { - serializedName: "enabled", - type: { - name: "Boolean", - }, +export const CspmMonitorAwsOfferingNativeCloudConnection: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "CspmMonitorAwsOfferingNativeCloudConnection", + modelProperties: { + cloudRoleArn: { + serializedName: "cloudRoleArn", + type: { + name: "String", }, - configuration: { - serializedName: "configuration", - type: { - name: "Composite", - className: - "DefenderForServersAwsOfferingVaAutoProvisioningConfiguration", - }, + }, + }, + }, +}; + +export const DefenderForContainersAwsOfferingKubernetesService: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DefenderForContainersAwsOfferingKubernetesService", + modelProperties: { + cloudRoleArn: { + serializedName: "cloudRoleArn", + type: { + name: "String", }, }, }, - }; + }, +}; -export const DefenderForServersAwsOfferingVaAutoProvisioningConfiguration: coreClient.CompositeMapper = +export const DefenderForContainersAwsOfferingKubernetesDataCollection: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DefenderForServersAwsOfferingVaAutoProvisioningConfiguration", + className: "DefenderForContainersAwsOfferingKubernetesDataCollection", modelProperties: { - type: { - serializedName: "type", + cloudRoleArn: { + serializedName: "cloudRoleArn", type: { name: "String", }, @@ -6988,50 +7125,41 @@ export const DefenderForServersAwsOfferingVaAutoProvisioningConfiguration: coreC }, }; -export const DefenderForServersAwsOfferingMdeAutoProvisioning: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "DefenderForServersAwsOfferingMdeAutoProvisioning", - modelProperties: { - enabled: { - serializedName: "enabled", - type: { - name: "Boolean", - }, - }, - configuration: { - serializedName: "configuration", - type: { - name: "Dictionary", - value: { type: { name: "any" } }, - }, +export const DefenderForContainersAwsOfferingCloudWatchToKinesis: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DefenderForContainersAwsOfferingCloudWatchToKinesis", + modelProperties: { + cloudRoleArn: { + serializedName: "cloudRoleArn", + type: { + name: "String", }, }, }, - }; + }, +}; -export const DefenderForServersAwsOfferingSubPlan: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "DefenderForServersAwsOfferingSubPlan", - modelProperties: { +export const DefenderForContainersAwsOfferingKinesisToS3: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DefenderForContainersAwsOfferingKinesisToS3", + modelProperties: { + cloudRoleArn: { + serializedName: "cloudRoleArn", type: { - serializedName: "type", - type: { - name: "String", - }, + name: "String", }, }, }, - }; + }, +}; -export const DefenderForServersAwsOfferingVmScanners: coreClient.CompositeMapper = +export const DefenderForContainersAwsOfferingMdcContainersImageAssessment: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DefenderForServersAwsOfferingVmScanners", + className: "DefenderForContainersAwsOfferingMdcContainersImageAssessment", modelProperties: { enabled: { serializedName: "enabled", @@ -7039,51 +7167,21 @@ export const DefenderForServersAwsOfferingVmScanners: coreClient.CompositeMapper name: "Boolean", }, }, - configuration: { - serializedName: "configuration", - type: { - name: "Composite", - className: "DefenderForServersAwsOfferingVmScannersConfiguration", - }, - }, - }, - }, - }; - -export const DefenderForServersAwsOfferingVmScannersConfiguration: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "DefenderForServersAwsOfferingVmScannersConfiguration", - 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 DefenderFoDatabasesAwsOfferingArcAutoProvisioning: coreClient.CompositeMapper = +export const DefenderForContainersAwsOfferingMdcContainersAgentlessDiscoveryK8S: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DefenderFoDatabasesAwsOfferingArcAutoProvisioning", + className: "DefenderForContainersAwsOfferingMdcContainersAgentlessDiscoveryK8S", modelProperties: { enabled: { serializedName: "enabled", @@ -7097,45 +7195,73 @@ export const DefenderFoDatabasesAwsOfferingArcAutoProvisioning: coreClient.Compo name: "String", }, }, - configuration: { - serializedName: "configuration", - type: { - name: "Composite", - className: - "DefenderFoDatabasesAwsOfferingArcAutoProvisioningConfiguration", - }, - }, }, }, }; -export const DefenderFoDatabasesAwsOfferingArcAutoProvisioningConfiguration: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: - "DefenderFoDatabasesAwsOfferingArcAutoProvisioningConfiguration", - modelProperties: { - proxy: { - serializedName: "proxy", - type: { - name: "String", - }, +export const VmScannersBase: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "VmScannersBase", + modelProperties: { + enabled: { + serializedName: "enabled", + type: { + name: "Boolean", + }, + }, + configuration: { + serializedName: "configuration", + type: { + name: "Composite", + className: "VmScannersBaseConfiguration", + }, + }, + }, + }, +}; + +export const VmScannersBaseConfiguration: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "VmScannersBaseConfiguration", + modelProperties: { + scanningMode: { + serializedName: "scanningMode", + type: { + name: "String", + }, + }, + exclusionTags: { + serializedName: "exclusionTags", + type: { + name: "Dictionary", + value: { type: { name: "String" } }, }, - privateLinkScope: { - serializedName: "privateLinkScope", - type: { - name: "String", - }, + }, + }, + }, +}; + +export const DefenderForServersAwsOfferingDefenderForServers: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DefenderForServersAwsOfferingDefenderForServers", + modelProperties: { + cloudRoleArn: { + serializedName: "cloudRoleArn", + type: { + name: "String", }, }, }, - }; + }, +}; -export const DefenderFoDatabasesAwsOfferingRds: coreClient.CompositeMapper = { +export const ArcAutoProvisioning: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DefenderFoDatabasesAwsOfferingRds", + className: "ArcAutoProvisioning", modelProperties: { enabled: { serializedName: "enabled", @@ -7143,90 +7269,68 @@ export const DefenderFoDatabasesAwsOfferingRds: coreClient.CompositeMapper = { name: "Boolean", }, }, - cloudRoleArn: { - serializedName: "cloudRoleArn", + configuration: { + serializedName: "configuration", type: { - name: "String", + name: "Composite", + className: "ArcAutoProvisioningConfiguration", }, }, }, }, }; -export const DefenderFoDatabasesAwsOfferingDatabasesDspm: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "DefenderFoDatabasesAwsOfferingDatabasesDspm", - modelProperties: { - enabled: { - serializedName: "enabled", - type: { - name: "Boolean", - }, - }, - cloudRoleArn: { - serializedName: "cloudRoleArn", - type: { - name: "String", - }, +export const ArcAutoProvisioningConfiguration: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ArcAutoProvisioningConfiguration", + modelProperties: { + proxy: { + serializedName: "proxy", + type: { + name: "String", }, }, - }, - }; - -export const InformationProtectionAwsOfferingInformationProtection: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "InformationProtectionAwsOfferingInformationProtection", - modelProperties: { - cloudRoleArn: { - serializedName: "cloudRoleArn", - type: { - name: "String", - }, + privateLinkScope: { + serializedName: "privateLinkScope", + type: { + name: "String", }, }, }, - }; + }, +}; -export const CspmMonitorGcpOfferingNativeCloudConnection: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "CspmMonitorGcpOfferingNativeCloudConnection", - modelProperties: { - workloadIdentityProviderId: { - serializedName: "workloadIdentityProviderId", - type: { - name: "String", - }, +export const DefenderForServersAwsOfferingVaAutoProvisioning: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DefenderForServersAwsOfferingVaAutoProvisioning", + modelProperties: { + enabled: { + serializedName: "enabled", + type: { + name: "Boolean", }, - serviceAccountEmailAddress: { - serializedName: "serviceAccountEmailAddress", - type: { - name: "String", - }, + }, + configuration: { + serializedName: "configuration", + type: { + 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,231 +7339,207 @@ export const DefenderForServersGcpOfferingDefenderForServers: coreClient.Composi }, }; -export const DefenderForServersGcpOfferingArcAutoProvisioning: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "DefenderForServersGcpOfferingArcAutoProvisioning", - modelProperties: { - enabled: { - serializedName: "enabled", - type: { - name: "Boolean", - }, +export const DefenderForServersAwsOfferingMdeAutoProvisioning: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DefenderForServersAwsOfferingMdeAutoProvisioning", + modelProperties: { + enabled: { + serializedName: "enabled", + type: { + name: "Boolean", }, - configuration: { - serializedName: "configuration", - type: { - name: "Composite", - className: - "DefenderForServersGcpOfferingArcAutoProvisioningConfiguration", - }, + }, + configuration: { + serializedName: "configuration", + type: { + name: "Dictionary", + value: { type: { name: "any" } }, }, }, }, - }; + }, +}; -export const DefenderForServersGcpOfferingArcAutoProvisioningConfiguration: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: - "DefenderForServersGcpOfferingArcAutoProvisioningConfiguration", - modelProperties: { - proxy: { - serializedName: "proxy", - type: { - name: "String", - }, - }, - privateLinkScope: { - serializedName: "privateLinkScope", - type: { - name: "String", - }, +export const DefenderForServersAwsOfferingSubPlan: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DefenderForServersAwsOfferingSubPlan", + modelProperties: { + type: { + serializedName: "type", + type: { + name: "String", }, }, }, - }; + }, +}; -export const DefenderForServersGcpOfferingVaAutoProvisioning: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "DefenderForServersGcpOfferingVaAutoProvisioning", - modelProperties: { - enabled: { - serializedName: "enabled", - type: { - name: "Boolean", - }, +export const DefenderFoDatabasesAwsOfferingRds: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DefenderFoDatabasesAwsOfferingRds", + modelProperties: { + enabled: { + serializedName: "enabled", + type: { + name: "Boolean", }, - configuration: { - serializedName: "configuration", - type: { - name: "Composite", - className: - "DefenderForServersGcpOfferingVaAutoProvisioningConfiguration", - }, + }, + cloudRoleArn: { + serializedName: "cloudRoleArn", + type: { + name: "String", }, }, }, - }; + }, +}; -export const DefenderForServersGcpOfferingVaAutoProvisioningConfiguration: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "DefenderForServersGcpOfferingVaAutoProvisioningConfiguration", - modelProperties: { +export const DefenderFoDatabasesAwsOfferingDatabasesDspm: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DefenderFoDatabasesAwsOfferingDatabasesDspm", + modelProperties: { + enabled: { + serializedName: "enabled", type: { - serializedName: "type", - type: { - name: "String", - }, + name: "Boolean", + }, + }, + cloudRoleArn: { + serializedName: "cloudRoleArn", + type: { + name: "String", }, }, }, - }; + }, +}; -export const DefenderForServersGcpOfferingMdeAutoProvisioning: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "DefenderForServersGcpOfferingMdeAutoProvisioning", - modelProperties: { - enabled: { - serializedName: "enabled", - type: { - name: "Boolean", - }, +export const CspmMonitorGcpOfferingNativeCloudConnection: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "CspmMonitorGcpOfferingNativeCloudConnection", + modelProperties: { + workloadIdentityProviderId: { + serializedName: "workloadIdentityProviderId", + type: { + name: "String", }, - configuration: { - serializedName: "configuration", - type: { - name: "Dictionary", - value: { type: { name: "any" } }, - }, + }, + serviceAccountEmailAddress: { + serializedName: "serviceAccountEmailAddress", + type: { + name: "String", }, }, }, - }; + }, +}; -export const DefenderForServersGcpOfferingSubPlan: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "DefenderForServersGcpOfferingSubPlan", - modelProperties: { +export const DefenderForServersGcpOfferingDefenderForServers: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DefenderForServersGcpOfferingDefenderForServers", + modelProperties: { + workloadIdentityProviderId: { + serializedName: "workloadIdentityProviderId", type: { - serializedName: "type", - type: { - name: "String", - }, + name: "String", + }, + }, + serviceAccountEmailAddress: { + serializedName: "serviceAccountEmailAddress", + type: { + name: "String", }, }, }, - }; + }, +}; -export const DefenderForServersGcpOfferingVmScanners: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "DefenderForServersGcpOfferingVmScanners", - modelProperties: { - enabled: { - serializedName: "enabled", - type: { - name: "Boolean", - }, +export const DefenderForServersGcpOfferingVaAutoProvisioning: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DefenderForServersGcpOfferingVaAutoProvisioning", + modelProperties: { + enabled: { + serializedName: "enabled", + type: { + name: "Boolean", }, - configuration: { - serializedName: "configuration", - type: { - name: "Composite", - className: "DefenderForServersGcpOfferingVmScannersConfiguration", - }, + }, + configuration: { + serializedName: "configuration", + type: { + name: "Composite", + 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 = - { - type: { - name: "Composite", - className: "DefenderForDatabasesGcpOfferingArcAutoProvisioning", - modelProperties: { - enabled: { - serializedName: "enabled", - type: { - name: "Boolean", - }, +export const DefenderForServersGcpOfferingMdeAutoProvisioning: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DefenderForServersGcpOfferingMdeAutoProvisioning", + modelProperties: { + enabled: { + serializedName: "enabled", + type: { + name: "Boolean", }, - configuration: { - serializedName: "configuration", - type: { - name: "Composite", - className: - "DefenderForDatabasesGcpOfferingArcAutoProvisioningConfiguration", - }, + }, + configuration: { + serializedName: "configuration", + type: { + name: "Dictionary", + value: { type: { name: "any" } }, }, }, }, - }; + }, +}; -export const DefenderForDatabasesGcpOfferingArcAutoProvisioningConfiguration: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: - "DefenderForDatabasesGcpOfferingArcAutoProvisioningConfiguration", - modelProperties: { - proxy: { - serializedName: "proxy", - type: { - name: "String", - }, - }, - privateLinkScope: { - serializedName: "privateLinkScope", - type: { - name: "String", - }, +export const DefenderForServersGcpOfferingSubPlan: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DefenderForServersGcpOfferingSubPlan", + modelProperties: { + type: { + serializedName: "type", + type: { + name: "String", }, }, }, - }; + }, +}; export const DefenderForDatabasesGcpOfferingDefenderForDatabasesArcAutoProvisioning: coreClient.CompositeMapper = { type: { name: "Composite", - className: - "DefenderForDatabasesGcpOfferingDefenderForDatabasesArcAutoProvisioning", + className: "DefenderForDatabasesGcpOfferingDefenderForDatabasesArcAutoProvisioning", modelProperties: { serviceAccountEmailAddress: { serializedName: "serviceAccountEmailAddress", @@ -7477,34 +7557,32 @@ export const DefenderForDatabasesGcpOfferingDefenderForDatabasesArcAutoProvision }, }; -export const DefenderForContainersGcpOfferingNativeCloudConnection: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "DefenderForContainersGcpOfferingNativeCloudConnection", - modelProperties: { - serviceAccountEmailAddress: { - serializedName: "serviceAccountEmailAddress", - type: { - name: "String", - }, +export const DefenderForContainersGcpOfferingNativeCloudConnection: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DefenderForContainersGcpOfferingNativeCloudConnection", + modelProperties: { + serviceAccountEmailAddress: { + serializedName: "serviceAccountEmailAddress", + type: { + name: "String", }, - workloadIdentityProviderId: { - serializedName: "workloadIdentityProviderId", - type: { - name: "String", - }, + }, + workloadIdentityProviderId: { + serializedName: "workloadIdentityProviderId", + type: { + name: "String", }, }, }, - }; + }, +}; export const DefenderForContainersGcpOfferingDataPipelineNativeCloudConnection: coreClient.CompositeMapper = { type: { name: "Composite", - className: - "DefenderForContainersGcpOfferingDataPipelineNativeCloudConnection", + className: "DefenderForContainersGcpOfferingDataPipelineNativeCloudConnection", modelProperties: { serviceAccountEmailAddress: { serializedName: "serviceAccountEmailAddress", @@ -7554,8 +7632,7 @@ export const DefenderForContainersGcpOfferingMdcContainersAgentlessDiscoveryK8S: { type: { name: "Composite", - className: - "DefenderForContainersGcpOfferingMdcContainersAgentlessDiscoveryK8S", + className: "DefenderForContainersGcpOfferingMdcContainersAgentlessDiscoveryK8S", modelProperties: { enabled: { serializedName: "enabled", @@ -7579,10 +7656,10 @@ export const DefenderForContainersGcpOfferingMdcContainersAgentlessDiscoveryK8S: }, }; -export const DefenderCspmAwsOfferingVmScanners: coreClient.CompositeMapper = { +export const DefenderCspmAwsOfferingDataSensitivityDiscovery: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DefenderCspmAwsOfferingVmScanners", + className: "DefenderCspmAwsOfferingDataSensitivityDiscovery", modelProperties: { enabled: { serializedName: "enabled", @@ -7590,89 +7667,36 @@ export const DefenderCspmAwsOfferingVmScanners: coreClient.CompositeMapper = { name: "Boolean", }, }, - configuration: { - serializedName: "configuration", + cloudRoleArn: { + serializedName: "cloudRoleArn", type: { - name: "Composite", - className: "DefenderCspmAwsOfferingVmScannersConfiguration", + name: "String", }, }, }, }, }; -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: { - name: "Composite", - className: "DefenderCspmAwsOfferingDataSensitivityDiscovery", - modelProperties: { - enabled: { - serializedName: "enabled", - type: { - name: "Boolean", - }, - }, - cloudRoleArn: { - serializedName: "cloudRoleArn", - type: { - name: "String", - }, +export const DefenderCspmAwsOfferingDatabasesDspm: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DefenderCspmAwsOfferingDatabasesDspm", + modelProperties: { + enabled: { + serializedName: "enabled", + type: { + name: "Boolean", }, }, - }, - }; - -export const DefenderCspmAwsOfferingDatabasesDspm: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "DefenderCspmAwsOfferingDatabasesDspm", - modelProperties: { - enabled: { - serializedName: "enabled", - type: { - name: "Boolean", - }, - }, - cloudRoleArn: { - serializedName: "cloudRoleArn", - type: { - name: "String", - }, + cloudRoleArn: { + serializedName: "cloudRoleArn", + type: { + name: "String", }, }, }, - }; + }, +}; export const DefenderCspmAwsOfferingCiem: coreClient.CompositeMapper = { type: { @@ -7697,21 +7721,20 @@ export const DefenderCspmAwsOfferingCiem: coreClient.CompositeMapper = { }, }; -export const DefenderCspmAwsOfferingCiemDiscovery: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "DefenderCspmAwsOfferingCiemDiscovery", - modelProperties: { - cloudRoleArn: { - serializedName: "cloudRoleArn", - type: { - name: "String", - }, +export const DefenderCspmAwsOfferingCiemDiscovery: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DefenderCspmAwsOfferingCiemDiscovery", + modelProperties: { + cloudRoleArn: { + serializedName: "cloudRoleArn", + type: { + name: "String", }, }, }, - }; + }, +}; export const DefenderCspmAwsOfferingCiemOidc: coreClient.CompositeMapper = { type: { @@ -7734,27 +7757,26 @@ export const DefenderCspmAwsOfferingCiemOidc: coreClient.CompositeMapper = { }, }; -export const DefenderCspmAwsOfferingMdcContainersImageAssessment: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "DefenderCspmAwsOfferingMdcContainersImageAssessment", - modelProperties: { - enabled: { - serializedName: "enabled", - type: { - name: "Boolean", - }, +export const DefenderCspmAwsOfferingMdcContainersImageAssessment: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DefenderCspmAwsOfferingMdcContainersImageAssessment", + modelProperties: { + enabled: { + serializedName: "enabled", + type: { + name: "Boolean", }, - cloudRoleArn: { - serializedName: "cloudRoleArn", - type: { - name: "String", - }, + }, + cloudRoleArn: { + serializedName: "cloudRoleArn", + type: { + name: "String", }, }, }, - }; + }, +}; export const DefenderCspmAwsOfferingMdcContainersAgentlessDiscoveryK8S: coreClient.CompositeMapper = { @@ -7778,38 +7800,37 @@ export const DefenderCspmAwsOfferingMdcContainersAgentlessDiscoveryK8S: coreClie }, }; -export const DefenderCspmGcpOfferingCiemDiscovery: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "DefenderCspmGcpOfferingCiemDiscovery", - modelProperties: { - workloadIdentityProviderId: { - serializedName: "workloadIdentityProviderId", - type: { - name: "String", - }, - }, - serviceAccountEmailAddress: { - serializedName: "serviceAccountEmailAddress", - type: { - name: "String", - }, +export const DefenderCspmGcpOfferingCiemDiscovery: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DefenderCspmGcpOfferingCiemDiscovery", + modelProperties: { + workloadIdentityProviderId: { + serializedName: "workloadIdentityProviderId", + type: { + name: "String", }, - azureActiveDirectoryAppName: { - serializedName: "azureActiveDirectoryAppName", - type: { - name: "String", - }, + }, + serviceAccountEmailAddress: { + serializedName: "serviceAccountEmailAddress", + type: { + name: "String", + }, + }, + azureActiveDirectoryAppName: { + serializedName: "azureActiveDirectoryAppName", + type: { + name: "String", }, }, }, - }; + }, +}; -export const DefenderCspmGcpOfferingVmScanners: coreClient.CompositeMapper = { +export const DefenderCspmGcpOfferingDataSensitivityDiscovery: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DefenderCspmGcpOfferingVmScanners", + className: "DefenderCspmGcpOfferingDataSensitivityDiscovery", modelProperties: { enabled: { serializedName: "enabled", @@ -7817,73 +7838,54 @@ export const DefenderCspmGcpOfferingVmScanners: coreClient.CompositeMapper = { name: "Boolean", }, }, - configuration: { - serializedName: "configuration", + workloadIdentityProviderId: { + serializedName: "workloadIdentityProviderId", type: { - name: "Composite", - className: "DefenderCspmGcpOfferingVmScannersConfiguration", + name: "String", + }, + }, + serviceAccountEmailAddress: { + serializedName: "serviceAccountEmailAddress", + type: { + name: "String", }, }, }, }, }; -export const DefenderCspmGcpOfferingVmScannersConfiguration: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "DefenderCspmGcpOfferingVmScannersConfiguration", - modelProperties: { - scanningMode: { - serializedName: "scanningMode", - type: { - name: "String", - }, - }, - exclusionTags: { - serializedName: "exclusionTags", - type: { - name: "Dictionary", - value: { type: { name: "String" } }, - }, +export const DefenderCspmGcpOfferingMdcContainersImageAssessment: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DefenderCspmGcpOfferingMdcContainersImageAssessment", + modelProperties: { + enabled: { + serializedName: "enabled", + type: { + name: "Boolean", }, }, - }, - }; - -export const DefenderCspmGcpOfferingDataSensitivityDiscovery: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "DefenderCspmGcpOfferingDataSensitivityDiscovery", - modelProperties: { - enabled: { - serializedName: "enabled", - type: { - name: "Boolean", - }, - }, - workloadIdentityProviderId: { - serializedName: "workloadIdentityProviderId", - type: { - name: "String", - }, + workloadIdentityProviderId: { + serializedName: "workloadIdentityProviderId", + type: { + name: "String", }, - serviceAccountEmailAddress: { - serializedName: "serviceAccountEmailAddress", - type: { - name: "String", - }, + }, + serviceAccountEmailAddress: { + serializedName: "serviceAccountEmailAddress", + type: { + name: "String", }, }, }, - }; + }, +}; -export const DefenderCspmGcpOfferingMdcContainersImageAssessment: coreClient.CompositeMapper = +export const DefenderCspmGcpOfferingMdcContainersAgentlessDiscoveryK8S: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DefenderCspmGcpOfferingMdcContainersImageAssessment", + className: "DefenderCspmGcpOfferingMdcContainersAgentlessDiscoveryK8S", modelProperties: { enabled: { serializedName: "enabled", @@ -7907,33 +7909,20 @@ export const DefenderCspmGcpOfferingMdcContainersImageAssessment: coreClient.Com }, }; -export const DefenderCspmGcpOfferingMdcContainersAgentlessDiscoveryK8S: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "DefenderCspmGcpOfferingMdcContainersAgentlessDiscoveryK8S", - modelProperties: { - enabled: { - serializedName: "enabled", - type: { - name: "Boolean", - }, - }, - workloadIdentityProviderId: { - serializedName: "workloadIdentityProviderId", - type: { - name: "String", - }, - }, - serviceAccountEmailAddress: { - serializedName: "serviceAccountEmailAddress", - type: { - name: "String", - }, +export const DefenderCspmJFrogOfferingMdcContainersImageAssessment: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DefenderCspmJFrogOfferingMdcContainersImageAssessment", + modelProperties: { + enabled: { + serializedName: "enabled", + type: { + name: "Boolean", }, }, }, - }; + }, +}; export const ExternalSecuritySolutionProperties: coreClient.CompositeMapper = { type: { @@ -8036,6 +8025,124 @@ export const SecureScoreControlScore: coreClient.CompositeMapper = { }, }; +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 GitLabGroupConfiguration: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "GitLabGroupConfiguration", + modelProperties: { + autoDiscovery: { + serializedName: "autoDiscovery", + type: { + name: "String", + }, + }, + projectConfigs: { + serializedName: "projectConfigs", + nullable: true, + type: { + name: "Dictionary", + value: { + type: { name: "Composite", className: "BaseResourceConfiguration" }, + }, + }, + }, + }, + }, +}; + export const AscLocation: coreClient.CompositeMapper = { type: { name: "Composite", @@ -8255,27 +8362,13 @@ export const AlertsSuppressionRule: coreClient.CompositeMapper = { name: "String", }, }, - suppressionAlertsScope: { - serializedName: "properties.suppressionAlertsScope", - type: { - name: "Composite", - className: "SuppressionAlertsScope", - }, - }, - }, - }, -}; - -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, + suppressionAlertsScope: { + serializedName: "properties.suppressionAlertsScope", + type: { + name: "Composite", + className: "SuppressionAlertsScope", + }, + }, }, }, }; @@ -8537,53 +8630,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", @@ -9015,67 +9061,6 @@ export const Application: coreClient.CompositeMapper = { }, }; -export const DefenderForStorageSetting: coreClient.CompositeMapper = { - type: { - name: "Composite", - 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", - type: { - name: "Composite", - className: "OperationStatus", - }, - }, - isEnabledPropertiesMalwareScanningOnUploadIsEnabled: { - serializedName: "properties.malwareScanning.onUpload.isEnabled", - type: { - name: "Boolean", - }, - }, - capGBPerMonth: { - serializedName: "properties.malwareScanning.onUpload.capGBPerMonth", - type: { - name: "Number", - }, - }, - }, - }, -}; - export const SecurityOperator: coreClient.CompositeMapper = { type: { name: "Composite", @@ -9224,6 +9209,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", @@ -9343,8 +9389,7 @@ export const IoTSecuritySolutionAnalyticsModel: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: - "IoTSecuritySolutionAnalyticsModelPropertiesDevicesMetricsItem", + className: "IoTSecuritySolutionAnalyticsModelPropertiesDevicesMetricsItem", }, }, }, @@ -9488,8 +9533,7 @@ export const IoTSecurityAggregatedAlert: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: - "IoTSecurityAggregatedAlertPropertiesTopDevicesListItem", + className: "IoTSecurityAggregatedAlertPropertiesTopDevicesListItem", }, }, }, @@ -9704,46 +9748,6 @@ export const IoTSecuritySolutionModel: coreClient.CompositeMapper = { }, }; -export const AdaptiveNetworkHardening: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "AdaptiveNetworkHardening", - modelProperties: { - ...Resource.type.modelProperties, - rules: { - serializedName: "properties.rules", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "Rule", - }, - }, - }, - }, - rulesCalculationTime: { - serializedName: "properties.rulesCalculationTime", - type: { - name: "DateTime", - }, - }, - effectiveNetworkSecurityGroups: { - serializedName: "properties.effectiveNetworkSecurityGroups", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "EffectiveNetworkSecurityGroups", - }, - }, - }, - }, - }, - }, -}; - export const AllowedConnectionsResource: coreClient.CompositeMapper = { type: { name: "Composite", @@ -9775,88 +9779,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", @@ -10865,8 +10787,7 @@ export const ApiCollection: coreClient.CompositeMapper = { }, }, numberOfApiEndpointsWithSensitiveDataExposed: { - serializedName: - "properties.numberOfApiEndpointsWithSensitiveDataExposed", + serializedName: "properties.numberOfApiEndpointsWithSensitiveDataExposed", readOnly: true, type: { name: "Number", @@ -10977,10 +10898,10 @@ export const Pricing: coreClient.CompositeMapper = { }, }; -export const SecurityAssessmentMetadata: coreClient.CompositeMapper = { +export const SecurityStandard: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SecurityAssessmentMetadata", + className: "SecurityStandard", modelProperties: { ...Resource.type.modelProperties, displayName: { @@ -10989,8 +10910,8 @@ export const SecurityAssessmentMetadata: coreClient.CompositeMapper = { name: "String", }, }, - policyDefinitionId: { - serializedName: "properties.policyDefinitionId", + standardType: { + serializedName: "properties.standardType", readOnly: true, type: { name: "String", @@ -11002,14 +10923,20 @@ export const SecurityAssessmentMetadata: coreClient.CompositeMapper = { name: "String", }, }, - remediationDescription: { - serializedName: "properties.remediationDescription", + assessments: { + serializedName: "properties.assessments", type: { - name: "String", + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PartialAssessmentProperties", + }, + }, }, }, - categories: { - serializedName: "properties.categories", + cloudProviders: { + serializedName: "properties.cloudProviders", type: { name: "Sequence", element: { @@ -11019,26 +10946,56 @@ export const SecurityAssessmentMetadata: coreClient.CompositeMapper = { }, }, }, - severity: { - serializedName: "properties.severity", + policySetDefinitionId: { + serializedName: "properties.policySetDefinitionId", type: { name: "String", }, }, - userImpact: { - serializedName: "properties.userImpact", + metadata: { + serializedName: "properties.metadata", + type: { + name: "Composite", + className: "StandardMetadata", + }, + }, + }, + }, +}; + +export const StandardAssignment: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "StandardAssignment", + modelProperties: { + ...Resource.type.modelProperties, + displayName: { + serializedName: "properties.displayName", type: { name: "String", }, }, - implementationEffort: { - serializedName: "properties.implementationEffort", + description: { + serializedName: "properties.description", type: { name: "String", }, }, - threats: { - serializedName: "properties.threats", + assignedStandard: { + serializedName: "properties.assignedStandard", + type: { + name: "Composite", + className: "AssignedStandardItem", + }, + }, + effect: { + serializedName: "properties.effect", + type: { + name: "String", + }, + }, + excludedScopes: { + serializedName: "properties.excludedScopes", type: { name: "Sequence", element: { @@ -11048,165 +11005,215 @@ export const SecurityAssessmentMetadata: coreClient.CompositeMapper = { }, }, }, - preview: { - serializedName: "properties.preview", + expiresOn: { + serializedName: "properties.expiresOn", type: { - name: "Boolean", + name: "DateTime", }, }, - assessmentType: { - serializedName: "properties.assessmentType", + exemptionData: { + serializedName: "properties.exemptionData", type: { - name: "String", + name: "Composite", + className: "StandardAssignmentPropertiesExemptionData", }, }, - partnerData: { - serializedName: "properties.partnerData", + attestationData: { + serializedName: "properties.attestationData", type: { name: "Composite", - className: "SecurityAssessmentMetadataPartnerData", + className: "StandardAssignmentPropertiesAttestationData", + }, + }, + metadata: { + serializedName: "properties.metadata", + type: { + name: "Composite", + className: "StandardAssignmentMetadata", }, }, }, }, }; -export const AutomationActionLogicApp: coreClient.CompositeMapper = { - serializedName: "LogicApp", +export const CustomRecommendation: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AutomationActionLogicApp", - uberParent: "AutomationAction", - polymorphicDiscriminator: AutomationAction.type.polymorphicDiscriminator, + className: "CustomRecommendation", modelProperties: { - ...AutomationAction.type.modelProperties, - logicAppResourceId: { - serializedName: "logicAppResourceId", + ...Resource.type.modelProperties, + systemData: { + serializedName: "systemData", + type: { + name: "Composite", + className: "SystemData", + }, + }, + query: { + serializedName: "properties.query", type: { name: "String", }, }, - uri: { - serializedName: "uri", + cloudProviders: { + serializedName: "properties.cloudProviders", + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, + severity: { + serializedName: "properties.severity", 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", + securityIssue: { + serializedName: "properties.securityIssue", type: { name: "String", }, }, - sasPolicyName: { - serializedName: "sasPolicyName", - readOnly: true, + displayName: { + serializedName: "properties.displayName", type: { name: "String", }, }, - connectionString: { - serializedName: "connectionString", + description: { + serializedName: "properties.description", type: { name: "String", }, }, - isTrustedServiceEnabled: { - serializedName: "isTrustedServiceEnabled", + remediationDescription: { + serializedName: "properties.remediationDescription", type: { - name: "Boolean", + name: "String", + }, + }, + assessmentKey: { + serializedName: "properties.assessmentKey", + readOnly: true, + type: { + name: "String", }, }, }, }, }; -export const AutomationActionWorkspace: coreClient.CompositeMapper = { - serializedName: "Workspace", +export const DefenderForStorageSetting: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AutomationActionWorkspace", - uberParent: "AutomationAction", - polymorphicDiscriminator: AutomationAction.type.polymorphicDiscriminator, + className: "DefenderForStorageSetting", modelProperties: { - ...AutomationAction.type.modelProperties, - workspaceResourceId: { - serializedName: "workspaceResourceId", + ...Resource.type.modelProperties, + properties: { + serializedName: "properties", type: { - name: "String", + name: "Composite", + className: "DefenderForStorageSettingProperties", }, }, }, }, }; -export const AutomationUpdateModel: coreClient.CompositeMapper = { +export const SecurityAssessmentMetadata: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AutomationUpdateModel", + className: "SecurityAssessmentMetadata", modelProperties: { - ...Tags.type.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", }, }, - 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", + }, + }, }, }, }; @@ -11291,99 +11298,98 @@ export const SqlServerVulnerabilityProperties: coreClient.CompositeMapper = { name: "String", }, }, - query: { - serializedName: "query", + query: { + serializedName: "query", + readOnly: true, + type: { + name: "String", + }, + }, + }, + }, +}; + +export const ContainerRegistryVulnerabilityProperties: coreClient.CompositeMapper = { + serializedName: "ContainerRegistryVulnerability", + type: { + name: "Composite", + className: "ContainerRegistryVulnerabilityProperties", + uberParent: "AdditionalData", + polymorphicDiscriminator: AdditionalData.type.polymorphicDiscriminator, + modelProperties: { + ...AdditionalData.type.modelProperties, + type: { + serializedName: "type", + readOnly: true, + type: { + name: "String", + }, + }, + cvss: { + serializedName: "cvss", readOnly: true, type: { - name: "String", + name: "Dictionary", + value: { type: { name: "Composite", className: "Cvss" } }, }, }, - }, - }, -}; - -export const ContainerRegistryVulnerabilityProperties: coreClient.CompositeMapper = - { - serializedName: "ContainerRegistryVulnerability", - type: { - name: "Composite", - className: "ContainerRegistryVulnerabilityProperties", - uberParent: "AdditionalData", - polymorphicDiscriminator: AdditionalData.type.polymorphicDiscriminator, - modelProperties: { - ...AdditionalData.type.modelProperties, + patchable: { + serializedName: "patchable", + readOnly: true, type: { - serializedName: "type", - readOnly: true, - type: { - name: "String", - }, - }, - cvss: { - serializedName: "cvss", - readOnly: true, - type: { - name: "Dictionary", - value: { type: { name: "Composite", className: "Cvss" } }, - }, - }, - patchable: { - serializedName: "patchable", - readOnly: true, - type: { - name: "Boolean", - }, + name: "Boolean", }, - cve: { - serializedName: "cve", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "Cve", - }, + }, + cve: { + serializedName: "cve", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Cve", }, }, }, - publishedTime: { - serializedName: "publishedTime", - readOnly: true, - type: { - name: "DateTime", - }, + }, + publishedTime: { + serializedName: "publishedTime", + readOnly: true, + type: { + name: "DateTime", }, - vendorReferences: { - serializedName: "vendorReferences", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "VendorReference", - }, + }, + vendorReferences: { + serializedName: "vendorReferences", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "VendorReference", }, }, }, - repositoryName: { - serializedName: "repositoryName", - readOnly: true, - type: { - name: "String", - }, + }, + repositoryName: { + serializedName: "repositoryName", + readOnly: true, + type: { + name: "String", }, - imageDigest: { - serializedName: "imageDigest", - readOnly: true, - type: { - name: "String", - }, + }, + imageDigest: { + serializedName: "imageDigest", + readOnly: true, + type: { + name: "String", }, }, }, - }; + }, +}; export const ServerVulnerabilityProperties: coreClient.CompositeMapper = { serializedName: "ServerVulnerabilityAssessment", @@ -11460,163 +11466,298 @@ export const ServerVulnerabilityProperties: coreClient.CompositeMapper = { }, }; -export const AwsCredsAuthenticationDetailsProperties: coreClient.CompositeMapper = - { - serializedName: "awsCreds", - type: { - name: "Composite", - className: "AwsCredsAuthenticationDetailsProperties", - uberParent: "AuthenticationDetailsProperties", - polymorphicDiscriminator: - AuthenticationDetailsProperties.type.polymorphicDiscriminator, - modelProperties: { - ...AuthenticationDetailsProperties.type.modelProperties, - accountId: { - serializedName: "accountId", - readOnly: true, - type: { - name: "String", - }, +export const AwsCredsAuthenticationDetailsProperties: coreClient.CompositeMapper = { + serializedName: "awsCreds", + type: { + name: "Composite", + className: "AwsCredsAuthenticationDetailsProperties", + uberParent: "AuthenticationDetailsProperties", + polymorphicDiscriminator: AuthenticationDetailsProperties.type.polymorphicDiscriminator, + modelProperties: { + ...AuthenticationDetailsProperties.type.modelProperties, + accountId: { + serializedName: "accountId", + readOnly: true, + type: { + name: "String", }, - awsAccessKeyId: { - serializedName: "awsAccessKeyId", - required: true, - type: { - name: "String", - }, + }, + awsAccessKeyId: { + serializedName: "awsAccessKeyId", + required: true, + type: { + name: "String", }, - awsSecretAccessKey: { - serializedName: "awsSecretAccessKey", - required: true, - type: { - name: "String", - }, + }, + awsSecretAccessKey: { + serializedName: "awsSecretAccessKey", + required: true, + type: { + name: "String", }, }, }, - }; + }, +}; -export const AwAssumeRoleAuthenticationDetailsProperties: coreClient.CompositeMapper = - { - serializedName: "awsAssumeRole", - type: { - name: "Composite", - className: "AwAssumeRoleAuthenticationDetailsProperties", - uberParent: "AuthenticationDetailsProperties", - polymorphicDiscriminator: - AuthenticationDetailsProperties.type.polymorphicDiscriminator, - modelProperties: { - ...AuthenticationDetailsProperties.type.modelProperties, - accountId: { - serializedName: "accountId", - readOnly: true, - type: { - name: "String", - }, +export const AwAssumeRoleAuthenticationDetailsProperties: coreClient.CompositeMapper = { + serializedName: "awsAssumeRole", + type: { + name: "Composite", + className: "AwAssumeRoleAuthenticationDetailsProperties", + uberParent: "AuthenticationDetailsProperties", + polymorphicDiscriminator: AuthenticationDetailsProperties.type.polymorphicDiscriminator, + modelProperties: { + ...AuthenticationDetailsProperties.type.modelProperties, + accountId: { + serializedName: "accountId", + readOnly: true, + type: { + name: "String", }, - awsAssumeRoleArn: { - serializedName: "awsAssumeRoleArn", - required: true, - type: { - name: "String", - }, + }, + awsAssumeRoleArn: { + serializedName: "awsAssumeRoleArn", + required: true, + type: { + name: "String", }, - awsExternalId: { - serializedName: "awsExternalId", - required: true, - type: { - name: "String", - }, + }, + awsExternalId: { + serializedName: "awsExternalId", + required: true, + type: { + name: "String", + }, + }, + }, + }, +}; + +export const GcpCredentialsDetailsProperties: coreClient.CompositeMapper = { + serializedName: "gcpCredentials", + type: { + name: "Composite", + className: "GcpCredentialsDetailsProperties", + uberParent: "AuthenticationDetailsProperties", + polymorphicDiscriminator: AuthenticationDetailsProperties.type.polymorphicDiscriminator, + modelProperties: { + ...AuthenticationDetailsProperties.type.modelProperties, + organizationId: { + serializedName: "organizationId", + required: true, + type: { + name: "String", + }, + }, + type: { + serializedName: "type", + required: true, + type: { + name: "String", + }, + }, + projectId: { + serializedName: "projectId", + required: true, + type: { + name: "String", + }, + }, + privateKeyId: { + serializedName: "privateKeyId", + required: true, + type: { + name: "String", + }, + }, + privateKey: { + serializedName: "privateKey", + required: true, + type: { + name: "String", + }, + }, + clientEmail: { + serializedName: "clientEmail", + required: true, + type: { + name: "String", + }, + }, + clientId: { + serializedName: "clientId", + required: true, + type: { + name: "String", + }, + }, + authUri: { + serializedName: "authUri", + required: true, + type: { + name: "String", + }, + }, + tokenUri: { + serializedName: "tokenUri", + required: true, + type: { + name: "String", + }, + }, + authProviderX509CertUrl: { + serializedName: "authProviderX509CertUrl", + required: true, + type: { + name: "String", + }, + }, + clientX509CertUrl: { + serializedName: "clientX509CertUrl", + required: true, + type: { + name: "String", + }, + }, + }, + }, +}; + +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 GcpCredentialsDetailsProperties: coreClient.CompositeMapper = { - serializedName: "gcpCredentials", +export const AutomationActionEventHub: coreClient.CompositeMapper = { + serializedName: "EventHub", type: { name: "Composite", - className: "GcpCredentialsDetailsProperties", - uberParent: "AuthenticationDetailsProperties", - polymorphicDiscriminator: - AuthenticationDetailsProperties.type.polymorphicDiscriminator, + className: "AutomationActionEventHub", + uberParent: "AutomationAction", + polymorphicDiscriminator: AutomationAction.type.polymorphicDiscriminator, modelProperties: { - ...AuthenticationDetailsProperties.type.modelProperties, - organizationId: { - serializedName: "organizationId", - required: true, - type: { - name: "String", - }, - }, - type: { - serializedName: "type", - required: true, + ...AutomationAction.type.modelProperties, + eventHubResourceId: { + serializedName: "eventHubResourceId", type: { name: "String", }, }, - projectId: { - serializedName: "projectId", - required: true, + sasPolicyName: { + serializedName: "sasPolicyName", + readOnly: true, type: { name: "String", }, }, - privateKeyId: { - serializedName: "privateKeyId", - required: true, + connectionString: { + serializedName: "connectionString", type: { name: "String", }, }, - privateKey: { - serializedName: "privateKey", - required: true, + isTrustedServiceEnabled: { + serializedName: "isTrustedServiceEnabled", type: { - name: "String", + name: "Boolean", }, }, - clientEmail: { - serializedName: "clientEmail", - required: true, + }, + }, +}; + +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", }, }, - clientId: { - serializedName: "clientId", - required: true, + }, + }, +}; + +export const AutomationUpdateModel: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AutomationUpdateModel", + modelProperties: { + ...Tags.type.modelProperties, + description: { + serializedName: "properties.description", type: { name: "String", }, }, - authUri: { - serializedName: "authUri", - required: true, + isEnabled: { + serializedName: "properties.isEnabled", type: { - name: "String", + name: "Boolean", }, }, - tokenUri: { - serializedName: "tokenUri", - required: true, + scopes: { + serializedName: "properties.scopes", type: { - name: "String", + name: "Sequence", + element: { + type: { + name: "Composite", + className: "AutomationScope", + }, + }, }, }, - authProviderX509CertUrl: { - serializedName: "authProviderX509CertUrl", - required: true, + sources: { + serializedName: "properties.sources", type: { - name: "String", + name: "Sequence", + element: { + type: { + name: "Composite", + className: "AutomationSource", + }, + }, }, }, - clientX509CertUrl: { - serializedName: "clientX509CertUrl", - required: true, + actions: { + serializedName: "properties.actions", type: { - name: "String", + name: "Sequence", + element: { + type: { + name: "Composite", + className: "AutomationAction", + }, + }, }, }, }, @@ -11661,16 +11802,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 +11838,11 @@ export const DefenderForContainersAwsOffering: coreClient.CompositeMapper = { className: "DefenderForContainersAwsOfferingKubernetesService", }, }, - kubernetesScubaReader: { - serializedName: "kubernetesScubaReader", + kubernetesDataCollection: { + serializedName: "kubernetesDataCollection", type: { name: "Composite", - className: "DefenderForContainersAwsOfferingKubernetesScubaReader", + className: "DefenderForContainersAwsOfferingKubernetesDataCollection", }, }, cloudWatchToKinesis: { @@ -11728,30 +11859,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 +11883,8 @@ export const DefenderForContainersAwsOffering: coreClient.CompositeMapper = { name: "Number", }, }, - scubaExternalId: { - serializedName: "scubaExternalId", + dataCollectionExternalId: { + serializedName: "dataCollectionExternalId", type: { name: "String", }, @@ -11772,16 +11893,21 @@ export const DefenderForContainersAwsOffering: coreClient.CompositeMapper = { serializedName: "mdcContainersImageAssessment", type: { name: "Composite", - className: - "DefenderForContainersAwsOfferingMdcContainersImageAssessment", + className: "DefenderForContainersAwsOfferingMdcContainersImageAssessment", }, }, mdcContainersAgentlessDiscoveryK8S: { serializedName: "mdcContainersAgentlessDiscoveryK8s", type: { name: "Composite", - className: - "DefenderForContainersAwsOfferingMdcContainersAgentlessDiscoveryK8S", + className: "DefenderForContainersAwsOfferingMdcContainersAgentlessDiscoveryK8S", + }, + }, + vmScanners: { + serializedName: "vmScanners", + type: { + name: "Composite", + className: "DefenderForContainersAwsOfferingVmScanners", }, }, }, @@ -11877,26 +12003,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: { @@ -11992,8 +12098,7 @@ export const DefenderForDatabasesGcpOffering: coreClient.CompositeMapper = { serializedName: "defenderForDatabasesArcAutoProvisioning", type: { name: "Composite", - className: - "DefenderForDatabasesGcpOfferingDefenderForDatabasesArcAutoProvisioning", + className: "DefenderForDatabasesGcpOfferingDefenderForDatabasesArcAutoProvisioning", }, }, }, @@ -12020,24 +12125,23 @@ export const DefenderForContainersGcpOffering: coreClient.CompositeMapper = { serializedName: "dataPipelineNativeCloudConnection", type: { name: "Composite", - className: - "DefenderForContainersGcpOfferingDataPipelineNativeCloudConnection", + className: "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", }, @@ -12046,16 +12150,21 @@ export const DefenderForContainersGcpOffering: coreClient.CompositeMapper = { serializedName: "mdcContainersImageAssessment", type: { name: "Composite", - className: - "DefenderForContainersGcpOfferingMdcContainersImageAssessment", + className: "DefenderForContainersGcpOfferingMdcContainersImageAssessment", }, }, mdcContainersAgentlessDiscoveryK8S: { serializedName: "mdcContainersAgentlessDiscoveryK8s", type: { name: "Composite", - className: - "DefenderForContainersGcpOfferingMdcContainersAgentlessDiscoveryK8S", + className: "DefenderForContainersGcpOfferingMdcContainersAgentlessDiscoveryK8S", + }, + }, + vmScanners: { + serializedName: "vmScanners", + type: { + name: "Composite", + className: "DefenderForContainersGcpOfferingVmScanners", }, }, }, @@ -12136,8 +12245,7 @@ export const DefenderCspmAwsOffering: coreClient.CompositeMapper = { serializedName: "mdcContainersAgentlessDiscoveryK8s", type: { name: "Composite", - className: - "DefenderCspmAwsOfferingMdcContainersAgentlessDiscoveryK8S", + className: "DefenderCspmAwsOfferingMdcContainersAgentlessDiscoveryK8S", }, }, }, @@ -12185,19 +12293,18 @@ export const DefenderCspmGcpOffering: coreClient.CompositeMapper = { serializedName: "mdcContainersAgentlessDiscoveryK8s", type: { name: "Composite", - className: - "DefenderCspmGcpOfferingMdcContainersAgentlessDiscoveryK8S", + className: "DefenderCspmGcpOfferingMdcContainersAgentlessDiscoveryK8S", }, }, }, }, }; -export const DefenderForDevOpsGithubOffering: coreClient.CompositeMapper = { - serializedName: "DefenderForDevOpsGithub", +export const CspmMonitorGitLabOffering: coreClient.CompositeMapper = { + serializedName: "CspmMonitorGitLab", type: { name: "Composite", - className: "DefenderForDevOpsGithubOffering", + className: "CspmMonitorGitLabOffering", uberParent: "CloudOffering", polymorphicDiscriminator: CloudOffering.type.polymorphicDiscriminator, modelProperties: { @@ -12206,25 +12313,50 @@ export const DefenderForDevOpsGithubOffering: coreClient.CompositeMapper = { }, }; -export const DefenderForDevOpsAzureDevOpsOffering: coreClient.CompositeMapper = - { - serializedName: "DefenderForDevOpsAzureDevOps", - type: { - name: "Composite", - className: "DefenderForDevOpsAzureDevOpsOffering", - uberParent: "CloudOffering", - polymorphicDiscriminator: CloudOffering.type.polymorphicDiscriminator, - modelProperties: { - ...CloudOffering.type.modelProperties, - }, +export const CspmMonitorDockerHubOffering: coreClient.CompositeMapper = { + serializedName: "CspmMonitorDockerHub", + type: { + name: "Composite", + className: "CspmMonitorDockerHubOffering", + uberParent: "CloudOffering", + polymorphicDiscriminator: CloudOffering.type.polymorphicDiscriminator, + modelProperties: { + ...CloudOffering.type.modelProperties, }, - }; + }, +}; -export const CspmMonitorGitLabOffering: coreClient.CompositeMapper = { - serializedName: "CspmMonitorGitLab", +export const DefenderForContainersDockerHubOffering: coreClient.CompositeMapper = { + serializedName: "DefenderForContainersDockerHub", type: { name: "Composite", - className: "CspmMonitorGitLabOffering", + className: "DefenderForContainersDockerHubOffering", + uberParent: "CloudOffering", + polymorphicDiscriminator: CloudOffering.type.polymorphicDiscriminator, + modelProperties: { + ...CloudOffering.type.modelProperties, + }, + }, +}; + +export const DefenderCspmDockerHubOffering: coreClient.CompositeMapper = { + serializedName: "DefenderCspmDockerHub", + type: { + name: "Composite", + className: "DefenderCspmDockerHubOffering", + uberParent: "CloudOffering", + polymorphicDiscriminator: CloudOffering.type.polymorphicDiscriminator, + modelProperties: { + ...CloudOffering.type.modelProperties, + }, + }, +}; + +export const CspmMonitorJFrogOffering: coreClient.CompositeMapper = { + serializedName: "CspmMonitorJFrog", + type: { + name: "Composite", + className: "CspmMonitorJFrogOffering", uberParent: "CloudOffering", polymorphicDiscriminator: CloudOffering.type.polymorphicDiscriminator, modelProperties: { @@ -12233,11 +12365,11 @@ export const CspmMonitorGitLabOffering: coreClient.CompositeMapper = { }, }; -export const DefenderForDevOpsGitLabOffering: coreClient.CompositeMapper = { - serializedName: "DefenderForDevOpsGitLab", +export const DefenderForContainersJFrogOffering: coreClient.CompositeMapper = { + serializedName: "DefenderForContainersJFrog", type: { name: "Composite", - className: "DefenderForDevOpsGitLabOffering", + className: "DefenderForContainersJFrogOffering", uberParent: "CloudOffering", polymorphicDiscriminator: CloudOffering.type.polymorphicDiscriminator, modelProperties: { @@ -12246,6 +12378,26 @@ export const DefenderForDevOpsGitLabOffering: coreClient.CompositeMapper = { }, }; +export const DefenderCspmJFrogOffering: coreClient.CompositeMapper = { + serializedName: "DefenderCspmJFrog", + type: { + name: "Composite", + className: "DefenderCspmJFrogOffering", + uberParent: "CloudOffering", + polymorphicDiscriminator: CloudOffering.type.polymorphicDiscriminator, + modelProperties: { + ...CloudOffering.type.modelProperties, + mdcContainersImageAssessment: { + serializedName: "mdcContainersImageAssessment", + type: { + name: "Composite", + className: "DefenderCspmJFrogOfferingMdcContainersImageAssessment", + }, + }, + }, + }, +}; + export const AwsEnvironmentData: coreClient.CompositeMapper = { serializedName: "AwsAccount", type: { @@ -12362,6 +12514,55 @@ export const GitlabScopeEnvironmentData: coreClient.CompositeMapper = { }, }; +export const DockerHubEnvironmentData: coreClient.CompositeMapper = { + serializedName: "DockerHubOrganization", + type: { + name: "Composite", + className: "DockerHubEnvironmentData", + uberParent: "EnvironmentData", + polymorphicDiscriminator: EnvironmentData.type.polymorphicDiscriminator, + modelProperties: { + ...EnvironmentData.type.modelProperties, + authentication: { + serializedName: "authentication", + type: { + name: "Composite", + className: "Authentication", + }, + }, + scanInterval: { + serializedName: "scanInterval", + type: { + name: "Number", + }, + }, + }, + }, +}; + +export const JFrogEnvironmentData: coreClient.CompositeMapper = { + serializedName: "JFrogArtifactory", + type: { + name: "Composite", + className: "JFrogEnvironmentData", + uberParent: "EnvironmentData", + polymorphicDiscriminator: EnvironmentData.type.polymorphicDiscriminator, + modelProperties: { + ...EnvironmentData.type.modelProperties, + scanInterval: { + constraints: { + InclusiveMaximum: 24, + InclusiveMinimum: 1, + }, + serializedName: "scanInterval", + type: { + name: "Number", + }, + }, + }, + }, +}; + export const ThresholdCustomAlertRule: coreClient.CompositeMapper = { serializedName: "ThresholdCustomAlertRule", type: { @@ -12444,55 +12645,53 @@ export const UpdateIotSecuritySolutionData: coreClient.CompositeMapper = { }, }; -export const SecurityAssessmentMetadataPropertiesResponse: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "SecurityAssessmentMetadataPropertiesResponse", - modelProperties: { - ...SecurityAssessmentMetadataProperties.type.modelProperties, - publishDates: { - serializedName: "publishDates", - type: { - name: "Composite", - className: - "SecurityAssessmentMetadataPropertiesResponsePublishDates", - }, +export const SecurityAssessmentMetadataPropertiesResponse: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SecurityAssessmentMetadataPropertiesResponse", + modelProperties: { + ...SecurityAssessmentMetadataProperties.type.modelProperties, + publishDates: { + serializedName: "publishDates", + type: { + name: "Composite", + className: "SecurityAssessmentMetadataPropertiesResponsePublishDates", }, - plannedDeprecationDate: { - constraints: { - Pattern: new RegExp("^[0-9]{2}\\/[0-9]{4}$"), - }, - serializedName: "plannedDeprecationDate", - type: { - name: "String", - }, + }, + plannedDeprecationDate: { + constraints: { + Pattern: new RegExp("^[0-9]{2}\\/[0-9]{4}$"), }, - tactics: { - serializedName: "tactics", - type: { - name: "Sequence", - element: { - type: { - name: "String", - }, + serializedName: "plannedDeprecationDate", + type: { + name: "String", + }, + }, + tactics: { + serializedName: "tactics", + type: { + name: "Sequence", + element: { + type: { + name: "String", }, }, }, - techniques: { - serializedName: "techniques", - type: { - name: "Sequence", - element: { - type: { - name: "String", - }, + }, + techniques: { + serializedName: "techniques", + type: { + name: "Sequence", + element: { + type: { + name: "String", }, }, }, }, }, - }; + }, +}; export const AssessmentStatusResponse: coreClient.CompositeMapper = { type: { @@ -12518,23 +12717,22 @@ export const AssessmentStatusResponse: coreClient.CompositeMapper = { }, }; -export const SecurityAssessmentPropertiesResponse: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "SecurityAssessmentPropertiesResponse", - modelProperties: { - ...SecurityAssessmentPropertiesBase.type.modelProperties, - status: { - serializedName: "status", - type: { - name: "Composite", - className: "AssessmentStatusResponse", - }, +export const SecurityAssessmentPropertiesResponse: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SecurityAssessmentPropertiesResponse", + modelProperties: { + ...SecurityAssessmentPropertiesBase.type.modelProperties, + status: { + serializedName: "status", + type: { + name: "Composite", + className: "AssessmentStatusResponse", }, }, }, - }; + }, +}; export const SecurityAssessmentProperties: coreClient.CompositeMapper = { type: { @@ -12591,9 +12789,7 @@ export const LogAnalyticsIdentifier: coreClient.CompositeMapper = { }, workspaceSubscriptionId: { constraints: { - Pattern: new RegExp( - "^[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}$", - ), + Pattern: new RegExp("^[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}$"), }, serializedName: "workspaceSubscriptionId", readOnly: true, @@ -12619,56 +12815,63 @@ export const LogAnalyticsIdentifier: coreClient.CompositeMapper = { }, }; -export const AlertSimulatorBundlesRequestProperties: coreClient.CompositeMapper = - { - serializedName: "Bundles", - type: { - name: "Composite", - className: "AlertSimulatorBundlesRequestProperties", - uberParent: "AlertSimulatorRequestProperties", - additionalProperties: { type: { name: "Object" } }, - polymorphicDiscriminator: - AlertSimulatorRequestProperties.type.polymorphicDiscriminator, - modelProperties: { - ...AlertSimulatorRequestProperties.type.modelProperties, - bundles: { - serializedName: "bundles", - type: { - name: "Sequence", - element: { - type: { - name: "String", - }, +export const AlertSimulatorBundlesRequestProperties: coreClient.CompositeMapper = { + serializedName: "Bundles", + type: { + name: "Composite", + className: "AlertSimulatorBundlesRequestProperties", + uberParent: "AlertSimulatorRequestProperties", + additionalProperties: { type: { name: "Object" } }, + polymorphicDiscriminator: AlertSimulatorRequestProperties.type.polymorphicDiscriminator, + modelProperties: { + ...AlertSimulatorRequestProperties.type.modelProperties, + bundles: { + serializedName: "bundles", + type: { + name: "Sequence", + element: { + type: { + name: "String", }, }, }, }, }, - }; + }, +}; -export const ServerVulnerabilityAssessmentsSetting: coreClient.CompositeMapper = - { - serializedName: "ServerVulnerabilityAssessmentsSetting", - type: { - name: "Composite", - className: "ServerVulnerabilityAssessmentsSetting", - uberParent: "ResourceAutoGenerated2", - polymorphicDiscriminator: { +export const ServerVulnerabilityAssessmentsSetting: coreClient.CompositeMapper = { + serializedName: "ServerVulnerabilityAssessmentsSetting", + type: { + name: "Composite", + className: "ServerVulnerabilityAssessmentsSetting", + uberParent: "ResourceAutoGenerated", + polymorphicDiscriminator: { + serializedName: "kind", + clientName: "kind", + }, + modelProperties: { + ...ResourceAutoGenerated.type.modelProperties, + kind: { serializedName: "kind", - clientName: "kind", - }, - modelProperties: { - ...ResourceAutoGenerated2.type.modelProperties, - kind: { - serializedName: "kind", - required: true, - type: { - name: "String", - }, + required: true, + type: { + name: "String", }, }, }, - }; + }, +}; + +export const ProxyResource: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ProxyResource", + modelProperties: { + ...ResourceAutoGenerated2.type.modelProperties, + }, + }, +}; export const AwsOrganizationalDataMaster: coreClient.CompositeMapper = { serializedName: "Organization", @@ -12676,8 +12879,7 @@ export const AwsOrganizationalDataMaster: coreClient.CompositeMapper = { name: "Composite", className: "AwsOrganizationalDataMaster", uberParent: "AwsOrganizationalData", - polymorphicDiscriminator: - AwsOrganizationalData.type.polymorphicDiscriminator, + polymorphicDiscriminator: AwsOrganizationalData.type.polymorphicDiscriminator, modelProperties: { ...AwsOrganizationalData.type.modelProperties, stacksetName: { @@ -12707,8 +12909,7 @@ export const AwsOrganizationalDataMember: coreClient.CompositeMapper = { name: "Composite", className: "AwsOrganizationalDataMember", uberParent: "AwsOrganizationalData", - polymorphicDiscriminator: - AwsOrganizationalData.type.polymorphicDiscriminator, + polymorphicDiscriminator: AwsOrganizationalData.type.polymorphicDiscriminator, modelProperties: { ...AwsOrganizationalData.type.modelProperties, parentHierarchyId: { @@ -12727,8 +12928,7 @@ export const GcpOrganizationalDataOrganization: coreClient.CompositeMapper = { name: "Composite", className: "GcpOrganizationalDataOrganization", uberParent: "GcpOrganizationalData", - polymorphicDiscriminator: - GcpOrganizationalData.type.polymorphicDiscriminator, + polymorphicDiscriminator: GcpOrganizationalData.type.polymorphicDiscriminator, modelProperties: { ...GcpOrganizationalData.type.modelProperties, excludedProjectNumbers: { @@ -12771,8 +12971,7 @@ export const GcpOrganizationalDataMember: coreClient.CompositeMapper = { name: "Composite", className: "GcpOrganizationalDataMember", uberParent: "GcpOrganizationalData", - polymorphicDiscriminator: - GcpOrganizationalData.type.polymorphicDiscriminator, + polymorphicDiscriminator: GcpOrganizationalData.type.polymorphicDiscriminator, modelProperties: { ...GcpOrganizationalData.type.modelProperties, parentHierarchyId: { @@ -12791,6 +12990,83 @@ export const GcpOrganizationalDataMember: coreClient.CompositeMapper = { }, }; +export const AccessTokenAuthentication: coreClient.CompositeMapper = { + serializedName: "AccessToken", + type: { + name: "Composite", + className: "AccessTokenAuthentication", + uberParent: "Authentication", + polymorphicDiscriminator: Authentication.type.polymorphicDiscriminator, + modelProperties: { + ...Authentication.type.modelProperties, + username: { + serializedName: "username", + type: { + name: "String", + }, + }, + accessToken: { + serializedName: "accessToken", + type: { + name: "String", + }, + }, + }, + }, +}; + +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", @@ -12968,8 +13244,7 @@ export const CefExternalSecuritySolution: coreClient.CompositeMapper = { name: "Composite", className: "CefExternalSecuritySolution", uberParent: "ExternalSecuritySolution", - polymorphicDiscriminator: - ExternalSecuritySolution.type.polymorphicDiscriminator, + polymorphicDiscriminator: ExternalSecuritySolution.type.polymorphicDiscriminator, modelProperties: { ...ExternalSecuritySolution.type.modelProperties, properties: { @@ -12989,8 +13264,7 @@ export const AtaExternalSecuritySolution: coreClient.CompositeMapper = { name: "Composite", className: "AtaExternalSecuritySolution", uberParent: "ExternalSecuritySolution", - polymorphicDiscriminator: - ExternalSecuritySolution.type.polymorphicDiscriminator, + polymorphicDiscriminator: ExternalSecuritySolution.type.polymorphicDiscriminator, modelProperties: { ...ExternalSecuritySolution.type.modelProperties, properties: { @@ -13010,8 +13284,7 @@ export const AadExternalSecuritySolution: coreClient.CompositeMapper = { name: "Composite", className: "AadExternalSecuritySolution", uberParent: "ExternalSecuritySolution", - polymorphicDiscriminator: - ExternalSecuritySolution.type.polymorphicDiscriminator, + polymorphicDiscriminator: ExternalSecuritySolution.type.polymorphicDiscriminator, modelProperties: { ...ExternalSecuritySolution.type.modelProperties, properties: { @@ -13063,26 +13336,120 @@ export const AlertSyncSettings: coreClient.CompositeMapper = { }, }; -export const OnPremiseSqlResourceDetails: coreClient.CompositeMapper = { - serializedName: "OnPremiseSql", +export const OnPremiseSqlResourceDetails: coreClient.CompositeMapper = { + serializedName: "OnPremiseSql", + type: { + name: "Composite", + className: "OnPremiseSqlResourceDetails", + uberParent: "OnPremiseResourceDetails", + polymorphicDiscriminator: OnPremiseResourceDetails.type.polymorphicDiscriminator, + modelProperties: { + ...OnPremiseResourceDetails.type.modelProperties, + serverName: { + serializedName: "serverName", + required: true, + type: { + name: "String", + }, + }, + databaseName: { + serializedName: "databaseName", + required: true, + type: { + name: "String", + }, + }, + }, + }, +}; + +export const TimeWindowCustomAlertRule: coreClient.CompositeMapper = { + serializedName: "TimeWindowCustomAlertRule", + type: { + name: "Composite", + className: "TimeWindowCustomAlertRule", + uberParent: "ThresholdCustomAlertRule", + polymorphicDiscriminator: { + serializedName: "ruleType", + clientName: "ruleType", + }, + modelProperties: { + ...ThresholdCustomAlertRule.type.modelProperties, + timeWindowSize: { + serializedName: "timeWindowSize", + required: true, + type: { + name: "TimeSpan", + }, + }, + }, + }, +}; + +export const AllowlistCustomAlertRule: coreClient.CompositeMapper = { + serializedName: "AllowlistCustomAlertRule", + type: { + name: "Composite", + className: "AllowlistCustomAlertRule", + uberParent: "ListCustomAlertRule", + polymorphicDiscriminator: { + serializedName: "ruleType", + clientName: "ruleType", + }, + modelProperties: { + ...ListCustomAlertRule.type.modelProperties, + allowlistValues: { + serializedName: "allowlistValues", + required: true, + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, + }, + }, +}; + +export const DenylistCustomAlertRule: coreClient.CompositeMapper = { + serializedName: "DenylistCustomAlertRule", type: { name: "Composite", - className: "OnPremiseSqlResourceDetails", - uberParent: "OnPremiseResourceDetails", - polymorphicDiscriminator: - OnPremiseResourceDetails.type.polymorphicDiscriminator, + className: "DenylistCustomAlertRule", + uberParent: "ListCustomAlertRule", + polymorphicDiscriminator: ListCustomAlertRule.type.polymorphicDiscriminator, modelProperties: { - ...OnPremiseResourceDetails.type.modelProperties, - serverName: { - serializedName: "serverName", + ...ListCustomAlertRule.type.modelProperties, + denylistValues: { + serializedName: "denylistValues", required: true, type: { - name: "String", + name: "Sequence", + element: { + type: { + name: "String", + }, + }, }, }, - databaseName: { - serializedName: "databaseName", - required: true, + }, + }, +}; + +export const AzureServersSetting: coreClient.CompositeMapper = { + serializedName: "AzureServersSetting", + type: { + name: "Composite", + className: "AzureServersSetting", + uberParent: "ServerVulnerabilityAssessmentsSetting", + polymorphicDiscriminator: ServerVulnerabilityAssessmentsSetting.type.polymorphicDiscriminator, + modelProperties: { + ...ServerVulnerabilityAssessmentsSetting.type.modelProperties, + selectedProvider: { + serializedName: "properties.selectedProvider", type: { name: "String", }, @@ -13283,98 +13650,102 @@ export const GitLabProject: coreClient.CompositeMapper = { }, }; -export const TimeWindowCustomAlertRule: coreClient.CompositeMapper = { - serializedName: "TimeWindowCustomAlertRule", +export const DefenderForContainersAwsOfferingVmScanners: coreClient.CompositeMapper = { type: { name: "Composite", - className: "TimeWindowCustomAlertRule", - uberParent: "ThresholdCustomAlertRule", - polymorphicDiscriminator: { - serializedName: "ruleType", - clientName: "ruleType", + className: "DefenderForContainersAwsOfferingVmScanners", + modelProperties: { + ...VmScannersAws.type.modelProperties, }, + }, +}; + +export const DefenderForServersAwsOfferingVmScanners: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DefenderForServersAwsOfferingVmScanners", modelProperties: { - ...ThresholdCustomAlertRule.type.modelProperties, - timeWindowSize: { - serializedName: "timeWindowSize", - required: true, - type: { - name: "TimeSpan", - }, - }, + ...VmScannersAws.type.modelProperties, }, }, }; -export const AllowlistCustomAlertRule: coreClient.CompositeMapper = { - serializedName: "AllowlistCustomAlertRule", +export const DefenderCspmAwsOfferingVmScanners: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AllowlistCustomAlertRule", - uberParent: "ListCustomAlertRule", - polymorphicDiscriminator: { - serializedName: "ruleType", - clientName: "ruleType", + className: "DefenderCspmAwsOfferingVmScanners", + modelProperties: { + ...VmScannersAws.type.modelProperties, }, + }, +}; + +export const DefenderForServersGcpOfferingVmScanners: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DefenderForServersGcpOfferingVmScanners", modelProperties: { - ...ListCustomAlertRule.type.modelProperties, - allowlistValues: { - serializedName: "allowlistValues", - required: true, - type: { - name: "Sequence", - element: { - type: { - name: "String", - }, - }, - }, - }, + ...VmScannersGcp.type.modelProperties, }, }, }; -export const DenylistCustomAlertRule: coreClient.CompositeMapper = { - serializedName: "DenylistCustomAlertRule", +export const DefenderForContainersGcpOfferingVmScanners: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DenylistCustomAlertRule", - uberParent: "ListCustomAlertRule", - polymorphicDiscriminator: ListCustomAlertRule.type.polymorphicDiscriminator, + className: "DefenderForContainersGcpOfferingVmScanners", modelProperties: { - ...ListCustomAlertRule.type.modelProperties, - denylistValues: { - serializedName: "denylistValues", - required: true, - type: { - name: "Sequence", - element: { - type: { - name: "String", - }, - }, - }, - }, + ...VmScannersGcp.type.modelProperties, }, }, }; -export const AzureServersSetting: coreClient.CompositeMapper = { - serializedName: "AzureServersSetting", +export const DefenderCspmGcpOfferingVmScanners: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AzureServersSetting", - uberParent: "ServerVulnerabilityAssessmentsSetting", - polymorphicDiscriminator: - ServerVulnerabilityAssessmentsSetting.type.polymorphicDiscriminator, + className: "DefenderCspmGcpOfferingVmScanners", modelProperties: { - ...ServerVulnerabilityAssessmentsSetting.type.modelProperties, - selectedProvider: { - serializedName: "properties.selectedProvider", - type: { - name: "String", - }, - }, + ...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, }, }, }; @@ -13385,8 +13756,7 @@ export const ActiveConnectionsNotInAllowedRange: coreClient.CompositeMapper = { name: "Composite", className: "ActiveConnectionsNotInAllowedRange", uberParent: "TimeWindowCustomAlertRule", - polymorphicDiscriminator: - TimeWindowCustomAlertRule.type.polymorphicDiscriminator, + polymorphicDiscriminator: TimeWindowCustomAlertRule.type.polymorphicDiscriminator, modelProperties: { ...TimeWindowCustomAlertRule.type.modelProperties, }, @@ -13399,8 +13769,7 @@ export const AmqpC2DMessagesNotInAllowedRange: coreClient.CompositeMapper = { name: "Composite", className: "AmqpC2DMessagesNotInAllowedRange", uberParent: "TimeWindowCustomAlertRule", - polymorphicDiscriminator: - TimeWindowCustomAlertRule.type.polymorphicDiscriminator, + polymorphicDiscriminator: TimeWindowCustomAlertRule.type.polymorphicDiscriminator, modelProperties: { ...TimeWindowCustomAlertRule.type.modelProperties, }, @@ -13413,8 +13782,7 @@ export const MqttC2DMessagesNotInAllowedRange: coreClient.CompositeMapper = { name: "Composite", className: "MqttC2DMessagesNotInAllowedRange", uberParent: "TimeWindowCustomAlertRule", - polymorphicDiscriminator: - TimeWindowCustomAlertRule.type.polymorphicDiscriminator, + polymorphicDiscriminator: TimeWindowCustomAlertRule.type.polymorphicDiscriminator, modelProperties: { ...TimeWindowCustomAlertRule.type.modelProperties, }, @@ -13427,58 +13795,51 @@ export const HttpC2DMessagesNotInAllowedRange: coreClient.CompositeMapper = { name: "Composite", className: "HttpC2DMessagesNotInAllowedRange", uberParent: "TimeWindowCustomAlertRule", - polymorphicDiscriminator: - TimeWindowCustomAlertRule.type.polymorphicDiscriminator, + polymorphicDiscriminator: TimeWindowCustomAlertRule.type.polymorphicDiscriminator, modelProperties: { ...TimeWindowCustomAlertRule.type.modelProperties, }, }, }; -export const AmqpC2DRejectedMessagesNotInAllowedRange: coreClient.CompositeMapper = - { - serializedName: "AmqpC2DRejectedMessagesNotInAllowedRange", - type: { - name: "Composite", - className: "AmqpC2DRejectedMessagesNotInAllowedRange", - uberParent: "TimeWindowCustomAlertRule", - polymorphicDiscriminator: - TimeWindowCustomAlertRule.type.polymorphicDiscriminator, - modelProperties: { - ...TimeWindowCustomAlertRule.type.modelProperties, - }, +export const AmqpC2DRejectedMessagesNotInAllowedRange: coreClient.CompositeMapper = { + serializedName: "AmqpC2DRejectedMessagesNotInAllowedRange", + type: { + name: "Composite", + className: "AmqpC2DRejectedMessagesNotInAllowedRange", + uberParent: "TimeWindowCustomAlertRule", + polymorphicDiscriminator: TimeWindowCustomAlertRule.type.polymorphicDiscriminator, + modelProperties: { + ...TimeWindowCustomAlertRule.type.modelProperties, }, - }; + }, +}; -export const MqttC2DRejectedMessagesNotInAllowedRange: coreClient.CompositeMapper = - { - serializedName: "MqttC2DRejectedMessagesNotInAllowedRange", - type: { - name: "Composite", - className: "MqttC2DRejectedMessagesNotInAllowedRange", - uberParent: "TimeWindowCustomAlertRule", - polymorphicDiscriminator: - TimeWindowCustomAlertRule.type.polymorphicDiscriminator, - modelProperties: { - ...TimeWindowCustomAlertRule.type.modelProperties, - }, +export const MqttC2DRejectedMessagesNotInAllowedRange: coreClient.CompositeMapper = { + serializedName: "MqttC2DRejectedMessagesNotInAllowedRange", + type: { + name: "Composite", + className: "MqttC2DRejectedMessagesNotInAllowedRange", + uberParent: "TimeWindowCustomAlertRule", + polymorphicDiscriminator: TimeWindowCustomAlertRule.type.polymorphicDiscriminator, + modelProperties: { + ...TimeWindowCustomAlertRule.type.modelProperties, }, - }; + }, +}; -export const HttpC2DRejectedMessagesNotInAllowedRange: coreClient.CompositeMapper = - { - serializedName: "HttpC2DRejectedMessagesNotInAllowedRange", - type: { - name: "Composite", - className: "HttpC2DRejectedMessagesNotInAllowedRange", - uberParent: "TimeWindowCustomAlertRule", - polymorphicDiscriminator: - TimeWindowCustomAlertRule.type.polymorphicDiscriminator, - modelProperties: { - ...TimeWindowCustomAlertRule.type.modelProperties, - }, +export const HttpC2DRejectedMessagesNotInAllowedRange: coreClient.CompositeMapper = { + serializedName: "HttpC2DRejectedMessagesNotInAllowedRange", + type: { + name: "Composite", + className: "HttpC2DRejectedMessagesNotInAllowedRange", + uberParent: "TimeWindowCustomAlertRule", + polymorphicDiscriminator: TimeWindowCustomAlertRule.type.polymorphicDiscriminator, + modelProperties: { + ...TimeWindowCustomAlertRule.type.modelProperties, }, - }; + }, +}; export const AmqpD2CMessagesNotInAllowedRange: coreClient.CompositeMapper = { serializedName: "AmqpD2CMessagesNotInAllowedRange", @@ -13486,8 +13847,7 @@ export const AmqpD2CMessagesNotInAllowedRange: coreClient.CompositeMapper = { name: "Composite", className: "AmqpD2CMessagesNotInAllowedRange", uberParent: "TimeWindowCustomAlertRule", - polymorphicDiscriminator: - TimeWindowCustomAlertRule.type.polymorphicDiscriminator, + polymorphicDiscriminator: TimeWindowCustomAlertRule.type.polymorphicDiscriminator, modelProperties: { ...TimeWindowCustomAlertRule.type.modelProperties, }, @@ -13500,8 +13860,7 @@ export const MqttD2CMessagesNotInAllowedRange: coreClient.CompositeMapper = { name: "Composite", className: "MqttD2CMessagesNotInAllowedRange", uberParent: "TimeWindowCustomAlertRule", - polymorphicDiscriminator: - TimeWindowCustomAlertRule.type.polymorphicDiscriminator, + polymorphicDiscriminator: TimeWindowCustomAlertRule.type.polymorphicDiscriminator, modelProperties: { ...TimeWindowCustomAlertRule.type.modelProperties, }, @@ -13514,28 +13873,25 @@ export const HttpD2CMessagesNotInAllowedRange: coreClient.CompositeMapper = { name: "Composite", className: "HttpD2CMessagesNotInAllowedRange", uberParent: "TimeWindowCustomAlertRule", - polymorphicDiscriminator: - TimeWindowCustomAlertRule.type.polymorphicDiscriminator, + polymorphicDiscriminator: TimeWindowCustomAlertRule.type.polymorphicDiscriminator, modelProperties: { ...TimeWindowCustomAlertRule.type.modelProperties, }, }, }; -export const DirectMethodInvokesNotInAllowedRange: coreClient.CompositeMapper = - { - serializedName: "DirectMethodInvokesNotInAllowedRange", - type: { - name: "Composite", - className: "DirectMethodInvokesNotInAllowedRange", - uberParent: "TimeWindowCustomAlertRule", - polymorphicDiscriminator: - TimeWindowCustomAlertRule.type.polymorphicDiscriminator, - modelProperties: { - ...TimeWindowCustomAlertRule.type.modelProperties, - }, +export const DirectMethodInvokesNotInAllowedRange: coreClient.CompositeMapper = { + serializedName: "DirectMethodInvokesNotInAllowedRange", + type: { + name: "Composite", + className: "DirectMethodInvokesNotInAllowedRange", + uberParent: "TimeWindowCustomAlertRule", + polymorphicDiscriminator: TimeWindowCustomAlertRule.type.polymorphicDiscriminator, + modelProperties: { + ...TimeWindowCustomAlertRule.type.modelProperties, }, - }; + }, +}; export const FailedLocalLoginsNotInAllowedRange: coreClient.CompositeMapper = { serializedName: "FailedLocalLoginsNotInAllowedRange", @@ -13543,8 +13899,7 @@ export const FailedLocalLoginsNotInAllowedRange: coreClient.CompositeMapper = { name: "Composite", className: "FailedLocalLoginsNotInAllowedRange", uberParent: "TimeWindowCustomAlertRule", - polymorphicDiscriminator: - TimeWindowCustomAlertRule.type.polymorphicDiscriminator, + polymorphicDiscriminator: TimeWindowCustomAlertRule.type.polymorphicDiscriminator, modelProperties: { ...TimeWindowCustomAlertRule.type.modelProperties, }, @@ -13557,8 +13912,7 @@ export const FileUploadsNotInAllowedRange: coreClient.CompositeMapper = { name: "Composite", className: "FileUploadsNotInAllowedRange", uberParent: "TimeWindowCustomAlertRule", - polymorphicDiscriminator: - TimeWindowCustomAlertRule.type.polymorphicDiscriminator, + polymorphicDiscriminator: TimeWindowCustomAlertRule.type.polymorphicDiscriminator, modelProperties: { ...TimeWindowCustomAlertRule.type.modelProperties, }, @@ -13571,8 +13925,7 @@ export const QueuePurgesNotInAllowedRange: coreClient.CompositeMapper = { name: "Composite", className: "QueuePurgesNotInAllowedRange", uberParent: "TimeWindowCustomAlertRule", - polymorphicDiscriminator: - TimeWindowCustomAlertRule.type.polymorphicDiscriminator, + polymorphicDiscriminator: TimeWindowCustomAlertRule.type.polymorphicDiscriminator, modelProperties: { ...TimeWindowCustomAlertRule.type.modelProperties, }, @@ -13585,28 +13938,25 @@ export const TwinUpdatesNotInAllowedRange: coreClient.CompositeMapper = { name: "Composite", className: "TwinUpdatesNotInAllowedRange", uberParent: "TimeWindowCustomAlertRule", - polymorphicDiscriminator: - TimeWindowCustomAlertRule.type.polymorphicDiscriminator, + polymorphicDiscriminator: TimeWindowCustomAlertRule.type.polymorphicDiscriminator, modelProperties: { ...TimeWindowCustomAlertRule.type.modelProperties, }, }, }; -export const UnauthorizedOperationsNotInAllowedRange: coreClient.CompositeMapper = - { - serializedName: "UnauthorizedOperationsNotInAllowedRange", - type: { - name: "Composite", - className: "UnauthorizedOperationsNotInAllowedRange", - uberParent: "TimeWindowCustomAlertRule", - polymorphicDiscriminator: - TimeWindowCustomAlertRule.type.polymorphicDiscriminator, - modelProperties: { - ...TimeWindowCustomAlertRule.type.modelProperties, - }, +export const UnauthorizedOperationsNotInAllowedRange: coreClient.CompositeMapper = { + serializedName: "UnauthorizedOperationsNotInAllowedRange", + type: { + name: "Composite", + className: "UnauthorizedOperationsNotInAllowedRange", + uberParent: "TimeWindowCustomAlertRule", + polymorphicDiscriminator: TimeWindowCustomAlertRule.type.polymorphicDiscriminator, + modelProperties: { + ...TimeWindowCustomAlertRule.type.modelProperties, }, - }; + }, +}; export const ConnectionToIpNotAllowed: coreClient.CompositeMapper = { serializedName: "ConnectionToIpNotAllowed", @@ -13614,8 +13964,7 @@ export const ConnectionToIpNotAllowed: coreClient.CompositeMapper = { name: "Composite", className: "ConnectionToIpNotAllowed", uberParent: "AllowlistCustomAlertRule", - polymorphicDiscriminator: - AllowlistCustomAlertRule.type.polymorphicDiscriminator, + polymorphicDiscriminator: AllowlistCustomAlertRule.type.polymorphicDiscriminator, modelProperties: { ...AllowlistCustomAlertRule.type.modelProperties, }, @@ -13628,8 +13977,7 @@ export const ConnectionFromIpNotAllowed: coreClient.CompositeMapper = { name: "Composite", className: "ConnectionFromIpNotAllowed", uberParent: "AllowlistCustomAlertRule", - polymorphicDiscriminator: - AllowlistCustomAlertRule.type.polymorphicDiscriminator, + polymorphicDiscriminator: AllowlistCustomAlertRule.type.polymorphicDiscriminator, modelProperties: { ...AllowlistCustomAlertRule.type.modelProperties, }, @@ -13642,8 +13990,7 @@ export const LocalUserNotAllowed: coreClient.CompositeMapper = { name: "Composite", className: "LocalUserNotAllowed", uberParent: "AllowlistCustomAlertRule", - polymorphicDiscriminator: - AllowlistCustomAlertRule.type.polymorphicDiscriminator, + polymorphicDiscriminator: AllowlistCustomAlertRule.type.polymorphicDiscriminator, modelProperties: { ...AllowlistCustomAlertRule.type.modelProperties, }, @@ -13656,8 +14003,7 @@ export const ProcessNotAllowed: coreClient.CompositeMapper = { name: "Composite", className: "ProcessNotAllowed", uberParent: "AllowlistCustomAlertRule", - polymorphicDiscriminator: - AllowlistCustomAlertRule.type.polymorphicDiscriminator, + polymorphicDiscriminator: AllowlistCustomAlertRule.type.polymorphicDiscriminator, modelProperties: { ...AllowlistCustomAlertRule.type.modelProperties, }, @@ -13694,43 +14040,41 @@ export const GovernanceRulesExecuteHeaders: coreClient.CompositeMapper = { }, }; -export const GovernanceRulesOperationResultsHeaders: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "GovernanceRulesOperationResultsHeaders", - modelProperties: { - location: { - serializedName: "location", - type: { - name: "String", - }, +export const GovernanceRulesOperationResultsHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "GovernanceRulesOperationResultsHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String", }, }, }, - }; + }, +}; -export const APICollectionsOnboardAzureApiManagementApiHeaders: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "APICollectionsOnboardAzureApiManagementApiHeaders", - modelProperties: { - location: { - serializedName: "location", - type: { - name: "String", - }, +export const APICollectionsOnboardAzureApiManagementApiHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "APICollectionsOnboardAzureApiManagementApiHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String", }, }, }, - }; + }, +}; export let discriminators = { - AutomationAction: AutomationAction, ResourceDetails: ResourceDetails, AdditionalData: AdditionalData, AuthenticationDetailsProperties: AuthenticationDetailsProperties, + AutomationAction: AutomationAction, NotificationsSource: NotificationsSource, CloudOffering: CloudOffering, EnvironmentData: EnvironmentData, @@ -13739,29 +14083,25 @@ export let discriminators = { AlertSimulatorRequestProperties: AlertSimulatorRequestProperties, AwsOrganizationalData: AwsOrganizationalData, GcpOrganizationalData: GcpOrganizationalData, + Authentication: Authentication, "Resource.Setting": Setting, - "AutomationAction.LogicApp": AutomationActionLogicApp, - "AutomationAction.EventHub": AutomationActionEventHub, - "AutomationAction.Workspace": AutomationActionWorkspace, "ResourceDetails.Azure": AzureResourceDetails, "ResourceDetails.OnPremise": OnPremiseResourceDetails, "AdditionalData.SqlServerVulnerability": SqlServerVulnerabilityProperties, - "AdditionalData.ContainerRegistryVulnerability": - ContainerRegistryVulnerabilityProperties, + "AdditionalData.ContainerRegistryVulnerability": ContainerRegistryVulnerabilityProperties, "AdditionalData.ServerVulnerabilityAssessment": ServerVulnerabilityProperties, - "AuthenticationDetailsProperties.awsCreds": - AwsCredsAuthenticationDetailsProperties, - "AuthenticationDetailsProperties.awsAssumeRole": - AwAssumeRoleAuthenticationDetailsProperties, - "AuthenticationDetailsProperties.gcpCredentials": - GcpCredentialsDetailsProperties, + "AuthenticationDetailsProperties.awsCreds": AwsCredsAuthenticationDetailsProperties, + "AuthenticationDetailsProperties.awsAssumeRole": 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,75 +14110,67 @@ export let discriminators = { "CloudOffering.CspmMonitorAzureDevOps": CspmMonitorAzureDevOpsOffering, "CloudOffering.DefenderCspmAws": DefenderCspmAwsOffering, "CloudOffering.DefenderCspmGcp": DefenderCspmGcpOffering, - "CloudOffering.DefenderForDevOpsGithub": DefenderForDevOpsGithubOffering, - "CloudOffering.DefenderForDevOpsAzureDevOps": - DefenderForDevOpsAzureDevOpsOffering, "CloudOffering.CspmMonitorGitLab": CspmMonitorGitLabOffering, - "CloudOffering.DefenderForDevOpsGitLab": DefenderForDevOpsGitLabOffering, + "CloudOffering.CspmMonitorDockerHub": CspmMonitorDockerHubOffering, + "CloudOffering.DefenderForContainersDockerHub": DefenderForContainersDockerHubOffering, + "CloudOffering.DefenderCspmDockerHub": DefenderCspmDockerHubOffering, + "CloudOffering.CspmMonitorJFrog": CspmMonitorJFrogOffering, + "CloudOffering.DefenderForContainersJFrog": DefenderForContainersJFrogOffering, + "CloudOffering.DefenderCspmJFrog": DefenderCspmJFrogOffering, "EnvironmentData.AwsAccount": AwsEnvironmentData, "EnvironmentData.GcpProject": GcpProjectEnvironmentData, "EnvironmentData.GithubScope": GithubScopeEnvironmentData, "EnvironmentData.AzureDevOpsScope": AzureDevOpsScopeEnvironmentData, "EnvironmentData.GitlabScope": GitlabScopeEnvironmentData, + "EnvironmentData.DockerHubOrganization": DockerHubEnvironmentData, + "EnvironmentData.JFrogArtifactory": JFrogEnvironmentData, "CustomAlertRule.ThresholdCustomAlertRule": ThresholdCustomAlertRule, "CustomAlertRule.ListCustomAlertRule": ListCustomAlertRule, "ResourceIdentifier.AzureResource": AzureResourceIdentifier, "ResourceIdentifier.LogAnalytics": LogAnalyticsIdentifier, - "AlertSimulatorRequestProperties.Bundles": - AlertSimulatorBundlesRequestProperties, - "ResourceAutoGenerated2.ServerVulnerabilityAssessmentsSetting": + "AlertSimulatorRequestProperties.Bundles": AlertSimulatorBundlesRequestProperties, + "ResourceAutoGenerated.ServerVulnerabilityAssessmentsSetting": ServerVulnerabilityAssessmentsSetting, "AwsOrganizationalData.Organization": AwsOrganizationalDataMaster, "AwsOrganizationalData.Member": AwsOrganizationalDataMember, "GcpOrganizationalData.Organization": GcpOrganizationalDataOrganization, "GcpOrganizationalData.Member": GcpOrganizationalDataMember, + "Authentication.AccessToken": AccessTokenAuthentication, "ExternalSecuritySolution.CEF": CefExternalSecuritySolution, "ExternalSecuritySolution.ATA": AtaExternalSecuritySolution, "ExternalSecuritySolution.AAD": AadExternalSecuritySolution, "Setting.DataExportSettings": DataExportSettings, "Setting.AlertSyncSettings": AlertSyncSettings, "OnPremiseResourceDetails.OnPremiseSql": OnPremiseSqlResourceDetails, - "ThresholdCustomAlertRule.TimeWindowCustomAlertRule": - TimeWindowCustomAlertRule, + "ThresholdCustomAlertRule.TimeWindowCustomAlertRule": TimeWindowCustomAlertRule, "ListCustomAlertRule.AllowlistCustomAlertRule": AllowlistCustomAlertRule, "ListCustomAlertRule.DenylistCustomAlertRule": DenylistCustomAlertRule, - "ServerVulnerabilityAssessmentsSetting.AzureServersSetting": - AzureServersSetting, + "ServerVulnerabilityAssessmentsSetting.AzureServersSetting": AzureServersSetting, "TimeWindowCustomAlertRule.ActiveConnectionsNotInAllowedRange": ActiveConnectionsNotInAllowedRange, - "TimeWindowCustomAlertRule.AmqpC2DMessagesNotInAllowedRange": - AmqpC2DMessagesNotInAllowedRange, - "TimeWindowCustomAlertRule.MqttC2DMessagesNotInAllowedRange": - MqttC2DMessagesNotInAllowedRange, - "TimeWindowCustomAlertRule.HttpC2DMessagesNotInAllowedRange": - HttpC2DMessagesNotInAllowedRange, + "TimeWindowCustomAlertRule.AmqpC2DMessagesNotInAllowedRange": AmqpC2DMessagesNotInAllowedRange, + "TimeWindowCustomAlertRule.MqttC2DMessagesNotInAllowedRange": MqttC2DMessagesNotInAllowedRange, + "TimeWindowCustomAlertRule.HttpC2DMessagesNotInAllowedRange": HttpC2DMessagesNotInAllowedRange, "TimeWindowCustomAlertRule.AmqpC2DRejectedMessagesNotInAllowedRange": AmqpC2DRejectedMessagesNotInAllowedRange, "TimeWindowCustomAlertRule.MqttC2DRejectedMessagesNotInAllowedRange": MqttC2DRejectedMessagesNotInAllowedRange, "TimeWindowCustomAlertRule.HttpC2DRejectedMessagesNotInAllowedRange": HttpC2DRejectedMessagesNotInAllowedRange, - "TimeWindowCustomAlertRule.AmqpD2CMessagesNotInAllowedRange": - AmqpD2CMessagesNotInAllowedRange, - "TimeWindowCustomAlertRule.MqttD2CMessagesNotInAllowedRange": - MqttD2CMessagesNotInAllowedRange, - "TimeWindowCustomAlertRule.HttpD2CMessagesNotInAllowedRange": - HttpD2CMessagesNotInAllowedRange, + "TimeWindowCustomAlertRule.AmqpD2CMessagesNotInAllowedRange": AmqpD2CMessagesNotInAllowedRange, + "TimeWindowCustomAlertRule.MqttD2CMessagesNotInAllowedRange": MqttD2CMessagesNotInAllowedRange, + "TimeWindowCustomAlertRule.HttpD2CMessagesNotInAllowedRange": HttpD2CMessagesNotInAllowedRange, "TimeWindowCustomAlertRule.DirectMethodInvokesNotInAllowedRange": DirectMethodInvokesNotInAllowedRange, "TimeWindowCustomAlertRule.FailedLocalLoginsNotInAllowedRange": FailedLocalLoginsNotInAllowedRange, - "TimeWindowCustomAlertRule.FileUploadsNotInAllowedRange": - FileUploadsNotInAllowedRange, - "TimeWindowCustomAlertRule.QueuePurgesNotInAllowedRange": - QueuePurgesNotInAllowedRange, - "TimeWindowCustomAlertRule.TwinUpdatesNotInAllowedRange": - TwinUpdatesNotInAllowedRange, + "TimeWindowCustomAlertRule.FileUploadsNotInAllowedRange": FileUploadsNotInAllowedRange, + "TimeWindowCustomAlertRule.QueuePurgesNotInAllowedRange": QueuePurgesNotInAllowedRange, + "TimeWindowCustomAlertRule.TwinUpdatesNotInAllowedRange": TwinUpdatesNotInAllowedRange, "TimeWindowCustomAlertRule.UnauthorizedOperationsNotInAllowedRange": UnauthorizedOperationsNotInAllowedRange, "AllowlistCustomAlertRule.ConnectionToIpNotAllowed": ConnectionToIpNotAllowed, - "AllowlistCustomAlertRule.ConnectionFromIpNotAllowed": - ConnectionFromIpNotAllowed, + "AllowlistCustomAlertRule.ConnectionFromIpNotAllowed": ConnectionFromIpNotAllowed, "AllowlistCustomAlertRule.LocalUserNotAllowed": LocalUserNotAllowed, "AllowlistCustomAlertRule.ProcessNotAllowed": ProcessNotAllowed, }; diff --git a/sdk/security/arm-security/src/models/parameters.ts b/sdk/security/arm-security/src/models/parameters.ts index bc6a6b46507e..5ff23908274f 100644 --- a/sdk/security/arm-security/src/models/parameters.ts +++ b/sdk/security/arm-security/src/models/parameters.ts @@ -16,31 +16,25 @@ 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, GovernanceRule as GovernanceRuleMapper, ExecuteGovernanceRuleParams as ExecuteGovernanceRuleParamsMapper, Application as ApplicationMapper, - DefenderForStorageSetting as DefenderForStorageSettingMapper, RuleResultsInput as RuleResultsInputMapper, RulesResultsInput as RulesResultsInputMapper, UpdateSensitivitySettingsRequest as UpdateSensitivitySettingsRequestMapper, - AzureDevOpsOrg as AzureDevOpsOrgMapper, - AzureDevOpsProject as AzureDevOpsProjectMapper, - AzureDevOpsRepository as AzureDevOpsRepositoryMapper, - DevOpsConfiguration as DevOpsConfigurationMapper, + Automation as AutomationMapper, + AutomationUpdateModel as AutomationUpdateModelMapper, + SecurityContact as SecurityContactMapper, SecurityConnector as SecurityConnectorMapper, + ParametersSchema as ParametersSchemaMapper, 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, @@ -49,6 +43,14 @@ import { Setting as SettingMapper, ServerVulnerabilityAssessmentsSetting as ServerVulnerabilityAssessmentsSettingMapper, Pricing as PricingMapper, + SecurityStandard as SecurityStandardMapper, + StandardAssignment as StandardAssignmentMapper, + CustomRecommendation as CustomRecommendationMapper, + DefenderForStorageSetting as DefenderForStorageSettingMapper, + AzureDevOpsOrg as AzureDevOpsOrgMapper, + AzureDevOpsProject as AzureDevOpsProjectMapper, + AzureDevOpsRepository as AzureDevOpsRepositoryMapper, + DevOpsConfiguration as DevOpsConfigurationMapper, } from "../models/mappers.js"; export const accept: OperationParameter = { @@ -91,9 +93,7 @@ export const subscriptionId: OperationURLParameter = { parameterPath: "subscriptionId", mapper: { constraints: { - Pattern: new RegExp( - "^[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}$", - ), + Pattern: new RegExp("^[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}$"), }, serializedName: "subscriptionId", required: true, @@ -307,39 +307,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 +362,7 @@ export const subAssessmentName: OperationURLParameter = { }, }; -export const apiVersion4: OperationQueryParameter = { +export const apiVersion3: OperationQueryParameter = { parameterPath: "apiVersion", mapper: { defaultValue: "2020-01-01-preview", @@ -423,22 +390,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 +423,7 @@ export const resourceName: OperationURLParameter = { }, }; -export const apiVersion5: OperationQueryParameter = { +export const apiVersion4: OperationQueryParameter = { parameterPath: "apiVersion", mapper: { defaultValue: "2021-05-01-preview", @@ -495,7 +446,7 @@ export const softwareName: OperationURLParameter = { }, }; -export const apiVersion6: OperationQueryParameter = { +export const apiVersion5: OperationQueryParameter = { parameterPath: "apiVersion", mapper: { defaultValue: "2021-07-01-preview", @@ -539,7 +490,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 +502,7 @@ export const apiVersion7: OperationQueryParameter = { }, }; -export const apiVersion8: OperationQueryParameter = { +export const apiVersion7: OperationQueryParameter = { parameterPath: "apiVersion", mapper: { defaultValue: "2022-01-01-preview", @@ -636,7 +587,7 @@ export const operationId: OperationURLParameter = { }, }; -export const apiVersion9: OperationQueryParameter = { +export const apiVersion8: OperationQueryParameter = { parameterPath: "apiVersion", mapper: { defaultValue: "2022-07-01-preview", @@ -675,47 +626,7 @@ export const securityConnectorName: OperationURLParameter = { }, }; -export const apiVersion10: OperationQueryParameter = { - parameterPath: "apiVersion", - mapper: { - defaultValue: "2022-12-01-preview", - isConstant: true, - serializedName: "api-version", - type: { - name: "String", - }, - }, -}; - -export const resourceId: OperationURLParameter = { - parameterPath: "resourceId", - mapper: { - serializedName: "resourceId", - required: true, - type: { - name: "String", - }, - }, - skipEncoding: true, -}; - -export const settingName1: OperationURLParameter = { - parameterPath: "settingName", - mapper: { - serializedName: "settingName", - required: true, - type: { - name: "String", - }, - }, -}; - -export const defenderForStorageSetting: OperationParameter = { - parameterPath: "defenderForStorageSetting", - mapper: DefenderForStorageSettingMapper, -}; - -export const apiVersion11: OperationQueryParameter = { +export const apiVersion9: OperationQueryParameter = { parameterPath: "apiVersion", mapper: { defaultValue: "2023-01-01-preview", @@ -775,7 +686,7 @@ export const workspaceId: OperationQueryParameter = { }, }; -export const apiVersion12: OperationQueryParameter = { +export const apiVersion10: OperationQueryParameter = { parameterPath: "apiVersion", mapper: { defaultValue: "2023-02-01-preview", @@ -787,6 +698,18 @@ export const apiVersion12: OperationQueryParameter = { }, }; +export const resourceId: OperationURLParameter = { + parameterPath: "resourceId", + mapper: { + serializedName: "resourceId", + required: true, + type: { + name: "String", + }, + }, + skipEncoding: true, +}; + export const body1: OperationParameter = { parameterPath: ["options", "body"], mapper: RulesResultsInputMapper, @@ -819,7 +742,7 @@ export const sensitivitySettings: OperationParameter = { mapper: UpdateSensitivitySettingsRequestMapper, }; -export const apiVersion13: OperationQueryParameter = { +export const apiVersion11: OperationQueryParameter = { parameterPath: "apiVersion", mapper: { defaultValue: "2023-02-15-preview", @@ -831,7 +754,7 @@ export const apiVersion13: OperationQueryParameter = { }, }; -export const apiVersion14: OperationQueryParameter = { +export const apiVersion12: OperationQueryParameter = { parameterPath: "apiVersion", mapper: { defaultValue: "2023-05-01-preview", @@ -862,9 +785,7 @@ export const healthReportName: OperationURLParameter = { parameterPath: "healthReportName", mapper: { constraints: { - Pattern: new RegExp( - "[{]?[0-9a-fA-F]{8}-(?:[0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}[}]?$", - ), + Pattern: new RegExp("[{]?[0-9a-fA-F]{8}-(?:[0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}[}]?$"), }, serializedName: "healthReportName", required: true, @@ -874,25 +795,10 @@ export const healthReportName: OperationURLParameter = { }, }; -export const resourceGroupName1: OperationURLParameter = { - parameterPath: "resourceGroupName", - mapper: { - constraints: { - MaxLength: 90, - MinLength: 1, - }, - serializedName: "resourceGroupName", - required: true, - type: { - name: "String", - }, - }, -}; - -export const apiVersion15: OperationQueryParameter = { +export const apiVersion13: OperationQueryParameter = { parameterPath: "apiVersion", mapper: { - defaultValue: "2023-09-01-preview", + defaultValue: "2023-12-01-preview", isConstant: true, serializedName: "api-version", type: { @@ -901,10 +807,10 @@ export const apiVersion15: OperationQueryParameter = { }, }; -export const orgName: OperationURLParameter = { - parameterPath: "orgName", +export const automationName: OperationURLParameter = { + parameterPath: "automationName", mapper: { - serializedName: "orgName", + serializedName: "automationName", required: true, type: { name: "String", @@ -912,31 +818,20 @@ export const orgName: OperationURLParameter = { }, }; -export const azureDevOpsOrg: OperationParameter = { - parameterPath: "azureDevOpsOrg", - mapper: AzureDevOpsOrgMapper, -}; - -export const projectName: OperationURLParameter = { - parameterPath: "projectName", - mapper: { - serializedName: "projectName", - required: true, - type: { - name: "String", - }, - }, +export const automation: OperationParameter = { + parameterPath: "automation", + mapper: AutomationMapper, }; -export const azureDevOpsProject: OperationParameter = { - parameterPath: "azureDevOpsProject", - mapper: AzureDevOpsProjectMapper, +export const automation1: OperationParameter = { + parameterPath: "automation", + mapper: AutomationUpdateModelMapper, }; -export const repoName: OperationURLParameter = { - parameterPath: "repoName", +export const securityContactName: OperationURLParameter = { + parameterPath: "securityContactName", mapper: { - serializedName: "repoName", + serializedName: "securityContactName", required: true, type: { name: "String", @@ -944,53 +839,49 @@ export const repoName: OperationURLParameter = { }, }; -export const azureDevOpsRepository: OperationParameter = { - parameterPath: "azureDevOpsRepository", - mapper: AzureDevOpsRepositoryMapper, -}; - -export const devOpsConfiguration: OperationParameter = { - parameterPath: "devOpsConfiguration", - mapper: DevOpsConfigurationMapper, +export const securityContact: OperationParameter = { + parameterPath: "securityContact", + mapper: SecurityContactMapper, }; -export const ownerName: OperationURLParameter = { - parameterPath: "ownerName", +export const apiVersion14: OperationQueryParameter = { + parameterPath: "apiVersion", mapper: { - serializedName: "ownerName", - required: true, + defaultValue: "2024-08-01-preview", + isConstant: true, + serializedName: "api-version", type: { name: "String", }, }, }; -export const groupFQName: OperationURLParameter = { - parameterPath: "groupFQName", - mapper: { - serializedName: "groupFQName", - required: true, - type: { - name: "String", - }, - }, +export const securityConnector: OperationParameter = { + parameterPath: "securityConnector", + mapper: SecurityConnectorMapper, }; -export const operationResultId: OperationURLParameter = { - parameterPath: "operationResultId", +export const apiVersion15: OperationQueryParameter = { + parameterPath: "apiVersion", mapper: { - serializedName: "operationResultId", - required: true, + defaultValue: "2024-10-01-preview", + isConstant: true, + serializedName: "api-version", type: { name: "String", }, }, }; +export const parameters: OperationParameter = { + parameterPath: ["options", "parameters"], + mapper: ParametersSchemaMapper, +}; + export const apiVersion16: OperationQueryParameter = { parameterPath: "apiVersion", mapper: { - defaultValue: "2023-10-01-preview", + defaultValue: "2025-05-01-preview", isConstant: true, serializedName: "api-version", type: { @@ -999,11 +890,6 @@ export const apiVersion16: OperationQueryParameter = { }, }; -export const securityConnector: OperationParameter = { - parameterPath: "securityConnector", - mapper: SecurityConnectorMapper, -}; - export const apiVersion17: OperationQueryParameter = { parameterPath: "apiVersion", mapper: { @@ -1039,7 +925,7 @@ export const apiVersion18: OperationQueryParameter = { }, }; -export const settingName2: OperationURLParameter = { +export const settingName1: OperationURLParameter = { parameterPath: "settingName", mapper: { defaultValue: "current", @@ -1149,34 +1035,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 +1046,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 +1079,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, }; @@ -1417,7 +1239,7 @@ export const apiVersion23: OperationQueryParameter = { }, }; -export const settingName3: OperationURLParameter = { +export const settingName2: OperationURLParameter = { parameterPath: "settingName", mapper: { serializedName: "settingName", @@ -1473,6 +1295,21 @@ export const apiVersion25: OperationQueryParameter = { }, }; +export const resourceGroupName1: OperationURLParameter = { + parameterPath: "resourceGroupName", + mapper: { + constraints: { + MaxLength: 90, + MinLength: 1, + }, + serializedName: "resourceGroupName", + required: true, + type: { + name: "String", + }, + }, +}; + export const serviceName: OperationURLParameter = { parameterPath: "serviceName", mapper: { @@ -1544,3 +1381,214 @@ export const pricing: OperationParameter = { parameterPath: "pricing", mapper: PricingMapper, }; + +export const apiVersion27: OperationQueryParameter = { + parameterPath: "apiVersion", + mapper: { + defaultValue: "2024-08-01", + isConstant: true, + serializedName: "api-version", + type: { + name: "String", + }, + }, +}; + +export const standardId: OperationURLParameter = { + parameterPath: "standardId", + mapper: { + constraints: { + Pattern: new RegExp("[{]?[0-9a-fA-F]{8}-(?:[0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}[}]?$"), + }, + serializedName: "standardId", + required: true, + type: { + name: "String", + }, + }, +}; + +export const standard: OperationParameter = { + parameterPath: "standard", + mapper: SecurityStandardMapper, +}; + +export const standardAssignmentName: OperationURLParameter = { + parameterPath: "standardAssignmentName", + mapper: { + constraints: { + Pattern: new RegExp("[{]?[0-9a-fA-F]{8}-(?:[0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}[}]?$"), + }, + serializedName: "standardAssignmentName", + required: true, + type: { + name: "String", + }, + }, +}; + +export const standardAssignment: OperationParameter = { + parameterPath: "standardAssignment", + mapper: StandardAssignmentMapper, +}; + +export const customRecommendationName: OperationURLParameter = { + parameterPath: "customRecommendationName", + mapper: { + constraints: { + Pattern: new RegExp("[{]?[0-9a-fA-F]{8}-(?:[0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}[}]?$"), + }, + serializedName: "customRecommendationName", + required: true, + type: { + name: "String", + }, + }, +}; + +export const customRecommendationBody: OperationParameter = { + parameterPath: "customRecommendationBody", + mapper: CustomRecommendationMapper, +}; + +export const apiVersion28: OperationQueryParameter = { + parameterPath: "apiVersion", + mapper: { + defaultValue: "2025-01-01", + isConstant: true, + serializedName: "api-version", + type: { + name: "String", + }, + }, +}; + +export const settingName3: OperationURLParameter = { + parameterPath: "settingName", + mapper: { + serializedName: "settingName", + required: true, + type: { + name: "String", + }, + }, +}; + +export const defenderForStorageSetting: OperationParameter = { + parameterPath: "defenderForStorageSetting", + mapper: DefenderForStorageSettingMapper, +}; + +export const scanId1: OperationURLParameter = { + parameterPath: "scanId", + mapper: { + constraints: { + Pattern: new RegExp( + "^(latest|[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12})$", + ), + }, + serializedName: "scanId", + required: true, + type: { + name: "String", + }, + }, +}; + +export const apiVersion29: OperationQueryParameter = { + parameterPath: "apiVersion", + mapper: { + defaultValue: "2025-03-01", + isConstant: true, + serializedName: "api-version", + type: { + name: "String", + }, + }, +}; + +export const orgName: OperationURLParameter = { + parameterPath: "orgName", + mapper: { + serializedName: "orgName", + required: true, + type: { + name: "String", + }, + }, +}; + +export const azureDevOpsOrg: OperationParameter = { + parameterPath: "azureDevOpsOrg", + mapper: AzureDevOpsOrgMapper, +}; + +export const projectName: OperationURLParameter = { + parameterPath: "projectName", + mapper: { + serializedName: "projectName", + required: true, + type: { + name: "String", + }, + }, +}; + +export const azureDevOpsProject: OperationParameter = { + parameterPath: "azureDevOpsProject", + mapper: AzureDevOpsProjectMapper, +}; + +export const repoName: OperationURLParameter = { + parameterPath: "repoName", + mapper: { + serializedName: "repoName", + required: true, + type: { + name: "String", + }, + }, +}; + +export const azureDevOpsRepository: OperationParameter = { + parameterPath: "azureDevOpsRepository", + mapper: AzureDevOpsRepositoryMapper, +}; + +export const devOpsConfiguration: OperationParameter = { + parameterPath: "devOpsConfiguration", + mapper: DevOpsConfigurationMapper, +}; + +export const ownerName: OperationURLParameter = { + parameterPath: "ownerName", + mapper: { + serializedName: "ownerName", + required: true, + type: { + name: "String", + }, + }, +}; + +export const groupFQName: OperationURLParameter = { + parameterPath: "groupFQName", + mapper: { + serializedName: "groupFQName", + required: true, + type: { + name: "String", + }, + }, +}; + +export const operationResultId: OperationURLParameter = { + parameterPath: "operationResultId", + mapper: { + serializedName: "operationResultId", + required: true, + type: { + name: "String", + }, + }, +}; diff --git a/sdk/security/arm-security/src/operations/aPICollections.ts b/sdk/security/arm-security/src/operations/aPICollections.ts index 2bcb1816b870..17b71697c1c1 100644 --- a/sdk/security/arm-security/src/operations/aPICollections.ts +++ b/sdk/security/arm-security/src/operations/aPICollections.ts @@ -13,11 +13,7 @@ import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers.js"; import * as Parameters from "../models/parameters.js"; import { SecurityCenter } from "../securityCenter.js"; -import { - SimplePollerLike, - OperationState, - createHttpPoller, -} from "@azure/core-lro"; +import { SimplePollerLike, OperationState, createHttpPoller } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl.js"; import { ApiCollection, @@ -130,11 +126,7 @@ export class APICollectionsImpl implements APICollections { if (settings?.maxPageSize) { throw new Error("maxPageSize is not supported by this operation."); } - return this.listByResourceGroupPagingPage( - resourceGroupName, - options, - settings, - ); + return this.listByResourceGroupPagingPage(resourceGroupName, options, settings); }, }; } @@ -154,11 +146,7 @@ export class APICollectionsImpl implements APICollections { yield page; } while (continuationToken) { - result = await this._listByResourceGroupNext( - resourceGroupName, - continuationToken, - options, - ); + result = await this._listByResourceGroupNext(resourceGroupName, continuationToken, options); continuationToken = result.nextLink; let page = result.value || []; setContinuationToken(page, continuationToken); @@ -170,10 +158,7 @@ export class APICollectionsImpl implements APICollections { resourceGroupName: string, options?: APICollectionsListByResourceGroupOptionalParams, ): AsyncIterableIterator { - for await (const page of this.listByResourceGroupPagingPage( - resourceGroupName, - options, - )) { + for await (const page of this.listByResourceGroupPagingPage(resourceGroupName, options)) { yield* page; } } @@ -227,11 +212,7 @@ export class APICollectionsImpl implements APICollections { let result: APICollectionsListByAzureApiManagementServiceResponse; let continuationToken = settings?.continuationToken; if (!continuationToken) { - result = await this._listByAzureApiManagementService( - resourceGroupName, - serviceName, - options, - ); + result = await this._listByAzureApiManagementService(resourceGroupName, serviceName, options); let page = result.value || []; continuationToken = result.nextLink; setContinuationToken(page, continuationToken); @@ -273,10 +254,7 @@ export class APICollectionsImpl implements APICollections { private _listBySubscription( options?: APICollectionsListBySubscriptionOptionalParams, ): Promise { - return this.client.sendOperationRequest( - { options }, - listBySubscriptionOperationSpec, - ); + return this.client.sendOperationRequest({ options }, listBySubscriptionOperationSpec); } /** @@ -369,8 +347,7 @@ export class APICollectionsImpl implements APICollections { args: coreClient.OperationArguments, spec: coreClient.OperationSpec, ) => { - let currentRawResponse: coreClient.FullOperationResponse | undefined = - undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, @@ -543,11 +520,7 @@ const listByResourceGroupOperationSpec: coreClient.OperationSpec = { }, }, queryParameters: [Parameters.apiVersion25], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName1, - ], + urlParameters: [Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName1], headerParameters: [Parameters.accept], serializer, }; @@ -647,6 +620,21 @@ const offboardAzureApiManagementApiOperationSpec: coreClient.OperationSpec = { serializer, }; const listBySubscriptionNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ApiCollectionList, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + urlParameters: [Parameters.$host, Parameters.subscriptionId, Parameters.nextLink], + headerParameters: [Parameters.accept], + serializer, +}; +const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { @@ -661,11 +649,12 @@ const listBySubscriptionNextOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.nextLink, + Parameters.resourceGroupName1, ], headerParameters: [Parameters.accept], serializer, }; -const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = { +const listByAzureApiManagementServiceNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { @@ -681,29 +670,8 @@ const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.nextLink, Parameters.resourceGroupName1, + Parameters.serviceName, ], headerParameters: [Parameters.accept], serializer, }; -const listByAzureApiManagementServiceNextOperationSpec: coreClient.OperationSpec = - { - path: "{nextLink}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.ApiCollectionList, - }, - default: { - bodyMapper: Mappers.ErrorResponse, - }, - }, - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.nextLink, - Parameters.resourceGroupName1, - Parameters.serviceName, - ], - headerParameters: [Parameters.accept], - serializer, - }; 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 36978c90497f..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/index.js"; -import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers.js"; -import * as Parameters from "../models/parameters.js"; -import { SecurityCenter } from "../securityCenter.js"; -import { - AdaptiveApplicationControlsListOptionalParams, - AdaptiveApplicationControlsListResponse, - AdaptiveApplicationControlsGetOptionalParams, - AdaptiveApplicationControlsGetResponse, - AdaptiveApplicationControlGroup, - AdaptiveApplicationControlsPutOptionalParams, - AdaptiveApplicationControlsPutResponse, - AdaptiveApplicationControlsDeleteOptionalParams, -} from "../models/index.js"; - -/** 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 774394382c01..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.js"; -import { AdaptiveNetworkHardenings } from "../operationsInterfaces/index.js"; -import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers.js"; -import * as Parameters from "../models/parameters.js"; -import { SecurityCenter } from "../securityCenter.js"; -import { - SimplePollerLike, - OperationState, - createHttpPoller, -} from "@azure/core-lro"; -import { createLroSpec } from "../lroImpl.js"; -import { - AdaptiveNetworkHardening, - AdaptiveNetworkHardeningsListByExtendedResourceNextOptionalParams, - AdaptiveNetworkHardeningsListByExtendedResourceOptionalParams, - AdaptiveNetworkHardeningsListByExtendedResourceResponse, - AdaptiveNetworkHardeningsGetOptionalParams, - AdaptiveNetworkHardeningsGetResponse, - AdaptiveNetworkHardeningEnforceRequest, - AdaptiveNetworkHardeningsEnforceOptionalParams, - AdaptiveNetworkHardeningsListByExtendedResourceNextResponse, -} from "../models/index.js"; - -/// -/** 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/advancedThreatProtection.ts b/sdk/security/arm-security/src/operations/advancedThreatProtection.ts index b538b3ce7b3a..1ba87a56876b 100644 --- a/sdk/security/arm-security/src/operations/advancedThreatProtection.ts +++ b/sdk/security/arm-security/src/operations/advancedThreatProtection.ts @@ -40,10 +40,7 @@ export class AdvancedThreatProtectionImpl implements AdvancedThreatProtection { resourceId: string, options?: AdvancedThreatProtectionGetOptionalParams, ): Promise { - return this.client.sendOperationRequest( - { resourceId, options }, - getOperationSpec, - ); + return this.client.sendOperationRequest({ resourceId, options }, getOperationSpec); } /** @@ -78,11 +75,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, }, queryParameters: [Parameters.apiVersion18], - urlParameters: [ - Parameters.$host, - Parameters.resourceId, - Parameters.settingName2, - ], + urlParameters: [Parameters.$host, Parameters.resourceId, Parameters.settingName1], headerParameters: [Parameters.accept], serializer, }; @@ -99,11 +92,7 @@ const createOperationSpec: coreClient.OperationSpec = { }, requestBody: Parameters.advancedThreatProtectionSetting, queryParameters: [Parameters.apiVersion18], - urlParameters: [ - Parameters.$host, - Parameters.resourceId, - Parameters.settingName2, - ], + urlParameters: [Parameters.$host, Parameters.resourceId, Parameters.settingName1], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer, diff --git a/sdk/security/arm-security/src/operations/alerts.ts b/sdk/security/arm-security/src/operations/alerts.ts index 4a955d46fa72..db7756260f80 100644 --- a/sdk/security/arm-security/src/operations/alerts.ts +++ b/sdk/security/arm-security/src/operations/alerts.ts @@ -13,11 +13,7 @@ import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers.js"; import * as Parameters from "../models/parameters.js"; import { SecurityCenter } from "../securityCenter.js"; -import { - SimplePollerLike, - OperationState, - createHttpPoller, -} from "@azure/core-lro"; +import { SimplePollerLike, OperationState, createHttpPoller } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl.js"; import { Alert, @@ -70,9 +66,7 @@ export class AlertsImpl implements Alerts { * List all the alerts that are associated with the subscription * @param options The options parameters. */ - public list( - options?: AlertsListOptionalParams, - ): PagedAsyncIterableIterator { + public list(options?: AlertsListOptionalParams): PagedAsyncIterableIterator { const iter = this.listPagingAll(options); return { next() { @@ -112,9 +106,7 @@ export class AlertsImpl implements Alerts { } } - private async *listPagingAll( - options?: AlertsListOptionalParams, - ): AsyncIterableIterator { + private async *listPagingAll(options?: AlertsListOptionalParams): AsyncIterableIterator { for await (const page of this.listPagingPage(options)) { yield* page; } @@ -142,11 +134,7 @@ export class AlertsImpl implements Alerts { if (settings?.maxPageSize) { throw new Error("maxPageSize is not supported by this operation."); } - return this.listByResourceGroupPagingPage( - resourceGroupName, - options, - settings, - ); + return this.listByResourceGroupPagingPage(resourceGroupName, options, settings); }, }; } @@ -166,11 +154,7 @@ export class AlertsImpl implements Alerts { yield page; } while (continuationToken) { - result = await this._listByResourceGroupNext( - resourceGroupName, - continuationToken, - options, - ); + result = await this._listByResourceGroupNext(resourceGroupName, continuationToken, options); continuationToken = result.nextLink; let page = result.value || []; setContinuationToken(page, continuationToken); @@ -182,10 +166,7 @@ export class AlertsImpl implements Alerts { resourceGroupName: string, options?: AlertsListByResourceGroupOptionalParams, ): AsyncIterableIterator { - for await (const page of this.listByResourceGroupPagingPage( - resourceGroupName, - options, - )) { + for await (const page of this.listByResourceGroupPagingPage(resourceGroupName, options)) { yield* page; } } @@ -200,10 +181,7 @@ export class AlertsImpl implements Alerts { ascLocation: string, options?: AlertsListSubscriptionLevelByRegionOptionalParams, ): PagedAsyncIterableIterator { - const iter = this.listSubscriptionLevelByRegionPagingAll( - ascLocation, - options, - ); + const iter = this.listSubscriptionLevelByRegionPagingAll(ascLocation, options); return { next() { return iter.next(); @@ -215,11 +193,7 @@ export class AlertsImpl implements Alerts { if (settings?.maxPageSize) { throw new Error("maxPageSize is not supported by this operation."); } - return this.listSubscriptionLevelByRegionPagingPage( - ascLocation, - options, - settings, - ); + return this.listSubscriptionLevelByRegionPagingPage(ascLocation, options, settings); }, }; } @@ -255,10 +229,7 @@ export class AlertsImpl implements Alerts { ascLocation: string, options?: AlertsListSubscriptionLevelByRegionOptionalParams, ): AsyncIterableIterator { - for await (const page of this.listSubscriptionLevelByRegionPagingPage( - ascLocation, - options, - )) { + for await (const page of this.listSubscriptionLevelByRegionPagingPage(ascLocation, options)) { yield* page; } } @@ -312,11 +283,7 @@ export class AlertsImpl implements Alerts { let result: AlertsListResourceGroupLevelByRegionResponse; let continuationToken = settings?.continuationToken; if (!continuationToken) { - result = await this._listResourceGroupLevelByRegion( - ascLocation, - resourceGroupName, - options, - ); + result = await this._listResourceGroupLevelByRegion(ascLocation, resourceGroupName, options); let page = result.value || []; continuationToken = result.nextLink; setContinuationToken(page, continuationToken); @@ -354,9 +321,7 @@ export class AlertsImpl implements Alerts { * List all the alerts that are associated with the subscription * @param options The options parameters. */ - private _list( - options?: AlertsListOptionalParams, - ): Promise { + private _list(options?: AlertsListOptionalParams): Promise { return this.client.sendOperationRequest({ options }, listOperationSpec); } @@ -629,8 +594,7 @@ export class AlertsImpl implements Alerts { args: coreClient.OperationArguments, spec: coreClient.OperationSpec, ) => { - let currentRawResponse: coreClient.FullOperationResponse | undefined = - undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, @@ -683,11 +647,7 @@ export class AlertsImpl implements Alerts { alertSimulatorRequestBody: AlertSimulatorRequestBody, options?: AlertsSimulateOptionalParams, ): Promise { - const poller = await this.beginSimulate( - ascLocation, - alertSimulatorRequestBody, - options, - ); + const poller = await this.beginSimulate(ascLocation, alertSimulatorRequestBody, options); return poller.pollUntilDone(); } @@ -700,10 +660,7 @@ export class AlertsImpl implements Alerts { nextLink: string, options?: AlertsListNextOptionalParams, ): Promise { - return this.client.sendOperationRequest( - { nextLink, options }, - listNextOperationSpec, - ); + return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec); } /** @@ -796,11 +753,7 @@ const listByResourceGroupOperationSpec: coreClient.OperationSpec = { }, }, queryParameters: [Parameters.apiVersion22], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - ], + urlParameters: [Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName], headerParameters: [Parameters.accept], serializer, }; @@ -816,11 +769,7 @@ const listSubscriptionLevelByRegionOperationSpec: coreClient.OperationSpec = { }, }, queryParameters: [Parameters.apiVersion22], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.ascLocation, - ], + urlParameters: [Parameters.$host, Parameters.subscriptionId, Parameters.ascLocation], headerParameters: [Parameters.accept], serializer, }; @@ -888,170 +837,162 @@ const getResourceGroupLevelOperationSpec: coreClient.OperationSpec = { headerParameters: [Parameters.accept], serializer, }; -const updateSubscriptionLevelStateToDismissOperationSpec: coreClient.OperationSpec = - { - path: "/subscriptions/{subscriptionId}/providers/Microsoft.Security/locations/{ascLocation}/alerts/{alertName}/dismiss", - httpMethod: "POST", - responses: { - 204: {}, - default: { - bodyMapper: Mappers.CloudError, - }, +const updateSubscriptionLevelStateToDismissOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Security/locations/{ascLocation}/alerts/{alertName}/dismiss", + httpMethod: "POST", + responses: { + 204: {}, + default: { + bodyMapper: Mappers.CloudError, }, - queryParameters: [Parameters.apiVersion22], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.ascLocation, - Parameters.alertName, - ], - headerParameters: [Parameters.accept], - serializer, - }; -const updateSubscriptionLevelStateToResolveOperationSpec: coreClient.OperationSpec = - { - path: "/subscriptions/{subscriptionId}/providers/Microsoft.Security/locations/{ascLocation}/alerts/{alertName}/resolve", - httpMethod: "POST", - responses: { - 204: {}, - default: { - bodyMapper: Mappers.CloudError, - }, + }, + queryParameters: [Parameters.apiVersion22], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.ascLocation, + Parameters.alertName, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const updateSubscriptionLevelStateToResolveOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Security/locations/{ascLocation}/alerts/{alertName}/resolve", + httpMethod: "POST", + responses: { + 204: {}, + default: { + bodyMapper: Mappers.CloudError, }, - queryParameters: [Parameters.apiVersion22], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.ascLocation, - Parameters.alertName, - ], - headerParameters: [Parameters.accept], - serializer, - }; -const updateSubscriptionLevelStateToActivateOperationSpec: coreClient.OperationSpec = - { - path: "/subscriptions/{subscriptionId}/providers/Microsoft.Security/locations/{ascLocation}/alerts/{alertName}/activate", - httpMethod: "POST", - responses: { - 204: {}, - default: { - bodyMapper: Mappers.CloudError, - }, + }, + queryParameters: [Parameters.apiVersion22], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.ascLocation, + Parameters.alertName, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const updateSubscriptionLevelStateToActivateOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Security/locations/{ascLocation}/alerts/{alertName}/activate", + httpMethod: "POST", + responses: { + 204: {}, + default: { + bodyMapper: Mappers.CloudError, }, - queryParameters: [Parameters.apiVersion22], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.ascLocation, - Parameters.alertName, - ], - headerParameters: [Parameters.accept], - serializer, - }; -const updateSubscriptionLevelStateToInProgressOperationSpec: coreClient.OperationSpec = - { - path: "/subscriptions/{subscriptionId}/providers/Microsoft.Security/locations/{ascLocation}/alerts/{alertName}/inProgress", - httpMethod: "POST", - responses: { - 204: {}, - default: { - bodyMapper: Mappers.CloudError, - }, + }, + queryParameters: [Parameters.apiVersion22], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.ascLocation, + Parameters.alertName, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const updateSubscriptionLevelStateToInProgressOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Security/locations/{ascLocation}/alerts/{alertName}/inProgress", + httpMethod: "POST", + responses: { + 204: {}, + default: { + bodyMapper: Mappers.CloudError, }, - queryParameters: [Parameters.apiVersion22], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.ascLocation, - Parameters.alertName, - ], - headerParameters: [Parameters.accept], - serializer, - }; -const updateResourceGroupLevelStateToResolveOperationSpec: coreClient.OperationSpec = - { - path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/locations/{ascLocation}/alerts/{alertName}/resolve", - httpMethod: "POST", - responses: { - 204: {}, - default: { - bodyMapper: Mappers.CloudError, - }, + }, + queryParameters: [Parameters.apiVersion22], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.ascLocation, + Parameters.alertName, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const updateResourceGroupLevelStateToResolveOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/locations/{ascLocation}/alerts/{alertName}/resolve", + httpMethod: "POST", + responses: { + 204: {}, + default: { + bodyMapper: Mappers.CloudError, }, - queryParameters: [Parameters.apiVersion22], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.ascLocation, - Parameters.resourceGroupName, - Parameters.alertName, - ], - headerParameters: [Parameters.accept], - serializer, - }; -const updateResourceGroupLevelStateToDismissOperationSpec: coreClient.OperationSpec = - { - path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/locations/{ascLocation}/alerts/{alertName}/dismiss", - httpMethod: "POST", - responses: { - 204: {}, - default: { - bodyMapper: Mappers.CloudError, - }, + }, + queryParameters: [Parameters.apiVersion22], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.ascLocation, + Parameters.resourceGroupName, + Parameters.alertName, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const updateResourceGroupLevelStateToDismissOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/locations/{ascLocation}/alerts/{alertName}/dismiss", + httpMethod: "POST", + responses: { + 204: {}, + default: { + bodyMapper: Mappers.CloudError, }, - queryParameters: [Parameters.apiVersion22], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.ascLocation, - Parameters.resourceGroupName, - Parameters.alertName, - ], - headerParameters: [Parameters.accept], - serializer, - }; -const updateResourceGroupLevelStateToActivateOperationSpec: coreClient.OperationSpec = - { - path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/locations/{ascLocation}/alerts/{alertName}/activate", - httpMethod: "POST", - responses: { - 204: {}, - default: { - bodyMapper: Mappers.CloudError, - }, + }, + queryParameters: [Parameters.apiVersion22], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.ascLocation, + Parameters.resourceGroupName, + Parameters.alertName, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const updateResourceGroupLevelStateToActivateOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/locations/{ascLocation}/alerts/{alertName}/activate", + httpMethod: "POST", + responses: { + 204: {}, + default: { + bodyMapper: Mappers.CloudError, }, - queryParameters: [Parameters.apiVersion22], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.ascLocation, - Parameters.resourceGroupName, - Parameters.alertName, - ], - headerParameters: [Parameters.accept], - serializer, - }; -const updateResourceGroupLevelStateToInProgressOperationSpec: coreClient.OperationSpec = - { - path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/locations/{ascLocation}/alerts/{alertName}/inProgress", - httpMethod: "POST", - responses: { - 204: {}, - default: { - bodyMapper: Mappers.CloudError, - }, + }, + queryParameters: [Parameters.apiVersion22], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.ascLocation, + Parameters.resourceGroupName, + Parameters.alertName, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const updateResourceGroupLevelStateToInProgressOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/locations/{ascLocation}/alerts/{alertName}/inProgress", + httpMethod: "POST", + responses: { + 204: {}, + default: { + bodyMapper: Mappers.CloudError, }, - queryParameters: [Parameters.apiVersion22], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.ascLocation, - Parameters.resourceGroupName, - Parameters.alertName, - ], - headerParameters: [Parameters.accept], - serializer, - }; + }, + queryParameters: [Parameters.apiVersion22], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.ascLocation, + Parameters.resourceGroupName, + Parameters.alertName, + ], + headerParameters: [Parameters.accept], + serializer, +}; const simulateOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/providers/Microsoft.Security/locations/{ascLocation}/alerts/default/simulate", httpMethod: "POST", @@ -1066,16 +1007,27 @@ const simulateOperationSpec: coreClient.OperationSpec = { }, requestBody: Parameters.alertSimulatorRequestBody, queryParameters: [Parameters.apiVersion22], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.ascLocation, - ], + urlParameters: [Parameters.$host, Parameters.subscriptionId, Parameters.ascLocation], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.AlertList, + }, + default: { + bodyMapper: Mappers.CloudError, + }, + }, + urlParameters: [Parameters.$host, Parameters.subscriptionId, Parameters.nextLink], + headerParameters: [Parameters.accept], + serializer, +}; +const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { @@ -1090,11 +1042,12 @@ const listNextOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.nextLink, + Parameters.resourceGroupName, ], headerParameters: [Parameters.accept], serializer, }; -const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = { +const listSubscriptionLevelByRegionNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { @@ -1108,52 +1061,30 @@ const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = { urlParameters: [ Parameters.$host, Parameters.subscriptionId, + Parameters.ascLocation, Parameters.nextLink, - Parameters.resourceGroupName, ], headerParameters: [Parameters.accept], serializer, }; -const listSubscriptionLevelByRegionNextOperationSpec: coreClient.OperationSpec = - { - path: "{nextLink}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.AlertList, - }, - default: { - bodyMapper: Mappers.CloudError, - }, +const listResourceGroupLevelByRegionNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.AlertList, }, - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.ascLocation, - Parameters.nextLink, - ], - headerParameters: [Parameters.accept], - serializer, - }; -const listResourceGroupLevelByRegionNextOperationSpec: coreClient.OperationSpec = - { - path: "{nextLink}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.AlertList, - }, - default: { - bodyMapper: Mappers.CloudError, - }, + default: { + bodyMapper: Mappers.CloudError, }, - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.ascLocation, - Parameters.nextLink, - Parameters.resourceGroupName, - ], - headerParameters: [Parameters.accept], - serializer, - }; + }, + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.ascLocation, + Parameters.nextLink, + Parameters.resourceGroupName, + ], + headerParameters: [Parameters.accept], + serializer, +}; diff --git a/sdk/security/arm-security/src/operations/alertsSuppressionRules.ts b/sdk/security/arm-security/src/operations/alertsSuppressionRules.ts index 67c7973f3f84..d4e56a1cd3f6 100644 --- a/sdk/security/arm-security/src/operations/alertsSuppressionRules.ts +++ b/sdk/security/arm-security/src/operations/alertsSuppressionRules.ts @@ -159,10 +159,7 @@ export class AlertsSuppressionRulesImpl implements AlertsSuppressionRules { nextLink: string, options?: AlertsSuppressionRulesListNextOptionalParams, ): Promise { - return this.client.sendOperationRequest( - { nextLink, options }, - listNextOperationSpec, - ); + return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec); } } // Operation Specifications @@ -255,11 +252,7 @@ const listNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError, }, }, - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.nextLink, - ], + urlParameters: [Parameters.$host, Parameters.subscriptionId, Parameters.nextLink], headerParameters: [Parameters.accept], serializer, }; diff --git a/sdk/security/arm-security/src/operations/allowedConnections.ts b/sdk/security/arm-security/src/operations/allowedConnections.ts index 20cc71739fd9..2466232fd62f 100644 --- a/sdk/security/arm-security/src/operations/allowedConnections.ts +++ b/sdk/security/arm-security/src/operations/allowedConnections.ts @@ -137,11 +137,7 @@ export class AllowedConnectionsImpl implements AllowedConnections { yield page; } while (continuationToken) { - result = await this._listByHomeRegionNext( - ascLocation, - continuationToken, - options, - ); + result = await this._listByHomeRegionNext(ascLocation, continuationToken, options); continuationToken = result.nextLink; let page = result.value || []; setContinuationToken(page, continuationToken); @@ -153,10 +149,7 @@ export class AllowedConnectionsImpl implements AllowedConnections { ascLocation: string, options?: AllowedConnectionsListByHomeRegionOptionalParams, ): AsyncIterableIterator { - for await (const page of this.listByHomeRegionPagingPage( - ascLocation, - options, - )) { + for await (const page of this.listByHomeRegionPagingPage(ascLocation, options)) { yield* page; } } @@ -218,10 +211,7 @@ export class AllowedConnectionsImpl implements AllowedConnections { nextLink: string, options?: AllowedConnectionsListNextOptionalParams, ): Promise { - return this.client.sendOperationRequest( - { nextLink, options }, - listNextOperationSpec, - ); + return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec); } /** @@ -273,11 +263,7 @@ const listByHomeRegionOperationSpec: coreClient.OperationSpec = { }, }, queryParameters: [Parameters.apiVersion20], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.ascLocation, - ], + urlParameters: [Parameters.$host, Parameters.subscriptionId, Parameters.ascLocation], headerParameters: [Parameters.accept], serializer, }; @@ -314,11 +300,7 @@ const listNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError, }, }, - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.nextLink, - ], + urlParameters: [Parameters.$host, Parameters.subscriptionId, Parameters.nextLink], 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 8cab2942a61c..18a3f7c63983 100644 --- a/sdk/security/arm-security/src/operations/applicationOperations.ts +++ b/sdk/security/arm-security/src/operations/applicationOperations.ts @@ -41,10 +41,7 @@ export class ApplicationOperationsImpl implements ApplicationOperations { applicationId: string, options?: ApplicationGetOptionalParams, ): Promise { - return this.client.sendOperationRequest( - { applicationId, options }, - getOperationSpec, - ); + return this.client.sendOperationRequest({ applicationId, options }, getOperationSpec); } /** @@ -69,14 +66,8 @@ export class ApplicationOperationsImpl implements ApplicationOperations { * @param applicationId The security Application key - unique key for the standard application * @param options The options parameters. */ - delete( - applicationId: string, - options?: ApplicationDeleteOptionalParams, - ): Promise { - return this.client.sendOperationRequest( - { applicationId, options }, - deleteOperationSpec, - ); + delete(applicationId: string, options?: ApplicationDeleteOptionalParams): Promise { + return this.client.sendOperationRequest({ applicationId, options }, deleteOperationSpec); } } // Operation Specifications @@ -93,12 +84,8 @@ const getOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError, }, }, - queryParameters: [Parameters.apiVersion9], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.applicationId, - ], + queryParameters: [Parameters.apiVersion8], + urlParameters: [Parameters.$host, Parameters.subscriptionId, Parameters.applicationId], headerParameters: [Parameters.accept], serializer, }; @@ -117,12 +104,8 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, }, requestBody: Parameters.application, - queryParameters: [Parameters.apiVersion9], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.applicationId, - ], + queryParameters: [Parameters.apiVersion8], + urlParameters: [Parameters.$host, Parameters.subscriptionId, Parameters.applicationId], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer, @@ -131,11 +114,7 @@ const deleteOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/providers/Microsoft.Security/applications/{applicationId}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: {} }, - queryParameters: [Parameters.apiVersion9], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.applicationId, - ], + queryParameters: [Parameters.apiVersion8], + urlParameters: [Parameters.$host, Parameters.subscriptionId, Parameters.applicationId], serializer, }; diff --git a/sdk/security/arm-security/src/operations/applications.ts b/sdk/security/arm-security/src/operations/applications.ts index 083d1695d3d0..7a4f5de86942 100644 --- a/sdk/security/arm-security/src/operations/applications.ts +++ b/sdk/security/arm-security/src/operations/applications.ts @@ -38,9 +38,7 @@ export class ApplicationsImpl implements Applications { * Get a list of all relevant applications over a subscription level scope * @param options The options parameters. */ - public list( - options?: ApplicationsListOptionalParams, - ): PagedAsyncIterableIterator { + public list(options?: ApplicationsListOptionalParams): PagedAsyncIterableIterator { const iter = this.listPagingAll(options); return { next() { @@ -92,9 +90,7 @@ export class ApplicationsImpl implements Applications { * Get a list of all relevant applications over a subscription level scope * @param options The options parameters. */ - private _list( - options?: ApplicationsListOptionalParams, - ): Promise { + private _list(options?: ApplicationsListOptionalParams): Promise { return this.client.sendOperationRequest({ options }, listOperationSpec); } @@ -107,10 +103,7 @@ export class ApplicationsImpl implements Applications { nextLink: string, options?: ApplicationsListNextOptionalParams, ): Promise { - return this.client.sendOperationRequest( - { nextLink, options }, - listNextOperationSpec, - ); + return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec); } } // Operation Specifications @@ -127,7 +120,7 @@ const listOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError, }, }, - queryParameters: [Parameters.apiVersion9], + queryParameters: [Parameters.apiVersion8], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], serializer, @@ -143,11 +136,7 @@ const listNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError, }, }, - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.nextLink, - ], + urlParameters: [Parameters.$host, Parameters.subscriptionId, Parameters.nextLink], headerParameters: [Parameters.accept], serializer, }; diff --git a/sdk/security/arm-security/src/operations/assessments.ts b/sdk/security/arm-security/src/operations/assessments.ts index c547e64909e7..f25613e4d4aa 100644 --- a/sdk/security/arm-security/src/operations/assessments.ts +++ b/sdk/security/arm-security/src/operations/assessments.ts @@ -111,10 +111,7 @@ export class AssessmentsImpl implements Assessments { scope: string, options?: AssessmentsListOptionalParams, ): Promise { - return this.client.sendOperationRequest( - { scope, options }, - listOperationSpec, - ); + return this.client.sendOperationRequest({ scope, options }, listOperationSpec); } /** @@ -185,10 +182,7 @@ export class AssessmentsImpl implements Assessments { nextLink: string, options?: AssessmentsListNextOptionalParams, ): Promise { - return this.client.sendOperationRequest( - { scope, nextLink, options }, - listNextOperationSpec, - ); + return this.client.sendOperationRequest({ scope, nextLink, options }, listNextOperationSpec); } } // Operation Specifications @@ -222,11 +216,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, }, queryParameters: [Parameters.apiVersion21, Parameters.expand1], - urlParameters: [ - Parameters.$host, - Parameters.assessmentName, - Parameters.resourceId, - ], + urlParameters: [Parameters.$host, Parameters.assessmentName, Parameters.resourceId], headerParameters: [Parameters.accept], serializer, }; @@ -246,11 +236,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, requestBody: Parameters.assessment, queryParameters: [Parameters.apiVersion21], - urlParameters: [ - Parameters.$host, - Parameters.assessmentName, - Parameters.resourceId, - ], + urlParameters: [Parameters.$host, Parameters.assessmentName, Parameters.resourceId], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer, @@ -266,11 +252,7 @@ const deleteOperationSpec: coreClient.OperationSpec = { }, }, queryParameters: [Parameters.apiVersion21], - urlParameters: [ - Parameters.$host, - Parameters.assessmentName, - Parameters.resourceId, - ], + urlParameters: [Parameters.$host, Parameters.assessmentName, Parameters.resourceId], headerParameters: [Parameters.accept], serializer, }; diff --git a/sdk/security/arm-security/src/operations/assessmentsMetadata.ts b/sdk/security/arm-security/src/operations/assessmentsMetadata.ts index 1a88315798e8..0c68e2503a57 100644 --- a/sdk/security/arm-security/src/operations/assessmentsMetadata.ts +++ b/sdk/security/arm-security/src/operations/assessmentsMetadata.ts @@ -172,10 +172,7 @@ export class AssessmentsMetadataImpl implements AssessmentsMetadata { assessmentMetadataName: string, options?: AssessmentsMetadataGetOptionalParams, ): Promise { - return this.client.sendOperationRequest( - { assessmentMetadataName, options }, - getOperationSpec, - ); + return this.client.sendOperationRequest({ assessmentMetadataName, options }, getOperationSpec); } /** @@ -185,10 +182,7 @@ export class AssessmentsMetadataImpl implements AssessmentsMetadata { private _listBySubscription( options?: AssessmentsMetadataListBySubscriptionOptionalParams, ): Promise { - return this.client.sendOperationRequest( - { options }, - listBySubscriptionOperationSpec, - ); + return this.client.sendOperationRequest({ options }, listBySubscriptionOperationSpec); } /** @@ -248,10 +242,7 @@ export class AssessmentsMetadataImpl implements AssessmentsMetadata { nextLink: string, options?: AssessmentsMetadataListNextOptionalParams, ): Promise { - return this.client.sendOperationRequest( - { nextLink, options }, - listNextOperationSpec, - ); + return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec); } /** @@ -332,11 +323,7 @@ const getInSubscriptionOperationSpec: coreClient.OperationSpec = { }, }, queryParameters: [Parameters.apiVersion21], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.assessmentMetadataName, - ], + urlParameters: [Parameters.$host, Parameters.subscriptionId, Parameters.assessmentMetadataName], headerParameters: [Parameters.accept], serializer, }; @@ -353,11 +340,7 @@ const createInSubscriptionOperationSpec: coreClient.OperationSpec = { }, requestBody: Parameters.assessmentMetadata, queryParameters: [Parameters.apiVersion21], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.assessmentMetadataName, - ], + urlParameters: [Parameters.$host, Parameters.subscriptionId, Parameters.assessmentMetadataName], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer, @@ -372,11 +355,7 @@ const deleteInSubscriptionOperationSpec: coreClient.OperationSpec = { }, }, queryParameters: [Parameters.apiVersion21], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.assessmentMetadataName, - ], + urlParameters: [Parameters.$host, Parameters.subscriptionId, Parameters.assessmentMetadataName], headerParameters: [Parameters.accept], serializer, }; @@ -406,11 +385,7 @@ const listBySubscriptionNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError, }, }, - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.nextLink, - ], + urlParameters: [Parameters.$host, Parameters.subscriptionId, Parameters.nextLink], headerParameters: [Parameters.accept], serializer, }; diff --git a/sdk/security/arm-security/src/operations/autoProvisioningSettings.ts b/sdk/security/arm-security/src/operations/autoProvisioningSettings.ts index 98c274fa3a87..b0d4700a5b96 100644 --- a/sdk/security/arm-security/src/operations/autoProvisioningSettings.ts +++ b/sdk/security/arm-security/src/operations/autoProvisioningSettings.ts @@ -111,10 +111,7 @@ export class AutoProvisioningSettingsImpl implements AutoProvisioningSettings { settingName: string, options?: AutoProvisioningSettingsGetOptionalParams, ): Promise { - return this.client.sendOperationRequest( - { settingName, options }, - getOperationSpec, - ); + return this.client.sendOperationRequest({ settingName, options }, getOperationSpec); } /** @@ -128,10 +125,7 @@ export class AutoProvisioningSettingsImpl implements AutoProvisioningSettings { setting: AutoProvisioningSetting, options?: AutoProvisioningSettingsCreateOptionalParams, ): Promise { - return this.client.sendOperationRequest( - { settingName, setting, options }, - createOperationSpec, - ); + return this.client.sendOperationRequest({ settingName, setting, options }, createOperationSpec); } /** @@ -143,10 +137,7 @@ export class AutoProvisioningSettingsImpl implements AutoProvisioningSettings { nextLink: string, options?: AutoProvisioningSettingsListNextOptionalParams, ): Promise { - return this.client.sendOperationRequest( - { nextLink, options }, - listNextOperationSpec, - ); + return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec); } } // Operation Specifications @@ -180,11 +171,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, }, queryParameters: [Parameters.apiVersion1], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.settingName, - ], + urlParameters: [Parameters.$host, Parameters.subscriptionId, Parameters.settingName], headerParameters: [Parameters.accept], serializer, }; @@ -201,11 +188,7 @@ const createOperationSpec: coreClient.OperationSpec = { }, requestBody: Parameters.setting, queryParameters: [Parameters.apiVersion1], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.settingName, - ], + urlParameters: [Parameters.$host, Parameters.subscriptionId, Parameters.settingName], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer, @@ -221,11 +204,7 @@ const listNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError, }, }, - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.nextLink, - ], + urlParameters: [Parameters.$host, Parameters.subscriptionId, Parameters.nextLink], 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 7bfc56636e54..5472bec2006e 100644 --- a/sdk/security/arm-security/src/operations/automations.ts +++ b/sdk/security/arm-security/src/operations/automations.ts @@ -53,9 +53,7 @@ export class AutomationsImpl implements Automations { * response to get the next page of security automations for the specified subscription. * @param options The options parameters. */ - public list( - options?: AutomationsListOptionalParams, - ): PagedAsyncIterableIterator { + public list(options?: AutomationsListOptionalParams): PagedAsyncIterableIterator { const iter = this.listPagingAll(options); return { next() { @@ -126,11 +124,7 @@ export class AutomationsImpl implements Automations { if (settings?.maxPageSize) { throw new Error("maxPageSize is not supported by this operation."); } - return this.listByResourceGroupPagingPage( - resourceGroupName, - options, - settings, - ); + return this.listByResourceGroupPagingPage(resourceGroupName, options, settings); }, }; } @@ -150,11 +144,7 @@ export class AutomationsImpl implements Automations { yield page; } while (continuationToken) { - result = await this._listByResourceGroupNext( - resourceGroupName, - continuationToken, - options, - ); + result = await this._listByResourceGroupNext(resourceGroupName, continuationToken, options); continuationToken = result.nextLink; let page = result.value || []; setContinuationToken(page, continuationToken); @@ -166,10 +156,7 @@ export class AutomationsImpl implements Automations { resourceGroupName: string, options?: AutomationsListByResourceGroupOptionalParams, ): AsyncIterableIterator { - for await (const page of this.listByResourceGroupPagingPage( - resourceGroupName, - options, - )) { + for await (const page of this.listByResourceGroupPagingPage(resourceGroupName, options)) { yield* page; } } @@ -179,9 +166,7 @@ export class AutomationsImpl implements Automations { * response to get the next page of security automations for the specified subscription. * @param options The options parameters. */ - private _list( - options?: AutomationsListOptionalParams, - ): Promise { + private _list(options?: AutomationsListOptionalParams): Promise { return this.client.sendOperationRequest({ options }, listOperationSpec); } @@ -309,10 +294,7 @@ export class AutomationsImpl implements Automations { nextLink: string, options?: AutomationsListNextOptionalParams, ): Promise { - return this.client.sendOperationRequest( - { nextLink, options }, - listNextOperationSpec, - ); + return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec); } /** @@ -347,7 +329,7 @@ const listOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError, }, }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion13], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], serializer, @@ -363,12 +345,8 @@ const listByResourceGroupOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError, }, }, - queryParameters: [Parameters.apiVersion3], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - ], + queryParameters: [Parameters.apiVersion13], + urlParameters: [Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName], headerParameters: [Parameters.accept], serializer, }; @@ -383,7 +361,7 @@ const getOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError, }, }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion13], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -408,7 +386,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, }, requestBody: Parameters.automation, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion13], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -431,7 +409,7 @@ const updateOperationSpec: coreClient.OperationSpec = { }, }, requestBody: Parameters.automation1, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion13], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -452,7 +430,7 @@ const deleteOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError, }, }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion13], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -474,7 +452,7 @@ const validateOperationSpec: coreClient.OperationSpec = { }, }, requestBody: Parameters.automation, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion13], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -496,11 +474,7 @@ const listNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError, }, }, - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.nextLink, - ], + urlParameters: [Parameters.$host, Parameters.subscriptionId, Parameters.nextLink], headerParameters: [Parameters.accept], serializer, }; diff --git a/sdk/security/arm-security/src/operations/azureDevOpsOrgs.ts b/sdk/security/arm-security/src/operations/azureDevOpsOrgs.ts index 8ca1c0c1d155..808cb2e840ff 100644 --- a/sdk/security/arm-security/src/operations/azureDevOpsOrgs.ts +++ b/sdk/security/arm-security/src/operations/azureDevOpsOrgs.ts @@ -13,11 +13,7 @@ import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers.js"; import * as Parameters from "../models/parameters.js"; import { SecurityCenter } from "../securityCenter.js"; -import { - SimplePollerLike, - OperationState, - createHttpPoller, -} from "@azure/core-lro"; +import { SimplePollerLike, OperationState, createHttpPoller } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl.js"; import { AzureDevOpsOrg, @@ -59,11 +55,7 @@ export class AzureDevOpsOrgsImpl implements AzureDevOpsOrgs { securityConnectorName: string, options?: AzureDevOpsOrgsListOptionalParams, ): PagedAsyncIterableIterator { - const iter = this.listPagingAll( - resourceGroupName, - securityConnectorName, - options, - ); + const iter = this.listPagingAll(resourceGroupName, securityConnectorName, options); return { next() { return iter.next(); @@ -75,12 +67,7 @@ export class AzureDevOpsOrgsImpl implements AzureDevOpsOrgs { if (settings?.maxPageSize) { throw new Error("maxPageSize is not supported by this operation."); } - return this.listPagingPage( - resourceGroupName, - securityConnectorName, - options, - settings, - ); + return this.listPagingPage(resourceGroupName, securityConnectorName, options, settings); }, }; } @@ -94,11 +81,7 @@ export class AzureDevOpsOrgsImpl implements AzureDevOpsOrgs { let result: AzureDevOpsOrgsListResponse; let continuationToken = settings?.continuationToken; if (!continuationToken) { - result = await this._list( - resourceGroupName, - securityConnectorName, - options, - ); + result = await this._list(resourceGroupName, securityConnectorName, options); let page = result.value || []; continuationToken = result.nextLink; setContinuationToken(page, continuationToken); @@ -216,8 +199,7 @@ export class AzureDevOpsOrgsImpl implements AzureDevOpsOrgs { args: coreClient.OperationArguments, spec: coreClient.OperationSpec, ) => { - let currentRawResponse: coreClient.FullOperationResponse | undefined = - undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, @@ -307,10 +289,7 @@ export class AzureDevOpsOrgsImpl implements AzureDevOpsOrgs { azureDevOpsOrg: AzureDevOpsOrg, options?: AzureDevOpsOrgsUpdateOptionalParams, ): Promise< - SimplePollerLike< - OperationState, - AzureDevOpsOrgsUpdateResponse - > + SimplePollerLike, AzureDevOpsOrgsUpdateResponse> > { const directSendOperation = async ( args: coreClient.OperationArguments, @@ -322,8 +301,7 @@ export class AzureDevOpsOrgsImpl implements AzureDevOpsOrgs { args: coreClient.OperationArguments, spec: coreClient.OperationSpec, ) => { - let currentRawResponse: coreClient.FullOperationResponse | undefined = - undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, @@ -428,10 +406,10 @@ const listAvailableOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.AzureDevOpsOrgListResponse, }, default: { - bodyMapper: Mappers.ErrorResponseAutoGenerated, + bodyMapper: Mappers.ErrorResponseAutoGenerated3, }, }, - queryParameters: [Parameters.apiVersion15], + queryParameters: [Parameters.apiVersion29], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -449,10 +427,10 @@ const listOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.AzureDevOpsOrgListResponse, }, default: { - bodyMapper: Mappers.ErrorResponseAutoGenerated, + bodyMapper: Mappers.ErrorResponseAutoGenerated3, }, }, - queryParameters: [Parameters.apiVersion15], + queryParameters: [Parameters.apiVersion29], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -470,10 +448,10 @@ const getOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.AzureDevOpsOrg, }, default: { - bodyMapper: Mappers.ErrorResponseAutoGenerated, + bodyMapper: Mappers.ErrorResponseAutoGenerated3, }, }, - queryParameters: [Parameters.apiVersion15], + queryParameters: [Parameters.apiVersion29], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -501,11 +479,11 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.AzureDevOpsOrg, }, default: { - bodyMapper: Mappers.ErrorResponseAutoGenerated, + bodyMapper: Mappers.ErrorResponseAutoGenerated3, }, }, requestBody: Parameters.azureDevOpsOrg, - queryParameters: [Parameters.apiVersion15], + queryParameters: [Parameters.apiVersion29], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -534,11 +512,11 @@ const updateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.AzureDevOpsOrg, }, default: { - bodyMapper: Mappers.ErrorResponseAutoGenerated, + bodyMapper: Mappers.ErrorResponseAutoGenerated3, }, }, requestBody: Parameters.azureDevOpsOrg, - queryParameters: [Parameters.apiVersion15], + queryParameters: [Parameters.apiVersion29], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -558,7 +536,7 @@ const listNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.AzureDevOpsOrgListResponse, }, default: { - bodyMapper: Mappers.ErrorResponseAutoGenerated, + bodyMapper: Mappers.ErrorResponseAutoGenerated3, }, }, urlParameters: [ diff --git a/sdk/security/arm-security/src/operations/azureDevOpsProjects.ts b/sdk/security/arm-security/src/operations/azureDevOpsProjects.ts index edbb54053764..b35fa1660b61 100644 --- a/sdk/security/arm-security/src/operations/azureDevOpsProjects.ts +++ b/sdk/security/arm-security/src/operations/azureDevOpsProjects.ts @@ -13,11 +13,7 @@ import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers.js"; import * as Parameters from "../models/parameters.js"; import { SecurityCenter } from "../securityCenter.js"; -import { - SimplePollerLike, - OperationState, - createHttpPoller, -} from "@azure/core-lro"; +import { SimplePollerLike, OperationState, createHttpPoller } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl.js"; import { AzureDevOpsProject, @@ -59,12 +55,7 @@ export class AzureDevOpsProjectsImpl implements AzureDevOpsProjects { orgName: string, options?: AzureDevOpsProjectsListOptionalParams, ): PagedAsyncIterableIterator { - const iter = this.listPagingAll( - resourceGroupName, - securityConnectorName, - orgName, - options, - ); + const iter = this.listPagingAll(resourceGroupName, securityConnectorName, orgName, options); return { next() { return iter.next(); @@ -97,12 +88,7 @@ export class AzureDevOpsProjectsImpl implements AzureDevOpsProjects { let result: AzureDevOpsProjectsListResponse; let continuationToken = settings?.continuationToken; if (!continuationToken) { - result = await this._list( - resourceGroupName, - securityConnectorName, - orgName, - options, - ); + result = await this._list(resourceGroupName, securityConnectorName, orgName, options); let page = result.value || []; continuationToken = result.nextLink; setContinuationToken(page, continuationToken); @@ -217,8 +203,7 @@ export class AzureDevOpsProjectsImpl implements AzureDevOpsProjects { args: coreClient.OperationArguments, spec: coreClient.OperationSpec, ) => { - let currentRawResponse: coreClient.FullOperationResponse | undefined = - undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, @@ -329,8 +314,7 @@ export class AzureDevOpsProjectsImpl implements AzureDevOpsProjects { args: coreClient.OperationArguments, spec: coreClient.OperationSpec, ) => { - let currentRawResponse: coreClient.FullOperationResponse | undefined = - undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, @@ -441,10 +425,10 @@ const listOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.AzureDevOpsProjectListResponse, }, default: { - bodyMapper: Mappers.ErrorResponseAutoGenerated, + bodyMapper: Mappers.ErrorResponseAutoGenerated3, }, }, - queryParameters: [Parameters.apiVersion15], + queryParameters: [Parameters.apiVersion29], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -463,10 +447,10 @@ const getOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.AzureDevOpsProject, }, default: { - bodyMapper: Mappers.ErrorResponseAutoGenerated, + bodyMapper: Mappers.ErrorResponseAutoGenerated3, }, }, - queryParameters: [Parameters.apiVersion15], + queryParameters: [Parameters.apiVersion29], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -495,11 +479,11 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.AzureDevOpsProject, }, default: { - bodyMapper: Mappers.ErrorResponseAutoGenerated, + bodyMapper: Mappers.ErrorResponseAutoGenerated3, }, }, requestBody: Parameters.azureDevOpsProject, - queryParameters: [Parameters.apiVersion15], + queryParameters: [Parameters.apiVersion29], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -529,11 +513,11 @@ const updateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.AzureDevOpsProject, }, default: { - bodyMapper: Mappers.ErrorResponseAutoGenerated, + bodyMapper: Mappers.ErrorResponseAutoGenerated3, }, }, requestBody: Parameters.azureDevOpsProject, - queryParameters: [Parameters.apiVersion15], + queryParameters: [Parameters.apiVersion29], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -554,7 +538,7 @@ const listNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.AzureDevOpsProjectListResponse, }, default: { - bodyMapper: Mappers.ErrorResponseAutoGenerated, + bodyMapper: Mappers.ErrorResponseAutoGenerated3, }, }, urlParameters: [ diff --git a/sdk/security/arm-security/src/operations/azureDevOpsRepos.ts b/sdk/security/arm-security/src/operations/azureDevOpsRepos.ts index 0d7c0cf99109..f8f98d3eb786 100644 --- a/sdk/security/arm-security/src/operations/azureDevOpsRepos.ts +++ b/sdk/security/arm-security/src/operations/azureDevOpsRepos.ts @@ -13,11 +13,7 @@ import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers.js"; import * as Parameters from "../models/parameters.js"; import { SecurityCenter } from "../securityCenter.js"; -import { - SimplePollerLike, - OperationState, - createHttpPoller, -} from "@azure/core-lro"; +import { SimplePollerLike, OperationState, createHttpPoller } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl.js"; import { AzureDevOpsRepository, @@ -239,8 +235,7 @@ export class AzureDevOpsReposImpl implements AzureDevOpsRepos { args: coreClient.OperationArguments, spec: coreClient.OperationSpec, ) => { - let currentRawResponse: coreClient.FullOperationResponse | undefined = - undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, @@ -342,10 +337,7 @@ export class AzureDevOpsReposImpl implements AzureDevOpsRepos { azureDevOpsRepository: AzureDevOpsRepository, options?: AzureDevOpsReposUpdateOptionalParams, ): Promise< - SimplePollerLike< - OperationState, - AzureDevOpsReposUpdateResponse - > + SimplePollerLike, AzureDevOpsReposUpdateResponse> > { const directSendOperation = async ( args: coreClient.OperationArguments, @@ -357,8 +349,7 @@ export class AzureDevOpsReposImpl implements AzureDevOpsRepos { args: coreClient.OperationArguments, spec: coreClient.OperationSpec, ) => { - let currentRawResponse: coreClient.FullOperationResponse | undefined = - undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, @@ -482,10 +473,10 @@ const listOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.AzureDevOpsRepositoryListResponse, }, default: { - bodyMapper: Mappers.ErrorResponseAutoGenerated, + bodyMapper: Mappers.ErrorResponseAutoGenerated3, }, }, - queryParameters: [Parameters.apiVersion15], + queryParameters: [Parameters.apiVersion29], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -505,10 +496,10 @@ const getOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.AzureDevOpsRepository, }, default: { - bodyMapper: Mappers.ErrorResponseAutoGenerated, + bodyMapper: Mappers.ErrorResponseAutoGenerated3, }, }, - queryParameters: [Parameters.apiVersion15], + queryParameters: [Parameters.apiVersion29], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -538,11 +529,11 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.AzureDevOpsRepository, }, default: { - bodyMapper: Mappers.ErrorResponseAutoGenerated, + bodyMapper: Mappers.ErrorResponseAutoGenerated3, }, }, requestBody: Parameters.azureDevOpsRepository, - queryParameters: [Parameters.apiVersion15], + queryParameters: [Parameters.apiVersion29], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -573,11 +564,11 @@ const updateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.AzureDevOpsRepository, }, default: { - bodyMapper: Mappers.ErrorResponseAutoGenerated, + bodyMapper: Mappers.ErrorResponseAutoGenerated3, }, }, requestBody: Parameters.azureDevOpsRepository, - queryParameters: [Parameters.apiVersion15], + queryParameters: [Parameters.apiVersion29], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -599,7 +590,7 @@ const listNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.AzureDevOpsRepositoryListResponse, }, default: { - bodyMapper: Mappers.ErrorResponseAutoGenerated, + bodyMapper: Mappers.ErrorResponseAutoGenerated3, }, }, urlParameters: [ diff --git a/sdk/security/arm-security/src/operations/complianceResults.ts b/sdk/security/arm-security/src/operations/complianceResults.ts index cc397acd3a06..624fa21fb3b8 100644 --- a/sdk/security/arm-security/src/operations/complianceResults.ts +++ b/sdk/security/arm-security/src/operations/complianceResults.ts @@ -107,10 +107,7 @@ export class ComplianceResultsImpl implements ComplianceResults { scope: string, options?: ComplianceResultsListOptionalParams, ): Promise { - return this.client.sendOperationRequest( - { scope, options }, - listOperationSpec, - ); + return this.client.sendOperationRequest({ scope, options }, listOperationSpec); } /** @@ -143,10 +140,7 @@ export class ComplianceResultsImpl implements ComplianceResults { nextLink: string, options?: ComplianceResultsListNextOptionalParams, ): Promise { - return this.client.sendOperationRequest( - { scope, nextLink, options }, - listNextOperationSpec, - ); + return this.client.sendOperationRequest({ scope, nextLink, options }, listNextOperationSpec); } } // Operation Specifications @@ -180,11 +174,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, }, queryParameters: [Parameters.apiVersion17], - urlParameters: [ - Parameters.$host, - Parameters.resourceId, - Parameters.complianceResultName, - ], + urlParameters: [Parameters.$host, Parameters.resourceId, Parameters.complianceResultName], headerParameters: [Parameters.accept], serializer, }; diff --git a/sdk/security/arm-security/src/operations/compliances.ts b/sdk/security/arm-security/src/operations/compliances.ts index ee30bb43fa92..5bf07fb6757d 100644 --- a/sdk/security/arm-security/src/operations/compliances.ts +++ b/sdk/security/arm-security/src/operations/compliances.ts @@ -107,10 +107,7 @@ export class CompliancesImpl implements Compliances { scope: string, options?: CompliancesListOptionalParams, ): Promise { - return this.client.sendOperationRequest( - { scope, options }, - listOperationSpec, - ); + return this.client.sendOperationRequest({ scope, options }, listOperationSpec); } /** @@ -126,10 +123,7 @@ export class CompliancesImpl implements Compliances { complianceName: string, options?: CompliancesGetOptionalParams, ): Promise { - return this.client.sendOperationRequest( - { scope, complianceName, options }, - getOperationSpec, - ); + return this.client.sendOperationRequest({ scope, complianceName, options }, getOperationSpec); } /** @@ -145,10 +139,7 @@ export class CompliancesImpl implements Compliances { nextLink: string, options?: CompliancesListNextOptionalParams, ): Promise { - return this.client.sendOperationRequest( - { scope, nextLink, options }, - listNextOperationSpec, - ); + return this.client.sendOperationRequest({ scope, nextLink, options }, listNextOperationSpec); } } // Operation Specifications @@ -182,11 +173,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, }, queryParameters: [Parameters.apiVersion1], - urlParameters: [ - Parameters.$host, - Parameters.scope, - Parameters.complianceName, - ], + urlParameters: [Parameters.$host, Parameters.scope, Parameters.complianceName], headerParameters: [Parameters.accept], serializer, }; diff --git a/sdk/security/arm-security/src/operations/connectors.ts b/sdk/security/arm-security/src/operations/connectors.ts index 12c330e19bae..313257e81f5c 100644 --- a/sdk/security/arm-security/src/operations/connectors.ts +++ b/sdk/security/arm-security/src/operations/connectors.ts @@ -97,9 +97,7 @@ export class ConnectorsImpl implements Connectors { * Cloud accounts connectors of a subscription * @param options The options parameters. */ - private _list( - options?: ConnectorsListOptionalParams, - ): Promise { + private _list(options?: ConnectorsListOptionalParams): Promise { return this.client.sendOperationRequest({ options }, listOperationSpec); } @@ -112,10 +110,7 @@ export class ConnectorsImpl implements Connectors { connectorName: string, options?: ConnectorsGetOptionalParams, ): Promise { - return this.client.sendOperationRequest( - { connectorName, options }, - getOperationSpec, - ); + return this.client.sendOperationRequest({ connectorName, options }, getOperationSpec); } /** @@ -142,14 +137,8 @@ export class ConnectorsImpl implements Connectors { * @param connectorName Name of the cloud account connector * @param options The options parameters. */ - delete( - connectorName: string, - options?: ConnectorsDeleteOptionalParams, - ): Promise { - return this.client.sendOperationRequest( - { connectorName, options }, - deleteOperationSpec, - ); + delete(connectorName: string, options?: ConnectorsDeleteOptionalParams): Promise { + return this.client.sendOperationRequest({ connectorName, options }, deleteOperationSpec); } /** @@ -161,10 +150,7 @@ export class ConnectorsImpl implements Connectors { nextLink: string, options?: ConnectorsListNextOptionalParams, ): Promise { - return this.client.sendOperationRequest( - { nextLink, options }, - listNextOperationSpec, - ); + return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec); } } // Operation Specifications @@ -181,7 +167,7 @@ const listOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError, }, }, - queryParameters: [Parameters.apiVersion4], + queryParameters: [Parameters.apiVersion3], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], serializer, @@ -197,12 +183,8 @@ const getOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError, }, }, - queryParameters: [Parameters.apiVersion4], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.connectorName, - ], + queryParameters: [Parameters.apiVersion3], + urlParameters: [Parameters.$host, Parameters.subscriptionId, Parameters.connectorName], headerParameters: [Parameters.accept], serializer, }; @@ -218,12 +200,8 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, }, requestBody: Parameters.connectorSetting, - queryParameters: [Parameters.apiVersion4], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.connectorName, - ], + queryParameters: [Parameters.apiVersion3], + urlParameters: [Parameters.$host, Parameters.subscriptionId, Parameters.connectorName], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer, @@ -238,12 +216,8 @@ const deleteOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError, }, }, - queryParameters: [Parameters.apiVersion4], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.connectorName, - ], + queryParameters: [Parameters.apiVersion3], + urlParameters: [Parameters.$host, Parameters.subscriptionId, Parameters.connectorName], headerParameters: [Parameters.accept], serializer, }; @@ -258,11 +232,7 @@ const listNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError, }, }, - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.nextLink, - ], + urlParameters: [Parameters.$host, Parameters.subscriptionId, Parameters.nextLink], headerParameters: [Parameters.accept], serializer, }; diff --git a/sdk/security/arm-security/src/operations/customAssessmentAutomations.ts b/sdk/security/arm-security/src/operations/customAssessmentAutomations.ts index b4c2f8350441..7df9c52df774 100644 --- a/sdk/security/arm-security/src/operations/customAssessmentAutomations.ts +++ b/sdk/security/arm-security/src/operations/customAssessmentAutomations.ts @@ -33,9 +33,7 @@ import { /// /** Class containing CustomAssessmentAutomations operations. */ -export class CustomAssessmentAutomationsImpl - implements CustomAssessmentAutomations -{ +export class CustomAssessmentAutomationsImpl implements CustomAssessmentAutomations { private readonly client: SecurityCenter; /** @@ -68,11 +66,7 @@ export class CustomAssessmentAutomationsImpl if (settings?.maxPageSize) { throw new Error("maxPageSize is not supported by this operation."); } - return this.listByResourceGroupPagingPage( - resourceGroupName, - options, - settings, - ); + return this.listByResourceGroupPagingPage(resourceGroupName, options, settings); }, }; } @@ -92,11 +86,7 @@ export class CustomAssessmentAutomationsImpl yield page; } while (continuationToken) { - result = await this._listByResourceGroupNext( - resourceGroupName, - continuationToken, - options, - ); + result = await this._listByResourceGroupNext(resourceGroupName, continuationToken, options); continuationToken = result.nextLink; let page = result.value || []; setContinuationToken(page, continuationToken); @@ -108,10 +98,7 @@ export class CustomAssessmentAutomationsImpl resourceGroupName: string, options?: CustomAssessmentAutomationsListByResourceGroupOptionalParams, ): AsyncIterableIterator { - for await (const page of this.listByResourceGroupPagingPage( - resourceGroupName, - options, - )) { + for await (const page of this.listByResourceGroupPagingPage(resourceGroupName, options)) { yield* page; } } @@ -255,10 +242,7 @@ export class CustomAssessmentAutomationsImpl private _listBySubscription( options?: CustomAssessmentAutomationsListBySubscriptionOptionalParams, ): Promise { - return this.client.sendOperationRequest( - { options }, - listBySubscriptionOperationSpec, - ); + return this.client.sendOperationRequest({ options }, listBySubscriptionOperationSpec); } /** @@ -308,7 +292,7 @@ const getOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError, }, }, - queryParameters: [Parameters.apiVersion6], + queryParameters: [Parameters.apiVersion5], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -333,7 +317,7 @@ const createOperationSpec: coreClient.OperationSpec = { }, }, requestBody: Parameters.customAssessmentAutomationBody, - queryParameters: [Parameters.apiVersion6], + queryParameters: [Parameters.apiVersion5], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -354,7 +338,7 @@ const deleteOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError, }, }, - queryParameters: [Parameters.apiVersion6], + queryParameters: [Parameters.apiVersion5], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -375,12 +359,8 @@ const listByResourceGroupOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError, }, }, - queryParameters: [Parameters.apiVersion6], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - ], + queryParameters: [Parameters.apiVersion5], + urlParameters: [Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName], headerParameters: [Parameters.accept], serializer, }; @@ -395,7 +375,7 @@ const listBySubscriptionOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError, }, }, - queryParameters: [Parameters.apiVersion6], + queryParameters: [Parameters.apiVersion5], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], serializer, @@ -431,11 +411,7 @@ const listBySubscriptionNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError, }, }, - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.nextLink, - ], + urlParameters: [Parameters.$host, Parameters.subscriptionId, Parameters.nextLink], 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 f3b01f2f4bb1..84b2bf006a40 100644 --- a/sdk/security/arm-security/src/operations/customEntityStoreAssignments.ts +++ b/sdk/security/arm-security/src/operations/customEntityStoreAssignments.ts @@ -33,9 +33,7 @@ import { /// /** Class containing CustomEntityStoreAssignments operations. */ -export class CustomEntityStoreAssignmentsImpl - implements CustomEntityStoreAssignments -{ +export class CustomEntityStoreAssignmentsImpl implements CustomEntityStoreAssignments { private readonly client: SecurityCenter; /** @@ -68,11 +66,7 @@ export class CustomEntityStoreAssignmentsImpl if (settings?.maxPageSize) { throw new Error("maxPageSize is not supported by this operation."); } - return this.listByResourceGroupPagingPage( - resourceGroupName, - options, - settings, - ); + return this.listByResourceGroupPagingPage(resourceGroupName, options, settings); }, }; } @@ -92,11 +86,7 @@ export class CustomEntityStoreAssignmentsImpl yield page; } while (continuationToken) { - result = await this._listByResourceGroupNext( - resourceGroupName, - continuationToken, - options, - ); + result = await this._listByResourceGroupNext(resourceGroupName, continuationToken, options); continuationToken = result.nextLink; let page = result.value || []; setContinuationToken(page, continuationToken); @@ -108,10 +98,7 @@ export class CustomEntityStoreAssignmentsImpl resourceGroupName: string, options?: CustomEntityStoreAssignmentsListByResourceGroupOptionalParams, ): AsyncIterableIterator { - for await (const page of this.listByResourceGroupPagingPage( - resourceGroupName, - options, - )) { + for await (const page of this.listByResourceGroupPagingPage(resourceGroupName, options)) { yield* page; } } @@ -258,10 +245,7 @@ export class CustomEntityStoreAssignmentsImpl private _listBySubscription( options?: CustomEntityStoreAssignmentsListBySubscriptionOptionalParams, ): Promise { - return this.client.sendOperationRequest( - { options }, - listBySubscriptionOperationSpec, - ); + return this.client.sendOperationRequest({ options }, listBySubscriptionOperationSpec); } /** @@ -311,7 +295,7 @@ const getOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError, }, }, - queryParameters: [Parameters.apiVersion6], + queryParameters: [Parameters.apiVersion5], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -336,7 +320,7 @@ const createOperationSpec: coreClient.OperationSpec = { }, }, requestBody: Parameters.customEntityStoreAssignmentRequestBody, - queryParameters: [Parameters.apiVersion6], + queryParameters: [Parameters.apiVersion5], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -357,7 +341,7 @@ const deleteOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError, }, }, - queryParameters: [Parameters.apiVersion6], + queryParameters: [Parameters.apiVersion5], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -378,12 +362,8 @@ const listByResourceGroupOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError, }, }, - queryParameters: [Parameters.apiVersion6], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - ], + queryParameters: [Parameters.apiVersion5], + urlParameters: [Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName], headerParameters: [Parameters.accept], serializer, }; @@ -398,7 +378,7 @@ const listBySubscriptionOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError, }, }, - queryParameters: [Parameters.apiVersion6], + queryParameters: [Parameters.apiVersion5], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], serializer, @@ -434,11 +414,7 @@ const listBySubscriptionNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError, }, }, - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.nextLink, - ], + urlParameters: [Parameters.$host, Parameters.subscriptionId, Parameters.nextLink], headerParameters: [Parameters.accept], serializer, }; diff --git a/sdk/security/arm-security/src/operations/customRecommendations.ts b/sdk/security/arm-security/src/operations/customRecommendations.ts new file mode 100644 index 000000000000..4da1587e9f99 --- /dev/null +++ b/sdk/security/arm-security/src/operations/customRecommendations.ts @@ -0,0 +1,282 @@ +/* + * 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.js"; +import { CustomRecommendations } from "../operationsInterfaces/index.js"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { SecurityCenter } from "../securityCenter.js"; +import { + CustomRecommendation, + CustomRecommendationsListNextOptionalParams, + CustomRecommendationsListOptionalParams, + CustomRecommendationsListResponse, + CustomRecommendationsGetOptionalParams, + CustomRecommendationsGetResponse, + CustomRecommendationsCreateOrUpdateOptionalParams, + CustomRecommendationsCreateOrUpdateResponse, + CustomRecommendationsDeleteOptionalParams, + CustomRecommendationsListNextResponse, +} from "../models/index.js"; + +/// +/** Class containing CustomRecommendations operations. */ +export class CustomRecommendationsImpl implements CustomRecommendations { + private readonly client: SecurityCenter; + + /** + * Initialize a new instance of the class CustomRecommendations class. + * @param client Reference to the service client + */ + constructor(client: SecurityCenter) { + this.client = client; + } + + /** + * Get a list of all relevant custom recommendations over a scope + * @param scope The scope of the custom recommendation. Valid scopes are: management group (format: + * 'providers/Microsoft.Management/managementGroups/{managementGroup}'), subscription (format: + * 'subscriptions/{subscriptionId}'), or security connector (format: + * 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName})' + * @param options The options parameters. + */ + public list( + scope: string, + options?: CustomRecommendationsListOptionalParams, + ): PagedAsyncIterableIterator { + const iter = this.listPagingAll(scope, 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(scope, options, settings); + }, + }; + } + + private async *listPagingPage( + scope: string, + options?: CustomRecommendationsListOptionalParams, + settings?: PageSettings, + ): AsyncIterableIterator { + let result: CustomRecommendationsListResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._list(scope, options); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listNext(scope, continuationToken, options); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listPagingAll( + scope: string, + options?: CustomRecommendationsListOptionalParams, + ): AsyncIterableIterator { + for await (const page of this.listPagingPage(scope, options)) { + yield* page; + } + } + + /** + * Get a list of all relevant custom recommendations over a scope + * @param scope The scope of the custom recommendation. Valid scopes are: management group (format: + * 'providers/Microsoft.Management/managementGroups/{managementGroup}'), subscription (format: + * 'subscriptions/{subscriptionId}'), or security connector (format: + * 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName})' + * @param options The options parameters. + */ + private _list( + scope: string, + options?: CustomRecommendationsListOptionalParams, + ): Promise { + return this.client.sendOperationRequest({ scope, options }, listOperationSpec); + } + + /** + * Get a specific custom recommendation for the requested scope by customRecommendationName + * @param scope The scope of the custom recommendation. Valid scopes are: management group (format: + * 'providers/Microsoft.Management/managementGroups/{managementGroup}'), subscription (format: + * 'subscriptions/{subscriptionId}'), or security connector (format: + * 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName})' + * @param customRecommendationName Name of the Custom Recommendation. + * @param options The options parameters. + */ + get( + scope: string, + customRecommendationName: string, + options?: CustomRecommendationsGetOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { scope, customRecommendationName, options }, + getOperationSpec, + ); + } + + /** + * Creates or updates a custom recommendation over a given scope + * @param scope The scope of the custom recommendation. Valid scopes are: management group (format: + * 'providers/Microsoft.Management/managementGroups/{managementGroup}'), subscription (format: + * 'subscriptions/{subscriptionId}'), or security connector (format: + * 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName})' + * @param customRecommendationName Name of the Custom Recommendation. + * @param customRecommendationBody Custom Recommendation body + * @param options The options parameters. + */ + createOrUpdate( + scope: string, + customRecommendationName: string, + customRecommendationBody: CustomRecommendation, + options?: CustomRecommendationsCreateOrUpdateOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { scope, customRecommendationName, customRecommendationBody, options }, + createOrUpdateOperationSpec, + ); + } + + /** + * Delete a custom recommendation over a given scope + * @param scope The scope of the custom recommendation. Valid scopes are: management group (format: + * 'providers/Microsoft.Management/managementGroups/{managementGroup}'), subscription (format: + * 'subscriptions/{subscriptionId}'), or security connector (format: + * 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName})' + * @param customRecommendationName Name of the Custom Recommendation. + * @param options The options parameters. + */ + delete( + scope: string, + customRecommendationName: string, + options?: CustomRecommendationsDeleteOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { scope, customRecommendationName, options }, + deleteOperationSpec, + ); + } + + /** + * ListNext + * @param scope The scope of the custom recommendation. Valid scopes are: management group (format: + * 'providers/Microsoft.Management/managementGroups/{managementGroup}'), subscription (format: + * 'subscriptions/{subscriptionId}'), or security connector (format: + * 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName})' + * @param nextLink The nextLink from the previous successful call to the List method. + * @param options The options parameters. + */ + private _listNext( + scope: string, + nextLink: string, + options?: CustomRecommendationsListNextOptionalParams, + ): Promise { + return this.client.sendOperationRequest({ scope, nextLink, options }, listNextOperationSpec); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listOperationSpec: coreClient.OperationSpec = { + path: "/{scope}/providers/Microsoft.Security/customRecommendations", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.CustomRecommendationsList, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion27], + urlParameters: [Parameters.$host, Parameters.scope1], + headerParameters: [Parameters.accept], + serializer, +}; +const getOperationSpec: coreClient.OperationSpec = { + path: "/{scope}/providers/Microsoft.Security/customRecommendations/{customRecommendationName}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.CustomRecommendation, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion27], + urlParameters: [Parameters.$host, Parameters.scope1, Parameters.customRecommendationName], + headerParameters: [Parameters.accept], + serializer, +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: "/{scope}/providers/Microsoft.Security/customRecommendations/{customRecommendationName}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.CustomRecommendation, + }, + 201: { + bodyMapper: Mappers.CustomRecommendation, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + requestBody: Parameters.customRecommendationBody, + queryParameters: [Parameters.apiVersion27], + urlParameters: [Parameters.$host, Parameters.scope1, Parameters.customRecommendationName], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer, +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: "/{scope}/providers/Microsoft.Security/customRecommendations/{customRecommendationName}", + httpMethod: "DELETE", + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion27], + urlParameters: [Parameters.$host, Parameters.scope1, Parameters.customRecommendationName], + headerParameters: [Parameters.accept], + serializer, +}; +const listNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.CustomRecommendationsList, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + urlParameters: [Parameters.$host, Parameters.nextLink, Parameters.scope1], + 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 b4d72e4df0fb..071c19cd3134 100644 --- a/sdk/security/arm-security/src/operations/defenderForStorage.ts +++ b/sdk/security/arm-security/src/operations/defenderForStorage.ts @@ -12,12 +12,18 @@ import * as Mappers from "../models/mappers.js"; import * as Parameters from "../models/parameters.js"; import { SecurityCenter } from "../securityCenter.js"; import { - SettingName, + SettingNameAutoGenerated, DefenderForStorageGetOptionalParams, DefenderForStorageGetResponse, DefenderForStorageSetting, DefenderForStorageCreateOptionalParams, DefenderForStorageCreateResponse, + DefenderForStorageStartMalwareScanOptionalParams, + DefenderForStorageStartMalwareScanResponse, + DefenderForStorageCancelMalwareScanOptionalParams, + DefenderForStorageCancelMalwareScanResponse, + DefenderForStorageGetMalwareScanOptionalParams, + DefenderForStorageGetMalwareScanResponse, } from "../models/index.js"; /** Class containing DefenderForStorage operations. */ @@ -40,13 +46,10 @@ export class DefenderForStorageImpl implements DefenderForStorage { */ get( resourceId: string, - settingName: SettingName, + settingName: SettingNameAutoGenerated, options?: DefenderForStorageGetOptionalParams, ): Promise { - return this.client.sendOperationRequest( - { resourceId, settingName, options }, - getOperationSpec, - ); + return this.client.sendOperationRequest({ resourceId, settingName, options }, getOperationSpec); } /** @@ -58,7 +61,7 @@ export class DefenderForStorageImpl implements DefenderForStorage { */ create( resourceId: string, - settingName: SettingName, + settingName: SettingNameAutoGenerated, defenderForStorageSetting: DefenderForStorageSetting, options?: DefenderForStorageCreateOptionalParams, ): Promise { @@ -67,6 +70,61 @@ export class DefenderForStorageImpl implements DefenderForStorage { createOperationSpec, ); } + + /** + * Initiate a Defender for Storage malware scan for the specified storage account. + * @param resourceId The identifier of the resource. + * @param settingName Defender for Storage setting name. + * @param options The options parameters. + */ + startMalwareScan( + resourceId: string, + settingName: SettingNameAutoGenerated, + options?: DefenderForStorageStartMalwareScanOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceId, settingName, options }, + startMalwareScanOperationSpec, + ); + } + + /** + * Cancels a Defender for Storage malware scan for the specified storage account. + * @param resourceId The identifier of the resource. + * @param settingName Defender for Storage setting name. + * @param scanId The identifier of the scan. Can be either 'latest' or a GUID. + * @param options The options parameters. + */ + cancelMalwareScan( + resourceId: string, + settingName: SettingNameAutoGenerated, + scanId: string, + options?: DefenderForStorageCancelMalwareScanOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceId, settingName, scanId, options }, + cancelMalwareScanOperationSpec, + ); + } + + /** + * Gets the Defender for Storage malware scan for the specified storage resource. + * @param resourceId The identifier of the resource. + * @param settingName Defender for Storage setting name. + * @param scanId The identifier of the scan. Can be either 'latest' or a GUID. + * @param options The options parameters. + */ + getMalwareScan( + resourceId: string, + settingName: SettingNameAutoGenerated, + scanId: string, + options?: DefenderForStorageGetMalwareScanOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceId, settingName, scanId, options }, + getMalwareScanOperationSpec, + ); + } } // Operation Specifications const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); @@ -82,12 +140,8 @@ const getOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError, }, }, - queryParameters: [Parameters.apiVersion10], - urlParameters: [ - Parameters.$host, - Parameters.resourceId, - Parameters.settingName1, - ], + queryParameters: [Parameters.apiVersion28], + urlParameters: [Parameters.$host, Parameters.resourceId, Parameters.settingName3], headerParameters: [Parameters.accept], serializer, }; @@ -106,13 +160,67 @@ const createOperationSpec: coreClient.OperationSpec = { }, }, requestBody: Parameters.defenderForStorageSetting, - queryParameters: [Parameters.apiVersion10], + queryParameters: [Parameters.apiVersion28], + urlParameters: [Parameters.$host, Parameters.resourceId, Parameters.settingName3], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer, +}; +const startMalwareScanOperationSpec: coreClient.OperationSpec = { + path: "/{resourceId}/providers/Microsoft.Security/defenderForStorageSettings/{settingName}/startMalwareScan", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.MalwareScan, + }, + default: { + bodyMapper: Mappers.CloudError, + }, + }, + queryParameters: [Parameters.apiVersion28], + urlParameters: [Parameters.$host, Parameters.resourceId, Parameters.settingName3], + headerParameters: [Parameters.accept], + serializer, +}; +const cancelMalwareScanOperationSpec: coreClient.OperationSpec = { + path: "/{resourceId}/providers/Microsoft.Security/defenderForStorageSettings/{settingName}/malwareScans/{scanId}/cancelMalwareScan", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.MalwareScan, + }, + default: { + bodyMapper: Mappers.CloudError, + }, + }, + queryParameters: [Parameters.apiVersion28], urlParameters: [ Parameters.$host, Parameters.resourceId, - Parameters.settingName1, + Parameters.settingName3, + Parameters.scanId1, ], - headerParameters: [Parameters.accept, Parameters.contentType], - mediaType: "json", + headerParameters: [Parameters.accept], + serializer, +}; +const getMalwareScanOperationSpec: coreClient.OperationSpec = { + path: "/{resourceId}/providers/Microsoft.Security/defenderForStorageSettings/{settingName}/malwareScans/{scanId}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.MalwareScan, + }, + default: { + bodyMapper: Mappers.CloudError, + }, + }, + queryParameters: [Parameters.apiVersion28], + urlParameters: [ + Parameters.$host, + Parameters.resourceId, + Parameters.settingName3, + Parameters.scanId1, + ], + headerParameters: [Parameters.accept], serializer, }; diff --git a/sdk/security/arm-security/src/operations/devOpsConfigurations.ts b/sdk/security/arm-security/src/operations/devOpsConfigurations.ts index 16a75bc6e087..a6715fe6c71f 100644 --- a/sdk/security/arm-security/src/operations/devOpsConfigurations.ts +++ b/sdk/security/arm-security/src/operations/devOpsConfigurations.ts @@ -13,11 +13,7 @@ import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers.js"; import * as Parameters from "../models/parameters.js"; import { SecurityCenter } from "../securityCenter.js"; -import { - SimplePollerLike, - OperationState, - createHttpPoller, -} from "@azure/core-lro"; +import { SimplePollerLike, OperationState, createHttpPoller } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl.js"; import { DevOpsConfiguration, @@ -58,11 +54,7 @@ export class DevOpsConfigurationsImpl implements DevOpsConfigurations { securityConnectorName: string, options?: DevOpsConfigurationsListOptionalParams, ): PagedAsyncIterableIterator { - const iter = this.listPagingAll( - resourceGroupName, - securityConnectorName, - options, - ); + const iter = this.listPagingAll(resourceGroupName, securityConnectorName, options); return { next() { return iter.next(); @@ -74,12 +66,7 @@ export class DevOpsConfigurationsImpl implements DevOpsConfigurations { if (settings?.maxPageSize) { throw new Error("maxPageSize is not supported by this operation."); } - return this.listPagingPage( - resourceGroupName, - securityConnectorName, - options, - settings, - ); + return this.listPagingPage(resourceGroupName, securityConnectorName, options, settings); }, }; } @@ -93,11 +80,7 @@ export class DevOpsConfigurationsImpl implements DevOpsConfigurations { let result: DevOpsConfigurationsListResponse; let continuationToken = settings?.continuationToken; if (!continuationToken) { - result = await this._list( - resourceGroupName, - securityConnectorName, - options, - ); + result = await this._list(resourceGroupName, securityConnectorName, options); let page = result.value || []; continuationToken = result.nextLink; setContinuationToken(page, continuationToken); @@ -193,8 +176,7 @@ export class DevOpsConfigurationsImpl implements DevOpsConfigurations { args: coreClient.OperationArguments, spec: coreClient.OperationSpec, ) => { - let currentRawResponse: coreClient.FullOperationResponse | undefined = - undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, @@ -293,8 +275,7 @@ export class DevOpsConfigurationsImpl implements DevOpsConfigurations { args: coreClient.OperationArguments, spec: coreClient.OperationSpec, ) => { - let currentRawResponse: coreClient.FullOperationResponse | undefined = - undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, @@ -386,8 +367,7 @@ export class DevOpsConfigurationsImpl implements DevOpsConfigurations { args: coreClient.OperationArguments, spec: coreClient.OperationSpec, ) => { - let currentRawResponse: coreClient.FullOperationResponse | undefined = - undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, @@ -438,11 +418,7 @@ export class DevOpsConfigurationsImpl implements DevOpsConfigurations { securityConnectorName: string, options?: DevOpsConfigurationsDeleteOptionalParams, ): Promise { - const poller = await this.beginDelete( - resourceGroupName, - securityConnectorName, - options, - ); + const poller = await this.beginDelete(resourceGroupName, securityConnectorName, options); return poller.pollUntilDone(); } @@ -476,10 +452,10 @@ const listOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.DevOpsConfigurationListResponse, }, default: { - bodyMapper: Mappers.ErrorResponseAutoGenerated, + bodyMapper: Mappers.ErrorResponseAutoGenerated3, }, }, - queryParameters: [Parameters.apiVersion15], + queryParameters: [Parameters.apiVersion29], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -497,10 +473,10 @@ const getOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.DevOpsConfiguration, }, default: { - bodyMapper: Mappers.ErrorResponseAutoGenerated, + bodyMapper: Mappers.ErrorResponseAutoGenerated3, }, }, - queryParameters: [Parameters.apiVersion15], + queryParameters: [Parameters.apiVersion29], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -527,11 +503,11 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.DevOpsConfiguration, }, default: { - bodyMapper: Mappers.ErrorResponseAutoGenerated, + bodyMapper: Mappers.ErrorResponseAutoGenerated3, }, }, requestBody: Parameters.devOpsConfiguration, - queryParameters: [Parameters.apiVersion15], + queryParameters: [Parameters.apiVersion29], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -559,11 +535,11 @@ const updateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.DevOpsConfiguration, }, default: { - bodyMapper: Mappers.ErrorResponseAutoGenerated, + bodyMapper: Mappers.ErrorResponseAutoGenerated3, }, }, requestBody: Parameters.devOpsConfiguration, - queryParameters: [Parameters.apiVersion15], + queryParameters: [Parameters.apiVersion29], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -583,10 +559,10 @@ const deleteOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponseAutoGenerated, + bodyMapper: Mappers.ErrorResponseAutoGenerated3, }, }, - queryParameters: [Parameters.apiVersion15], + queryParameters: [Parameters.apiVersion29], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -604,7 +580,7 @@ const listNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.DevOpsConfigurationListResponse, }, default: { - bodyMapper: Mappers.ErrorResponseAutoGenerated, + bodyMapper: Mappers.ErrorResponseAutoGenerated3, }, }, urlParameters: [ diff --git a/sdk/security/arm-security/src/operations/devOpsOperationResults.ts b/sdk/security/arm-security/src/operations/devOpsOperationResults.ts index aae18df5e92c..2e96c8b87de7 100644 --- a/sdk/security/arm-security/src/operations/devOpsOperationResults.ts +++ b/sdk/security/arm-security/src/operations/devOpsOperationResults.ts @@ -58,10 +58,10 @@ const getOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.OperationStatusResult, }, default: { - bodyMapper: Mappers.ErrorResponseAutoGenerated, + bodyMapper: Mappers.ErrorResponseAutoGenerated3, }, }, - queryParameters: [Parameters.apiVersion15], + queryParameters: [Parameters.apiVersion29], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/security/arm-security/src/operations/deviceSecurityGroups.ts b/sdk/security/arm-security/src/operations/deviceSecurityGroups.ts index 14e3671c53a9..aa3aee9739d8 100644 --- a/sdk/security/arm-security/src/operations/deviceSecurityGroups.ts +++ b/sdk/security/arm-security/src/operations/deviceSecurityGroups.ts @@ -106,10 +106,7 @@ export class DeviceSecurityGroupsImpl implements DeviceSecurityGroups { resourceId: string, options?: DeviceSecurityGroupsListOptionalParams, ): Promise { - return this.client.sendOperationRequest( - { resourceId, options }, - listOperationSpec, - ); + return this.client.sendOperationRequest({ resourceId, options }, listOperationSpec); } /** @@ -216,11 +213,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, }, queryParameters: [Parameters.apiVersion19], - urlParameters: [ - Parameters.$host, - Parameters.resourceId, - Parameters.deviceSecurityGroupName, - ], + urlParameters: [Parameters.$host, Parameters.resourceId, Parameters.deviceSecurityGroupName], headerParameters: [Parameters.accept], serializer, }; @@ -240,11 +233,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, requestBody: Parameters.deviceSecurityGroup, queryParameters: [Parameters.apiVersion19], - urlParameters: [ - Parameters.$host, - Parameters.resourceId, - Parameters.deviceSecurityGroupName, - ], + urlParameters: [Parameters.$host, Parameters.resourceId, Parameters.deviceSecurityGroupName], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer, @@ -260,11 +249,7 @@ const deleteOperationSpec: coreClient.OperationSpec = { }, }, queryParameters: [Parameters.apiVersion19], - urlParameters: [ - Parameters.$host, - Parameters.resourceId, - Parameters.deviceSecurityGroupName, - ], + urlParameters: [Parameters.$host, Parameters.resourceId, Parameters.deviceSecurityGroupName], headerParameters: [Parameters.accept], serializer, }; diff --git a/sdk/security/arm-security/src/operations/discoveredSecuritySolutions.ts b/sdk/security/arm-security/src/operations/discoveredSecuritySolutions.ts index 2ae27ea3ecb1..c50ad4d3f0b7 100644 --- a/sdk/security/arm-security/src/operations/discoveredSecuritySolutions.ts +++ b/sdk/security/arm-security/src/operations/discoveredSecuritySolutions.ts @@ -29,9 +29,7 @@ import { /// /** Class containing DiscoveredSecuritySolutions operations. */ -export class DiscoveredSecuritySolutionsImpl - implements DiscoveredSecuritySolutions -{ +export class DiscoveredSecuritySolutionsImpl implements DiscoveredSecuritySolutions { private readonly client: SecurityCenter; /** @@ -138,11 +136,7 @@ export class DiscoveredSecuritySolutionsImpl yield page; } while (continuationToken) { - result = await this._listByHomeRegionNext( - ascLocation, - continuationToken, - options, - ); + result = await this._listByHomeRegionNext(ascLocation, continuationToken, options); continuationToken = result.nextLink; let page = result.value || []; setContinuationToken(page, continuationToken); @@ -154,10 +148,7 @@ export class DiscoveredSecuritySolutionsImpl ascLocation: string, options?: DiscoveredSecuritySolutionsListByHomeRegionOptionalParams, ): AsyncIterableIterator { - for await (const page of this.listByHomeRegionPagingPage( - ascLocation, - options, - )) { + for await (const page of this.listByHomeRegionPagingPage(ascLocation, options)) { yield* page; } } @@ -223,10 +214,7 @@ export class DiscoveredSecuritySolutionsImpl nextLink: string, options?: DiscoveredSecuritySolutionsListNextOptionalParams, ): Promise { - return this.client.sendOperationRequest( - { nextLink, options }, - listNextOperationSpec, - ); + return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec); } /** @@ -278,11 +266,7 @@ const listByHomeRegionOperationSpec: coreClient.OperationSpec = { }, }, queryParameters: [Parameters.apiVersion20], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.ascLocation, - ], + urlParameters: [Parameters.$host, Parameters.subscriptionId, Parameters.ascLocation], headerParameters: [Parameters.accept], serializer, }; @@ -319,11 +303,7 @@ const listNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError, }, }, - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.nextLink, - ], + urlParameters: [Parameters.$host, Parameters.subscriptionId, Parameters.nextLink], headerParameters: [Parameters.accept], serializer, }; diff --git a/sdk/security/arm-security/src/operations/externalSecuritySolutions.ts b/sdk/security/arm-security/src/operations/externalSecuritySolutions.ts index bcaad15cfc6b..f2439d1c04f9 100644 --- a/sdk/security/arm-security/src/operations/externalSecuritySolutions.ts +++ b/sdk/security/arm-security/src/operations/externalSecuritySolutions.ts @@ -29,9 +29,7 @@ import { /// /** Class containing ExternalSecuritySolutions operations. */ -export class ExternalSecuritySolutionsImpl - implements ExternalSecuritySolutions -{ +export class ExternalSecuritySolutionsImpl implements ExternalSecuritySolutions { private readonly client: SecurityCenter; /** @@ -138,11 +136,7 @@ export class ExternalSecuritySolutionsImpl yield page; } while (continuationToken) { - result = await this._listByHomeRegionNext( - ascLocation, - continuationToken, - options, - ); + result = await this._listByHomeRegionNext(ascLocation, continuationToken, options); continuationToken = result.nextLink; let page = result.value || []; setContinuationToken(page, continuationToken); @@ -154,10 +148,7 @@ export class ExternalSecuritySolutionsImpl ascLocation: string, options?: ExternalSecuritySolutionsListByHomeRegionOptionalParams, ): AsyncIterableIterator { - for await (const page of this.listByHomeRegionPagingPage( - ascLocation, - options, - )) { + for await (const page of this.listByHomeRegionPagingPage(ascLocation, options)) { yield* page; } } @@ -223,10 +214,7 @@ export class ExternalSecuritySolutionsImpl nextLink: string, options?: ExternalSecuritySolutionsListNextOptionalParams, ): Promise { - return this.client.sendOperationRequest( - { nextLink, options }, - listNextOperationSpec, - ); + return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec); } /** @@ -278,11 +266,7 @@ const listByHomeRegionOperationSpec: coreClient.OperationSpec = { }, }, queryParameters: [Parameters.apiVersion20], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.ascLocation, - ], + urlParameters: [Parameters.$host, Parameters.subscriptionId, Parameters.ascLocation], headerParameters: [Parameters.accept], serializer, }; @@ -319,11 +303,7 @@ const listNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError, }, }, - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.nextLink, - ], + urlParameters: [Parameters.$host, Parameters.subscriptionId, Parameters.nextLink], 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 c172ad99ea55..d8db208cd622 100644 --- a/sdk/security/arm-security/src/operations/gitHubOwners.ts +++ b/sdk/security/arm-security/src/operations/gitHubOwners.ts @@ -49,11 +49,7 @@ export class GitHubOwnersImpl implements GitHubOwners { securityConnectorName: string, options?: GitHubOwnersListOptionalParams, ): PagedAsyncIterableIterator { - const iter = this.listPagingAll( - resourceGroupName, - securityConnectorName, - options, - ); + const iter = this.listPagingAll(resourceGroupName, securityConnectorName, options); return { next() { return iter.next(); @@ -65,12 +61,7 @@ export class GitHubOwnersImpl implements GitHubOwners { if (settings?.maxPageSize) { throw new Error("maxPageSize is not supported by this operation."); } - return this.listPagingPage( - resourceGroupName, - securityConnectorName, - options, - settings, - ); + return this.listPagingPage(resourceGroupName, securityConnectorName, options, settings); }, }; } @@ -84,11 +75,7 @@ export class GitHubOwnersImpl implements GitHubOwners { let result: GitHubOwnersListResponse; let continuationToken = settings?.continuationToken; if (!continuationToken) { - result = await this._list( - resourceGroupName, - securityConnectorName, - options, - ); + result = await this._list(resourceGroupName, securityConnectorName, options); let page = result.value || []; continuationToken = result.nextLink; setContinuationToken(page, continuationToken); @@ -205,10 +192,10 @@ const listAvailableOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.GitHubOwnerListResponse, }, default: { - bodyMapper: Mappers.ErrorResponseAutoGenerated, + bodyMapper: Mappers.ErrorResponseAutoGenerated3, }, }, - queryParameters: [Parameters.apiVersion15], + queryParameters: [Parameters.apiVersion29], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -226,10 +213,10 @@ const listOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.GitHubOwnerListResponse, }, default: { - bodyMapper: Mappers.ErrorResponseAutoGenerated, + bodyMapper: Mappers.ErrorResponseAutoGenerated3, }, }, - queryParameters: [Parameters.apiVersion15], + queryParameters: [Parameters.apiVersion29], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -247,10 +234,10 @@ const getOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.GitHubOwner, }, default: { - bodyMapper: Mappers.ErrorResponseAutoGenerated, + bodyMapper: Mappers.ErrorResponseAutoGenerated3, }, }, - queryParameters: [Parameters.apiVersion15], + queryParameters: [Parameters.apiVersion29], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -269,7 +256,7 @@ const listNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.GitHubOwnerListResponse, }, default: { - bodyMapper: Mappers.ErrorResponseAutoGenerated, + bodyMapper: Mappers.ErrorResponseAutoGenerated3, }, }, urlParameters: [ diff --git a/sdk/security/arm-security/src/operations/gitHubRepos.ts b/sdk/security/arm-security/src/operations/gitHubRepos.ts index 66628a2b4bb0..7efb9c7f58c4 100644 --- a/sdk/security/arm-security/src/operations/gitHubRepos.ts +++ b/sdk/security/arm-security/src/operations/gitHubRepos.ts @@ -49,12 +49,7 @@ export class GitHubReposImpl implements GitHubRepos { ownerName: string, options?: GitHubReposListOptionalParams, ): PagedAsyncIterableIterator { - const iter = this.listPagingAll( - resourceGroupName, - securityConnectorName, - ownerName, - options, - ); + const iter = this.listPagingAll(resourceGroupName, securityConnectorName, ownerName, options); return { next() { return iter.next(); @@ -87,12 +82,7 @@ export class GitHubReposImpl implements GitHubRepos { let result: GitHubReposListResponse; let continuationToken = settings?.continuationToken; if (!continuationToken) { - result = await this._list( - resourceGroupName, - securityConnectorName, - ownerName, - options, - ); + result = await this._list(resourceGroupName, securityConnectorName, ownerName, options); let page = result.value || []; continuationToken = result.nextLink; setContinuationToken(page, continuationToken); @@ -213,10 +203,10 @@ const listOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.GitHubRepositoryListResponse, }, default: { - bodyMapper: Mappers.ErrorResponseAutoGenerated, + bodyMapper: Mappers.ErrorResponseAutoGenerated3, }, }, - queryParameters: [Parameters.apiVersion15], + queryParameters: [Parameters.apiVersion29], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -235,10 +225,10 @@ const getOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.GitHubRepository, }, default: { - bodyMapper: Mappers.ErrorResponseAutoGenerated, + bodyMapper: Mappers.ErrorResponseAutoGenerated3, }, }, - queryParameters: [Parameters.apiVersion15], + queryParameters: [Parameters.apiVersion29], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -258,7 +248,7 @@ const listNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.GitHubRepositoryListResponse, }, default: { - bodyMapper: Mappers.ErrorResponseAutoGenerated, + bodyMapper: Mappers.ErrorResponseAutoGenerated3, }, }, urlParameters: [ diff --git a/sdk/security/arm-security/src/operations/gitLabGroups.ts b/sdk/security/arm-security/src/operations/gitLabGroups.ts index 9f53d5cc917e..2302506c78b3 100644 --- a/sdk/security/arm-security/src/operations/gitLabGroups.ts +++ b/sdk/security/arm-security/src/operations/gitLabGroups.ts @@ -49,11 +49,7 @@ export class GitLabGroupsImpl implements GitLabGroups { securityConnectorName: string, options?: GitLabGroupsListOptionalParams, ): PagedAsyncIterableIterator { - const iter = this.listPagingAll( - resourceGroupName, - securityConnectorName, - options, - ); + const iter = this.listPagingAll(resourceGroupName, securityConnectorName, options); return { next() { return iter.next(); @@ -65,12 +61,7 @@ export class GitLabGroupsImpl implements GitLabGroups { if (settings?.maxPageSize) { throw new Error("maxPageSize is not supported by this operation."); } - return this.listPagingPage( - resourceGroupName, - securityConnectorName, - options, - settings, - ); + return this.listPagingPage(resourceGroupName, securityConnectorName, options, settings); }, }; } @@ -84,11 +75,7 @@ export class GitLabGroupsImpl implements GitLabGroups { let result: GitLabGroupsListResponse; let continuationToken = settings?.continuationToken; if (!continuationToken) { - result = await this._list( - resourceGroupName, - securityConnectorName, - options, - ); + result = await this._list(resourceGroupName, securityConnectorName, options); let page = result.value || []; continuationToken = result.nextLink; setContinuationToken(page, continuationToken); @@ -205,10 +192,10 @@ const listAvailableOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.GitLabGroupListResponse, }, default: { - bodyMapper: Mappers.ErrorResponseAutoGenerated, + bodyMapper: Mappers.ErrorResponseAutoGenerated3, }, }, - queryParameters: [Parameters.apiVersion15], + queryParameters: [Parameters.apiVersion29], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -226,10 +213,10 @@ const listOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.GitLabGroupListResponse, }, default: { - bodyMapper: Mappers.ErrorResponseAutoGenerated, + bodyMapper: Mappers.ErrorResponseAutoGenerated3, }, }, - queryParameters: [Parameters.apiVersion15], + queryParameters: [Parameters.apiVersion29], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -247,10 +234,10 @@ const getOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.GitLabGroup, }, default: { - bodyMapper: Mappers.ErrorResponseAutoGenerated, + bodyMapper: Mappers.ErrorResponseAutoGenerated3, }, }, - queryParameters: [Parameters.apiVersion15], + queryParameters: [Parameters.apiVersion29], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -269,7 +256,7 @@ const listNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.GitLabGroupListResponse, }, default: { - bodyMapper: Mappers.ErrorResponseAutoGenerated, + bodyMapper: Mappers.ErrorResponseAutoGenerated3, }, }, urlParameters: [ diff --git a/sdk/security/arm-security/src/operations/gitLabProjects.ts b/sdk/security/arm-security/src/operations/gitLabProjects.ts index 9fef38ffb93d..154068daf84a 100644 --- a/sdk/security/arm-security/src/operations/gitLabProjects.ts +++ b/sdk/security/arm-security/src/operations/gitLabProjects.ts @@ -50,12 +50,7 @@ export class GitLabProjectsImpl implements GitLabProjects { groupFQName: string, options?: GitLabProjectsListOptionalParams, ): PagedAsyncIterableIterator { - const iter = this.listPagingAll( - resourceGroupName, - securityConnectorName, - groupFQName, - options, - ); + const iter = this.listPagingAll(resourceGroupName, securityConnectorName, groupFQName, options); return { next() { return iter.next(); @@ -88,12 +83,7 @@ export class GitLabProjectsImpl implements GitLabProjects { let result: GitLabProjectsListResponse; let continuationToken = settings?.continuationToken; if (!continuationToken) { - result = await this._list( - resourceGroupName, - securityConnectorName, - groupFQName, - options, - ); + result = await this._list(resourceGroupName, securityConnectorName, groupFQName, options); let page = result.value || []; continuationToken = result.nextLink; setContinuationToken(page, continuationToken); @@ -215,10 +205,10 @@ const listOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.GitLabProjectListResponse, }, default: { - bodyMapper: Mappers.ErrorResponseAutoGenerated, + bodyMapper: Mappers.ErrorResponseAutoGenerated3, }, }, - queryParameters: [Parameters.apiVersion15], + queryParameters: [Parameters.apiVersion29], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -237,10 +227,10 @@ const getOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.GitLabProject, }, default: { - bodyMapper: Mappers.ErrorResponseAutoGenerated, + bodyMapper: Mappers.ErrorResponseAutoGenerated3, }, }, - queryParameters: [Parameters.apiVersion15], + queryParameters: [Parameters.apiVersion29], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -260,7 +250,7 @@ const listNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.GitLabProjectListResponse, }, default: { - bodyMapper: Mappers.ErrorResponseAutoGenerated, + bodyMapper: Mappers.ErrorResponseAutoGenerated3, }, }, urlParameters: [ diff --git a/sdk/security/arm-security/src/operations/gitLabSubgroups.ts b/sdk/security/arm-security/src/operations/gitLabSubgroups.ts index a35314056320..975120ac2e13 100644 --- a/sdk/security/arm-security/src/operations/gitLabSubgroups.ts +++ b/sdk/security/arm-security/src/operations/gitLabSubgroups.ts @@ -11,10 +11,7 @@ import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers.js"; import * as Parameters from "../models/parameters.js"; import { SecurityCenter } from "../securityCenter.js"; -import { - GitLabSubgroupsListOptionalParams, - GitLabSubgroupsListResponse, -} from "../models/index.js"; +import { GitLabSubgroupsListOptionalParams, GitLabSubgroupsListResponse } from "../models/index.js"; /** Class containing GitLabSubgroups operations. */ export class GitLabSubgroupsImpl implements GitLabSubgroups { @@ -58,10 +55,10 @@ const listOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.GitLabGroupListResponse, }, default: { - bodyMapper: Mappers.ErrorResponseAutoGenerated, + bodyMapper: Mappers.ErrorResponseAutoGenerated3, }, }, - queryParameters: [Parameters.apiVersion15], + queryParameters: [Parameters.apiVersion29], 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 7b5e66d97f23..b9a28ac7737b 100644 --- a/sdk/security/arm-security/src/operations/governanceAssignments.ts +++ b/sdk/security/arm-security/src/operations/governanceAssignments.ts @@ -85,12 +85,7 @@ export class GovernanceAssignmentsImpl implements GovernanceAssignments { yield page; } while (continuationToken) { - result = await this._listNext( - scope, - assessmentName, - continuationToken, - options, - ); + result = await this._listNext(scope, assessmentName, continuationToken, options); continuationToken = result.nextLink; let page = result.value || []; setContinuationToken(page, continuationToken); @@ -103,11 +98,7 @@ export class GovernanceAssignmentsImpl implements GovernanceAssignments { assessmentName: string, options?: GovernanceAssignmentsListOptionalParams, ): AsyncIterableIterator { - for await (const page of this.listPagingPage( - scope, - assessmentName, - options, - )) { + for await (const page of this.listPagingPage(scope, assessmentName, options)) { yield* page; } } @@ -125,10 +116,7 @@ export class GovernanceAssignmentsImpl implements GovernanceAssignments { assessmentName: string, options?: GovernanceAssignmentsListOptionalParams, ): Promise { - return this.client.sendOperationRequest( - { scope, assessmentName, options }, - listOperationSpec, - ); + return this.client.sendOperationRequest({ scope, assessmentName, options }, listOperationSpec); } /** @@ -234,12 +222,8 @@ const listOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError, }, }, - queryParameters: [Parameters.apiVersion8], - urlParameters: [ - Parameters.$host, - Parameters.scope1, - Parameters.assessmentName1, - ], + queryParameters: [Parameters.apiVersion7], + urlParameters: [Parameters.$host, Parameters.scope1, Parameters.assessmentName1], headerParameters: [Parameters.accept], serializer, }; @@ -254,7 +238,7 @@ const getOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError, }, }, - queryParameters: [Parameters.apiVersion8], + queryParameters: [Parameters.apiVersion7], urlParameters: [ Parameters.$host, Parameters.scope1, @@ -279,7 +263,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, }, requestBody: Parameters.governanceAssignment, - queryParameters: [Parameters.apiVersion8], + queryParameters: [Parameters.apiVersion7], urlParameters: [ Parameters.$host, Parameters.scope1, @@ -294,7 +278,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 c2cc60978ed7..7c6b09dc9f8f 100644 --- a/sdk/security/arm-security/src/operations/governanceRules.ts +++ b/sdk/security/arm-security/src/operations/governanceRules.ts @@ -13,11 +13,7 @@ import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers.js"; import * as Parameters from "../models/parameters.js"; import { SecurityCenter } from "../securityCenter.js"; -import { - SimplePollerLike, - OperationState, - createHttpPoller, -} from "@azure/core-lro"; +import { SimplePollerLike, OperationState, createHttpPoller } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl.js"; import { GovernanceRule, @@ -122,10 +118,7 @@ export class GovernanceRulesImpl implements GovernanceRules { scope: string, options?: GovernanceRulesListOptionalParams, ): Promise { - return this.client.sendOperationRequest( - { scope, options }, - listOperationSpec, - ); + return this.client.sendOperationRequest({ scope, options }, listOperationSpec); } /** @@ -142,10 +135,7 @@ export class GovernanceRulesImpl implements GovernanceRules { ruleId: string, options?: GovernanceRulesGetOptionalParams, ): Promise { - return this.client.sendOperationRequest( - { scope, ruleId, options }, - getOperationSpec, - ); + return this.client.sendOperationRequest({ scope, ruleId, options }, getOperationSpec); } /** @@ -194,8 +184,7 @@ export class GovernanceRulesImpl implements GovernanceRules { args: coreClient.OperationArguments, spec: coreClient.OperationSpec, ) => { - let currentRawResponse: coreClient.FullOperationResponse | undefined = - undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, @@ -268,10 +257,7 @@ export class GovernanceRulesImpl implements GovernanceRules { ruleId: string, options?: GovernanceRulesExecuteOptionalParams, ): Promise< - SimplePollerLike< - OperationState, - GovernanceRulesExecuteResponse - > + SimplePollerLike, GovernanceRulesExecuteResponse> > { const directSendOperation = async ( args: coreClient.OperationArguments, @@ -283,8 +269,7 @@ export class GovernanceRulesImpl implements GovernanceRules { args: coreClient.OperationArguments, spec: coreClient.OperationSpec, ) => { - let currentRawResponse: coreClient.FullOperationResponse | undefined = - undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, @@ -382,10 +367,7 @@ export class GovernanceRulesImpl implements GovernanceRules { nextLink: string, options?: GovernanceRulesListNextOptionalParams, ): Promise { - return this.client.sendOperationRequest( - { scope, nextLink, options }, - listNextOperationSpec, - ); + return this.client.sendOperationRequest({ scope, nextLink, options }, listNextOperationSpec); } } // Operation Specifications @@ -402,7 +384,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 +400,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 +420,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 +430,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 +455,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,13 +475,8 @@ const operationResultsOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError, }, }, - queryParameters: [Parameters.apiVersion8], - urlParameters: [ - Parameters.$host, - Parameters.scope1, - Parameters.ruleId, - Parameters.operationId, - ], + queryParameters: [Parameters.apiVersion7], + urlParameters: [Parameters.$host, Parameters.scope1, Parameters.ruleId, Parameters.operationId], headerParameters: [Parameters.accept], serializer, }; diff --git a/sdk/security/arm-security/src/operations/healthReports.ts b/sdk/security/arm-security/src/operations/healthReports.ts index b7e9fd5c3d47..b40455a93a4e 100644 --- a/sdk/security/arm-security/src/operations/healthReports.ts +++ b/sdk/security/arm-security/src/operations/healthReports.ts @@ -107,10 +107,7 @@ export class HealthReportsImpl implements HealthReports { scope: string, options?: HealthReportsListOptionalParams, ): Promise { - return this.client.sendOperationRequest( - { scope, options }, - listOperationSpec, - ); + return this.client.sendOperationRequest({ scope, options }, listOperationSpec); } /** @@ -141,10 +138,7 @@ export class HealthReportsImpl implements HealthReports { nextLink: string, options?: HealthReportsListNextOptionalParams, ): Promise { - return this.client.sendOperationRequest( - { scope, nextLink, options }, - listNextOperationSpec, - ); + return this.client.sendOperationRequest({ scope, nextLink, options }, listNextOperationSpec); } } // Operation Specifications @@ -161,7 +155,7 @@ const listOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse, }, }, - queryParameters: [Parameters.apiVersion14], + queryParameters: [Parameters.apiVersion12], urlParameters: [Parameters.$host, Parameters.scope2], headerParameters: [Parameters.accept], serializer, @@ -177,12 +171,8 @@ const getOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse, }, }, - queryParameters: [Parameters.apiVersion14], - urlParameters: [ - Parameters.$host, - Parameters.resourceId, - Parameters.healthReportName, - ], + queryParameters: [Parameters.apiVersion12], + urlParameters: [Parameters.$host, Parameters.resourceId, Parameters.healthReportName], headerParameters: [Parameters.accept], serializer, }; diff --git a/sdk/security/arm-security/src/operations/index.ts b/sdk/security/arm-security/src/operations/index.ts index 129b6240965a..f8d0036d9719 100644 --- a/sdk/security/arm-security/src/operations/index.ts +++ b/sdk/security/arm-security/src/operations/index.ts @@ -7,20 +7,17 @@ */ export * from "./locations.js"; -export * from "./operations.js"; export * from "./tasks.js"; export * from "./autoProvisioningSettings.js"; export * from "./compliances.js"; export * from "./informationProtectionPolicies.js"; export * from "./workspaceSettings.js"; export * from "./alertsSuppressionRules.js"; -export * from "./automations.js"; export * from "./regulatoryComplianceStandards.js"; export * from "./regulatoryComplianceControls.js"; export * from "./regulatoryComplianceAssessments.js"; export * from "./subAssessments.js"; export * from "./connectors.js"; -export * from "./securityContacts.js"; export * from "./softwareInventories.js"; export * from "./customAssessmentAutomations.js"; export * from "./customEntityStoreAssignments.js"; @@ -31,24 +28,16 @@ export * from "./applications.js"; export * from "./applicationOperations.js"; export * from "./securityConnectorApplications.js"; export * from "./securityConnectorApplication.js"; -export * from "./defenderForStorage.js"; export * from "./securityOperators.js"; export * from "./sqlVulnerabilityAssessmentBaselineRules.js"; export * from "./sqlVulnerabilityAssessmentScans.js"; export * from "./sqlVulnerabilityAssessmentScanResults.js"; export * from "./sensitivitySettings.js"; export * from "./healthReports.js"; -export * from "./azureDevOpsOrgs.js"; -export * from "./azureDevOpsProjects.js"; -export * from "./azureDevOpsRepos.js"; -export * from "./devOpsConfigurations.js"; -export * from "./gitHubOwners.js"; -export * from "./gitHubRepos.js"; -export * from "./gitLabGroups.js"; -export * from "./gitLabSubgroups.js"; -export * from "./gitLabProjects.js"; -export * from "./devOpsOperationResults.js"; +export * from "./automations.js"; +export * from "./securityContacts.js"; export * from "./securityConnectors.js"; +export * from "./operations.js"; export * from "./complianceResults.js"; export * from "./advancedThreatProtection.js"; export * from "./deviceSecurityGroups.js"; @@ -56,9 +45,7 @@ export * from "./iotSecuritySolutionAnalytics.js"; export * from "./iotSecuritySolutionsAnalyticsAggregatedAlert.js"; export * from "./iotSecuritySolutionsAnalyticsRecommendation.js"; export * from "./iotSecuritySolution.js"; -export * from "./adaptiveNetworkHardenings.js"; export * from "./allowedConnections.js"; -export * from "./adaptiveApplicationControls.js"; export * from "./discoveredSecuritySolutions.js"; export * from "./externalSecuritySolutions.js"; export * from "./jitNetworkAccessPolicies.js"; @@ -76,3 +63,17 @@ export * from "./settings.js"; export * from "./serverVulnerabilityAssessmentsSettings.js"; export * from "./aPICollections.js"; export * from "./pricings.js"; +export * from "./securityStandards.js"; +export * from "./standardAssignments.js"; +export * from "./customRecommendations.js"; +export * from "./defenderForStorage.js"; +export * from "./azureDevOpsOrgs.js"; +export * from "./azureDevOpsProjects.js"; +export * from "./azureDevOpsRepos.js"; +export * from "./devOpsConfigurations.js"; +export * from "./gitHubOwners.js"; +export * from "./gitHubRepos.js"; +export * from "./gitLabGroups.js"; +export * from "./gitLabSubgroups.js"; +export * from "./gitLabProjects.js"; +export * from "./devOpsOperationResults.js"; diff --git a/sdk/security/arm-security/src/operations/informationProtectionPolicies.ts b/sdk/security/arm-security/src/operations/informationProtectionPolicies.ts index aa2b56a88ac6..3d96d1a4b357 100644 --- a/sdk/security/arm-security/src/operations/informationProtectionPolicies.ts +++ b/sdk/security/arm-security/src/operations/informationProtectionPolicies.ts @@ -28,9 +28,7 @@ import { /// /** Class containing InformationProtectionPolicies operations. */ -export class InformationProtectionPoliciesImpl - implements InformationProtectionPolicies -{ +export class InformationProtectionPoliciesImpl implements InformationProtectionPolicies { private readonly client: SecurityCenter; /** @@ -157,10 +155,7 @@ export class InformationProtectionPoliciesImpl scope: string, options?: InformationProtectionPoliciesListOptionalParams, ): Promise { - return this.client.sendOperationRequest( - { scope, options }, - listOperationSpec, - ); + return this.client.sendOperationRequest({ scope, options }, listOperationSpec); } /** @@ -176,10 +171,7 @@ export class InformationProtectionPoliciesImpl nextLink: string, options?: InformationProtectionPoliciesListNextOptionalParams, ): Promise { - return this.client.sendOperationRequest( - { scope, nextLink, options }, - listNextOperationSpec, - ); + return this.client.sendOperationRequest({ scope, nextLink, options }, listNextOperationSpec); } } // Operation Specifications @@ -197,11 +189,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, }, queryParameters: [Parameters.apiVersion1], - urlParameters: [ - Parameters.$host, - Parameters.scope, - Parameters.informationProtectionPolicyName, - ], + urlParameters: [Parameters.$host, Parameters.scope, Parameters.informationProtectionPolicyName], headerParameters: [Parameters.accept], serializer, }; @@ -221,11 +209,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, requestBody: Parameters.informationProtectionPolicy, queryParameters: [Parameters.apiVersion1], - urlParameters: [ - Parameters.$host, - Parameters.scope, - Parameters.informationProtectionPolicyName, - ], + urlParameters: [Parameters.$host, Parameters.scope, Parameters.informationProtectionPolicyName], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer, diff --git a/sdk/security/arm-security/src/operations/iotSecuritySolution.ts b/sdk/security/arm-security/src/operations/iotSecuritySolution.ts index 030b2ee288e2..5c96a57f7cc6 100644 --- a/sdk/security/arm-security/src/operations/iotSecuritySolution.ts +++ b/sdk/security/arm-security/src/operations/iotSecuritySolution.ts @@ -122,11 +122,7 @@ export class IotSecuritySolutionImpl implements IotSecuritySolution { if (settings?.maxPageSize) { throw new Error("maxPageSize is not supported by this operation."); } - return this.listByResourceGroupPagingPage( - resourceGroupName, - options, - settings, - ); + return this.listByResourceGroupPagingPage(resourceGroupName, options, settings); }, }; } @@ -146,11 +142,7 @@ export class IotSecuritySolutionImpl implements IotSecuritySolution { yield page; } while (continuationToken) { - result = await this._listByResourceGroupNext( - resourceGroupName, - continuationToken, - options, - ); + result = await this._listByResourceGroupNext(resourceGroupName, continuationToken, options); continuationToken = result.nextLink; let page = result.value || []; setContinuationToken(page, continuationToken); @@ -162,10 +154,7 @@ export class IotSecuritySolutionImpl implements IotSecuritySolution { resourceGroupName: string, options?: IotSecuritySolutionListByResourceGroupOptionalParams, ): AsyncIterableIterator { - for await (const page of this.listByResourceGroupPagingPage( - resourceGroupName, - options, - )) { + for await (const page of this.listByResourceGroupPagingPage(resourceGroupName, options)) { yield* page; } } @@ -177,10 +166,7 @@ export class IotSecuritySolutionImpl implements IotSecuritySolution { private _listBySubscription( options?: IotSecuritySolutionListBySubscriptionOptionalParams, ): Promise { - return this.client.sendOperationRequest( - { options }, - listBySubscriptionOperationSpec, - ); + return this.client.sendOperationRequest({ options }, listBySubscriptionOperationSpec); } /** @@ -345,11 +331,7 @@ const listByResourceGroupOperationSpec: coreClient.OperationSpec = { }, }, queryParameters: [Parameters.filter, Parameters.apiVersion19], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - ], + urlParameters: [Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName], headerParameters: [Parameters.accept], serializer, }; @@ -454,11 +436,7 @@ const listBySubscriptionNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError, }, }, - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.nextLink, - ], + urlParameters: [Parameters.$host, Parameters.subscriptionId, Parameters.nextLink], headerParameters: [Parameters.accept], serializer, }; diff --git a/sdk/security/arm-security/src/operations/iotSecuritySolutionAnalytics.ts b/sdk/security/arm-security/src/operations/iotSecuritySolutionAnalytics.ts index 1d56d9a8c828..a4f9d0ad9d12 100644 --- a/sdk/security/arm-security/src/operations/iotSecuritySolutionAnalytics.ts +++ b/sdk/security/arm-security/src/operations/iotSecuritySolutionAnalytics.ts @@ -19,9 +19,7 @@ import { } from "../models/index.js"; /** Class containing IotSecuritySolutionAnalytics operations. */ -export class IotSecuritySolutionAnalyticsImpl - implements IotSecuritySolutionAnalytics -{ +export class IotSecuritySolutionAnalyticsImpl implements IotSecuritySolutionAnalytics { private readonly client: SecurityCenter; /** diff --git a/sdk/security/arm-security/src/operations/iotSecuritySolutionsAnalyticsAggregatedAlert.ts b/sdk/security/arm-security/src/operations/iotSecuritySolutionsAnalyticsAggregatedAlert.ts index cc96ec4a9841..843b5697729b 100644 --- a/sdk/security/arm-security/src/operations/iotSecuritySolutionsAnalyticsAggregatedAlert.ts +++ b/sdk/security/arm-security/src/operations/iotSecuritySolutionsAnalyticsAggregatedAlert.ts @@ -63,12 +63,7 @@ export class IotSecuritySolutionsAnalyticsAggregatedAlertImpl if (settings?.maxPageSize) { throw new Error("maxPageSize is not supported by this operation."); } - return this.listPagingPage( - resourceGroupName, - solutionName, - options, - settings, - ); + return this.listPagingPage(resourceGroupName, solutionName, options, settings); }, }; } @@ -89,12 +84,7 @@ export class IotSecuritySolutionsAnalyticsAggregatedAlertImpl yield page; } while (continuationToken) { - result = await this._listNext( - resourceGroupName, - solutionName, - continuationToken, - options, - ); + result = await this._listNext(resourceGroupName, solutionName, continuationToken, options); continuationToken = result.nextLink; let page = result.value || []; setContinuationToken(page, continuationToken); @@ -107,11 +97,7 @@ export class IotSecuritySolutionsAnalyticsAggregatedAlertImpl solutionName: string, options?: IotSecuritySolutionsAnalyticsAggregatedAlertListOptionalParams, ): AsyncIterableIterator { - for await (const page of this.listPagingPage( - resourceGroupName, - solutionName, - options, - )) { + for await (const page of this.listPagingPage(resourceGroupName, solutionName, options)) { yield* page; } } diff --git a/sdk/security/arm-security/src/operations/iotSecuritySolutionsAnalyticsRecommendation.ts b/sdk/security/arm-security/src/operations/iotSecuritySolutionsAnalyticsRecommendation.ts index a4df49ec27f6..ff855cbc68f1 100644 --- a/sdk/security/arm-security/src/operations/iotSecuritySolutionsAnalyticsRecommendation.ts +++ b/sdk/security/arm-security/src/operations/iotSecuritySolutionsAnalyticsRecommendation.ts @@ -63,12 +63,7 @@ export class IotSecuritySolutionsAnalyticsRecommendationImpl if (settings?.maxPageSize) { throw new Error("maxPageSize is not supported by this operation."); } - return this.listPagingPage( - resourceGroupName, - solutionName, - options, - settings, - ); + return this.listPagingPage(resourceGroupName, solutionName, options, settings); }, }; } @@ -89,12 +84,7 @@ export class IotSecuritySolutionsAnalyticsRecommendationImpl yield page; } while (continuationToken) { - result = await this._listNext( - resourceGroupName, - solutionName, - continuationToken, - options, - ); + result = await this._listNext(resourceGroupName, solutionName, continuationToken, options); continuationToken = result.nextLink; let page = result.value || []; setContinuationToken(page, continuationToken); @@ -107,11 +97,7 @@ export class IotSecuritySolutionsAnalyticsRecommendationImpl solutionName: string, options?: IotSecuritySolutionsAnalyticsRecommendationListOptionalParams, ): AsyncIterableIterator { - for await (const page of this.listPagingPage( - resourceGroupName, - solutionName, - options, - )) { + for await (const page of this.listPagingPage(resourceGroupName, solutionName, options)) { yield* page; } } diff --git a/sdk/security/arm-security/src/operations/jitNetworkAccessPolicies.ts b/sdk/security/arm-security/src/operations/jitNetworkAccessPolicies.ts index 014d7d8adf7f..81f4419abe29 100644 --- a/sdk/security/arm-security/src/operations/jitNetworkAccessPolicies.ts +++ b/sdk/security/arm-security/src/operations/jitNetworkAccessPolicies.ts @@ -150,11 +150,7 @@ export class JitNetworkAccessPoliciesImpl implements JitNetworkAccessPolicies { yield page; } while (continuationToken) { - result = await this._listByRegionNext( - ascLocation, - continuationToken, - options, - ); + result = await this._listByRegionNext(ascLocation, continuationToken, options); continuationToken = result.nextLink; let page = result.value || []; setContinuationToken(page, continuationToken); @@ -166,10 +162,7 @@ export class JitNetworkAccessPoliciesImpl implements JitNetworkAccessPolicies { ascLocation: string, options?: JitNetworkAccessPoliciesListByRegionOptionalParams, ): AsyncIterableIterator { - for await (const page of this.listByRegionPagingPage( - ascLocation, - options, - )) { + for await (const page of this.listByRegionPagingPage(ascLocation, options)) { yield* page; } } @@ -196,11 +189,7 @@ export class JitNetworkAccessPoliciesImpl implements JitNetworkAccessPolicies { if (settings?.maxPageSize) { throw new Error("maxPageSize is not supported by this operation."); } - return this.listByResourceGroupPagingPage( - resourceGroupName, - options, - settings, - ); + return this.listByResourceGroupPagingPage(resourceGroupName, options, settings); }, }; } @@ -220,11 +209,7 @@ export class JitNetworkAccessPoliciesImpl implements JitNetworkAccessPolicies { yield page; } while (continuationToken) { - result = await this._listByResourceGroupNext( - resourceGroupName, - continuationToken, - options, - ); + result = await this._listByResourceGroupNext(resourceGroupName, continuationToken, options); continuationToken = result.nextLink; let page = result.value || []; setContinuationToken(page, continuationToken); @@ -236,10 +221,7 @@ export class JitNetworkAccessPoliciesImpl implements JitNetworkAccessPolicies { resourceGroupName: string, options?: JitNetworkAccessPoliciesListByResourceGroupOptionalParams, ): AsyncIterableIterator { - for await (const page of this.listByResourceGroupPagingPage( - resourceGroupName, - options, - )) { + for await (const page of this.listByResourceGroupPagingPage(resourceGroupName, options)) { yield* page; } } @@ -292,11 +274,7 @@ export class JitNetworkAccessPoliciesImpl implements JitNetworkAccessPolicies { let result: JitNetworkAccessPoliciesListByResourceGroupAndRegionResponse; let continuationToken = settings?.continuationToken; if (!continuationToken) { - result = await this._listByResourceGroupAndRegion( - resourceGroupName, - ascLocation, - options, - ); + result = await this._listByResourceGroupAndRegion(resourceGroupName, ascLocation, options); let page = result.value || []; continuationToken = result.nextLink; setContinuationToken(page, continuationToken); @@ -350,10 +328,7 @@ export class JitNetworkAccessPoliciesImpl implements JitNetworkAccessPolicies { ascLocation: string, options?: JitNetworkAccessPoliciesListByRegionOptionalParams, ): Promise { - return this.client.sendOperationRequest( - { ascLocation, options }, - listByRegionOperationSpec, - ); + return this.client.sendOperationRequest({ ascLocation, options }, listByRegionOperationSpec); } /** @@ -500,10 +475,7 @@ export class JitNetworkAccessPoliciesImpl implements JitNetworkAccessPolicies { nextLink: string, options?: JitNetworkAccessPoliciesListNextOptionalParams, ): Promise { - return this.client.sendOperationRequest( - { nextLink, options }, - listNextOperationSpec, - ); + return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec); } /** @@ -595,11 +567,7 @@ const listByRegionOperationSpec: coreClient.OperationSpec = { }, }, queryParameters: [Parameters.apiVersion20], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.ascLocation, - ], + urlParameters: [Parameters.$host, Parameters.subscriptionId, Parameters.ascLocation], headerParameters: [Parameters.accept], serializer, }; @@ -615,11 +583,7 @@ const listByResourceGroupOperationSpec: coreClient.OperationSpec = { }, }, queryParameters: [Parameters.apiVersion20], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - ], + urlParameters: [Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName], headerParameters: [Parameters.accept], serializer, }; @@ -677,7 +641,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError, }, }, - requestBody: Parameters.body4, + requestBody: Parameters.body2, queryParameters: [Parameters.apiVersion20], urlParameters: [ Parameters.$host, @@ -722,7 +686,7 @@ const initiateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError, }, }, - requestBody: Parameters.body5, + requestBody: Parameters.body3, queryParameters: [Parameters.apiVersion20], urlParameters: [ Parameters.$host, @@ -737,6 +701,21 @@ const initiateOperationSpec: coreClient.OperationSpec = { serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.JitNetworkAccessPoliciesList, + }, + default: { + bodyMapper: Mappers.CloudError, + }, + }, + urlParameters: [Parameters.$host, Parameters.subscriptionId, Parameters.nextLink], + headerParameters: [Parameters.accept], + serializer, +}; +const listByRegionNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { @@ -750,12 +729,13 @@ const listNextOperationSpec: coreClient.OperationSpec = { urlParameters: [ Parameters.$host, Parameters.subscriptionId, + Parameters.ascLocation, Parameters.nextLink, ], headerParameters: [Parameters.accept], serializer, }; -const listByRegionNextOperationSpec: coreClient.OperationSpec = { +const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { @@ -769,13 +749,13 @@ const listByRegionNextOperationSpec: coreClient.OperationSpec = { urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.ascLocation, Parameters.nextLink, + Parameters.resourceGroupName, ], headerParameters: [Parameters.accept], serializer, }; -const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = { +const listByResourceGroupAndRegionNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { @@ -789,31 +769,10 @@ const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = { urlParameters: [ Parameters.$host, Parameters.subscriptionId, + Parameters.ascLocation, Parameters.nextLink, Parameters.resourceGroupName, ], headerParameters: [Parameters.accept], serializer, }; -const listByResourceGroupAndRegionNextOperationSpec: coreClient.OperationSpec = - { - path: "{nextLink}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.JitNetworkAccessPoliciesList, - }, - default: { - bodyMapper: Mappers.CloudError, - }, - }, - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.ascLocation, - Parameters.nextLink, - Parameters.resourceGroupName, - ], - headerParameters: [Parameters.accept], - serializer, - }; diff --git a/sdk/security/arm-security/src/operations/locations.ts b/sdk/security/arm-security/src/operations/locations.ts index adf25feefce4..a357c81a9731 100644 --- a/sdk/security/arm-security/src/operations/locations.ts +++ b/sdk/security/arm-security/src/operations/locations.ts @@ -42,9 +42,7 @@ export class LocationsImpl implements Locations { * read or write other resources in ASC according to their ID. * @param options The options parameters. */ - public list( - options?: LocationsListOptionalParams, - ): PagedAsyncIterableIterator { + public list(options?: LocationsListOptionalParams): PagedAsyncIterableIterator { const iter = this.listPagingAll(options); return { next() { @@ -98,9 +96,7 @@ export class LocationsImpl implements Locations { * read or write other resources in ASC according to their ID. * @param options The options parameters. */ - private _list( - options?: LocationsListOptionalParams, - ): Promise { + private _list(options?: LocationsListOptionalParams): Promise { return this.client.sendOperationRequest({ options }, listOperationSpec); } @@ -110,14 +106,8 @@ export class LocationsImpl implements Locations { * Get locations * @param options The options parameters. */ - get( - ascLocation: string, - options?: LocationsGetOptionalParams, - ): Promise { - return this.client.sendOperationRequest( - { ascLocation, options }, - getOperationSpec, - ); + get(ascLocation: string, options?: LocationsGetOptionalParams): Promise { + return this.client.sendOperationRequest({ ascLocation, options }, getOperationSpec); } /** @@ -129,10 +119,7 @@ export class LocationsImpl implements Locations { nextLink: string, options?: LocationsListNextOptionalParams, ): Promise { - return this.client.sendOperationRequest( - { nextLink, options }, - listNextOperationSpec, - ); + return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec); } } // Operation Specifications @@ -166,11 +153,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, }, queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.ascLocation, - ], + urlParameters: [Parameters.$host, Parameters.subscriptionId, Parameters.ascLocation], headerParameters: [Parameters.accept], serializer, }; @@ -185,11 +168,7 @@ const listNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError, }, }, - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.nextLink, - ], + urlParameters: [Parameters.$host, Parameters.subscriptionId, Parameters.nextLink], headerParameters: [Parameters.accept], serializer, }; diff --git a/sdk/security/arm-security/src/operations/mdeOnboardings.ts b/sdk/security/arm-security/src/operations/mdeOnboardings.ts index fb0550ceed27..31ebe7c73f7c 100644 --- a/sdk/security/arm-security/src/operations/mdeOnboardings.ts +++ b/sdk/security/arm-security/src/operations/mdeOnboardings.ts @@ -34,9 +34,7 @@ export class MdeOnboardingsImpl implements MdeOnboardings { * The configuration or data needed to onboard the machine to MDE * @param options The options parameters. */ - list( - options?: MdeOnboardingsListOptionalParams, - ): Promise { + list(options?: MdeOnboardingsListOptionalParams): Promise { return this.client.sendOperationRequest({ options }, listOperationSpec); } @@ -44,9 +42,7 @@ export class MdeOnboardingsImpl implements MdeOnboardings { * The default configuration or data needed to onboard the machine to MDE * @param options The options parameters. */ - get( - options?: MdeOnboardingsGetOptionalParams, - ): Promise { + get(options?: MdeOnboardingsGetOptionalParams): Promise { return this.client.sendOperationRequest({ options }, getOperationSpec); } } @@ -64,7 +60,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 +76,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/operations.ts b/sdk/security/arm-security/src/operations/operations.ts index 23af6543c3f5..5b050babe123 100644 --- a/sdk/security/arm-security/src/operations/operations.ts +++ b/sdk/security/arm-security/src/operations/operations.ts @@ -38,9 +38,7 @@ export class OperationsImpl implements Operations { * Exposes all available operations for discovery purposes. * @param options The options parameters. */ - public list( - options?: OperationsListOptionalParams, - ): PagedAsyncIterableIterator { + public list(options?: OperationsListOptionalParams): PagedAsyncIterableIterator { const iter = this.listPagingAll(options); return { next() { @@ -92,9 +90,7 @@ export class OperationsImpl implements Operations { * Exposes all available operations for discovery purposes. * @param options The options parameters. */ - private _list( - options?: OperationsListOptionalParams, - ): Promise { + private _list(options?: OperationsListOptionalParams): Promise { return this.client.sendOperationRequest({ options }, listOperationSpec); } @@ -107,10 +103,7 @@ export class OperationsImpl implements Operations { nextLink: string, options?: OperationsListNextOptionalParams, ): Promise { - return this.client.sendOperationRequest( - { nextLink, options }, - listNextOperationSpec, - ); + return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec); } } // Operation Specifications @@ -121,13 +114,13 @@ const listOperationSpec: coreClient.OperationSpec = { httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.OperationList, + bodyMapper: Mappers.OperationListResult, }, default: { - bodyMapper: Mappers.CloudError, + bodyMapper: Mappers.ErrorResponseAutoGenerated, }, }, - queryParameters: [Parameters.apiVersion], + queryParameters: [Parameters.apiVersion15], urlParameters: [Parameters.$host], headerParameters: [Parameters.accept], serializer, @@ -137,10 +130,10 @@ const listNextOperationSpec: coreClient.OperationSpec = { httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.OperationList, + bodyMapper: Mappers.OperationListResult, }, default: { - bodyMapper: Mappers.CloudError, + bodyMapper: Mappers.ErrorResponseAutoGenerated, }, }, urlParameters: [Parameters.$host, Parameters.nextLink], diff --git a/sdk/security/arm-security/src/operations/pricings.ts b/sdk/security/arm-security/src/operations/pricings.ts index ca6e5f5d8df1..9c3a66d09f6f 100644 --- a/sdk/security/arm-security/src/operations/pricings.ts +++ b/sdk/security/arm-security/src/operations/pricings.ts @@ -50,10 +50,7 @@ export class PricingsImpl implements Pricings { pricingName: string, options?: PricingsGetOptionalParams, ): Promise { - return this.client.sendOperationRequest( - { scopeId, pricingName, options }, - getOperationSpec, - ); + return this.client.sendOperationRequest({ scopeId, pricingName, options }, getOperationSpec); } /** @@ -93,10 +90,7 @@ export class PricingsImpl implements Pricings { pricingName: string, options?: PricingsDeleteOptionalParams, ): Promise { - return this.client.sendOperationRequest( - { scopeId, pricingName, options }, - deleteOperationSpec, - ); + return this.client.sendOperationRequest({ scopeId, pricingName, options }, deleteOperationSpec); } /** @@ -112,14 +106,8 @@ export class PricingsImpl implements Pricings { * - Supported resources are (VirtualMachines) * @param options The options parameters. */ - list( - scopeId: string, - options?: PricingsListOptionalParams, - ): Promise { - return this.client.sendOperationRequest( - { scopeId, options }, - listOperationSpec, - ); + list(scopeId: string, options?: PricingsListOptionalParams): Promise { + return this.client.sendOperationRequest({ scopeId, options }, listOperationSpec); } } // Operation Specifications @@ -137,11 +125,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, }, queryParameters: [Parameters.apiVersion26], - urlParameters: [ - Parameters.$host, - Parameters.scopeId, - Parameters.pricingName1, - ], + urlParameters: [Parameters.$host, Parameters.scopeId, Parameters.pricingName1], headerParameters: [Parameters.accept], serializer, }; @@ -161,11 +145,7 @@ const updateOperationSpec: coreClient.OperationSpec = { }, requestBody: Parameters.pricing, queryParameters: [Parameters.apiVersion26], - urlParameters: [ - Parameters.$host, - Parameters.scopeId, - Parameters.pricingName1, - ], + urlParameters: [Parameters.$host, Parameters.scopeId, Parameters.pricingName1], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer, @@ -181,11 +161,7 @@ const deleteOperationSpec: coreClient.OperationSpec = { }, }, queryParameters: [Parameters.apiVersion26], - urlParameters: [ - Parameters.$host, - Parameters.scopeId, - Parameters.pricingName1, - ], + urlParameters: [Parameters.$host, Parameters.scopeId, Parameters.pricingName1], headerParameters: [Parameters.accept], serializer, }; diff --git a/sdk/security/arm-security/src/operations/regulatoryComplianceAssessments.ts b/sdk/security/arm-security/src/operations/regulatoryComplianceAssessments.ts index be3cac97a10e..ffbdb7b53bc9 100644 --- a/sdk/security/arm-security/src/operations/regulatoryComplianceAssessments.ts +++ b/sdk/security/arm-security/src/operations/regulatoryComplianceAssessments.ts @@ -25,9 +25,7 @@ import { /// /** Class containing RegulatoryComplianceAssessments operations. */ -export class RegulatoryComplianceAssessmentsImpl - implements RegulatoryComplianceAssessments -{ +export class RegulatoryComplianceAssessmentsImpl implements RegulatoryComplianceAssessments { private readonly client: SecurityCenter; /** diff --git a/sdk/security/arm-security/src/operations/regulatoryComplianceControls.ts b/sdk/security/arm-security/src/operations/regulatoryComplianceControls.ts index 4b27a990b0bf..2e45e0a756b6 100644 --- a/sdk/security/arm-security/src/operations/regulatoryComplianceControls.ts +++ b/sdk/security/arm-security/src/operations/regulatoryComplianceControls.ts @@ -25,9 +25,7 @@ import { /// /** Class containing RegulatoryComplianceControls operations. */ -export class RegulatoryComplianceControlsImpl - implements RegulatoryComplianceControls -{ +export class RegulatoryComplianceControlsImpl implements RegulatoryComplianceControls { private readonly client: SecurityCenter; /** @@ -59,11 +57,7 @@ export class RegulatoryComplianceControlsImpl if (settings?.maxPageSize) { throw new Error("maxPageSize is not supported by this operation."); } - return this.listPagingPage( - regulatoryComplianceStandardName, - options, - settings, - ); + return this.listPagingPage(regulatoryComplianceStandardName, options, settings); }, }; } @@ -83,11 +77,7 @@ export class RegulatoryComplianceControlsImpl yield page; } while (continuationToken) { - result = await this._listNext( - regulatoryComplianceStandardName, - continuationToken, - options, - ); + result = await this._listNext(regulatoryComplianceStandardName, continuationToken, options); continuationToken = result.nextLink; let page = result.value || []; setContinuationToken(page, continuationToken); @@ -99,10 +89,7 @@ export class RegulatoryComplianceControlsImpl regulatoryComplianceStandardName: string, options?: RegulatoryComplianceControlsListOptionalParams, ): AsyncIterableIterator { - for await (const page of this.listPagingPage( - regulatoryComplianceStandardName, - options, - )) { + for await (const page of this.listPagingPage(regulatoryComplianceStandardName, options)) { yield* page; } } diff --git a/sdk/security/arm-security/src/operations/regulatoryComplianceStandards.ts b/sdk/security/arm-security/src/operations/regulatoryComplianceStandards.ts index f6a1b3cab3c0..8c6e7044addd 100644 --- a/sdk/security/arm-security/src/operations/regulatoryComplianceStandards.ts +++ b/sdk/security/arm-security/src/operations/regulatoryComplianceStandards.ts @@ -25,9 +25,7 @@ import { /// /** Class containing RegulatoryComplianceStandards operations. */ -export class RegulatoryComplianceStandardsImpl - implements RegulatoryComplianceStandards -{ +export class RegulatoryComplianceStandardsImpl implements RegulatoryComplianceStandards { private readonly client: SecurityCenter; /** @@ -126,10 +124,7 @@ export class RegulatoryComplianceStandardsImpl nextLink: string, options?: RegulatoryComplianceStandardsListNextOptionalParams, ): Promise { - return this.client.sendOperationRequest( - { nextLink, options }, - listNextOperationSpec, - ); + return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec); } } // Operation Specifications @@ -182,11 +177,7 @@ const listNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError, }, }, - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.nextLink, - ], + urlParameters: [Parameters.$host, Parameters.subscriptionId, Parameters.nextLink], headerParameters: [Parameters.accept], serializer, }; diff --git a/sdk/security/arm-security/src/operations/secureScoreControlDefinitions.ts b/sdk/security/arm-security/src/operations/secureScoreControlDefinitions.ts index 2ab507a9aea5..694bc2f7205a 100644 --- a/sdk/security/arm-security/src/operations/secureScoreControlDefinitions.ts +++ b/sdk/security/arm-security/src/operations/secureScoreControlDefinitions.ts @@ -27,9 +27,7 @@ import { /// /** Class containing SecureScoreControlDefinitions operations. */ -export class SecureScoreControlDefinitionsImpl - implements SecureScoreControlDefinitions -{ +export class SecureScoreControlDefinitionsImpl implements SecureScoreControlDefinitions { private readonly client: SecurityCenter; /** @@ -167,10 +165,7 @@ export class SecureScoreControlDefinitionsImpl private _listBySubscription( options?: SecureScoreControlDefinitionsListBySubscriptionOptionalParams, ): Promise { - return this.client.sendOperationRequest( - { options }, - listBySubscriptionOperationSpec, - ); + return this.client.sendOperationRequest({ options }, listBySubscriptionOperationSpec); } /** @@ -182,10 +177,7 @@ export class SecureScoreControlDefinitionsImpl nextLink: string, options?: SecureScoreControlDefinitionsListNextOptionalParams, ): Promise { - return this.client.sendOperationRequest( - { nextLink, options }, - listNextOperationSpec, - ); + return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec); } /** @@ -264,11 +256,7 @@ const listBySubscriptionNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError, }, }, - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.nextLink, - ], + urlParameters: [Parameters.$host, Parameters.subscriptionId, Parameters.nextLink], headerParameters: [Parameters.accept], serializer, }; diff --git a/sdk/security/arm-security/src/operations/secureScoreControls.ts b/sdk/security/arm-security/src/operations/secureScoreControls.ts index 7b92b52d2978..0e26726def50 100644 --- a/sdk/security/arm-security/src/operations/secureScoreControls.ts +++ b/sdk/security/arm-security/src/operations/secureScoreControls.ts @@ -60,11 +60,7 @@ export class SecureScoreControlsImpl implements SecureScoreControls { if (settings?.maxPageSize) { throw new Error("maxPageSize is not supported by this operation."); } - return this.listBySecureScorePagingPage( - secureScoreName, - options, - settings, - ); + return this.listBySecureScorePagingPage(secureScoreName, options, settings); }, }; } @@ -84,11 +80,7 @@ export class SecureScoreControlsImpl implements SecureScoreControls { yield page; } while (continuationToken) { - result = await this._listBySecureScoreNext( - secureScoreName, - continuationToken, - options, - ); + result = await this._listBySecureScoreNext(secureScoreName, continuationToken, options); continuationToken = result.nextLink; let page = result.value || []; setContinuationToken(page, continuationToken); @@ -100,10 +92,7 @@ export class SecureScoreControlsImpl implements SecureScoreControls { secureScoreName: string, options?: SecureScoreControlsListBySecureScoreOptionalParams, ): AsyncIterableIterator { - for await (const page of this.listBySecureScorePagingPage( - secureScoreName, - options, - )) { + for await (const page of this.listBySecureScorePagingPage(secureScoreName, options)) { yield* page; } } @@ -215,10 +204,7 @@ export class SecureScoreControlsImpl implements SecureScoreControls { nextLink: string, options?: SecureScoreControlsListNextOptionalParams, ): Promise { - return this.client.sendOperationRequest( - { nextLink, options }, - listNextOperationSpec, - ); + return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec); } } // Operation Specifications @@ -236,11 +222,7 @@ const listBySecureScoreOperationSpec: coreClient.OperationSpec = { }, }, queryParameters: [Parameters.apiVersion20, Parameters.expand], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.secureScoreName, - ], + urlParameters: [Parameters.$host, Parameters.subscriptionId, Parameters.secureScoreName], headerParameters: [Parameters.accept], serializer, }; @@ -291,11 +273,7 @@ const listNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError, }, }, - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.nextLink, - ], + urlParameters: [Parameters.$host, Parameters.subscriptionId, Parameters.nextLink], headerParameters: [Parameters.accept], serializer, }; diff --git a/sdk/security/arm-security/src/operations/secureScores.ts b/sdk/security/arm-security/src/operations/secureScores.ts index 95cb1a1ed738..b335a19495b6 100644 --- a/sdk/security/arm-security/src/operations/secureScores.ts +++ b/sdk/security/arm-security/src/operations/secureScores.ts @@ -94,9 +94,7 @@ export class SecureScoresImpl implements SecureScores { * List secure scores for all your Microsoft Defender for Cloud initiatives within your current scope. * @param options The options parameters. */ - private _list( - options?: SecureScoresListOptionalParams, - ): Promise { + private _list(options?: SecureScoresListOptionalParams): Promise { return this.client.sendOperationRequest({ options }, listOperationSpec); } @@ -111,10 +109,7 @@ export class SecureScoresImpl implements SecureScores { secureScoreName: string, options?: SecureScoresGetOptionalParams, ): Promise { - return this.client.sendOperationRequest( - { secureScoreName, options }, - getOperationSpec, - ); + return this.client.sendOperationRequest({ secureScoreName, options }, getOperationSpec); } /** @@ -126,10 +121,7 @@ export class SecureScoresImpl implements SecureScores { nextLink: string, options?: SecureScoresListNextOptionalParams, ): Promise { - return this.client.sendOperationRequest( - { nextLink, options }, - listNextOperationSpec, - ); + return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec); } } // Operation Specifications @@ -163,11 +155,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, }, queryParameters: [Parameters.apiVersion20], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.secureScoreName, - ], + urlParameters: [Parameters.$host, Parameters.subscriptionId, Parameters.secureScoreName], headerParameters: [Parameters.accept], serializer, }; @@ -182,11 +170,7 @@ const listNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError, }, }, - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.nextLink, - ], + urlParameters: [Parameters.$host, Parameters.subscriptionId, Parameters.nextLink], 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 d2e1b94c8e50..ad7320bdafef 100644 --- a/sdk/security/arm-security/src/operations/securityConnectorApplication.ts +++ b/sdk/security/arm-security/src/operations/securityConnectorApplication.ts @@ -21,9 +21,7 @@ import { } from "../models/index.js"; /** Class containing SecurityConnectorApplication operations. */ -export class SecurityConnectorApplicationImpl - implements SecurityConnectorApplication -{ +export class SecurityConnectorApplicationImpl implements SecurityConnectorApplication { private readonly client: SecurityCenter; /** @@ -116,7 +114,7 @@ const getOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError, }, }, - queryParameters: [Parameters.apiVersion9], + queryParameters: [Parameters.apiVersion8], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -142,7 +140,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, }, requestBody: Parameters.application, - queryParameters: [Parameters.apiVersion9], + queryParameters: [Parameters.apiVersion8], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -158,7 +156,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 54bf4d807969..889fe59475e5 100644 --- a/sdk/security/arm-security/src/operations/securityConnectorApplications.ts +++ b/sdk/security/arm-security/src/operations/securityConnectorApplications.ts @@ -23,9 +23,7 @@ import { /// /** Class containing SecurityConnectorApplications operations. */ -export class SecurityConnectorApplicationsImpl - implements SecurityConnectorApplications -{ +export class SecurityConnectorApplicationsImpl implements SecurityConnectorApplications { private readonly client: SecurityCenter; /** @@ -48,11 +46,7 @@ export class SecurityConnectorApplicationsImpl securityConnectorName: string, options?: SecurityConnectorApplicationsListOptionalParams, ): PagedAsyncIterableIterator { - const iter = this.listPagingAll( - resourceGroupName, - securityConnectorName, - options, - ); + const iter = this.listPagingAll(resourceGroupName, securityConnectorName, options); return { next() { return iter.next(); @@ -64,12 +58,7 @@ export class SecurityConnectorApplicationsImpl if (settings?.maxPageSize) { throw new Error("maxPageSize is not supported by this operation."); } - return this.listPagingPage( - resourceGroupName, - securityConnectorName, - options, - settings, - ); + return this.listPagingPage(resourceGroupName, securityConnectorName, options, settings); }, }; } @@ -83,11 +72,7 @@ export class SecurityConnectorApplicationsImpl let result: SecurityConnectorApplicationsListResponse; let continuationToken = settings?.continuationToken; if (!continuationToken) { - result = await this._list( - resourceGroupName, - securityConnectorName, - options, - ); + result = await this._list(resourceGroupName, securityConnectorName, options); let page = result.value || []; continuationToken = result.nextLink; setContinuationToken(page, continuationToken); @@ -173,7 +158,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 f4b37e4b7001..7da9c70fb7ec 100644 --- a/sdk/security/arm-security/src/operations/securityConnectors.ts +++ b/sdk/security/arm-security/src/operations/securityConnectors.ts @@ -123,11 +123,7 @@ export class SecurityConnectorsImpl implements SecurityConnectors { if (settings?.maxPageSize) { throw new Error("maxPageSize is not supported by this operation."); } - return this.listByResourceGroupPagingPage( - resourceGroupName, - options, - settings, - ); + return this.listByResourceGroupPagingPage(resourceGroupName, options, settings); }, }; } @@ -147,11 +143,7 @@ export class SecurityConnectorsImpl implements SecurityConnectors { yield page; } while (continuationToken) { - result = await this._listByResourceGroupNext( - resourceGroupName, - continuationToken, - options, - ); + result = await this._listByResourceGroupNext(resourceGroupName, continuationToken, options); continuationToken = result.nextLink; let page = result.value || []; setContinuationToken(page, continuationToken); @@ -163,10 +155,7 @@ export class SecurityConnectorsImpl implements SecurityConnectors { resourceGroupName: string, options?: SecurityConnectorsListByResourceGroupOptionalParams, ): AsyncIterableIterator { - for await (const page of this.listByResourceGroupPagingPage( - resourceGroupName, - options, - )) { + for await (const page of this.listByResourceGroupPagingPage(resourceGroupName, options)) { yield* page; } } @@ -285,10 +274,7 @@ export class SecurityConnectorsImpl implements SecurityConnectors { nextLink: string, options?: SecurityConnectorsListNextOptionalParams, ): Promise { - return this.client.sendOperationRequest( - { nextLink, options }, - listNextOperationSpec, - ); + return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec); } /** @@ -323,7 +309,7 @@ const listOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError, }, }, - queryParameters: [Parameters.apiVersion16], + queryParameters: [Parameters.apiVersion14], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], serializer, @@ -339,12 +325,8 @@ const listByResourceGroupOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError, }, }, - queryParameters: [Parameters.apiVersion16], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - ], + queryParameters: [Parameters.apiVersion14], + urlParameters: [Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName], headerParameters: [Parameters.accept], serializer, }; @@ -359,7 +341,7 @@ const getOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError, }, }, - queryParameters: [Parameters.apiVersion16], + queryParameters: [Parameters.apiVersion14], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -384,7 +366,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, }, requestBody: Parameters.securityConnector, - queryParameters: [Parameters.apiVersion16], + queryParameters: [Parameters.apiVersion14], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -407,7 +389,7 @@ const updateOperationSpec: coreClient.OperationSpec = { }, }, requestBody: Parameters.securityConnector, - queryParameters: [Parameters.apiVersion16], + queryParameters: [Parameters.apiVersion14], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -428,7 +410,7 @@ const deleteOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError, }, }, - queryParameters: [Parameters.apiVersion16], + queryParameters: [Parameters.apiVersion14], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -449,11 +431,7 @@ const listNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError, }, }, - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.nextLink, - ], + urlParameters: [Parameters.$host, Parameters.subscriptionId, Parameters.nextLink], headerParameters: [Parameters.accept], serializer, }; diff --git a/sdk/security/arm-security/src/operations/securityContacts.ts b/sdk/security/arm-security/src/operations/securityContacts.ts index a239d921f437..990c7286d04f 100644 --- a/sdk/security/arm-security/src/operations/securityContacts.ts +++ b/sdk/security/arm-security/src/operations/securityContacts.ts @@ -113,10 +113,7 @@ export class SecurityContactsImpl implements SecurityContacts { securityContactName: SecurityContactName, options?: SecurityContactsGetOptionalParams, ): Promise { - return this.client.sendOperationRequest( - { securityContactName, options }, - getOperationSpec, - ); + return this.client.sendOperationRequest({ securityContactName, options }, getOperationSpec); } /** @@ -145,10 +142,7 @@ export class SecurityContactsImpl implements SecurityContacts { securityContactName: SecurityContactName, options?: SecurityContactsDeleteOptionalParams, ): Promise { - return this.client.sendOperationRequest( - { securityContactName, options }, - deleteOperationSpec, - ); + return this.client.sendOperationRequest({ securityContactName, options }, deleteOperationSpec); } /** @@ -160,10 +154,7 @@ export class SecurityContactsImpl implements SecurityContacts { nextLink: string, options?: SecurityContactsListNextOptionalParams, ): Promise { - return this.client.sendOperationRequest( - { nextLink, options }, - listNextOperationSpec, - ); + return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec); } } // Operation Specifications @@ -180,7 +171,7 @@ const listOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError, }, }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion13], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], serializer, @@ -196,12 +187,8 @@ const getOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError, }, }, - queryParameters: [Parameters.apiVersion3], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.securityContactName, - ], + queryParameters: [Parameters.apiVersion13], + urlParameters: [Parameters.$host, Parameters.subscriptionId, Parameters.securityContactName], headerParameters: [Parameters.accept], serializer, }; @@ -220,12 +207,8 @@ const createOperationSpec: coreClient.OperationSpec = { }, }, requestBody: Parameters.securityContact, - queryParameters: [Parameters.apiVersion3], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.securityContactName, - ], + queryParameters: [Parameters.apiVersion13], + urlParameters: [Parameters.$host, Parameters.subscriptionId, Parameters.securityContactName], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer, @@ -240,12 +223,8 @@ const deleteOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError, }, }, - queryParameters: [Parameters.apiVersion3], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.securityContactName, - ], + queryParameters: [Parameters.apiVersion13], + urlParameters: [Parameters.$host, Parameters.subscriptionId, Parameters.securityContactName], headerParameters: [Parameters.accept], serializer, }; @@ -260,11 +239,7 @@ const listNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError, }, }, - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.nextLink, - ], + urlParameters: [Parameters.$host, Parameters.subscriptionId, Parameters.nextLink], headerParameters: [Parameters.accept], serializer, }; diff --git a/sdk/security/arm-security/src/operations/securityOperators.ts b/sdk/security/arm-security/src/operations/securityOperators.ts index e52a7ca6a8ab..08fdd9100b28 100644 --- a/sdk/security/arm-security/src/operations/securityOperators.ts +++ b/sdk/security/arm-security/src/operations/securityOperators.ts @@ -42,10 +42,7 @@ export class SecurityOperatorsImpl implements SecurityOperators { pricingName: string, options?: SecurityOperatorsListOptionalParams, ): Promise { - return this.client.sendOperationRequest( - { pricingName, options }, - listOperationSpec, - ); + return this.client.sendOperationRequest({ pricingName, options }, listOperationSpec); } /** @@ -113,12 +110,8 @@ const listOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError, }, }, - queryParameters: [Parameters.apiVersion11], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.pricingName, - ], + queryParameters: [Parameters.apiVersion9], + urlParameters: [Parameters.$host, Parameters.subscriptionId, Parameters.pricingName], headerParameters: [Parameters.accept], serializer, }; @@ -133,7 +126,7 @@ const getOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError, }, }, - queryParameters: [Parameters.apiVersion11], + queryParameters: [Parameters.apiVersion9], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -154,7 +147,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError, }, }, - queryParameters: [Parameters.apiVersion11], + queryParameters: [Parameters.apiVersion9], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -174,7 +167,7 @@ const deleteOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError, }, }, - queryParameters: [Parameters.apiVersion11], + queryParameters: [Parameters.apiVersion9], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/security/arm-security/src/operations/securitySolutions.ts b/sdk/security/arm-security/src/operations/securitySolutions.ts index ee4e46ee6f76..5fc549068fc7 100644 --- a/sdk/security/arm-security/src/operations/securitySolutions.ts +++ b/sdk/security/arm-security/src/operations/securitySolutions.ts @@ -130,10 +130,7 @@ export class SecuritySolutionsImpl implements SecuritySolutions { nextLink: string, options?: SecuritySolutionsListNextOptionalParams, ): Promise { - return this.client.sendOperationRequest( - { nextLink, options }, - listNextOperationSpec, - ); + return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec); } } // Operation Specifications @@ -188,11 +185,7 @@ const listNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError, }, }, - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.nextLink, - ], + urlParameters: [Parameters.$host, Parameters.subscriptionId, Parameters.nextLink], headerParameters: [Parameters.accept], serializer, }; diff --git a/sdk/security/arm-security/src/operations/securitySolutionsReferenceDataOperations.ts b/sdk/security/arm-security/src/operations/securitySolutionsReferenceDataOperations.ts index ac141acf1081..b47318be7eb0 100644 --- a/sdk/security/arm-security/src/operations/securitySolutionsReferenceDataOperations.ts +++ b/sdk/security/arm-security/src/operations/securitySolutionsReferenceDataOperations.ts @@ -89,11 +89,7 @@ const listByHomeRegionOperationSpec: coreClient.OperationSpec = { }, }, queryParameters: [Parameters.apiVersion20], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.ascLocation, - ], + urlParameters: [Parameters.$host, Parameters.subscriptionId, Parameters.ascLocation], headerParameters: [Parameters.accept], serializer, }; diff --git a/sdk/security/arm-security/src/operations/securityStandards.ts b/sdk/security/arm-security/src/operations/securityStandards.ts new file mode 100644 index 000000000000..657143a8e9a5 --- /dev/null +++ b/sdk/security/arm-security/src/operations/securityStandards.ts @@ -0,0 +1,276 @@ +/* + * 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.js"; +import { SecurityStandards } from "../operationsInterfaces/index.js"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { SecurityCenter } from "../securityCenter.js"; +import { + SecurityStandard, + SecurityStandardsListNextOptionalParams, + SecurityStandardsListOptionalParams, + SecurityStandardsListResponse, + SecurityStandardsGetOptionalParams, + SecurityStandardsGetResponse, + SecurityStandardsCreateOrUpdateOptionalParams, + SecurityStandardsCreateOrUpdateResponse, + SecurityStandardsDeleteOptionalParams, + SecurityStandardsListNextResponse, +} from "../models/index.js"; + +/// +/** Class containing SecurityStandards operations. */ +export class SecurityStandardsImpl implements SecurityStandards { + private readonly client: SecurityCenter; + + /** + * Initialize a new instance of the class SecurityStandards class. + * @param client Reference to the service client + */ + constructor(client: SecurityCenter) { + this.client = client; + } + + /** + * Get a list of all relevant security standards over a scope + * @param scope The scope of the security standard. Valid scopes are: management group (format: + * 'providers/Microsoft.Management/managementGroups/{managementGroup}'), subscription (format: + * 'subscriptions/{subscriptionId}'), or security connector (format: + * 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName})' + * @param options The options parameters. + */ + public list( + scope: string, + options?: SecurityStandardsListOptionalParams, + ): PagedAsyncIterableIterator { + const iter = this.listPagingAll(scope, 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(scope, options, settings); + }, + }; + } + + private async *listPagingPage( + scope: string, + options?: SecurityStandardsListOptionalParams, + settings?: PageSettings, + ): AsyncIterableIterator { + let result: SecurityStandardsListResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._list(scope, options); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listNext(scope, continuationToken, options); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listPagingAll( + scope: string, + options?: SecurityStandardsListOptionalParams, + ): AsyncIterableIterator { + for await (const page of this.listPagingPage(scope, options)) { + yield* page; + } + } + + /** + * Get a list of all relevant security standards over a scope + * @param scope The scope of the security standard. Valid scopes are: management group (format: + * 'providers/Microsoft.Management/managementGroups/{managementGroup}'), subscription (format: + * 'subscriptions/{subscriptionId}'), or security connector (format: + * 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName})' + * @param options The options parameters. + */ + private _list( + scope: string, + options?: SecurityStandardsListOptionalParams, + ): Promise { + return this.client.sendOperationRequest({ scope, options }, listOperationSpec); + } + + /** + * Get a specific security standard for the requested scope by standardId + * @param scope The scope of the security standard. Valid scopes are: management group (format: + * 'providers/Microsoft.Management/managementGroups/{managementGroup}'), subscription (format: + * 'subscriptions/{subscriptionId}'), or security connector (format: + * 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName})' + * @param standardId The Security Standard key - unique key for the standard type + * @param options The options parameters. + */ + get( + scope: string, + standardId: string, + options?: SecurityStandardsGetOptionalParams, + ): Promise { + return this.client.sendOperationRequest({ scope, standardId, options }, getOperationSpec); + } + + /** + * Creates or updates a security standard over a given scope + * @param scope The scope of the security standard. Valid scopes are: management group (format: + * 'providers/Microsoft.Management/managementGroups/{managementGroup}'), subscription (format: + * 'subscriptions/{subscriptionId}'), or security connector (format: + * 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName})' + * @param standardId The Security Standard key - unique key for the standard type + * @param standard Custom security standard over a pre-defined scope + * @param options The options parameters. + */ + createOrUpdate( + scope: string, + standardId: string, + standard: SecurityStandard, + options?: SecurityStandardsCreateOrUpdateOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { scope, standardId, standard, options }, + createOrUpdateOperationSpec, + ); + } + + /** + * Delete a security standard over a given scope + * @param scope The scope of the security standard. Valid scopes are: management group (format: + * 'providers/Microsoft.Management/managementGroups/{managementGroup}'), subscription (format: + * 'subscriptions/{subscriptionId}'), or security connector (format: + * 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName})' + * @param standardId The Security Standard key - unique key for the standard type + * @param options The options parameters. + */ + delete( + scope: string, + standardId: string, + options?: SecurityStandardsDeleteOptionalParams, + ): Promise { + return this.client.sendOperationRequest({ scope, standardId, options }, deleteOperationSpec); + } + + /** + * ListNext + * @param scope The scope of the security standard. Valid scopes are: management group (format: + * 'providers/Microsoft.Management/managementGroups/{managementGroup}'), subscription (format: + * 'subscriptions/{subscriptionId}'), or security connector (format: + * 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName})' + * @param nextLink The nextLink from the previous successful call to the List method. + * @param options The options parameters. + */ + private _listNext( + scope: string, + nextLink: string, + options?: SecurityStandardsListNextOptionalParams, + ): Promise { + return this.client.sendOperationRequest({ scope, nextLink, options }, listNextOperationSpec); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listOperationSpec: coreClient.OperationSpec = { + path: "/{scope}/providers/Microsoft.Security/securityStandards", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.SecurityStandardList, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion27], + urlParameters: [Parameters.$host, Parameters.scope1], + headerParameters: [Parameters.accept], + serializer, +}; +const getOperationSpec: coreClient.OperationSpec = { + path: "/{scope}/providers/Microsoft.Security/securityStandards/{standardId}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.SecurityStandard, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion27], + urlParameters: [Parameters.$host, Parameters.scope1, Parameters.standardId], + headerParameters: [Parameters.accept], + serializer, +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: "/{scope}/providers/Microsoft.Security/securityStandards/{standardId}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.SecurityStandard, + }, + 201: { + bodyMapper: Mappers.SecurityStandard, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + requestBody: Parameters.standard, + queryParameters: [Parameters.apiVersion27], + urlParameters: [Parameters.$host, Parameters.scope1, Parameters.standardId], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer, +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: "/{scope}/providers/Microsoft.Security/securityStandards/{standardId}", + httpMethod: "DELETE", + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion27], + urlParameters: [Parameters.$host, Parameters.scope1, Parameters.standardId], + headerParameters: [Parameters.accept], + serializer, +}; +const listNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.SecurityStandardList, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + urlParameters: [Parameters.$host, Parameters.nextLink, Parameters.scope1], + headerParameters: [Parameters.accept], + serializer, +}; diff --git a/sdk/security/arm-security/src/operations/sensitivitySettings.ts b/sdk/security/arm-security/src/operations/sensitivitySettings.ts index 1dacb695c56a..acbb6b33b17b 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.js"; import * as Parameters from "../models/parameters.js"; import { SecurityCenter } from "../securityCenter.js"; import { + UpdateSensitivitySettingsRequest, + SensitivitySettingsCreateOrUpdateOptionalParams, + SensitivitySettingsCreateOrUpdateResponse, + SensitivitySettingsGetOptionalParams, + SensitivitySettingsGetResponse, SensitivitySettingsListOptionalParams, SensitivitySettingsListResponse, } from "../models/index.js"; @@ -28,19 +33,74 @@ 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. */ - list( - options?: SensitivitySettingsListOptionalParams, - ): Promise { + list(options?: SensitivitySettingsListOptionalParams): Promise { return this.client.sendOperationRequest({ options }, listOperationSpec); } } // 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.apiVersion11], + 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.apiVersion11], + urlParameters: [Parameters.$host], + headerParameters: [Parameters.accept], + serializer, +}; const listOperationSpec: coreClient.OperationSpec = { path: "/providers/Microsoft.Security/sensitivitySettings", httpMethod: "GET", @@ -52,7 +112,7 @@ const listOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError, }, }, - queryParameters: [Parameters.apiVersion13], + queryParameters: [Parameters.apiVersion11], urlParameters: [Parameters.$host], headerParameters: [Parameters.accept], serializer, diff --git a/sdk/security/arm-security/src/operations/serverVulnerabilityAssessmentOperations.ts b/sdk/security/arm-security/src/operations/serverVulnerabilityAssessmentOperations.ts index 939aee4e4730..1b20f4c6b0d4 100644 --- a/sdk/security/arm-security/src/operations/serverVulnerabilityAssessmentOperations.ts +++ b/sdk/security/arm-security/src/operations/serverVulnerabilityAssessmentOperations.ts @@ -11,11 +11,7 @@ import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers.js"; import * as Parameters from "../models/parameters.js"; import { SecurityCenter } from "../securityCenter.js"; -import { - SimplePollerLike, - OperationState, - createHttpPoller, -} from "@azure/core-lro"; +import { SimplePollerLike, OperationState, createHttpPoller } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl.js"; import { ServerVulnerabilityAssessmentListByExtendedResourceOptionalParams, @@ -152,8 +148,7 @@ export class ServerVulnerabilityAssessmentOperationsImpl args: coreClient.OperationArguments, spec: coreClient.OperationSpec, ) => { - let currentRawResponse: coreClient.FullOperationResponse | undefined = - undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, diff --git a/sdk/security/arm-security/src/operations/serverVulnerabilityAssessmentsSettings.ts b/sdk/security/arm-security/src/operations/serverVulnerabilityAssessmentsSettings.ts index 9e5982e1634c..a831705259c3 100644 --- a/sdk/security/arm-security/src/operations/serverVulnerabilityAssessmentsSettings.ts +++ b/sdk/security/arm-security/src/operations/serverVulnerabilityAssessmentsSettings.ts @@ -103,10 +103,7 @@ export class ServerVulnerabilityAssessmentsSettingsImpl private _listBySubscription( options?: ServerVulnerabilityAssessmentsSettingsListBySubscriptionOptionalParams, ): Promise { - return this.client.sendOperationRequest( - { options }, - listBySubscriptionOperationSpec, - ); + return this.client.sendOperationRequest({ options }, listBySubscriptionOperationSpec); } /** @@ -119,10 +116,7 @@ export class ServerVulnerabilityAssessmentsSettingsImpl settingKind: ServerVulnerabilityAssessmentsSettingKindName, options?: ServerVulnerabilityAssessmentsSettingsGetOptionalParams, ): Promise { - return this.client.sendOperationRequest( - { settingKind, options }, - getOperationSpec, - ); + return this.client.sendOperationRequest({ settingKind, options }, getOperationSpec); } /** @@ -153,10 +147,7 @@ export class ServerVulnerabilityAssessmentsSettingsImpl settingKind: ServerVulnerabilityAssessmentsSettingKindName, options?: ServerVulnerabilityAssessmentsSettingsDeleteOptionalParams, ): Promise { - return this.client.sendOperationRequest( - { settingKind, options }, - deleteOperationSpec, - ); + return this.client.sendOperationRequest({ settingKind, options }, deleteOperationSpec); } /** @@ -205,11 +196,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, }, queryParameters: [Parameters.apiVersion24], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.settingKind, - ], + urlParameters: [Parameters.$host, Parameters.subscriptionId, Parameters.settingKind], headerParameters: [Parameters.accept], serializer, }; @@ -229,11 +216,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, requestBody: Parameters.serverVulnerabilityAssessmentsSetting, queryParameters: [Parameters.apiVersion24], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.settingKind, - ], + urlParameters: [Parameters.$host, Parameters.subscriptionId, Parameters.settingKind], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer, @@ -249,11 +232,7 @@ const deleteOperationSpec: coreClient.OperationSpec = { }, }, queryParameters: [Parameters.apiVersion24], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.settingKind, - ], + urlParameters: [Parameters.$host, Parameters.subscriptionId, Parameters.settingKind], headerParameters: [Parameters.accept], serializer, }; @@ -268,11 +247,7 @@ const listBySubscriptionNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse, }, }, - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.nextLink, - ], + urlParameters: [Parameters.$host, Parameters.subscriptionId, Parameters.nextLink], headerParameters: [Parameters.accept], serializer, }; diff --git a/sdk/security/arm-security/src/operations/settings.ts b/sdk/security/arm-security/src/operations/settings.ts index 0d9b62e88460..a0bcfbf3e42e 100644 --- a/sdk/security/arm-security/src/operations/settings.ts +++ b/sdk/security/arm-security/src/operations/settings.ts @@ -18,7 +18,7 @@ import { SettingsListNextOptionalParams, SettingsListOptionalParams, SettingsListResponse, - SettingNameAutoGenerated, + SettingName, SettingsGetOptionalParams, SettingsGetResponse, SettingsUpdateOptionalParams, @@ -43,9 +43,7 @@ export class SettingsImpl implements Settings { * Settings about different configurations in Microsoft Defender for Cloud * @param options The options parameters. */ - public list( - options?: SettingsListOptionalParams, - ): PagedAsyncIterableIterator { + public list(options?: SettingsListOptionalParams): PagedAsyncIterableIterator { const iter = this.listPagingAll(options); return { next() { @@ -97,9 +95,7 @@ export class SettingsImpl implements Settings { * Settings about different configurations in Microsoft Defender for Cloud * @param options The options parameters. */ - private _list( - options?: SettingsListOptionalParams, - ): Promise { + private _list(options?: SettingsListOptionalParams): Promise { return this.client.sendOperationRequest({ options }, listOperationSpec); } @@ -108,14 +104,8 @@ export class SettingsImpl implements Settings { * @param settingName The name of the setting * @param options The options parameters. */ - get( - settingName: SettingNameAutoGenerated, - options?: SettingsGetOptionalParams, - ): Promise { - return this.client.sendOperationRequest( - { settingName, options }, - getOperationSpec, - ); + get(settingName: SettingName, options?: SettingsGetOptionalParams): Promise { + return this.client.sendOperationRequest({ settingName, options }, getOperationSpec); } /** @@ -125,14 +115,11 @@ export class SettingsImpl implements Settings { * @param options The options parameters. */ update( - settingName: SettingNameAutoGenerated, + settingName: SettingName, setting: SettingUnion, options?: SettingsUpdateOptionalParams, ): Promise { - return this.client.sendOperationRequest( - { settingName, setting, options }, - updateOperationSpec, - ); + return this.client.sendOperationRequest({ settingName, setting, options }, updateOperationSpec); } /** @@ -144,10 +131,7 @@ export class SettingsImpl implements Settings { nextLink: string, options?: SettingsListNextOptionalParams, ): Promise { - return this.client.sendOperationRequest( - { nextLink, options }, - listNextOperationSpec, - ); + return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec); } } // Operation Specifications @@ -181,11 +165,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, }, queryParameters: [Parameters.apiVersion23], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.settingName3, - ], + urlParameters: [Parameters.$host, Parameters.subscriptionId, Parameters.settingName2], headerParameters: [Parameters.accept], serializer, }; @@ -202,11 +182,7 @@ const updateOperationSpec: coreClient.OperationSpec = { }, requestBody: Parameters.setting1, queryParameters: [Parameters.apiVersion23], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.settingName3, - ], + urlParameters: [Parameters.$host, Parameters.subscriptionId, Parameters.settingName2], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer, @@ -222,11 +198,7 @@ const listNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError, }, }, - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.nextLink, - ], + urlParameters: [Parameters.$host, Parameters.subscriptionId, Parameters.nextLink], 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 f3476802b76d..4c7d8baaa13b 100644 --- a/sdk/security/arm-security/src/operations/softwareInventories.ts +++ b/sdk/security/arm-security/src/operations/softwareInventories.ts @@ -232,10 +232,7 @@ export class SoftwareInventoriesImpl implements SoftwareInventories { private _listBySubscription( options?: SoftwareInventoriesListBySubscriptionOptionalParams, ): Promise { - return this.client.sendOperationRequest( - { options }, - listBySubscriptionOperationSpec, - ); + return this.client.sendOperationRequest({ options }, listBySubscriptionOperationSpec); } /** @@ -329,7 +326,7 @@ const listByExtendedResourceOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError, }, }, - queryParameters: [Parameters.apiVersion5], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -352,7 +349,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 +365,7 @@ const getOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError, }, }, - queryParameters: [Parameters.apiVersion5], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -415,11 +412,7 @@ const listBySubscriptionNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError, }, }, - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.nextLink, - ], + urlParameters: [Parameters.$host, Parameters.subscriptionId, Parameters.nextLink], headerParameters: [Parameters.accept], serializer, }; diff --git a/sdk/security/arm-security/src/operations/sqlVulnerabilityAssessmentBaselineRules.ts b/sdk/security/arm-security/src/operations/sqlVulnerabilityAssessmentBaselineRules.ts index 3dce3011144e..ffe583abef06 100644 --- a/sdk/security/arm-security/src/operations/sqlVulnerabilityAssessmentBaselineRules.ts +++ b/sdk/security/arm-security/src/operations/sqlVulnerabilityAssessmentBaselineRules.ts @@ -122,10 +122,7 @@ export class SqlVulnerabilityAssessmentBaselineRulesImpl resourceId: string, options?: SqlVulnerabilityAssessmentBaselineRulesAddOptionalParams, ): Promise { - return this.client.sendOperationRequest( - { workspaceId, resourceId, options }, - addOperationSpec, - ); + return this.client.sendOperationRequest({ workspaceId, resourceId, options }, addOperationSpec); } } // Operation Specifications @@ -143,7 +140,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, }, requestBody: Parameters.body, - queryParameters: [Parameters.workspaceId, Parameters.apiVersion12], + queryParameters: [Parameters.workspaceId, Parameters.apiVersion10], urlParameters: [Parameters.$host, Parameters.ruleId, Parameters.resourceId], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", @@ -160,7 +157,7 @@ const getOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError, }, }, - queryParameters: [Parameters.workspaceId, Parameters.apiVersion12], + queryParameters: [Parameters.workspaceId, Parameters.apiVersion10], urlParameters: [Parameters.$host, Parameters.ruleId, Parameters.resourceId], headerParameters: [Parameters.accept], serializer, @@ -175,7 +172,7 @@ const deleteOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError, }, }, - queryParameters: [Parameters.workspaceId, Parameters.apiVersion12], + queryParameters: [Parameters.workspaceId, Parameters.apiVersion10], urlParameters: [Parameters.$host, Parameters.ruleId, Parameters.resourceId], headerParameters: [Parameters.accept], serializer, @@ -191,7 +188,7 @@ const listOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError, }, }, - queryParameters: [Parameters.workspaceId, Parameters.apiVersion12], + queryParameters: [Parameters.workspaceId, Parameters.apiVersion10], urlParameters: [Parameters.$host, Parameters.resourceId], headerParameters: [Parameters.accept], serializer, @@ -208,7 +205,7 @@ const addOperationSpec: coreClient.OperationSpec = { }, }, requestBody: Parameters.body1, - queryParameters: [Parameters.workspaceId, Parameters.apiVersion12], + queryParameters: [Parameters.workspaceId, Parameters.apiVersion10], 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 8231f91192af..70a39745deb3 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.apiVersion10], 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.apiVersion10], 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 7f25db5b88a1..3d89e1cca660 100644 --- a/sdk/security/arm-security/src/operations/sqlVulnerabilityAssessmentScans.ts +++ b/sdk/security/arm-security/src/operations/sqlVulnerabilityAssessmentScans.ts @@ -19,9 +19,7 @@ import { } from "../models/index.js"; /** Class containing SqlVulnerabilityAssessmentScans operations. */ -export class SqlVulnerabilityAssessmentScansImpl - implements SqlVulnerabilityAssessmentScans -{ +export class SqlVulnerabilityAssessmentScansImpl implements SqlVulnerabilityAssessmentScans { private readonly client: SecurityCenter; /** @@ -82,7 +80,7 @@ const getOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError, }, }, - queryParameters: [Parameters.workspaceId, Parameters.apiVersion12], + queryParameters: [Parameters.workspaceId, Parameters.apiVersion10], urlParameters: [Parameters.$host, Parameters.resourceId, Parameters.scanId], headerParameters: [Parameters.accept], serializer, @@ -98,7 +96,7 @@ const listOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError, }, }, - queryParameters: [Parameters.workspaceId, Parameters.apiVersion12], + queryParameters: [Parameters.workspaceId, Parameters.apiVersion10], urlParameters: [Parameters.$host, Parameters.resourceId], headerParameters: [Parameters.accept], serializer, diff --git a/sdk/security/arm-security/src/operations/standardAssignments.ts b/sdk/security/arm-security/src/operations/standardAssignments.ts new file mode 100644 index 000000000000..99884694b410 --- /dev/null +++ b/sdk/security/arm-security/src/operations/standardAssignments.ts @@ -0,0 +1,281 @@ +/* + * 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.js"; +import { StandardAssignments } from "../operationsInterfaces/index.js"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { SecurityCenter } from "../securityCenter.js"; +import { + StandardAssignment, + StandardAssignmentsListNextOptionalParams, + StandardAssignmentsListOptionalParams, + StandardAssignmentsListResponse, + StandardAssignmentsGetOptionalParams, + StandardAssignmentsGetResponse, + StandardAssignmentsCreateOptionalParams, + StandardAssignmentsCreateResponse, + StandardAssignmentsDeleteOptionalParams, + StandardAssignmentsListNextResponse, +} from "../models/index.js"; + +/// +/** Class containing StandardAssignments operations. */ +export class StandardAssignmentsImpl implements StandardAssignments { + private readonly client: SecurityCenter; + + /** + * Initialize a new instance of the class StandardAssignments class. + * @param client Reference to the service client + */ + constructor(client: SecurityCenter) { + this.client = client; + } + + /** + * Get a list of all relevant standard assignments over a scope + * @param scope The scope of the standard assignment. Valid scopes are: management group (format: + * 'providers/Microsoft.Management/managementGroups/{managementGroup}'), subscription (format: + * 'subscriptions/{subscriptionId}'), or security connector (format: + * 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName})' + * @param options The options parameters. + */ + public list( + scope: string, + options?: StandardAssignmentsListOptionalParams, + ): PagedAsyncIterableIterator { + const iter = this.listPagingAll(scope, 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(scope, options, settings); + }, + }; + } + + private async *listPagingPage( + scope: string, + options?: StandardAssignmentsListOptionalParams, + settings?: PageSettings, + ): AsyncIterableIterator { + let result: StandardAssignmentsListResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._list(scope, options); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listNext(scope, continuationToken, options); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listPagingAll( + scope: string, + options?: StandardAssignmentsListOptionalParams, + ): AsyncIterableIterator { + for await (const page of this.listPagingPage(scope, options)) { + yield* page; + } + } + + /** + * This operation retrieves a single standard assignment, given its name and the scope it was created + * at. + * @param resourceId The identifier of the resource. + * @param standardAssignmentName The standard assignments assignment key - unique key for the standard + * assignment + * @param options The options parameters. + */ + get( + resourceId: string, + standardAssignmentName: string, + options?: StandardAssignmentsGetOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceId, standardAssignmentName, options }, + getOperationSpec, + ); + } + + /** + * This operation creates or updates a standard assignment with the given scope and name. standard + * assignments apply to all resources contained within their scope. For example, when you assign a + * policy at resource group scope, that policy applies to all resources in the group. + * @param resourceId The identifier of the resource. + * @param standardAssignmentName The standard assignments assignment key - unique key for the standard + * assignment + * @param standardAssignment Custom standard assignment over a pre-defined scope + * @param options The options parameters. + */ + create( + resourceId: string, + standardAssignmentName: string, + standardAssignment: StandardAssignment, + options?: StandardAssignmentsCreateOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceId, standardAssignmentName, standardAssignment, options }, + createOperationSpec, + ); + } + + /** + * This operation deletes a standard assignment, given its name and the scope it was created in. The + * scope of a standard assignment is the part of its ID preceding + * '/providers/Microsoft.Security/standardAssignments/{standardAssignmentName}'. + * @param resourceId The identifier of the resource. + * @param standardAssignmentName The standard assignments assignment key - unique key for the standard + * assignment + * @param options The options parameters. + */ + delete( + resourceId: string, + standardAssignmentName: string, + options?: StandardAssignmentsDeleteOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceId, standardAssignmentName, options }, + deleteOperationSpec, + ); + } + + /** + * Get a list of all relevant standard assignments over a scope + * @param scope The scope of the standard assignment. Valid scopes are: management group (format: + * 'providers/Microsoft.Management/managementGroups/{managementGroup}'), subscription (format: + * 'subscriptions/{subscriptionId}'), or security connector (format: + * 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName})' + * @param options The options parameters. + */ + private _list( + scope: string, + options?: StandardAssignmentsListOptionalParams, + ): Promise { + return this.client.sendOperationRequest({ scope, options }, listOperationSpec); + } + + /** + * ListNext + * @param scope The scope of the standard assignment. Valid scopes are: management group (format: + * 'providers/Microsoft.Management/managementGroups/{managementGroup}'), subscription (format: + * 'subscriptions/{subscriptionId}'), or security connector (format: + * 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName})' + * @param nextLink The nextLink from the previous successful call to the List method. + * @param options The options parameters. + */ + private _listNext( + scope: string, + nextLink: string, + options?: StandardAssignmentsListNextOptionalParams, + ): Promise { + return this.client.sendOperationRequest({ scope, nextLink, options }, listNextOperationSpec); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const getOperationSpec: coreClient.OperationSpec = { + path: "/{resourceId}/providers/Microsoft.Security/standardAssignments/{standardAssignmentName}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.StandardAssignment, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion27], + urlParameters: [Parameters.$host, Parameters.resourceId, Parameters.standardAssignmentName], + headerParameters: [Parameters.accept], + serializer, +}; +const createOperationSpec: coreClient.OperationSpec = { + path: "/{resourceId}/providers/Microsoft.Security/standardAssignments/{standardAssignmentName}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.StandardAssignment, + }, + 201: { + bodyMapper: Mappers.StandardAssignment, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + requestBody: Parameters.standardAssignment, + queryParameters: [Parameters.apiVersion27], + urlParameters: [Parameters.$host, Parameters.resourceId, Parameters.standardAssignmentName], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer, +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: "/{resourceId}/providers/Microsoft.Security/standardAssignments/{standardAssignmentName}", + httpMethod: "DELETE", + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion27], + urlParameters: [Parameters.$host, Parameters.resourceId, Parameters.standardAssignmentName], + headerParameters: [Parameters.accept], + serializer, +}; +const listOperationSpec: coreClient.OperationSpec = { + path: "/{scope}/providers/Microsoft.Security/standardAssignments", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.StandardAssignmentsList, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion27], + urlParameters: [Parameters.$host, Parameters.scope1], + headerParameters: [Parameters.accept], + serializer, +}; +const listNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.StandardAssignmentsList, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + urlParameters: [Parameters.$host, Parameters.nextLink, Parameters.scope1], + headerParameters: [Parameters.accept], + serializer, +}; diff --git a/sdk/security/arm-security/src/operations/subAssessments.ts b/sdk/security/arm-security/src/operations/subAssessments.ts index b14ff279a93f..51e74473ac6b 100644 --- a/sdk/security/arm-security/src/operations/subAssessments.ts +++ b/sdk/security/arm-security/src/operations/subAssessments.ts @@ -146,12 +146,7 @@ export class SubAssessmentsImpl implements SubAssessments { yield page; } while (continuationToken) { - result = await this._listNext( - scope, - assessmentName, - continuationToken, - options, - ); + result = await this._listNext(scope, assessmentName, continuationToken, options); continuationToken = result.nextLink; let page = result.value || []; setContinuationToken(page, continuationToken); @@ -164,11 +159,7 @@ export class SubAssessmentsImpl implements SubAssessments { assessmentName: string, options?: SubAssessmentsListOptionalParams, ): AsyncIterableIterator { - for await (const page of this.listPagingPage( - scope, - assessmentName, - options, - )) { + for await (const page of this.listPagingPage(scope, assessmentName, options)) { yield* page; } } @@ -184,10 +175,7 @@ export class SubAssessmentsImpl implements SubAssessments { scope: string, options?: SubAssessmentsListAllOptionalParams, ): Promise { - return this.client.sendOperationRequest( - { scope, options }, - listAllOperationSpec, - ); + return this.client.sendOperationRequest({ scope, options }, listAllOperationSpec); } /** @@ -203,10 +191,7 @@ export class SubAssessmentsImpl implements SubAssessments { assessmentName: string, options?: SubAssessmentsListOptionalParams, ): Promise { - return this.client.sendOperationRequest( - { scope, assessmentName, options }, - listOperationSpec, - ); + return this.client.sendOperationRequest({ scope, assessmentName, options }, listOperationSpec); } /** @@ -243,10 +228,7 @@ export class SubAssessmentsImpl implements SubAssessments { nextLink: string, options?: SubAssessmentsListAllNextOptionalParams, ): Promise { - return this.client.sendOperationRequest( - { scope, nextLink, options }, - listAllNextOperationSpec, - ); + return this.client.sendOperationRequest({ scope, nextLink, options }, listAllNextOperationSpec); } /** @@ -301,11 +283,7 @@ const listOperationSpec: coreClient.OperationSpec = { }, }, queryParameters: [Parameters.apiVersion2], - urlParameters: [ - Parameters.$host, - Parameters.scope, - Parameters.assessmentName, - ], + urlParameters: [Parameters.$host, Parameters.scope, Parameters.assessmentName], headerParameters: [Parameters.accept], serializer, }; diff --git a/sdk/security/arm-security/src/operations/tasks.ts b/sdk/security/arm-security/src/operations/tasks.ts index 0209f128e26c..ef5678268ab9 100644 --- a/sdk/security/arm-security/src/operations/tasks.ts +++ b/sdk/security/arm-security/src/operations/tasks.ts @@ -53,9 +53,7 @@ export class TasksImpl implements Tasks { * Recommended tasks that will help improve the security of the subscription proactively * @param options The options parameters. */ - public list( - options?: TasksListOptionalParams, - ): PagedAsyncIterableIterator { + public list(options?: TasksListOptionalParams): PagedAsyncIterableIterator { const iter = this.listPagingAll(options); return { next() { @@ -145,11 +143,7 @@ export class TasksImpl implements Tasks { yield page; } while (continuationToken) { - result = await this._listByHomeRegionNext( - ascLocation, - continuationToken, - options, - ); + result = await this._listByHomeRegionNext(ascLocation, continuationToken, options); continuationToken = result.nextLink; let page = result.value || []; setContinuationToken(page, continuationToken); @@ -161,10 +155,7 @@ export class TasksImpl implements Tasks { ascLocation: string, options?: TasksListByHomeRegionOptionalParams, ): AsyncIterableIterator { - for await (const page of this.listByHomeRegionPagingPage( - ascLocation, - options, - )) { + for await (const page of this.listByHomeRegionPagingPage(ascLocation, options)) { yield* page; } } @@ -182,11 +173,7 @@ export class TasksImpl implements Tasks { ascLocation: string, options?: TasksListByResourceGroupOptionalParams, ): PagedAsyncIterableIterator { - const iter = this.listByResourceGroupPagingAll( - resourceGroupName, - ascLocation, - options, - ); + const iter = this.listByResourceGroupPagingAll(resourceGroupName, ascLocation, options); return { next() { return iter.next(); @@ -217,11 +204,7 @@ export class TasksImpl implements Tasks { let result: TasksListByResourceGroupResponse; let continuationToken = settings?.continuationToken; if (!continuationToken) { - result = await this._listByResourceGroup( - resourceGroupName, - ascLocation, - options, - ); + result = await this._listByResourceGroup(resourceGroupName, ascLocation, options); let page = result.value || []; continuationToken = result.nextLink; setContinuationToken(page, continuationToken); @@ -395,10 +378,7 @@ export class TasksImpl implements Tasks { nextLink: string, options?: TasksListNextOptionalParams, ): Promise { - return this.client.sendOperationRequest( - { nextLink, options }, - listNextOperationSpec, - ); + return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec); } /** @@ -471,11 +451,7 @@ const listByHomeRegionOperationSpec: coreClient.OperationSpec = { }, }, queryParameters: [Parameters.apiVersion, Parameters.filter], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.ascLocation, - ], + urlParameters: [Parameters.$host, Parameters.subscriptionId, Parameters.ascLocation], headerParameters: [Parameters.accept], serializer, }; @@ -500,27 +476,26 @@ const getSubscriptionLevelTaskOperationSpec: coreClient.OperationSpec = { headerParameters: [Parameters.accept], serializer, }; -const updateSubscriptionLevelTaskStateOperationSpec: coreClient.OperationSpec = - { - path: "/subscriptions/{subscriptionId}/providers/Microsoft.Security/locations/{ascLocation}/tasks/{taskName}/{taskUpdateActionType}", - httpMethod: "POST", - responses: { - 204: {}, - default: { - bodyMapper: Mappers.CloudError, - }, +const updateSubscriptionLevelTaskStateOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Security/locations/{ascLocation}/tasks/{taskName}/{taskUpdateActionType}", + httpMethod: "POST", + responses: { + 204: {}, + default: { + bodyMapper: Mappers.CloudError, }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.ascLocation, - Parameters.taskName, - Parameters.taskUpdateActionType, - ], - headerParameters: [Parameters.accept], - serializer, - }; + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.ascLocation, + Parameters.taskName, + Parameters.taskUpdateActionType, + ], + headerParameters: [Parameters.accept], + serializer, +}; const listByResourceGroupOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/locations/{ascLocation}/tasks", httpMethod: "GET", @@ -564,28 +539,27 @@ const getResourceGroupLevelTaskOperationSpec: coreClient.OperationSpec = { headerParameters: [Parameters.accept], serializer, }; -const updateResourceGroupLevelTaskStateOperationSpec: coreClient.OperationSpec = - { - path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/locations/{ascLocation}/tasks/{taskName}/{taskUpdateActionType}", - httpMethod: "POST", - responses: { - 204: {}, - default: { - bodyMapper: Mappers.CloudError, - }, +const updateResourceGroupLevelTaskStateOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/locations/{ascLocation}/tasks/{taskName}/{taskUpdateActionType}", + httpMethod: "POST", + responses: { + 204: {}, + default: { + bodyMapper: Mappers.CloudError, }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.ascLocation, - Parameters.taskName, - Parameters.taskUpdateActionType, - Parameters.resourceGroupName, - ], - headerParameters: [Parameters.accept], - serializer, - }; + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.ascLocation, + Parameters.taskName, + Parameters.taskUpdateActionType, + Parameters.resourceGroupName, + ], + headerParameters: [Parameters.accept], + serializer, +}; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", @@ -597,11 +571,7 @@ const listNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError, }, }, - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.nextLink, - ], + urlParameters: [Parameters.$host, Parameters.subscriptionId, Parameters.nextLink], headerParameters: [Parameters.accept], serializer, }; diff --git a/sdk/security/arm-security/src/operations/topology.ts b/sdk/security/arm-security/src/operations/topology.ts index 67ee7a32c1d2..b668c2315e54 100644 --- a/sdk/security/arm-security/src/operations/topology.ts +++ b/sdk/security/arm-security/src/operations/topology.ts @@ -44,9 +44,7 @@ export class TopologyImpl implements Topology { * Gets a list that allows to build a topology view of a subscription. * @param options The options parameters. */ - public list( - options?: TopologyListOptionalParams, - ): PagedAsyncIterableIterator { + public list(options?: TopologyListOptionalParams): PagedAsyncIterableIterator { const iter = this.listPagingAll(options); return { next() { @@ -136,11 +134,7 @@ export class TopologyImpl implements Topology { yield page; } while (continuationToken) { - result = await this._listByHomeRegionNext( - ascLocation, - continuationToken, - options, - ); + result = await this._listByHomeRegionNext(ascLocation, continuationToken, options); continuationToken = result.nextLink; let page = result.value || []; setContinuationToken(page, continuationToken); @@ -152,10 +146,7 @@ export class TopologyImpl implements Topology { ascLocation: string, options?: TopologyListByHomeRegionOptionalParams, ): AsyncIterableIterator { - for await (const page of this.listByHomeRegionPagingPage( - ascLocation, - options, - )) { + for await (const page of this.listByHomeRegionPagingPage(ascLocation, options)) { yield* page; } } @@ -164,9 +155,7 @@ export class TopologyImpl implements Topology { * Gets a list that allows to build a topology view of a subscription. * @param options The options parameters. */ - private _list( - options?: TopologyListOptionalParams, - ): Promise { + private _list(options?: TopologyListOptionalParams): Promise { return this.client.sendOperationRequest({ options }, listOperationSpec); } @@ -216,10 +205,7 @@ export class TopologyImpl implements Topology { nextLink: string, options?: TopologyListNextOptionalParams, ): Promise { - return this.client.sendOperationRequest( - { nextLink, options }, - listNextOperationSpec, - ); + return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec); } /** @@ -271,11 +257,7 @@ const listByHomeRegionOperationSpec: coreClient.OperationSpec = { }, }, queryParameters: [Parameters.apiVersion20], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.ascLocation, - ], + urlParameters: [Parameters.$host, Parameters.subscriptionId, Parameters.ascLocation], headerParameters: [Parameters.accept], serializer, }; @@ -312,11 +294,7 @@ const listNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError, }, }, - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.nextLink, - ], + urlParameters: [Parameters.$host, Parameters.subscriptionId, Parameters.nextLink], headerParameters: [Parameters.accept], serializer, }; diff --git a/sdk/security/arm-security/src/operations/workspaceSettings.ts b/sdk/security/arm-security/src/operations/workspaceSettings.ts index 2b58a22c81df..ed746db4232b 100644 --- a/sdk/security/arm-security/src/operations/workspaceSettings.ts +++ b/sdk/security/arm-security/src/operations/workspaceSettings.ts @@ -117,10 +117,7 @@ export class WorkspaceSettingsImpl implements WorkspaceSettings { workspaceSettingName: string, options?: WorkspaceSettingsGetOptionalParams, ): Promise { - return this.client.sendOperationRequest( - { workspaceSettingName, options }, - getOperationSpec, - ); + return this.client.sendOperationRequest({ workspaceSettingName, options }, getOperationSpec); } /** @@ -167,10 +164,7 @@ export class WorkspaceSettingsImpl implements WorkspaceSettings { workspaceSettingName: string, options?: WorkspaceSettingsDeleteOptionalParams, ): Promise { - return this.client.sendOperationRequest( - { workspaceSettingName, options }, - deleteOperationSpec, - ); + return this.client.sendOperationRequest({ workspaceSettingName, options }, deleteOperationSpec); } /** @@ -182,10 +176,7 @@ export class WorkspaceSettingsImpl implements WorkspaceSettings { nextLink: string, options?: WorkspaceSettingsListNextOptionalParams, ): Promise { - return this.client.sendOperationRequest( - { nextLink, options }, - listNextOperationSpec, - ); + return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec); } } // Operation Specifications @@ -219,11 +210,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, }, queryParameters: [Parameters.apiVersion1], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.workspaceSettingName, - ], + urlParameters: [Parameters.$host, Parameters.subscriptionId, Parameters.workspaceSettingName], headerParameters: [Parameters.accept], serializer, }; @@ -240,11 +227,7 @@ const createOperationSpec: coreClient.OperationSpec = { }, requestBody: Parameters.workspaceSetting, queryParameters: [Parameters.apiVersion1], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.workspaceSettingName, - ], + urlParameters: [Parameters.$host, Parameters.subscriptionId, Parameters.workspaceSettingName], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer, @@ -262,11 +245,7 @@ const updateOperationSpec: coreClient.OperationSpec = { }, requestBody: Parameters.workspaceSetting, queryParameters: [Parameters.apiVersion1], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.workspaceSettingName, - ], + urlParameters: [Parameters.$host, Parameters.subscriptionId, Parameters.workspaceSettingName], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer, @@ -281,11 +260,7 @@ const deleteOperationSpec: coreClient.OperationSpec = { }, }, queryParameters: [Parameters.apiVersion1], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.workspaceSettingName, - ], + urlParameters: [Parameters.$host, Parameters.subscriptionId, Parameters.workspaceSettingName], headerParameters: [Parameters.accept], serializer, }; @@ -300,11 +275,7 @@ const listNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError, }, }, - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.nextLink, - ], + urlParameters: [Parameters.$host, Parameters.subscriptionId, Parameters.nextLink], 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 48d0e59973e9..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/index.js"; - -/** 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 e0475dba54aa..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/index.js"; - -/// -/** 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/applicationOperations.ts b/sdk/security/arm-security/src/operationsInterfaces/applicationOperations.ts index cdc7102eef7e..2335367d3030 100644 --- a/sdk/security/arm-security/src/operationsInterfaces/applicationOperations.ts +++ b/sdk/security/arm-security/src/operationsInterfaces/applicationOperations.ts @@ -42,8 +42,5 @@ export interface ApplicationOperations { * @param applicationId The security Application key - unique key for the standard application * @param options The options parameters. */ - delete( - applicationId: string, - options?: ApplicationDeleteOptionalParams, - ): Promise; + delete(applicationId: string, options?: ApplicationDeleteOptionalParams): Promise; } diff --git a/sdk/security/arm-security/src/operationsInterfaces/applications.ts b/sdk/security/arm-security/src/operationsInterfaces/applications.ts index 2133244e5b37..d3bb6c74336c 100644 --- a/sdk/security/arm-security/src/operationsInterfaces/applications.ts +++ b/sdk/security/arm-security/src/operationsInterfaces/applications.ts @@ -16,7 +16,5 @@ export interface Applications { * Get a list of all relevant applications over a subscription level scope * @param options The options parameters. */ - list( - options?: ApplicationsListOptionalParams, - ): PagedAsyncIterableIterator; + list(options?: ApplicationsListOptionalParams): PagedAsyncIterableIterator; } diff --git a/sdk/security/arm-security/src/operationsInterfaces/automations.ts b/sdk/security/arm-security/src/operationsInterfaces/automations.ts index f20f268a4f83..770418d195b2 100644 --- a/sdk/security/arm-security/src/operationsInterfaces/automations.ts +++ b/sdk/security/arm-security/src/operationsInterfaces/automations.ts @@ -31,9 +31,7 @@ export interface Automations { * response to get the next page of security automations for the specified subscription. * @param options The options parameters. */ - list( - options?: AutomationsListOptionalParams, - ): PagedAsyncIterableIterator; + list(options?: AutomationsListOptionalParams): PagedAsyncIterableIterator; /** * Lists all the security automations in the specified resource group. Use the 'nextLink' property in * the response to get the next page of security automations for the specified resource group. diff --git a/sdk/security/arm-security/src/operationsInterfaces/azureDevOpsOrgs.ts b/sdk/security/arm-security/src/operationsInterfaces/azureDevOpsOrgs.ts index 71a304b58c75..dfbee7f874cc 100644 --- a/sdk/security/arm-security/src/operationsInterfaces/azureDevOpsOrgs.ts +++ b/sdk/security/arm-security/src/operationsInterfaces/azureDevOpsOrgs.ts @@ -110,10 +110,7 @@ export interface AzureDevOpsOrgs { azureDevOpsOrg: AzureDevOpsOrg, options?: AzureDevOpsOrgsUpdateOptionalParams, ): Promise< - SimplePollerLike< - OperationState, - AzureDevOpsOrgsUpdateResponse - > + SimplePollerLike, AzureDevOpsOrgsUpdateResponse> >; /** * Updates monitored Azure DevOps organization details. diff --git a/sdk/security/arm-security/src/operationsInterfaces/azureDevOpsRepos.ts b/sdk/security/arm-security/src/operationsInterfaces/azureDevOpsRepos.ts index bdb15948c040..d5083fcd5bc9 100644 --- a/sdk/security/arm-security/src/operationsInterfaces/azureDevOpsRepos.ts +++ b/sdk/security/arm-security/src/operationsInterfaces/azureDevOpsRepos.ts @@ -116,10 +116,7 @@ export interface AzureDevOpsRepos { azureDevOpsRepository: AzureDevOpsRepository, options?: AzureDevOpsReposUpdateOptionalParams, ): Promise< - SimplePollerLike< - OperationState, - AzureDevOpsReposUpdateResponse - > + SimplePollerLike, AzureDevOpsReposUpdateResponse> >; /** * Updates a monitored Azure DevOps repository resource. diff --git a/sdk/security/arm-security/src/operationsInterfaces/connectors.ts b/sdk/security/arm-security/src/operationsInterfaces/connectors.ts index acf305f44266..6553f723693a 100644 --- a/sdk/security/arm-security/src/operationsInterfaces/connectors.ts +++ b/sdk/security/arm-security/src/operationsInterfaces/connectors.ts @@ -24,18 +24,13 @@ export interface Connectors { * Cloud accounts connectors of a subscription * @param options The options parameters. */ - list( - options?: ConnectorsListOptionalParams, - ): PagedAsyncIterableIterator; + list(options?: ConnectorsListOptionalParams): PagedAsyncIterableIterator; /** * Details of a specific cloud account connector * @param connectorName Name of the cloud account connector * @param options The options parameters. */ - get( - connectorName: string, - options?: ConnectorsGetOptionalParams, - ): Promise; + get(connectorName: string, options?: ConnectorsGetOptionalParams): Promise; /** * Create a cloud account connector or update an existing one. Connect to your cloud account. For AWS, * use either account credentials or role-based authentication. For GCP, use account organization @@ -54,8 +49,5 @@ export interface Connectors { * @param connectorName Name of the cloud account connector * @param options The options parameters. */ - delete( - connectorName: string, - options?: ConnectorsDeleteOptionalParams, - ): Promise; + delete(connectorName: string, options?: ConnectorsDeleteOptionalParams): Promise; } diff --git a/sdk/security/arm-security/src/operationsInterfaces/customRecommendations.ts b/sdk/security/arm-security/src/operationsInterfaces/customRecommendations.ts new file mode 100644 index 000000000000..8724eda714bb --- /dev/null +++ b/sdk/security/arm-security/src/operationsInterfaces/customRecommendations.ts @@ -0,0 +1,79 @@ +/* + * 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 { + CustomRecommendation, + CustomRecommendationsListOptionalParams, + CustomRecommendationsGetOptionalParams, + CustomRecommendationsGetResponse, + CustomRecommendationsCreateOrUpdateOptionalParams, + CustomRecommendationsCreateOrUpdateResponse, + CustomRecommendationsDeleteOptionalParams, +} from "../models/index.js"; + +/// +/** Interface representing a CustomRecommendations. */ +export interface CustomRecommendations { + /** + * Get a list of all relevant custom recommendations over a scope + * @param scope The scope of the custom recommendation. Valid scopes are: management group (format: + * 'providers/Microsoft.Management/managementGroups/{managementGroup}'), subscription (format: + * 'subscriptions/{subscriptionId}'), or security connector (format: + * 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName})' + * @param options The options parameters. + */ + list( + scope: string, + options?: CustomRecommendationsListOptionalParams, + ): PagedAsyncIterableIterator; + /** + * Get a specific custom recommendation for the requested scope by customRecommendationName + * @param scope The scope of the custom recommendation. Valid scopes are: management group (format: + * 'providers/Microsoft.Management/managementGroups/{managementGroup}'), subscription (format: + * 'subscriptions/{subscriptionId}'), or security connector (format: + * 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName})' + * @param customRecommendationName Name of the Custom Recommendation. + * @param options The options parameters. + */ + get( + scope: string, + customRecommendationName: string, + options?: CustomRecommendationsGetOptionalParams, + ): Promise; + /** + * Creates or updates a custom recommendation over a given scope + * @param scope The scope of the custom recommendation. Valid scopes are: management group (format: + * 'providers/Microsoft.Management/managementGroups/{managementGroup}'), subscription (format: + * 'subscriptions/{subscriptionId}'), or security connector (format: + * 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName})' + * @param customRecommendationName Name of the Custom Recommendation. + * @param customRecommendationBody Custom Recommendation body + * @param options The options parameters. + */ + createOrUpdate( + scope: string, + customRecommendationName: string, + customRecommendationBody: CustomRecommendation, + options?: CustomRecommendationsCreateOrUpdateOptionalParams, + ): Promise; + /** + * Delete a custom recommendation over a given scope + * @param scope The scope of the custom recommendation. Valid scopes are: management group (format: + * 'providers/Microsoft.Management/managementGroups/{managementGroup}'), subscription (format: + * 'subscriptions/{subscriptionId}'), or security connector (format: + * 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName})' + * @param customRecommendationName Name of the Custom Recommendation. + * @param options The options parameters. + */ + delete( + scope: string, + customRecommendationName: string, + options?: CustomRecommendationsDeleteOptionalParams, + ): Promise; +} diff --git a/sdk/security/arm-security/src/operationsInterfaces/defenderForStorage.ts b/sdk/security/arm-security/src/operationsInterfaces/defenderForStorage.ts index 65c874d17ce9..7e4f2d45f285 100644 --- a/sdk/security/arm-security/src/operationsInterfaces/defenderForStorage.ts +++ b/sdk/security/arm-security/src/operationsInterfaces/defenderForStorage.ts @@ -7,12 +7,18 @@ */ import { - SettingName, + SettingNameAutoGenerated, DefenderForStorageGetOptionalParams, DefenderForStorageGetResponse, DefenderForStorageSetting, DefenderForStorageCreateOptionalParams, DefenderForStorageCreateResponse, + DefenderForStorageStartMalwareScanOptionalParams, + DefenderForStorageStartMalwareScanResponse, + DefenderForStorageCancelMalwareScanOptionalParams, + DefenderForStorageCancelMalwareScanResponse, + DefenderForStorageGetMalwareScanOptionalParams, + DefenderForStorageGetMalwareScanResponse, } from "../models/index.js"; /** Interface representing a DefenderForStorage. */ @@ -25,7 +31,7 @@ export interface DefenderForStorage { */ get( resourceId: string, - settingName: SettingName, + settingName: SettingNameAutoGenerated, options?: DefenderForStorageGetOptionalParams, ): Promise; /** @@ -37,8 +43,45 @@ export interface DefenderForStorage { */ create( resourceId: string, - settingName: SettingName, + settingName: SettingNameAutoGenerated, defenderForStorageSetting: DefenderForStorageSetting, options?: DefenderForStorageCreateOptionalParams, ): Promise; + /** + * Initiate a Defender for Storage malware scan for the specified storage account. + * @param resourceId The identifier of the resource. + * @param settingName Defender for Storage setting name. + * @param options The options parameters. + */ + startMalwareScan( + resourceId: string, + settingName: SettingNameAutoGenerated, + options?: DefenderForStorageStartMalwareScanOptionalParams, + ): Promise; + /** + * Cancels a Defender for Storage malware scan for the specified storage account. + * @param resourceId The identifier of the resource. + * @param settingName Defender for Storage setting name. + * @param scanId The identifier of the scan. Can be either 'latest' or a GUID. + * @param options The options parameters. + */ + cancelMalwareScan( + resourceId: string, + settingName: SettingNameAutoGenerated, + scanId: string, + options?: DefenderForStorageCancelMalwareScanOptionalParams, + ): Promise; + /** + * Gets the Defender for Storage malware scan for the specified storage resource. + * @param resourceId The identifier of the resource. + * @param settingName Defender for Storage setting name. + * @param scanId The identifier of the scan. Can be either 'latest' or a GUID. + * @param options The options parameters. + */ + getMalwareScan( + resourceId: string, + settingName: SettingNameAutoGenerated, + scanId: string, + options?: DefenderForStorageGetMalwareScanOptionalParams, + ): Promise; } diff --git a/sdk/security/arm-security/src/operationsInterfaces/gitLabSubgroups.ts b/sdk/security/arm-security/src/operationsInterfaces/gitLabSubgroups.ts index 8ea3db5c31ff..a555dbda1150 100644 --- a/sdk/security/arm-security/src/operationsInterfaces/gitLabSubgroups.ts +++ b/sdk/security/arm-security/src/operationsInterfaces/gitLabSubgroups.ts @@ -6,10 +6,7 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import { - GitLabSubgroupsListOptionalParams, - GitLabSubgroupsListResponse, -} from "../models/index.js"; +import { GitLabSubgroupsListOptionalParams, GitLabSubgroupsListResponse } from "../models/index.js"; /** Interface representing a GitLabSubgroups. */ export interface GitLabSubgroups { diff --git a/sdk/security/arm-security/src/operationsInterfaces/governanceRules.ts b/sdk/security/arm-security/src/operationsInterfaces/governanceRules.ts index 529075627aa4..a551a87ce2a4 100644 --- a/sdk/security/arm-security/src/operationsInterfaces/governanceRules.ts +++ b/sdk/security/arm-security/src/operationsInterfaces/governanceRules.ts @@ -109,10 +109,7 @@ export interface GovernanceRules { ruleId: string, options?: GovernanceRulesExecuteOptionalParams, ): Promise< - SimplePollerLike< - OperationState, - GovernanceRulesExecuteResponse - > + SimplePollerLike, GovernanceRulesExecuteResponse> >; /** * Execute a governance rule diff --git a/sdk/security/arm-security/src/operationsInterfaces/index.ts b/sdk/security/arm-security/src/operationsInterfaces/index.ts index 129b6240965a..f8d0036d9719 100644 --- a/sdk/security/arm-security/src/operationsInterfaces/index.ts +++ b/sdk/security/arm-security/src/operationsInterfaces/index.ts @@ -7,20 +7,17 @@ */ export * from "./locations.js"; -export * from "./operations.js"; export * from "./tasks.js"; export * from "./autoProvisioningSettings.js"; export * from "./compliances.js"; export * from "./informationProtectionPolicies.js"; export * from "./workspaceSettings.js"; export * from "./alertsSuppressionRules.js"; -export * from "./automations.js"; export * from "./regulatoryComplianceStandards.js"; export * from "./regulatoryComplianceControls.js"; export * from "./regulatoryComplianceAssessments.js"; export * from "./subAssessments.js"; export * from "./connectors.js"; -export * from "./securityContacts.js"; export * from "./softwareInventories.js"; export * from "./customAssessmentAutomations.js"; export * from "./customEntityStoreAssignments.js"; @@ -31,24 +28,16 @@ export * from "./applications.js"; export * from "./applicationOperations.js"; export * from "./securityConnectorApplications.js"; export * from "./securityConnectorApplication.js"; -export * from "./defenderForStorage.js"; export * from "./securityOperators.js"; export * from "./sqlVulnerabilityAssessmentBaselineRules.js"; export * from "./sqlVulnerabilityAssessmentScans.js"; export * from "./sqlVulnerabilityAssessmentScanResults.js"; export * from "./sensitivitySettings.js"; export * from "./healthReports.js"; -export * from "./azureDevOpsOrgs.js"; -export * from "./azureDevOpsProjects.js"; -export * from "./azureDevOpsRepos.js"; -export * from "./devOpsConfigurations.js"; -export * from "./gitHubOwners.js"; -export * from "./gitHubRepos.js"; -export * from "./gitLabGroups.js"; -export * from "./gitLabSubgroups.js"; -export * from "./gitLabProjects.js"; -export * from "./devOpsOperationResults.js"; +export * from "./automations.js"; +export * from "./securityContacts.js"; export * from "./securityConnectors.js"; +export * from "./operations.js"; export * from "./complianceResults.js"; export * from "./advancedThreatProtection.js"; export * from "./deviceSecurityGroups.js"; @@ -56,9 +45,7 @@ export * from "./iotSecuritySolutionAnalytics.js"; export * from "./iotSecuritySolutionsAnalyticsAggregatedAlert.js"; export * from "./iotSecuritySolutionsAnalyticsRecommendation.js"; export * from "./iotSecuritySolution.js"; -export * from "./adaptiveNetworkHardenings.js"; export * from "./allowedConnections.js"; -export * from "./adaptiveApplicationControls.js"; export * from "./discoveredSecuritySolutions.js"; export * from "./externalSecuritySolutions.js"; export * from "./jitNetworkAccessPolicies.js"; @@ -76,3 +63,17 @@ export * from "./settings.js"; export * from "./serverVulnerabilityAssessmentsSettings.js"; export * from "./aPICollections.js"; export * from "./pricings.js"; +export * from "./securityStandards.js"; +export * from "./standardAssignments.js"; +export * from "./customRecommendations.js"; +export * from "./defenderForStorage.js"; +export * from "./azureDevOpsOrgs.js"; +export * from "./azureDevOpsProjects.js"; +export * from "./azureDevOpsRepos.js"; +export * from "./devOpsConfigurations.js"; +export * from "./gitHubOwners.js"; +export * from "./gitHubRepos.js"; +export * from "./gitLabGroups.js"; +export * from "./gitLabSubgroups.js"; +export * from "./gitLabProjects.js"; +export * from "./devOpsOperationResults.js"; diff --git a/sdk/security/arm-security/src/operationsInterfaces/locations.ts b/sdk/security/arm-security/src/operationsInterfaces/locations.ts index 5b7232606c82..57adf6d41918 100644 --- a/sdk/security/arm-security/src/operationsInterfaces/locations.ts +++ b/sdk/security/arm-security/src/operationsInterfaces/locations.ts @@ -23,17 +23,12 @@ export interface Locations { * read or write other resources in ASC according to their ID. * @param options The options parameters. */ - list( - options?: LocationsListOptionalParams, - ): PagedAsyncIterableIterator; + list(options?: LocationsListOptionalParams): PagedAsyncIterableIterator; /** * Details of a specific location * @param ascLocation The location where ASC stores the data of the subscription. can be retrieved from * Get locations * @param options The options parameters. */ - get( - ascLocation: string, - options?: LocationsGetOptionalParams, - ): Promise; + get(ascLocation: string, options?: LocationsGetOptionalParams): Promise; } diff --git a/sdk/security/arm-security/src/operationsInterfaces/mdeOnboardings.ts b/sdk/security/arm-security/src/operationsInterfaces/mdeOnboardings.ts index a384cb26da26..e4f56374e4ea 100644 --- a/sdk/security/arm-security/src/operationsInterfaces/mdeOnboardings.ts +++ b/sdk/security/arm-security/src/operationsInterfaces/mdeOnboardings.ts @@ -19,14 +19,10 @@ export interface MdeOnboardings { * The configuration or data needed to onboard the machine to MDE * @param options The options parameters. */ - list( - options?: MdeOnboardingsListOptionalParams, - ): Promise; + list(options?: MdeOnboardingsListOptionalParams): Promise; /** * The default configuration or data needed to onboard the machine to MDE * @param options The options parameters. */ - get( - options?: MdeOnboardingsGetOptionalParams, - ): Promise; + get(options?: MdeOnboardingsGetOptionalParams): Promise; } diff --git a/sdk/security/arm-security/src/operationsInterfaces/operations.ts b/sdk/security/arm-security/src/operationsInterfaces/operations.ts index 43bb4fdae730..4ee154126836 100644 --- a/sdk/security/arm-security/src/operationsInterfaces/operations.ts +++ b/sdk/security/arm-security/src/operationsInterfaces/operations.ts @@ -16,7 +16,5 @@ export interface Operations { * Exposes all available operations for discovery purposes. * @param options The options parameters. */ - list( - options?: OperationsListOptionalParams, - ): PagedAsyncIterableIterator; + list(options?: OperationsListOptionalParams): PagedAsyncIterableIterator; } diff --git a/sdk/security/arm-security/src/operationsInterfaces/pricings.ts b/sdk/security/arm-security/src/operationsInterfaces/pricings.ts index 11a1214c7385..f3f4d9dca9ca 100644 --- a/sdk/security/arm-security/src/operationsInterfaces/pricings.ts +++ b/sdk/security/arm-security/src/operationsInterfaces/pricings.ts @@ -79,8 +79,5 @@ export interface Pricings { * - Supported resources are (VirtualMachines) * @param options The options parameters. */ - list( - scopeId: string, - options?: PricingsListOptionalParams, - ): Promise; + list(scopeId: string, options?: PricingsListOptionalParams): Promise; } diff --git a/sdk/security/arm-security/src/operationsInterfaces/secureScores.ts b/sdk/security/arm-security/src/operationsInterfaces/secureScores.ts index c8ca8eb4adaa..20df7175dab7 100644 --- a/sdk/security/arm-security/src/operationsInterfaces/secureScores.ts +++ b/sdk/security/arm-security/src/operationsInterfaces/secureScores.ts @@ -21,9 +21,7 @@ export interface SecureScores { * List secure scores for all your Microsoft Defender for Cloud initiatives within your current scope. * @param options The options parameters. */ - list( - options?: SecureScoresListOptionalParams, - ): PagedAsyncIterableIterator; + list(options?: SecureScoresListOptionalParams): PagedAsyncIterableIterator; /** * Get secure score for a specific Microsoft Defender for Cloud initiative within your current scope. * For the ASC Default initiative, use 'ascScore'. diff --git a/sdk/security/arm-security/src/operationsInterfaces/securityConnectorApplications.ts b/sdk/security/arm-security/src/operationsInterfaces/securityConnectorApplications.ts index 07154e7f969b..5baf4f345c49 100644 --- a/sdk/security/arm-security/src/operationsInterfaces/securityConnectorApplications.ts +++ b/sdk/security/arm-security/src/operationsInterfaces/securityConnectorApplications.ts @@ -7,10 +7,7 @@ */ import { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { - Application, - SecurityConnectorApplicationsListOptionalParams, -} from "../models/index.js"; +import { Application, SecurityConnectorApplicationsListOptionalParams } from "../models/index.js"; /// /** Interface representing a SecurityConnectorApplications. */ diff --git a/sdk/security/arm-security/src/operationsInterfaces/securityContacts.ts b/sdk/security/arm-security/src/operationsInterfaces/securityContacts.ts index 3c0b2c9d0fd6..1698e63747ed 100644 --- a/sdk/security/arm-security/src/operationsInterfaces/securityContacts.ts +++ b/sdk/security/arm-security/src/operationsInterfaces/securityContacts.ts @@ -25,9 +25,7 @@ export interface SecurityContacts { * List all security contact configurations for the subscription * @param options The options parameters. */ - list( - options?: SecurityContactsListOptionalParams, - ): PagedAsyncIterableIterator; + list(options?: SecurityContactsListOptionalParams): PagedAsyncIterableIterator; /** * Get Default Security contact configurations for the subscription * @param securityContactName Name of the security contact object diff --git a/sdk/security/arm-security/src/operationsInterfaces/securitySolutions.ts b/sdk/security/arm-security/src/operationsInterfaces/securitySolutions.ts index f88f1c07d24a..b05015177363 100644 --- a/sdk/security/arm-security/src/operationsInterfaces/securitySolutions.ts +++ b/sdk/security/arm-security/src/operationsInterfaces/securitySolutions.ts @@ -21,9 +21,7 @@ export interface SecuritySolutions { * Gets a list of Security Solutions for the subscription. * @param options The options parameters. */ - list( - options?: SecuritySolutionsListOptionalParams, - ): PagedAsyncIterableIterator; + list(options?: SecuritySolutionsListOptionalParams): PagedAsyncIterableIterator; /** * Gets a specific Security Solution. * @param resourceGroupName The name of the resource group within the user's subscription. The name is diff --git a/sdk/security/arm-security/src/operationsInterfaces/securityStandards.ts b/sdk/security/arm-security/src/operationsInterfaces/securityStandards.ts new file mode 100644 index 000000000000..964eabe68f48 --- /dev/null +++ b/sdk/security/arm-security/src/operationsInterfaces/securityStandards.ts @@ -0,0 +1,79 @@ +/* + * 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 { + SecurityStandard, + SecurityStandardsListOptionalParams, + SecurityStandardsGetOptionalParams, + SecurityStandardsGetResponse, + SecurityStandardsCreateOrUpdateOptionalParams, + SecurityStandardsCreateOrUpdateResponse, + SecurityStandardsDeleteOptionalParams, +} from "../models/index.js"; + +/// +/** Interface representing a SecurityStandards. */ +export interface SecurityStandards { + /** + * Get a list of all relevant security standards over a scope + * @param scope The scope of the security standard. Valid scopes are: management group (format: + * 'providers/Microsoft.Management/managementGroups/{managementGroup}'), subscription (format: + * 'subscriptions/{subscriptionId}'), or security connector (format: + * 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName})' + * @param options The options parameters. + */ + list( + scope: string, + options?: SecurityStandardsListOptionalParams, + ): PagedAsyncIterableIterator; + /** + * Get a specific security standard for the requested scope by standardId + * @param scope The scope of the security standard. Valid scopes are: management group (format: + * 'providers/Microsoft.Management/managementGroups/{managementGroup}'), subscription (format: + * 'subscriptions/{subscriptionId}'), or security connector (format: + * 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName})' + * @param standardId The Security Standard key - unique key for the standard type + * @param options The options parameters. + */ + get( + scope: string, + standardId: string, + options?: SecurityStandardsGetOptionalParams, + ): Promise; + /** + * Creates or updates a security standard over a given scope + * @param scope The scope of the security standard. Valid scopes are: management group (format: + * 'providers/Microsoft.Management/managementGroups/{managementGroup}'), subscription (format: + * 'subscriptions/{subscriptionId}'), or security connector (format: + * 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName})' + * @param standardId The Security Standard key - unique key for the standard type + * @param standard Custom security standard over a pre-defined scope + * @param options The options parameters. + */ + createOrUpdate( + scope: string, + standardId: string, + standard: SecurityStandard, + options?: SecurityStandardsCreateOrUpdateOptionalParams, + ): Promise; + /** + * Delete a security standard over a given scope + * @param scope The scope of the security standard. Valid scopes are: management group (format: + * 'providers/Microsoft.Management/managementGroups/{managementGroup}'), subscription (format: + * 'subscriptions/{subscriptionId}'), or security connector (format: + * 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName})' + * @param standardId The Security Standard key - unique key for the standard type + * @param options The options parameters. + */ + delete( + scope: string, + standardId: string, + options?: SecurityStandardsDeleteOptionalParams, + ): Promise; +} diff --git a/sdk/security/arm-security/src/operationsInterfaces/sensitivitySettings.ts b/sdk/security/arm-security/src/operationsInterfaces/sensitivitySettings.ts index 3e509abe87ec..b472deabef48 100644 --- a/sdk/security/arm-security/src/operationsInterfaces/sensitivitySettings.ts +++ b/sdk/security/arm-security/src/operationsInterfaces/sensitivitySettings.ts @@ -7,17 +7,34 @@ */ import { + UpdateSensitivitySettingsRequest, + SensitivitySettingsCreateOrUpdateOptionalParams, + SensitivitySettingsCreateOrUpdateResponse, + SensitivitySettingsGetOptionalParams, + SensitivitySettingsGetResponse, SensitivitySettingsListOptionalParams, SensitivitySettingsListResponse, } from "../models/index.js"; /** 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. */ - list( - options?: SensitivitySettingsListOptionalParams, - ): Promise; + list(options?: SensitivitySettingsListOptionalParams): Promise; } diff --git a/sdk/security/arm-security/src/operationsInterfaces/settings.ts b/sdk/security/arm-security/src/operationsInterfaces/settings.ts index 39b4f988269f..a8674cc45494 100644 --- a/sdk/security/arm-security/src/operationsInterfaces/settings.ts +++ b/sdk/security/arm-security/src/operationsInterfaces/settings.ts @@ -10,7 +10,7 @@ import { PagedAsyncIterableIterator } from "@azure/core-paging"; import { SettingUnion, SettingsListOptionalParams, - SettingNameAutoGenerated, + SettingName, SettingsGetOptionalParams, SettingsGetResponse, SettingsUpdateOptionalParams, @@ -24,18 +24,13 @@ export interface Settings { * Settings about different configurations in Microsoft Defender for Cloud * @param options The options parameters. */ - list( - options?: SettingsListOptionalParams, - ): PagedAsyncIterableIterator; + list(options?: SettingsListOptionalParams): PagedAsyncIterableIterator; /** * Settings of different configurations in Microsoft Defender for Cloud * @param settingName The name of the setting * @param options The options parameters. */ - get( - settingName: SettingNameAutoGenerated, - options?: SettingsGetOptionalParams, - ): Promise; + get(settingName: SettingName, options?: SettingsGetOptionalParams): Promise; /** * updating settings about different configurations in Microsoft Defender for Cloud * @param settingName The name of the setting @@ -43,7 +38,7 @@ export interface Settings { * @param options The options parameters. */ update( - settingName: SettingNameAutoGenerated, + settingName: SettingName, setting: SettingUnion, options?: SettingsUpdateOptionalParams, ): Promise; diff --git a/sdk/security/arm-security/src/operationsInterfaces/standardAssignments.ts b/sdk/security/arm-security/src/operationsInterfaces/standardAssignments.ts new file mode 100644 index 000000000000..cc3d5c019067 --- /dev/null +++ b/sdk/security/arm-security/src/operationsInterfaces/standardAssignments.ts @@ -0,0 +1,78 @@ +/* + * 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 { + StandardAssignment, + StandardAssignmentsListOptionalParams, + StandardAssignmentsGetOptionalParams, + StandardAssignmentsGetResponse, + StandardAssignmentsCreateOptionalParams, + StandardAssignmentsCreateResponse, + StandardAssignmentsDeleteOptionalParams, +} from "../models/index.js"; + +/// +/** Interface representing a StandardAssignments. */ +export interface StandardAssignments { + /** + * Get a list of all relevant standard assignments over a scope + * @param scope The scope of the standard assignment. Valid scopes are: management group (format: + * 'providers/Microsoft.Management/managementGroups/{managementGroup}'), subscription (format: + * 'subscriptions/{subscriptionId}'), or security connector (format: + * 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName})' + * @param options The options parameters. + */ + list( + scope: string, + options?: StandardAssignmentsListOptionalParams, + ): PagedAsyncIterableIterator; + /** + * This operation retrieves a single standard assignment, given its name and the scope it was created + * at. + * @param resourceId The identifier of the resource. + * @param standardAssignmentName The standard assignments assignment key - unique key for the standard + * assignment + * @param options The options parameters. + */ + get( + resourceId: string, + standardAssignmentName: string, + options?: StandardAssignmentsGetOptionalParams, + ): Promise; + /** + * This operation creates or updates a standard assignment with the given scope and name. standard + * assignments apply to all resources contained within their scope. For example, when you assign a + * policy at resource group scope, that policy applies to all resources in the group. + * @param resourceId The identifier of the resource. + * @param standardAssignmentName The standard assignments assignment key - unique key for the standard + * assignment + * @param standardAssignment Custom standard assignment over a pre-defined scope + * @param options The options parameters. + */ + create( + resourceId: string, + standardAssignmentName: string, + standardAssignment: StandardAssignment, + options?: StandardAssignmentsCreateOptionalParams, + ): Promise; + /** + * This operation deletes a standard assignment, given its name and the scope it was created in. The + * scope of a standard assignment is the part of its ID preceding + * '/providers/Microsoft.Security/standardAssignments/{standardAssignmentName}'. + * @param resourceId The identifier of the resource. + * @param standardAssignmentName The standard assignments assignment key - unique key for the standard + * assignment + * @param options The options parameters. + */ + delete( + resourceId: string, + standardAssignmentName: string, + options?: StandardAssignmentsDeleteOptionalParams, + ): Promise; +} diff --git a/sdk/security/arm-security/src/operationsInterfaces/tasks.ts b/sdk/security/arm-security/src/operationsInterfaces/tasks.ts index 30b34bc0dd3e..b6454cf8e936 100644 --- a/sdk/security/arm-security/src/operationsInterfaces/tasks.ts +++ b/sdk/security/arm-security/src/operationsInterfaces/tasks.ts @@ -28,9 +28,7 @@ export interface Tasks { * Recommended tasks that will help improve the security of the subscription proactively * @param options The options parameters. */ - list( - options?: TasksListOptionalParams, - ): PagedAsyncIterableIterator; + list(options?: TasksListOptionalParams): PagedAsyncIterableIterator; /** * Recommended tasks that will help improve the security of the subscription proactively * @param ascLocation The location where ASC stores the data of the subscription. can be retrieved from diff --git a/sdk/security/arm-security/src/operationsInterfaces/topology.ts b/sdk/security/arm-security/src/operationsInterfaces/topology.ts index 32d74b897db1..849bb3add7c5 100644 --- a/sdk/security/arm-security/src/operationsInterfaces/topology.ts +++ b/sdk/security/arm-security/src/operationsInterfaces/topology.ts @@ -22,9 +22,7 @@ export interface Topology { * Gets a list that allows to build a topology view of a subscription. * @param options The options parameters. */ - list( - options?: TopologyListOptionalParams, - ): PagedAsyncIterableIterator; + list(options?: TopologyListOptionalParams): PagedAsyncIterableIterator; /** * Gets a list that allows to build a topology view of a subscription and location. * @param ascLocation The location where ASC stores the data of the subscription. can be retrieved from diff --git a/sdk/security/arm-security/src/operationsInterfaces/workspaceSettings.ts b/sdk/security/arm-security/src/operationsInterfaces/workspaceSettings.ts index 6ebd9864dfb3..92802ec4c4e6 100644 --- a/sdk/security/arm-security/src/operationsInterfaces/workspaceSettings.ts +++ b/sdk/security/arm-security/src/operationsInterfaces/workspaceSettings.ts @@ -27,9 +27,7 @@ export interface WorkspaceSettings { * that no custom-workspace configuration was set * @param options The options parameters. */ - list( - options?: WorkspaceSettingsListOptionalParams, - ): PagedAsyncIterableIterator; + list(options?: WorkspaceSettingsListOptionalParams): PagedAsyncIterableIterator; /** * Settings about where we should store your security data and logs. If the result is empty, it means * that no custom-workspace configuration was set diff --git a/sdk/security/arm-security/src/pagingHelper.ts b/sdk/security/arm-security/src/pagingHelper.ts index 205cccc26592..e362819bdfc4 100644 --- a/sdk/security/arm-security/src/pagingHelper.ts +++ b/sdk/security/arm-security/src/pagingHelper.ts @@ -26,10 +26,7 @@ export function getContinuationToken(page: unknown): string | undefined { return pageMap.get(page)?.continuationToken; } -export function setContinuationToken( - page: unknown, - continuationToken: string | undefined, -): void { +export function setContinuationToken(page: unknown, continuationToken: string | undefined): void { if (typeof page !== "object" || page === null || !continuationToken) { return; } diff --git a/sdk/security/arm-security/src/securityCenter.ts b/sdk/security/arm-security/src/securityCenter.ts index b8bb52419619..289a85203f4a 100644 --- a/sdk/security/arm-security/src/securityCenter.ts +++ b/sdk/security/arm-security/src/securityCenter.ts @@ -11,20 +11,17 @@ import * as coreRestPipeline from "@azure/core-rest-pipeline"; import * as coreAuth from "@azure/core-auth"; import { LocationsImpl, - OperationsImpl, TasksImpl, AutoProvisioningSettingsImpl, CompliancesImpl, InformationProtectionPoliciesImpl, WorkspaceSettingsImpl, AlertsSuppressionRulesImpl, - AutomationsImpl, RegulatoryComplianceStandardsImpl, RegulatoryComplianceControlsImpl, RegulatoryComplianceAssessmentsImpl, SubAssessmentsImpl, ConnectorsImpl, - SecurityContactsImpl, SoftwareInventoriesImpl, CustomAssessmentAutomationsImpl, CustomEntityStoreAssignmentsImpl, @@ -35,24 +32,16 @@ import { ApplicationOperationsImpl, SecurityConnectorApplicationsImpl, SecurityConnectorApplicationImpl, - DefenderForStorageImpl, SecurityOperatorsImpl, SqlVulnerabilityAssessmentBaselineRulesImpl, SqlVulnerabilityAssessmentScansImpl, SqlVulnerabilityAssessmentScanResultsImpl, SensitivitySettingsImpl, HealthReportsImpl, - AzureDevOpsOrgsImpl, - AzureDevOpsProjectsImpl, - AzureDevOpsReposImpl, - DevOpsConfigurationsImpl, - GitHubOwnersImpl, - GitHubReposImpl, - GitLabGroupsImpl, - GitLabSubgroupsImpl, - GitLabProjectsImpl, - DevOpsOperationResultsImpl, + AutomationsImpl, + SecurityContactsImpl, SecurityConnectorsImpl, + OperationsImpl, ComplianceResultsImpl, AdvancedThreatProtectionImpl, DeviceSecurityGroupsImpl, @@ -60,9 +49,7 @@ import { IotSecuritySolutionsAnalyticsAggregatedAlertImpl, IotSecuritySolutionsAnalyticsRecommendationImpl, IotSecuritySolutionImpl, - AdaptiveNetworkHardeningsImpl, AllowedConnectionsImpl, - AdaptiveApplicationControlsImpl, DiscoveredSecuritySolutionsImpl, ExternalSecuritySolutionsImpl, JitNetworkAccessPoliciesImpl, @@ -80,23 +67,34 @@ import { ServerVulnerabilityAssessmentsSettingsImpl, APICollectionsImpl, PricingsImpl, + SecurityStandardsImpl, + StandardAssignmentsImpl, + CustomRecommendationsImpl, + DefenderForStorageImpl, + AzureDevOpsOrgsImpl, + AzureDevOpsProjectsImpl, + AzureDevOpsReposImpl, + DevOpsConfigurationsImpl, + GitHubOwnersImpl, + GitHubReposImpl, + GitLabGroupsImpl, + GitLabSubgroupsImpl, + GitLabProjectsImpl, + DevOpsOperationResultsImpl, } from "./operations/index.js"; import { Locations, - Operations, Tasks, AutoProvisioningSettings, Compliances, InformationProtectionPolicies, WorkspaceSettings, AlertsSuppressionRules, - Automations, RegulatoryComplianceStandards, RegulatoryComplianceControls, RegulatoryComplianceAssessments, SubAssessments, Connectors, - SecurityContacts, SoftwareInventories, CustomAssessmentAutomations, CustomEntityStoreAssignments, @@ -107,24 +105,16 @@ import { ApplicationOperations, SecurityConnectorApplications, SecurityConnectorApplication, - DefenderForStorage, SecurityOperators, SqlVulnerabilityAssessmentBaselineRules, SqlVulnerabilityAssessmentScans, SqlVulnerabilityAssessmentScanResults, SensitivitySettings, HealthReports, - AzureDevOpsOrgs, - AzureDevOpsProjects, - AzureDevOpsRepos, - DevOpsConfigurations, - GitHubOwners, - GitHubRepos, - GitLabGroups, - GitLabSubgroups, - GitLabProjects, - DevOpsOperationResults, + Automations, + SecurityContacts, SecurityConnectors, + Operations, ComplianceResults, AdvancedThreatProtection, DeviceSecurityGroups, @@ -132,9 +122,7 @@ import { IotSecuritySolutionsAnalyticsAggregatedAlert, IotSecuritySolutionsAnalyticsRecommendation, IotSecuritySolution, - AdaptiveNetworkHardenings, AllowedConnections, - AdaptiveApplicationControls, DiscoveredSecuritySolutions, ExternalSecuritySolutions, JitNetworkAccessPolicies, @@ -152,17 +140,24 @@ import { ServerVulnerabilityAssessmentsSettings, APICollections, Pricings, + SecurityStandards, + StandardAssignments, + CustomRecommendations, + DefenderForStorage, + AzureDevOpsOrgs, + AzureDevOpsProjects, + AzureDevOpsRepos, + DevOpsConfigurations, + GitHubOwners, + GitHubRepos, + GitLabGroups, + GitLabSubgroups, + GitLabProjects, + DevOpsOperationResults, } from "./operationsInterfaces/index.js"; import * as Parameters from "./models/parameters.js"; import * as Mappers from "./models/mappers.js"; -import { - SecurityCenterOptionalParams, - UpdateSensitivitySettingsRequest, - UpdateSensitivitySettingsOptionalParams, - UpdateSensitivitySettingsResponse, - GetSensitivitySettingsOptionalParams, - GetSensitivitySettingsOperationResponse, -} from "./models/index.js"; +import { SecurityCenterOptionalParams, ViewOptionalParams, ViewResponse } from "./models/index.js"; export class SecurityCenter extends coreClient.ServiceClient { $host: string; @@ -179,10 +174,7 @@ export class SecurityCenter extends coreClient.ServiceClient { subscriptionId: string, options?: SecurityCenterOptionalParams, ); - constructor( - credentials: coreAuth.TokenCredential, - options?: SecurityCenterOptionalParams, - ); + constructor(credentials: coreAuth.TokenCredential, options?: SecurityCenterOptionalParams); constructor( credentials: coreAuth.TokenCredential, subscriptionIdOrOptions?: SecurityCenterOptionalParams | string, @@ -221,8 +213,7 @@ export class SecurityCenter extends coreClient.ServiceClient { userAgentOptions: { userAgentPrefix, }, - endpoint: - options.endpoint ?? options.baseUri ?? "https://management.azure.com", + endpoint: options.endpoint ?? options.baseUri ?? "https://management.azure.com", }; super(optionsWithDefaults); @@ -232,8 +223,7 @@ export class SecurityCenter extends coreClient.ServiceClient { options.pipeline.getOrderedPolicies(); bearerTokenAuthenticationPolicyFound = pipelinePolicies.some( (pipelinePolicy) => - pipelinePolicy.name === - coreRestPipeline.bearerTokenAuthenticationPolicyName, + pipelinePolicy.name === coreRestPipeline.bearerTokenAuthenticationPolicyName, ); } if ( @@ -249,11 +239,9 @@ export class SecurityCenter extends coreClient.ServiceClient { coreRestPipeline.bearerTokenAuthenticationPolicy({ credential: credentials, scopes: - optionsWithDefaults.credentialScopes ?? - `${optionsWithDefaults.endpoint}/.default`, + optionsWithDefaults.credentialScopes ?? `${optionsWithDefaults.endpoint}/.default`, challengeCallbacks: { - authorizeRequestOnChallenge: - coreClient.authorizeRequestOnClaimChallenge, + authorizeRequestOnChallenge: coreClient.authorizeRequestOnClaimChallenge, }, }), ); @@ -264,151 +252,109 @@ export class SecurityCenter extends coreClient.ServiceClient { // Assigning values to Constant parameters this.$host = options.$host || "https://management.azure.com"; this.locations = new LocationsImpl(this); - this.operations = new OperationsImpl(this); this.tasks = new TasksImpl(this); this.autoProvisioningSettings = new AutoProvisioningSettingsImpl(this); this.compliances = new CompliancesImpl(this); - this.informationProtectionPolicies = new InformationProtectionPoliciesImpl( - this, - ); + this.informationProtectionPolicies = new InformationProtectionPoliciesImpl(this); this.workspaceSettings = new WorkspaceSettingsImpl(this); this.alertsSuppressionRules = new AlertsSuppressionRulesImpl(this); - this.automations = new AutomationsImpl(this); - this.regulatoryComplianceStandards = new RegulatoryComplianceStandardsImpl( - this, - ); - this.regulatoryComplianceControls = new RegulatoryComplianceControlsImpl( - this, - ); - this.regulatoryComplianceAssessments = - new RegulatoryComplianceAssessmentsImpl(this); + this.regulatoryComplianceStandards = new RegulatoryComplianceStandardsImpl(this); + this.regulatoryComplianceControls = new RegulatoryComplianceControlsImpl(this); + this.regulatoryComplianceAssessments = 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, - ); - this.customEntityStoreAssignments = new CustomEntityStoreAssignmentsImpl( - this, - ); + this.customAssessmentAutomations = new CustomAssessmentAutomationsImpl(this); + this.customEntityStoreAssignments = new CustomEntityStoreAssignmentsImpl(this); this.mdeOnboardings = new MdeOnboardingsImpl(this); this.governanceAssignments = new GovernanceAssignmentsImpl(this); this.governanceRules = new GovernanceRulesImpl(this); this.applications = new ApplicationsImpl(this); this.applicationOperations = new ApplicationOperationsImpl(this); - this.securityConnectorApplications = new SecurityConnectorApplicationsImpl( + this.securityConnectorApplications = new SecurityConnectorApplicationsImpl(this); + this.securityConnectorApplication = new SecurityConnectorApplicationImpl(this); + this.securityOperators = new SecurityOperatorsImpl(this); + this.sqlVulnerabilityAssessmentBaselineRules = new SqlVulnerabilityAssessmentBaselineRulesImpl( this, ); - this.securityConnectorApplication = new SecurityConnectorApplicationImpl( + this.sqlVulnerabilityAssessmentScans = new SqlVulnerabilityAssessmentScansImpl(this); + this.sqlVulnerabilityAssessmentScanResults = new SqlVulnerabilityAssessmentScanResultsImpl( this, ); - this.defenderForStorage = new DefenderForStorageImpl(this); - this.securityOperators = new SecurityOperatorsImpl(this); - this.sqlVulnerabilityAssessmentBaselineRules = - new SqlVulnerabilityAssessmentBaselineRulesImpl(this); - this.sqlVulnerabilityAssessmentScans = - new SqlVulnerabilityAssessmentScansImpl(this); - this.sqlVulnerabilityAssessmentScanResults = - new SqlVulnerabilityAssessmentScanResultsImpl(this); this.sensitivitySettings = new SensitivitySettingsImpl(this); this.healthReports = new HealthReportsImpl(this); - this.azureDevOpsOrgs = new AzureDevOpsOrgsImpl(this); - this.azureDevOpsProjects = new AzureDevOpsProjectsImpl(this); - this.azureDevOpsRepos = new AzureDevOpsReposImpl(this); - this.devOpsConfigurations = new DevOpsConfigurationsImpl(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.automations = new AutomationsImpl(this); + this.securityContacts = new SecurityContactsImpl(this); this.securityConnectors = new SecurityConnectorsImpl(this); + this.operations = new OperationsImpl(this); this.complianceResults = new ComplianceResultsImpl(this); this.advancedThreatProtection = new AdvancedThreatProtectionImpl(this); this.deviceSecurityGroups = new DeviceSecurityGroupsImpl(this); - this.iotSecuritySolutionAnalytics = new IotSecuritySolutionAnalyticsImpl( - this, - ); + this.iotSecuritySolutionAnalytics = new IotSecuritySolutionAnalyticsImpl(this); this.iotSecuritySolutionsAnalyticsAggregatedAlert = new IotSecuritySolutionsAnalyticsAggregatedAlertImpl(this); 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, - ); + this.discoveredSecuritySolutions = new DiscoveredSecuritySolutionsImpl(this); this.externalSecuritySolutions = new ExternalSecuritySolutionsImpl(this); this.jitNetworkAccessPolicies = new JitNetworkAccessPoliciesImpl(this); this.secureScores = new SecureScoresImpl(this); this.secureScoreControls = new SecureScoreControlsImpl(this); - this.secureScoreControlDefinitions = new SecureScoreControlDefinitionsImpl( - this, - ); + this.secureScoreControlDefinitions = new SecureScoreControlDefinitionsImpl(this); this.securitySolutions = new SecuritySolutionsImpl(this); this.securitySolutionsReferenceDataOperations = new SecuritySolutionsReferenceDataOperationsImpl(this); - this.serverVulnerabilityAssessmentOperations = - new ServerVulnerabilityAssessmentOperationsImpl(this); + this.serverVulnerabilityAssessmentOperations = new ServerVulnerabilityAssessmentOperationsImpl( + this, + ); this.topology = new TopologyImpl(this); this.assessmentsMetadata = new AssessmentsMetadataImpl(this); this.assessments = new AssessmentsImpl(this); this.alerts = new AlertsImpl(this); this.settings = new SettingsImpl(this); - this.serverVulnerabilityAssessmentsSettings = - new ServerVulnerabilityAssessmentsSettingsImpl(this); + this.serverVulnerabilityAssessmentsSettings = new ServerVulnerabilityAssessmentsSettingsImpl( + this, + ); this.aPICollections = new APICollectionsImpl(this); this.pricings = new PricingsImpl(this); + this.securityStandards = new SecurityStandardsImpl(this); + this.standardAssignments = new StandardAssignmentsImpl(this); + this.customRecommendations = new CustomRecommendationsImpl(this); + this.defenderForStorage = new DefenderForStorageImpl(this); + this.azureDevOpsOrgs = new AzureDevOpsOrgsImpl(this); + this.azureDevOpsProjects = new AzureDevOpsProjectsImpl(this); + this.azureDevOpsRepos = new AzureDevOpsReposImpl(this); + this.devOpsConfigurations = new DevOpsConfigurationsImpl(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); } /** - * 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 + * Fetch Microsoft Defender for Cloud data over a specified view * @param options The options parameters. */ - getSensitivitySettings( - options?: GetSensitivitySettingsOptionalParams, - ): Promise { - return this.sendOperationRequest( - { options }, - getSensitivitySettingsOperationSpec, - ); + view(options?: ViewOptionalParams): Promise { + return this.sendOperationRequest({ options }, viewOperationSpec); } locations: Locations; - operations: Operations; tasks: Tasks; autoProvisioningSettings: AutoProvisioningSettings; compliances: Compliances; 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; @@ -419,24 +365,16 @@ export class SecurityCenter extends coreClient.ServiceClient { applicationOperations: ApplicationOperations; securityConnectorApplications: SecurityConnectorApplications; securityConnectorApplication: SecurityConnectorApplication; - defenderForStorage: DefenderForStorage; securityOperators: SecurityOperators; sqlVulnerabilityAssessmentBaselineRules: SqlVulnerabilityAssessmentBaselineRules; sqlVulnerabilityAssessmentScans: SqlVulnerabilityAssessmentScans; sqlVulnerabilityAssessmentScanResults: SqlVulnerabilityAssessmentScanResults; sensitivitySettings: SensitivitySettings; healthReports: HealthReports; - azureDevOpsOrgs: AzureDevOpsOrgs; - azureDevOpsProjects: AzureDevOpsProjects; - azureDevOpsRepos: AzureDevOpsRepos; - devOpsConfigurations: DevOpsConfigurations; - gitHubOwners: GitHubOwners; - gitHubRepos: GitHubRepos; - gitLabGroups: GitLabGroups; - gitLabSubgroups: GitLabSubgroups; - gitLabProjects: GitLabProjects; - devOpsOperationResults: DevOpsOperationResults; + automations: Automations; + securityContacts: SecurityContacts; securityConnectors: SecurityConnectors; + operations: Operations; complianceResults: ComplianceResults; advancedThreatProtection: AdvancedThreatProtection; deviceSecurityGroups: DeviceSecurityGroups; @@ -444,9 +382,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; @@ -464,41 +400,39 @@ export class SecurityCenter extends coreClient.ServiceClient { serverVulnerabilityAssessmentsSettings: ServerVulnerabilityAssessmentsSettings; aPICollections: APICollections; pricings: Pricings; + securityStandards: SecurityStandards; + standardAssignments: StandardAssignments; + customRecommendations: CustomRecommendations; + defenderForStorage: DefenderForStorage; + azureDevOpsOrgs: AzureDevOpsOrgs; + azureDevOpsProjects: AzureDevOpsProjects; + azureDevOpsRepos: AzureDevOpsRepos; + devOpsConfigurations: DevOpsConfigurations; + gitHubOwners: GitHubOwners; + gitHubRepos: GitHubRepos; + gitLabGroups: GitLabGroups; + gitLabSubgroups: GitLabSubgroups; + gitLabProjects: GitLabProjects; + devOpsOperationResults: DevOpsOperationResults; } // Operation Specifications const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); -const updateSensitivitySettingsOperationSpec: coreClient.OperationSpec = { - path: "/providers/Microsoft.Security/sensitivitySettings/current", - httpMethod: "PUT", +const viewOperationSpec: coreClient.OperationSpec = { + path: "/providers/Microsoft.Security/view", + httpMethod: "POST", responses: { 200: { - bodyMapper: Mappers.GetSensitivitySettingsResponse, + bodyMapper: Mappers.ScenarioResponse, }, default: { - bodyMapper: Mappers.CloudError, + bodyMapper: Mappers.ErrorResponseAutoGenerated2, }, }, - requestBody: Parameters.sensitivitySettings, - queryParameters: [Parameters.apiVersion13], + requestBody: Parameters.parameters, + queryParameters: [Parameters.apiVersion16], 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.spec.ts b/sdk/security/arm-security/test/sampleTest.spec.ts new file mode 100644 index 000000000000..90b3c8a868b4 --- /dev/null +++ b/sdk/security/arm-security/test/sampleTest.spec.ts @@ -0,0 +1,38 @@ +/* + * 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 } from "@azure-tools/test-recorder"; +import { afterEach, beforeEach, describe, it, assert } from "vitest"; + +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 () => { + recorder = new Recorder(); + await recorder.start(recorderOptions); + }); + + afterEach(async () => { + await recorder.stop(); + }); + + it("sample test", async () => { + assert(true); + }); +}); diff --git a/sdk/security/arm-security/test/snippets.spec.ts b/sdk/security/arm-security/test/snippets.spec.ts index 6a3ed38a7e97..d10d5ac4203d 100644 --- a/sdk/security/arm-security/test/snippets.spec.ts +++ b/sdk/security/arm-security/test/snippets.spec.ts @@ -1,5 +1,10 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. +/* + * 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 { SecurityCenter } from "../src/index.js"; import { DefaultAzureCredential, InteractiveBrowserCredential } from "@azure/identity"; diff --git a/sdk/security/arm-security/tsconfig.browser.config.json b/sdk/security/arm-security/tsconfig.browser.config.json index 0c8bafa97126..75871518e3a0 100644 --- a/sdk/security/arm-security/tsconfig.browser.config.json +++ b/sdk/security/arm-security/tsconfig.browser.config.json @@ -1,6 +1,3 @@ { - "extends": [ - "./tsconfig.test.json", - "../../../tsconfig.browser.base.json" - ] + "extends": ["./tsconfig.test.json", "../../../tsconfig.browser.base.json"] } diff --git a/sdk/security/arm-security/tsconfig.json b/sdk/security/arm-security/tsconfig.json index 19ceb382b521..59ea83c046bf 100644 --- a/sdk/security/arm-security/tsconfig.json +++ b/sdk/security/arm-security/tsconfig.json @@ -3,11 +3,8 @@ { "path": "./tsconfig.src.json" }, - { - "path": "./tsconfig.samples.json" - }, { "path": "./tsconfig.test.json" } ] -} +} \ No newline at end of file diff --git a/sdk/security/arm-security/tsconfig.samples.json b/sdk/security/arm-security/tsconfig.samples.json index c78c2c70841f..c100e8646d25 100644 --- a/sdk/security/arm-security/tsconfig.samples.json +++ b/sdk/security/arm-security/tsconfig.samples.json @@ -2,9 +2,7 @@ "extends": "../../../tsconfig.samples.base.json", "compilerOptions": { "paths": { - "@azure/arm-security": [ - "./dist/esm" - ] + "@azure/arm-security": ["./dist/esm"] } } } diff --git a/sdk/security/arm-security/tsconfig.test.json b/sdk/security/arm-security/tsconfig.test.json index 3c2b783a8c1b..290ca214aebc 100644 --- a/sdk/security/arm-security/tsconfig.test.json +++ b/sdk/security/arm-security/tsconfig.test.json @@ -1,6 +1,3 @@ { - "extends": [ - "./tsconfig.src.json", - "../../../tsconfig.test.base.json" - ] + "extends": ["./tsconfig.src.json", "../../../tsconfig.test.base.json"] }