diff --git a/sdk/security/arm-security/CHANGELOG.md b/sdk/security/arm-security/CHANGELOG.md index af1cf62703c7..f6646449f059 100644 --- a/sdk/security/arm-security/CHANGELOG.md +++ b/sdk/security/arm-security/CHANGELOG.md @@ -1,16 +1,6 @@ # Release History - -## 6.0.0-beta.5 (Unreleased) - -### Features Added - -### Breaking Changes - -### Bugs Fixed - -### Other Changes - -## 6.0.0-beta.4 (2023-04-11) + +## 6.0.0-beta.5 (2023-09-11) **Features** @@ -19,19 +9,32 @@ - Added operation group APICollectionOnboarding - Added operation group ApplicationOperations - Added operation group Applications + - Added operation group AzureDevOpsOrgs + - Added operation group AzureDevOpsProjects + - Added operation group AzureDevOpsRepos + - 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 HealthReportOperations - Added operation group HealthReports - Added operation group SecurityConnectorApplication - Added operation group SecurityConnectorApplications - Added operation group SecurityOperators + - Added operation group SensitivitySettings + - Added operation group ServerVulnerabilityAssessmentsSettings - Added operation Alerts.beginSimulate - Added operation Alerts.beginSimulateAndWait - Added operation Alerts.updateResourceGroupLevelStateToInProgress - Added operation Alerts.updateSubscriptionLevelStateToInProgress - Added Interface AadExternalSecuritySolution - Added Interface AadSolutionProperties + - Added Interface ActionableRemediation - Added Interface ActiveConnectionsNotInAllowedRange - Added Interface AdaptiveApplicationControlGroup - Added Interface AdaptiveNetworkHardening @@ -67,6 +70,7 @@ - Added Interface AssessmentStatusResponse - Added Interface AtaExternalSecuritySolution - Added Interface AtaSolutionProperties + - Added Interface Authorization - Added Interface Automation - Added Interface AutomationActionEventHub - Added Interface AutomationActionLogicApp @@ -78,9 +82,40 @@ - 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 BuiltInInfoType + - Added Interface CategoryConfiguration - Added Interface CefExternalSecuritySolution - Added Interface CefSolutionProperties - Added Interface Compliance @@ -142,16 +177,31 @@ - Added Interface DefenderForServersGcpOfferingVaAutoProvisioningConfiguration - Added Interface DefenderForServersGcpOfferingVmScanners - Added Interface DefenderForServersGcpOfferingVmScannersConfiguration + - Added Interface DefenderForStorageCreateOptionalParams + - Added Interface DefenderForStorageGetOptionalParams + - Added Interface DefenderForStorageSetting - Added Interface DenylistCustomAlertRule - Added Interface DeviceSecurityGroup + - 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 EnvironmentData - Added Interface EnvironmentDetails - Added Interface ErrorDetail - Added Interface ErrorDetailAutoGenerated + - Added Interface ErrorDetailAutoGenerated2 - Added Interface ErrorResponse - Added Interface ErrorResponseAutoGenerated + - Added Interface ErrorResponseAutoGenerated2 - Added Interface ExecuteGovernanceRuleParams - Added Interface Extension - Added Interface ExternalSecuritySolution @@ -163,8 +213,42 @@ - Added Interface GcpOrganizationalDataOrganization - Added Interface GcpProjectDetails - Added Interface GcpProjectEnvironmentData + - Added Interface GetSensitivitySettingsListResponse + - Added Interface GetSensitivitySettingsOptionalParams + - 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 @@ -191,7 +275,7 @@ - Added Interface GovernanceRulesOperationResultsOptionalParams - Added Interface HealthDataClassification - Added Interface HealthReport - - Added Interface HealthReportGetOptionalParams + - Added Interface HealthReportsGetOptionalParams - Added Interface HealthReportsList - Added Interface HealthReportsListNextOptionalParams - Added Interface HealthReportsListOptionalParams @@ -201,6 +285,7 @@ - Added Interface Identity - Added Interface InformationProtectionAwsOffering - Added Interface InformationProtectionPolicy + - Added Interface InfoType - Added Interface IngestionSetting - Added Interface IoTSecurityAggregatedAlert - Added Interface IoTSecurityAggregatedRecommendation @@ -208,6 +293,7 @@ - Added Interface IoTSecuritySolutionModel - Added Interface Issue - Added Interface JitNetworkAccessPolicy + - Added Interface Label - Added Interface ListCustomAlertRule - Added Interface LocalUserNotAllowed - Added Interface LogAnalyticsIdentifier @@ -219,13 +305,18 @@ - Added Interface OnPremiseSqlResourceDetails - Added Interface OperationResultAutoGenerated - Added Interface OperationStatus + - Added Interface OperationStatusAutoGenerated + - Added Interface OperationStatusResult - Added Interface Pricing - 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 @@ -259,12 +350,21 @@ - Added Interface SecuritySolutionsReferenceData - Added Interface SecuritySubAssessment - Added Interface SecurityTask + - 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 StatusAutoGenerated + - Added Interface TargetBranchConfiguration - Added Interface ThresholdCustomAlertRule - Added Interface TimeWindowCustomAlertRule - Added Interface TopologyResource @@ -272,7 +372,11 @@ - Added Interface TwinUpdatesNotInAllowedRange - Added Interface UnauthorizedOperationsNotInAllowedRange - Added Interface UpdateIotSecuritySolutionData + - Added Interface UpdateSensitivitySettingsOptionalParams + - Added Interface UpdateSensitivitySettingsRequest - Added Interface WorkspaceSetting + - Added Type Alias ActionableRemediationState + - Added Type Alias AnnotateDefaultBranchState - Added Type Alias APICollectionGetResponse - Added Type Alias APICollectionListNextResponse - Added Type Alias APICollectionListResponse @@ -283,12 +387,55 @@ - Added Type Alias ApplicationsListNextResponse - Added Type Alias ApplicationsListResponse - Added Type Alias ApplicationSourceResourceType + - Added Type Alias AutoDiscovery - 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 DefenderForStorageCreateResponse + - Added Type Alias DefenderForStorageGetResponse + - 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 EnvironmentDataUnion - Added Type Alias EnvironmentType - Added Type Alias GcpOrganizationalDataUnion + - Added Type Alias GetSensitivitySettingsOperationResponse + - Added Type Alias GitHubOwnersGetResponse + - Added Type Alias GitHubOwnersListAvailableResponse + - Added Type Alias GitHubOwnersListNextResponse + - 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 @@ -303,15 +450,18 @@ - Added Type Alias GovernanceRulesOperationResultsResponse - Added Type Alias GovernanceRuleSourceResourceType - Added Type Alias GovernanceRuleType - - Added Type Alias HealthReportGetResponse + - Added Type Alias HealthReportsGetResponse - Added Type Alias HealthReportsListNextResponse - Added Type Alias HealthReportsListResponse + - Added Type Alias InheritFromParentState - Added Type Alias IsEnabled - Added Type Alias MinimalSeverity + - Added Type Alias MipIntegrationStatus + - Added Type Alias OnboardingState - Added Type Alias OperationResult - Added Type Alias Roles + - Added Type Alias RuleCategory - Added Type Alias ScanningMode - - Added Type Alias ScopeName - Added Type Alias SecurityConnectorApplicationCreateOrUpdateResponse - Added Type Alias SecurityConnectorApplicationGetResponse - Added Type Alias SecurityConnectorApplicationsListNextResponse @@ -319,29 +469,52 @@ - Added Type Alias SecurityOperatorsCreateOrUpdateResponse - Added Type Alias SecurityOperatorsGetResponse - Added Type Alias SecurityOperatorsListResponse + - 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 StatusName - Added Type Alias SubPlan - Added Type Alias Type + - Added Type Alias UpdateSensitivitySettingsResponse - Interface AlertsSimulateOptionalParams has a new optional parameter resumeFrom - Interface AlertsSimulateOptionalParams has a new optional parameter updateIntervalInMs - Interface DefenderForServersAwsOfferingArcAutoProvisioning has a new optional parameter cloudRoleArn - Interface DefenderForServersAwsOfferingArcAutoProvisioning has a new optional parameter configuration - Interface ScanProperties has a new optional parameter lastScanTime - Type of parameter offeringType of interface CloudOffering is changed from "CspmMonitorAws" | "DefenderForContainersAws" | "DefenderForServersAws" | "InformationProtectionAws" to "CspmMonitorAws" | "DefenderForContainersAws" | "DefenderForServersAws" | "DefenderForDatabasesAws" | "InformationProtectionAws" | "CspmMonitorGcp" | "DefenderForServersGcp" | "DefenderForDatabasesGcp" | "DefenderForContainersGcp" | "CspmMonitorGithub" | "CspmMonitorAzureDevOps" | "DefenderCspmAws" | "DefenderCspmGcp" | "DefenderForDevOpsGithub" | "DefenderForDevOpsAzureDevOps" | "CspmMonitorGitLab" | "DefenderForDevOpsGitLab" + - Added Enum KnownActionableRemediationState + - Added Enum KnownAnnotateDefaultBranchState - Added Enum KnownApplicationConditionOperator - Added Enum KnownApplicationSourceResourceType + - Added Enum KnownAutoDiscovery - Added Enum KnownCode + - Added Enum KnownDesiredOnboardingState + - Added Enum KnownDevOpsProvisioningState - Added Enum KnownEnvironmentType - Added Enum KnownGovernanceRuleConditionOperator - Added Enum KnownGovernanceRuleOwnerSourceType - Added Enum KnownGovernanceRuleSourceResourceType - Added Enum KnownGovernanceRuleType + - Added Enum KnownInheritFromParentState - Added Enum KnownIsEnabled - Added Enum KnownMinimalSeverity + - Added Enum KnownMipIntegrationStatus + - Added Enum KnownOnboardingState - Added Enum KnownOperationResult - Added Enum KnownRoles + - Added Enum KnownRuleCategory - Added Enum KnownScanningMode - - Added Enum KnownScopeName + - Added Enum KnownServerVulnerabilityAssessmentsAzureSettingSelectedProvider + - Added Enum KnownServerVulnerabilityAssessmentsSettingKind + - Added Enum KnownServerVulnerabilityAssessmentsSettingKindName + - Added Enum KnownSettingNameAutoGenerated - Added Enum KnownStatusName - Added Enum KnownSubPlan - Added Enum KnownType @@ -371,6 +544,7 @@ - Removed operation Alerts.simulate - Removed operation SecurityContacts.update - Operation AllowedConnections.get has a new signature + - Class SecurityCenter has a new signature - Interface AlertsSuppressionRulesListNextOptionalParams no longer has parameter alertType - Interface DefenderForServersAwsOfferingArcAutoProvisioning no longer has parameter servicePrincipalSecretMetadata - Interface IotSecuritySolutionListByResourceGroupNextOptionalParams no longer has parameter filter @@ -389,998 +563,7 @@ - Removed Enum KnownAlertNotifications - Removed Enum KnownAlertsToAdmins -## 6.0.0-beta.3 (2023-03-21) -**Features** - - - Added operation group APICollection - - Added operation group APICollectionOffboarding - - Added operation group APICollectionOnboarding - - Added operation group ApplicationOperations - - Added operation group Applications - - Added operation group GovernanceAssignments - - Added operation group GovernanceRules - - Added operation group HealthReportOperations - - Added operation group HealthReports - - Added operation group SecurityConnectorApplication - - Added operation group SecurityConnectorApplications - - Added operation Alerts.beginSimulate - - Added operation Alerts.beginSimulateAndWait - - Added operation Alerts.updateResourceGroupLevelStateToInProgress - - Added operation Alerts.updateSubscriptionLevelStateToInProgress - - Added Interface AadExternalSecuritySolution - - Added Interface AadSolutionProperties - - Added Interface ActiveConnectionsNotInAllowedRange - - Added Interface AdaptiveApplicationControlGroup - - Added Interface AdaptiveNetworkHardening - - Added Interface AdvancedThreatProtectionSetting - - Added Interface Alert - - Added Interface AlertPropertiesSupportingEvidence - - Added Interface AlertSimulatorBundlesRequestProperties - - Added Interface AlertsSuppressionRule - - Added Interface AlertsUpdateResourceGroupLevelStateToInProgressOptionalParams - - Added Interface AlertsUpdateSubscriptionLevelStateToInProgressOptionalParams - - Added Interface AlertSyncSettings - - Added Interface AllowedConnectionsResource - - Added Interface AllowlistCustomAlertRule - - Added Interface AmqpC2DMessagesNotInAllowedRange - - Added Interface AmqpC2DRejectedMessagesNotInAllowedRange - - Added Interface AmqpD2CMessagesNotInAllowedRange - - Added Interface APICollectionGetOptionalParams - - Added Interface APICollectionListNextOptionalParams - - Added Interface APICollectionListOptionalParams - - Added Interface APICollectionOffboardingDeleteOptionalParams - - Added Interface APICollectionOnboardingCreateOptionalParams - - Added Interface ApiCollectionResponse - - Added Interface ApiCollectionResponseList - - Added Interface Application - - Added Interface ApplicationCondition - - Added Interface ApplicationCreateOrUpdateOptionalParams - - Added Interface ApplicationDeleteOptionalParams - - Added Interface ApplicationGetOptionalParams - - Added Interface ApplicationsList - - Added Interface ApplicationsListNextOptionalParams - - Added Interface ApplicationsListOptionalParams - - Added Interface AscLocation - - Added Interface AssessmentStatusResponse - - Added Interface AtaExternalSecuritySolution - - Added Interface AtaSolutionProperties - - Added Interface Automation - - Added Interface AutomationActionEventHub - - Added Interface AutomationActionLogicApp - - Added Interface AutomationActionWorkspace - - Added Interface AutoProvisioningSetting - - Added Interface AwAssumeRoleAuthenticationDetailsProperties - - Added Interface AwsCredsAuthenticationDetailsProperties - - Added Interface AwsEnvironmentData - - Added Interface AwsOrganizationalData - - Added Interface AwsOrganizationalDataMaster - - Added Interface AwsOrganizationalDataMember - - Added Interface AzureDevOpsScopeEnvironmentData - - Added Interface AzureResourceDetails - - Added Interface AzureResourceIdentifier - - Added Interface CefExternalSecuritySolution - - Added Interface CefSolutionProperties - - Added Interface Compliance - - Added Interface ComplianceResult - - Added Interface Condition - - Added Interface ConnectionFromIpNotAllowed - - Added Interface ConnectionToIpNotAllowed - - Added Interface ConnectorSetting - - Added Interface ContainerRegistryVulnerabilityProperties - - Added Interface CspmMonitorAwsOffering - - Added Interface CspmMonitorAzureDevOpsOffering - - Added Interface CspmMonitorGcpOffering - - Added Interface CspmMonitorGcpOfferingNativeCloudConnection - - Added Interface CspmMonitorGithubOffering - - Added Interface CustomAssessmentAutomation - - Added Interface CustomAssessmentAutomationRequest - - Added Interface CustomEntityStoreAssignment - - Added Interface DataExportSettings - - Added Interface DefenderCspmAwsOffering - - Added Interface DefenderCspmAwsOfferingVmScanners - - Added Interface DefenderCspmAwsOfferingVmScannersConfiguration - - Added Interface DefenderCspmGcpOffering - - Added Interface DefenderFoDatabasesAwsOffering - - Added Interface DefenderFoDatabasesAwsOfferingArcAutoProvisioning - - Added Interface DefenderFoDatabasesAwsOfferingRds - - Added Interface DefenderForContainersAwsOffering - - Added Interface DefenderForContainersAwsOfferingContainerVulnerabilityAssessment - - Added Interface DefenderForContainersAwsOfferingContainerVulnerabilityAssessmentTask - - Added Interface DefenderForContainersGcpOffering - - Added Interface DefenderForContainersGcpOfferingDataPipelineNativeCloudConnection - - Added Interface DefenderForContainersGcpOfferingNativeCloudConnection - - Added Interface DefenderForDatabasesGcpOffering - - Added Interface DefenderForDatabasesGcpOfferingArcAutoProvisioning - - Added Interface DefenderForDatabasesGcpOfferingDefenderForDatabasesArcAutoProvisioning - - Added Interface DefenderForDevOpsAzureDevOpsOffering - - Added Interface DefenderForDevOpsGithubOffering - - Added Interface DefenderForServersAwsOffering - - Added Interface DefenderForServersAwsOfferingMdeAutoProvisioning - - Added Interface DefenderForServersAwsOfferingSubPlan - - Added Interface DefenderForServersAwsOfferingVaAutoProvisioning - - Added Interface DefenderForServersAwsOfferingVaAutoProvisioningConfiguration - - Added Interface DefenderForServersAwsOfferingVmScanners - - Added Interface DefenderForServersAwsOfferingVmScannersConfiguration - - Added Interface DefenderForServersGcpOffering - - Added Interface DefenderForServersGcpOfferingArcAutoProvisioning - - Added Interface DefenderForServersGcpOfferingDefenderForServers - - Added Interface DefenderForServersGcpOfferingMdeAutoProvisioning - - Added Interface DefenderForServersGcpOfferingSubPlan - - Added Interface DefenderForServersGcpOfferingVaAutoProvisioning - - Added Interface DefenderForServersGcpOfferingVaAutoProvisioningConfiguration - - Added Interface DenylistCustomAlertRule - - Added Interface DeviceSecurityGroup - - Added Interface DirectMethodInvokesNotInAllowedRange - - Added Interface DiscoveredSecuritySolution - - Added Interface EnvironmentData - - Added Interface EnvironmentDetails - - Added Interface ErrorDetail - - Added Interface ErrorDetailAutoGenerated - - Added Interface ErrorResponse - - Added Interface ErrorResponseAutoGenerated - - Added Interface ExecuteGovernanceRuleParams - - Added Interface ExternalSecuritySolution - - Added Interface FailedLocalLoginsNotInAllowedRange - - Added Interface FileUploadsNotInAllowedRange - - Added Interface GcpCredentialsDetailsProperties - - Added Interface GcpOrganizationalData - - Added Interface GcpOrganizationalDataMember - - Added Interface GcpOrganizationalDataOrganization - - Added Interface GcpProjectDetails - - Added Interface GcpProjectEnvironmentData - - Added Interface GithubScopeEnvironmentData - - Added Interface GovernanceAssignment - - Added Interface GovernanceAssignmentAdditionalData - - Added Interface GovernanceAssignmentsCreateOrUpdateOptionalParams - - Added Interface GovernanceAssignmentsDeleteOptionalParams - - Added Interface GovernanceAssignmentsGetOptionalParams - - Added Interface GovernanceAssignmentsList - - Added Interface GovernanceAssignmentsListNextOptionalParams - - Added Interface GovernanceAssignmentsListOptionalParams - - Added Interface GovernanceEmailNotification - - Added Interface GovernanceRule - - Added Interface GovernanceRuleEmailNotification - - Added Interface GovernanceRuleList - - Added Interface GovernanceRuleMetadata - - Added Interface GovernanceRuleOwnerSource - - Added Interface GovernanceRulesCreateOrUpdateOptionalParams - - Added Interface GovernanceRulesDeleteHeaders - - Added Interface GovernanceRulesDeleteOptionalParams - - Added Interface GovernanceRulesExecuteHeaders - - Added Interface GovernanceRulesExecuteOptionalParams - - Added Interface GovernanceRulesGetOptionalParams - - Added Interface GovernanceRulesListNextOptionalParams - - Added Interface GovernanceRulesListOptionalParams - - Added Interface GovernanceRulesOperationResultsHeaders - - Added Interface GovernanceRulesOperationResultsOptionalParams - - Added Interface HealthDataClassification - - Added Interface HealthReport - - Added Interface HealthReportGetOptionalParams - - Added Interface HealthReportsList - - Added Interface HealthReportsListNextOptionalParams - - Added Interface HealthReportsListOptionalParams - - Added Interface HttpC2DMessagesNotInAllowedRange - - Added Interface HttpC2DRejectedMessagesNotInAllowedRange - - Added Interface HttpD2CMessagesNotInAllowedRange - - Added Interface InformationProtectionAwsOffering - - Added Interface InformationProtectionPolicy - - Added Interface IngestionSetting - - Added Interface IoTSecurityAggregatedAlert - - Added Interface IoTSecurityAggregatedRecommendation - - Added Interface IoTSecuritySolutionAnalyticsModel - - Added Interface IoTSecuritySolutionModel - - Added Interface Issue - - Added Interface JitNetworkAccessPolicy - - Added Interface ListCustomAlertRule - - Added Interface LocalUserNotAllowed - - Added Interface LogAnalyticsIdentifier - - Added Interface MdeOnboardingData - - Added Interface MqttC2DMessagesNotInAllowedRange - - Added Interface MqttC2DRejectedMessagesNotInAllowedRange - - Added Interface MqttD2CMessagesNotInAllowedRange - - Added Interface OnPremiseResourceDetails - - Added Interface OnPremiseSqlResourceDetails - - Added Interface OperationResultAutoGenerated - - Added Interface Pricing - - Added Interface ProcessNotAllowed - - Added Interface QueuePurgesNotInAllowedRange - - Added Interface RegulatoryComplianceAssessment - - Added Interface RegulatoryComplianceControl - - Added Interface RegulatoryComplianceStandard - - Added Interface RemediationEta - - Added Interface ResourceDetailsAutoGenerated - - Added Interface RuleResults - - Added Interface Scan - - Added Interface ScanResult - - Added Interface SecureScoreControlDefinitionItem - - Added Interface SecureScoreControlDetails - - Added Interface SecureScoreItem - - Added Interface SecurityAssessment - - Added Interface SecurityAssessmentMetadata - - Added Interface SecurityAssessmentMetadataPropertiesResponse - - Added Interface SecurityAssessmentMetadataResponse - - Added Interface SecurityAssessmentProperties - - Added Interface SecurityAssessmentPropertiesResponse - - Added Interface SecurityAssessmentResponse - - Added Interface SecurityConnector - - Added Interface SecurityConnectorApplicationCreateOrUpdateOptionalParams - - Added Interface SecurityConnectorApplicationDeleteOptionalParams - - Added Interface SecurityConnectorApplicationGetOptionalParams - - Added Interface SecurityConnectorApplicationsListNextOptionalParams - - Added Interface SecurityConnectorApplicationsListOptionalParams - - Added Interface SecurityContact - - Added Interface SecurityContactPropertiesAlertNotifications - - Added Interface SecurityContactPropertiesNotificationsByRole - - Added Interface SecuritySolution - - Added Interface SecuritySolutionsReferenceData - - Added Interface SecuritySubAssessment - - Added Interface SecurityTask - - Added Interface ServerVulnerabilityAssessment - - Added Interface ServerVulnerabilityProperties - - Added Interface Setting - - Added Interface Software - - Added Interface SqlServerVulnerabilityProperties - - Added Interface StatusAutoGenerated - - Added Interface ThresholdCustomAlertRule - - Added Interface TimeWindowCustomAlertRule - - Added Interface TopologyResource - - Added Interface TrackedResource - - Added Interface TwinUpdatesNotInAllowedRange - - Added Interface UnauthorizedOperationsNotInAllowedRange - - Added Interface UpdateIotSecuritySolutionData - - Added Interface WorkspaceSetting - - Added Type Alias APICollectionGetResponse - - Added Type Alias APICollectionListNextResponse - - Added Type Alias APICollectionListResponse - - Added Type Alias APICollectionOnboardingCreateResponse - - Added Type Alias ApplicationConditionOperator - - Added Type Alias ApplicationCreateOrUpdateResponse - - Added Type Alias ApplicationGetResponse - - Added Type Alias ApplicationsListNextResponse - - Added Type Alias ApplicationsListResponse - - Added Type Alias ApplicationSourceResourceType - - Added Type Alias AwsOrganizationalDataUnion - - Added Type Alias ConnectionType - - Added Type Alias EnvironmentDataUnion - - Added Type Alias EnvironmentType - - Added Type Alias GcpOrganizationalDataUnion - - Added Type Alias GovernanceAssignmentsCreateOrUpdateResponse - - Added Type Alias GovernanceAssignmentsGetResponse - - Added Type Alias GovernanceAssignmentsListNextResponse - - Added Type Alias GovernanceAssignmentsListResponse - - Added Type Alias GovernanceRuleConditionOperator - - Added Type Alias GovernanceRuleOwnerSourceType - - Added Type Alias GovernanceRulesCreateOrUpdateResponse - - Added Type Alias GovernanceRulesExecuteResponse - - Added Type Alias GovernanceRulesGetResponse - - Added Type Alias GovernanceRulesListNextResponse - - Added Type Alias GovernanceRulesListResponse - - Added Type Alias GovernanceRulesOperationResultsResponse - - Added Type Alias GovernanceRuleSourceResourceType - - Added Type Alias GovernanceRuleType - - Added Type Alias HealthReportGetResponse - - Added Type Alias HealthReportsListNextResponse - - Added Type Alias HealthReportsListResponse - - Added Type Alias MinimalSeverity - - Added Type Alias OperationResult - - Added Type Alias Roles - - Added Type Alias ScanningMode - - Added Type Alias ScopeName - - Added Type Alias SecurityConnectorApplicationCreateOrUpdateResponse - - Added Type Alias SecurityConnectorApplicationGetResponse - - Added Type Alias SecurityConnectorApplicationsListNextResponse - - Added Type Alias SecurityConnectorApplicationsListResponse - - Added Type Alias StatusName - - Added Type Alias SubPlan - - Added Type Alias Type - - Interface AlertsSimulateOptionalParams has a new optional parameter resumeFrom - - Interface AlertsSimulateOptionalParams has a new optional parameter updateIntervalInMs - - Interface DefenderForServersAwsOfferingArcAutoProvisioning has a new optional parameter cloudRoleArn - - Interface ScanProperties has a new optional parameter lastScanTime - - Type of parameter offeringType of interface CloudOffering is changed from "CspmMonitorAws" | "DefenderForContainersAws" | "DefenderForServersAws" | "InformationProtectionAws" to "CspmMonitorAws" | "DefenderForContainersAws" | "DefenderForServersAws" | "DefenderForDatabasesAws" | "InformationProtectionAws" | "CspmMonitorGcp" | "DefenderForServersGcp" | "DefenderForDatabasesGcp" | "DefenderForContainersGcp" | "CspmMonitorGithub" | "CspmMonitorAzureDevOps" | "DefenderCspmAws" | "DefenderCspmGcp" | "DefenderForDevOpsGithub" | "DefenderForDevOpsAzureDevOps" - - Added Enum KnownApplicationConditionOperator - - Added Enum KnownApplicationSourceResourceType - - Added Enum KnownEnvironmentType - - Added Enum KnownGovernanceRuleConditionOperator - - Added Enum KnownGovernanceRuleOwnerSourceType - - Added Enum KnownGovernanceRuleSourceResourceType - - Added Enum KnownGovernanceRuleType - - Added Enum KnownMinimalSeverity - - Added Enum KnownOperationResult - - Added Enum KnownRoles - - Added Enum KnownScanningMode - - Added Enum KnownScopeName - - Added Enum KnownStatusName - - Added Enum KnownSubPlan - - Added Enum KnownType - - Enum KnownAlertStatus has a new value InProgress - - Enum KnownBundleType has a new value CosmosDbs - - Enum KnownCloudName has a new value AzureDevOps - - Enum KnownCloudName has a new value Github - - Enum KnownOfferingType has a new value CspmMonitorAzureDevOps - - Enum KnownOfferingType has a new value CspmMonitorGcp - - Enum KnownOfferingType has a new value CspmMonitorGithub - - Enum KnownOfferingType has a new value DefenderCspmAws - - Enum KnownOfferingType has a new value DefenderCspmGcp - - Enum KnownOfferingType has a new value DefenderForContainersGcp - - Enum KnownOfferingType has a new value DefenderForDatabasesAws - - Enum KnownOfferingType has a new value DefenderForDatabasesGcp - - Enum KnownOfferingType has a new value DefenderForDevOpsAzureDevOps - - Enum KnownOfferingType has a new value DefenderForDevOpsGithub - - Enum KnownOfferingType has a new value DefenderForServersGcp - - Enum KnownSettingName has a new value WdatpUnifiedSolution - - Added function getContinuationToken - - Interface AlertsSuppressionRulesListNextOptionalParams no longer has parameter alertType - - Interface DefenderForServersAwsOfferingArcAutoProvisioning no longer has parameter servicePrincipalSecretMetadata - - Interface IotSecuritySolutionListByResourceGroupNextOptionalParams no longer has parameter filter - - Interface IotSecuritySolutionListBySubscriptionNextOptionalParams no longer has parameter filter - - Interface IotSecuritySolutionsAnalyticsAggregatedAlertListNextOptionalParams no longer has parameter top - - Interface IotSecuritySolutionsAnalyticsRecommendationListNextOptionalParams no longer has parameter top - - Interface RegulatoryComplianceAssessmentsListNextOptionalParams no longer has parameter filter - - Interface RegulatoryComplianceControlsListNextOptionalParams no longer has parameter filter - - Interface RegulatoryComplianceStandardsListNextOptionalParams no longer has parameter filter - - Interface SecureScoreControlsListBySecureScoreNextOptionalParams no longer has parameter expand - - Interface SecureScoreControlsListNextOptionalParams no longer has parameter expand - - Interface TasksListByHomeRegionNextOptionalParams no longer has parameter filter - - Interface TasksListByResourceGroupNextOptionalParams no longer has parameter filter - - Interface TasksListNextOptionalParams no longer has parameter filter - -**Breaking Changes** - - - Removed operation Alerts.simulate - - Removed operation SecurityContacts.update - - Operation AllowedConnections.get has a new signature - - Type of parameter value of interface ExternalSecuritySolutionList is changed from ExternalSecuritySolutionUnion[] to ExternalSecuritySolution[] - - Removed Enum KnownAlertNotifications - - Removed Enum KnownAlertsToAdmins - -## 6.0.0-beta.2 (2022-11-15) - -**Features** - - - Added operation group APICollection - - Added operation group APICollectionOffboarding - - Added operation group APICollectionOnboarding - - Added operation group ApplicationOperations - - Added operation group Applications - - Added operation group GovernanceAssignments - - Added operation group GovernanceRuleOperations - - Added operation group GovernanceRules - - Added operation group SecurityConnectorApplication - - Added operation group SecurityConnectorApplications - - Added operation group SecurityConnectorGovernanceRule - - Added operation group SecurityConnectorGovernanceRules - - Added operation group SecurityConnectorGovernanceRulesExecuteStatus - - Added operation group SubscriptionGovernanceRulesExecuteStatus - - Added operation Alerts.beginSimulate - - Added operation Alerts.beginSimulateAndWait - - Added operation Alerts.updateResourceGroupLevelStateToInProgress - - Added operation Alerts.updateSubscriptionLevelStateToInProgress - - Added Interface AadExternalSecuritySolution - - Added Interface AadSolutionProperties - - Added Interface ActiveConnectionsNotInAllowedRange - - Added Interface AdaptiveApplicationControlGroup - - Added Interface AdaptiveNetworkHardening - - Added Interface AdvancedThreatProtectionSetting - - Added Interface Alert - - Added Interface AlertPropertiesSupportingEvidence - - Added Interface AlertSimulatorBundlesRequestProperties - - Added Interface AlertsSuppressionRule - - Added Interface AlertsUpdateResourceGroupLevelStateToInProgressOptionalParams - - Added Interface AlertsUpdateSubscriptionLevelStateToInProgressOptionalParams - - Added Interface AlertSyncSettings - - Added Interface AllowedConnectionsResource - - Added Interface AllowlistCustomAlertRule - - Added Interface AmqpC2DMessagesNotInAllowedRange - - Added Interface AmqpC2DRejectedMessagesNotInAllowedRange - - Added Interface AmqpD2CMessagesNotInAllowedRange - - Added Interface APICollectionGetOptionalParams - - Added Interface APICollectionListNextOptionalParams - - Added Interface APICollectionListOptionalParams - - Added Interface APICollectionOffboardingDeleteOptionalParams - - Added Interface APICollectionOnboardingCreateOptionalParams - - Added Interface ApiCollectionResponse - - Added Interface ApiCollectionResponseList - - Added Interface Application - - Added Interface ApplicationCondition - - Added Interface ApplicationCreateOrUpdateOptionalParams - - Added Interface ApplicationDeleteOptionalParams - - Added Interface ApplicationGetOptionalParams - - Added Interface ApplicationsList - - Added Interface ApplicationsListNextOptionalParams - - Added Interface ApplicationsListOptionalParams - - Added Interface AscLocation - - Added Interface AssessmentStatusResponse - - Added Interface AtaExternalSecuritySolution - - Added Interface AtaSolutionProperties - - Added Interface Automation - - Added Interface AutomationActionEventHub - - Added Interface AutomationActionLogicApp - - Added Interface AutomationActionWorkspace - - Added Interface AutoProvisioningSetting - - Added Interface AwAssumeRoleAuthenticationDetailsProperties - - Added Interface AwsCredsAuthenticationDetailsProperties - - Added Interface AwsEnvironmentData - - Added Interface AwsOrganizationalData - - Added Interface AwsOrganizationalDataMaster - - Added Interface AwsOrganizationalDataMember - - Added Interface AzureDevOpsScopeEnvironmentData - - Added Interface AzureResourceDetails - - Added Interface AzureResourceIdentifier - - Added Interface CefExternalSecuritySolution - - Added Interface CefSolutionProperties - - Added Interface Compliance - - Added Interface ComplianceResult - - Added Interface Condition - - Added Interface ConnectionFromIpNotAllowed - - Added Interface ConnectionToIpNotAllowed - - Added Interface ConnectorSetting - - Added Interface ContainerRegistryVulnerabilityProperties - - Added Interface CspmMonitorAwsOffering - - Added Interface CspmMonitorAzureDevOpsOffering - - Added Interface CspmMonitorGcpOffering - - Added Interface CspmMonitorGcpOfferingNativeCloudConnection - - Added Interface CspmMonitorGithubOffering - - Added Interface CustomAssessmentAutomation - - Added Interface CustomAssessmentAutomationRequest - - Added Interface CustomEntityStoreAssignment - - Added Interface DataExportSettings - - Added Interface DefenderCspmAwsOffering - - Added Interface DefenderCspmAwsOfferingVmScanners - - Added Interface DefenderCspmAwsOfferingVmScannersConfiguration - - Added Interface DefenderCspmGcpOffering - - Added Interface DefenderFoDatabasesAwsOffering - - Added Interface DefenderFoDatabasesAwsOfferingArcAutoProvisioning - - Added Interface DefenderFoDatabasesAwsOfferingRds - - Added Interface DefenderForContainersAwsOffering - - Added Interface DefenderForContainersAwsOfferingContainerVulnerabilityAssessment - - Added Interface DefenderForContainersAwsOfferingContainerVulnerabilityAssessmentTask - - Added Interface DefenderForContainersGcpOffering - - Added Interface DefenderForContainersGcpOfferingDataPipelineNativeCloudConnection - - Added Interface DefenderForContainersGcpOfferingNativeCloudConnection - - Added Interface DefenderForDatabasesGcpOffering - - Added Interface DefenderForDatabasesGcpOfferingArcAutoProvisioning - - Added Interface DefenderForDatabasesGcpOfferingDefenderForDatabasesArcAutoProvisioning - - Added Interface DefenderForDevOpsAzureDevOpsOffering - - Added Interface DefenderForDevOpsGithubOffering - - Added Interface DefenderForServersAwsOffering - - Added Interface DefenderForServersAwsOfferingMdeAutoProvisioning - - Added Interface DefenderForServersAwsOfferingSubPlan - - Added Interface DefenderForServersAwsOfferingVaAutoProvisioning - - Added Interface DefenderForServersAwsOfferingVaAutoProvisioningConfiguration - - Added Interface DefenderForServersAwsOfferingVmScanners - - Added Interface DefenderForServersAwsOfferingVmScannersConfiguration - - Added Interface DefenderForServersGcpOffering - - Added Interface DefenderForServersGcpOfferingArcAutoProvisioning - - Added Interface DefenderForServersGcpOfferingDefenderForServers - - Added Interface DefenderForServersGcpOfferingMdeAutoProvisioning - - Added Interface DefenderForServersGcpOfferingSubPlan - - Added Interface DefenderForServersGcpOfferingVaAutoProvisioning - - Added Interface DefenderForServersGcpOfferingVaAutoProvisioningConfiguration - - Added Interface DenylistCustomAlertRule - - Added Interface DeviceSecurityGroup - - Added Interface DirectMethodInvokesNotInAllowedRange - - Added Interface DiscoveredSecuritySolution - - Added Interface EnvironmentData - - Added Interface ErrorDetail - - Added Interface ErrorResponse - - Added Interface ExecuteGovernanceRuleParams - - Added Interface ExecuteRuleStatus - - Added Interface ExternalSecuritySolution - - Added Interface FailedLocalLoginsNotInAllowedRange - - Added Interface FileUploadsNotInAllowedRange - - Added Interface GcpCredentialsDetailsProperties - - Added Interface GcpOrganizationalData - - Added Interface GcpOrganizationalDataMember - - Added Interface GcpOrganizationalDataOrganization - - Added Interface GcpProjectDetails - - Added Interface GcpProjectEnvironmentData - - Added Interface GithubScopeEnvironmentData - - Added Interface GovernanceAssignment - - Added Interface GovernanceAssignmentAdditionalData - - Added Interface GovernanceAssignmentsCreateOrUpdateOptionalParams - - Added Interface GovernanceAssignmentsDeleteOptionalParams - - Added Interface GovernanceAssignmentsGetOptionalParams - - Added Interface GovernanceAssignmentsList - - Added Interface GovernanceAssignmentsListNextOptionalParams - - Added Interface GovernanceAssignmentsListOptionalParams - - Added Interface GovernanceEmailNotification - - Added Interface GovernanceRule - - Added Interface GovernanceRuleEmailNotification - - Added Interface GovernanceRuleList - - Added Interface GovernanceRuleListNextOptionalParams - - Added Interface GovernanceRuleListOptionalParams - - Added Interface GovernanceRuleOwnerSource - - Added Interface GovernanceRulesCreateOrUpdateOptionalParams - - Added Interface GovernanceRulesDeleteOptionalParams - - Added Interface GovernanceRulesGetOptionalParams - - Added Interface GovernanceRulesRuleIdExecuteSingleSecurityConnectorHeaders - - Added Interface GovernanceRulesRuleIdExecuteSingleSecurityConnectorOptionalParams - - Added Interface GovernanceRulesRuleIdExecuteSingleSubscriptionHeaders - - Added Interface GovernanceRulesRuleIdExecuteSingleSubscriptionOptionalParams - - Added Interface HttpC2DMessagesNotInAllowedRange - - Added Interface HttpC2DRejectedMessagesNotInAllowedRange - - Added Interface HttpD2CMessagesNotInAllowedRange - - Added Interface InformationProtectionAwsOffering - - Added Interface InformationProtectionPolicy - - Added Interface IngestionSetting - - Added Interface IoTSecurityAggregatedAlert - - Added Interface IoTSecurityAggregatedRecommendation - - Added Interface IoTSecuritySolutionAnalyticsModel - - Added Interface IoTSecuritySolutionModel - - Added Interface JitNetworkAccessPolicy - - Added Interface ListCustomAlertRule - - Added Interface LocalUserNotAllowed - - Added Interface LogAnalyticsIdentifier - - Added Interface MdeOnboardingData - - Added Interface MqttC2DMessagesNotInAllowedRange - - Added Interface MqttC2DRejectedMessagesNotInAllowedRange - - Added Interface MqttD2CMessagesNotInAllowedRange - - Added Interface OnPremiseResourceDetails - - Added Interface OnPremiseSqlResourceDetails - - Added Interface Pricing - - Added Interface ProcessNotAllowed - - Added Interface QueuePurgesNotInAllowedRange - - Added Interface RegulatoryComplianceAssessment - - Added Interface RegulatoryComplianceControl - - Added Interface RegulatoryComplianceStandard - - Added Interface RemediationEta - - Added Interface RuleResults - - Added Interface Scan - - Added Interface ScanResult - - Added Interface SecureScoreControlDefinitionItem - - Added Interface SecureScoreControlDetails - - Added Interface SecureScoreItem - - Added Interface SecurityAssessment - - Added Interface SecurityAssessmentMetadata - - Added Interface SecurityAssessmentMetadataPropertiesResponse - - Added Interface SecurityAssessmentMetadataResponse - - Added Interface SecurityAssessmentProperties - - Added Interface SecurityAssessmentPropertiesResponse - - Added Interface SecurityAssessmentResponse - - Added Interface SecurityConnector - - Added Interface SecurityConnectorApplicationCreateOrUpdateOptionalParams - - Added Interface SecurityConnectorApplicationDeleteOptionalParams - - Added Interface SecurityConnectorApplicationGetOptionalParams - - Added Interface SecurityConnectorApplicationsListNextOptionalParams - - Added Interface SecurityConnectorApplicationsListOptionalParams - - Added Interface SecurityConnectorGovernanceRuleListNextOptionalParams - - Added Interface SecurityConnectorGovernanceRuleListOptionalParams - - Added Interface SecurityConnectorGovernanceRulesCreateOrUpdateOptionalParams - - Added Interface SecurityConnectorGovernanceRulesDeleteOptionalParams - - Added Interface SecurityConnectorGovernanceRulesExecuteStatusGetHeaders - - Added Interface SecurityConnectorGovernanceRulesExecuteStatusGetOptionalParams - - Added Interface SecurityConnectorGovernanceRulesGetOptionalParams - - Added Interface SecurityContact - - Added Interface SecurityContactPropertiesAlertNotifications - - Added Interface SecurityContactPropertiesNotificationsByRole - - Added Interface SecuritySolution - - Added Interface SecuritySolutionsReferenceData - - Added Interface SecuritySubAssessment - - Added Interface SecurityTask - - Added Interface ServerVulnerabilityAssessment - - Added Interface ServerVulnerabilityProperties - - Added Interface Setting - - Added Interface Software - - Added Interface SqlServerVulnerabilityProperties - - Added Interface SubscriptionGovernanceRulesExecuteStatusGetHeaders - - Added Interface SubscriptionGovernanceRulesExecuteStatusGetOptionalParams - - Added Interface ThresholdCustomAlertRule - - Added Interface TimeWindowCustomAlertRule - - Added Interface TopologyResource - - Added Interface TrackedResource - - Added Interface TwinUpdatesNotInAllowedRange - - Added Interface UnauthorizedOperationsNotInAllowedRange - - Added Interface UpdateIotSecuritySolutionData - - Added Interface WorkspaceSetting - - Added Type Alias APICollectionGetResponse - - Added Type Alias APICollectionListNextResponse - - Added Type Alias APICollectionListResponse - - Added Type Alias APICollectionOnboardingCreateResponse - - Added Type Alias ApplicationConditionOperator - - Added Type Alias ApplicationCreateOrUpdateResponse - - Added Type Alias ApplicationGetResponse - - Added Type Alias ApplicationsListNextResponse - - Added Type Alias ApplicationsListResponse - - Added Type Alias ApplicationSourceResourceType - - Added Type Alias AwsOrganizationalDataUnion - - Added Type Alias ConnectionType - - Added Type Alias EnvironmentDataUnion - - Added Type Alias EnvironmentType - - Added Type Alias GcpOrganizationalDataUnion - - Added Type Alias GovernanceAssignmentsCreateOrUpdateResponse - - Added Type Alias GovernanceAssignmentsGetResponse - - Added Type Alias GovernanceAssignmentsListNextResponse - - Added Type Alias GovernanceAssignmentsListResponse - - Added Type Alias GovernanceRuleConditionOperator - - Added Type Alias GovernanceRuleListNextResponse - - Added Type Alias GovernanceRuleListResponse - - Added Type Alias GovernanceRuleOwnerSourceType - - Added Type Alias GovernanceRulesCreateOrUpdateResponse - - Added Type Alias GovernanceRulesGetResponse - - Added Type Alias GovernanceRuleSourceResourceType - - Added Type Alias GovernanceRulesRuleIdExecuteSingleSecurityConnectorResponse - - Added Type Alias GovernanceRulesRuleIdExecuteSingleSubscriptionResponse - - Added Type Alias GovernanceRuleType - - Added Type Alias MinimalSeverity - - Added Type Alias Roles - - Added Type Alias ScanningMode - - Added Type Alias SecurityConnectorApplicationCreateOrUpdateResponse - - Added Type Alias SecurityConnectorApplicationGetResponse - - Added Type Alias SecurityConnectorApplicationsListNextResponse - - Added Type Alias SecurityConnectorApplicationsListResponse - - Added Type Alias SecurityConnectorGovernanceRuleListNextResponse - - Added Type Alias SecurityConnectorGovernanceRuleListResponse - - Added Type Alias SecurityConnectorGovernanceRulesCreateOrUpdateResponse - - Added Type Alias SecurityConnectorGovernanceRulesExecuteStatusGetResponse - - Added Type Alias SecurityConnectorGovernanceRulesGetResponse - - Added Type Alias SubPlan - - Added Type Alias SubscriptionGovernanceRulesExecuteStatusGetResponse - - Added Type Alias Type - - Interface AlertsSimulateOptionalParams has a new optional parameter resumeFrom - - Interface AlertsSimulateOptionalParams has a new optional parameter updateIntervalInMs - - Interface DefenderForServersAwsOfferingArcAutoProvisioning has a new optional parameter cloudRoleArn - - Class SecurityCenter has a new parameter aPICollection - - Class SecurityCenter has a new parameter aPICollectionOffboarding - - Class SecurityCenter has a new parameter aPICollectionOnboarding - - Class SecurityCenter has a new parameter applicationOperations - - Class SecurityCenter has a new parameter applications - - Class SecurityCenter has a new parameter governanceAssignments - - Class SecurityCenter has a new parameter governanceRuleOperations - - Class SecurityCenter has a new parameter governanceRules - - Class SecurityCenter has a new parameter securityConnectorApplication - - Class SecurityCenter has a new parameter securityConnectorApplications - - Class SecurityCenter has a new parameter securityConnectorGovernanceRule - - Class SecurityCenter has a new parameter securityConnectorGovernanceRules - - Class SecurityCenter has a new parameter securityConnectorGovernanceRulesExecuteStatus - - Class SecurityCenter has a new parameter subscriptionGovernanceRulesExecuteStatus - - Added Enum KnownApplicationConditionOperator - - Added Enum KnownApplicationSourceResourceType - - Added Enum KnownEnvironmentType - - Added Enum KnownGovernanceRuleConditionOperator - - Added Enum KnownGovernanceRuleOwnerSourceType - - Added Enum KnownGovernanceRuleSourceResourceType - - Added Enum KnownGovernanceRuleType - - Added Enum KnownMinimalSeverity - - Added Enum KnownRoles - - Added Enum KnownScanningMode - - Added Enum KnownSubPlan - - Added Enum KnownType - - Enum KnownAlertStatus has a new value InProgress - - Enum KnownBundleType has a new value CosmosDbs - - Enum KnownCloudName has a new value AzureDevOps - - Enum KnownCloudName has a new value Github - - Enum KnownOfferingType has a new value CspmMonitorAzureDevOps - - Enum KnownOfferingType has a new value CspmMonitorGcp - - Enum KnownOfferingType has a new value CspmMonitorGithub - - Enum KnownOfferingType has a new value DefenderCspmAws - - Enum KnownOfferingType has a new value DefenderCspmGcp - - Enum KnownOfferingType has a new value DefenderForContainersGcp - - Enum KnownOfferingType has a new value DefenderForDatabasesAws - - Enum KnownOfferingType has a new value DefenderForDatabasesGcp - - Enum KnownOfferingType has a new value DefenderForDevOpsAzureDevOps - - Enum KnownOfferingType has a new value DefenderForDevOpsGithub - - Enum KnownOfferingType has a new value DefenderForServersGcp - - Enum KnownSettingName has a new value WdatpUnifiedSolution - -**Breaking Changes** - - - Removed operation Alerts.simulate - - Removed operation SecurityContacts.update - - Operation AllowedConnections.get has a new signature - - Interface DefenderForServersAwsOfferingArcAutoProvisioning no longer has parameter servicePrincipalSecretMetadata - - Removed Enum KnownAlertNotifications - - Removed Enum KnownAlertsToAdmins - -## 6.0.0-beta.1 (2022-09-14) - -**Features** - - - Added operation group ApplicationOperations - - Added operation group Applications - - Added operation group GovernanceAssignments - - Added operation group GovernanceRuleOperations - - Added operation group GovernanceRules - - Added operation group SecurityConnectorApplication - - Added operation group SecurityConnectorApplications - - Added operation group SecurityConnectorGovernanceRule - - Added operation group SecurityConnectorGovernanceRules - - Added operation group SecurityConnectorGovernanceRulesExecuteStatus - - Added operation group SubscriptionGovernanceRulesExecuteStatus - - Added operation Alerts.beginSimulate - - Added operation Alerts.beginSimulateAndWait - - Added operation Alerts.updateResourceGroupLevelStateToInProgress - - Added operation Alerts.updateSubscriptionLevelStateToInProgress - - Added Interface AadExternalSecuritySolution - - Added Interface AadSolutionProperties - - Added Interface ActiveConnectionsNotInAllowedRange - - Added Interface AdaptiveApplicationControlGroup - - Added Interface AdaptiveNetworkHardening - - Added Interface AdvancedThreatProtectionSetting - - Added Interface Alert - - Added Interface AlertPropertiesSupportingEvidence - - Added Interface AlertSimulatorBundlesRequestProperties - - Added Interface AlertsSuppressionRule - - Added Interface AlertsUpdateResourceGroupLevelStateToInProgressOptionalParams - - Added Interface AlertsUpdateSubscriptionLevelStateToInProgressOptionalParams - - Added Interface AlertSyncSettings - - Added Interface AllowedConnectionsResource - - Added Interface AllowlistCustomAlertRule - - Added Interface AmqpC2DMessagesNotInAllowedRange - - Added Interface AmqpC2DRejectedMessagesNotInAllowedRange - - Added Interface AmqpD2CMessagesNotInAllowedRange - - Added Interface Application - - Added Interface ApplicationCondition - - Added Interface ApplicationCreateOrUpdateOptionalParams - - Added Interface ApplicationDeleteOptionalParams - - Added Interface ApplicationGetOptionalParams - - Added Interface ApplicationsList - - Added Interface ApplicationsListNextOptionalParams - - Added Interface ApplicationsListOptionalParams - - Added Interface AscLocation - - Added Interface AssessmentStatusResponse - - Added Interface AtaExternalSecuritySolution - - Added Interface AtaSolutionProperties - - Added Interface Automation - - Added Interface AutomationActionEventHub - - Added Interface AutomationActionLogicApp - - Added Interface AutomationActionWorkspace - - Added Interface AutoProvisioningSetting - - Added Interface AwAssumeRoleAuthenticationDetailsProperties - - Added Interface AwsCredsAuthenticationDetailsProperties - - Added Interface AWSEnvironmentData - - Added Interface AwsOrganizationalData - - Added Interface AwsOrganizationalDataMaster - - Added Interface AwsOrganizationalDataMember - - Added Interface AzureDevOpsScopeEnvironmentData - - Added Interface AzureResourceDetails - - Added Interface AzureResourceIdentifier - - Added Interface CefExternalSecuritySolution - - Added Interface CefSolutionProperties - - Added Interface Compliance - - Added Interface ComplianceResult - - Added Interface Condition - - Added Interface ConnectionFromIpNotAllowed - - Added Interface ConnectionToIpNotAllowed - - Added Interface ConnectorSetting - - Added Interface ContainerRegistryVulnerabilityProperties - - Added Interface CspmMonitorAwsOffering - - Added Interface CspmMonitorAzureDevOpsOffering - - Added Interface CspmMonitorGcpOffering - - Added Interface CspmMonitorGcpOfferingNativeCloudConnection - - Added Interface CspmMonitorGithubOffering - - Added Interface CustomAssessmentAutomation - - Added Interface CustomAssessmentAutomationRequest - - Added Interface CustomEntityStoreAssignment - - Added Interface DataExportSettings - - Added Interface DefenderFoDatabasesAwsOffering - - Added Interface DefenderFoDatabasesAwsOfferingArcAutoProvisioning - - Added Interface DefenderFoDatabasesAwsOfferingArcAutoProvisioningServicePrincipalSecretMetadata - - Added Interface DefenderForContainersAwsOffering - - Added Interface DefenderForContainersAwsOfferingContainerVulnerabilityAssessment - - Added Interface DefenderForContainersAwsOfferingContainerVulnerabilityAssessmentTask - - Added Interface DefenderForContainersGcpOffering - - Added Interface DefenderForContainersGcpOfferingDataPipelineNativeCloudConnection - - Added Interface DefenderForContainersGcpOfferingNativeCloudConnection - - Added Interface DefenderForDatabasesGcpOffering - - Added Interface DefenderForDatabasesGcpOfferingArcAutoProvisioning - - Added Interface DefenderForDatabasesGcpOfferingArcAutoProvisioningConfiguration - - Added Interface DefenderForDatabasesGcpOfferingDefenderForDatabasesArcAutoProvisioning - - Added Interface DefenderForServersAwsOffering - - Added Interface DefenderForServersAwsOfferingMdeAutoProvisioning - - Added Interface DefenderForServersAwsOfferingSubPlan - - Added Interface DefenderForServersAwsOfferingVaAutoProvisioning - - Added Interface DefenderForServersAwsOfferingVaAutoProvisioningConfiguration - - Added Interface DefenderForServersAwsOfferingVmScanners - - Added Interface DefenderForServersAwsOfferingVmScannersConfiguration - - Added Interface DefenderForServersGcpOffering - - Added Interface DefenderForServersGcpOfferingArcAutoProvisioning - - Added Interface DefenderForServersGcpOfferingArcAutoProvisioningConfiguration - - Added Interface DefenderForServersGcpOfferingDefenderForServers - - Added Interface DefenderForServersGcpOfferingMdeAutoProvisioning - - Added Interface DefenderForServersGcpOfferingSubPlan - - Added Interface DefenderForServersGcpOfferingVaAutoProvisioning - - Added Interface DefenderForServersGcpOfferingVaAutoProvisioningConfiguration - - Added Interface DenylistCustomAlertRule - - Added Interface DeviceSecurityGroup - - Added Interface DirectMethodInvokesNotInAllowedRange - - Added Interface DiscoveredSecuritySolution - - Added Interface EnvironmentData - - Added Interface ExecuteGovernanceRuleParams - - Added Interface ExecuteRuleStatus - - Added Interface ExternalSecuritySolution - - Added Interface FailedLocalLoginsNotInAllowedRange - - Added Interface FileUploadsNotInAllowedRange - - Added Interface GcpCredentialsDetailsProperties - - Added Interface GcpOrganizationalData - - Added Interface GcpOrganizationalDataMember - - Added Interface GcpOrganizationalDataOrganization - - Added Interface GcpProjectDetails - - Added Interface GcpProjectEnvironmentData - - Added Interface GithubScopeEnvironmentData - - Added Interface GovernanceAssignment - - Added Interface GovernanceAssignmentAdditionalData - - Added Interface GovernanceAssignmentsCreateOrUpdateOptionalParams - - Added Interface GovernanceAssignmentsDeleteOptionalParams - - Added Interface GovernanceAssignmentsGetOptionalParams - - Added Interface GovernanceAssignmentsList - - Added Interface GovernanceAssignmentsListNextOptionalParams - - Added Interface GovernanceAssignmentsListOptionalParams - - Added Interface GovernanceEmailNotification - - Added Interface GovernanceRule - - Added Interface GovernanceRuleEmailNotification - - Added Interface GovernanceRuleList - - Added Interface GovernanceRuleListNextOptionalParams - - Added Interface GovernanceRuleListOptionalParams - - Added Interface GovernanceRuleOwnerSource - - Added Interface GovernanceRulesCreateOrUpdateOptionalParams - - Added Interface GovernanceRulesDeleteOptionalParams - - Added Interface GovernanceRulesGetOptionalParams - - Added Interface GovernanceRulesRuleIdExecuteSingleSecurityConnectorHeaders - - Added Interface GovernanceRulesRuleIdExecuteSingleSecurityConnectorOptionalParams - - Added Interface GovernanceRulesRuleIdExecuteSingleSubscriptionHeaders - - Added Interface GovernanceRulesRuleIdExecuteSingleSubscriptionOptionalParams - - Added Interface HttpC2DMessagesNotInAllowedRange - - Added Interface HttpC2DRejectedMessagesNotInAllowedRange - - Added Interface HttpD2CMessagesNotInAllowedRange - - Added Interface InformationProtectionAwsOffering - - Added Interface InformationProtectionPolicy - - Added Interface IngestionSetting - - Added Interface IoTSecurityAggregatedAlert - - Added Interface IoTSecurityAggregatedRecommendation - - Added Interface IoTSecuritySolutionAnalyticsModel - - Added Interface IoTSecuritySolutionModel - - Added Interface JitNetworkAccessPolicy - - Added Interface ListCustomAlertRule - - Added Interface LocalUserNotAllowed - - Added Interface LogAnalyticsIdentifier - - Added Interface MdeOnboardingData - - Added Interface MqttC2DMessagesNotInAllowedRange - - Added Interface MqttC2DRejectedMessagesNotInAllowedRange - - Added Interface MqttD2CMessagesNotInAllowedRange - - Added Interface OnPremiseResourceDetails - - Added Interface OnPremiseSqlResourceDetails - - Added Interface Pricing - - Added Interface ProcessNotAllowed - - Added Interface QueuePurgesNotInAllowedRange - - Added Interface RegulatoryComplianceAssessment - - Added Interface RegulatoryComplianceControl - - Added Interface RegulatoryComplianceStandard - - Added Interface RemediationEta - - Added Interface RuleResults - - Added Interface Scan - - Added Interface ScanResult - - Added Interface SecureScoreControlDefinitionItem - - Added Interface SecureScoreControlDetails - - Added Interface SecureScoreItem - - Added Interface SecurityAssessment - - Added Interface SecurityAssessmentMetadata - - Added Interface SecurityAssessmentMetadataPropertiesResponse - - Added Interface SecurityAssessmentMetadataResponse - - Added Interface SecurityAssessmentProperties - - Added Interface SecurityAssessmentPropertiesResponse - - Added Interface SecurityAssessmentResponse - - Added Interface SecurityConnector - - Added Interface SecurityConnectorApplicationCreateOrUpdateOptionalParams - - Added Interface SecurityConnectorApplicationDeleteOptionalParams - - Added Interface SecurityConnectorApplicationGetOptionalParams - - Added Interface SecurityConnectorApplicationsListNextOptionalParams - - Added Interface SecurityConnectorApplicationsListOptionalParams - - Added Interface SecurityConnectorGovernanceRuleListNextOptionalParams - - Added Interface SecurityConnectorGovernanceRuleListOptionalParams - - Added Interface SecurityConnectorGovernanceRulesCreateOrUpdateOptionalParams - - Added Interface SecurityConnectorGovernanceRulesDeleteOptionalParams - - Added Interface SecurityConnectorGovernanceRulesExecuteStatusGetHeaders - - Added Interface SecurityConnectorGovernanceRulesExecuteStatusGetOptionalParams - - Added Interface SecurityConnectorGovernanceRulesGetOptionalParams - - Added Interface SecurityContact - - Added Interface SecurityContactPropertiesAlertNotifications - - Added Interface SecurityContactPropertiesNotificationsByRole - - Added Interface SecuritySolution - - Added Interface SecuritySolutionsReferenceData - - Added Interface SecuritySubAssessment - - Added Interface SecurityTask - - Added Interface ServerVulnerabilityAssessment - - Added Interface ServerVulnerabilityProperties - - Added Interface Setting - - Added Interface Software - - Added Interface SqlServerVulnerabilityProperties - - Added Interface SubscriptionGovernanceRulesExecuteStatusGetHeaders - - Added Interface SubscriptionGovernanceRulesExecuteStatusGetOptionalParams - - Added Interface ThresholdCustomAlertRule - - Added Interface TimeWindowCustomAlertRule - - Added Interface TopologyResource - - Added Interface TrackedResource - - Added Interface TwinUpdatesNotInAllowedRange - - Added Interface UnauthorizedOperationsNotInAllowedRange - - Added Interface UpdateIotSecuritySolutionData - - Added Interface WorkspaceSetting - - Added Type Alias ApplicationConditionOperator - - Added Type Alias ApplicationCreateOrUpdateResponse - - Added Type Alias ApplicationGetResponse - - Added Type Alias ApplicationsListNextResponse - - Added Type Alias ApplicationsListResponse - - Added Type Alias ApplicationSourceResourceType - - Added Type Alias AwsOrganizationalDataUnion - - Added Type Alias EnvironmentDataUnion - - Added Type Alias EnvironmentType - - Added Type Alias GcpOrganizationalDataUnion - - Added Type Alias GovernanceAssignmentsCreateOrUpdateResponse - - Added Type Alias GovernanceAssignmentsGetResponse - - Added Type Alias GovernanceAssignmentsListNextResponse - - Added Type Alias GovernanceAssignmentsListResponse - - Added Type Alias GovernanceRuleConditionOperator - - Added Type Alias GovernanceRuleListNextResponse - - Added Type Alias GovernanceRuleListResponse - - Added Type Alias GovernanceRuleOwnerSourceType - - Added Type Alias GovernanceRulesCreateOrUpdateResponse - - Added Type Alias GovernanceRulesGetResponse - - Added Type Alias GovernanceRuleSourceResourceType - - Added Type Alias GovernanceRulesRuleIdExecuteSingleSecurityConnectorResponse - - Added Type Alias GovernanceRulesRuleIdExecuteSingleSubscriptionResponse - - Added Type Alias GovernanceRuleType - - Added Type Alias MinimalSeverity - - Added Type Alias Roles - - Added Type Alias ScanningMode - - Added Type Alias SecurityConnectorApplicationCreateOrUpdateResponse - - Added Type Alias SecurityConnectorApplicationGetResponse - - Added Type Alias SecurityConnectorApplicationsListNextResponse - - Added Type Alias SecurityConnectorApplicationsListResponse - - Added Type Alias SecurityConnectorGovernanceRuleListNextResponse - - Added Type Alias SecurityConnectorGovernanceRuleListResponse - - Added Type Alias SecurityConnectorGovernanceRulesCreateOrUpdateResponse - - Added Type Alias SecurityConnectorGovernanceRulesExecuteStatusGetResponse - - Added Type Alias SecurityConnectorGovernanceRulesGetResponse - - Added Type Alias SubPlan - - Added Type Alias SubscriptionGovernanceRulesExecuteStatusGetResponse - - Added Type Alias Type - - Interface AlertsSimulateOptionalParams has a new optional parameter resumeFrom - - Interface AlertsSimulateOptionalParams has a new optional parameter updateIntervalInMs - - Interface DefenderForServersAwsOfferingArcAutoProvisioning has a new optional parameter cloudRoleArn - - Class SecurityCenter has a new parameter applicationOperations - - Class SecurityCenter has a new parameter applications - - Class SecurityCenter has a new parameter governanceAssignments - - Class SecurityCenter has a new parameter governanceRuleOperations - - Class SecurityCenter has a new parameter governanceRules - - Class SecurityCenter has a new parameter securityConnectorApplication - - Class SecurityCenter has a new parameter securityConnectorApplications - - Class SecurityCenter has a new parameter securityConnectorGovernanceRule - - Class SecurityCenter has a new parameter securityConnectorGovernanceRules - - Class SecurityCenter has a new parameter securityConnectorGovernanceRulesExecuteStatus - - Class SecurityCenter has a new parameter subscriptionGovernanceRulesExecuteStatus - - Added Enum KnownApplicationConditionOperator - - Added Enum KnownApplicationSourceResourceType - - Added Enum KnownEnvironmentType - - Added Enum KnownGovernanceRuleConditionOperator - - Added Enum KnownGovernanceRuleOwnerSourceType - - Added Enum KnownGovernanceRuleSourceResourceType - - Added Enum KnownGovernanceRuleType - - Added Enum KnownMinimalSeverity - - Added Enum KnownRoles - - Added Enum KnownScanningMode - - Added Enum KnownSubPlan - - Added Enum KnownType - - Enum KnownAlertStatus has a new value InProgress - - Enum KnownBundleType has a new value CosmosDbs - - Enum KnownCloudName has a new value AzureDevOps - - Enum KnownCloudName has a new value Github - - Enum KnownOfferingType has a new value CspmMonitorAzureDevOps - - Enum KnownOfferingType has a new value CspmMonitorGcp - - Enum KnownOfferingType has a new value CspmMonitorGithub - - Enum KnownOfferingType has a new value DefenderForContainersGcp - - Enum KnownOfferingType has a new value DefenderForDatabasesAws - - Enum KnownOfferingType has a new value DefenderForDatabasesGcp - - Enum KnownOfferingType has a new value DefenderForServersGcp - - Enum KnownSettingName has a new value WdatpUnifiedSolution - -**Breaking Changes** - - - Removed operation Alerts.simulate - - Removed operation SecurityContacts.update - - Removed Enum KnownAlertNotifications - - Removed Enum KnownAlertsToAdmins - ## 5.0.0 (2022-03-30) **Features** diff --git a/sdk/security/arm-security/_meta.json b/sdk/security/arm-security/_meta.json index 1206f6811cb9..987a9c148275 100644 --- a/sdk/security/arm-security/_meta.json +++ b/sdk/security/arm-security/_meta.json @@ -1,8 +1,8 @@ { - "commit": "7561be58288fad1433038db3f1ccd9794773a03e", + "commit": "ebdfc331ab9cbd212b291faf5ca9136a66711e51", "readme": "specification/security/resource-manager/readme.md", - "autorest_command": "autorest --version=3.9.3 --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.0-rc.10 --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.4", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "release_tool": "@azure-tools/js-sdk-release-tools@2.6.2", - "use": "@autorest/typescript@6.0.0-rc.10" + "release_tool": "@azure-tools/js-sdk-release-tools@2.7.2", + "use": "@autorest/typescript@^6.0.4" } \ No newline at end of file diff --git a/sdk/security/arm-security/package.json b/sdk/security/arm-security/package.json index 4ac49be2945a..948f33ca8830 100644 --- a/sdk/security/arm-security/package.json +++ b/sdk/security/arm-security/package.json @@ -8,12 +8,12 @@ "node": ">=14.0.0" }, "dependencies": { - "@azure/core-lro": "^2.5.0", + "@azure/core-lro": "^2.5.4", "@azure/abort-controller": "^1.0.0", "@azure/core-paging": "^1.2.0", "@azure/core-client": "^1.7.0", "@azure/core-auth": "^1.3.0", - "@azure/core-rest-pipeline": "^1.8.0", + "@azure/core-rest-pipeline": "^1.12.0", "tslib": "^2.2.0" }, "keywords": [ @@ -48,8 +48,8 @@ "chai": "^4.2.0", "cross-env": "^7.0.2", "@types/node": "^14.0.0", - "@azure/dev-tool": "^1.0.0", - "ts-node": "^10.0.0" + "ts-node": "^10.0.0", + "@azure/dev-tool": "^1.0.0" }, "repository": { "type": "git", @@ -112,13 +112,5 @@ ] }, "autoPublish": true, - "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/security/arm-security", - "//sampleConfiguration": { - "productName": "", - "productSlugs": [ - "azure" - ], - "disableDocsMs": true, - "apiRefLink": "https://docs.microsoft.com/javascript/api/@azure/arm-security?view=azure-node-preview" - } -} + "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/security/arm-security" +} \ No newline at end of file diff --git a/sdk/security/arm-security/review/arm-security.api.md b/sdk/security/arm-security/review/arm-security.api.md index 142e3d7c90b7..1e17b1dbc948 100644 --- a/sdk/security/arm-security/review/arm-security.api.md +++ b/sdk/security/arm-security/review/arm-security.api.md @@ -27,6 +27,17 @@ export interface AadExternalSecuritySolution extends ExternalSecuritySolution { export interface AadSolutionProperties extends ExternalSecuritySolutionProperties, AadConnectivityStateAutoGenerated { } +// @public +export interface ActionableRemediation { + branchConfiguration?: TargetBranchConfiguration; + categoryConfigurations?: CategoryConfiguration[]; + inheritFromParentState?: InheritFromParentState; + state?: ActionableRemediationState; +} + +// @public +export type ActionableRemediationState = string; + // @public export type ActionType = string; @@ -549,6 +560,9 @@ export interface AmqpD2CMessagesNotInAllowedRange extends TimeWindowCustomAlertR ruleType: "AmqpD2CMessagesNotInAllowedRange"; } +// @public +export type AnnotateDefaultBranchState = string; + // @public export interface APICollection { get(resourceGroupName: string, serviceName: string, apiCollectionId: string, options?: APICollectionGetOptionalParams): Promise; @@ -851,6 +865,14 @@ export type AuthenticationProvisioningState = string; // @public export type AuthenticationType = string; +// @public +export interface Authorization { + code?: string; +} + +// @public +export type AutoDiscovery = string; + // @public export interface Automation extends TrackedResource { actions?: AutomationActionUnion[]; @@ -1084,6 +1106,247 @@ export interface AwsOrganizationalDataMember extends AwsOrganizationalData { // @public (undocumented) export type AwsOrganizationalDataUnion = AwsOrganizationalData | AwsOrganizationalDataMaster | AwsOrganizationalDataMember; +// @public +export interface AzureDevOpsOrg extends ProxyResource { + properties?: AzureDevOpsOrgProperties; + readonly systemData?: SystemData; +} + +// @public +export interface AzureDevOpsOrganizationConfiguration { + autoDiscovery?: AutoDiscovery; + projectConfigs?: { + [propertyName: string]: AzureDevOpsProjectConfiguration; + }; +} + +// @public +export interface AzureDevOpsOrgListResponse { + nextLink?: string; + value?: AzureDevOpsOrg[]; +} + +// @public +export interface AzureDevOpsOrgProperties { + actionableRemediation?: ActionableRemediation; + onboardingState?: OnboardingState; + provisioningState?: DevOpsProvisioningState; + readonly provisioningStatusMessage?: string; + readonly provisioningStatusUpdateTimeUtc?: Date; +} + +// @public +export interface AzureDevOpsOrgs { + beginCreateOrUpdate(resourceGroupName: string, securityConnectorName: string, orgName: string, azureDevOpsOrg: AzureDevOpsOrg, options?: AzureDevOpsOrgsCreateOrUpdateOptionalParams): Promise, AzureDevOpsOrgsCreateOrUpdateResponse>>; + beginCreateOrUpdateAndWait(resourceGroupName: string, securityConnectorName: string, orgName: string, azureDevOpsOrg: AzureDevOpsOrg, options?: AzureDevOpsOrgsCreateOrUpdateOptionalParams): Promise; + beginUpdate(resourceGroupName: string, securityConnectorName: string, orgName: string, azureDevOpsOrg: AzureDevOpsOrg, options?: AzureDevOpsOrgsUpdateOptionalParams): Promise, AzureDevOpsOrgsUpdateResponse>>; + beginUpdateAndWait(resourceGroupName: string, securityConnectorName: string, orgName: string, azureDevOpsOrg: AzureDevOpsOrg, options?: AzureDevOpsOrgsUpdateOptionalParams): Promise; + get(resourceGroupName: string, securityConnectorName: string, orgName: string, options?: AzureDevOpsOrgsGetOptionalParams): Promise; + list(resourceGroupName: string, securityConnectorName: string, options?: AzureDevOpsOrgsListOptionalParams): PagedAsyncIterableIterator; + listAvailable(resourceGroupName: string, securityConnectorName: string, options?: AzureDevOpsOrgsListAvailableOptionalParams): Promise; +} + +// @public +export interface AzureDevOpsOrgsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type AzureDevOpsOrgsCreateOrUpdateResponse = AzureDevOpsOrg; + +// @public +export interface AzureDevOpsOrgsGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type AzureDevOpsOrgsGetResponse = AzureDevOpsOrg; + +// @public +export interface AzureDevOpsOrgsListAvailableOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type AzureDevOpsOrgsListAvailableResponse = AzureDevOpsOrgListResponse; + +// @public +export interface AzureDevOpsOrgsListNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type AzureDevOpsOrgsListNextResponse = AzureDevOpsOrgListResponse; + +// @public +export interface AzureDevOpsOrgsListOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type AzureDevOpsOrgsListResponse = AzureDevOpsOrgListResponse; + +// @public +export interface AzureDevOpsOrgsUpdateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type AzureDevOpsOrgsUpdateResponse = AzureDevOpsOrg; + +// @public +export interface AzureDevOpsProject extends ProxyResource { + properties?: AzureDevOpsProjectProperties; + readonly systemData?: SystemData; +} + +// @public +export interface AzureDevOpsProjectConfiguration { + autoDiscovery?: AutoDiscovery; + repositoryConfigs?: { + [propertyName: string]: BaseResourceConfiguration; + }; +} + +// @public +export interface AzureDevOpsProjectListResponse { + nextLink?: string; + value?: AzureDevOpsProject[]; +} + +// @public +export interface AzureDevOpsProjectProperties { + actionableRemediation?: ActionableRemediation; + onboardingState?: OnboardingState; + parentOrgName?: string; + readonly projectId?: string; + provisioningState?: DevOpsProvisioningState; + readonly provisioningStatusMessage?: string; + readonly provisioningStatusUpdateTimeUtc?: Date; +} + +// @public +export interface AzureDevOpsProjects { + beginCreateOrUpdate(resourceGroupName: string, securityConnectorName: string, orgName: string, projectName: string, azureDevOpsProject: AzureDevOpsProject, options?: AzureDevOpsProjectsCreateOrUpdateOptionalParams): Promise, AzureDevOpsProjectsCreateOrUpdateResponse>>; + beginCreateOrUpdateAndWait(resourceGroupName: string, securityConnectorName: string, orgName: string, projectName: string, azureDevOpsProject: AzureDevOpsProject, options?: AzureDevOpsProjectsCreateOrUpdateOptionalParams): Promise; + beginUpdate(resourceGroupName: string, securityConnectorName: string, orgName: string, projectName: string, azureDevOpsProject: AzureDevOpsProject, options?: AzureDevOpsProjectsUpdateOptionalParams): Promise, AzureDevOpsProjectsUpdateResponse>>; + beginUpdateAndWait(resourceGroupName: string, securityConnectorName: string, orgName: string, projectName: string, azureDevOpsProject: AzureDevOpsProject, options?: AzureDevOpsProjectsUpdateOptionalParams): Promise; + get(resourceGroupName: string, securityConnectorName: string, orgName: string, projectName: string, options?: AzureDevOpsProjectsGetOptionalParams): Promise; + list(resourceGroupName: string, securityConnectorName: string, orgName: string, options?: AzureDevOpsProjectsListOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface AzureDevOpsProjectsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type AzureDevOpsProjectsCreateOrUpdateResponse = AzureDevOpsProject; + +// @public +export interface AzureDevOpsProjectsGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type AzureDevOpsProjectsGetResponse = AzureDevOpsProject; + +// @public +export interface AzureDevOpsProjectsListNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type AzureDevOpsProjectsListNextResponse = AzureDevOpsProjectListResponse; + +// @public +export interface AzureDevOpsProjectsListOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type AzureDevOpsProjectsListResponse = AzureDevOpsProjectListResponse; + +// @public +export interface AzureDevOpsProjectsUpdateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type AzureDevOpsProjectsUpdateResponse = AzureDevOpsProject; + +// @public +export interface AzureDevOpsRepos { + beginCreateOrUpdate(resourceGroupName: string, securityConnectorName: string, orgName: string, projectName: string, repoName: string, azureDevOpsRepository: AzureDevOpsRepository, options?: AzureDevOpsReposCreateOrUpdateOptionalParams): Promise, AzureDevOpsReposCreateOrUpdateResponse>>; + beginCreateOrUpdateAndWait(resourceGroupName: string, securityConnectorName: string, orgName: string, projectName: string, repoName: string, azureDevOpsRepository: AzureDevOpsRepository, options?: AzureDevOpsReposCreateOrUpdateOptionalParams): Promise; + beginUpdate(resourceGroupName: string, securityConnectorName: string, orgName: string, projectName: string, repoName: string, azureDevOpsRepository: AzureDevOpsRepository, options?: AzureDevOpsReposUpdateOptionalParams): Promise, AzureDevOpsReposUpdateResponse>>; + beginUpdateAndWait(resourceGroupName: string, securityConnectorName: string, orgName: string, projectName: string, repoName: string, azureDevOpsRepository: AzureDevOpsRepository, options?: AzureDevOpsReposUpdateOptionalParams): Promise; + get(resourceGroupName: string, securityConnectorName: string, orgName: string, projectName: string, repoName: string, options?: AzureDevOpsReposGetOptionalParams): Promise; + list(resourceGroupName: string, securityConnectorName: string, orgName: string, projectName: string, options?: AzureDevOpsReposListOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface AzureDevOpsReposCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type AzureDevOpsReposCreateOrUpdateResponse = AzureDevOpsRepository; + +// @public +export interface AzureDevOpsReposGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type AzureDevOpsReposGetResponse = AzureDevOpsRepository; + +// @public +export interface AzureDevOpsRepository extends ProxyResource { + properties?: AzureDevOpsRepositoryProperties; + readonly systemData?: SystemData; +} + +// @public +export interface AzureDevOpsRepositoryListResponse { + nextLink?: string; + value?: AzureDevOpsRepository[]; +} + +// @public +export interface AzureDevOpsRepositoryProperties { + actionableRemediation?: ActionableRemediation; + onboardingState?: OnboardingState; + parentOrgName?: string; + parentProjectName?: string; + provisioningState?: DevOpsProvisioningState; + readonly provisioningStatusMessage?: string; + readonly provisioningStatusUpdateTimeUtc?: Date; + readonly repoId?: string; + readonly repoUrl?: string; + readonly visibility?: string; +} + +// @public +export interface AzureDevOpsReposListNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type AzureDevOpsReposListNextResponse = AzureDevOpsRepositoryListResponse; + +// @public +export interface AzureDevOpsReposListOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type AzureDevOpsReposListResponse = AzureDevOpsRepositoryListResponse; + +// @public +export interface AzureDevOpsReposUpdateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type AzureDevOpsReposUpdateResponse = AzureDevOpsRepository; + // @public export interface AzureDevOpsScopeEnvironmentData extends EnvironmentData { environmentType: "AzureDevOpsScope"; @@ -1106,6 +1369,12 @@ export interface AzureResourceLink { readonly id?: string; } +// @public +export interface AzureServersSetting extends ServerVulnerabilityAssessmentsSetting { + kind: "AzureServersSetting"; + selectedProvider?: ServerVulnerabilityAssessmentsAzureSettingSelectedProvider; +} + // @public export interface AzureTrackedResourceLocation { location?: string; @@ -1125,18 +1394,36 @@ export interface BaselineAdjustedResult { status?: RuleStatus; } +// @public +export interface BaseResourceConfiguration { + desiredOnboardingState?: DesiredOnboardingState; +} + // @public export interface BenchmarkReference { benchmark?: string; reference?: string; } +// @public +export interface BuiltInInfoType { + id?: string; + name?: string; + type?: string; +} + // @public export type BundleType = string; // @public export type Categories = string; +// @public +export interface CategoryConfiguration { + category?: RuleCategory; + minimumSeverityLevel?: string; +} + // @public export interface CefExternalSecuritySolution extends ExternalSecuritySolution { properties?: CefSolutionProperties; @@ -1925,12 +2212,46 @@ export interface DefenderForServersGcpOfferingVmScannersConfiguration { scanningMode?: ScanningMode; } +// @public +export interface DefenderForStorage { + create(resourceId: string, settingName: SettingNameAutoGenerated, defenderForStorageSetting: DefenderForStorageSetting, options?: DefenderForStorageCreateOptionalParams): Promise; + get(resourceId: string, settingName: SettingNameAutoGenerated, options?: DefenderForStorageGetOptionalParams): Promise; +} + +// @public +export interface DefenderForStorageCreateOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type DefenderForStorageCreateResponse = DefenderForStorageSetting; + +// @public +export interface DefenderForStorageGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type DefenderForStorageGetResponse = DefenderForStorageSetting; + +// @public +export interface DefenderForStorageSetting extends Resource { + capGBPerMonth?: number; + isEnabledPropertiesIsEnabled?: boolean; + isEnabledPropertiesMalwareScanningOnUploadIsEnabled?: boolean; + isEnabledPropertiesSensitiveDataDiscoveryIsEnabled?: boolean; + readonly operationStatusPropertiesMalwareScanningOperationStatus?: OperationStatusAutoGenerated; + readonly operationStatusPropertiesSensitiveDataDiscoveryOperationStatus?: OperationStatusAutoGenerated; + overrideSubscriptionLevelSettings?: boolean; +} + // @public export interface DenylistCustomAlertRule extends ListCustomAlertRule { denylistValues: string[]; ruleType: "DenylistCustomAlertRule"; } +// @public +export type DesiredOnboardingState = string; + // @public export interface DeviceSecurityGroup extends Resource { allowlistRules?: AllowlistCustomAlertRuleUnion[]; @@ -1985,6 +2306,100 @@ export interface DeviceSecurityGroupsListOptionalParams extends coreClient.Opera // @public export type DeviceSecurityGroupsListResponse = DeviceSecurityGroupList; +// @public +export interface DevOpsConfiguration extends ProxyResource { + properties?: DevOpsConfigurationProperties; + readonly systemData?: SystemData; +} + +// @public +export interface DevOpsConfigurationListResponse { + nextLink?: string; + value?: DevOpsConfiguration[]; +} + +// @public +export interface DevOpsConfigurationProperties { + authorization?: Authorization; + autoDiscovery?: AutoDiscovery; + provisioningState?: DevOpsProvisioningState; + readonly provisioningStatusMessage?: string; + readonly provisioningStatusUpdateTimeUtc?: Date; + topLevelInventoryList?: string[]; +} + +// @public +export interface DevOpsConfigurations { + beginCreateOrUpdate(resourceGroupName: string, securityConnectorName: string, devOpsConfiguration: DevOpsConfiguration, options?: DevOpsConfigurationsCreateOrUpdateOptionalParams): Promise, DevOpsConfigurationsCreateOrUpdateResponse>>; + beginCreateOrUpdateAndWait(resourceGroupName: string, securityConnectorName: string, devOpsConfiguration: DevOpsConfiguration, options?: DevOpsConfigurationsCreateOrUpdateOptionalParams): Promise; + beginDelete(resourceGroupName: string, securityConnectorName: string, options?: DevOpsConfigurationsDeleteOptionalParams): Promise, void>>; + beginDeleteAndWait(resourceGroupName: string, securityConnectorName: string, options?: DevOpsConfigurationsDeleteOptionalParams): Promise; + beginUpdate(resourceGroupName: string, securityConnectorName: string, devOpsConfiguration: DevOpsConfiguration, options?: DevOpsConfigurationsUpdateOptionalParams): Promise, DevOpsConfigurationsUpdateResponse>>; + beginUpdateAndWait(resourceGroupName: string, securityConnectorName: string, devOpsConfiguration: DevOpsConfiguration, options?: DevOpsConfigurationsUpdateOptionalParams): Promise; + get(resourceGroupName: string, securityConnectorName: string, options?: DevOpsConfigurationsGetOptionalParams): Promise; + list(resourceGroupName: string, securityConnectorName: string, options?: DevOpsConfigurationsListOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface DevOpsConfigurationsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type DevOpsConfigurationsCreateOrUpdateResponse = DevOpsConfiguration; + +// @public +export interface DevOpsConfigurationsDeleteOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export interface DevOpsConfigurationsGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type DevOpsConfigurationsGetResponse = DevOpsConfiguration; + +// @public +export interface DevOpsConfigurationsListNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type DevOpsConfigurationsListNextResponse = DevOpsConfigurationListResponse; + +// @public +export interface DevOpsConfigurationsListOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type DevOpsConfigurationsListResponse = DevOpsConfigurationListResponse; + +// @public +export interface DevOpsConfigurationsUpdateOptionalParams extends coreClient.OperationOptions { + resumeFrom?: string; + updateIntervalInMs?: number; +} + +// @public +export type DevOpsConfigurationsUpdateResponse = DevOpsConfiguration; + +// @public +export interface DevOpsOperationResults { + get(resourceGroupName: string, securityConnectorName: string, operationResultId: string, options?: DevOpsOperationResultsGetOptionalParams): Promise; +} + +// @public +export interface DevOpsOperationResultsGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type DevOpsOperationResultsGetResponse = OperationStatusResult; + +// @public +export type DevOpsProvisioningState = string; + // @public export type Direction = string; @@ -2109,6 +2524,15 @@ 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 ErrorResponse { error?: ErrorDetail; @@ -2119,6 +2543,11 @@ export interface ErrorResponseAutoGenerated { error?: ErrorDetailAutoGenerated; } +// @public +export interface ErrorResponseAutoGenerated2 { + error?: ErrorDetailAutoGenerated2; +} + // @public export interface ETag { etag?: string; @@ -2200,110 +2629,393 @@ export interface ExternalSecuritySolutionsListByHomeRegionNextOptionalParams ext } // @public -export type ExternalSecuritySolutionsListByHomeRegionNextResponse = ExternalSecuritySolutionList; +export type ExternalSecuritySolutionsListByHomeRegionNextResponse = ExternalSecuritySolutionList; + +// @public +export interface ExternalSecuritySolutionsListByHomeRegionOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ExternalSecuritySolutionsListByHomeRegionResponse = ExternalSecuritySolutionList; + +// @public +export interface ExternalSecuritySolutionsListNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ExternalSecuritySolutionsListNextResponse = ExternalSecuritySolutionList; + +// @public +export interface ExternalSecuritySolutionsListOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ExternalSecuritySolutionsListResponse = ExternalSecuritySolutionList; + +// @public +export interface FailedLocalLoginsNotInAllowedRange extends TimeWindowCustomAlertRule { + ruleType: "FailedLocalLoginsNotInAllowedRange"; +} + +// @public +export type FileType = string; + +// @public +export interface FileUploadsNotInAllowedRange extends TimeWindowCustomAlertRule { + ruleType: "FileUploadsNotInAllowedRange"; +} + +// @public +export interface GcpCredentialsDetailsProperties extends AuthenticationDetailsProperties { + authenticationType: "gcpCredentials"; + authProviderX509CertUrl: string; + authUri: string; + clientEmail: string; + clientId: string; + clientX509CertUrl: string; + organizationId: string; + privateKey: string; + privateKeyId: string; + projectId: string; + tokenUri: string; + type: string; +} + +// @public +export interface GcpOrganizationalData { + organizationMembershipType: "Organization" | "Member"; +} + +// @public +export interface GcpOrganizationalDataMember extends GcpOrganizationalData { + managementProjectNumber?: string; + organizationMembershipType: "Member"; + parentHierarchyId?: string; +} + +// @public +export interface GcpOrganizationalDataOrganization extends GcpOrganizationalData { + excludedProjectNumbers?: string[]; + organizationMembershipType: "Organization"; + readonly organizationName?: string; + serviceAccountEmailAddress?: string; + workloadIdentityProviderId?: string; +} + +// @public (undocumented) +export type GcpOrganizationalDataUnion = GcpOrganizationalData | GcpOrganizationalDataOrganization | GcpOrganizationalDataMember; + +// @public +export interface GcpProjectDetails { + projectId?: string; + readonly projectName?: string; + projectNumber?: string; + readonly workloadIdentityPoolId?: string; +} + +// @public +export interface GcpProjectEnvironmentData extends EnvironmentData { + environmentType: "GcpProject"; + organizationalData?: GcpOrganizationalDataUnion; + projectDetails?: GcpProjectDetails; +} + +// @public +export function getContinuationToken(page: unknown): string | undefined; + +// @public +export interface GetSensitivitySettingsListResponse { + // (undocumented) + value?: GetSensitivitySettingsResponse[]; +} + +// @public +export type GetSensitivitySettingsOperationResponse = GetSensitivitySettingsResponse; + +// @public +export interface GetSensitivitySettingsOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface GetSensitivitySettingsResponse { + readonly id?: string; + readonly name?: string; + properties?: GetSensitivitySettingsResponseProperties; + readonly type?: string; +} + +// @public +export interface GetSensitivitySettingsResponseProperties { + mipInformation?: GetSensitivitySettingsResponsePropertiesMipInformation; + sensitiveInfoTypesIds?: string[]; + sensitivityThresholdLabelId?: string; + sensitivityThresholdLabelOrder?: number; +} + +// @public +export interface GetSensitivitySettingsResponsePropertiesMipInformation { + builtInInfoTypes?: BuiltInInfoType[]; + customInfoTypes?: InfoType[]; + labels?: Label[]; + mipIntegrationStatus?: MipIntegrationStatus; +} + +// @public +export interface GitHubOwner extends ProxyResource { + properties?: GitHubOwnerProperties; + readonly systemData?: SystemData; +} + +// @public +export interface GitHubOwnerConfiguration { + autoDiscovery?: AutoDiscovery; + repositoryConfigs?: { + [propertyName: string]: BaseResourceConfiguration; + }; +} + +// @public +export interface GitHubOwnerListResponse { + nextLink?: string; + value?: GitHubOwner[]; +} + +// @public +export interface GitHubOwnerProperties { + readonly gitHubInternalId?: string; + onboardingState?: OnboardingState; + readonly ownerUrl?: string; + provisioningState?: DevOpsProvisioningState; + readonly provisioningStatusMessage?: string; + readonly provisioningStatusUpdateTimeUtc?: Date; +} + +// @public +export interface GitHubOwners { + get(resourceGroupName: string, securityConnectorName: string, ownerName: string, options?: GitHubOwnersGetOptionalParams): Promise; + list(resourceGroupName: string, securityConnectorName: string, options?: GitHubOwnersListOptionalParams): PagedAsyncIterableIterator; + listAvailable(resourceGroupName: string, securityConnectorName: string, options?: GitHubOwnersListAvailableOptionalParams): Promise; +} + +// @public +export interface GitHubOwnersGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type GitHubOwnersGetResponse = GitHubOwner; + +// @public +export interface GitHubOwnersListAvailableOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type GitHubOwnersListAvailableResponse = GitHubOwnerListResponse; + +// @public +export interface GitHubOwnersListNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type GitHubOwnersListNextResponse = GitHubOwnerListResponse; + +// @public +export interface GitHubOwnersListOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type GitHubOwnersListResponse = GitHubOwnerListResponse; + +// @public +export interface GitHubRepos { + get(resourceGroupName: string, securityConnectorName: string, ownerName: string, repoName: string, options?: GitHubReposGetOptionalParams): Promise; + list(resourceGroupName: string, securityConnectorName: string, ownerName: string, options?: GitHubReposListOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface GitHubReposGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type GitHubReposGetResponse = GitHubRepository; + +// @public +export interface GitHubRepository extends ProxyResource { + properties?: GitHubRepositoryProperties; + readonly systemData?: SystemData; +} + +// @public +export interface GitHubRepositoryListResponse { + nextLink?: string; + value?: GitHubRepository[]; +} + +// @public +export interface GitHubRepositoryProperties { + onboardingState?: OnboardingState; + parentOwnerName?: string; + provisioningState?: DevOpsProvisioningState; + readonly provisioningStatusMessage?: string; + readonly provisioningStatusUpdateTimeUtc?: Date; + readonly repoFullName?: string; + readonly repoId?: string; + readonly repoName?: string; + readonly repoUrl?: string; +} + +// @public +export interface GitHubReposListNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type GitHubReposListNextResponse = GitHubRepositoryListResponse; + +// @public +export interface GitHubReposListOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type GitHubReposListResponse = GitHubRepositoryListResponse; + +// @public +export interface GithubScopeEnvironmentData extends EnvironmentData { + environmentType: "GithubScope"; +} + +// @public +export interface GitLabGroup extends ProxyResource { + properties?: GitLabGroupProperties; + readonly systemData?: SystemData; +} + +// @public +export interface GitLabGroupConfiguration { + autoDiscovery?: AutoDiscovery; + projectConfigs?: { + [propertyName: string]: BaseResourceConfiguration; + }; +} + +// @public +export interface GitLabGroupListResponse { + nextLink?: string; + value?: GitLabGroup[]; +} + +// @public +export interface GitLabGroupProperties { + readonly fullyQualifiedFriendlyName?: string; + readonly fullyQualifiedName?: string; + onboardingState?: OnboardingState; + provisioningState?: DevOpsProvisioningState; + readonly provisioningStatusMessage?: string; + readonly provisioningStatusUpdateTimeUtc?: Date; + readonly url?: string; +} + +// @public +export interface GitLabGroups { + get(resourceGroupName: string, securityConnectorName: string, groupFQName: string, options?: GitLabGroupsGetOptionalParams): Promise; + list(resourceGroupName: string, securityConnectorName: string, options?: GitLabGroupsListOptionalParams): PagedAsyncIterableIterator; + listAvailable(resourceGroupName: string, securityConnectorName: string, options?: GitLabGroupsListAvailableOptionalParams): Promise; +} + +// @public +export interface GitLabGroupsGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type GitLabGroupsGetResponse = GitLabGroup; // @public -export interface ExternalSecuritySolutionsListByHomeRegionOptionalParams extends coreClient.OperationOptions { +export interface GitLabGroupsListAvailableOptionalParams extends coreClient.OperationOptions { } // @public -export type ExternalSecuritySolutionsListByHomeRegionResponse = ExternalSecuritySolutionList; +export type GitLabGroupsListAvailableResponse = GitLabGroupListResponse; // @public -export interface ExternalSecuritySolutionsListNextOptionalParams extends coreClient.OperationOptions { +export interface GitLabGroupsListNextOptionalParams extends coreClient.OperationOptions { } // @public -export type ExternalSecuritySolutionsListNextResponse = ExternalSecuritySolutionList; +export type GitLabGroupsListNextResponse = GitLabGroupListResponse; // @public -export interface ExternalSecuritySolutionsListOptionalParams extends coreClient.OperationOptions { +export interface GitLabGroupsListOptionalParams extends coreClient.OperationOptions { } // @public -export type ExternalSecuritySolutionsListResponse = ExternalSecuritySolutionList; +export type GitLabGroupsListResponse = GitLabGroupListResponse; // @public -export interface FailedLocalLoginsNotInAllowedRange extends TimeWindowCustomAlertRule { - ruleType: "FailedLocalLoginsNotInAllowedRange"; +export interface GitLabProject extends ProxyResource { + properties?: GitLabProjectProperties; + readonly systemData?: SystemData; } // @public -export type FileType = string; +export interface GitLabProjectListResponse { + nextLink?: string; + value?: GitLabProject[]; +} // @public -export interface FileUploadsNotInAllowedRange extends TimeWindowCustomAlertRule { - ruleType: "FileUploadsNotInAllowedRange"; +export interface GitLabProjectProperties { + readonly fullyQualifiedFriendlyName?: string; + readonly fullyQualifiedName?: string; + readonly fullyQualifiedParentGroupName?: string; + onboardingState?: OnboardingState; + provisioningState?: DevOpsProvisioningState; + readonly provisioningStatusMessage?: string; + readonly provisioningStatusUpdateTimeUtc?: Date; + readonly url?: string; } // @public -export interface GcpCredentialsDetailsProperties extends AuthenticationDetailsProperties { - authenticationType: "gcpCredentials"; - authProviderX509CertUrl: string; - authUri: string; - clientEmail: string; - clientId: string; - clientX509CertUrl: string; - organizationId: string; - privateKey: string; - privateKeyId: string; - projectId: string; - tokenUri: string; - type: string; +export interface GitLabProjects { + get(resourceGroupName: string, securityConnectorName: string, groupFQName: string, projectName: string, options?: GitLabProjectsGetOptionalParams): Promise; + list(resourceGroupName: string, securityConnectorName: string, groupFQName: string, options?: GitLabProjectsListOptionalParams): PagedAsyncIterableIterator; } // @public -export interface GcpOrganizationalData { - organizationMembershipType: "Organization" | "Member"; +export interface GitLabProjectsGetOptionalParams extends coreClient.OperationOptions { } // @public -export interface GcpOrganizationalDataMember extends GcpOrganizationalData { - managementProjectNumber?: string; - organizationMembershipType: "Member"; - parentHierarchyId?: string; -} +export type GitLabProjectsGetResponse = GitLabProject; // @public -export interface GcpOrganizationalDataOrganization extends GcpOrganizationalData { - excludedProjectNumbers?: string[]; - organizationMembershipType: "Organization"; - readonly organizationName?: string; - serviceAccountEmailAddress?: string; - workloadIdentityProviderId?: string; +export interface GitLabProjectsListNextOptionalParams extends coreClient.OperationOptions { } -// @public (undocumented) -export type GcpOrganizationalDataUnion = GcpOrganizationalData | GcpOrganizationalDataOrganization | GcpOrganizationalDataMember; +// @public +export type GitLabProjectsListNextResponse = GitLabProjectListResponse; // @public -export interface GcpProjectDetails { - projectId?: string; - readonly projectName?: string; - projectNumber?: string; - readonly workloadIdentityPoolId?: string; +export interface GitLabProjectsListOptionalParams extends coreClient.OperationOptions { } // @public -export interface GcpProjectEnvironmentData extends EnvironmentData { - environmentType: "GcpProject"; - organizationalData?: GcpOrganizationalDataUnion; - projectDetails?: GcpProjectDetails; -} +export type GitLabProjectsListResponse = GitLabProjectListResponse; // @public -export function getContinuationToken(page: unknown): string | undefined; +export interface GitlabScopeEnvironmentData extends EnvironmentData { + environmentType: "GitlabScope"; +} // @public -export interface GithubScopeEnvironmentData extends EnvironmentData { - environmentType: "GithubScope"; +export interface GitLabSubgroups { + list(resourceGroupName: string, securityConnectorName: string, groupFQName: string, options?: GitLabSubgroupsListOptionalParams): Promise; } // @public -export interface GitlabScopeEnvironmentData extends EnvironmentData { - environmentType: "GitlabScope"; +export interface GitLabSubgroupsListOptionalParams extends coreClient.OperationOptions { } +// @public +export type GitLabSubgroupsListResponse = GitLabGroupListResponse; + // @public export interface GovernanceAssignment extends Resource { additionalData?: GovernanceAssignmentAdditionalData; @@ -2512,35 +3224,35 @@ export type GovernanceRuleType = string; export interface HealthDataClassification { component?: string; scenario?: string; - scope?: ScopeName; + scope?: string; } // @public export interface HealthReport extends Resource { affectedDefendersPlans?: string[]; + affectedDefendersSubPlans?: string[]; environmentDetails?: EnvironmentDetails; healthDataClassification?: HealthDataClassification; issues?: Issue[]; + readonly reportAdditionalData?: { + [propertyName: string]: string; + }; resourceDetails?: ResourceDetailsAutoGenerated; status?: StatusAutoGenerated; } // @public -export interface HealthReportGetOptionalParams extends coreClient.OperationOptions { +export interface HealthReports { + get(resourceId: string, healthReportName: string, options?: HealthReportsGetOptionalParams): Promise; + list(scope: string, options?: HealthReportsListOptionalParams): PagedAsyncIterableIterator; } // @public -export type HealthReportGetResponse = HealthReport; - -// @public -export interface HealthReportOperations { - get(resourceId: string, healthReportName: string, options?: HealthReportGetOptionalParams): Promise; +export interface HealthReportsGetOptionalParams extends coreClient.OperationOptions { } // @public -export interface HealthReports { - list(scope: string, options?: HealthReportsListOptionalParams): PagedAsyncIterableIterator; -} +export type HealthReportsGetResponse = HealthReport; // @public export interface HealthReportsList { @@ -2686,6 +3398,13 @@ export interface InformationType { recommendedLabelId?: string; } +// @public +export interface InfoType { + description?: string; + id?: string; + name?: string; +} + // @public export interface IngestionConnectionString { readonly location?: string; @@ -2764,6 +3483,9 @@ export interface IngestionSettingToken { readonly token?: string; } +// @public +export type InheritFromParentState = string; + // @public export type Intent = string; @@ -3239,6 +3961,13 @@ export enum KnownAadConnectivityState { NotLicensed = "NotLicensed" } +// @public +export enum KnownActionableRemediationState { + Disabled = "Disabled", + Enabled = "Enabled", + None = "None" +} + // @public export enum KnownActionType { EventHub = "EventHub", @@ -3283,6 +4012,12 @@ export enum KnownAlertStatus { Resolved = "Resolved" } +// @public +export enum KnownAnnotateDefaultBranchState { + Disabled = "Disabled", + Enabled = "Enabled" +} + // @public export enum KnownApplicationConditionOperator { Contains = "Contains", @@ -3332,6 +4067,13 @@ export enum KnownAuthenticationType { GcpCredentials = "gcpCredentials" } +// @public +export enum KnownAutoDiscovery { + Disabled = "Disabled", + Enabled = "Enabled", + NotApplicable = "NotApplicable" +} + // @public export enum KnownAutoProvision { Off = "Off", @@ -3410,6 +4152,23 @@ export enum KnownDataSource { TwinData = "TwinData" } +// @public +export enum KnownDesiredOnboardingState { + Disabled = "Disabled", + Enabled = "Enabled" +} + +// @public +export enum KnownDevOpsProvisioningState { + Canceled = "Canceled", + DeletionFailure = "DeletionFailure", + DeletionSuccess = "DeletionSuccess", + Failed = "Failed", + Pending = "Pending", + PendingDeletion = "PendingDeletion", + Succeeded = "Succeeded" +} + // @public export enum KnownDirection { Inbound = "Inbound", @@ -3539,6 +4298,12 @@ export enum KnownInformationProtectionPolicyName { Effective = "effective" } +// @public +export enum KnownInheritFromParentState { + Disabled = "Disabled", + Enabled = "Enabled" +} + // @public export enum KnownIntent { Collection = "Collection", @@ -3577,6 +4342,14 @@ export enum KnownMinimalSeverity { Medium = "Medium" } +// @public +export enum KnownMipIntegrationStatus { + NoAutoLabelingRules = "noAutoLabelingRules", + NoConsent = "noConsent", + NoMipLabels = "noMipLabels", + Ok = "Ok" +} + // @public export enum KnownOfferingType { CspmMonitorAws = "CspmMonitorAws", @@ -3598,6 +4371,14 @@ export enum KnownOfferingType { InformationProtectionAws = "InformationProtectionAws" } +// @public +export enum KnownOnboardingState { + NotApplicable = "NotApplicable", + NotOnboarded = "NotOnboarded", + Onboarded = "Onboarded", + OnboardedByOtherConnector = "OnboardedByOtherConnector" +} + // @public export enum KnownOperationResult { Canceled = "Canceled", @@ -3731,6 +4512,16 @@ export enum KnownRoles { ServiceAdmin = "ServiceAdmin" } +// @public +export enum KnownRuleCategory { + Artifacts = "Artifacts", + Code = "Code", + Containers = "Containers", + Dependencies = "Dependencies", + IaC = "IaC", + Secrets = "Secrets" +} + // @public export enum KnownRuleSeverity { High = "High", @@ -3774,14 +4565,6 @@ export enum KnownScanTriggerType { Recurring = "Recurring" } -// @public -export enum KnownScopeName { - Clusters = "Clusters", - Connectors = "Connectors", - Unknown = "Unknown", - VirtualMachines = "VirtualMachines" -} - // @public export enum KnownSecurityFamily { Ngfw = "Ngfw", @@ -3805,6 +4588,21 @@ export enum KnownServerVulnerabilityAssessmentPropertiesProvisioningState { Succeeded = "Succeeded" } +// @public +export enum KnownServerVulnerabilityAssessmentsAzureSettingSelectedProvider { + MdeTvm = "MdeTvm" +} + +// @public +export enum KnownServerVulnerabilityAssessmentsSettingKind { + AzureServersSetting = "AzureServersSetting" +} + +// @public +export enum KnownServerVulnerabilityAssessmentsSettingKindName { + AzureServersSetting = "azureServersSetting" +} + // @public export enum KnownSettingKind { AlertSuppressionSetting = "AlertSuppressionSetting", @@ -3821,6 +4619,11 @@ export enum KnownSettingName { WdatpUnifiedSolution = "WDATP_UNIFIED_SOLUTION" } +// @public +export enum KnownSettingNameAutoGenerated { + Current = "current" +} + // @public export enum KnownSeverity { High = "High", @@ -4076,6 +4879,13 @@ export enum KnownValueType { String = "String" } +// @public +export interface Label { + id?: string; + name?: string; + order?: number; +} + // @public export interface ListCustomAlertRule extends CustomAlertRule { ruleType: "ListCustomAlertRule" | "AllowlistCustomAlertRule" | "DenylistCustomAlertRule" | "ConnectionToIpNotAllowed" | "ConnectionFromIpNotAllowed" | "LocalUserNotAllowed" | "ProcessNotAllowed"; @@ -4166,6 +4976,9 @@ export type MdeOnboardingsListResponse = MdeOnboardingDataList; // @public export type MinimalSeverity = string; +// @public +export type MipIntegrationStatus = string; + // @public export interface MqttC2DMessagesNotInAllowedRange extends TimeWindowCustomAlertRule { ruleType: "MqttC2DMessagesNotInAllowedRange"; @@ -4184,6 +4997,9 @@ export interface MqttD2CMessagesNotInAllowedRange extends TimeWindowCustomAlertR // @public export type OfferingType = string; +// @public +export type OnboardingState = string; + // @public export interface OnPremiseResourceDetails extends ResourceDetails { machineName: string; @@ -4257,6 +5073,24 @@ export interface OperationStatus { message?: string; } +// @public +export interface OperationStatusAutoGenerated { + code?: string; + message?: string; +} + +// @public +export interface OperationStatusResult { + endTime?: Date; + error?: ErrorDetailAutoGenerated2; + id?: string; + name?: string; + operations?: OperationStatusResult[]; + percentComplete?: number; + startTime?: Date; + status: string; +} + // @public export type Operator = string; @@ -4350,6 +5184,10 @@ export type Protocol = string; // @public export type ProvisioningState = string; +// @public +export interface ProxyResource extends ResourceAutoGenerated2 { +} + // @public export interface ProxyServerProperties { ip?: string; @@ -4556,6 +5394,21 @@ export interface Resource { readonly type?: string; } +// @public +export interface ResourceAutoGenerated { + readonly id?: string; + readonly name?: string; + readonly systemData?: SystemData; + readonly type?: string; +} + +// @public +export interface ResourceAutoGenerated2 { + readonly id?: string; + readonly name?: string; + readonly type?: string; +} + // @public export interface ResourceDetails { source: "Azure" | "OnPremise" | "OnPremiseSql"; @@ -4597,6 +5450,9 @@ export interface Rule { protocols?: TransportProtocol[]; } +// @public +export type RuleCategory = string; + // @public export interface RuleResults extends Resource { properties?: RuleResultsProperties; @@ -4703,9 +5559,6 @@ export interface ScopeElement { field?: string; } -// @public -export type ScopeName = string; - // @public export interface SecureScoreControlDefinitionItem extends Resource { readonly assessmentDefinitions?: AzureResourceLink[]; @@ -5024,6 +5877,7 @@ export class SecurityCenter extends coreClient.ServiceClient { // (undocumented) $host: string; constructor(credentials: coreAuth.TokenCredential, subscriptionId: string, options?: SecurityCenterOptionalParams); + constructor(credentials: coreAuth.TokenCredential, options?: SecurityCenterOptionalParams); // (undocumented) adaptiveApplicationControls: AdaptiveApplicationControls; // (undocumented) @@ -5055,6 +5909,12 @@ export class SecurityCenter extends coreClient.ServiceClient { // (undocumented) autoProvisioningSettings: AutoProvisioningSettings; // (undocumented) + azureDevOpsOrgs: AzureDevOpsOrgs; + // (undocumented) + azureDevOpsProjects: AzureDevOpsProjects; + // (undocumented) + azureDevOpsRepos: AzureDevOpsRepos; + // (undocumented) complianceResults: ComplianceResults; // (undocumented) compliances: Compliances; @@ -5065,18 +5925,33 @@ export class SecurityCenter extends coreClient.ServiceClient { // (undocumented) customEntityStoreAssignments: CustomEntityStoreAssignments; // (undocumented) + defenderForStorage: DefenderForStorage; + // (undocumented) deviceSecurityGroups: DeviceSecurityGroups; // (undocumented) + devOpsConfigurations: DevOpsConfigurations; + // (undocumented) + devOpsOperationResults: DevOpsOperationResults; + // (undocumented) discoveredSecuritySolutions: DiscoveredSecuritySolutions; // (undocumented) externalSecuritySolutions: ExternalSecuritySolutions; + getSensitivitySettings(options?: GetSensitivitySettingsOptionalParams): Promise; + // (undocumented) + gitHubOwners: GitHubOwners; + // (undocumented) + gitHubRepos: GitHubRepos; + // (undocumented) + gitLabGroups: GitLabGroups; + // (undocumented) + gitLabProjects: GitLabProjects; + // (undocumented) + gitLabSubgroups: GitLabSubgroups; // (undocumented) governanceAssignments: GovernanceAssignments; // (undocumented) governanceRules: GovernanceRules; // (undocumented) - healthReportOperations: HealthReportOperations; - // (undocumented) healthReports: HealthReports; // (undocumented) informationProtectionPolicies: InformationProtectionPolicies; @@ -5127,8 +6002,12 @@ export class SecurityCenter extends coreClient.ServiceClient { // (undocumented) securitySolutionsReferenceDataOperations: SecuritySolutionsReferenceDataOperations; // (undocumented) + sensitivitySettings: SensitivitySettings; + // (undocumented) serverVulnerabilityAssessmentOperations: ServerVulnerabilityAssessmentOperations; // (undocumented) + serverVulnerabilityAssessmentsSettings: ServerVulnerabilityAssessmentsSettings; + // (undocumented) settings: Settings; // (undocumented) softwareInventories: SoftwareInventories; @@ -5141,11 +6020,12 @@ export class SecurityCenter extends coreClient.ServiceClient { // (undocumented) subAssessments: SubAssessments; // (undocumented) - subscriptionId: string; + subscriptionId?: string; // (undocumented) tasks: Tasks; // (undocumented) topology: Topology; + updateSensitivitySettings(sensitivitySettings: UpdateSensitivitySettingsRequest, options?: UpdateSensitivitySettingsOptionalParams): Promise; // (undocumented) workspaceSettings: WorkspaceSettings; } @@ -5523,6 +6403,18 @@ export interface SensitivityLabel { rank?: Rank; } +// @public +export interface SensitivitySettings { + list(options?: SensitivitySettingsListOptionalParams): Promise; +} + +// @public +export interface SensitivitySettingsListOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type SensitivitySettingsListResponse = GetSensitivitySettingsListResponse; + // @public export interface ServerVulnerabilityAssessment extends Resource { readonly provisioningState?: ServerVulnerabilityAssessmentPropertiesProvisioningState; @@ -5567,12 +6459,75 @@ export interface ServerVulnerabilityAssessmentOperations { // @public export type ServerVulnerabilityAssessmentPropertiesProvisioningState = string; +// @public +export type ServerVulnerabilityAssessmentsAzureSettingSelectedProvider = string; + // @public export interface ServerVulnerabilityAssessmentsList { // (undocumented) value?: ServerVulnerabilityAssessment[]; } +// @public +export interface ServerVulnerabilityAssessmentsSetting extends ResourceAutoGenerated { + kind: ServerVulnerabilityAssessmentsSettingKind; +} + +// @public +export type ServerVulnerabilityAssessmentsSettingKind = string; + +// @public +export type ServerVulnerabilityAssessmentsSettingKindName = string; + +// @public +export interface ServerVulnerabilityAssessmentsSettings { + createOrUpdate(settingKind: ServerVulnerabilityAssessmentsSettingKindName, serverVulnerabilityAssessmentsSetting: ServerVulnerabilityAssessmentsSettingUnion, options?: ServerVulnerabilityAssessmentsSettingsCreateOrUpdateOptionalParams): Promise; + delete(settingKind: ServerVulnerabilityAssessmentsSettingKindName, options?: ServerVulnerabilityAssessmentsSettingsDeleteOptionalParams): Promise; + get(settingKind: ServerVulnerabilityAssessmentsSettingKindName, options?: ServerVulnerabilityAssessmentsSettingsGetOptionalParams): Promise; + listBySubscription(options?: ServerVulnerabilityAssessmentsSettingsListBySubscriptionOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface ServerVulnerabilityAssessmentsSettingsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ServerVulnerabilityAssessmentsSettingsCreateOrUpdateResponse = ServerVulnerabilityAssessmentsSettingUnion; + +// @public +export interface ServerVulnerabilityAssessmentsSettingsDeleteOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface ServerVulnerabilityAssessmentsSettingsGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ServerVulnerabilityAssessmentsSettingsGetResponse = ServerVulnerabilityAssessmentsSettingUnion; + +// @public +export interface ServerVulnerabilityAssessmentsSettingsList { + readonly nextLink?: string; + readonly value?: ServerVulnerabilityAssessmentsSettingUnion[]; +} + +// @public +export interface ServerVulnerabilityAssessmentsSettingsListBySubscriptionNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ServerVulnerabilityAssessmentsSettingsListBySubscriptionNextResponse = ServerVulnerabilityAssessmentsSettingsList; + +// @public +export interface ServerVulnerabilityAssessmentsSettingsListBySubscriptionOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type ServerVulnerabilityAssessmentsSettingsListBySubscriptionResponse = ServerVulnerabilityAssessmentsSettingsList; + +// @public (undocumented) +export type ServerVulnerabilityAssessmentsSettingUnion = ServerVulnerabilityAssessmentsSetting | AzureServersSetting; + // @public export interface ServerVulnerabilityProperties extends AdditionalData { assessedResourceType: "ServerVulnerabilityAssessment"; @@ -5604,6 +6559,9 @@ export type SettingKind = string; // @public export type SettingName = string; +// @public +export type SettingNameAutoGenerated = string; + // @public export interface Settings { get(settingName: SettingName, options?: SettingsGetOptionalParams): Promise; @@ -5822,6 +6780,8 @@ export type Status = string; export interface StatusAutoGenerated { code?: StatusName; readonly firstEvaluationDate?: Date; + readonly lastScannedDate?: Date; + readonly reason?: string; readonly statusChangeDate?: Date; } @@ -5922,6 +6882,12 @@ export interface TagsResource { }; } +// @public +export interface TargetBranchConfiguration { + annotateDefaultBranch?: AnnotateDefaultBranchState; + branchNames?: string[]; +} + // @public export interface Tasks { getResourceGroupLevelTask(resourceGroupName: string, ascLocation: string, taskName: string, options?: TasksGetResourceGroupLevelTaskOptionalParams): Promise; @@ -6133,6 +7099,20 @@ export interface UpdateIotSecuritySolutionData extends TagsResource { userDefinedResources?: UserDefinedResourcesProperties; } +// @public +export interface UpdateSensitivitySettingsOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface UpdateSensitivitySettingsRequest { + sensitiveInfoTypesIds: string[]; + sensitivityThresholdLabelId?: string; + sensitivityThresholdLabelOrder?: number; +} + +// @public +export type UpdateSensitivitySettingsResponse = GetSensitivitySettingsResponse; + // @public export interface UserDefinedResourcesProperties { query: string | null; diff --git a/sdk/security/arm-security/src/models/index.ts b/sdk/security/arm-security/src/models/index.ts index d0148a6bb102..b4d675c332ca 100644 --- a/sdk/security/arm-security/src/models/index.ts +++ b/sdk/security/arm-security/src/models/index.ts @@ -83,6 +83,9 @@ export type ListCustomAlertRuleUnion = export type OnPremiseResourceDetailsUnion = | OnPremiseResourceDetails | OnPremiseSqlResourceDetails; +export type ServerVulnerabilityAssessmentsSettingUnion = + | ServerVulnerabilityAssessmentsSetting + | AzureServersSetting; export type TimeWindowCustomAlertRuleUnion = | TimeWindowCustomAlertRule | ActiveConnectionsNotInAllowedRange @@ -1520,6 +1523,96 @@ export interface AuthenticationDetailsProperties { readonly grantedPermissions?: PermissionProperty[]; } +/** Request to update data sensitivity settings for sensitive data discovery */ +export interface UpdateSensitivitySettingsRequest { + /** List of selected sensitive info types' IDs. */ + sensitiveInfoTypesIds: string[]; + /** The order of the sensitivity threshold label. Any label at or above this order will be considered sensitive. If set to -1, sensitivity by labels is turned off */ + sensitivityThresholdLabelOrder?: number; + /** The id of the sensitivity threshold label. Any label at or above this rank will be considered sensitive. */ + sensitivityThresholdLabelId?: string; +} + +/** Data sensitivity settings for sensitive data discovery */ +export interface GetSensitivitySettingsResponse { + /** + * The ID of the sensitivity settings + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly id?: string; + /** + * The type of the sensitivity settings + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly type?: string; + /** + * The name of the sensitivity settings + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly name?: string; + /** The sensitivity settings properties */ + properties?: GetSensitivitySettingsResponseProperties; +} + +/** The sensitivity settings properties */ +export interface GetSensitivitySettingsResponseProperties { + /** List of selected sensitive info types' IDs. */ + sensitiveInfoTypesIds?: string[]; + /** The order of the sensitivity threshold label. Any label at or above this order will be considered sensitive. If set to -1, sensitivity by labels is turned off */ + sensitivityThresholdLabelOrder?: number; + /** The id of the sensitivity threshold label. Any label at or above this rank will be considered sensitive. */ + sensitivityThresholdLabelId?: string; + /** Microsoft information protection built-in and custom information types, labels, and integration status. */ + mipInformation?: GetSensitivitySettingsResponsePropertiesMipInformation; +} + +/** Microsoft information protection built-in and custom information types, labels, and integration status. */ +export interface GetSensitivitySettingsResponsePropertiesMipInformation { + /** Microsoft information protection integration status */ + mipIntegrationStatus?: MipIntegrationStatus; + /** List of Microsoft information protection sensitivity labels */ + labels?: Label[]; + /** List of custom user-defined information types */ + customInfoTypes?: InfoType[]; + /** List of pre-configured sensitive information types */ + builtInInfoTypes?: BuiltInInfoType[]; +} + +/** Microsoft information protection sensitivity label */ +export interface Label { + /** The display name of the label */ + name?: string; + /** The ID of the label */ + id?: string; + /** Labels are ordered by sensitivity level. The higher the order of the label, the more sensitive it is. */ + order?: number; +} + +/** Custom user-defined information type */ +export interface InfoType { + /** Display name of the info type */ + name?: string; + /** Id of the info type */ + id?: string; + /** Description of the info type */ + description?: string; +} + +/** Pre-configured sensitive information type */ +export interface BuiltInInfoType { + /** Display name of the info type */ + name?: string; + /** Id of the info type */ + id?: string; + /** Category of the built-in info type */ + type?: string; +} + +/** A list with a single sensitivity settings resource */ +export interface GetSensitivitySettingsListResponse { + value?: GetSensitivitySettingsResponse[]; +} + /** List of security alerts */ export interface AlertList { /** describes security alert properties. */ @@ -1809,129 +1902,6 @@ export interface ErrorDetail { readonly additionalInfo?: ErrorAdditionalInfo[]; } -/** Page of health reports list */ -export interface HealthReportsList { - /** - * Collection of health reports in this page - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly value?: HealthReport[]; - /** - * 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 resource details of the health report */ -export interface ResourceDetailsAutoGenerated { - /** The status of the health report */ - source?: Source; - /** - * The azure id of the resource - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly id?: string; - /** - * The id of the connector - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly connectorId?: string; -} - -/** The environment details of the resource */ -export interface EnvironmentDetails { - /** The native resource id of the resource (in case of Azure - the resource Id, in case of MC - the native resource id) */ - nativeResourceId?: string; - /** The hierarchy id of the connector (in case of Azure - the subscription Id, in case of MC - the hierarchyId id) */ - environmentHierarchyId?: string; - /** The organizational hierarchy id of the connector (in case of Azure - the subscription Id, in case of MC - the organizational hierarchyId id) */ - organizationalHierarchyId?: string; - /** The subscription Id */ - subscriptionId?: string; - /** The tenant Id */ - tenantId?: string; -} - -/** The classification of the health report */ -export interface HealthDataClassification { - /** The component describes the name of the agent/service that scans the issue */ - component?: string; - /** The scenario describes the health scenario issue of the component */ - scenario?: string; - /** The resource scope of the health report */ - scope?: ScopeName; -} - -/** The status of the health report */ -export interface StatusAutoGenerated { - /** The status of the health report */ - code?: StatusName; - /** - * The date of when the status of the health report was changed in the last time - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly statusChangeDate?: Date; - /** - * The date of when the resource of the health report was scanned in the first time - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly firstEvaluationDate?: Date; -} - -/** The issue that caused the resource to by unhealthy */ -export interface Issue { - /** The unique issue key */ - issueKey: string; - /** The issue name */ - issueName?: string; - /** The affected security values that MDC offers that will be affected by the issue, for example: recommendations, alerts, etc */ - securityValues?: string[]; - /** The issue description */ - issueDescription?: string; - /** Human readable description of what you should do to mitigate this health issue */ - remediationSteps?: string; - /** The remediation script to solve this issue */ - remediationScript?: string; - /** Additional data for the given issue. The additional data depends on the issue type */ - issueAdditionalData?: { [propertyName: string]: 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 error detail. */ -export interface ErrorDetailAutoGenerated { - /** - * 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?: ErrorDetailAutoGenerated[]; - /** - * The error additional info. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly additionalInfo?: ErrorAdditionalInfo[]; -} - /** A vulnerability assessment scan record properties. */ export interface ScanProperties { /** The scan trigger type. */ @@ -2174,412 +2144,1011 @@ export interface Identity { type?: "SystemAssigned"; } -/** CVSS details */ -export interface Cvss { +/** A page of a server vulnerability assessments settings list */ +export interface ServerVulnerabilityAssessmentsSettingsList { /** - * CVSS base + * A collection of server vulnerability assessments settings in this page * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly base?: number; + readonly value?: ServerVulnerabilityAssessmentsSettingUnion[]; + /** + * 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; } -/** CVE details */ -export interface Cve { +/** Common fields that are returned in the response for all Azure Resource Manager resources */ +export interface ResourceAutoGenerated { /** - * CVE title + * 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. */ - readonly title?: string; + readonly id?: string; /** - * Link url + * The name of the resource * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly link?: string; -} - -/** Vendor reference */ -export interface VendorReference { + readonly name?: string; /** - * Link title + * 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 title?: string; + readonly type?: string; /** - * Link url + * 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 link?: 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; + readonly systemData?: SystemData; } -/** Describes an Azure resource with kind */ -export interface AadConnectivityStateAutoGenerated { - /** The connectivity state of the external AAD solution */ - connectivityState?: AadConnectivityState; +/** 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; } -/** Calculation result data */ -export interface SecureScoreControlScore { +/** The error detail. */ +export interface ErrorDetailAutoGenerated { /** - * Maximum control score (0..10) + * The error code. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly max?: number; + readonly code?: string; /** - * Actual score for the control = (achieved points / total points) * max score. if total points is zeroed, the return number is 0.00 + * The error message. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly current?: number; + readonly message?: string; /** - * Ratio of the current score divided by the maximum. Rounded to 4 digits after the decimal point + * The error target. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly percentage?: number; + readonly target?: string; + /** + * The error details. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly details?: ErrorDetailAutoGenerated[]; + /** + * The error additional info. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly additionalInfo?: ErrorAdditionalInfo[]; } -/** 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; +/** Page of health reports list */ +export interface HealthReportsList { + /** + * Collection of health reports in this page + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly value?: HealthReport[]; + /** + * 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; } -/** 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 resource details of the health report */ +export interface ResourceDetailsAutoGenerated { + /** The status of the health report */ + source?: Source; + /** + * The azure id of the resource + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly id?: string; + /** + * The id of the connector + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly connectorId?: string; } -/** The AWS organization data */ -export interface AwsOrganizationalData { - /** Polymorphic discriminator, which specifies the different types this object can be */ - organizationMembershipType: "Organization" | "Member"; +/** The environment details of the resource */ +export interface EnvironmentDetails { + /** The native resource id of the resource (in case of Azure - the resource Id, in case of MC - the native resource id) */ + nativeResourceId?: string; + /** The hierarchy id of the connector (in case of Azure - the subscription Id, in case of MC - the hierarchyId id) */ + environmentHierarchyId?: string; + /** The organizational hierarchy id of the connector (in case of Azure - the subscription Id, in case of MC - the organizational hierarchyId id) */ + organizationalHierarchyId?: string; + /** The subscription Id */ + subscriptionId?: string; + /** The tenant Id */ + tenantId?: string; } -/** The gcpOrganization data */ -export interface GcpOrganizationalData { - /** Polymorphic discriminator, which specifies the different types this object can be */ - organizationMembershipType: "Organization" | "Member"; +/** The classification of the health report */ +export interface HealthDataClassification { + /** The component describes the name of the agent/service that scans the issue */ + component?: string; + /** The scenario describes the health scenario issue of the component */ + scenario?: string; + /** The resource scope of the health report */ + scope?: string; } -/** 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; +/** The status of the health report */ +export interface StatusAutoGenerated { + /** The status of the health report */ + code?: StatusName; /** - * The GCP workload identity federation pool id + * The reason of the given status * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly workloadIdentityPoolId?: string; + readonly reason?: string; /** - * GCP project name + * The date of when the resource was scanned in the last time * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly projectName?: string; + readonly lastScannedDate?: Date; + /** + * The date of when the status of the health report was changed in the last time + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly statusChangeDate?: Date; + /** + * The date of when the resource of the health report was scanned in the first time + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly firstEvaluationDate?: Date; } -/** The native cloud connection configuration */ -export interface CspmMonitorAwsOfferingNativeCloudConnection { - /** The cloud role ARN in AWS for this feature */ - cloudRoleArn?: string; +/** The issue that caused the resource to by unhealthy */ +export interface Issue { + /** The unique issue key */ + issueKey: string; + /** The issue name */ + issueName?: string; + /** The affected security values that MDC offers that will be affected by the issue, for example: recommendations, alerts, etc */ + securityValues?: string[]; + /** The issue description */ + issueDescription?: string; + /** Human readable description of what you should do to mitigate this health issue */ + remediationSteps?: string; + /** The remediation script to solve this issue */ + remediationScript?: string; + /** Additional data for the given issue. The additional data depends on the issue type */ + issueAdditionalData?: { [propertyName: string]: 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 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 kubernetes to scuba connection configuration */ -export interface DefenderForContainersAwsOfferingKubernetesScubaReader { - /** The cloud role ARN in AWS for this feature used for reading data */ - 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 cloudwatch to kinesis connection configuration */ -export interface DefenderForContainersAwsOfferingCloudWatchToKinesis { - /** The cloud role ARN in AWS used by CloudWatch to transfer data into Kinesis */ - cloudRoleArn?: 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; + /** + * Gets or sets 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. + */ + 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 kinesis to s3 connection configuration */ -export interface DefenderForContainersAwsOfferingKinesisToS3 { - /** The cloud role ARN in AWS used by Kinesis to transfer data into S3 */ - cloudRoleArn?: 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; } -/** The container vulnerability assessment configuration */ -export interface DefenderForContainersAwsOfferingContainerVulnerabilityAssessment { - /** The cloud role ARN in AWS for this feature */ - cloudRoleArn?: 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 container vulnerability assessment task configuration */ -export interface DefenderForContainersAwsOfferingContainerVulnerabilityAssessmentTask { - /** The cloud role ARN in AWS for this feature */ - cloudRoleArn?: string; +/** 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; } -/** The Defender for servers connection configuration */ -export interface DefenderForServersAwsOfferingDefenderForServers { - /** The cloud role ARN in AWS for this feature */ - cloudRoleArn?: 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 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; +/** 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 ErrorResponseAutoGenerated2 { + /** The error object. */ + error?: ErrorDetailAutoGenerated2; } -/** 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 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 Vulnerability Assessment autoprovisioning configuration */ -export interface DefenderForServersAwsOfferingVaAutoProvisioning { - /** Is Vulnerability Assessment auto provisioning enabled */ - enabled?: boolean; - /** configuration for Vulnerability Assessment autoprovisioning */ - configuration?: DefenderForServersAwsOfferingVaAutoProvisioningConfiguration; +/** 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; } -/** configuration for Vulnerability Assessment autoprovisioning */ -export interface DefenderForServersAwsOfferingVaAutoProvisioningConfiguration { - /** The Vulnerability Assessment solution to be provisioned. Can be either 'TVM' or 'Qualys' */ - type?: Type; +/** Azure DevOps Project properties. */ +export interface AzureDevOpsProjectProperties { + /** + * Gets or sets resource status message. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningStatusMessage?: string; + /** + * Gets or sets time when resource was last checked. + * 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 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 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; +/** 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; } -/** configuration for the servers offering subPlan */ -export interface DefenderForServersAwsOfferingSubPlan { - /** The available sub plans */ - type?: SubPlan; +/** Azure DevOps Repository properties. */ +export interface AzureDevOpsRepositoryProperties { + /** + * Gets or sets resource status message. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningStatusMessage?: string; + /** + * Gets or sets time when resource was last checked. + * 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; + /** + * 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 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; +/** 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; } -/** configuration for Microsoft Defender for Server VM scanning */ -export interface DefenderForServersAwsOfferingVmScannersConfiguration { - /** The cloud role ARN in AWS for this feature */ - cloudRoleArn?: string; - /** The scanning mode for the VM scan. */ - scanningMode?: ScanningMode; - /** VM tags that indicates that VM should not be scanned */ - exclusionTags?: { [propertyName: string]: string }; -} - -/** The ARC autoprovisioning configuration */ -export interface DefenderFoDatabasesAwsOfferingArcAutoProvisioning { - /** Is arc auto provisioning enabled */ - enabled?: boolean; - /** The cloud role ARN in AWS for this feature */ - cloudRoleArn?: string; - /** Configuration for servers Arc auto provisioning */ - configuration?: DefenderFoDatabasesAwsOfferingArcAutoProvisioningConfiguration; +/** DevOps Configuration properties. */ +export interface DevOpsConfigurationProperties { + /** + * Gets or sets resource status message. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningStatusMessage?: string; + /** + * Gets or sets time when resource was last checked. + * 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; + /** 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[]; } -/** 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; +/** 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 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 GitHubOwnerListResponse { + /** Gets or sets list of resources. */ + value?: GitHubOwner[]; + /** 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; +/** GitHub Owner properties. */ +export interface GitHubOwnerProperties { + /** + * Gets or sets resource status message. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningStatusMessage?: string; + /** + * Gets or sets time when resource was last checked. + * 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 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 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 GitHubRepositoryListResponse { + /** Gets or sets list of resources. */ + value?: GitHubRepository[]; + /** 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; +/** GitHub Repository properties. */ +export interface GitHubRepositoryProperties { + /** + * Gets or sets resource status message. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningStatusMessage?: string; + /** + * Gets or sets time when resource was last checked. + * 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 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 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 GitLabGroupListResponse { + /** Gets or sets list of resources. */ + value?: GitLabGroup[]; + /** 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; +/** GitLab Group properties. */ +export interface GitLabGroupProperties { + /** + * Gets or sets resource status message. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningStatusMessage?: string; + /** + * Gets or sets time when resource was last checked. + * 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; } -/** 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; +/** 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; } -/** The Vulnerability Assessment autoprovisioning configuration */ -export interface DefenderForServersGcpOfferingVaAutoProvisioning { - /** Is Vulnerability Assessment auto provisioning enabled */ - enabled?: boolean; - /** configuration for Vulnerability Assessment autoprovisioning */ - configuration?: DefenderForServersGcpOfferingVaAutoProvisioningConfiguration; +/** GitLab Project properties. */ +export interface GitLabProjectProperties { + /** + * Gets or sets resource status message. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningStatusMessage?: string; + /** + * Gets or sets time when resource was last checked. + * 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 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 fullyQualifiedName?: string; + /** + * 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 fullyQualifiedFriendlyName?: string; + /** + * 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 fullyQualifiedParentGroupName?: string; + /** + * 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 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; } -/** configuration for Vulnerability Assessment autoprovisioning */ -export interface DefenderForServersGcpOfferingVaAutoProvisioningConfiguration { - /** The Vulnerability Assessment solution to be provisioned. Can be either 'TVM' or 'Qualys' */ - type?: Type; +/** 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; } -/** 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; +/** CVSS details */ +export interface Cvss { + /** + * CVSS base + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly base?: number; } -/** configuration for the servers offering subPlan */ -export interface DefenderForServersGcpOfferingSubPlan { - /** The available sub plans */ - type?: SubPlan; +/** CVE details */ +export interface Cve { + /** + * CVE title + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly title?: string; + /** + * Link url + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly link?: string; } -/** 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; +/** Vendor reference */ +export interface VendorReference { + /** + * Link title + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly title?: string; + /** + * Link url + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly link?: string; } -/** configuration for Microsoft Defender for Server VM scanning */ -export interface DefenderForServersGcpOfferingVmScannersConfiguration { - /** The scanning mode for the VM scan. */ - scanningMode?: ScanningMode; - /** VM tags that indicate that VM should not be scanned */ - exclusionTags?: { [propertyName: string]: string }; +/** The 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; } -/** The ARC autoprovisioning configuration */ -export interface DefenderForDatabasesGcpOfferingArcAutoProvisioning { - /** Is arc auto provisioning enabled */ - enabled?: boolean; - /** Configuration for servers Arc auto provisioning */ - configuration?: DefenderForDatabasesGcpOfferingArcAutoProvisioningConfiguration; +/** Represents an OMS workspace to which the solution is connected */ +export interface ConnectedWorkspace { + /** Azure resource ID of the connected OMS workspace */ + id?: 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; +/** Describes an Azure resource with kind */ +export interface AadConnectivityStateAutoGenerated { + /** The connectivity state of the external AAD solution */ + connectivityState?: AadConnectivityState; } -/** 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; +/** Calculation result data */ +export interface SecureScoreControlScore { + /** + * Maximum control score (0..10) + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly max?: number; + /** + * 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; + /** + * 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 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; +/** 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; + /** + * The GCP workload identity federation pool id + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly workloadIdentityPoolId?: string; + /** + * GCP project name + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly projectName?: 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; +export interface CspmMonitorAwsOfferingNativeCloudConnection { + /** The cloud role ARN in AWS for this feature */ + cloudRoleArn?: string; +} + +/** The kubernetes service connection configuration */ +export interface DefenderForContainersAwsOfferingKubernetesService { + /** The cloud role ARN in AWS for this feature used for provisioning resources */ + cloudRoleArn?: 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; +} + +/** 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; +} + +/** 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 container vulnerability assessment configuration */ +export interface DefenderForContainersAwsOfferingContainerVulnerabilityAssessment { + /** The cloud role ARN in AWS for this feature */ + cloudRoleArn?: string; +} + +/** The container vulnerability assessment task configuration */ +export interface DefenderForContainersAwsOfferingContainerVulnerabilityAssessmentTask { + /** The cloud role ARN in AWS for this feature */ + cloudRoleArn?: string; +} + +/** The Defender for servers connection configuration */ +export interface DefenderForServersAwsOfferingDefenderForServers { + /** The cloud role ARN in AWS for this feature */ + cloudRoleArn?: string; +} + +/** 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 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; } /** The Microsoft Defender for Server VM scanning configuration */ -export interface DefenderCspmAwsOfferingVmScanners { +export interface DefenderForServersAwsOfferingVmScanners { /** Is Microsoft Defender for Server VM scanning enabled */ enabled?: boolean; /** configuration for Microsoft Defender for Server VM scanning */ - configuration?: DefenderCspmAwsOfferingVmScannersConfiguration; + configuration?: DefenderForServersAwsOfferingVmScannersConfiguration; } /** configuration for Microsoft Defender for Server VM scanning */ -export interface DefenderCspmAwsOfferingVmScannersConfiguration { +export interface DefenderForServersAwsOfferingVmScannersConfiguration { /** The cloud role ARN in AWS for this feature */ cloudRoleArn?: string; /** The scanning mode for the VM scan. */ @@ -2588,73 +3157,301 @@ export interface DefenderCspmAwsOfferingVmScannersConfiguration { exclusionTags?: { [propertyName: string]: string }; } -/** The Microsoft Defender Data Sensitivity discovery configuration */ -export interface DefenderCspmAwsOfferingDataSensitivityDiscovery { - /** Is Microsoft Defender Data Sensitivity discovery enabled */ +/** 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; } -/** The databases DSPM configuration */ -export interface DefenderCspmAwsOfferingDatabasesDspm { - /** Is databases DSPM protection enabled */ +/** Configuration for servers Arc auto provisioning */ +export interface DefenderFoDatabasesAwsOfferingArcAutoProvisioningConfiguration { + /** Optional http proxy endpoint to use for the Arc agent */ + proxy?: string; + /** Optional Arc private link scope resource id to link the Arc agent */ + privateLinkScope?: string; +} + +/** The RDS configuration */ +export interface DefenderFoDatabasesAwsOfferingRds { + /** Is RDS protection enabled */ enabled?: boolean; /** The cloud role ARN in AWS for this feature */ 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 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; } -/** 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 native cloud connection configuration */ +export interface InformationProtectionAwsOfferingInformationProtection { + /** The cloud role ARN in AWS for this feature */ + 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 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; } -/** Custom entity store assignment */ -export interface CustomEntityStoreAssignment extends Resource { - /** - * Azure Resource Manager metadata containing createdBy and modifiedBy information. +/** 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; +} + +/** 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; +} + +/** configuration for Microsoft Defender for Server VM scanning */ +export interface DefenderForServersGcpOfferingVmScannersConfiguration { + /** The scanning mode for the VM scan. */ + scanningMode?: ScanningMode; + /** VM tags that indicate that VM should not be scanned */ + exclusionTags?: { [propertyName: string]: string }; +} + +/** The ARC autoprovisioning configuration */ +export interface DefenderForDatabasesGcpOfferingArcAutoProvisioning { + /** Is arc auto provisioning enabled */ + enabled?: boolean; + /** Configuration for servers Arc auto provisioning */ + configuration?: DefenderForDatabasesGcpOfferingArcAutoProvisioningConfiguration; +} + +/** Configuration for servers Arc auto provisioning */ +export interface DefenderForDatabasesGcpOfferingArcAutoProvisioningConfiguration { + /** Optional http proxy endpoint to use for the Arc agent */ + proxy?: string; + /** Optional Arc private link scope resource id to link the Arc agent */ + privateLinkScope?: string; +} + +/** The native cloud connection configuration */ +export interface DefenderForDatabasesGcpOfferingDefenderForDatabasesArcAutoProvisioning { + /** The service account email address in GCP for this offering */ + serviceAccountEmailAddress?: string; + /** The GCP workload identity provider id for this offering */ + workloadIdentityProviderId?: 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; +} + +/** 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; +} + +/** The Microsoft Defender for Server VM scanning configuration */ +export interface DefenderCspmAwsOfferingVmScanners { + /** Is Microsoft Defender for Server VM scanning enabled */ + enabled?: boolean; + /** configuration for Microsoft Defender for Server VM scanning */ + configuration?: DefenderCspmAwsOfferingVmScannersConfiguration; +} + +/** configuration for Microsoft Defender for Server VM scanning */ +export interface DefenderCspmAwsOfferingVmScannersConfiguration { + /** The cloud role ARN in AWS for this feature */ + cloudRoleArn?: string; + /** The scanning mode for the VM scan. */ + scanningMode?: ScanningMode; + /** VM tags that indicates that VM should not be scanned */ + exclusionTags?: { [propertyName: string]: string }; +} + +/** The Microsoft Defender Data Sensitivity discovery configuration */ +export interface DefenderCspmAwsOfferingDataSensitivityDiscovery { + /** Is Microsoft Defender Data Sensitivity discovery enabled */ + 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; +} + +/** AzureDevOps Org Inventory Configuration. */ +export interface AzureDevOpsOrganizationConfiguration { + /** AutoDiscovery states. */ + autoDiscovery?: AutoDiscovery; + /** + * AzureDevOps Project Inventory Configuration. + * Dictionary of AzureDevOps project name to desired project configuration. + * If AutoDiscovery is Enabled, this field should be empty or null. + */ + projectConfigs?: { [propertyName: string]: AzureDevOpsProjectConfiguration }; +} + +/** AzureDevOps Project Inventory Configuration. */ +export interface AzureDevOpsProjectConfiguration { + /** AutoDiscovery states. */ + autoDiscovery?: AutoDiscovery; + /** + * AzureDevOps Repository Inventory Configuration. + * Dictionary of AzureDevOps repository name to desired repository configuration. + * If AutoDiscovery is Enabled, this field should be null or empty. + */ + repositoryConfigs?: { [propertyName: string]: BaseResourceConfiguration }; +} + +/** Base Resource Inventory configuration changes. */ +export interface BaseResourceConfiguration { + /** Onboarding states. */ + desiredOnboardingState?: DesiredOnboardingState; +} + +/** GitHub Owner Inventory Configuration. */ +export interface GitHubOwnerConfiguration { + /** AutoDiscovery states. */ + autoDiscovery?: AutoDiscovery; + /** + * GitHub Repository Inventory Configuration. + * Dictionary of GitHub repository name to desired repository configuration. + * If AutoDiscovery is Enabled, this field should be null or empty. + */ + repositoryConfigs?: { [propertyName: string]: BaseResourceConfiguration }; +} + +/** GitLab Group Inventory Configuration. */ +export interface GitLabGroupConfiguration { + /** AutoDiscovery states. */ + autoDiscovery?: AutoDiscovery; + /** + * GitLab Project Inventory Configuration. + * Dictionary of GitLab fully-qualified project name to desired project configuration. + * If AutoDiscovery is Enabled, this field should be null or empty. + */ + projectConfigs?: { [propertyName: string]: BaseResourceConfiguration }; +} + +/** The 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; +} + +/** 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; +} + +/** 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; +} + +/** 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; @@ -3730,22 +4527,6 @@ export interface ApiCollectionResponse extends Resource { additionalData?: { [propertyName: string]: string }; } -/** 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[]; - /** A collection of the issues in the report */ - issues?: Issue[]; -} - /** A vulnerability assessment scan record. */ export interface Scan extends Resource { /** A vulnerability assessment scan record properties. */ @@ -3770,6 +4551,53 @@ export interface SecurityOperator extends Resource { identity?: Identity; } +/** 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 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?: OperationStatusAutoGenerated; + /** + * 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?: OperationStatusAutoGenerated; + /** 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; +} + /** Security assessment metadata */ export interface SecurityAssessmentMetadata extends Resource { /** User friendly display name of the assessment */ @@ -4373,8 +5201,18 @@ export interface GitlabScopeEnvironmentData extends EnvironmentData { environmentType: "GitlabScope"; } -/** The external security solution properties for CEF solutions */ -export interface CefSolutionProperties +/** 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; +} + +/** The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location */ +export interface ProxyResource extends ResourceAutoGenerated2 {} + +/** The external security solution properties for CEF solutions */ +export interface CefSolutionProperties extends ExternalSecuritySolutionProperties { hostname?: string; agent?: string; @@ -4564,6 +5402,103 @@ export interface OnPremiseSqlResourceDetails extends OnPremiseResourceDetails { databaseName: 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; +} + +/** 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; +} + +/** 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; +} + +/** 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; +} + +/** 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; +} + +/** 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; +} + +/** 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; +} + +/** 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; +} + +/** 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; +} + /** Number of active connections is not in allowed range. */ export interface ActiveConnectionsNotInAllowedRange extends TimeWindowCustomAlertRule { @@ -6500,6 +7435,30 @@ export enum KnownAuthenticationType { */ export type AuthenticationType = string; +/** 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 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; + /** Known values of {@link AlertSeverity} that the service accepts. */ export enum KnownAlertSeverity { /** Informational */ @@ -6803,51 +7762,6 @@ export enum KnownApplicationSourceResourceType { */ export type ApplicationSourceResourceType = string; -/** Known values of {@link ScopeName} that the service accepts. */ -export enum KnownScopeName { - /** Connectors */ - Connectors = "Connectors", - /** Clusters */ - Clusters = "Clusters", - /** VirtualMachines */ - VirtualMachines = "VirtualMachines", - /** Unknown */ - Unknown = "Unknown" -} - -/** - * Defines values for ScopeName. \ - * {@link KnownScopeName} can be used interchangeably with ScopeName, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Connectors** \ - * **Clusters** \ - * **VirtualMachines** \ - * **Unknown** - */ -export type ScopeName = 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 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; - /** Known values of {@link ScanTriggerType} that the service accepts. */ export enum KnownScanTriggerType { /** OnDemand */ @@ -7082,6 +7996,237 @@ export enum KnownEnvironmentType { */ export type EnvironmentType = string; +/** Known values of {@link ServerVulnerabilityAssessmentsSettingKind} that the service accepts. */ +export enum KnownServerVulnerabilityAssessmentsSettingKind { + /** AzureServersSetting */ + AzureServersSetting = "AzureServersSetting" +} + +/** + * 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 + * **AzureServersSetting** + */ +export type ServerVulnerabilityAssessmentsSettingKind = string; + +/** Known values of {@link ServerVulnerabilityAssessmentsSettingKindName} that the service accepts. */ +export enum KnownServerVulnerabilityAssessmentsSettingKindName { + /** AzureServersSetting */ + AzureServersSetting = "azureServersSetting" +} + +/** + * 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 + * **azureServersSetting** + */ +export type ServerVulnerabilityAssessmentsSettingKindName = 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 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; + +/** Known values of {@link SettingNameAutoGenerated} that the service accepts. */ +export enum KnownSettingNameAutoGenerated { + /** Name of the Defender for Storage Settings name. */ + Current = "current" +} + +/** + * Defines values for SettingNameAutoGenerated. \ + * {@link KnownSettingNameAutoGenerated} can be used interchangeably with SettingNameAutoGenerated, + * 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 SettingNameAutoGenerated = string; + +/** 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 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; + +/** 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 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; + +/** Known values of {@link ActionableRemediationState} that the service accepts. */ +export enum KnownActionableRemediationState { + /** None */ + None = "None", + /** Disabled */ + Disabled = "Disabled", + /** Enabled */ + Enabled = "Enabled" +} + +/** + * 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; + +/** 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 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 + * **Code** \ + * **Artifacts** \ + * **Dependencies** \ + * **Secrets** \ + * **IaC** \ + * **Containers** + */ +export type RuleCategory = string; + +/** Known values of {@link AnnotateDefaultBranchState} that the service accepts. */ +export enum KnownAnnotateDefaultBranchState { + /** Disabled */ + Disabled = "Disabled", + /** Enabled */ + Enabled = "Enabled" +} + +/** + * 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 + * **Disabled** \ + * **Enabled** + */ +export type AnnotateDefaultBranchState = string; + +/** Known values of {@link InheritFromParentState} that the service accepts. */ +export enum KnownInheritFromParentState { + /** Disabled */ + Disabled = "Disabled", + /** Enabled */ + Enabled = "Enabled" +} + +/** + * 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 + * **Disabled** \ + * **Enabled** + */ +export type InheritFromParentState = string; + +/** Known values of {@link AutoDiscovery} that the service accepts. */ +export enum KnownAutoDiscovery { + /** Disabled */ + Disabled = "Disabled", + /** Enabled */ + Enabled = "Enabled", + /** NotApplicable */ + NotApplicable = "NotApplicable" +} + +/** + * Defines values for AutoDiscovery. \ + * {@link KnownAutoDiscovery} can be used interchangeably with AutoDiscovery, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Disabled** \ + * **Enabled** \ + * **NotApplicable** + */ +export type AutoDiscovery = string; + /** Known values of {@link AadConnectivityState} that the service accepts. */ export enum KnownAadConnectivityState { /** Discovered */ @@ -7125,2023 +8270,2431 @@ export enum KnownBundleType { CosmosDbs = "CosmosDbs" } -/** - * Defines values for BundleType. \ - * {@link KnownBundleType} can be used interchangeably with BundleType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **AppServices** \ - * **DNS** \ - * **KeyVaults** \ - * **KubernetesService** \ - * **ResourceManager** \ - * **SqlServers** \ - * **StorageAccounts** \ - * **VirtualMachines** \ - * **CosmosDbs** - */ -export type BundleType = string; +/** + * Defines values for BundleType. \ + * {@link KnownBundleType} can be used interchangeably with BundleType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **AppServices** \ + * **DNS** \ + * **KeyVaults** \ + * **KubernetesService** \ + * **ResourceManager** \ + * **SqlServers** \ + * **StorageAccounts** \ + * **VirtualMachines** \ + * **CosmosDbs** + */ +export type BundleType = string; + +/** Known values of {@link GovernanceRuleConditionOperator} that the service accepts. */ +export enum KnownGovernanceRuleConditionOperator { + /** Checks that the string value of the data defined in Property equals the given value - exact fit */ + Equals = "Equals", + /** Checks that the string value of the data defined in Property equals any of the given values (exact fit) */ + In = "In" +} + +/** + * Defines values for GovernanceRuleConditionOperator. \ + * {@link KnownGovernanceRuleConditionOperator} can be used interchangeably with GovernanceRuleConditionOperator, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Equals**: Checks that the string value of the data defined in Property equals the given value - exact fit \ + * **In**: Checks that the string value of the data defined in Property equals any of the given values (exact fit) + */ +export type GovernanceRuleConditionOperator = string; + +/** Known values of {@link ApplicationConditionOperator} that the service accepts. */ +export enum KnownApplicationConditionOperator { + /** Checks that the string value of the data defined in Property contains the given value */ + Contains = "Contains", + /** Checks that the string value of the data defined in Property equals the given value */ + Equals = "Equals", + /** Checks that the string value of the data defined in Property equals any of the given values (exact fit) */ + In = "In" +} + +/** + * Defines values for ApplicationConditionOperator. \ + * {@link KnownApplicationConditionOperator} can be used interchangeably with ApplicationConditionOperator, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Contains**: Checks that the string value of the data defined in Property contains the given value \ + * **Equals**: Checks that the string value of the data defined in Property equals the given value \ + * **In**: Checks that the string value of the data defined in Property equals any of the given values (exact fit) + */ +export type ApplicationConditionOperator = string; + +/** Known values of {@link OrganizationMembershipType} that the service accepts. */ +export enum KnownOrganizationMembershipType { + /** Member */ + Member = "Member", + /** Organization */ + Organization = "Organization" +} + +/** + * Defines values for OrganizationMembershipType. \ + * {@link KnownOrganizationMembershipType} can be used interchangeably with OrganizationMembershipType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Member** \ + * **Organization** + */ +export type OrganizationMembershipType = string; + +/** Known values of {@link Type} that the service accepts. */ +export enum KnownType { + /** Qualys */ + Qualys = "Qualys", + /** TVM */ + TVM = "TVM" +} + +/** + * Defines values for Type. \ + * {@link KnownType} can be used interchangeably with Type, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Qualys** \ + * **TVM** + */ +export type Type = string; + +/** Known values of {@link SubPlan} that the service accepts. */ +export enum KnownSubPlan { + /** P1 */ + P1 = "P1", + /** P2 */ + P2 = "P2" +} + +/** + * Defines values for SubPlan. \ + * {@link KnownSubPlan} can be used interchangeably with SubPlan, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **P1** \ + * **P2** + */ +export type SubPlan = string; + +/** Known values of {@link ScanningMode} that the service accepts. */ +export enum KnownScanningMode { + /** Default */ + Default = "Default" +} + +/** + * 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 ServerVulnerabilityAssessmentsAzureSettingSelectedProvider} that the service accepts. */ +export enum KnownServerVulnerabilityAssessmentsAzureSettingSelectedProvider { + /** Microsoft Defender for Endpoints threat and vulnerability management. */ + MdeTvm = "MdeTvm" +} + +/** + * Defines values for ServerVulnerabilityAssessmentsAzureSettingSelectedProvider. \ + * {@link KnownServerVulnerabilityAssessmentsAzureSettingSelectedProvider} can be used interchangeably with ServerVulnerabilityAssessmentsAzureSettingSelectedProvider, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **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 MdeOnboardingsListOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the list operation. */ +export type MdeOnboardingsListResponse = MdeOnboardingDataList; + +/** Optional parameters. */ +export interface MdeOnboardingsGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type MdeOnboardingsGetResponse = MdeOnboardingData; + +/** Optional parameters. */ +export interface CustomAssessmentAutomationsGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type CustomAssessmentAutomationsGetResponse = CustomAssessmentAutomation; + +/** Optional parameters. */ +export interface CustomAssessmentAutomationsCreateOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the create operation. */ +export type CustomAssessmentAutomationsCreateResponse = CustomAssessmentAutomation; + +/** Optional parameters. */ +export interface CustomAssessmentAutomationsDeleteOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface CustomAssessmentAutomationsListByResourceGroupOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByResourceGroup operation. */ +export type CustomAssessmentAutomationsListByResourceGroupResponse = CustomAssessmentAutomationsListResult; + +/** Optional parameters. */ +export interface CustomAssessmentAutomationsListBySubscriptionOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listBySubscription operation. */ +export type CustomAssessmentAutomationsListBySubscriptionResponse = CustomAssessmentAutomationsListResult; + +/** Optional parameters. */ +export interface CustomAssessmentAutomationsListByResourceGroupNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByResourceGroupNext operation. */ +export type CustomAssessmentAutomationsListByResourceGroupNextResponse = CustomAssessmentAutomationsListResult; + +/** Optional parameters. */ +export interface CustomAssessmentAutomationsListBySubscriptionNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listBySubscriptionNext operation. */ +export type CustomAssessmentAutomationsListBySubscriptionNextResponse = CustomAssessmentAutomationsListResult; + +/** Optional parameters. */ +export interface CustomEntityStoreAssignmentsGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type CustomEntityStoreAssignmentsGetResponse = CustomEntityStoreAssignment; + +/** Optional parameters. */ +export interface CustomEntityStoreAssignmentsCreateOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the create operation. */ +export type CustomEntityStoreAssignmentsCreateResponse = CustomEntityStoreAssignment; + +/** Optional parameters. */ +export interface CustomEntityStoreAssignmentsDeleteOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface CustomEntityStoreAssignmentsListByResourceGroupOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByResourceGroup operation. */ +export type CustomEntityStoreAssignmentsListByResourceGroupResponse = CustomEntityStoreAssignmentsListResult; + +/** Optional parameters. */ +export interface CustomEntityStoreAssignmentsListBySubscriptionOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listBySubscription operation. */ +export type CustomEntityStoreAssignmentsListBySubscriptionResponse = CustomEntityStoreAssignmentsListResult; + +/** Optional parameters. */ +export interface CustomEntityStoreAssignmentsListByResourceGroupNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByResourceGroupNext operation. */ +export type CustomEntityStoreAssignmentsListByResourceGroupNextResponse = CustomEntityStoreAssignmentsListResult; + +/** Optional parameters. */ +export interface CustomEntityStoreAssignmentsListBySubscriptionNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listBySubscriptionNext operation. */ +export type CustomEntityStoreAssignmentsListBySubscriptionNextResponse = CustomEntityStoreAssignmentsListResult; + +/** Optional parameters. */ +export interface ComplianceResultsListOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the list operation. */ +export type ComplianceResultsListResponse = ComplianceResultList; + +/** Optional parameters. */ +export interface ComplianceResultsGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type ComplianceResultsGetResponse = ComplianceResult; + +/** Optional parameters. */ +export interface ComplianceResultsListNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listNext operation. */ +export type ComplianceResultsListNextResponse = ComplianceResultList; + +/** Optional parameters. */ +export interface PricingsListOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the list operation. */ +export type PricingsListResponse = PricingList; + +/** Optional parameters. */ +export interface PricingsGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type PricingsGetResponse = Pricing; + +/** Optional parameters. */ +export interface PricingsUpdateOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the update operation. */ +export type PricingsUpdateResponse = Pricing; + +/** Optional parameters. */ +export interface AdvancedThreatProtectionGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type AdvancedThreatProtectionGetResponse = AdvancedThreatProtectionSetting; + +/** Optional parameters. */ +export interface AdvancedThreatProtectionCreateOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the create operation. */ +export type AdvancedThreatProtectionCreateResponse = AdvancedThreatProtectionSetting; + +/** Optional parameters. */ +export interface DeviceSecurityGroupsListOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the list operation. */ +export type DeviceSecurityGroupsListResponse = DeviceSecurityGroupList; + +/** Optional parameters. */ +export interface DeviceSecurityGroupsGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type DeviceSecurityGroupsGetResponse = DeviceSecurityGroup; + +/** Optional parameters. */ +export interface DeviceSecurityGroupsCreateOrUpdateOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the createOrUpdate operation. */ +export type DeviceSecurityGroupsCreateOrUpdateResponse = DeviceSecurityGroup; + +/** Optional parameters. */ +export interface DeviceSecurityGroupsDeleteOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface DeviceSecurityGroupsListNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listNext operation. */ +export type DeviceSecurityGroupsListNextResponse = DeviceSecurityGroupList; + +/** Optional parameters. */ +export interface IotSecuritySolutionListBySubscriptionOptionalParams + extends coreClient.OperationOptions { + /** Filter the IoT Security solution with OData syntax. Supports filtering by iotHubs. */ + filter?: string; +} + +/** Contains response data for the listBySubscription operation. */ +export type IotSecuritySolutionListBySubscriptionResponse = IoTSecuritySolutionsList; + +/** Optional parameters. */ +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 listByResourceGroup operation. */ +export type IotSecuritySolutionListByResourceGroupResponse = IoTSecuritySolutionsList; + +/** Optional parameters. */ +export interface IotSecuritySolutionGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type IotSecuritySolutionGetResponse = IoTSecuritySolutionModel; + +/** Optional parameters. */ +export interface IotSecuritySolutionCreateOrUpdateOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the createOrUpdate operation. */ +export type IotSecuritySolutionCreateOrUpdateResponse = IoTSecuritySolutionModel; + +/** Optional parameters. */ +export interface IotSecuritySolutionUpdateOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the update operation. */ +export type IotSecuritySolutionUpdateResponse = IoTSecuritySolutionModel; + +/** Optional parameters. */ +export interface IotSecuritySolutionDeleteOptionalParams + extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface IotSecuritySolutionListBySubscriptionNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listBySubscriptionNext operation. */ +export type IotSecuritySolutionListBySubscriptionNextResponse = IoTSecuritySolutionsList; + +/** Optional parameters. */ +export interface IotSecuritySolutionListByResourceGroupNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByResourceGroupNext operation. */ +export type IotSecuritySolutionListByResourceGroupNextResponse = IoTSecuritySolutionsList; + +/** Optional parameters. */ +export interface IotSecuritySolutionAnalyticsListOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the list operation. */ +export type IotSecuritySolutionAnalyticsListResponse = IoTSecuritySolutionAnalyticsModelList; + +/** Optional parameters. */ +export interface IotSecuritySolutionAnalyticsGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type IotSecuritySolutionAnalyticsGetResponse = IoTSecuritySolutionAnalyticsModel; -/** Known values of {@link GovernanceRuleConditionOperator} that the service accepts. */ -export enum KnownGovernanceRuleConditionOperator { - /** Checks that the string value of the data defined in Property equals the given value - exact fit */ - Equals = "Equals", - /** Checks that the string value of the data defined in Property equals any of the given values (exact fit) */ - In = "In" +/** Optional parameters. */ +export interface IotSecuritySolutionsAnalyticsAggregatedAlertListOptionalParams + extends coreClient.OperationOptions { + /** Number of results to retrieve. */ + top?: number; } -/** - * Defines values for GovernanceRuleConditionOperator. \ - * {@link KnownGovernanceRuleConditionOperator} can be used interchangeably with GovernanceRuleConditionOperator, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Equals**: Checks that the string value of the data defined in Property equals the given value - exact fit \ - * **In**: Checks that the string value of the data defined in Property equals any of the given values (exact fit) - */ -export type GovernanceRuleConditionOperator = string; +/** Contains response data for the list operation. */ +export type IotSecuritySolutionsAnalyticsAggregatedAlertListResponse = IoTSecurityAggregatedAlertList; -/** Known values of {@link ApplicationConditionOperator} that the service accepts. */ -export enum KnownApplicationConditionOperator { - /** Checks that the string value of the data defined in Property contains the given value */ - Contains = "Contains", - /** Checks that the string value of the data defined in Property equals the given value */ - Equals = "Equals", - /** Checks that the string value of the data defined in Property equals any of the given values (exact fit) */ - In = "In" -} +/** Optional parameters. */ +export interface IotSecuritySolutionsAnalyticsAggregatedAlertGetOptionalParams + extends coreClient.OperationOptions {} -/** - * Defines values for ApplicationConditionOperator. \ - * {@link KnownApplicationConditionOperator} can be used interchangeably with ApplicationConditionOperator, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Contains**: Checks that the string value of the data defined in Property contains the given value \ - * **Equals**: Checks that the string value of the data defined in Property equals the given value \ - * **In**: Checks that the string value of the data defined in Property equals any of the given values (exact fit) - */ -export type ApplicationConditionOperator = string; +/** Contains response data for the get operation. */ +export type IotSecuritySolutionsAnalyticsAggregatedAlertGetResponse = IoTSecurityAggregatedAlert; -/** Known values of {@link OrganizationMembershipType} that the service accepts. */ -export enum KnownOrganizationMembershipType { - /** Member */ - Member = "Member", - /** Organization */ - Organization = "Organization" -} +/** Optional parameters. */ +export interface IotSecuritySolutionsAnalyticsAggregatedAlertDismissOptionalParams + extends coreClient.OperationOptions {} -/** - * Defines values for OrganizationMembershipType. \ - * {@link KnownOrganizationMembershipType} can be used interchangeably with OrganizationMembershipType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Member** \ - * **Organization** - */ -export type OrganizationMembershipType = string; +/** Optional parameters. */ +export interface IotSecuritySolutionsAnalyticsAggregatedAlertListNextOptionalParams + extends coreClient.OperationOptions {} -/** Known values of {@link Type} that the service accepts. */ -export enum KnownType { - /** Qualys */ - Qualys = "Qualys", - /** TVM */ - TVM = "TVM" -} +/** Contains response data for the listNext operation. */ +export type IotSecuritySolutionsAnalyticsAggregatedAlertListNextResponse = IoTSecurityAggregatedAlertList; -/** - * Defines values for Type. \ - * {@link KnownType} can be used interchangeably with Type, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Qualys** \ - * **TVM** - */ -export type Type = string; +/** Optional parameters. */ +export interface IotSecuritySolutionsAnalyticsRecommendationGetOptionalParams + extends coreClient.OperationOptions {} -/** Known values of {@link SubPlan} that the service accepts. */ -export enum KnownSubPlan { - /** P1 */ - P1 = "P1", - /** P2 */ - P2 = "P2" +/** Contains response data for the get operation. */ +export type IotSecuritySolutionsAnalyticsRecommendationGetResponse = IoTSecurityAggregatedRecommendation; + +/** Optional parameters. */ +export interface IotSecuritySolutionsAnalyticsRecommendationListOptionalParams + extends coreClient.OperationOptions { + /** Number of results to retrieve. */ + top?: number; } -/** - * Defines values for SubPlan. \ - * {@link KnownSubPlan} can be used interchangeably with SubPlan, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **P1** \ - * **P2** - */ -export type SubPlan = string; +/** Contains response data for the list operation. */ +export type IotSecuritySolutionsAnalyticsRecommendationListResponse = IoTSecurityAggregatedRecommendationList; -/** Known values of {@link ScanningMode} that the service accepts. */ -export enum KnownScanningMode { - /** Default */ - Default = "Default" -} +/** Optional parameters. */ +export interface IotSecuritySolutionsAnalyticsRecommendationListNextOptionalParams + extends coreClient.OperationOptions {} -/** - * 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; -/** Defines values for Rank. */ -export type Rank = "None" | "Low" | "Medium" | "High" | "Critical"; -/** Defines values for RuleState. */ -export type RuleState = "Enabled" | "Disabled" | "Expired"; +/** Contains response data for the listNext operation. */ +export type IotSecuritySolutionsAnalyticsRecommendationListNextResponse = IoTSecurityAggregatedRecommendationList; /** Optional parameters. */ -export interface MdeOnboardingsListOptionalParams +export interface LocationsListOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the list operation. */ -export type MdeOnboardingsListResponse = MdeOnboardingDataList; +export type LocationsListResponse = AscLocationList; /** Optional parameters. */ -export interface MdeOnboardingsGetOptionalParams +export interface LocationsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type MdeOnboardingsGetResponse = MdeOnboardingData; +export type LocationsGetResponse = AscLocation; /** Optional parameters. */ -export interface CustomAssessmentAutomationsGetOptionalParams +export interface LocationsListNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type CustomAssessmentAutomationsGetResponse = CustomAssessmentAutomation; +/** Contains response data for the listNext operation. */ +export type LocationsListNextResponse = AscLocationList; /** Optional parameters. */ -export interface CustomAssessmentAutomationsCreateOptionalParams +export interface OperationsListOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the create operation. */ -export type CustomAssessmentAutomationsCreateResponse = CustomAssessmentAutomation; +/** Contains response data for the list operation. */ +export type OperationsListResponse = OperationList; /** Optional parameters. */ -export interface CustomAssessmentAutomationsDeleteOptionalParams +export interface OperationsListNextOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the listNext operation. */ +export type OperationsListNextResponse = OperationList; + /** Optional parameters. */ -export interface CustomAssessmentAutomationsListByResourceGroupOptionalParams - extends coreClient.OperationOptions {} +export interface TasksListOptionalParams extends coreClient.OperationOptions { + /** OData filter. Optional. */ + filter?: string; +} -/** Contains response data for the listByResourceGroup operation. */ -export type CustomAssessmentAutomationsListByResourceGroupResponse = CustomAssessmentAutomationsListResult; +/** Contains response data for the list operation. */ +export type TasksListResponse = SecurityTaskList; /** Optional parameters. */ -export interface CustomAssessmentAutomationsListBySubscriptionOptionalParams +export interface TasksListByHomeRegionOptionalParams + extends coreClient.OperationOptions { + /** OData filter. Optional. */ + filter?: string; +} + +/** Contains response data for the listByHomeRegion operation. */ +export type TasksListByHomeRegionResponse = SecurityTaskList; + +/** Optional parameters. */ +export interface TasksGetSubscriptionLevelTaskOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listBySubscription operation. */ -export type CustomAssessmentAutomationsListBySubscriptionResponse = CustomAssessmentAutomationsListResult; +/** Contains response data for the getSubscriptionLevelTask operation. */ +export type TasksGetSubscriptionLevelTaskResponse = SecurityTask; /** Optional parameters. */ -export interface CustomAssessmentAutomationsListByResourceGroupNextOptionalParams +export interface TasksUpdateSubscriptionLevelTaskStateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByResourceGroupNext operation. */ -export type CustomAssessmentAutomationsListByResourceGroupNextResponse = CustomAssessmentAutomationsListResult; +/** Optional parameters. */ +export interface TasksListByResourceGroupOptionalParams + extends coreClient.OperationOptions { + /** OData filter. Optional. */ + filter?: string; +} + +/** Contains response data for the listByResourceGroup operation. */ +export type TasksListByResourceGroupResponse = SecurityTaskList; /** Optional parameters. */ -export interface CustomAssessmentAutomationsListBySubscriptionNextOptionalParams +export interface TasksGetResourceGroupLevelTaskOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listBySubscriptionNext operation. */ -export type CustomAssessmentAutomationsListBySubscriptionNextResponse = CustomAssessmentAutomationsListResult; +/** Contains response data for the getResourceGroupLevelTask operation. */ +export type TasksGetResourceGroupLevelTaskResponse = SecurityTask; /** Optional parameters. */ -export interface CustomEntityStoreAssignmentsGetOptionalParams +export interface TasksUpdateResourceGroupLevelTaskStateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type CustomEntityStoreAssignmentsGetResponse = CustomEntityStoreAssignment; +/** Optional parameters. */ +export interface TasksListNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listNext operation. */ +export type TasksListNextResponse = SecurityTaskList; /** Optional parameters. */ -export interface CustomEntityStoreAssignmentsCreateOptionalParams +export interface TasksListByHomeRegionNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the create operation. */ -export type CustomEntityStoreAssignmentsCreateResponse = CustomEntityStoreAssignment; +/** Contains response data for the listByHomeRegionNext operation. */ +export type TasksListByHomeRegionNextResponse = SecurityTaskList; /** Optional parameters. */ -export interface CustomEntityStoreAssignmentsDeleteOptionalParams +export interface TasksListByResourceGroupNextOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the listByResourceGroupNext operation. */ +export type TasksListByResourceGroupNextResponse = SecurityTaskList; + /** Optional parameters. */ -export interface CustomEntityStoreAssignmentsListByResourceGroupOptionalParams +export interface AutoProvisioningSettingsListOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByResourceGroup operation. */ -export type CustomEntityStoreAssignmentsListByResourceGroupResponse = CustomEntityStoreAssignmentsListResult; +/** Contains response data for the list operation. */ +export type AutoProvisioningSettingsListResponse = AutoProvisioningSettingList; /** Optional parameters. */ -export interface CustomEntityStoreAssignmentsListBySubscriptionOptionalParams +export interface AutoProvisioningSettingsGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listBySubscription operation. */ -export type CustomEntityStoreAssignmentsListBySubscriptionResponse = CustomEntityStoreAssignmentsListResult; +/** Contains response data for the get operation. */ +export type AutoProvisioningSettingsGetResponse = AutoProvisioningSetting; /** Optional parameters. */ -export interface CustomEntityStoreAssignmentsListByResourceGroupNextOptionalParams +export interface AutoProvisioningSettingsCreateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByResourceGroupNext operation. */ -export type CustomEntityStoreAssignmentsListByResourceGroupNextResponse = CustomEntityStoreAssignmentsListResult; +/** Contains response data for the create operation. */ +export type AutoProvisioningSettingsCreateResponse = AutoProvisioningSetting; /** Optional parameters. */ -export interface CustomEntityStoreAssignmentsListBySubscriptionNextOptionalParams +export interface AutoProvisioningSettingsListNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listBySubscriptionNext operation. */ -export type CustomEntityStoreAssignmentsListBySubscriptionNextResponse = CustomEntityStoreAssignmentsListResult; +/** Contains response data for the listNext operation. */ +export type AutoProvisioningSettingsListNextResponse = AutoProvisioningSettingList; /** Optional parameters. */ -export interface ComplianceResultsListOptionalParams +export interface CompliancesListOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the list operation. */ -export type ComplianceResultsListResponse = ComplianceResultList; +export type CompliancesListResponse = ComplianceList; /** Optional parameters. */ -export interface ComplianceResultsGetOptionalParams +export interface CompliancesGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ComplianceResultsGetResponse = ComplianceResult; +export type CompliancesGetResponse = Compliance; /** Optional parameters. */ -export interface ComplianceResultsListNextOptionalParams +export interface CompliancesListNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ -export type ComplianceResultsListNextResponse = ComplianceResultList; - -/** Optional parameters. */ -export interface PricingsListOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the list operation. */ -export type PricingsListResponse = PricingList; +export type CompliancesListNextResponse = ComplianceList; /** Optional parameters. */ -export interface PricingsGetOptionalParams +export interface InformationProtectionPoliciesGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type PricingsGetResponse = Pricing; +export type InformationProtectionPoliciesGetResponse = InformationProtectionPolicy; /** Optional parameters. */ -export interface PricingsUpdateOptionalParams +export interface InformationProtectionPoliciesCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the update operation. */ -export type PricingsUpdateResponse = Pricing; +/** Contains response data for the createOrUpdate operation. */ +export type InformationProtectionPoliciesCreateOrUpdateResponse = InformationProtectionPolicy; /** Optional parameters. */ -export interface AdvancedThreatProtectionGetOptionalParams +export interface InformationProtectionPoliciesListOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type AdvancedThreatProtectionGetResponse = AdvancedThreatProtectionSetting; +/** Contains response data for the list operation. */ +export type InformationProtectionPoliciesListResponse = InformationProtectionPolicyList; /** Optional parameters. */ -export interface AdvancedThreatProtectionCreateOptionalParams +export interface InformationProtectionPoliciesListNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the create operation. */ -export type AdvancedThreatProtectionCreateResponse = AdvancedThreatProtectionSetting; +/** Contains response data for the listNext operation. */ +export type InformationProtectionPoliciesListNextResponse = InformationProtectionPolicyList; /** Optional parameters. */ -export interface DeviceSecurityGroupsListOptionalParams +export interface SecurityContactsListOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the list operation. */ -export type DeviceSecurityGroupsListResponse = DeviceSecurityGroupList; +export type SecurityContactsListResponse = SecurityContactList; /** Optional parameters. */ -export interface DeviceSecurityGroupsGetOptionalParams +export interface SecurityContactsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type DeviceSecurityGroupsGetResponse = DeviceSecurityGroup; +export type SecurityContactsGetResponse = SecurityContact; /** Optional parameters. */ -export interface DeviceSecurityGroupsCreateOrUpdateOptionalParams +export interface SecurityContactsCreateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the createOrUpdate operation. */ -export type DeviceSecurityGroupsCreateOrUpdateResponse = DeviceSecurityGroup; +/** Contains response data for the create operation. */ +export type SecurityContactsCreateResponse = SecurityContact; /** Optional parameters. */ -export interface DeviceSecurityGroupsDeleteOptionalParams +export interface SecurityContactsDeleteOptionalParams extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface DeviceSecurityGroupsListNextOptionalParams +export interface SecurityContactsListNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ -export type DeviceSecurityGroupsListNextResponse = DeviceSecurityGroupList; - -/** Optional parameters. */ -export interface IotSecuritySolutionListBySubscriptionOptionalParams - extends coreClient.OperationOptions { - /** Filter the IoT Security solution with OData syntax. Supports filtering by iotHubs. */ - filter?: string; -} - -/** Contains response data for the listBySubscription operation. */ -export type IotSecuritySolutionListBySubscriptionResponse = IoTSecuritySolutionsList; +export type SecurityContactsListNextResponse = SecurityContactList; /** Optional parameters. */ -export interface IotSecuritySolutionListByResourceGroupOptionalParams - extends coreClient.OperationOptions { - /** Filter the IoT Security solution with OData syntax. Supports filtering by iotHubs. */ - filter?: string; -} +export interface WorkspaceSettingsListOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the listByResourceGroup operation. */ -export type IotSecuritySolutionListByResourceGroupResponse = IoTSecuritySolutionsList; +/** Contains response data for the list operation. */ +export type WorkspaceSettingsListResponse = WorkspaceSettingList; /** Optional parameters. */ -export interface IotSecuritySolutionGetOptionalParams +export interface WorkspaceSettingsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type IotSecuritySolutionGetResponse = IoTSecuritySolutionModel; +export type WorkspaceSettingsGetResponse = WorkspaceSetting; /** Optional parameters. */ -export interface IotSecuritySolutionCreateOrUpdateOptionalParams +export interface WorkspaceSettingsCreateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the createOrUpdate operation. */ -export type IotSecuritySolutionCreateOrUpdateResponse = IoTSecuritySolutionModel; +/** Contains response data for the create operation. */ +export type WorkspaceSettingsCreateResponse = WorkspaceSetting; /** Optional parameters. */ -export interface IotSecuritySolutionUpdateOptionalParams +export interface WorkspaceSettingsUpdateOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the update operation. */ -export type IotSecuritySolutionUpdateResponse = IoTSecuritySolutionModel; +export type WorkspaceSettingsUpdateResponse = WorkspaceSetting; /** Optional parameters. */ -export interface IotSecuritySolutionDeleteOptionalParams +export interface WorkspaceSettingsDeleteOptionalParams extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface IotSecuritySolutionListBySubscriptionNextOptionalParams +export interface WorkspaceSettingsListNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listBySubscriptionNext operation. */ -export type IotSecuritySolutionListBySubscriptionNextResponse = IoTSecuritySolutionsList; +/** Contains response data for the listNext operation. */ +export type WorkspaceSettingsListNextResponse = WorkspaceSettingList; /** Optional parameters. */ -export interface IotSecuritySolutionListByResourceGroupNextOptionalParams - extends coreClient.OperationOptions {} +export interface RegulatoryComplianceStandardsListOptionalParams + extends coreClient.OperationOptions { + /** OData filter. Optional. */ + filter?: string; +} -/** Contains response data for the listByResourceGroupNext operation. */ -export type IotSecuritySolutionListByResourceGroupNextResponse = IoTSecuritySolutionsList; +/** Contains response data for the list operation. */ +export type RegulatoryComplianceStandardsListResponse = RegulatoryComplianceStandardList; /** Optional parameters. */ -export interface IotSecuritySolutionAnalyticsListOptionalParams +export interface RegulatoryComplianceStandardsGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the list operation. */ -export type IotSecuritySolutionAnalyticsListResponse = IoTSecuritySolutionAnalyticsModelList; +/** Contains response data for the get operation. */ +export type RegulatoryComplianceStandardsGetResponse = RegulatoryComplianceStandard; /** Optional parameters. */ -export interface IotSecuritySolutionAnalyticsGetOptionalParams +export interface RegulatoryComplianceStandardsListNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type IotSecuritySolutionAnalyticsGetResponse = IoTSecuritySolutionAnalyticsModel; +/** Contains response data for the listNext operation. */ +export type RegulatoryComplianceStandardsListNextResponse = RegulatoryComplianceStandardList; /** Optional parameters. */ -export interface IotSecuritySolutionsAnalyticsAggregatedAlertListOptionalParams +export interface RegulatoryComplianceControlsListOptionalParams extends coreClient.OperationOptions { - /** Number of results to retrieve. */ - top?: number; + /** OData filter. Optional. */ + filter?: string; } /** Contains response data for the list operation. */ -export type IotSecuritySolutionsAnalyticsAggregatedAlertListResponse = IoTSecurityAggregatedAlertList; +export type RegulatoryComplianceControlsListResponse = RegulatoryComplianceControlList; /** Optional parameters. */ -export interface IotSecuritySolutionsAnalyticsAggregatedAlertGetOptionalParams +export interface RegulatoryComplianceControlsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type IotSecuritySolutionsAnalyticsAggregatedAlertGetResponse = IoTSecurityAggregatedAlert; +export type RegulatoryComplianceControlsGetResponse = RegulatoryComplianceControl; /** Optional parameters. */ -export interface IotSecuritySolutionsAnalyticsAggregatedAlertDismissOptionalParams +export interface RegulatoryComplianceControlsListNextOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the listNext operation. */ +export type RegulatoryComplianceControlsListNextResponse = RegulatoryComplianceControlList; + /** Optional parameters. */ -export interface IotSecuritySolutionsAnalyticsAggregatedAlertListNextOptionalParams - extends coreClient.OperationOptions {} +export interface RegulatoryComplianceAssessmentsListOptionalParams + extends coreClient.OperationOptions { + /** OData filter. Optional. */ + filter?: string; +} -/** Contains response data for the listNext operation. */ -export type IotSecuritySolutionsAnalyticsAggregatedAlertListNextResponse = IoTSecurityAggregatedAlertList; +/** Contains response data for the list operation. */ +export type RegulatoryComplianceAssessmentsListResponse = RegulatoryComplianceAssessmentList; /** Optional parameters. */ -export interface IotSecuritySolutionsAnalyticsRecommendationGetOptionalParams +export interface RegulatoryComplianceAssessmentsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type IotSecuritySolutionsAnalyticsRecommendationGetResponse = IoTSecurityAggregatedRecommendation; +export type RegulatoryComplianceAssessmentsGetResponse = RegulatoryComplianceAssessment; /** Optional parameters. */ -export interface IotSecuritySolutionsAnalyticsRecommendationListOptionalParams - extends coreClient.OperationOptions { - /** Number of results to retrieve. */ - top?: number; -} +export interface RegulatoryComplianceAssessmentsListNextOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the list operation. */ -export type IotSecuritySolutionsAnalyticsRecommendationListResponse = IoTSecurityAggregatedRecommendationList; +/** Contains response data for the listNext operation. */ +export type RegulatoryComplianceAssessmentsListNextResponse = RegulatoryComplianceAssessmentList; /** Optional parameters. */ -export interface IotSecuritySolutionsAnalyticsRecommendationListNextOptionalParams +export interface SubAssessmentsListAllOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listNext operation. */ -export type IotSecuritySolutionsAnalyticsRecommendationListNextResponse = IoTSecurityAggregatedRecommendationList; +/** Contains response data for the listAll operation. */ +export type SubAssessmentsListAllResponse = SecuritySubAssessmentList; /** Optional parameters. */ -export interface LocationsListOptionalParams +export interface SubAssessmentsListOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the list operation. */ -export type LocationsListResponse = AscLocationList; +export type SubAssessmentsListResponse = SecuritySubAssessmentList; /** Optional parameters. */ -export interface LocationsGetOptionalParams +export interface SubAssessmentsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type LocationsGetResponse = AscLocation; +export type SubAssessmentsGetResponse = SecuritySubAssessment; /** Optional parameters. */ -export interface LocationsListNextOptionalParams +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 {} /** Contains response data for the listNext operation. */ -export type LocationsListNextResponse = AscLocationList; +export type SubAssessmentsListNextResponse = SecuritySubAssessmentList; /** Optional parameters. */ -export interface OperationsListOptionalParams +export interface AutomationsListOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the list operation. */ -export type OperationsListResponse = OperationList; +export type AutomationsListResponse = AutomationList; /** Optional parameters. */ -export interface OperationsListNextOptionalParams +export interface AutomationsListByResourceGroupOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listNext operation. */ -export type OperationsListNextResponse = OperationList; +/** Contains response data for the listByResourceGroup operation. */ +export type AutomationsListByResourceGroupResponse = AutomationList; /** Optional parameters. */ -export interface TasksListOptionalParams extends coreClient.OperationOptions { - /** OData filter. Optional. */ - filter?: string; -} +export interface AutomationsGetOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the list operation. */ -export type TasksListResponse = SecurityTaskList; +/** Contains response data for the get operation. */ +export type AutomationsGetResponse = Automation; /** Optional parameters. */ -export interface TasksListByHomeRegionOptionalParams - extends coreClient.OperationOptions { - /** OData filter. Optional. */ - filter?: string; -} +export interface AutomationsCreateOrUpdateOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the listByHomeRegion operation. */ -export type TasksListByHomeRegionResponse = SecurityTaskList; +/** Contains response data for the createOrUpdate operation. */ +export type AutomationsCreateOrUpdateResponse = Automation; /** Optional parameters. */ -export interface TasksGetSubscriptionLevelTaskOptionalParams +export interface AutomationsDeleteOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the getSubscriptionLevelTask operation. */ -export type TasksGetSubscriptionLevelTaskResponse = SecurityTask; +/** 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 TasksUpdateSubscriptionLevelTaskStateOptionalParams +export interface AutomationsListByResourceGroupNextOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the listByResourceGroupNext operation. */ +export type AutomationsListByResourceGroupNextResponse = AutomationList; + /** Optional parameters. */ -export interface TasksListByResourceGroupOptionalParams +export interface AlertsSuppressionRulesListOptionalParams extends coreClient.OperationOptions { - /** OData filter. Optional. */ - filter?: string; + /** Type of the alert to get rules for */ + alertType?: string; } -/** Contains response data for the listByResourceGroup operation. */ -export type TasksListByResourceGroupResponse = SecurityTaskList; +/** Contains response data for the list operation. */ +export type AlertsSuppressionRulesListResponse = AlertsSuppressionRulesList; /** Optional parameters. */ -export interface TasksGetResourceGroupLevelTaskOptionalParams +export interface AlertsSuppressionRulesGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the getResourceGroupLevelTask operation. */ -export type TasksGetResourceGroupLevelTaskResponse = SecurityTask; - -/** Optional parameters. */ -export interface TasksUpdateResourceGroupLevelTaskStateOptionalParams - extends coreClient.OperationOptions {} +/** Contains response data for the get operation. */ +export type AlertsSuppressionRulesGetResponse = AlertsSuppressionRule; /** Optional parameters. */ -export interface TasksListNextOptionalParams +export interface AlertsSuppressionRulesUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listNext operation. */ -export type TasksListNextResponse = SecurityTaskList; +/** Contains response data for the update operation. */ +export type AlertsSuppressionRulesUpdateResponse = AlertsSuppressionRule; /** Optional parameters. */ -export interface TasksListByHomeRegionNextOptionalParams +export interface AlertsSuppressionRulesDeleteOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByHomeRegionNext operation. */ -export type TasksListByHomeRegionNextResponse = SecurityTaskList; - /** Optional parameters. */ -export interface TasksListByResourceGroupNextOptionalParams +export interface AlertsSuppressionRulesListNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByResourceGroupNext operation. */ -export type TasksListByResourceGroupNextResponse = SecurityTaskList; +/** Contains response data for the listNext operation. */ +export type AlertsSuppressionRulesListNextResponse = AlertsSuppressionRulesList; /** Optional parameters. */ -export interface AutoProvisioningSettingsListOptionalParams +export interface ServerVulnerabilityAssessmentListByExtendedResourceOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the list operation. */ -export type AutoProvisioningSettingsListResponse = AutoProvisioningSettingList; +/** Contains response data for the listByExtendedResource operation. */ +export type ServerVulnerabilityAssessmentListByExtendedResourceResponse = ServerVulnerabilityAssessmentsList; /** Optional parameters. */ -export interface AutoProvisioningSettingsGetOptionalParams +export interface ServerVulnerabilityAssessmentGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type AutoProvisioningSettingsGetResponse = AutoProvisioningSetting; +export type ServerVulnerabilityAssessmentGetResponse = ServerVulnerabilityAssessment; /** Optional parameters. */ -export interface AutoProvisioningSettingsCreateOptionalParams +export interface ServerVulnerabilityAssessmentCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the create operation. */ -export type AutoProvisioningSettingsCreateResponse = AutoProvisioningSetting; +/** Contains response data for the createOrUpdate operation. */ +export type ServerVulnerabilityAssessmentCreateOrUpdateResponse = ServerVulnerabilityAssessment; /** Optional parameters. */ -export interface AutoProvisioningSettingsListNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listNext operation. */ -export type AutoProvisioningSettingsListNextResponse = AutoProvisioningSettingList; +export interface ServerVulnerabilityAssessmentDeleteOptionalParams + 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 CompliancesListOptionalParams +export interface AssessmentsMetadataListOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the list operation. */ -export type CompliancesListResponse = ComplianceList; +export type AssessmentsMetadataListResponse = SecurityAssessmentMetadataResponseList; /** Optional parameters. */ -export interface CompliancesGetOptionalParams +export interface AssessmentsMetadataGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type CompliancesGetResponse = Compliance; +export type AssessmentsMetadataGetResponse = SecurityAssessmentMetadataResponse; /** Optional parameters. */ -export interface CompliancesListNextOptionalParams +export interface AssessmentsMetadataListBySubscriptionOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listNext operation. */ -export type CompliancesListNextResponse = ComplianceList; +/** Contains response data for the listBySubscription operation. */ +export type AssessmentsMetadataListBySubscriptionResponse = SecurityAssessmentMetadataResponseList; /** Optional parameters. */ -export interface InformationProtectionPoliciesGetOptionalParams +export interface AssessmentsMetadataGetInSubscriptionOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type InformationProtectionPoliciesGetResponse = InformationProtectionPolicy; +/** Contains response data for the getInSubscription operation. */ +export type AssessmentsMetadataGetInSubscriptionResponse = SecurityAssessmentMetadataResponse; /** Optional parameters. */ -export interface InformationProtectionPoliciesCreateOrUpdateOptionalParams +export interface AssessmentsMetadataCreateInSubscriptionOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the createOrUpdate operation. */ -export type InformationProtectionPoliciesCreateOrUpdateResponse = InformationProtectionPolicy; +/** Contains response data for the createInSubscription operation. */ +export type AssessmentsMetadataCreateInSubscriptionResponse = SecurityAssessmentMetadataResponse; /** Optional parameters. */ -export interface InformationProtectionPoliciesListOptionalParams +export interface AssessmentsMetadataDeleteInSubscriptionOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the list operation. */ -export type InformationProtectionPoliciesListResponse = InformationProtectionPolicyList; - /** Optional parameters. */ -export interface InformationProtectionPoliciesListNextOptionalParams +export interface AssessmentsMetadataListNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ -export type InformationProtectionPoliciesListNextResponse = InformationProtectionPolicyList; +export type AssessmentsMetadataListNextResponse = SecurityAssessmentMetadataResponseList; /** Optional parameters. */ -export interface SecurityContactsListOptionalParams +export interface AssessmentsMetadataListBySubscriptionNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the list operation. */ -export type SecurityContactsListResponse = SecurityContactList; +/** Contains response data for the listBySubscriptionNext operation. */ +export type AssessmentsMetadataListBySubscriptionNextResponse = SecurityAssessmentMetadataResponseList; /** Optional parameters. */ -export interface SecurityContactsGetOptionalParams +export interface AssessmentsListOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the list operation. */ +export type AssessmentsListResponse = SecurityAssessmentList; + +/** Optional parameters. */ +export interface AssessmentsGetOptionalParams + extends coreClient.OperationOptions { + /** OData expand. Optional. */ + expand?: ExpandEnum; +} + /** Contains response data for the get operation. */ -export type SecurityContactsGetResponse = SecurityContact; +export type AssessmentsGetResponse = SecurityAssessmentResponse; /** Optional parameters. */ -export interface SecurityContactsCreateOptionalParams +export interface AssessmentsCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the create operation. */ -export type SecurityContactsCreateResponse = SecurityContact; +/** Contains response data for the createOrUpdate operation. */ +export type AssessmentsCreateOrUpdateResponse = SecurityAssessmentResponse; /** Optional parameters. */ -export interface SecurityContactsDeleteOptionalParams +export interface AssessmentsDeleteOptionalParams extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface SecurityContactsListNextOptionalParams +export interface AssessmentsListNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ -export type SecurityContactsListNextResponse = SecurityContactList; +export type AssessmentsListNextResponse = SecurityAssessmentList; /** Optional parameters. */ -export interface WorkspaceSettingsListOptionalParams - extends coreClient.OperationOptions {} +export interface AdaptiveApplicationControlsListOptionalParams + extends coreClient.OperationOptions { + /** Include the policy rules */ + includePathRecommendations?: boolean; + /** Return output in a summarized form */ + summary?: boolean; +} /** Contains response data for the list operation. */ -export type WorkspaceSettingsListResponse = WorkspaceSettingList; +export type AdaptiveApplicationControlsListResponse = AdaptiveApplicationControlGroups; /** Optional parameters. */ -export interface WorkspaceSettingsGetOptionalParams +export interface AdaptiveApplicationControlsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type WorkspaceSettingsGetResponse = WorkspaceSetting; +export type AdaptiveApplicationControlsGetResponse = AdaptiveApplicationControlGroup; /** Optional parameters. */ -export interface WorkspaceSettingsCreateOptionalParams +export interface AdaptiveApplicationControlsPutOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the create operation. */ -export type WorkspaceSettingsCreateResponse = WorkspaceSetting; +/** Contains response data for the put operation. */ +export type AdaptiveApplicationControlsPutResponse = AdaptiveApplicationControlGroup; /** Optional parameters. */ -export interface WorkspaceSettingsUpdateOptionalParams +export interface AdaptiveApplicationControlsDeleteOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the update operation. */ -export type WorkspaceSettingsUpdateResponse = WorkspaceSetting; - /** Optional parameters. */ -export interface WorkspaceSettingsDeleteOptionalParams +export interface AdaptiveNetworkHardeningsListByExtendedResourceOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the listByExtendedResource operation. */ +export type AdaptiveNetworkHardeningsListByExtendedResourceResponse = AdaptiveNetworkHardeningsList; + /** Optional parameters. */ -export interface WorkspaceSettingsListNextOptionalParams +export interface AdaptiveNetworkHardeningsGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listNext operation. */ -export type WorkspaceSettingsListNextResponse = WorkspaceSettingList; +/** Contains response data for the get operation. */ +export type AdaptiveNetworkHardeningsGetResponse = AdaptiveNetworkHardening; /** Optional parameters. */ -export interface RegulatoryComplianceStandardsListOptionalParams +export interface AdaptiveNetworkHardeningsEnforceOptionalParams extends coreClient.OperationOptions { - /** OData filter. Optional. */ - filter?: string; + /** 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 list operation. */ -export type RegulatoryComplianceStandardsListResponse = RegulatoryComplianceStandardList; - /** Optional parameters. */ -export interface RegulatoryComplianceStandardsGetOptionalParams +export interface AdaptiveNetworkHardeningsListByExtendedResourceNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type RegulatoryComplianceStandardsGetResponse = RegulatoryComplianceStandard; +/** Contains response data for the listByExtendedResourceNext operation. */ +export type AdaptiveNetworkHardeningsListByExtendedResourceNextResponse = AdaptiveNetworkHardeningsList; /** Optional parameters. */ -export interface RegulatoryComplianceStandardsListNextOptionalParams +export interface AllowedConnectionsListOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listNext operation. */ -export type RegulatoryComplianceStandardsListNextResponse = RegulatoryComplianceStandardList; +/** Contains response data for the list operation. */ +export type AllowedConnectionsListResponse = AllowedConnectionsList; /** Optional parameters. */ -export interface RegulatoryComplianceControlsListOptionalParams - extends coreClient.OperationOptions { - /** OData filter. Optional. */ - filter?: string; -} +export interface AllowedConnectionsListByHomeRegionOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the list operation. */ -export type RegulatoryComplianceControlsListResponse = RegulatoryComplianceControlList; +/** Contains response data for the listByHomeRegion operation. */ +export type AllowedConnectionsListByHomeRegionResponse = AllowedConnectionsList; /** Optional parameters. */ -export interface RegulatoryComplianceControlsGetOptionalParams +export interface AllowedConnectionsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type RegulatoryComplianceControlsGetResponse = RegulatoryComplianceControl; +export type AllowedConnectionsGetResponse = AllowedConnectionsResource; /** Optional parameters. */ -export interface RegulatoryComplianceControlsListNextOptionalParams +export interface AllowedConnectionsListNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ -export type RegulatoryComplianceControlsListNextResponse = RegulatoryComplianceControlList; +export type AllowedConnectionsListNextResponse = AllowedConnectionsList; /** Optional parameters. */ -export interface RegulatoryComplianceAssessmentsListOptionalParams - extends coreClient.OperationOptions { - /** OData filter. Optional. */ - filter?: string; -} +export interface AllowedConnectionsListByHomeRegionNextOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the list operation. */ -export type RegulatoryComplianceAssessmentsListResponse = RegulatoryComplianceAssessmentList; +/** Contains response data for the listByHomeRegionNext operation. */ +export type AllowedConnectionsListByHomeRegionNextResponse = AllowedConnectionsList; /** Optional parameters. */ -export interface RegulatoryComplianceAssessmentsGetOptionalParams +export interface TopologyListOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type RegulatoryComplianceAssessmentsGetResponse = RegulatoryComplianceAssessment; +/** Contains response data for the list operation. */ +export type TopologyListResponse = TopologyList; /** Optional parameters. */ -export interface RegulatoryComplianceAssessmentsListNextOptionalParams +export interface TopologyListByHomeRegionOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listNext operation. */ -export type RegulatoryComplianceAssessmentsListNextResponse = RegulatoryComplianceAssessmentList; +/** Contains response data for the listByHomeRegion operation. */ +export type TopologyListByHomeRegionResponse = TopologyList; /** Optional parameters. */ -export interface SubAssessmentsListAllOptionalParams +export interface TopologyGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listAll operation. */ -export type SubAssessmentsListAllResponse = SecuritySubAssessmentList; +/** Contains response data for the get operation. */ +export type TopologyGetResponse = TopologyResource; /** Optional parameters. */ -export interface SubAssessmentsListOptionalParams +export interface TopologyListNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the list operation. */ -export type SubAssessmentsListResponse = SecuritySubAssessmentList; +/** Contains response data for the listNext operation. */ +export type TopologyListNextResponse = TopologyList; /** Optional parameters. */ -export interface SubAssessmentsGetOptionalParams +export interface TopologyListByHomeRegionNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type SubAssessmentsGetResponse = SecuritySubAssessment; +/** Contains response data for the listByHomeRegionNext operation. */ +export type TopologyListByHomeRegionNextResponse = TopologyList; /** Optional parameters. */ -export interface SubAssessmentsListAllNextOptionalParams +export interface JitNetworkAccessPoliciesListOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listAllNext operation. */ -export type SubAssessmentsListAllNextResponse = SecuritySubAssessmentList; +/** Contains response data for the list operation. */ +export type JitNetworkAccessPoliciesListResponse = JitNetworkAccessPoliciesList; /** Optional parameters. */ -export interface SubAssessmentsListNextOptionalParams +export interface JitNetworkAccessPoliciesListByRegionOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listNext operation. */ -export type SubAssessmentsListNextResponse = SecuritySubAssessmentList; +/** Contains response data for the listByRegion operation. */ +export type JitNetworkAccessPoliciesListByRegionResponse = JitNetworkAccessPoliciesList; /** Optional parameters. */ -export interface AutomationsListOptionalParams +export interface JitNetworkAccessPoliciesListByResourceGroupOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the list operation. */ -export type AutomationsListResponse = AutomationList; +/** Contains response data for the listByResourceGroup operation. */ +export type JitNetworkAccessPoliciesListByResourceGroupResponse = JitNetworkAccessPoliciesList; /** Optional parameters. */ -export interface AutomationsListByResourceGroupOptionalParams +export interface JitNetworkAccessPoliciesListByResourceGroupAndRegionOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByResourceGroup operation. */ -export type AutomationsListByResourceGroupResponse = AutomationList; +/** Contains response data for the listByResourceGroupAndRegion operation. */ +export type JitNetworkAccessPoliciesListByResourceGroupAndRegionResponse = JitNetworkAccessPoliciesList; /** Optional parameters. */ -export interface AutomationsGetOptionalParams +export interface JitNetworkAccessPoliciesGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type AutomationsGetResponse = Automation; +export type JitNetworkAccessPoliciesGetResponse = JitNetworkAccessPolicy; /** Optional parameters. */ -export interface AutomationsCreateOrUpdateOptionalParams +export interface JitNetworkAccessPoliciesCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the createOrUpdate operation. */ -export type AutomationsCreateOrUpdateResponse = Automation; +export type JitNetworkAccessPoliciesCreateOrUpdateResponse = JitNetworkAccessPolicy; /** Optional parameters. */ -export interface AutomationsDeleteOptionalParams +export interface JitNetworkAccessPoliciesDeleteOptionalParams extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface AutomationsValidateOptionalParams +export interface JitNetworkAccessPoliciesInitiateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the validate operation. */ -export type AutomationsValidateResponse = AutomationValidationStatus; +/** Contains response data for the initiate operation. */ +export type JitNetworkAccessPoliciesInitiateResponse = JitNetworkAccessRequest; /** Optional parameters. */ -export interface AutomationsListNextOptionalParams +export interface JitNetworkAccessPoliciesListNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ -export type AutomationsListNextResponse = AutomationList; +export type JitNetworkAccessPoliciesListNextResponse = JitNetworkAccessPoliciesList; /** Optional parameters. */ -export interface AutomationsListByResourceGroupNextOptionalParams +export interface JitNetworkAccessPoliciesListByRegionNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByResourceGroupNext operation. */ -export type AutomationsListByResourceGroupNextResponse = AutomationList; - -/** Optional parameters. */ -export interface AlertsSuppressionRulesListOptionalParams - extends coreClient.OperationOptions { - /** Type of the alert to get rules for */ - alertType?: string; -} - -/** Contains response data for the list operation. */ -export type AlertsSuppressionRulesListResponse = AlertsSuppressionRulesList; +/** Contains response data for the listByRegionNext operation. */ +export type JitNetworkAccessPoliciesListByRegionNextResponse = JitNetworkAccessPoliciesList; /** Optional parameters. */ -export interface AlertsSuppressionRulesGetOptionalParams +export interface JitNetworkAccessPoliciesListByResourceGroupNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type AlertsSuppressionRulesGetResponse = AlertsSuppressionRule; +/** Contains response data for the listByResourceGroupNext operation. */ +export type JitNetworkAccessPoliciesListByResourceGroupNextResponse = JitNetworkAccessPoliciesList; /** Optional parameters. */ -export interface AlertsSuppressionRulesUpdateOptionalParams +export interface JitNetworkAccessPoliciesListByResourceGroupAndRegionNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the update operation. */ -export type AlertsSuppressionRulesUpdateResponse = AlertsSuppressionRule; - -/** Optional parameters. */ -export interface AlertsSuppressionRulesDeleteOptionalParams - extends coreClient.OperationOptions {} +/** Contains response data for the listByResourceGroupAndRegionNext operation. */ +export type JitNetworkAccessPoliciesListByResourceGroupAndRegionNextResponse = JitNetworkAccessPoliciesList; /** Optional parameters. */ -export interface AlertsSuppressionRulesListNextOptionalParams +export interface DiscoveredSecuritySolutionsListOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listNext operation. */ -export type AlertsSuppressionRulesListNextResponse = AlertsSuppressionRulesList; +/** Contains response data for the list operation. */ +export type DiscoveredSecuritySolutionsListResponse = DiscoveredSecuritySolutionList; /** Optional parameters. */ -export interface ServerVulnerabilityAssessmentListByExtendedResourceOptionalParams +export interface DiscoveredSecuritySolutionsListByHomeRegionOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByExtendedResource operation. */ -export type ServerVulnerabilityAssessmentListByExtendedResourceResponse = ServerVulnerabilityAssessmentsList; +/** Contains response data for the listByHomeRegion operation. */ +export type DiscoveredSecuritySolutionsListByHomeRegionResponse = DiscoveredSecuritySolutionList; /** Optional parameters. */ -export interface ServerVulnerabilityAssessmentGetOptionalParams +export interface DiscoveredSecuritySolutionsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ServerVulnerabilityAssessmentGetResponse = ServerVulnerabilityAssessment; +export type DiscoveredSecuritySolutionsGetResponse = DiscoveredSecuritySolution; /** Optional parameters. */ -export interface ServerVulnerabilityAssessmentCreateOrUpdateOptionalParams +export interface DiscoveredSecuritySolutionsListNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the createOrUpdate operation. */ -export type ServerVulnerabilityAssessmentCreateOrUpdateResponse = ServerVulnerabilityAssessment; - -/** Optional parameters. */ -export interface ServerVulnerabilityAssessmentDeleteOptionalParams - 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 listNext operation. */ +export type DiscoveredSecuritySolutionsListNextResponse = DiscoveredSecuritySolutionList; /** Optional parameters. */ -export interface AssessmentsMetadataListOptionalParams +export interface DiscoveredSecuritySolutionsListByHomeRegionNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the list operation. */ -export type AssessmentsMetadataListResponse = SecurityAssessmentMetadataResponseList; +/** Contains response data for the listByHomeRegionNext operation. */ +export type DiscoveredSecuritySolutionsListByHomeRegionNextResponse = DiscoveredSecuritySolutionList; /** Optional parameters. */ -export interface AssessmentsMetadataGetOptionalParams +export interface SecuritySolutionsReferenceDataListOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type AssessmentsMetadataGetResponse = SecurityAssessmentMetadataResponse; +/** Contains response data for the list operation. */ +export type SecuritySolutionsReferenceDataListResponse = SecuritySolutionsReferenceDataList; /** Optional parameters. */ -export interface AssessmentsMetadataListBySubscriptionOptionalParams +export interface SecuritySolutionsReferenceDataListByHomeRegionOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listBySubscription operation. */ -export type AssessmentsMetadataListBySubscriptionResponse = SecurityAssessmentMetadataResponseList; +/** Contains response data for the listByHomeRegion operation. */ +export type SecuritySolutionsReferenceDataListByHomeRegionResponse = SecuritySolutionsReferenceDataList; /** Optional parameters. */ -export interface AssessmentsMetadataGetInSubscriptionOptionalParams +export interface ExternalSecuritySolutionsListOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the getInSubscription operation. */ -export type AssessmentsMetadataGetInSubscriptionResponse = SecurityAssessmentMetadataResponse; +/** Contains response data for the list operation. */ +export type ExternalSecuritySolutionsListResponse = ExternalSecuritySolutionList; /** Optional parameters. */ -export interface AssessmentsMetadataCreateInSubscriptionOptionalParams +export interface ExternalSecuritySolutionsListByHomeRegionOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the createInSubscription operation. */ -export type AssessmentsMetadataCreateInSubscriptionResponse = SecurityAssessmentMetadataResponse; +/** Contains response data for the listByHomeRegion operation. */ +export type ExternalSecuritySolutionsListByHomeRegionResponse = ExternalSecuritySolutionList; /** Optional parameters. */ -export interface AssessmentsMetadataDeleteInSubscriptionOptionalParams +export interface ExternalSecuritySolutionsGetOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the get operation. */ +export type ExternalSecuritySolutionsGetResponse = ExternalSecuritySolution; + /** Optional parameters. */ -export interface AssessmentsMetadataListNextOptionalParams +export interface ExternalSecuritySolutionsListNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ -export type AssessmentsMetadataListNextResponse = SecurityAssessmentMetadataResponseList; +export type ExternalSecuritySolutionsListNextResponse = ExternalSecuritySolutionList; /** Optional parameters. */ -export interface AssessmentsMetadataListBySubscriptionNextOptionalParams +export interface ExternalSecuritySolutionsListByHomeRegionNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listBySubscriptionNext operation. */ -export type AssessmentsMetadataListBySubscriptionNextResponse = SecurityAssessmentMetadataResponseList; +/** Contains response data for the listByHomeRegionNext operation. */ +export type ExternalSecuritySolutionsListByHomeRegionNextResponse = ExternalSecuritySolutionList; /** Optional parameters. */ -export interface AssessmentsListOptionalParams +export interface SecureScoresListOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the list operation. */ -export type AssessmentsListResponse = SecurityAssessmentList; +export type SecureScoresListResponse = SecureScoresList; /** Optional parameters. */ -export interface AssessmentsGetOptionalParams - extends coreClient.OperationOptions { - /** OData expand. Optional. */ - expand?: ExpandEnum; -} +export interface SecureScoresGetOptionalParams + extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type AssessmentsGetResponse = SecurityAssessmentResponse; +export type SecureScoresGetResponse = SecureScoreItem; /** Optional parameters. */ -export interface AssessmentsCreateOrUpdateOptionalParams +export interface SecureScoresListNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the createOrUpdate operation. */ -export type AssessmentsCreateOrUpdateResponse = SecurityAssessmentResponse; - -/** Optional parameters. */ -export interface AssessmentsDeleteOptionalParams - extends coreClient.OperationOptions {} +/** Contains response data for the listNext operation. */ +export type SecureScoresListNextResponse = SecureScoresList; /** Optional parameters. */ -export interface AssessmentsListNextOptionalParams - extends coreClient.OperationOptions {} +export interface SecureScoreControlsListBySecureScoreOptionalParams + extends coreClient.OperationOptions { + /** OData expand. Optional. */ + expand?: ExpandControlsEnum; +} -/** Contains response data for the listNext operation. */ -export type AssessmentsListNextResponse = SecurityAssessmentList; +/** Contains response data for the listBySecureScore operation. */ +export type SecureScoreControlsListBySecureScoreResponse = SecureScoreControlList; /** Optional parameters. */ -export interface AdaptiveApplicationControlsListOptionalParams +export interface SecureScoreControlsListOptionalParams extends coreClient.OperationOptions { - /** Include the policy rules */ - includePathRecommendations?: boolean; - /** Return output in a summarized form */ - summary?: boolean; + /** OData expand. Optional. */ + expand?: ExpandControlsEnum; } /** Contains response data for the list operation. */ -export type AdaptiveApplicationControlsListResponse = AdaptiveApplicationControlGroups; +export type SecureScoreControlsListResponse = SecureScoreControlList; /** Optional parameters. */ -export interface AdaptiveApplicationControlsGetOptionalParams +export interface SecureScoreControlsListBySecureScoreNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type AdaptiveApplicationControlsGetResponse = AdaptiveApplicationControlGroup; +/** Contains response data for the listBySecureScoreNext operation. */ +export type SecureScoreControlsListBySecureScoreNextResponse = SecureScoreControlList; /** Optional parameters. */ -export interface AdaptiveApplicationControlsPutOptionalParams +export interface SecureScoreControlsListNextOptionalParams 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 listNext operation. */ +export type SecureScoreControlsListNextResponse = SecureScoreControlList; /** Optional parameters. */ -export interface AdaptiveNetworkHardeningsListByExtendedResourceOptionalParams +export interface SecureScoreControlDefinitionsListOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByExtendedResource operation. */ -export type AdaptiveNetworkHardeningsListByExtendedResourceResponse = AdaptiveNetworkHardeningsList; +/** Contains response data for the list operation. */ +export type SecureScoreControlDefinitionsListResponse = SecureScoreControlDefinitionList; /** Optional parameters. */ -export interface AdaptiveNetworkHardeningsGetOptionalParams +export interface SecureScoreControlDefinitionsListBySubscriptionOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type AdaptiveNetworkHardeningsGetResponse = AdaptiveNetworkHardening; - -/** Optional parameters. */ -export interface AdaptiveNetworkHardeningsEnforceOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} +/** Contains response data for the listBySubscription operation. */ +export type SecureScoreControlDefinitionsListBySubscriptionResponse = SecureScoreControlDefinitionList; /** Optional parameters. */ -export interface AdaptiveNetworkHardeningsListByExtendedResourceNextOptionalParams +export interface SecureScoreControlDefinitionsListNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByExtendedResourceNext operation. */ -export type AdaptiveNetworkHardeningsListByExtendedResourceNextResponse = AdaptiveNetworkHardeningsList; +/** Contains response data for the listNext operation. */ +export type SecureScoreControlDefinitionsListNextResponse = SecureScoreControlDefinitionList; /** Optional parameters. */ -export interface AllowedConnectionsListOptionalParams +export interface SecureScoreControlDefinitionsListBySubscriptionNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the list operation. */ -export type AllowedConnectionsListResponse = AllowedConnectionsList; +/** Contains response data for the listBySubscriptionNext operation. */ +export type SecureScoreControlDefinitionsListBySubscriptionNextResponse = SecureScoreControlDefinitionList; /** Optional parameters. */ -export interface AllowedConnectionsListByHomeRegionOptionalParams +export interface SecuritySolutionsListOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByHomeRegion operation. */ -export type AllowedConnectionsListByHomeRegionResponse = AllowedConnectionsList; +/** Contains response data for the list operation. */ +export type SecuritySolutionsListResponse = SecuritySolutionList; /** Optional parameters. */ -export interface AllowedConnectionsGetOptionalParams +export interface SecuritySolutionsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type AllowedConnectionsGetResponse = AllowedConnectionsResource; +export type SecuritySolutionsGetResponse = SecuritySolution; /** Optional parameters. */ -export interface AllowedConnectionsListNextOptionalParams +export interface SecuritySolutionsListNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ -export type AllowedConnectionsListNextResponse = AllowedConnectionsList; +export type SecuritySolutionsListNextResponse = SecuritySolutionList; /** Optional parameters. */ -export interface AllowedConnectionsListByHomeRegionNextOptionalParams +export interface ConnectorsListOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByHomeRegionNext operation. */ -export type AllowedConnectionsListByHomeRegionNextResponse = AllowedConnectionsList; +/** Contains response data for the list operation. */ +export type ConnectorsListResponse = ConnectorSettingList; /** Optional parameters. */ -export interface TopologyListOptionalParams +export interface ConnectorsGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the list operation. */ -export type TopologyListResponse = TopologyList; +/** Contains response data for the get operation. */ +export type ConnectorsGetResponse = ConnectorSetting; /** Optional parameters. */ -export interface TopologyListByHomeRegionOptionalParams +export interface ConnectorsCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByHomeRegion operation. */ -export type TopologyListByHomeRegionResponse = TopologyList; +/** Contains response data for the createOrUpdate operation. */ +export type ConnectorsCreateOrUpdateResponse = ConnectorSetting; /** Optional parameters. */ -export interface TopologyGetOptionalParams +export interface ConnectorsDeleteOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type TopologyGetResponse = TopologyResource; - /** Optional parameters. */ -export interface TopologyListNextOptionalParams +export interface ConnectorsListNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ -export type TopologyListNextResponse = TopologyList; +export type ConnectorsListNextResponse = ConnectorSettingList; /** Optional parameters. */ -export interface TopologyListByHomeRegionNextOptionalParams +export interface UpdateSensitivitySettingsOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByHomeRegionNext operation. */ -export type TopologyListByHomeRegionNextResponse = TopologyList; +/** Contains response data for the updateSensitivitySettings operation. */ +export type UpdateSensitivitySettingsResponse = GetSensitivitySettingsResponse; /** Optional parameters. */ -export interface JitNetworkAccessPoliciesListOptionalParams +export interface GetSensitivitySettingsOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the list operation. */ -export type JitNetworkAccessPoliciesListResponse = JitNetworkAccessPoliciesList; +/** Contains response data for the getSensitivitySettings operation. */ +export type GetSensitivitySettingsOperationResponse = GetSensitivitySettingsResponse; /** Optional parameters. */ -export interface JitNetworkAccessPoliciesListByRegionOptionalParams +export interface SensitivitySettingsListOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByRegion operation. */ -export type JitNetworkAccessPoliciesListByRegionResponse = JitNetworkAccessPoliciesList; +/** Contains response data for the list operation. */ +export type SensitivitySettingsListResponse = GetSensitivitySettingsListResponse; /** Optional parameters. */ -export interface JitNetworkAccessPoliciesListByResourceGroupOptionalParams +export interface AlertsListOptionalParams extends coreClient.OperationOptions {} + +/** Contains response data for the list operation. */ +export type AlertsListResponse = AlertList; + +/** Optional parameters. */ +export interface AlertsListByResourceGroupOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByResourceGroup operation. */ -export type JitNetworkAccessPoliciesListByResourceGroupResponse = JitNetworkAccessPoliciesList; +export type AlertsListByResourceGroupResponse = AlertList; /** Optional parameters. */ -export interface JitNetworkAccessPoliciesListByResourceGroupAndRegionOptionalParams +export interface AlertsListSubscriptionLevelByRegionOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByResourceGroupAndRegion operation. */ -export type JitNetworkAccessPoliciesListByResourceGroupAndRegionResponse = JitNetworkAccessPoliciesList; +/** Contains response data for the listSubscriptionLevelByRegion operation. */ +export type AlertsListSubscriptionLevelByRegionResponse = AlertList; /** Optional parameters. */ -export interface JitNetworkAccessPoliciesGetOptionalParams +export interface AlertsListResourceGroupLevelByRegionOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type JitNetworkAccessPoliciesGetResponse = JitNetworkAccessPolicy; +/** Contains response data for the listResourceGroupLevelByRegion operation. */ +export type AlertsListResourceGroupLevelByRegionResponse = AlertList; /** Optional parameters. */ -export interface JitNetworkAccessPoliciesCreateOrUpdateOptionalParams +export interface AlertsGetSubscriptionLevelOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the createOrUpdate operation. */ -export type JitNetworkAccessPoliciesCreateOrUpdateResponse = JitNetworkAccessPolicy; +/** Contains response data for the getSubscriptionLevel operation. */ +export type AlertsGetSubscriptionLevelResponse = Alert; /** Optional parameters. */ -export interface JitNetworkAccessPoliciesDeleteOptionalParams +export interface AlertsGetResourceGroupLevelOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the getResourceGroupLevel operation. */ +export type AlertsGetResourceGroupLevelResponse = Alert; + /** Optional parameters. */ -export interface JitNetworkAccessPoliciesInitiateOptionalParams +export interface AlertsUpdateSubscriptionLevelStateToDismissOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the initiate operation. */ -export type JitNetworkAccessPoliciesInitiateResponse = JitNetworkAccessRequest; - /** Optional parameters. */ -export interface JitNetworkAccessPoliciesListNextOptionalParams +export interface AlertsUpdateSubscriptionLevelStateToResolveOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listNext operation. */ -export type JitNetworkAccessPoliciesListNextResponse = JitNetworkAccessPoliciesList; +/** Optional parameters. */ +export interface AlertsUpdateSubscriptionLevelStateToActivateOptionalParams + extends coreClient.OperationOptions {} /** 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 AlertsUpdateResourceGroupLevelStateToResolveOptionalParams + extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface JitNetworkAccessPoliciesListByResourceGroupNextOptionalParams +export interface AlertsUpdateResourceGroupLevelStateToDismissOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByResourceGroupNext operation. */ -export type JitNetworkAccessPoliciesListByResourceGroupNextResponse = JitNetworkAccessPoliciesList; +/** Optional parameters. */ +export interface AlertsUpdateResourceGroupLevelStateToActivateOptionalParams + extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface JitNetworkAccessPoliciesListByResourceGroupAndRegionNextOptionalParams +export interface AlertsUpdateResourceGroupLevelStateToInProgressOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByResourceGroupAndRegionNext operation. */ -export type JitNetworkAccessPoliciesListByResourceGroupAndRegionNextResponse = JitNetworkAccessPoliciesList; +/** 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 DiscoveredSecuritySolutionsListOptionalParams +export interface AlertsListNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the list operation. */ -export type DiscoveredSecuritySolutionsListResponse = DiscoveredSecuritySolutionList; +/** Contains response data for the listNext operation. */ +export type AlertsListNextResponse = AlertList; /** Optional parameters. */ -export interface DiscoveredSecuritySolutionsListByHomeRegionOptionalParams +export interface AlertsListByResourceGroupNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByHomeRegion operation. */ -export type DiscoveredSecuritySolutionsListByHomeRegionResponse = DiscoveredSecuritySolutionList; +/** Contains response data for the listByResourceGroupNext operation. */ +export type AlertsListByResourceGroupNextResponse = AlertList; /** Optional parameters. */ -export interface DiscoveredSecuritySolutionsGetOptionalParams +export interface AlertsListSubscriptionLevelByRegionNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type DiscoveredSecuritySolutionsGetResponse = DiscoveredSecuritySolution; +/** Contains response data for the listSubscriptionLevelByRegionNext operation. */ +export type AlertsListSubscriptionLevelByRegionNextResponse = AlertList; /** Optional parameters. */ -export interface DiscoveredSecuritySolutionsListNextOptionalParams +export interface AlertsListResourceGroupLevelByRegionNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listNext operation. */ -export type DiscoveredSecuritySolutionsListNextResponse = DiscoveredSecuritySolutionList; +/** Contains response data for the listResourceGroupLevelByRegionNext operation. */ +export type AlertsListResourceGroupLevelByRegionNextResponse = AlertList; /** Optional parameters. */ -export interface DiscoveredSecuritySolutionsListByHomeRegionNextOptionalParams +export interface SettingsListOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByHomeRegionNext operation. */ -export type DiscoveredSecuritySolutionsListByHomeRegionNextResponse = DiscoveredSecuritySolutionList; +/** Contains response data for the list operation. */ +export type SettingsListResponse = SettingsList; /** Optional parameters. */ -export interface SecuritySolutionsReferenceDataListOptionalParams +export interface SettingsGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the list operation. */ -export type SecuritySolutionsReferenceDataListResponse = SecuritySolutionsReferenceDataList; +/** Contains response data for the get operation. */ +export type SettingsGetResponse = SettingUnion; /** Optional parameters. */ -export interface SecuritySolutionsReferenceDataListByHomeRegionOptionalParams +export interface SettingsUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByHomeRegion operation. */ -export type SecuritySolutionsReferenceDataListByHomeRegionResponse = SecuritySolutionsReferenceDataList; +/** Contains response data for the update operation. */ +export type SettingsUpdateResponse = SettingUnion; /** Optional parameters. */ -export interface ExternalSecuritySolutionsListOptionalParams +export interface SettingsListNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the list operation. */ -export type ExternalSecuritySolutionsListResponse = ExternalSecuritySolutionList; +/** Contains response data for the listNext operation. */ +export type SettingsListNextResponse = SettingsList; /** Optional parameters. */ -export interface ExternalSecuritySolutionsListByHomeRegionOptionalParams +export interface IngestionSettingsListOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByHomeRegion operation. */ -export type ExternalSecuritySolutionsListByHomeRegionResponse = ExternalSecuritySolutionList; +/** Contains response data for the list operation. */ +export type IngestionSettingsListResponse = IngestionSettingList; /** Optional parameters. */ -export interface ExternalSecuritySolutionsGetOptionalParams +export interface IngestionSettingsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ExternalSecuritySolutionsGetResponse = ExternalSecuritySolution; +export type IngestionSettingsGetResponse = IngestionSetting; /** Optional parameters. */ -export interface ExternalSecuritySolutionsListNextOptionalParams +export interface IngestionSettingsCreateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listNext operation. */ -export type ExternalSecuritySolutionsListNextResponse = ExternalSecuritySolutionList; +/** Contains response data for the create operation. */ +export type IngestionSettingsCreateResponse = IngestionSetting; /** Optional parameters. */ -export interface ExternalSecuritySolutionsListByHomeRegionNextOptionalParams +export interface IngestionSettingsDeleteOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByHomeRegionNext operation. */ -export type ExternalSecuritySolutionsListByHomeRegionNextResponse = ExternalSecuritySolutionList; - /** Optional parameters. */ -export interface SecureScoresListOptionalParams +export interface IngestionSettingsListTokensOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the list operation. */ -export type SecureScoresListResponse = SecureScoresList; +/** Contains response data for the listTokens operation. */ +export type IngestionSettingsListTokensResponse = IngestionSettingToken; /** Optional parameters. */ -export interface SecureScoresGetOptionalParams +export interface IngestionSettingsListConnectionStringsOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type SecureScoresGetResponse = SecureScoreItem; +/** Contains response data for the listConnectionStrings operation. */ +export type IngestionSettingsListConnectionStringsResponse = ConnectionStrings; /** Optional parameters. */ -export interface SecureScoresListNextOptionalParams +export interface IngestionSettingsListNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ -export type SecureScoresListNextResponse = SecureScoresList; +export type IngestionSettingsListNextResponse = IngestionSettingList; /** Optional parameters. */ -export interface SecureScoreControlsListBySecureScoreOptionalParams - extends coreClient.OperationOptions { - /** OData expand. Optional. */ - expand?: ExpandControlsEnum; -} +export interface SoftwareInventoriesListByExtendedResourceOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the listBySecureScore operation. */ -export type SecureScoreControlsListBySecureScoreResponse = SecureScoreControlList; +/** Contains response data for the listByExtendedResource operation. */ +export type SoftwareInventoriesListByExtendedResourceResponse = SoftwaresList; /** Optional parameters. */ -export interface SecureScoreControlsListOptionalParams - extends coreClient.OperationOptions { - /** OData expand. Optional. */ - expand?: ExpandControlsEnum; -} +export interface SoftwareInventoriesListBySubscriptionOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the list operation. */ -export type SecureScoreControlsListResponse = SecureScoreControlList; +/** Contains response data for the listBySubscription operation. */ +export type SoftwareInventoriesListBySubscriptionResponse = SoftwaresList; /** Optional parameters. */ -export interface SecureScoreControlsListBySecureScoreNextOptionalParams +export interface SoftwareInventoriesGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listBySecureScoreNext operation. */ -export type SecureScoreControlsListBySecureScoreNextResponse = SecureScoreControlList; +/** Contains response data for the get operation. */ +export type SoftwareInventoriesGetResponse = Software; /** Optional parameters. */ -export interface SecureScoreControlsListNextOptionalParams +export interface SoftwareInventoriesListByExtendedResourceNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listNext operation. */ -export type SecureScoreControlsListNextResponse = SecureScoreControlList; +/** Contains response data for the listByExtendedResourceNext operation. */ +export type SoftwareInventoriesListByExtendedResourceNextResponse = SoftwaresList; /** Optional parameters. */ -export interface SecureScoreControlDefinitionsListOptionalParams +export interface SoftwareInventoriesListBySubscriptionNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the list operation. */ -export type SecureScoreControlDefinitionsListResponse = SecureScoreControlDefinitionList; +/** Contains response data for the listBySubscriptionNext operation. */ +export type SoftwareInventoriesListBySubscriptionNextResponse = SoftwaresList; /** Optional parameters. */ -export interface SecureScoreControlDefinitionsListBySubscriptionOptionalParams +export interface GovernanceRulesListOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listBySubscription operation. */ -export type SecureScoreControlDefinitionsListBySubscriptionResponse = SecureScoreControlDefinitionList; +/** Contains response data for the list operation. */ +export type GovernanceRulesListResponse = GovernanceRuleList; /** Optional parameters. */ -export interface SecureScoreControlDefinitionsListNextOptionalParams +export interface GovernanceRulesGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listNext operation. */ -export type SecureScoreControlDefinitionsListNextResponse = SecureScoreControlDefinitionList; +/** Contains response data for the get operation. */ +export type GovernanceRulesGetResponse = GovernanceRule; /** Optional parameters. */ -export interface SecureScoreControlDefinitionsListBySubscriptionNextOptionalParams +export interface GovernanceRulesCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listBySubscriptionNext operation. */ -export type SecureScoreControlDefinitionsListBySubscriptionNextResponse = SecureScoreControlDefinitionList; +/** Contains response data for the createOrUpdate operation. */ +export type GovernanceRulesCreateOrUpdateResponse = GovernanceRule; + +/** Optional parameters. */ +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. */ + resumeFrom?: string; +} /** Optional parameters. */ -export interface SecuritySolutionsListOptionalParams - 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. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} -/** Contains response data for the list operation. */ -export type SecuritySolutionsListResponse = SecuritySolutionList; +/** Contains response data for the execute operation. */ +export type GovernanceRulesExecuteResponse = GovernanceRulesExecuteHeaders; /** Optional parameters. */ -export interface SecuritySolutionsGetOptionalParams +export interface GovernanceRulesOperationResultsOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type SecuritySolutionsGetResponse = SecuritySolution; +/** Contains response data for the operationResults operation. */ +export type GovernanceRulesOperationResultsResponse = OperationResultAutoGenerated; /** Optional parameters. */ -export interface SecuritySolutionsListNextOptionalParams +export interface GovernanceRulesListNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ -export type SecuritySolutionsListNextResponse = SecuritySolutionList; +export type GovernanceRulesListNextResponse = GovernanceRuleList; /** Optional parameters. */ -export interface ConnectorsListOptionalParams +export interface GovernanceAssignmentsListOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the list operation. */ -export type ConnectorsListResponse = ConnectorSettingList; +export type GovernanceAssignmentsListResponse = GovernanceAssignmentsList; /** Optional parameters. */ -export interface ConnectorsGetOptionalParams +export interface GovernanceAssignmentsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ConnectorsGetResponse = ConnectorSetting; +export type GovernanceAssignmentsGetResponse = GovernanceAssignment; /** Optional parameters. */ -export interface ConnectorsCreateOrUpdateOptionalParams +export interface GovernanceAssignmentsCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the createOrUpdate operation. */ -export type ConnectorsCreateOrUpdateResponse = ConnectorSetting; +export type GovernanceAssignmentsCreateOrUpdateResponse = GovernanceAssignment; /** Optional parameters. */ -export interface ConnectorsDeleteOptionalParams +export interface GovernanceAssignmentsDeleteOptionalParams extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface ConnectorsListNextOptionalParams +export interface GovernanceAssignmentsListNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ -export type ConnectorsListNextResponse = ConnectorSettingList; +export type GovernanceAssignmentsListNextResponse = GovernanceAssignmentsList; /** Optional parameters. */ -export interface AlertsListOptionalParams extends coreClient.OperationOptions {} +export interface ApplicationsListOptionalParams + extends coreClient.OperationOptions {} /** Contains response data for the list operation. */ -export type AlertsListResponse = AlertList; +export type ApplicationsListResponse = ApplicationsList; /** Optional parameters. */ -export interface AlertsListByResourceGroupOptionalParams +export interface ApplicationsListNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByResourceGroup operation. */ -export type AlertsListByResourceGroupResponse = AlertList; +/** Contains response data for the listNext operation. */ +export type ApplicationsListNextResponse = ApplicationsList; /** Optional parameters. */ -export interface AlertsListSubscriptionLevelByRegionOptionalParams +export interface ApplicationGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listSubscriptionLevelByRegion operation. */ -export type AlertsListSubscriptionLevelByRegionResponse = AlertList; +/** Contains response data for the get operation. */ +export type ApplicationGetResponse = Application; /** Optional parameters. */ -export interface AlertsListResourceGroupLevelByRegionOptionalParams +export interface ApplicationCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listResourceGroupLevelByRegion operation. */ -export type AlertsListResourceGroupLevelByRegionResponse = AlertList; +/** Contains response data for the createOrUpdate operation. */ +export type ApplicationCreateOrUpdateResponse = Application; /** Optional parameters. */ -export interface AlertsGetSubscriptionLevelOptionalParams +export interface ApplicationDeleteOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the getSubscriptionLevel operation. */ -export type AlertsGetSubscriptionLevelResponse = Alert; - /** Optional parameters. */ -export interface AlertsGetResourceGroupLevelOptionalParams +export interface SecurityConnectorApplicationsListOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the getResourceGroupLevel operation. */ -export type AlertsGetResourceGroupLevelResponse = Alert; - -/** Optional parameters. */ -export interface AlertsUpdateSubscriptionLevelStateToDismissOptionalParams - extends coreClient.OperationOptions {} +/** Contains response data for the list operation. */ +export type SecurityConnectorApplicationsListResponse = ApplicationsList; /** Optional parameters. */ -export interface AlertsUpdateSubscriptionLevelStateToResolveOptionalParams +export interface SecurityConnectorApplicationsListNextOptionalParams extends coreClient.OperationOptions {} -/** Optional parameters. */ -export interface AlertsUpdateSubscriptionLevelStateToActivateOptionalParams - extends coreClient.OperationOptions {} +/** Contains response data for the listNext operation. */ +export type SecurityConnectorApplicationsListNextResponse = ApplicationsList; /** Optional parameters. */ -export interface AlertsUpdateSubscriptionLevelStateToInProgressOptionalParams +export interface SecurityConnectorApplicationGetOptionalParams extends coreClient.OperationOptions {} -/** Optional parameters. */ -export interface AlertsUpdateResourceGroupLevelStateToResolveOptionalParams - extends coreClient.OperationOptions {} +/** Contains response data for the get operation. */ +export type SecurityConnectorApplicationGetResponse = Application; /** Optional parameters. */ -export interface AlertsUpdateResourceGroupLevelStateToDismissOptionalParams +export interface SecurityConnectorApplicationCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} -/** Optional parameters. */ -export interface AlertsUpdateResourceGroupLevelStateToActivateOptionalParams - extends coreClient.OperationOptions {} +/** Contains response data for the createOrUpdate operation. */ +export type SecurityConnectorApplicationCreateOrUpdateResponse = Application; /** Optional parameters. */ -export interface AlertsUpdateResourceGroupLevelStateToInProgressOptionalParams +export interface SecurityConnectorApplicationDeleteOptionalParams extends coreClient.OperationOptions {} /** 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 AlertsListNextOptionalParams +export interface APICollectionListOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listNext operation. */ -export type AlertsListNextResponse = AlertList; +/** Contains response data for the list operation. */ +export type APICollectionListResponse = ApiCollectionResponseList; /** Optional parameters. */ -export interface AlertsListByResourceGroupNextOptionalParams +export interface APICollectionGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByResourceGroupNext operation. */ -export type AlertsListByResourceGroupNextResponse = AlertList; +/** Contains response data for the get operation. */ +export type APICollectionGetResponse = ApiCollectionResponse; /** Optional parameters. */ -export interface AlertsListSubscriptionLevelByRegionNextOptionalParams +export interface APICollectionListNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listSubscriptionLevelByRegionNext operation. */ -export type AlertsListSubscriptionLevelByRegionNextResponse = AlertList; +/** Contains response data for the listNext operation. */ +export type APICollectionListNextResponse = ApiCollectionResponseList; /** Optional parameters. */ -export interface AlertsListResourceGroupLevelByRegionNextOptionalParams +export interface APICollectionOnboardingCreateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listResourceGroupLevelByRegionNext operation. */ -export type AlertsListResourceGroupLevelByRegionNextResponse = AlertList; +/** Contains response data for the create operation. */ +export type APICollectionOnboardingCreateResponse = ApiCollectionResponse; /** Optional parameters. */ -export interface SettingsListOptionalParams +export interface APICollectionOffboardingDeleteOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the list operation. */ -export type SettingsListResponse = SettingsList; - /** Optional parameters. */ -export interface SettingsGetOptionalParams +export interface SqlVulnerabilityAssessmentScansGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type SettingsGetResponse = SettingUnion; +export type SqlVulnerabilityAssessmentScansGetResponse = Scan; /** Optional parameters. */ -export interface SettingsUpdateOptionalParams +export interface SqlVulnerabilityAssessmentScansListOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the update operation. */ -export type SettingsUpdateResponse = SettingUnion; +/** Contains response data for the list operation. */ +export type SqlVulnerabilityAssessmentScansListResponse = Scans; /** Optional parameters. */ -export interface SettingsListNextOptionalParams +export interface SqlVulnerabilityAssessmentScanResultsGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listNext operation. */ -export type SettingsListNextResponse = SettingsList; +/** Contains response data for the get operation. */ +export type SqlVulnerabilityAssessmentScanResultsGetResponse = ScanResult; /** Optional parameters. */ -export interface IngestionSettingsListOptionalParams +export interface SqlVulnerabilityAssessmentScanResultsListOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the list operation. */ -export type IngestionSettingsListResponse = IngestionSettingList; +export type SqlVulnerabilityAssessmentScanResultsListResponse = ScanResults; /** Optional parameters. */ -export interface IngestionSettingsGetOptionalParams - extends coreClient.OperationOptions {} +export interface SqlVulnerabilityAssessmentBaselineRulesCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** The baseline results for this rule. */ + body?: RuleResultsInput; +} -/** Contains response data for the get operation. */ -export type IngestionSettingsGetResponse = IngestionSetting; +/** Contains response data for the createOrUpdate operation. */ +export type SqlVulnerabilityAssessmentBaselineRulesCreateOrUpdateResponse = RuleResults; /** Optional parameters. */ -export interface IngestionSettingsCreateOptionalParams +export interface SqlVulnerabilityAssessmentBaselineRulesGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the create operation. */ -export type IngestionSettingsCreateResponse = IngestionSetting; +/** Contains response data for the get operation. */ +export type SqlVulnerabilityAssessmentBaselineRulesGetResponse = RuleResults; /** Optional parameters. */ -export interface IngestionSettingsDeleteOptionalParams +export interface SqlVulnerabilityAssessmentBaselineRulesDeleteOptionalParams extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface IngestionSettingsListTokensOptionalParams +export interface SqlVulnerabilityAssessmentBaselineRulesListOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listTokens operation. */ -export type IngestionSettingsListTokensResponse = IngestionSettingToken; +/** Contains response data for the list operation. */ +export type SqlVulnerabilityAssessmentBaselineRulesListResponse = RulesResults; /** Optional parameters. */ -export interface IngestionSettingsListConnectionStringsOptionalParams - extends coreClient.OperationOptions {} +export interface SqlVulnerabilityAssessmentBaselineRulesAddOptionalParams + extends coreClient.OperationOptions { + /** The baseline rules. */ + body?: RulesResultsInput; +} -/** Contains response data for the listConnectionStrings operation. */ -export type IngestionSettingsListConnectionStringsResponse = ConnectionStrings; +/** Contains response data for the add operation. */ +export type SqlVulnerabilityAssessmentBaselineRulesAddResponse = RulesResults; /** Optional parameters. */ -export interface IngestionSettingsListNextOptionalParams +export interface SecurityConnectorsListOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listNext operation. */ -export type IngestionSettingsListNextResponse = IngestionSettingList; +/** Contains response data for the list operation. */ +export type SecurityConnectorsListResponse = SecurityConnectorsList; /** Optional parameters. */ -export interface SoftwareInventoriesListByExtendedResourceOptionalParams +export interface SecurityConnectorsListByResourceGroupOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByExtendedResource operation. */ -export type SoftwareInventoriesListByExtendedResourceResponse = SoftwaresList; +/** Contains response data for the listByResourceGroup operation. */ +export type SecurityConnectorsListByResourceGroupResponse = SecurityConnectorsList; /** Optional parameters. */ -export interface SoftwareInventoriesListBySubscriptionOptionalParams +export interface SecurityConnectorsGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listBySubscription operation. */ -export type SoftwareInventoriesListBySubscriptionResponse = SoftwaresList; +/** Contains response data for the get operation. */ +export type SecurityConnectorsGetResponse = SecurityConnector; /** Optional parameters. */ -export interface SoftwareInventoriesGetOptionalParams +export interface SecurityConnectorsCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type SoftwareInventoriesGetResponse = Software; +/** Contains response data for the createOrUpdate operation. */ +export type SecurityConnectorsCreateOrUpdateResponse = SecurityConnector; /** Optional parameters. */ -export interface SoftwareInventoriesListByExtendedResourceNextOptionalParams +export interface SecurityConnectorsUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByExtendedResourceNext operation. */ -export type SoftwareInventoriesListByExtendedResourceNextResponse = SoftwaresList; +/** Contains response data for the update operation. */ +export type SecurityConnectorsUpdateResponse = SecurityConnector; /** Optional parameters. */ -export interface SoftwareInventoriesListBySubscriptionNextOptionalParams +export interface SecurityConnectorsDeleteOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listBySubscriptionNext operation. */ -export type SoftwareInventoriesListBySubscriptionNextResponse = SoftwaresList; - /** Optional parameters. */ -export interface GovernanceRulesListOptionalParams +export interface SecurityConnectorsListNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the list operation. */ -export type GovernanceRulesListResponse = GovernanceRuleList; +/** Contains response data for the listNext operation. */ +export type SecurityConnectorsListNextResponse = SecurityConnectorsList; /** Optional parameters. */ -export interface GovernanceRulesGetOptionalParams +export interface SecurityConnectorsListByResourceGroupNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type GovernanceRulesGetResponse = GovernanceRule; +/** Contains response data for the listByResourceGroupNext operation. */ +export type SecurityConnectorsListByResourceGroupNextResponse = SecurityConnectorsList; /** Optional parameters. */ -export interface GovernanceRulesCreateOrUpdateOptionalParams +export interface SecurityOperatorsListOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the createOrUpdate operation. */ -export type GovernanceRulesCreateOrUpdateResponse = GovernanceRule; - -/** Optional parameters. */ -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. */ - resumeFrom?: string; -} +/** Contains response data for the list operation. */ +export type SecurityOperatorsListResponse = SecurityOperatorList; /** Optional parameters. */ -export interface GovernanceRulesExecuteOptionalParams - extends coreClient.OperationOptions { - /** Execute governance rule over a given scope */ - executeGovernanceRuleParams?: ExecuteGovernanceRuleParams; - /** 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 SecurityOperatorsGetOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the execute operation. */ -export type GovernanceRulesExecuteResponse = GovernanceRulesExecuteHeaders; +/** Contains response data for the get operation. */ +export type SecurityOperatorsGetResponse = SecurityOperator; /** Optional parameters. */ -export interface GovernanceRulesOperationResultsOptionalParams +export interface SecurityOperatorsCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the operationResults operation. */ -export type GovernanceRulesOperationResultsResponse = OperationResultAutoGenerated; +/** Contains response data for the createOrUpdate operation. */ +export type SecurityOperatorsCreateOrUpdateResponse = SecurityOperator; /** Optional parameters. */ -export interface GovernanceRulesListNextOptionalParams +export interface SecurityOperatorsDeleteOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listNext operation. */ -export type GovernanceRulesListNextResponse = GovernanceRuleList; - /** Optional parameters. */ -export interface GovernanceAssignmentsListOptionalParams +export interface ServerVulnerabilityAssessmentsSettingsListBySubscriptionOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the list operation. */ -export type GovernanceAssignmentsListResponse = GovernanceAssignmentsList; +/** Contains response data for the listBySubscription operation. */ +export type ServerVulnerabilityAssessmentsSettingsListBySubscriptionResponse = ServerVulnerabilityAssessmentsSettingsList; /** Optional parameters. */ -export interface GovernanceAssignmentsGetOptionalParams +export interface ServerVulnerabilityAssessmentsSettingsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type GovernanceAssignmentsGetResponse = GovernanceAssignment; +export type ServerVulnerabilityAssessmentsSettingsGetResponse = ServerVulnerabilityAssessmentsSettingUnion; /** Optional parameters. */ -export interface GovernanceAssignmentsCreateOrUpdateOptionalParams +export interface ServerVulnerabilityAssessmentsSettingsCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the createOrUpdate operation. */ -export type GovernanceAssignmentsCreateOrUpdateResponse = GovernanceAssignment; +export type ServerVulnerabilityAssessmentsSettingsCreateOrUpdateResponse = ServerVulnerabilityAssessmentsSettingUnion; /** Optional parameters. */ -export interface GovernanceAssignmentsDeleteOptionalParams +export interface ServerVulnerabilityAssessmentsSettingsDeleteOptionalParams extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface GovernanceAssignmentsListNextOptionalParams +export interface ServerVulnerabilityAssessmentsSettingsListBySubscriptionNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listNext operation. */ -export type GovernanceAssignmentsListNextResponse = GovernanceAssignmentsList; +/** Contains response data for the listBySubscriptionNext operation. */ +export type ServerVulnerabilityAssessmentsSettingsListBySubscriptionNextResponse = ServerVulnerabilityAssessmentsSettingsList; /** Optional parameters. */ -export interface ApplicationsListOptionalParams +export interface HealthReportsListOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the list operation. */ -export type ApplicationsListResponse = ApplicationsList; +export type HealthReportsListResponse = HealthReportsList; /** Optional parameters. */ -export interface ApplicationsListNextOptionalParams +export interface HealthReportsGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listNext operation. */ -export type ApplicationsListNextResponse = ApplicationsList; +/** Contains response data for the get operation. */ +export type HealthReportsGetResponse = HealthReport; /** Optional parameters. */ -export interface ApplicationGetOptionalParams +export interface HealthReportsListNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type ApplicationGetResponse = Application; +/** Contains response data for the listNext operation. */ +export type HealthReportsListNextResponse = HealthReportsList; /** Optional parameters. */ -export interface ApplicationCreateOrUpdateOptionalParams +export interface DefenderForStorageGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the createOrUpdate operation. */ -export type ApplicationCreateOrUpdateResponse = Application; +/** Contains response data for the get operation. */ +export type DefenderForStorageGetResponse = DefenderForStorageSetting; /** Optional parameters. */ -export interface ApplicationDeleteOptionalParams +export interface DefenderForStorageCreateOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the create operation. */ +export type DefenderForStorageCreateResponse = DefenderForStorageSetting; + /** Optional parameters. */ -export interface SecurityConnectorApplicationsListOptionalParams +export interface AzureDevOpsOrgsListAvailableOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the list operation. */ -export type SecurityConnectorApplicationsListResponse = ApplicationsList; +/** Contains response data for the listAvailable operation. */ +export type AzureDevOpsOrgsListAvailableResponse = AzureDevOpsOrgListResponse; /** Optional parameters. */ -export interface SecurityConnectorApplicationsListNextOptionalParams +export interface AzureDevOpsOrgsListOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listNext operation. */ -export type SecurityConnectorApplicationsListNextResponse = ApplicationsList; +/** Contains response data for the list operation. */ +export type AzureDevOpsOrgsListResponse = AzureDevOpsOrgListResponse; /** Optional parameters. */ -export interface SecurityConnectorApplicationGetOptionalParams +export interface AzureDevOpsOrgsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type SecurityConnectorApplicationGetResponse = Application; +export type AzureDevOpsOrgsGetResponse = AzureDevOpsOrg; /** Optional parameters. */ -export interface SecurityConnectorApplicationCreateOrUpdateOptionalParams - 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; +} /** Contains response data for the createOrUpdate operation. */ -export type SecurityConnectorApplicationCreateOrUpdateResponse = Application; +export type AzureDevOpsOrgsCreateOrUpdateResponse = AzureDevOpsOrg; /** Optional parameters. */ -export interface SecurityConnectorApplicationDeleteOptionalParams +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 AzureDevOpsOrgsListNextOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the listNext operation. */ +export type AzureDevOpsOrgsListNextResponse = AzureDevOpsOrgListResponse; + /** Optional parameters. */ -export interface APICollectionListOptionalParams +export interface AzureDevOpsProjectsListOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the list operation. */ -export type APICollectionListResponse = ApiCollectionResponseList; +export type AzureDevOpsProjectsListResponse = AzureDevOpsProjectListResponse; /** Optional parameters. */ -export interface APICollectionGetOptionalParams +export interface AzureDevOpsProjectsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type APICollectionGetResponse = ApiCollectionResponse; +export type AzureDevOpsProjectsGetResponse = AzureDevOpsProject; /** Optional parameters. */ -export interface APICollectionListNextOptionalParams - extends coreClient.OperationOptions {} +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; +} -/** Contains response data for the listNext operation. */ -export type APICollectionListNextResponse = ApiCollectionResponseList; +/** Contains response data for the createOrUpdate operation. */ +export type AzureDevOpsProjectsCreateOrUpdateResponse = AzureDevOpsProject; /** Optional parameters. */ -export interface APICollectionOnboardingCreateOptionalParams - 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 create operation. */ -export type APICollectionOnboardingCreateResponse = ApiCollectionResponse; +/** Contains response data for the update operation. */ +export type AzureDevOpsProjectsUpdateResponse = AzureDevOpsProject; /** Optional parameters. */ -export interface APICollectionOffboardingDeleteOptionalParams +export interface AzureDevOpsProjectsListNextOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the listNext operation. */ +export type AzureDevOpsProjectsListNextResponse = AzureDevOpsProjectListResponse; + /** Optional parameters. */ -export interface HealthReportsListOptionalParams +export interface AzureDevOpsReposListOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the list operation. */ -export type HealthReportsListResponse = HealthReportsList; +export type AzureDevOpsReposListResponse = AzureDevOpsRepositoryListResponse; /** Optional parameters. */ -export interface HealthReportsListNextOptionalParams +export interface AzureDevOpsReposGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listNext operation. */ -export type HealthReportsListNextResponse = HealthReportsList; +/** Contains response data for the get operation. */ +export type AzureDevOpsReposGetResponse = AzureDevOpsRepository; /** Optional parameters. */ -export interface HealthReportGetOptionalParams - 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 HealthReportGetResponse = HealthReport; +/** Contains response data for the createOrUpdate operation. */ +export type AzureDevOpsReposCreateOrUpdateResponse = AzureDevOpsRepository; /** Optional parameters. */ -export interface SqlVulnerabilityAssessmentScansGetOptionalParams +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 AzureDevOpsReposUpdateResponse = AzureDevOpsRepository; + +/** Optional parameters. */ +export interface AzureDevOpsReposListNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type SqlVulnerabilityAssessmentScansGetResponse = Scan; +/** Contains response data for the listNext operation. */ +export type AzureDevOpsReposListNextResponse = AzureDevOpsRepositoryListResponse; /** Optional parameters. */ -export interface SqlVulnerabilityAssessmentScansListOptionalParams +export interface DevOpsConfigurationsListOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the list operation. */ -export type SqlVulnerabilityAssessmentScansListResponse = Scans; +export type DevOpsConfigurationsListResponse = DevOpsConfigurationListResponse; /** Optional parameters. */ -export interface SqlVulnerabilityAssessmentScanResultsGetOptionalParams +export interface DevOpsConfigurationsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type SqlVulnerabilityAssessmentScanResultsGetResponse = ScanResult; +export type DevOpsConfigurationsGetResponse = DevOpsConfiguration; /** Optional parameters. */ -export interface SqlVulnerabilityAssessmentScanResultsListOptionalParams - 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 list operation. */ -export type SqlVulnerabilityAssessmentScanResultsListResponse = ScanResults; +/** Contains response data for the createOrUpdate operation. */ +export type DevOpsConfigurationsCreateOrUpdateResponse = DevOpsConfiguration; /** Optional parameters. */ -export interface SqlVulnerabilityAssessmentBaselineRulesCreateOrUpdateOptionalParams +export interface DevOpsConfigurationsUpdateOptionalParams extends coreClient.OperationOptions { - /** The baseline results for this rule. */ - body?: RuleResultsInput; + /** 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 SqlVulnerabilityAssessmentBaselineRulesCreateOrUpdateResponse = RuleResults; +/** Contains response data for the update operation. */ +export type DevOpsConfigurationsUpdateResponse = DevOpsConfiguration; /** Optional parameters. */ -export interface SqlVulnerabilityAssessmentBaselineRulesGetOptionalParams +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; +} + +/** Optional parameters. */ +export interface DevOpsConfigurationsListNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type SqlVulnerabilityAssessmentBaselineRulesGetResponse = RuleResults; +/** Contains response data for the listNext operation. */ +export type DevOpsConfigurationsListNextResponse = DevOpsConfigurationListResponse; /** Optional parameters. */ -export interface SqlVulnerabilityAssessmentBaselineRulesDeleteOptionalParams +export interface GitHubOwnersListAvailableOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the listAvailable operation. */ +export type GitHubOwnersListAvailableResponse = GitHubOwnerListResponse; + /** Optional parameters. */ -export interface SqlVulnerabilityAssessmentBaselineRulesListOptionalParams +export interface GitHubOwnersListOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the list operation. */ -export type SqlVulnerabilityAssessmentBaselineRulesListResponse = RulesResults; +export type GitHubOwnersListResponse = GitHubOwnerListResponse; /** Optional parameters. */ -export interface SqlVulnerabilityAssessmentBaselineRulesAddOptionalParams - extends coreClient.OperationOptions { - /** The baseline rules. */ - body?: RulesResultsInput; -} +export interface GitHubOwnersGetOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the add operation. */ -export type SqlVulnerabilityAssessmentBaselineRulesAddResponse = RulesResults; +/** Contains response data for the get operation. */ +export type GitHubOwnersGetResponse = GitHubOwner; /** Optional parameters. */ -export interface SecurityConnectorsListOptionalParams +export interface GitHubOwnersListNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the list operation. */ -export type SecurityConnectorsListResponse = SecurityConnectorsList; +/** Contains response data for the listNext operation. */ +export type GitHubOwnersListNextResponse = GitHubOwnerListResponse; /** Optional parameters. */ -export interface SecurityConnectorsListByResourceGroupOptionalParams +export interface GitHubReposListOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByResourceGroup operation. */ -export type SecurityConnectorsListByResourceGroupResponse = SecurityConnectorsList; +/** Contains response data for the list operation. */ +export type GitHubReposListResponse = GitHubRepositoryListResponse; /** Optional parameters. */ -export interface SecurityConnectorsGetOptionalParams +export interface GitHubReposGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type SecurityConnectorsGetResponse = SecurityConnector; +export type GitHubReposGetResponse = GitHubRepository; /** Optional parameters. */ -export interface SecurityConnectorsCreateOrUpdateOptionalParams +export interface GitHubReposListNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the createOrUpdate operation. */ -export type SecurityConnectorsCreateOrUpdateResponse = SecurityConnector; +/** Contains response data for the listNext operation. */ +export type GitHubReposListNextResponse = GitHubRepositoryListResponse; /** Optional parameters. */ -export interface SecurityConnectorsUpdateOptionalParams +export interface GitLabGroupsListAvailableOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the update operation. */ -export type SecurityConnectorsUpdateResponse = SecurityConnector; +/** Contains response data for the listAvailable operation. */ +export type GitLabGroupsListAvailableResponse = GitLabGroupListResponse; /** Optional parameters. */ -export interface SecurityConnectorsDeleteOptionalParams +export interface GitLabGroupsListOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the list operation. */ +export type GitLabGroupsListResponse = GitLabGroupListResponse; + /** Optional parameters. */ -export interface SecurityConnectorsListNextOptionalParams +export interface GitLabGroupsGetOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type GitLabGroupsGetResponse = GitLabGroup; + +/** Optional parameters. */ +export interface GitLabGroupsListNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ -export type SecurityConnectorsListNextResponse = SecurityConnectorsList; +export type GitLabGroupsListNextResponse = GitLabGroupListResponse; /** Optional parameters. */ -export interface SecurityConnectorsListByResourceGroupNextOptionalParams +export interface GitLabSubgroupsListOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByResourceGroupNext operation. */ -export type SecurityConnectorsListByResourceGroupNextResponse = SecurityConnectorsList; +/** Contains response data for the list operation. */ +export type GitLabSubgroupsListResponse = GitLabGroupListResponse; /** Optional parameters. */ -export interface SecurityOperatorsListOptionalParams +export interface GitLabProjectsListOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the list operation. */ -export type SecurityOperatorsListResponse = SecurityOperatorList; +export type GitLabProjectsListResponse = GitLabProjectListResponse; /** Optional parameters. */ -export interface SecurityOperatorsGetOptionalParams +export interface GitLabProjectsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type SecurityOperatorsGetResponse = SecurityOperator; +export type GitLabProjectsGetResponse = GitLabProject; /** Optional parameters. */ -export interface SecurityOperatorsCreateOrUpdateOptionalParams +export interface GitLabProjectsListNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the createOrUpdate operation. */ -export type SecurityOperatorsCreateOrUpdateResponse = SecurityOperator; +/** Contains response data for the listNext operation. */ +export type GitLabProjectsListNextResponse = GitLabProjectListResponse; /** Optional parameters. */ -export interface SecurityOperatorsDeleteOptionalParams +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 { diff --git a/sdk/security/arm-security/src/models/mappers.ts b/sdk/security/arm-security/src/models/mappers.ts index 99464b1fe025..b653a2e7a060 100644 --- a/sdk/security/arm-security/src/models/mappers.ts +++ b/sdk/security/arm-security/src/models/mappers.ts @@ -3609,6 +3609,268 @@ export const AuthenticationDetailsProperties: coreClient.CompositeMapper = { } }; +export const UpdateSensitivitySettingsRequest: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "UpdateSensitivitySettingsRequest", + modelProperties: { + sensitiveInfoTypesIds: { + serializedName: "sensitiveInfoTypesIds", + required: true, + type: { + name: "Sequence", + element: { + type: { + name: "Uuid" + } + } + } + }, + sensitivityThresholdLabelOrder: { + serializedName: "sensitivityThresholdLabelOrder", + type: { + name: "Number" + } + }, + sensitivityThresholdLabelId: { + serializedName: "sensitivityThresholdLabelId", + type: { + name: "Uuid" + } + } + } + } +}; + +export const GetSensitivitySettingsResponse: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "GetSensitivitySettingsResponse", + modelProperties: { + id: { + serializedName: "id", + readOnly: true, + type: { + name: "String" + } + }, + type: { + serializedName: "type", + readOnly: true, + type: { + name: "String" + } + }, + name: { + serializedName: "name", + readOnly: true, + type: { + name: "String" + } + }, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "GetSensitivitySettingsResponseProperties" + } + } + } + } +}; + +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" + } + }, + sensitivityThresholdLabelId: { + serializedName: "sensitivityThresholdLabelId", + type: { + name: "Uuid" + } + }, + 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" + } + }, + labels: { + serializedName: "labels", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Label" + } + } + } + }, + customInfoTypes: { + serializedName: "customInfoTypes", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "InfoType" + } + } + } + }, + builtInInfoTypes: { + serializedName: "builtInInfoTypes", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "BuiltInInfoType" + } + } + } + } + } + } +}; + +export const Label: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "Label", + modelProperties: { + name: { + serializedName: "name", + type: { + name: "String" + } + }, + id: { + serializedName: "id", + type: { + name: "Uuid" + } + }, + order: { + serializedName: "order", + type: { + name: "Number" + } + } + } + } +}; + +export const InfoType: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "InfoType", + modelProperties: { + name: { + serializedName: "name", + type: { + name: "String" + } + }, + id: { + serializedName: "id", + type: { + name: "Uuid" + } + }, + description: { + serializedName: "description", + type: { + name: "String" + } + } + } + } +}; + +export const BuiltInInfoType: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "BuiltInInfoType", + modelProperties: { + name: { + serializedName: "name", + type: { + name: "String" + } + }, + id: { + serializedName: "id", + type: { + name: "Uuid" + } + }, + type: { + serializedName: "type", + type: { + name: "String" + } + } + } + } +}; + +export const GetSensitivitySettingsListResponse: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "GetSensitivitySettingsListResponse", + modelProperties: { + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "GetSensitivitySettingsResponse" + } + } + } + } + } + } +}; + export const AlertList: coreClient.CompositeMapper = { type: { name: "Composite", @@ -4249,48 +4511,887 @@ export const ErrorDetail: coreClient.CompositeMapper = { } }; -export const HealthReportsList: coreClient.CompositeMapper = { +export const ScanProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "HealthReportsList", + className: "ScanProperties", modelProperties: { - value: { - serializedName: "value", - readOnly: true, + triggerType: { + serializedName: "triggerType", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "HealthReport" - } - } + name: "String" } }, - nextLink: { - serializedName: "nextLink", - readOnly: true, + state: { + serializedName: "state", type: { name: "String" } - } - } - } -}; - -export const ResourceDetailsAutoGenerated: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ResourceDetailsAutoGenerated", - modelProperties: { - source: { - serializedName: "source", + }, + server: { + serializedName: "server", type: { name: "String" } }, - id: { - serializedName: "id", + 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" + } + }, + lowSeverityFailedRulesCount: { + serializedName: "lowSeverityFailedRulesCount", + type: { + name: "Number" + } + }, + totalPassedRulesCount: { + serializedName: "totalPassedRulesCount", + type: { + name: "Number" + } + }, + totalFailedRulesCount: { + serializedName: "totalFailedRulesCount", + type: { + name: "Number" + } + }, + totalRulesCount: { + serializedName: "totalRulesCount", + type: { + name: "Number" + } + }, + isBaselineApplied: { + serializedName: "isBaselineApplied", + type: { + name: "Boolean" + } + }, + lastScanTime: { + serializedName: "lastScanTime", + type: { + name: "DateTime" + } + } + } + } +}; + +export const Scans: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "Scans", + modelProperties: { + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Scan" + } + } + } + } + } + } +}; + +export const ScanResultProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ScanResultProperties", + modelProperties: { + ruleId: { + serializedName: "ruleId", + type: { + name: "String" + } + }, + status: { + serializedName: "status", + type: { + name: "String" + } + }, + isTrimmed: { + serializedName: "isTrimmed", + type: { + name: "Boolean" + } + }, + queryResults: { + serializedName: "queryResults", + type: { + name: "Sequence", + element: { + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } + } + }, + remediation: { + serializedName: "remediation", + type: { + name: "Composite", + className: "Remediation" + } + }, + baselineAdjustedResult: { + serializedName: "baselineAdjustedResult", + type: { + name: "Composite", + className: "BaselineAdjustedResult" + } + }, + ruleMetadata: { + serializedName: "ruleMetadata", + type: { + name: "Composite", + className: "VaRule" + } + } + } + } +}; + +export const Remediation: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "Remediation", + modelProperties: { + description: { + serializedName: "description", + type: { + name: "String" + } + }, + scripts: { + serializedName: "scripts", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + }, + automated: { + serializedName: "automated", + type: { + name: "Boolean" + } + }, + portalLink: { + serializedName: "portalLink", + type: { + name: "String" + } + } + } + } +}; + +export const BaselineAdjustedResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "BaselineAdjustedResult", + modelProperties: { + baseline: { + serializedName: "baseline", + type: { + name: "Composite", + className: "Baseline" + } + }, + status: { + serializedName: "status", + type: { + name: "String" + } + }, + resultsNotInBaseline: { + serializedName: "resultsNotInBaseline", + type: { + name: "Sequence", + element: { + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } + } + }, + resultsOnlyInBaseline: { + serializedName: "resultsOnlyInBaseline", + type: { + name: "Sequence", + element: { + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } + } + } + } + } +}; + +export const Baseline: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "Baseline", + modelProperties: { + expectedResults: { + serializedName: "expectedResults", + type: { + name: "Sequence", + element: { + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } + } + }, + updatedTime: { + serializedName: "updatedTime", + type: { + name: "DateTime" + } + } + } + } +}; + +export const VaRule: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "VaRule", + modelProperties: { + ruleId: { + serializedName: "ruleId", + type: { + name: "String" + } + }, + severity: { + serializedName: "severity", + type: { + name: "String" + } + }, + category: { + serializedName: "category", + type: { + name: "String" + } + }, + ruleType: { + serializedName: "ruleType", + type: { + name: "String" + } + }, + title: { + serializedName: "title", + type: { + name: "String" + } + }, + description: { + serializedName: "description", + type: { + name: "String" + } + }, + rationale: { + serializedName: "rationale", + type: { + name: "String" + } + }, + queryCheck: { + serializedName: "queryCheck", + type: { + name: "Composite", + className: "QueryCheck" + } + }, + benchmarkReferences: { + serializedName: "benchmarkReferences", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "BenchmarkReference" + } + } + } + } + } + } +}; + +export const QueryCheck: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "QueryCheck", + modelProperties: { + query: { + serializedName: "query", + type: { + name: "String" + } + }, + expectedResult: { + serializedName: "expectedResult", + type: { + name: "Sequence", + element: { + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } + } + }, + columnNames: { + serializedName: "columnNames", + type: { + name: "Sequence", + element: { + type: { + name: "String" + } + } + } + } + } + } +}; + +export const BenchmarkReference: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "BenchmarkReference", + modelProperties: { + benchmark: { + serializedName: "benchmark", + type: { + name: "String" + } + }, + reference: { + serializedName: "reference", + type: { + name: "String" + } + } + } + } +}; + +export const ScanResults: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ScanResults", + modelProperties: { + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ScanResult" + } + } + } + } + } + } +}; + +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 SecurityConnectorsList: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SecurityConnectorsList", + modelProperties: { + value: { + serializedName: "value", + required: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SecurityConnector" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const CloudOffering: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "CloudOffering", + uberParent: "CloudOffering", + polymorphicDiscriminator: { + serializedName: "offeringType", + clientName: "offeringType" + }, + modelProperties: { + offeringType: { + serializedName: "offeringType", + required: true, + type: { + name: "String" + } + }, + description: { + serializedName: "description", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const EnvironmentData: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "EnvironmentData", + uberParent: "EnvironmentData", + polymorphicDiscriminator: { + serializedName: "environmentType", + clientName: "environmentType" + }, + modelProperties: { + environmentType: { + serializedName: "environmentType", + required: true, + 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 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 ResourceAutoGenerated: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ResourceAutoGenerated", + modelProperties: { + id: { + serializedName: "id", + readOnly: true, + type: { + 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 ErrorResponseAutoGenerated: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ErrorResponseAutoGenerated", + modelProperties: { + error: { + serializedName: "error", + type: { + name: "Composite", + className: "ErrorDetailAutoGenerated" + } + } + } + } +}; + +export const ErrorDetailAutoGenerated: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ErrorDetailAutoGenerated", + modelProperties: { + code: { + serializedName: "code", + readOnly: true, + type: { + name: "String" + } + }, + message: { + serializedName: "message", + readOnly: true, + type: { + name: "String" + } + }, + target: { + serializedName: "target", + readOnly: true, + type: { + name: "String" + } + }, + details: { + serializedName: "details", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ErrorDetailAutoGenerated" + } + } + } + }, + additionalInfo: { + serializedName: "additionalInfo", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ErrorAdditionalInfo" + } + } + } + } + } + } +}; + +export const HealthReportsList: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "HealthReportsList", + modelProperties: { + value: { + serializedName: "value", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "HealthReport" + } + } + } + }, + nextLink: { + serializedName: "nextLink", + readOnly: true, + type: { + name: "String" + } + } + } + } +}; + +export const ResourceDetailsAutoGenerated: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ResourceDetailsAutoGenerated", + modelProperties: { + source: { + serializedName: "source", + type: { + name: "String" + } + }, + id: { + serializedName: "id", readOnly: true, type: { name: "String" @@ -4384,6 +5485,20 @@ export const StatusAutoGenerated: coreClient.CompositeMapper = { name: "String" } }, + reason: { + serializedName: "reason", + readOnly: true, + type: { + name: "String" + } + }, + lastScannedDate: { + serializedName: "lastScannedDate", + readOnly: true, + type: { + name: "DateTime" + } + }, statusChangeDate: { serializedName: "statusChangeDate", readOnly: true, @@ -4460,292 +5575,304 @@ export const Issue: coreClient.CompositeMapper = { } }; -export const ErrorResponseAutoGenerated: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ErrorResponseAutoGenerated", - modelProperties: { - error: { - serializedName: "error", - type: { - name: "Composite", - className: "ErrorDetailAutoGenerated" - } - } - } - } -}; - -export const ErrorDetailAutoGenerated: coreClient.CompositeMapper = { +export const OperationStatusAutoGenerated: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ErrorDetailAutoGenerated", + className: "OperationStatusAutoGenerated", modelProperties: { code: { serializedName: "code", - readOnly: true, type: { name: "String" } }, message: { serializedName: "message", - readOnly: true, - type: { - name: "String" - } - }, - target: { - serializedName: "target", - readOnly: true, type: { name: "String" } - }, - details: { - serializedName: "details", - readOnly: true, + } + } + } +}; + +export const AzureDevOpsOrgListResponse: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AzureDevOpsOrgListResponse", + modelProperties: { + value: { + serializedName: "value", type: { name: "Sequence", element: { type: { name: "Composite", - className: "ErrorDetailAutoGenerated" + className: "AzureDevOpsOrg" } } } }, - additionalInfo: { - serializedName: "additionalInfo", - readOnly: true, + nextLink: { + serializedName: "nextLink", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ErrorAdditionalInfo" - } - } + name: "String" } } } } }; -export const ScanProperties: coreClient.CompositeMapper = { +export const AzureDevOpsOrgProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ScanProperties", + className: "AzureDevOpsOrgProperties", modelProperties: { - triggerType: { - serializedName: "triggerType", + provisioningStatusMessage: { + serializedName: "provisioningStatusMessage", + readOnly: true, type: { name: "String" } }, - state: { - serializedName: "state", + provisioningStatusUpdateTimeUtc: { + serializedName: "provisioningStatusUpdateTimeUtc", + readOnly: true, type: { - name: "String" + name: "DateTime" } }, - server: { - serializedName: "server", + provisioningState: { + serializedName: "provisioningState", type: { name: "String" } }, - database: { - serializedName: "database", + onboardingState: { + serializedName: "onboardingState", type: { name: "String" } }, - sqlVersion: { - serializedName: "sqlVersion", + actionableRemediation: { + serializedName: "actionableRemediation", + type: { + name: "Composite", + className: "ActionableRemediation" + } + } + } + } +}; + +export const ActionableRemediation: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ActionableRemediation", + modelProperties: { + state: { + serializedName: "state", type: { name: "String" } }, - startTime: { - serializedName: "startTime", + categoryConfigurations: { + serializedName: "categoryConfigurations", type: { - name: "DateTime" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "CategoryConfiguration" + } + } } }, - endTime: { - serializedName: "endTime", + branchConfiguration: { + serializedName: "branchConfiguration", type: { - name: "DateTime" + name: "Composite", + className: "TargetBranchConfiguration" } }, - highSeverityFailedRulesCount: { - serializedName: "highSeverityFailedRulesCount", + inheritFromParentState: { + serializedName: "inheritFromParentState", type: { - name: "Number" + name: "String" } - }, - mediumSeverityFailedRulesCount: { - serializedName: "mediumSeverityFailedRulesCount", + } + } + } +}; + +export const CategoryConfiguration: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "CategoryConfiguration", + modelProperties: { + minimumSeverityLevel: { + serializedName: "minimumSeverityLevel", type: { - name: "Number" + name: "String" } }, - lowSeverityFailedRulesCount: { - serializedName: "lowSeverityFailedRulesCount", + category: { + serializedName: "category", type: { - name: "Number" + name: "String" } - }, - totalPassedRulesCount: { - serializedName: "totalPassedRulesCount", + } + } + } +}; + +export const TargetBranchConfiguration: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "TargetBranchConfiguration", + modelProperties: { + branchNames: { + serializedName: "branchNames", type: { - name: "Number" + name: "Sequence", + element: { + type: { + name: "String" + } + } } }, - totalFailedRulesCount: { - serializedName: "totalFailedRulesCount", + annotateDefaultBranch: { + serializedName: "annotateDefaultBranch", type: { - name: "Number" + name: "String" } - }, - totalRulesCount: { - serializedName: "totalRulesCount", + } + } + } +}; + +export const ResourceAutoGenerated2: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ResourceAutoGenerated2", + modelProperties: { + id: { + serializedName: "id", + readOnly: true, type: { - name: "Number" + name: "String" } }, - isBaselineApplied: { - serializedName: "isBaselineApplied", + name: { + serializedName: "name", + readOnly: true, type: { - name: "Boolean" + name: "String" } }, - lastScanTime: { - serializedName: "lastScanTime", + type: { + serializedName: "type", + readOnly: true, type: { - name: "DateTime" + name: "String" } } } } }; -export const Scans: coreClient.CompositeMapper = { +export const ErrorResponseAutoGenerated2: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Scans", + className: "ErrorResponseAutoGenerated2", modelProperties: { - value: { - serializedName: "value", + error: { + serializedName: "error", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "Scan" - } - } + name: "Composite", + className: "ErrorDetailAutoGenerated2" } } } } }; -export const ScanResultProperties: coreClient.CompositeMapper = { +export const ErrorDetailAutoGenerated2: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ScanResultProperties", + className: "ErrorDetailAutoGenerated2", modelProperties: { - ruleId: { - serializedName: "ruleId", + code: { + serializedName: "code", + readOnly: true, type: { name: "String" } }, - status: { - serializedName: "status", + message: { + serializedName: "message", + readOnly: true, type: { name: "String" } }, - isTrimmed: { - serializedName: "isTrimmed", + target: { + serializedName: "target", + readOnly: true, type: { - name: "Boolean" + name: "String" } }, - queryResults: { - serializedName: "queryResults", + details: { + serializedName: "details", + readOnly: true, type: { name: "Sequence", element: { type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "Composite", + className: "ErrorDetailAutoGenerated2" } } } }, - remediation: { - serializedName: "remediation", - type: { - name: "Composite", - className: "Remediation" - } - }, - baselineAdjustedResult: { - serializedName: "baselineAdjustedResult", - type: { - name: "Composite", - className: "BaselineAdjustedResult" - } - }, - ruleMetadata: { - serializedName: "ruleMetadata", + additionalInfo: { + serializedName: "additionalInfo", + readOnly: true, type: { - name: "Composite", - className: "VaRule" + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ErrorAdditionalInfo" + } + } } } } } }; -export const Remediation: coreClient.CompositeMapper = { +export const AzureDevOpsProjectListResponse: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Remediation", + className: "AzureDevOpsProjectListResponse", modelProperties: { - description: { - serializedName: "description", - type: { - name: "String" - } - }, - scripts: { - serializedName: "scripts", + value: { + serializedName: "value", type: { name: "Sequence", element: { type: { - name: "String" + name: "Composite", + className: "AzureDevOpsProject" } } } }, - automated: { - serializedName: "automated", - type: { - name: "Boolean" - } - }, - portalLink: { - serializedName: "portalLink", + nextLink: { + serializedName: "nextLink", type: { name: "String" } @@ -4754,190 +5881,230 @@ export const Remediation: coreClient.CompositeMapper = { } }; -export const BaselineAdjustedResult: coreClient.CompositeMapper = { +export const AzureDevOpsProjectProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "BaselineAdjustedResult", + className: "AzureDevOpsProjectProperties", modelProperties: { - baseline: { - serializedName: "baseline", + provisioningStatusMessage: { + serializedName: "provisioningStatusMessage", + readOnly: true, type: { - name: "Composite", - className: "Baseline" + name: "String" } }, - status: { - serializedName: "status", + provisioningStatusUpdateTimeUtc: { + serializedName: "provisioningStatusUpdateTimeUtc", + readOnly: true, + type: { + name: "DateTime" + } + }, + provisioningState: { + serializedName: "provisioningState", type: { name: "String" } }, - resultsNotInBaseline: { - serializedName: "resultsNotInBaseline", + parentOrgName: { + serializedName: "parentOrgName", type: { - name: "Sequence", - element: { - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - } + name: "String" } }, - resultsOnlyInBaseline: { - serializedName: "resultsOnlyInBaseline", + projectId: { + serializedName: "projectId", + readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - } + name: "String" + } + }, + onboardingState: { + serializedName: "onboardingState", + type: { + name: "String" + } + }, + actionableRemediation: { + serializedName: "actionableRemediation", + type: { + name: "Composite", + className: "ActionableRemediation" } } } } }; -export const Baseline: coreClient.CompositeMapper = { +export const AzureDevOpsRepositoryListResponse: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Baseline", + className: "AzureDevOpsRepositoryListResponse", modelProperties: { - expectedResults: { - serializedName: "expectedResults", + value: { + serializedName: "value", type: { name: "Sequence", element: { type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } + name: "Composite", + className: "AzureDevOpsRepository" } } } }, - updatedTime: { - serializedName: "updatedTime", + nextLink: { + serializedName: "nextLink", type: { - name: "DateTime" + name: "String" } } } } }; -export const VaRule: coreClient.CompositeMapper = { +export const AzureDevOpsRepositoryProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VaRule", + className: "AzureDevOpsRepositoryProperties", modelProperties: { - ruleId: { - serializedName: "ruleId", + provisioningStatusMessage: { + serializedName: "provisioningStatusMessage", + readOnly: true, type: { name: "String" } }, - severity: { - serializedName: "severity", + provisioningStatusUpdateTimeUtc: { + serializedName: "provisioningStatusUpdateTimeUtc", + readOnly: true, + type: { + name: "DateTime" + } + }, + provisioningState: { + serializedName: "provisioningState", type: { name: "String" } }, - category: { - serializedName: "category", + parentOrgName: { + serializedName: "parentOrgName", type: { name: "String" } }, - ruleType: { - serializedName: "ruleType", + parentProjectName: { + serializedName: "parentProjectName", type: { name: "String" } }, - title: { - serializedName: "title", + repoId: { + serializedName: "repoId", + readOnly: true, type: { name: "String" } }, - description: { - serializedName: "description", + repoUrl: { + serializedName: "repoUrl", + readOnly: true, type: { name: "String" } }, - rationale: { - serializedName: "rationale", + visibility: { + serializedName: "visibility", + readOnly: true, type: { name: "String" } }, - queryCheck: { - serializedName: "queryCheck", + onboardingState: { + serializedName: "onboardingState", type: { - name: "Composite", - className: "QueryCheck" + name: "String" } }, - benchmarkReferences: { - serializedName: "benchmarkReferences", + 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: "BenchmarkReference" + className: "DevOpsConfiguration" } } } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } } } } }; -export const QueryCheck: coreClient.CompositeMapper = { +export const DevOpsConfigurationProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "QueryCheck", + className: "DevOpsConfigurationProperties", modelProperties: { - query: { - serializedName: "query", + provisioningStatusMessage: { + serializedName: "provisioningStatusMessage", + readOnly: true, type: { name: "String" } }, - expectedResult: { - serializedName: "expectedResult", + provisioningStatusUpdateTimeUtc: { + serializedName: "provisioningStatusUpdateTimeUtc", + readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - } + name: "DateTime" + } + }, + provisioningState: { + serializedName: "provisioningState", + type: { + name: "String" } }, - columnNames: { - serializedName: "columnNames", + authorization: { + serializedName: "authorization", + type: { + name: "Composite", + className: "Authorization" + } + }, + autoDiscovery: { + serializedName: "autoDiscovery", + type: { + name: "String" + } + }, + topLevelInventoryList: { + serializedName: "topLevelInventoryList", type: { name: "Sequence", element: { @@ -4951,19 +6118,13 @@ export const QueryCheck: coreClient.CompositeMapper = { } }; -export const BenchmarkReference: coreClient.CompositeMapper = { +export const Authorization: coreClient.CompositeMapper = { type: { name: "Composite", - className: "BenchmarkReference", + className: "Authorization", modelProperties: { - benchmark: { - serializedName: "benchmark", - type: { - name: "String" - } - }, - reference: { - serializedName: "reference", + code: { + serializedName: "code", type: { name: "String" } @@ -4972,10 +6133,10 @@ export const BenchmarkReference: coreClient.CompositeMapper = { } }; -export const ScanResults: coreClient.CompositeMapper = { +export const GitHubOwnerListResponse: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ScanResults", + className: "GitHubOwnerListResponse", modelProperties: { value: { serializedName: "value", @@ -4984,75 +6145,74 @@ export const ScanResults: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ScanResult" + className: "GitHubOwner" } } } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } } } } }; -export const RuleResultsInput: coreClient.CompositeMapper = { +export const GitHubOwnerProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RuleResultsInput", + className: "GitHubOwnerProperties", modelProperties: { - latestScan: { - serializedName: "latestScan", + provisioningStatusMessage: { + serializedName: "provisioningStatusMessage", + readOnly: true, type: { - name: "Boolean" + name: "String" } }, - results: { - serializedName: "results", + provisioningStatusUpdateTimeUtc: { + serializedName: "provisioningStatusUpdateTimeUtc", + readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - } + name: "DateTime" } - } - } - } -}; - -export const RuleResultsProperties: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "RuleResultsProperties", - modelProperties: { - results: { - serializedName: "results", + }, + provisioningState: { + serializedName: "provisioningState", type: { - name: "Sequence", - element: { - type: { - name: "Sequence", - element: { - type: { - name: "String" - } - } - } - } + 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 RulesResults: coreClient.CompositeMapper = { +export const GitHubRepositoryListResponse: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RulesResults", + className: "GitHubRepositoryListResponse", modelProperties: { value: { serializedName: "value", @@ -5061,68 +6221,109 @@ export const RulesResults: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "RuleResults" + className: "GitHubRepository" } } } + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String" + } } } } }; -export const RulesResultsInput: coreClient.CompositeMapper = { +export const GitHubRepositoryProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RulesResultsInput", + className: "GitHubRepositoryProperties", modelProperties: { - latestScan: { - serializedName: "latestScan", + provisioningStatusMessage: { + serializedName: "provisioningStatusMessage", + readOnly: true, type: { - name: "Boolean" + name: "String" } }, - results: { - serializedName: "results", + provisioningStatusUpdateTimeUtc: { + serializedName: "provisioningStatusUpdateTimeUtc", + readOnly: true, type: { - name: "Dictionary", - value: { - type: { - name: "Sequence", - element: { - type: { - name: "Sequence", - element: { type: { name: "String" } } - } - } - } - } + name: "DateTime" + } + }, + provisioningState: { + serializedName: "provisioningState", + 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 SecurityConnectorsList: coreClient.CompositeMapper = { +export const GitLabGroupListResponse: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SecurityConnectorsList", + className: "GitLabGroupListResponse", modelProperties: { value: { serializedName: "value", - required: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "SecurityConnector" + className: "GitLabGroup" } } } }, nextLink: { serializedName: "nextLink", - readOnly: true, type: { name: "String" } @@ -5131,47 +6332,81 @@ export const SecurityConnectorsList: coreClient.CompositeMapper = { } }; -export const CloudOffering: coreClient.CompositeMapper = { +export const GitLabGroupProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CloudOffering", - uberParent: "CloudOffering", - polymorphicDiscriminator: { - serializedName: "offeringType", - clientName: "offeringType" - }, + className: "GitLabGroupProperties", modelProperties: { - offeringType: { - serializedName: "offeringType", - required: true, + provisioningStatusMessage: { + serializedName: "provisioningStatusMessage", + readOnly: true, type: { name: "String" } }, - description: { - serializedName: "description", + provisioningStatusUpdateTimeUtc: { + serializedName: "provisioningStatusUpdateTimeUtc", + readOnly: true, + type: { + name: "DateTime" + } + }, + provisioningState: { + serializedName: "provisioningState", + 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 EnvironmentData: coreClient.CompositeMapper = { +export const GitLabProjectListResponse: coreClient.CompositeMapper = { type: { name: "Composite", - className: "EnvironmentData", - uberParent: "EnvironmentData", - polymorphicDiscriminator: { - serializedName: "environmentType", - clientName: "environmentType" - }, + className: "GitLabProjectListResponse", modelProperties: { - environmentType: { - serializedName: "environmentType", - required: true, + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "GitLabProject" + } + } + } + }, + nextLink: { + serializedName: "nextLink", type: { name: "String" } @@ -5180,54 +6415,133 @@ export const EnvironmentData: coreClient.CompositeMapper = { } }; -export const SecurityOperatorList: coreClient.CompositeMapper = { +export const GitLabProjectProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SecurityOperatorList", + className: "GitLabProjectProperties", modelProperties: { - value: { - serializedName: "value", - required: true, + provisioningStatusMessage: { + serializedName: "provisioningStatusMessage", + readOnly: true, + type: { + name: "String" + } + }, + provisioningStatusUpdateTimeUtc: { + serializedName: "provisioningStatusUpdateTimeUtc", + readOnly: true, + type: { + name: "DateTime" + } + }, + provisioningState: { + serializedName: "provisioningState", + 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: "Sequence", - element: { - type: { - name: "Composite", - className: "SecurityOperator" - } - } + name: "String" + } + }, + url: { + serializedName: "url", + readOnly: true, + type: { + name: "String" + } + }, + onboardingState: { + serializedName: "onboardingState", + type: { + name: "String" } } } } }; -export const Identity: coreClient.CompositeMapper = { +export const OperationStatusResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Identity", + className: "OperationStatusResult", modelProperties: { - principalId: { - serializedName: "principalId", - readOnly: true, + id: { + serializedName: "id", type: { name: "String" } }, - tenantId: { - serializedName: "tenantId", - readOnly: true, + name: { + serializedName: "name", type: { name: "String" } }, - type: { - defaultValue: "SystemAssigned", - isConstant: true, - serializedName: "type", + 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" + } } } } @@ -6338,6 +7652,124 @@ export const DefenderCspmAwsOfferingDatabasesDspm: 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 MdeOnboardingData: coreClient.CompositeMapper = { type: { name: "Composite", @@ -8991,6 +10423,74 @@ export const ApiCollectionResponse: coreClient.CompositeMapper = { } }; +export const Scan: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "Scan", + modelProperties: { + ...Resource.type.modelProperties, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "ScanProperties" + } + } + } + } +}; + +export const ScanResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ScanResult", + modelProperties: { + ...Resource.type.modelProperties, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "ScanResultProperties" + } + } + } + } +}; + +export const RuleResults: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "RuleResults", + modelProperties: { + ...Resource.type.modelProperties, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "RuleResultsProperties" + } + } + } + } +}; + +export const SecurityOperator: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SecurityOperator", + modelProperties: { + ...Resource.type.modelProperties, + identity: { + serializedName: "identity", + type: { + name: "Composite", + className: "Identity" + } + } + } + } +}; + export const HealthReport: coreClient.CompositeMapper = { type: { name: "Composite", @@ -9036,84 +10536,89 @@ export const HealthReport: coreClient.CompositeMapper = { } } }, - issues: { - serializedName: "properties.issues", + affectedDefendersSubPlans: { + serializedName: "properties.affectedDefendersSubPlans", type: { name: "Sequence", element: { type: { - name: "Composite", - className: "Issue" + name: "String" } } } - } - } - } -}; - -export const Scan: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "Scan", - modelProperties: { - ...Resource.type.modelProperties, - properties: { - serializedName: "properties", + }, + reportAdditionalData: { + serializedName: "properties.reportAdditionalData", + readOnly: true, type: { - name: "Composite", - className: "ScanProperties" + name: "Dictionary", + value: { type: { name: "String" } } + } + }, + issues: { + serializedName: "properties.issues", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Issue" + } + } } } } } }; -export const ScanResult: coreClient.CompositeMapper = { +export const DefenderForStorageSetting: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ScanResult", + className: "DefenderForStorageSetting", modelProperties: { ...Resource.type.modelProperties, - properties: { - serializedName: "properties", + isEnabledPropertiesIsEnabled: { + serializedName: "properties.isEnabled", type: { - name: "Composite", - className: "ScanResultProperties" + name: "Boolean" } - } - } - } -}; - -export const RuleResults: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "RuleResults", - modelProperties: { - ...Resource.type.modelProperties, - properties: { - serializedName: "properties", + }, + overrideSubscriptionLevelSettings: { + serializedName: "properties.overrideSubscriptionLevelSettings", + type: { + name: "Boolean" + } + }, + isEnabledPropertiesSensitiveDataDiscoveryIsEnabled: { + serializedName: "properties.sensitiveDataDiscovery.isEnabled", + type: { + name: "Boolean" + } + }, + operationStatusPropertiesSensitiveDataDiscoveryOperationStatus: { + serializedName: "properties.sensitiveDataDiscovery.operationStatus", type: { name: "Composite", - className: "RuleResultsProperties" + className: "OperationStatusAutoGenerated" } - } - } - } -}; - -export const SecurityOperator: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "SecurityOperator", - modelProperties: { - ...Resource.type.modelProperties, - identity: { - serializedName: "identity", + }, + operationStatusPropertiesMalwareScanningOperationStatus: { + serializedName: "properties.malwareScanning.operationStatus", type: { name: "Composite", - className: "Identity" + className: "OperationStatusAutoGenerated" + } + }, + isEnabledPropertiesMalwareScanningOnUploadIsEnabled: { + serializedName: "properties.malwareScanning.onUpload.isEnabled", + type: { + name: "Boolean" + } + }, + capGBPerMonth: { + serializedName: "properties.malwareScanning.onUpload.capGBPerMonth", + type: { + name: "Number" } } } @@ -10567,6 +12072,39 @@ export const GitlabScopeEnvironmentData: coreClient.CompositeMapper = { } }; +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", + required: true, + type: { + name: "String" + } + } + } + } +}; + +export const ProxyResource: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ProxyResource", + modelProperties: { + ...ResourceAutoGenerated2.type.modelProperties + } + } +}; + export const CefSolutionProperties: coreClient.CompositeMapper = { type: { name: "Composite", @@ -11064,6 +12602,218 @@ export const OnPremiseSqlResourceDetails: coreClient.CompositeMapper = { } }; +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" + } + } + } + } +}; + +export const AzureDevOpsOrg: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AzureDevOpsOrg", + modelProperties: { + ...ProxyResource.type.modelProperties, + systemData: { + serializedName: "systemData", + type: { + name: "Composite", + className: "SystemData" + } + }, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "AzureDevOpsOrgProperties" + } + } + } + } +}; + +export const AzureDevOpsProject: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AzureDevOpsProject", + modelProperties: { + ...ProxyResource.type.modelProperties, + systemData: { + serializedName: "systemData", + type: { + name: "Composite", + className: "SystemData" + } + }, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "AzureDevOpsProjectProperties" + } + } + } + } +}; + +export const AzureDevOpsRepository: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AzureDevOpsRepository", + modelProperties: { + ...ProxyResource.type.modelProperties, + systemData: { + serializedName: "systemData", + type: { + name: "Composite", + className: "SystemData" + } + }, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "AzureDevOpsRepositoryProperties" + } + } + } + } +}; + +export const DevOpsConfiguration: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DevOpsConfiguration", + modelProperties: { + ...ProxyResource.type.modelProperties, + systemData: { + serializedName: "systemData", + type: { + name: "Composite", + className: "SystemData" + } + }, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "DevOpsConfigurationProperties" + } + } + } + } +}; + +export const GitHubOwner: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "GitHubOwner", + modelProperties: { + ...ProxyResource.type.modelProperties, + systemData: { + serializedName: "systemData", + type: { + name: "Composite", + className: "SystemData" + } + }, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "GitHubOwnerProperties" + } + } + } + } +}; + +export const GitHubRepository: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "GitHubRepository", + modelProperties: { + ...ProxyResource.type.modelProperties, + systemData: { + serializedName: "systemData", + type: { + name: "Composite", + className: "SystemData" + } + }, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "GitHubRepositoryProperties" + } + } + } + } +}; + +export const GitLabGroup: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "GitLabGroup", + modelProperties: { + ...ProxyResource.type.modelProperties, + systemData: { + serializedName: "systemData", + type: { + name: "Composite", + className: "SystemData" + } + }, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "GitLabGroupProperties" + } + } + } + } +}; + +export const GitLabProject: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "GitLabProject", + modelProperties: { + ...ProxyResource.type.modelProperties, + systemData: { + serializedName: "systemData", + type: { + name: "Composite", + className: "SystemData" + } + }, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "GitLabProjectProperties" + } + } + } + } +}; + export const ActiveConnectionsNotInAllowedRange: coreClient.CompositeMapper = { serializedName: "ActiveConnectionsNotInAllowedRange", type: { @@ -11440,6 +13190,7 @@ export let discriminators = { "EnvironmentData.GithubScope": GithubScopeEnvironmentData, "EnvironmentData.AzureDevOpsScope": AzureDevOpsScopeEnvironmentData, "EnvironmentData.GitlabScope": GitlabScopeEnvironmentData, + "ResourceAutoGenerated.ServerVulnerabilityAssessmentsSetting": ServerVulnerabilityAssessmentsSetting, "AwsOrganizationalData.Organization": AwsOrganizationalDataMaster, "AwsOrganizationalData.Member": AwsOrganizationalDataMember, "GcpOrganizationalData.Organization": GcpOrganizationalDataOrganization, @@ -11453,6 +13204,7 @@ export let discriminators = { "ListCustomAlertRule.AllowlistCustomAlertRule": AllowlistCustomAlertRule, "ListCustomAlertRule.DenylistCustomAlertRule": DenylistCustomAlertRule, "OnPremiseResourceDetails.OnPremiseSql": OnPremiseSqlResourceDetails, + "ServerVulnerabilityAssessmentsSetting.AzureServersSetting": AzureServersSetting, "TimeWindowCustomAlertRule.ActiveConnectionsNotInAllowedRange": ActiveConnectionsNotInAllowedRange, "TimeWindowCustomAlertRule.AmqpC2DMessagesNotInAllowedRange": AmqpC2DMessagesNotInAllowedRange, "TimeWindowCustomAlertRule.MqttC2DMessagesNotInAllowedRange": MqttC2DMessagesNotInAllowedRange, diff --git a/sdk/security/arm-security/src/models/parameters.ts b/sdk/security/arm-security/src/models/parameters.ts index a5a30de44eca..5415f9dc4721 100644 --- a/sdk/security/arm-security/src/models/parameters.ts +++ b/sdk/security/arm-security/src/models/parameters.ts @@ -32,6 +32,7 @@ import { JitNetworkAccessPolicy as JitNetworkAccessPolicyMapper, JitNetworkAccessPolicyInitiateRequest as JitNetworkAccessPolicyInitiateRequestMapper, ConnectorSetting as ConnectorSettingMapper, + UpdateSensitivitySettingsRequest as UpdateSensitivitySettingsRequestMapper, AlertSimulatorRequestBody as AlertSimulatorRequestBodyMapper, Setting as SettingMapper, IngestionSetting as IngestionSettingMapper, @@ -41,7 +42,13 @@ import { Application as ApplicationMapper, RuleResultsInput as RuleResultsInputMapper, RulesResultsInput as RulesResultsInputMapper, - SecurityConnector as SecurityConnectorMapper + SecurityConnector as SecurityConnectorMapper, + ServerVulnerabilityAssessmentsSetting as ServerVulnerabilityAssessmentsSettingMapper, + DefenderForStorageSetting as DefenderForStorageSettingMapper, + AzureDevOpsOrg as AzureDevOpsOrgMapper, + AzureDevOpsProject as AzureDevOpsProjectMapper, + AzureDevOpsRepository as AzureDevOpsRepositoryMapper, + DevOpsConfiguration as DevOpsConfigurationMapper } from "../models/mappers"; export const accept: OperationParameter = { @@ -917,7 +924,24 @@ export const connectorSetting: OperationParameter = { mapper: ConnectorSettingMapper }; +export const sensitivitySettings: OperationParameter = { + parameterPath: "sensitivitySettings", + mapper: UpdateSensitivitySettingsRequestMapper +}; + export const apiVersion12: OperationQueryParameter = { + parameterPath: "apiVersion", + mapper: { + defaultValue: "2023-02-15-preview", + isConstant: true, + serializedName: "api-version", + type: { + name: "String" + } + } +}; + +export const apiVersion13: OperationQueryParameter = { parameterPath: "apiVersion", mapper: { defaultValue: "2022-01-01", @@ -945,7 +969,7 @@ export const alertSimulatorRequestBody: OperationParameter = { mapper: AlertSimulatorRequestBodyMapper }; -export const apiVersion13: OperationQueryParameter = { +export const apiVersion14: OperationQueryParameter = { parameterPath: "apiVersion", mapper: { defaultValue: "2022-05-01", @@ -973,7 +997,7 @@ export const setting1: OperationParameter = { mapper: SettingMapper }; -export const apiVersion14: OperationQueryParameter = { +export const apiVersion15: OperationQueryParameter = { parameterPath: "apiVersion", mapper: { defaultValue: "2021-01-15-preview", @@ -1001,7 +1025,7 @@ export const ingestionSetting: OperationParameter = { mapper: IngestionSettingMapper }; -export const apiVersion15: OperationQueryParameter = { +export const apiVersion16: OperationQueryParameter = { parameterPath: "apiVersion", mapper: { defaultValue: "2021-05-01-preview", @@ -1024,7 +1048,7 @@ export const softwareName: OperationURLParameter = { } }; -export const apiVersion16: OperationQueryParameter = { +export const apiVersion17: OperationQueryParameter = { parameterPath: "apiVersion", mapper: { defaultValue: "2022-01-01-preview", @@ -1109,7 +1133,7 @@ export const governanceAssignment: OperationParameter = { mapper: GovernanceAssignmentMapper }; -export const apiVersion17: OperationQueryParameter = { +export const apiVersion18: OperationQueryParameter = { parameterPath: "apiVersion", mapper: { defaultValue: "2022-07-01-preview", @@ -1179,7 +1203,7 @@ export const serviceName: OperationURLParameter = { } }; -export const apiVersion18: OperationQueryParameter = { +export const apiVersion19: OperationQueryParameter = { parameterPath: "apiVersion", mapper: { defaultValue: "2022-11-20-preview", @@ -1206,43 +1230,10 @@ export const apiCollectionId: OperationURLParameter = { } }; -export const apiVersion19: OperationQueryParameter = { - parameterPath: "apiVersion", - mapper: { - defaultValue: "2023-02-01-preview", - isConstant: true, - serializedName: "api-version", - type: { - name: "String" - } - } -}; - -export const scope2: OperationURLParameter = { - parameterPath: "scope", - mapper: { - constraints: { - MaxLength: 90, - MinLength: 1 - }, - serializedName: "scope", - required: true, - type: { - name: "String" - } - }, - skipEncoding: true -}; - -export const healthReportName: OperationURLParameter = { - parameterPath: "healthReportName", +export const scanId: OperationURLParameter = { + parameterPath: "scanId", mapper: { - constraints: { - Pattern: new RegExp( - "[{]?[0-9a-fA-F]{8}-(?:[0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}[}]?$" - ) - }, - serializedName: "healthReportName", + serializedName: "scanId", required: true, type: { name: "String" @@ -1250,10 +1241,10 @@ export const healthReportName: OperationURLParameter = { } }; -export const scanId: OperationURLParameter = { - parameterPath: "scanId", +export const workspaceId: OperationQueryParameter = { + parameterPath: "workspaceId", mapper: { - serializedName: "scanId", + serializedName: "workspaceId", required: true, type: { name: "String" @@ -1261,11 +1252,12 @@ export const scanId: OperationURLParameter = { } }; -export const workspaceId: OperationQueryParameter = { - parameterPath: "workspaceId", +export const apiVersion20: OperationQueryParameter = { + parameterPath: "apiVersion", mapper: { - serializedName: "workspaceId", - required: true, + defaultValue: "2023-02-01-preview", + isConstant: true, + serializedName: "api-version", type: { name: "String" } @@ -1293,7 +1285,7 @@ export const body5: OperationParameter = { mapper: RulesResultsInputMapper }; -export const apiVersion20: OperationQueryParameter = { +export const apiVersion21: OperationQueryParameter = { parameterPath: "apiVersion", mapper: { defaultValue: "2023-03-01-preview", @@ -1310,7 +1302,7 @@ export const securityConnector: OperationParameter = { mapper: SecurityConnectorMapper }; -export const apiVersion21: OperationQueryParameter = { +export const apiVersion22: OperationQueryParameter = { parameterPath: "apiVersion", mapper: { defaultValue: "2023-01-01-preview", @@ -1353,3 +1345,201 @@ export const securityOperatorName: OperationURLParameter = { } } }; + +export const apiVersion23: OperationQueryParameter = { + parameterPath: "apiVersion", + mapper: { + defaultValue: "2023-05-01", + isConstant: true, + serializedName: "api-version", + type: { + name: "String" + } + } +}; + +export const settingKind: OperationURLParameter = { + parameterPath: "settingKind", + mapper: { + serializedName: "settingKind", + required: true, + type: { + name: "String" + } + } +}; + +export const serverVulnerabilityAssessmentsSetting: OperationParameter = { + parameterPath: "serverVulnerabilityAssessmentsSetting", + mapper: ServerVulnerabilityAssessmentsSettingMapper +}; + +export const apiVersion24: OperationQueryParameter = { + parameterPath: "apiVersion", + mapper: { + defaultValue: "2023-05-01-preview", + isConstant: true, + serializedName: "api-version", + type: { + name: "String" + } + } +}; + +export const scope2: OperationURLParameter = { + parameterPath: "scope", + mapper: { + constraints: { + MaxLength: 90, + MinLength: 1 + }, + serializedName: "scope", + required: true, + type: { + name: "String" + } + }, + skipEncoding: true +}; + +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}[}]?$" + ) + }, + serializedName: "healthReportName", + required: true, + type: { + name: "String" + } + } +}; + +export const apiVersion25: OperationQueryParameter = { + parameterPath: "apiVersion", + mapper: { + defaultValue: "2022-12-01-preview", + 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 apiVersion26: OperationQueryParameter = { + parameterPath: "apiVersion", + mapper: { + defaultValue: "2023-09-01-preview", + 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/aPICollection.ts b/sdk/security/arm-security/src/operations/aPICollection.ts index 297e9bdc923f..57857ac33435 100644 --- a/sdk/security/arm-security/src/operations/aPICollection.ts +++ b/sdk/security/arm-security/src/operations/aPICollection.ts @@ -192,7 +192,7 @@ const listOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [Parameters.apiVersion18], + queryParameters: [Parameters.apiVersion19], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -214,7 +214,7 @@ const getOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [Parameters.apiVersion18], + queryParameters: [Parameters.apiVersion19], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/security/arm-security/src/operations/aPICollectionOffboarding.ts b/sdk/security/arm-security/src/operations/aPICollectionOffboarding.ts index 57611f1a24ea..5600ed33f41b 100644 --- a/sdk/security/arm-security/src/operations/aPICollectionOffboarding.ts +++ b/sdk/security/arm-security/src/operations/aPICollectionOffboarding.ts @@ -60,7 +60,7 @@ const deleteOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [Parameters.apiVersion18], + queryParameters: [Parameters.apiVersion19], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/security/arm-security/src/operations/aPICollectionOnboarding.ts b/sdk/security/arm-security/src/operations/aPICollectionOnboarding.ts index 17794b34b23b..4382f2e663d6 100644 --- a/sdk/security/arm-security/src/operations/aPICollectionOnboarding.ts +++ b/sdk/security/arm-security/src/operations/aPICollectionOnboarding.ts @@ -65,7 +65,7 @@ const createOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse } }, - queryParameters: [Parameters.apiVersion18], + queryParameters: [Parameters.apiVersion19], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/security/arm-security/src/operations/alerts.ts b/sdk/security/arm-security/src/operations/alerts.ts index 9d1230722faf..4b340a33f0a9 100644 --- a/sdk/security/arm-security/src/operations/alerts.ts +++ b/sdk/security/arm-security/src/operations/alerts.ts @@ -780,7 +780,7 @@ const listOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion12], + queryParameters: [Parameters.apiVersion13], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], serializer @@ -797,7 +797,7 @@ const listByResourceGroupOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion12], + queryParameters: [Parameters.apiVersion13], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -818,7 +818,7 @@ const listSubscriptionLevelByRegionOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion12], + queryParameters: [Parameters.apiVersion13], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -839,7 +839,7 @@ const listResourceGroupLevelByRegionOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion12], + queryParameters: [Parameters.apiVersion13], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -861,7 +861,7 @@ const getSubscriptionLevelOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion12], + queryParameters: [Parameters.apiVersion13], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -883,7 +883,7 @@ const getResourceGroupLevelOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion12], + queryParameters: [Parameters.apiVersion13], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -904,7 +904,7 @@ const updateSubscriptionLevelStateToDismissOperationSpec: coreClient.OperationSp bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion12], + queryParameters: [Parameters.apiVersion13], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -924,7 +924,7 @@ const updateSubscriptionLevelStateToResolveOperationSpec: coreClient.OperationSp bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion12], + queryParameters: [Parameters.apiVersion13], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -944,7 +944,7 @@ const updateSubscriptionLevelStateToActivateOperationSpec: coreClient.OperationS bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion12], + queryParameters: [Parameters.apiVersion13], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -964,7 +964,7 @@ const updateSubscriptionLevelStateToInProgressOperationSpec: coreClient.Operatio bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion12], + queryParameters: [Parameters.apiVersion13], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -984,7 +984,7 @@ const updateResourceGroupLevelStateToResolveOperationSpec: coreClient.OperationS bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion12], + queryParameters: [Parameters.apiVersion13], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -1005,7 +1005,7 @@ const updateResourceGroupLevelStateToDismissOperationSpec: coreClient.OperationS bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion12], + queryParameters: [Parameters.apiVersion13], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -1026,7 +1026,7 @@ const updateResourceGroupLevelStateToActivateOperationSpec: coreClient.Operation bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion12], + queryParameters: [Parameters.apiVersion13], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -1047,7 +1047,7 @@ const updateResourceGroupLevelStateToInProgressOperationSpec: coreClient.Operati bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion12], + queryParameters: [Parameters.apiVersion13], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -1072,7 +1072,7 @@ const simulateOperationSpec: coreClient.OperationSpec = { } }, requestBody: Parameters.alertSimulatorRequestBody, - queryParameters: [Parameters.apiVersion12], + queryParameters: [Parameters.apiVersion13], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/security/arm-security/src/operations/applicationOperations.ts b/sdk/security/arm-security/src/operations/applicationOperations.ts index 6f1598633b85..19a1a9952c56 100644 --- a/sdk/security/arm-security/src/operations/applicationOperations.ts +++ b/sdk/security/arm-security/src/operations/applicationOperations.ts @@ -94,7 +94,7 @@ const getOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion17], + queryParameters: [Parameters.apiVersion18], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -119,7 +119,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { } }, requestBody: Parameters.application, - queryParameters: [Parameters.apiVersion17], + queryParameters: [Parameters.apiVersion18], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -134,7 +134,7 @@ const deleteOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/providers/Microsoft.Security/applications/{applicationId}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: {} }, - queryParameters: [Parameters.apiVersion17], + queryParameters: [Parameters.apiVersion18], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/security/arm-security/src/operations/applications.ts b/sdk/security/arm-security/src/operations/applications.ts index 94a125f6492b..09accc073ad4 100644 --- a/sdk/security/arm-security/src/operations/applications.ts +++ b/sdk/security/arm-security/src/operations/applications.ts @@ -128,7 +128,7 @@ const listOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion17], + queryParameters: [Parameters.apiVersion18], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], serializer diff --git a/sdk/security/arm-security/src/operations/azureDevOpsOrgs.ts b/sdk/security/arm-security/src/operations/azureDevOpsOrgs.ts new file mode 100644 index 000000000000..1f6287183645 --- /dev/null +++ b/sdk/security/arm-security/src/operations/azureDevOpsOrgs.ts @@ -0,0 +1,580 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { AzureDevOpsOrgs } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { SecurityCenter } from "../securityCenter"; +import { + SimplePollerLike, + OperationState, + createHttpPoller +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; +import { + AzureDevOpsOrg, + AzureDevOpsOrgsListNextOptionalParams, + AzureDevOpsOrgsListOptionalParams, + AzureDevOpsOrgsListResponse, + AzureDevOpsOrgsListAvailableOptionalParams, + AzureDevOpsOrgsListAvailableResponse, + AzureDevOpsOrgsGetOptionalParams, + AzureDevOpsOrgsGetResponse, + AzureDevOpsOrgsCreateOrUpdateOptionalParams, + AzureDevOpsOrgsCreateOrUpdateResponse, + AzureDevOpsOrgsUpdateOptionalParams, + AzureDevOpsOrgsUpdateResponse, + AzureDevOpsOrgsListNextResponse +} from "../models"; + +/// +/** Class containing AzureDevOpsOrgs operations. */ +export class AzureDevOpsOrgsImpl implements AzureDevOpsOrgs { + private readonly client: SecurityCenter; + + /** + * Initialize a new instance of the class AzureDevOpsOrgs class. + * @param client Reference to the service client + */ + constructor(client: SecurityCenter) { + this.client = client; + } + + /** + * Returns a list of Azure DevOps organizations onboarded to the connector. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param securityConnectorName The security connector name. + * @param options The options parameters. + */ + public list( + resourceGroupName: string, + securityConnectorName: string, + options?: AzureDevOpsOrgsListOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listPagingAll( + resourceGroupName, + securityConnectorName, + options + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listPagingPage( + resourceGroupName, + securityConnectorName, + options, + settings + ); + } + }; + } + + private async *listPagingPage( + resourceGroupName: string, + securityConnectorName: string, + options?: AzureDevOpsOrgsListOptionalParams, + settings?: PageSettings + ): AsyncIterableIterator { + let result: AzureDevOpsOrgsListResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._list( + resourceGroupName, + securityConnectorName, + options + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listNext( + resourceGroupName, + securityConnectorName, + continuationToken, + options + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listPagingAll( + resourceGroupName: string, + securityConnectorName: string, + options?: AzureDevOpsOrgsListOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listPagingPage( + resourceGroupName, + securityConnectorName, + options + )) { + yield* page; + } + } + + /** + * Returns a list of all Azure DevOps organizations accessible by the user token consumed by the + * connector. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param securityConnectorName The security connector name. + * @param options The options parameters. + */ + listAvailable( + resourceGroupName: string, + securityConnectorName: string, + options?: AzureDevOpsOrgsListAvailableOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, securityConnectorName, options }, + listAvailableOperationSpec + ); + } + + /** + * Returns a list of Azure DevOps organizations onboarded to the connector. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param securityConnectorName The security connector name. + * @param options The options parameters. + */ + private _list( + resourceGroupName: string, + securityConnectorName: string, + options?: AzureDevOpsOrgsListOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, securityConnectorName, options }, + listOperationSpec + ); + } + + /** + * Returns a monitored Azure DevOps organization resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param securityConnectorName The security connector name. + * @param orgName The Azure DevOps organization name. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + securityConnectorName: string, + orgName: string, + options?: AzureDevOpsOrgsGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, securityConnectorName, orgName, options }, + getOperationSpec + ); + } + + /** + * Creates or updates monitored Azure DevOps organization details. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param securityConnectorName The security connector name. + * @param orgName The Azure DevOps organization name. + * @param azureDevOpsOrg The Azure DevOps organization resource payload. + * @param options The options parameters. + */ + async beginCreateOrUpdate( + resourceGroupName: string, + securityConnectorName: string, + orgName: string, + azureDevOpsOrg: AzureDevOpsOrg, + options?: AzureDevOpsOrgsCreateOrUpdateOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + AzureDevOpsOrgsCreateOrUpdateResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = createLroSpec({ + sendOperationFn, + args: { + resourceGroupName, + securityConnectorName, + orgName, + azureDevOpsOrg, + options + }, + spec: createOrUpdateOperationSpec + }); + const poller = await createHttpPoller< + AzureDevOpsOrgsCreateOrUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "azure-async-operation" + }); + await poller.poll(); + return poller; + } + + /** + * Creates or updates monitored Azure DevOps organization details. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param securityConnectorName The security connector name. + * @param orgName The Azure DevOps organization name. + * @param azureDevOpsOrg The Azure DevOps organization resource payload. + * @param options The options parameters. + */ + async beginCreateOrUpdateAndWait( + resourceGroupName: string, + securityConnectorName: string, + orgName: string, + azureDevOpsOrg: AzureDevOpsOrg, + options?: AzureDevOpsOrgsCreateOrUpdateOptionalParams + ): Promise { + const poller = await this.beginCreateOrUpdate( + resourceGroupName, + securityConnectorName, + orgName, + azureDevOpsOrg, + options + ); + return poller.pollUntilDone(); + } + + /** + * Updates monitored Azure DevOps organization details. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param securityConnectorName The security connector name. + * @param orgName The Azure DevOps organization name. + * @param azureDevOpsOrg The Azure DevOps organization resource payload. + * @param options The options parameters. + */ + async beginUpdate( + resourceGroupName: string, + securityConnectorName: string, + orgName: string, + azureDevOpsOrg: AzureDevOpsOrg, + options?: AzureDevOpsOrgsUpdateOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + AzureDevOpsOrgsUpdateResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = createLroSpec({ + sendOperationFn, + args: { + resourceGroupName, + securityConnectorName, + orgName, + azureDevOpsOrg, + options + }, + spec: updateOperationSpec + }); + const poller = await createHttpPoller< + AzureDevOpsOrgsUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "azure-async-operation" + }); + await poller.poll(); + return poller; + } + + /** + * Updates monitored Azure DevOps organization details. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param securityConnectorName The security connector name. + * @param orgName The Azure DevOps organization name. + * @param azureDevOpsOrg The Azure DevOps organization resource payload. + * @param options The options parameters. + */ + async beginUpdateAndWait( + resourceGroupName: string, + securityConnectorName: string, + orgName: string, + azureDevOpsOrg: AzureDevOpsOrg, + options?: AzureDevOpsOrgsUpdateOptionalParams + ): Promise { + const poller = await this.beginUpdate( + resourceGroupName, + securityConnectorName, + orgName, + azureDevOpsOrg, + options + ); + return poller.pollUntilDone(); + } + + /** + * ListNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param securityConnectorName The security connector name. + * @param nextLink The nextLink from the previous successful call to the List method. + * @param options The options parameters. + */ + private _listNext( + resourceGroupName: string, + securityConnectorName: string, + nextLink: string, + options?: AzureDevOpsOrgsListNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, securityConnectorName, nextLink, options }, + listNextOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listAvailableOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName}/devops/default/listAvailableAzureDevOpsOrgs", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.AzureDevOpsOrgListResponse + }, + default: { + bodyMapper: Mappers.ErrorResponseAutoGenerated2 + } + }, + queryParameters: [Parameters.apiVersion26], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.securityConnectorName, + Parameters.resourceGroupName1 + ], + headerParameters: [Parameters.accept], + serializer +}; +const listOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName}/devops/default/azureDevOpsOrgs", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.AzureDevOpsOrgListResponse + }, + default: { + bodyMapper: Mappers.ErrorResponseAutoGenerated2 + } + }, + queryParameters: [Parameters.apiVersion26], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.securityConnectorName, + Parameters.resourceGroupName1 + ], + headerParameters: [Parameters.accept], + serializer +}; +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName}/devops/default/azureDevOpsOrgs/{orgName}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.AzureDevOpsOrg + }, + default: { + bodyMapper: Mappers.ErrorResponseAutoGenerated2 + } + }, + queryParameters: [Parameters.apiVersion26], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.securityConnectorName, + Parameters.resourceGroupName1, + Parameters.orgName + ], + headerParameters: [Parameters.accept], + serializer +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName}/devops/default/azureDevOpsOrgs/{orgName}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.AzureDevOpsOrg + }, + 201: { + bodyMapper: Mappers.AzureDevOpsOrg + }, + 202: { + bodyMapper: Mappers.AzureDevOpsOrg + }, + 204: { + bodyMapper: Mappers.AzureDevOpsOrg + }, + default: { + bodyMapper: Mappers.ErrorResponseAutoGenerated2 + } + }, + requestBody: Parameters.azureDevOpsOrg, + queryParameters: [Parameters.apiVersion26], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.securityConnectorName, + Parameters.resourceGroupName1, + Parameters.orgName + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const updateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName}/devops/default/azureDevOpsOrgs/{orgName}", + httpMethod: "PATCH", + responses: { + 200: { + bodyMapper: Mappers.AzureDevOpsOrg + }, + 201: { + bodyMapper: Mappers.AzureDevOpsOrg + }, + 202: { + bodyMapper: Mappers.AzureDevOpsOrg + }, + 204: { + bodyMapper: Mappers.AzureDevOpsOrg + }, + default: { + bodyMapper: Mappers.ErrorResponseAutoGenerated2 + } + }, + requestBody: Parameters.azureDevOpsOrg, + queryParameters: [Parameters.apiVersion26], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.securityConnectorName, + Parameters.resourceGroupName1, + Parameters.orgName + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const listNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.AzureDevOpsOrgListResponse + }, + default: { + bodyMapper: Mappers.ErrorResponseAutoGenerated2 + } + }, + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.nextLink, + Parameters.securityConnectorName, + Parameters.resourceGroupName1 + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/security/arm-security/src/operations/azureDevOpsProjects.ts b/sdk/security/arm-security/src/operations/azureDevOpsProjects.ts new file mode 100644 index 000000000000..01c6e7a5aff7 --- /dev/null +++ b/sdk/security/arm-security/src/operations/azureDevOpsProjects.ts @@ -0,0 +1,576 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { AzureDevOpsProjects } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { SecurityCenter } from "../securityCenter"; +import { + SimplePollerLike, + OperationState, + createHttpPoller +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; +import { + AzureDevOpsProject, + AzureDevOpsProjectsListNextOptionalParams, + AzureDevOpsProjectsListOptionalParams, + AzureDevOpsProjectsListResponse, + AzureDevOpsProjectsGetOptionalParams, + AzureDevOpsProjectsGetResponse, + AzureDevOpsProjectsCreateOrUpdateOptionalParams, + AzureDevOpsProjectsCreateOrUpdateResponse, + AzureDevOpsProjectsUpdateOptionalParams, + AzureDevOpsProjectsUpdateResponse, + AzureDevOpsProjectsListNextResponse +} from "../models"; + +/// +/** Class containing AzureDevOpsProjects operations. */ +export class AzureDevOpsProjectsImpl implements AzureDevOpsProjects { + private readonly client: SecurityCenter; + + /** + * Initialize a new instance of the class AzureDevOpsProjects class. + * @param client Reference to the service client + */ + constructor(client: SecurityCenter) { + this.client = client; + } + + /** + * Returns a list of Azure DevOps projects onboarded to the connector. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param securityConnectorName The security connector name. + * @param orgName The Azure DevOps organization name. + * @param options The options parameters. + */ + public list( + resourceGroupName: string, + securityConnectorName: string, + orgName: string, + options?: AzureDevOpsProjectsListOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listPagingAll( + resourceGroupName, + securityConnectorName, + orgName, + options + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listPagingPage( + resourceGroupName, + securityConnectorName, + orgName, + options, + settings + ); + } + }; + } + + private async *listPagingPage( + resourceGroupName: string, + securityConnectorName: string, + orgName: string, + options?: AzureDevOpsProjectsListOptionalParams, + settings?: PageSettings + ): AsyncIterableIterator { + let result: AzureDevOpsProjectsListResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._list( + resourceGroupName, + securityConnectorName, + orgName, + options + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listNext( + resourceGroupName, + securityConnectorName, + orgName, + continuationToken, + options + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listPagingAll( + resourceGroupName: string, + securityConnectorName: string, + orgName: string, + options?: AzureDevOpsProjectsListOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listPagingPage( + resourceGroupName, + securityConnectorName, + orgName, + options + )) { + yield* page; + } + } + + /** + * Returns a list of Azure DevOps projects onboarded to the connector. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param securityConnectorName The security connector name. + * @param orgName The Azure DevOps organization name. + * @param options The options parameters. + */ + private _list( + resourceGroupName: string, + securityConnectorName: string, + orgName: string, + options?: AzureDevOpsProjectsListOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, securityConnectorName, orgName, options }, + listOperationSpec + ); + } + + /** + * Returns a monitored Azure DevOps project resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param securityConnectorName The security connector name. + * @param orgName The Azure DevOps organization name. + * @param projectName The project name. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + securityConnectorName: string, + orgName: string, + projectName: string, + options?: AzureDevOpsProjectsGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + securityConnectorName, + orgName, + projectName, + options + }, + getOperationSpec + ); + } + + /** + * Creates or updates a monitored Azure DevOps project resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param securityConnectorName The security connector name. + * @param orgName The Azure DevOps organization name. + * @param projectName The project name. + * @param azureDevOpsProject The Azure DevOps project resource payload. + * @param options The options parameters. + */ + async beginCreateOrUpdate( + resourceGroupName: string, + securityConnectorName: string, + orgName: string, + projectName: string, + azureDevOpsProject: AzureDevOpsProject, + options?: AzureDevOpsProjectsCreateOrUpdateOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + AzureDevOpsProjectsCreateOrUpdateResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = createLroSpec({ + sendOperationFn, + args: { + resourceGroupName, + securityConnectorName, + orgName, + projectName, + azureDevOpsProject, + options + }, + spec: createOrUpdateOperationSpec + }); + const poller = await createHttpPoller< + AzureDevOpsProjectsCreateOrUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "azure-async-operation" + }); + await poller.poll(); + return poller; + } + + /** + * Creates or updates a monitored Azure DevOps project resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param securityConnectorName The security connector name. + * @param orgName The Azure DevOps organization name. + * @param projectName The project name. + * @param azureDevOpsProject The Azure DevOps project resource payload. + * @param options The options parameters. + */ + async beginCreateOrUpdateAndWait( + resourceGroupName: string, + securityConnectorName: string, + orgName: string, + projectName: string, + azureDevOpsProject: AzureDevOpsProject, + options?: AzureDevOpsProjectsCreateOrUpdateOptionalParams + ): Promise { + const poller = await this.beginCreateOrUpdate( + resourceGroupName, + securityConnectorName, + orgName, + projectName, + azureDevOpsProject, + options + ); + return poller.pollUntilDone(); + } + + /** + * Updates a monitored Azure DevOps project resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param securityConnectorName The security connector name. + * @param orgName The Azure DevOps organization name. + * @param projectName The project name. + * @param azureDevOpsProject The Azure DevOps project resource payload. + * @param options The options parameters. + */ + async beginUpdate( + resourceGroupName: string, + securityConnectorName: string, + orgName: string, + projectName: string, + azureDevOpsProject: AzureDevOpsProject, + options?: AzureDevOpsProjectsUpdateOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + AzureDevOpsProjectsUpdateResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = createLroSpec({ + sendOperationFn, + args: { + resourceGroupName, + securityConnectorName, + orgName, + projectName, + azureDevOpsProject, + options + }, + spec: updateOperationSpec + }); + const poller = await createHttpPoller< + AzureDevOpsProjectsUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "azure-async-operation" + }); + await poller.poll(); + return poller; + } + + /** + * Updates a monitored Azure DevOps project resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param securityConnectorName The security connector name. + * @param orgName The Azure DevOps organization name. + * @param projectName The project name. + * @param azureDevOpsProject The Azure DevOps project resource payload. + * @param options The options parameters. + */ + async beginUpdateAndWait( + resourceGroupName: string, + securityConnectorName: string, + orgName: string, + projectName: string, + azureDevOpsProject: AzureDevOpsProject, + options?: AzureDevOpsProjectsUpdateOptionalParams + ): Promise { + const poller = await this.beginUpdate( + resourceGroupName, + securityConnectorName, + orgName, + projectName, + azureDevOpsProject, + options + ); + return poller.pollUntilDone(); + } + + /** + * ListNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param securityConnectorName The security connector name. + * @param orgName The Azure DevOps organization name. + * @param nextLink The nextLink from the previous successful call to the List method. + * @param options The options parameters. + */ + private _listNext( + resourceGroupName: string, + securityConnectorName: string, + orgName: string, + nextLink: string, + options?: AzureDevOpsProjectsListNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, securityConnectorName, orgName, nextLink, options }, + listNextOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName}/devops/default/azureDevOpsOrgs/{orgName}/projects", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.AzureDevOpsProjectListResponse + }, + default: { + bodyMapper: Mappers.ErrorResponseAutoGenerated2 + } + }, + queryParameters: [Parameters.apiVersion26], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.securityConnectorName, + Parameters.resourceGroupName1, + Parameters.orgName + ], + headerParameters: [Parameters.accept], + serializer +}; +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName}/devops/default/azureDevOpsOrgs/{orgName}/projects/{projectName}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.AzureDevOpsProject + }, + default: { + bodyMapper: Mappers.ErrorResponseAutoGenerated2 + } + }, + queryParameters: [Parameters.apiVersion26], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.securityConnectorName, + Parameters.resourceGroupName1, + Parameters.orgName, + Parameters.projectName + ], + headerParameters: [Parameters.accept], + serializer +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName}/devops/default/azureDevOpsOrgs/{orgName}/projects/{projectName}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.AzureDevOpsProject + }, + 201: { + bodyMapper: Mappers.AzureDevOpsProject + }, + 202: { + bodyMapper: Mappers.AzureDevOpsProject + }, + 204: { + bodyMapper: Mappers.AzureDevOpsProject + }, + default: { + bodyMapper: Mappers.ErrorResponseAutoGenerated2 + } + }, + requestBody: Parameters.azureDevOpsProject, + queryParameters: [Parameters.apiVersion26], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.securityConnectorName, + Parameters.resourceGroupName1, + Parameters.orgName, + Parameters.projectName + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const updateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName}/devops/default/azureDevOpsOrgs/{orgName}/projects/{projectName}", + httpMethod: "PATCH", + responses: { + 200: { + bodyMapper: Mappers.AzureDevOpsProject + }, + 201: { + bodyMapper: Mappers.AzureDevOpsProject + }, + 202: { + bodyMapper: Mappers.AzureDevOpsProject + }, + 204: { + bodyMapper: Mappers.AzureDevOpsProject + }, + default: { + bodyMapper: Mappers.ErrorResponseAutoGenerated2 + } + }, + requestBody: Parameters.azureDevOpsProject, + queryParameters: [Parameters.apiVersion26], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.securityConnectorName, + Parameters.resourceGroupName1, + Parameters.orgName, + Parameters.projectName + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const listNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.AzureDevOpsProjectListResponse + }, + default: { + bodyMapper: Mappers.ErrorResponseAutoGenerated2 + } + }, + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.nextLink, + Parameters.securityConnectorName, + Parameters.resourceGroupName1, + Parameters.orgName + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/security/arm-security/src/operations/azureDevOpsRepos.ts b/sdk/security/arm-security/src/operations/azureDevOpsRepos.ts new file mode 100644 index 000000000000..ade11091e67d --- /dev/null +++ b/sdk/security/arm-security/src/operations/azureDevOpsRepos.ts @@ -0,0 +1,622 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { AzureDevOpsRepos } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { SecurityCenter } from "../securityCenter"; +import { + SimplePollerLike, + OperationState, + createHttpPoller +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; +import { + AzureDevOpsRepository, + AzureDevOpsReposListNextOptionalParams, + AzureDevOpsReposListOptionalParams, + AzureDevOpsReposListResponse, + AzureDevOpsReposGetOptionalParams, + AzureDevOpsReposGetResponse, + AzureDevOpsReposCreateOrUpdateOptionalParams, + AzureDevOpsReposCreateOrUpdateResponse, + AzureDevOpsReposUpdateOptionalParams, + AzureDevOpsReposUpdateResponse, + AzureDevOpsReposListNextResponse +} from "../models"; + +/// +/** Class containing AzureDevOpsRepos operations. */ +export class AzureDevOpsReposImpl implements AzureDevOpsRepos { + private readonly client: SecurityCenter; + + /** + * Initialize a new instance of the class AzureDevOpsRepos class. + * @param client Reference to the service client + */ + constructor(client: SecurityCenter) { + this.client = client; + } + + /** + * Returns a list of Azure DevOps repositories onboarded to the connector. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param securityConnectorName The security connector name. + * @param orgName The Azure DevOps organization name. + * @param projectName The project name. + * @param options The options parameters. + */ + public list( + resourceGroupName: string, + securityConnectorName: string, + orgName: string, + projectName: string, + options?: AzureDevOpsReposListOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listPagingAll( + resourceGroupName, + securityConnectorName, + orgName, + projectName, + options + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listPagingPage( + resourceGroupName, + securityConnectorName, + orgName, + projectName, + options, + settings + ); + } + }; + } + + private async *listPagingPage( + resourceGroupName: string, + securityConnectorName: string, + orgName: string, + projectName: string, + options?: AzureDevOpsReposListOptionalParams, + settings?: PageSettings + ): AsyncIterableIterator { + let result: AzureDevOpsReposListResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._list( + resourceGroupName, + securityConnectorName, + orgName, + projectName, + options + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listNext( + resourceGroupName, + securityConnectorName, + orgName, + projectName, + continuationToken, + options + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listPagingAll( + resourceGroupName: string, + securityConnectorName: string, + orgName: string, + projectName: string, + options?: AzureDevOpsReposListOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listPagingPage( + resourceGroupName, + securityConnectorName, + orgName, + projectName, + options + )) { + yield* page; + } + } + + /** + * Returns a list of Azure DevOps repositories onboarded to the connector. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param securityConnectorName The security connector name. + * @param orgName The Azure DevOps organization name. + * @param projectName The project name. + * @param options The options parameters. + */ + private _list( + resourceGroupName: string, + securityConnectorName: string, + orgName: string, + projectName: string, + options?: AzureDevOpsReposListOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + securityConnectorName, + orgName, + projectName, + options + }, + listOperationSpec + ); + } + + /** + * Returns a monitored Azure DevOps repository resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param securityConnectorName The security connector name. + * @param orgName The Azure DevOps organization name. + * @param projectName The project name. + * @param repoName The repository name. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + securityConnectorName: string, + orgName: string, + projectName: string, + repoName: string, + options?: AzureDevOpsReposGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + securityConnectorName, + orgName, + projectName, + repoName, + options + }, + getOperationSpec + ); + } + + /** + * Creates or updates a monitored Azure DevOps repository resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param securityConnectorName The security connector name. + * @param orgName The Azure DevOps organization name. + * @param projectName The project name. + * @param repoName The repository name. + * @param azureDevOpsRepository The Azure DevOps repository resource payload. + * @param options The options parameters. + */ + async beginCreateOrUpdate( + resourceGroupName: string, + securityConnectorName: string, + orgName: string, + projectName: string, + repoName: string, + azureDevOpsRepository: AzureDevOpsRepository, + options?: AzureDevOpsReposCreateOrUpdateOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + AzureDevOpsReposCreateOrUpdateResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = createLroSpec({ + sendOperationFn, + args: { + resourceGroupName, + securityConnectorName, + orgName, + projectName, + repoName, + azureDevOpsRepository, + options + }, + spec: createOrUpdateOperationSpec + }); + const poller = await createHttpPoller< + AzureDevOpsReposCreateOrUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "azure-async-operation" + }); + await poller.poll(); + return poller; + } + + /** + * Creates or updates a monitored Azure DevOps repository resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param securityConnectorName The security connector name. + * @param orgName The Azure DevOps organization name. + * @param projectName The project name. + * @param repoName The repository name. + * @param azureDevOpsRepository The Azure DevOps repository resource payload. + * @param options The options parameters. + */ + async beginCreateOrUpdateAndWait( + resourceGroupName: string, + securityConnectorName: string, + orgName: string, + projectName: string, + repoName: string, + azureDevOpsRepository: AzureDevOpsRepository, + options?: AzureDevOpsReposCreateOrUpdateOptionalParams + ): Promise { + const poller = await this.beginCreateOrUpdate( + resourceGroupName, + securityConnectorName, + orgName, + projectName, + repoName, + azureDevOpsRepository, + options + ); + return poller.pollUntilDone(); + } + + /** + * Updates a monitored Azure DevOps repository resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param securityConnectorName The security connector name. + * @param orgName The Azure DevOps organization name. + * @param projectName The project name. + * @param repoName The repository name. + * @param azureDevOpsRepository The Azure DevOps repository resource payload. + * @param options The options parameters. + */ + async beginUpdate( + resourceGroupName: string, + securityConnectorName: string, + orgName: string, + projectName: string, + repoName: string, + azureDevOpsRepository: AzureDevOpsRepository, + options?: AzureDevOpsReposUpdateOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + AzureDevOpsReposUpdateResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = createLroSpec({ + sendOperationFn, + args: { + resourceGroupName, + securityConnectorName, + orgName, + projectName, + repoName, + azureDevOpsRepository, + options + }, + spec: updateOperationSpec + }); + const poller = await createHttpPoller< + AzureDevOpsReposUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "azure-async-operation" + }); + await poller.poll(); + return poller; + } + + /** + * Updates a monitored Azure DevOps repository resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param securityConnectorName The security connector name. + * @param orgName The Azure DevOps organization name. + * @param projectName The project name. + * @param repoName The repository name. + * @param azureDevOpsRepository The Azure DevOps repository resource payload. + * @param options The options parameters. + */ + async beginUpdateAndWait( + resourceGroupName: string, + securityConnectorName: string, + orgName: string, + projectName: string, + repoName: string, + azureDevOpsRepository: AzureDevOpsRepository, + options?: AzureDevOpsReposUpdateOptionalParams + ): Promise { + const poller = await this.beginUpdate( + resourceGroupName, + securityConnectorName, + orgName, + projectName, + repoName, + azureDevOpsRepository, + options + ); + return poller.pollUntilDone(); + } + + /** + * ListNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param securityConnectorName The security connector name. + * @param orgName The Azure DevOps organization name. + * @param projectName The project name. + * @param nextLink The nextLink from the previous successful call to the List method. + * @param options The options parameters. + */ + private _listNext( + resourceGroupName: string, + securityConnectorName: string, + orgName: string, + projectName: string, + nextLink: string, + options?: AzureDevOpsReposListNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + securityConnectorName, + orgName, + projectName, + nextLink, + options + }, + listNextOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName}/devops/default/azureDevOpsOrgs/{orgName}/projects/{projectName}/repos", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.AzureDevOpsRepositoryListResponse + }, + default: { + bodyMapper: Mappers.ErrorResponseAutoGenerated2 + } + }, + queryParameters: [Parameters.apiVersion26], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.securityConnectorName, + Parameters.resourceGroupName1, + Parameters.orgName, + Parameters.projectName + ], + headerParameters: [Parameters.accept], + serializer +}; +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName}/devops/default/azureDevOpsOrgs/{orgName}/projects/{projectName}/repos/{repoName}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.AzureDevOpsRepository + }, + default: { + bodyMapper: Mappers.ErrorResponseAutoGenerated2 + } + }, + queryParameters: [Parameters.apiVersion26], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.securityConnectorName, + Parameters.resourceGroupName1, + Parameters.orgName, + Parameters.projectName, + Parameters.repoName + ], + headerParameters: [Parameters.accept], + serializer +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName}/devops/default/azureDevOpsOrgs/{orgName}/projects/{projectName}/repos/{repoName}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.AzureDevOpsRepository + }, + 201: { + bodyMapper: Mappers.AzureDevOpsRepository + }, + 202: { + bodyMapper: Mappers.AzureDevOpsRepository + }, + 204: { + bodyMapper: Mappers.AzureDevOpsRepository + }, + default: { + bodyMapper: Mappers.ErrorResponseAutoGenerated2 + } + }, + requestBody: Parameters.azureDevOpsRepository, + queryParameters: [Parameters.apiVersion26], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.securityConnectorName, + Parameters.resourceGroupName1, + Parameters.orgName, + Parameters.projectName, + Parameters.repoName + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const updateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName}/devops/default/azureDevOpsOrgs/{orgName}/projects/{projectName}/repos/{repoName}", + httpMethod: "PATCH", + responses: { + 200: { + bodyMapper: Mappers.AzureDevOpsRepository + }, + 201: { + bodyMapper: Mappers.AzureDevOpsRepository + }, + 202: { + bodyMapper: Mappers.AzureDevOpsRepository + }, + 204: { + bodyMapper: Mappers.AzureDevOpsRepository + }, + default: { + bodyMapper: Mappers.ErrorResponseAutoGenerated2 + } + }, + requestBody: Parameters.azureDevOpsRepository, + queryParameters: [Parameters.apiVersion26], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.securityConnectorName, + Parameters.resourceGroupName1, + Parameters.orgName, + Parameters.projectName, + Parameters.repoName + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const listNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.AzureDevOpsRepositoryListResponse + }, + default: { + bodyMapper: Mappers.ErrorResponseAutoGenerated2 + } + }, + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.nextLink, + Parameters.securityConnectorName, + Parameters.resourceGroupName1, + Parameters.orgName, + Parameters.projectName + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/security/arm-security/src/operations/defenderForStorage.ts b/sdk/security/arm-security/src/operations/defenderForStorage.ts new file mode 100644 index 000000000000..d04378f3dc85 --- /dev/null +++ b/sdk/security/arm-security/src/operations/defenderForStorage.ts @@ -0,0 +1,120 @@ +/* + * 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 { DefenderForStorage } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { SecurityCenter } from "../securityCenter"; +import { + SettingNameAutoGenerated, + DefenderForStorageGetOptionalParams, + DefenderForStorageGetResponse, + DefenderForStorageSetting, + DefenderForStorageCreateOptionalParams, + DefenderForStorageCreateResponse +} from "../models"; + +/** Class containing DefenderForStorage operations. */ +export class DefenderForStorageImpl implements DefenderForStorage { + private readonly client: SecurityCenter; + + /** + * Initialize a new instance of the class DefenderForStorage class. + * @param client Reference to the service client + */ + constructor(client: SecurityCenter) { + this.client = client; + } + + /** + * Gets the Defender for Storage settings for the specified storage account. + * @param resourceId The identifier of the resource. + * @param settingName Defender for Storage setting name. + * @param options The options parameters. + */ + get( + resourceId: string, + settingName: SettingNameAutoGenerated, + options?: DefenderForStorageGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceId, settingName, options }, + getOperationSpec + ); + } + + /** + * Creates or updates the Defender for Storage settings on a specified storage account. + * @param resourceId The identifier of the resource. + * @param settingName Defender for Storage setting name. + * @param defenderForStorageSetting Defender for Storage Settings + * @param options The options parameters. + */ + create( + resourceId: string, + settingName: SettingNameAutoGenerated, + defenderForStorageSetting: DefenderForStorageSetting, + options?: DefenderForStorageCreateOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceId, settingName, defenderForStorageSetting, options }, + createOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const getOperationSpec: coreClient.OperationSpec = { + path: + "/{resourceId}/providers/Microsoft.Security/defenderForStorageSettings/{settingName}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.DefenderForStorageSetting + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + queryParameters: [Parameters.apiVersion25], + urlParameters: [ + Parameters.$host, + Parameters.resourceId, + Parameters.settingName3 + ], + headerParameters: [Parameters.accept], + serializer +}; +const createOperationSpec: coreClient.OperationSpec = { + path: + "/{resourceId}/providers/Microsoft.Security/defenderForStorageSettings/{settingName}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.DefenderForStorageSetting + }, + 201: { + bodyMapper: Mappers.DefenderForStorageSetting + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + requestBody: Parameters.defenderForStorageSetting, + queryParameters: [Parameters.apiVersion25], + urlParameters: [ + Parameters.$host, + Parameters.resourceId, + Parameters.settingName3 + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; diff --git a/sdk/security/arm-security/src/operations/devOpsConfigurations.ts b/sdk/security/arm-security/src/operations/devOpsConfigurations.ts new file mode 100644 index 000000000000..26e216014ee7 --- /dev/null +++ b/sdk/security/arm-security/src/operations/devOpsConfigurations.ts @@ -0,0 +1,627 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { DevOpsConfigurations } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { SecurityCenter } from "../securityCenter"; +import { + SimplePollerLike, + OperationState, + createHttpPoller +} from "@azure/core-lro"; +import { createLroSpec } from "../lroImpl"; +import { + DevOpsConfiguration, + DevOpsConfigurationsListNextOptionalParams, + DevOpsConfigurationsListOptionalParams, + DevOpsConfigurationsListResponse, + DevOpsConfigurationsGetOptionalParams, + DevOpsConfigurationsGetResponse, + DevOpsConfigurationsCreateOrUpdateOptionalParams, + DevOpsConfigurationsCreateOrUpdateResponse, + DevOpsConfigurationsUpdateOptionalParams, + DevOpsConfigurationsUpdateResponse, + DevOpsConfigurationsDeleteOptionalParams, + DevOpsConfigurationsListNextResponse +} from "../models"; + +/// +/** Class containing DevOpsConfigurations operations. */ +export class DevOpsConfigurationsImpl implements DevOpsConfigurations { + private readonly client: SecurityCenter; + + /** + * Initialize a new instance of the class DevOpsConfigurations class. + * @param client Reference to the service client + */ + constructor(client: SecurityCenter) { + this.client = client; + } + + /** + * List DevOps Configurations. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param securityConnectorName The security connector name. + * @param options The options parameters. + */ + public list( + resourceGroupName: string, + securityConnectorName: string, + options?: DevOpsConfigurationsListOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listPagingAll( + resourceGroupName, + securityConnectorName, + options + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listPagingPage( + resourceGroupName, + securityConnectorName, + options, + settings + ); + } + }; + } + + private async *listPagingPage( + resourceGroupName: string, + securityConnectorName: string, + options?: DevOpsConfigurationsListOptionalParams, + settings?: PageSettings + ): AsyncIterableIterator { + let result: DevOpsConfigurationsListResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._list( + resourceGroupName, + securityConnectorName, + options + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listNext( + resourceGroupName, + securityConnectorName, + continuationToken, + options + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listPagingAll( + resourceGroupName: string, + securityConnectorName: string, + options?: DevOpsConfigurationsListOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listPagingPage( + resourceGroupName, + securityConnectorName, + options + )) { + yield* page; + } + } + + /** + * List DevOps Configurations. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param securityConnectorName The security connector name. + * @param options The options parameters. + */ + private _list( + resourceGroupName: string, + securityConnectorName: string, + options?: DevOpsConfigurationsListOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, securityConnectorName, options }, + listOperationSpec + ); + } + + /** + * Gets a DevOps Configuration. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param securityConnectorName The security connector name. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + securityConnectorName: string, + options?: DevOpsConfigurationsGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, securityConnectorName, options }, + getOperationSpec + ); + } + + /** + * Creates or updates a DevOps Configuration. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param securityConnectorName The security connector name. + * @param devOpsConfiguration The DevOps configuration resource payload. + * @param options The options parameters. + */ + async beginCreateOrUpdate( + resourceGroupName: string, + securityConnectorName: string, + devOpsConfiguration: DevOpsConfiguration, + options?: DevOpsConfigurationsCreateOrUpdateOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + DevOpsConfigurationsCreateOrUpdateResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = createLroSpec({ + sendOperationFn, + args: { + resourceGroupName, + securityConnectorName, + devOpsConfiguration, + options + }, + spec: createOrUpdateOperationSpec + }); + const poller = await createHttpPoller< + DevOpsConfigurationsCreateOrUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "azure-async-operation" + }); + await poller.poll(); + return poller; + } + + /** + * Creates or updates a DevOps Configuration. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param securityConnectorName The security connector name. + * @param devOpsConfiguration The DevOps configuration resource payload. + * @param options The options parameters. + */ + async beginCreateOrUpdateAndWait( + resourceGroupName: string, + securityConnectorName: string, + devOpsConfiguration: DevOpsConfiguration, + options?: DevOpsConfigurationsCreateOrUpdateOptionalParams + ): Promise { + const poller = await this.beginCreateOrUpdate( + resourceGroupName, + securityConnectorName, + devOpsConfiguration, + options + ); + return poller.pollUntilDone(); + } + + /** + * Updates a DevOps Configuration. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param securityConnectorName The security connector name. + * @param devOpsConfiguration The DevOps configuration resource payload. + * @param options The options parameters. + */ + async beginUpdate( + resourceGroupName: string, + securityConnectorName: string, + devOpsConfiguration: DevOpsConfiguration, + options?: DevOpsConfigurationsUpdateOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + DevOpsConfigurationsUpdateResponse + > + > { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = createLroSpec({ + sendOperationFn, + args: { + resourceGroupName, + securityConnectorName, + devOpsConfiguration, + options + }, + spec: updateOperationSpec + }); + const poller = await createHttpPoller< + DevOpsConfigurationsUpdateResponse, + OperationState + >(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs, + resourceLocationConfig: "azure-async-operation" + }); + await poller.poll(); + return poller; + } + + /** + * Updates a DevOps Configuration. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param securityConnectorName The security connector name. + * @param devOpsConfiguration The DevOps configuration resource payload. + * @param options The options parameters. + */ + async beginUpdateAndWait( + resourceGroupName: string, + securityConnectorName: string, + devOpsConfiguration: DevOpsConfiguration, + options?: DevOpsConfigurationsUpdateOptionalParams + ): Promise { + const poller = await this.beginUpdate( + resourceGroupName, + securityConnectorName, + devOpsConfiguration, + options + ); + return poller.pollUntilDone(); + } + + /** + * Deletes a DevOps Connector. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param securityConnectorName The security connector name. + * @param options The options parameters. + */ + async beginDelete( + resourceGroupName: string, + securityConnectorName: string, + options?: DevOpsConfigurationsDeleteOptionalParams + ): Promise, void>> { + const directSendOperation = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ): Promise => { + return this.client.sendOperationRequest(args, spec); + }; + const sendOperationFn = async ( + args: coreClient.OperationArguments, + spec: coreClient.OperationSpec + ) => { + let currentRawResponse: + | coreClient.FullOperationResponse + | undefined = undefined; + const providedCallback = args.options?.onResponse; + const callback: coreClient.RawResponseCallback = ( + rawResponse: coreClient.FullOperationResponse, + flatResponse: unknown + ) => { + currentRawResponse = rawResponse; + providedCallback?.(rawResponse, flatResponse); + }; + const updatedArgs = { + ...args, + options: { + ...args.options, + onResponse: callback + } + }; + const flatResponse = await directSendOperation(updatedArgs, spec); + return { + flatResponse, + rawResponse: { + statusCode: currentRawResponse!.status, + body: currentRawResponse!.parsedBody, + headers: currentRawResponse!.headers.toJSON() + } + }; + }; + + const lro = createLroSpec({ + sendOperationFn, + args: { resourceGroupName, securityConnectorName, options }, + spec: deleteOperationSpec + }); + const poller = await createHttpPoller>(lro, { + restoreFrom: options?.resumeFrom, + intervalInMs: options?.updateIntervalInMs + }); + await poller.poll(); + return poller; + } + + /** + * Deletes a DevOps Connector. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param securityConnectorName The security connector name. + * @param options The options parameters. + */ + async beginDeleteAndWait( + resourceGroupName: string, + securityConnectorName: string, + options?: DevOpsConfigurationsDeleteOptionalParams + ): Promise { + const poller = await this.beginDelete( + resourceGroupName, + securityConnectorName, + options + ); + return poller.pollUntilDone(); + } + + /** + * ListNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param securityConnectorName The security connector name. + * @param nextLink The nextLink from the previous successful call to the List method. + * @param options The options parameters. + */ + private _listNext( + resourceGroupName: string, + securityConnectorName: string, + nextLink: string, + options?: DevOpsConfigurationsListNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, securityConnectorName, nextLink, options }, + listNextOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName}/devops", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.DevOpsConfigurationListResponse + }, + default: { + bodyMapper: Mappers.ErrorResponseAutoGenerated2 + } + }, + queryParameters: [Parameters.apiVersion26], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.securityConnectorName, + Parameters.resourceGroupName1 + ], + headerParameters: [Parameters.accept], + serializer +}; +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName}/devops/default", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.DevOpsConfiguration + }, + default: { + bodyMapper: Mappers.ErrorResponseAutoGenerated2 + } + }, + queryParameters: [Parameters.apiVersion26], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.securityConnectorName, + Parameters.resourceGroupName1 + ], + headerParameters: [Parameters.accept], + serializer +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName}/devops/default", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.DevOpsConfiguration + }, + 201: { + bodyMapper: Mappers.DevOpsConfiguration + }, + 202: { + bodyMapper: Mappers.DevOpsConfiguration + }, + 204: { + bodyMapper: Mappers.DevOpsConfiguration + }, + default: { + bodyMapper: Mappers.ErrorResponseAutoGenerated2 + } + }, + requestBody: Parameters.devOpsConfiguration, + queryParameters: [Parameters.apiVersion26], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.securityConnectorName, + Parameters.resourceGroupName1 + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const updateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName}/devops/default", + httpMethod: "PATCH", + responses: { + 200: { + bodyMapper: Mappers.DevOpsConfiguration + }, + 201: { + bodyMapper: Mappers.DevOpsConfiguration + }, + 202: { + bodyMapper: Mappers.DevOpsConfiguration + }, + 204: { + bodyMapper: Mappers.DevOpsConfiguration + }, + default: { + bodyMapper: Mappers.ErrorResponseAutoGenerated2 + } + }, + requestBody: Parameters.devOpsConfiguration, + queryParameters: [Parameters.apiVersion26], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.securityConnectorName, + Parameters.resourceGroupName1 + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName}/devops/default", + httpMethod: "DELETE", + responses: { + 200: {}, + 201: {}, + 202: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponseAutoGenerated2 + } + }, + queryParameters: [Parameters.apiVersion26], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.securityConnectorName, + Parameters.resourceGroupName1 + ], + headerParameters: [Parameters.accept], + serializer +}; +const listNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.DevOpsConfigurationListResponse + }, + default: { + bodyMapper: Mappers.ErrorResponseAutoGenerated2 + } + }, + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.nextLink, + Parameters.securityConnectorName, + Parameters.resourceGroupName1 + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/security/arm-security/src/operations/devOpsOperationResults.ts b/sdk/security/arm-security/src/operations/devOpsOperationResults.ts new file mode 100644 index 000000000000..c52b2a2470b6 --- /dev/null +++ b/sdk/security/arm-security/src/operations/devOpsOperationResults.ts @@ -0,0 +1,75 @@ +/* + * 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 { DevOpsOperationResults } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { SecurityCenter } from "../securityCenter"; +import { + DevOpsOperationResultsGetOptionalParams, + DevOpsOperationResultsGetResponse +} from "../models"; + +/** Class containing DevOpsOperationResults operations. */ +export class DevOpsOperationResultsImpl implements DevOpsOperationResults { + private readonly client: SecurityCenter; + + /** + * Initialize a new instance of the class DevOpsOperationResults class. + * @param client Reference to the service client + */ + constructor(client: SecurityCenter) { + this.client = client; + } + + /** + * Get devops long running operation result. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param securityConnectorName The security connector name. + * @param operationResultId The operation result Id. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + securityConnectorName: string, + operationResultId: string, + options?: DevOpsOperationResultsGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, securityConnectorName, operationResultId, options }, + getOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName}/devops/default/operationResults/{operationResultId}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.OperationStatusResult + }, + default: { + bodyMapper: Mappers.ErrorResponseAutoGenerated2 + } + }, + queryParameters: [Parameters.apiVersion26], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.securityConnectorName, + Parameters.resourceGroupName1, + Parameters.operationResultId + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/security/arm-security/src/operations/gitHubOwners.ts b/sdk/security/arm-security/src/operations/gitHubOwners.ts new file mode 100644 index 000000000000..45fb54048635 --- /dev/null +++ b/sdk/security/arm-security/src/operations/gitHubOwners.ts @@ -0,0 +1,287 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { GitHubOwners } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { SecurityCenter } from "../securityCenter"; +import { + GitHubOwner, + GitHubOwnersListNextOptionalParams, + GitHubOwnersListOptionalParams, + GitHubOwnersListResponse, + GitHubOwnersListAvailableOptionalParams, + GitHubOwnersListAvailableResponse, + GitHubOwnersGetOptionalParams, + GitHubOwnersGetResponse, + GitHubOwnersListNextResponse +} from "../models"; + +/// +/** Class containing GitHubOwners operations. */ +export class GitHubOwnersImpl implements GitHubOwners { + private readonly client: SecurityCenter; + + /** + * Initialize a new instance of the class GitHubOwners class. + * @param client Reference to the service client + */ + constructor(client: SecurityCenter) { + this.client = client; + } + + /** + * Returns a list of GitHub owners onboarded to the connector. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param securityConnectorName The security connector name. + * @param options The options parameters. + */ + public list( + resourceGroupName: string, + securityConnectorName: string, + options?: GitHubOwnersListOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listPagingAll( + resourceGroupName, + securityConnectorName, + options + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listPagingPage( + resourceGroupName, + securityConnectorName, + options, + settings + ); + } + }; + } + + private async *listPagingPage( + resourceGroupName: string, + securityConnectorName: string, + options?: GitHubOwnersListOptionalParams, + settings?: PageSettings + ): AsyncIterableIterator { + let result: GitHubOwnersListResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._list( + resourceGroupName, + securityConnectorName, + options + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listNext( + resourceGroupName, + securityConnectorName, + continuationToken, + options + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listPagingAll( + resourceGroupName: string, + securityConnectorName: string, + options?: GitHubOwnersListOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listPagingPage( + resourceGroupName, + securityConnectorName, + options + )) { + yield* page; + } + } + + /** + * Returns a list of all GitHub owners accessible by the user token consumed by the connector. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param securityConnectorName The security connector name. + * @param options The options parameters. + */ + listAvailable( + resourceGroupName: string, + securityConnectorName: string, + options?: GitHubOwnersListAvailableOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, securityConnectorName, options }, + listAvailableOperationSpec + ); + } + + /** + * Returns a list of GitHub owners onboarded to the connector. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param securityConnectorName The security connector name. + * @param options The options parameters. + */ + private _list( + resourceGroupName: string, + securityConnectorName: string, + options?: GitHubOwnersListOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, securityConnectorName, options }, + listOperationSpec + ); + } + + /** + * Returns a monitored GitHub owner. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param securityConnectorName The security connector name. + * @param ownerName The GitHub owner name. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + securityConnectorName: string, + ownerName: string, + options?: GitHubOwnersGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, securityConnectorName, ownerName, options }, + getOperationSpec + ); + } + + /** + * ListNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param securityConnectorName The security connector name. + * @param nextLink The nextLink from the previous successful call to the List method. + * @param options The options parameters. + */ + private _listNext( + resourceGroupName: string, + securityConnectorName: string, + nextLink: string, + options?: GitHubOwnersListNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, securityConnectorName, nextLink, options }, + listNextOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listAvailableOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName}/devops/default/listAvailableGitHubOwners", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.GitHubOwnerListResponse + }, + default: { + bodyMapper: Mappers.ErrorResponseAutoGenerated2 + } + }, + queryParameters: [Parameters.apiVersion26], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.securityConnectorName, + Parameters.resourceGroupName1 + ], + headerParameters: [Parameters.accept], + serializer +}; +const listOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName}/devops/default/gitHubOwners", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.GitHubOwnerListResponse + }, + default: { + bodyMapper: Mappers.ErrorResponseAutoGenerated2 + } + }, + queryParameters: [Parameters.apiVersion26], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.securityConnectorName, + Parameters.resourceGroupName1 + ], + headerParameters: [Parameters.accept], + serializer +}; +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName}/devops/default/gitHubOwners/{ownerName}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.GitHubOwner + }, + default: { + bodyMapper: Mappers.ErrorResponseAutoGenerated2 + } + }, + queryParameters: [Parameters.apiVersion26], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.securityConnectorName, + Parameters.resourceGroupName1, + Parameters.ownerName + ], + headerParameters: [Parameters.accept], + serializer +}; +const listNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.GitHubOwnerListResponse + }, + default: { + bodyMapper: Mappers.ErrorResponseAutoGenerated2 + } + }, + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.nextLink, + Parameters.securityConnectorName, + Parameters.resourceGroupName1 + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/security/arm-security/src/operations/gitHubRepos.ts b/sdk/security/arm-security/src/operations/gitHubRepos.ts new file mode 100644 index 000000000000..66de9486625d --- /dev/null +++ b/sdk/security/arm-security/src/operations/gitHubRepos.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"; +import { GitHubRepos } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { SecurityCenter } from "../securityCenter"; +import { + GitHubRepository, + GitHubReposListNextOptionalParams, + GitHubReposListOptionalParams, + GitHubReposListResponse, + GitHubReposGetOptionalParams, + GitHubReposGetResponse, + GitHubReposListNextResponse +} from "../models"; + +/// +/** Class containing GitHubRepos operations. */ +export class GitHubReposImpl implements GitHubRepos { + private readonly client: SecurityCenter; + + /** + * Initialize a new instance of the class GitHubRepos class. + * @param client Reference to the service client + */ + constructor(client: SecurityCenter) { + this.client = client; + } + + /** + * Returns a list of GitHub repositories onboarded to the connector. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param securityConnectorName The security connector name. + * @param ownerName The GitHub owner name. + * @param options The options parameters. + */ + public list( + resourceGroupName: string, + securityConnectorName: string, + ownerName: string, + options?: GitHubReposListOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listPagingAll( + resourceGroupName, + securityConnectorName, + ownerName, + options + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listPagingPage( + resourceGroupName, + securityConnectorName, + ownerName, + options, + settings + ); + } + }; + } + + private async *listPagingPage( + resourceGroupName: string, + securityConnectorName: string, + ownerName: string, + options?: GitHubReposListOptionalParams, + settings?: PageSettings + ): AsyncIterableIterator { + let result: GitHubReposListResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._list( + resourceGroupName, + securityConnectorName, + ownerName, + options + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listNext( + resourceGroupName, + securityConnectorName, + ownerName, + continuationToken, + options + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listPagingAll( + resourceGroupName: string, + securityConnectorName: string, + ownerName: string, + options?: GitHubReposListOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listPagingPage( + resourceGroupName, + securityConnectorName, + ownerName, + options + )) { + yield* page; + } + } + + /** + * Returns a list of GitHub repositories onboarded to the connector. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param securityConnectorName The security connector name. + * @param ownerName The GitHub owner name. + * @param options The options parameters. + */ + private _list( + resourceGroupName: string, + securityConnectorName: string, + ownerName: string, + options?: GitHubReposListOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, securityConnectorName, ownerName, options }, + listOperationSpec + ); + } + + /** + * Returns a monitored GitHub repository. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param securityConnectorName The security connector name. + * @param ownerName The GitHub owner name. + * @param repoName The repository name. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + securityConnectorName: string, + ownerName: string, + repoName: string, + options?: GitHubReposGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + securityConnectorName, + ownerName, + repoName, + options + }, + getOperationSpec + ); + } + + /** + * ListNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param securityConnectorName The security connector name. + * @param ownerName The GitHub owner name. + * @param nextLink The nextLink from the previous successful call to the List method. + * @param options The options parameters. + */ + private _listNext( + resourceGroupName: string, + securityConnectorName: string, + ownerName: string, + nextLink: string, + options?: GitHubReposListNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + securityConnectorName, + ownerName, + nextLink, + options + }, + listNextOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName}/devops/default/gitHubOwners/{ownerName}/repos", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.GitHubRepositoryListResponse + }, + default: { + bodyMapper: Mappers.ErrorResponseAutoGenerated2 + } + }, + queryParameters: [Parameters.apiVersion26], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.securityConnectorName, + Parameters.resourceGroupName1, + Parameters.ownerName + ], + headerParameters: [Parameters.accept], + serializer +}; +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName}/devops/default/gitHubOwners/{ownerName}/repos/{repoName}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.GitHubRepository + }, + default: { + bodyMapper: Mappers.ErrorResponseAutoGenerated2 + } + }, + queryParameters: [Parameters.apiVersion26], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.securityConnectorName, + Parameters.resourceGroupName1, + Parameters.repoName, + Parameters.ownerName + ], + headerParameters: [Parameters.accept], + serializer +}; +const listNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.GitHubRepositoryListResponse + }, + default: { + bodyMapper: Mappers.ErrorResponseAutoGenerated2 + } + }, + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.nextLink, + Parameters.securityConnectorName, + Parameters.resourceGroupName1, + Parameters.ownerName + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/security/arm-security/src/operations/gitLabGroups.ts b/sdk/security/arm-security/src/operations/gitLabGroups.ts new file mode 100644 index 000000000000..4f0a6915522a --- /dev/null +++ b/sdk/security/arm-security/src/operations/gitLabGroups.ts @@ -0,0 +1,287 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { GitLabGroups } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { SecurityCenter } from "../securityCenter"; +import { + GitLabGroup, + GitLabGroupsListNextOptionalParams, + GitLabGroupsListOptionalParams, + GitLabGroupsListResponse, + GitLabGroupsListAvailableOptionalParams, + GitLabGroupsListAvailableResponse, + GitLabGroupsGetOptionalParams, + GitLabGroupsGetResponse, + GitLabGroupsListNextResponse +} from "../models"; + +/// +/** Class containing GitLabGroups operations. */ +export class GitLabGroupsImpl implements GitLabGroups { + private readonly client: SecurityCenter; + + /** + * Initialize a new instance of the class GitLabGroups class. + * @param client Reference to the service client + */ + constructor(client: SecurityCenter) { + this.client = client; + } + + /** + * Returns a list of GitLab groups onboarded to the connector. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param securityConnectorName The security connector name. + * @param options The options parameters. + */ + public list( + resourceGroupName: string, + securityConnectorName: string, + options?: GitLabGroupsListOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listPagingAll( + resourceGroupName, + securityConnectorName, + options + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listPagingPage( + resourceGroupName, + securityConnectorName, + options, + settings + ); + } + }; + } + + private async *listPagingPage( + resourceGroupName: string, + securityConnectorName: string, + options?: GitLabGroupsListOptionalParams, + settings?: PageSettings + ): AsyncIterableIterator { + let result: GitLabGroupsListResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._list( + resourceGroupName, + securityConnectorName, + options + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listNext( + resourceGroupName, + securityConnectorName, + continuationToken, + options + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listPagingAll( + resourceGroupName: string, + securityConnectorName: string, + options?: GitLabGroupsListOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listPagingPage( + resourceGroupName, + securityConnectorName, + options + )) { + yield* page; + } + } + + /** + * Returns a list of all GitLab groups accessible by the user token consumed by the connector. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param securityConnectorName The security connector name. + * @param options The options parameters. + */ + listAvailable( + resourceGroupName: string, + securityConnectorName: string, + options?: GitLabGroupsListAvailableOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, securityConnectorName, options }, + listAvailableOperationSpec + ); + } + + /** + * Returns a list of GitLab groups onboarded to the connector. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param securityConnectorName The security connector name. + * @param options The options parameters. + */ + private _list( + resourceGroupName: string, + securityConnectorName: string, + options?: GitLabGroupsListOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, securityConnectorName, options }, + listOperationSpec + ); + } + + /** + * Returns a monitored GitLab Group resource for a given fully-qualified name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param securityConnectorName The security connector name. + * @param groupFQName The GitLab group fully-qualified name. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + securityConnectorName: string, + groupFQName: string, + options?: GitLabGroupsGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, securityConnectorName, groupFQName, options }, + getOperationSpec + ); + } + + /** + * ListNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param securityConnectorName The security connector name. + * @param nextLink The nextLink from the previous successful call to the List method. + * @param options The options parameters. + */ + private _listNext( + resourceGroupName: string, + securityConnectorName: string, + nextLink: string, + options?: GitLabGroupsListNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, securityConnectorName, nextLink, options }, + listNextOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listAvailableOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName}/devops/default/listAvailableGitLabGroups", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.GitLabGroupListResponse + }, + default: { + bodyMapper: Mappers.ErrorResponseAutoGenerated2 + } + }, + queryParameters: [Parameters.apiVersion26], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.securityConnectorName, + Parameters.resourceGroupName1 + ], + headerParameters: [Parameters.accept], + serializer +}; +const listOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName}/devops/default/gitLabGroups", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.GitLabGroupListResponse + }, + default: { + bodyMapper: Mappers.ErrorResponseAutoGenerated2 + } + }, + queryParameters: [Parameters.apiVersion26], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.securityConnectorName, + Parameters.resourceGroupName1 + ], + headerParameters: [Parameters.accept], + serializer +}; +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName}/devops/default/gitLabGroups/{groupFQName}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.GitLabGroup + }, + default: { + bodyMapper: Mappers.ErrorResponseAutoGenerated2 + } + }, + queryParameters: [Parameters.apiVersion26], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.securityConnectorName, + Parameters.resourceGroupName1, + Parameters.groupFQName + ], + headerParameters: [Parameters.accept], + serializer +}; +const listNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.GitLabGroupListResponse + }, + default: { + bodyMapper: Mappers.ErrorResponseAutoGenerated2 + } + }, + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.nextLink, + Parameters.securityConnectorName, + Parameters.resourceGroupName1 + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/security/arm-security/src/operations/gitLabProjects.ts b/sdk/security/arm-security/src/operations/gitLabProjects.ts new file mode 100644 index 000000000000..e2d21b3e3ea1 --- /dev/null +++ b/sdk/security/arm-security/src/operations/gitLabProjects.ts @@ -0,0 +1,278 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { GitLabProjects } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { SecurityCenter } from "../securityCenter"; +import { + GitLabProject, + GitLabProjectsListNextOptionalParams, + GitLabProjectsListOptionalParams, + GitLabProjectsListResponse, + GitLabProjectsGetOptionalParams, + GitLabProjectsGetResponse, + GitLabProjectsListNextResponse +} from "../models"; + +/// +/** Class containing GitLabProjects operations. */ +export class GitLabProjectsImpl implements GitLabProjects { + private readonly client: SecurityCenter; + + /** + * Initialize a new instance of the class GitLabProjects class. + * @param client Reference to the service client + */ + constructor(client: SecurityCenter) { + this.client = client; + } + + /** + * Gets a list of GitLab projects that are directly owned by given group and onboarded to the + * connector. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param securityConnectorName The security connector name. + * @param groupFQName The GitLab group fully-qualified name. + * @param options The options parameters. + */ + public list( + resourceGroupName: string, + securityConnectorName: string, + groupFQName: string, + options?: GitLabProjectsListOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listPagingAll( + resourceGroupName, + securityConnectorName, + groupFQName, + options + ); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listPagingPage( + resourceGroupName, + securityConnectorName, + groupFQName, + options, + settings + ); + } + }; + } + + private async *listPagingPage( + resourceGroupName: string, + securityConnectorName: string, + groupFQName: string, + options?: GitLabProjectsListOptionalParams, + settings?: PageSettings + ): AsyncIterableIterator { + let result: GitLabProjectsListResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._list( + resourceGroupName, + securityConnectorName, + groupFQName, + options + ); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listNext( + resourceGroupName, + securityConnectorName, + groupFQName, + continuationToken, + options + ); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listPagingAll( + resourceGroupName: string, + securityConnectorName: string, + groupFQName: string, + options?: GitLabProjectsListOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listPagingPage( + resourceGroupName, + securityConnectorName, + groupFQName, + options + )) { + yield* page; + } + } + + /** + * Gets a list of GitLab projects that are directly owned by given group and onboarded to the + * connector. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param securityConnectorName The security connector name. + * @param groupFQName The GitLab group fully-qualified name. + * @param options The options parameters. + */ + private _list( + resourceGroupName: string, + securityConnectorName: string, + groupFQName: string, + options?: GitLabProjectsListOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, securityConnectorName, groupFQName, options }, + listOperationSpec + ); + } + + /** + * Returns a monitored GitLab Project resource for a given fully-qualified group name and project name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param securityConnectorName The security connector name. + * @param groupFQName The GitLab group fully-qualified name. + * @param projectName The project name. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + securityConnectorName: string, + groupFQName: string, + projectName: string, + options?: GitLabProjectsGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + securityConnectorName, + groupFQName, + projectName, + options + }, + getOperationSpec + ); + } + + /** + * ListNext + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param securityConnectorName The security connector name. + * @param groupFQName The GitLab group fully-qualified name. + * @param nextLink The nextLink from the previous successful call to the List method. + * @param options The options parameters. + */ + private _listNext( + resourceGroupName: string, + securityConnectorName: string, + groupFQName: string, + nextLink: string, + options?: GitLabProjectsListNextOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { + resourceGroupName, + securityConnectorName, + groupFQName, + nextLink, + options + }, + listNextOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName}/devops/default/gitLabGroups/{groupFQName}/projects", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.GitLabProjectListResponse + }, + default: { + bodyMapper: Mappers.ErrorResponseAutoGenerated2 + } + }, + queryParameters: [Parameters.apiVersion26], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.securityConnectorName, + Parameters.resourceGroupName1, + Parameters.groupFQName + ], + headerParameters: [Parameters.accept], + serializer +}; +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName}/devops/default/gitLabGroups/{groupFQName}/projects/{projectName}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.GitLabProject + }, + default: { + bodyMapper: Mappers.ErrorResponseAutoGenerated2 + } + }, + queryParameters: [Parameters.apiVersion26], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.securityConnectorName, + Parameters.resourceGroupName1, + Parameters.projectName, + Parameters.groupFQName + ], + headerParameters: [Parameters.accept], + serializer +}; +const listNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.GitLabProjectListResponse + }, + default: { + bodyMapper: Mappers.ErrorResponseAutoGenerated2 + } + }, + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.nextLink, + Parameters.securityConnectorName, + Parameters.resourceGroupName1, + Parameters.groupFQName + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/security/arm-security/src/operations/gitLabSubgroups.ts b/sdk/security/arm-security/src/operations/gitLabSubgroups.ts new file mode 100644 index 000000000000..fa41f79d51c7 --- /dev/null +++ b/sdk/security/arm-security/src/operations/gitLabSubgroups.ts @@ -0,0 +1,75 @@ +/* + * 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 { GitLabSubgroups } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { SecurityCenter } from "../securityCenter"; +import { + GitLabSubgroupsListOptionalParams, + GitLabSubgroupsListResponse +} from "../models"; + +/** Class containing GitLabSubgroups operations. */ +export class GitLabSubgroupsImpl implements GitLabSubgroups { + private readonly client: SecurityCenter; + + /** + * Initialize a new instance of the class GitLabSubgroups class. + * @param client Reference to the service client + */ + constructor(client: SecurityCenter) { + this.client = client; + } + + /** + * Gets nested subgroups of given GitLab Group which are onboarded to the connector. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param securityConnectorName The security connector name. + * @param groupFQName The GitLab group fully-qualified name. + * @param options The options parameters. + */ + list( + resourceGroupName: string, + securityConnectorName: string, + groupFQName: string, + options?: GitLabSubgroupsListOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceGroupName, securityConnectorName, groupFQName, options }, + listOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName}/devops/default/gitLabGroups/{groupFQName}/listSubgroups", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.GitLabGroupListResponse + }, + default: { + bodyMapper: Mappers.ErrorResponseAutoGenerated2 + } + }, + queryParameters: [Parameters.apiVersion26], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.securityConnectorName, + Parameters.resourceGroupName1, + Parameters.groupFQName + ], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/security/arm-security/src/operations/governanceAssignments.ts b/sdk/security/arm-security/src/operations/governanceAssignments.ts index 98f9a1885cde..c119c7fe7130 100644 --- a/sdk/security/arm-security/src/operations/governanceAssignments.ts +++ b/sdk/security/arm-security/src/operations/governanceAssignments.ts @@ -235,7 +235,7 @@ const listOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion16], + queryParameters: [Parameters.apiVersion17], urlParameters: [ Parameters.$host, Parameters.scope1, @@ -256,7 +256,7 @@ const getOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion16], + queryParameters: [Parameters.apiVersion17], urlParameters: [ Parameters.$host, Parameters.scope1, @@ -282,7 +282,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { } }, requestBody: Parameters.governanceAssignment, - queryParameters: [Parameters.apiVersion16], + queryParameters: [Parameters.apiVersion17], urlParameters: [ Parameters.$host, Parameters.scope1, @@ -298,7 +298,7 @@ const deleteOperationSpec: coreClient.OperationSpec = { "/{scope}/providers/Microsoft.Security/assessments/{assessmentName}/governanceAssignments/{assignmentKey}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: {} }, - queryParameters: [Parameters.apiVersion16], + queryParameters: [Parameters.apiVersion17], 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 eb65637f832a..56abcf8c680a 100644 --- a/sdk/security/arm-security/src/operations/governanceRules.ts +++ b/sdk/security/arm-security/src/operations/governanceRules.ts @@ -404,7 +404,7 @@ const listOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion16], + queryParameters: [Parameters.apiVersion17], urlParameters: [Parameters.$host, Parameters.scope1], headerParameters: [Parameters.accept], serializer @@ -420,7 +420,7 @@ const getOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion16], + queryParameters: [Parameters.apiVersion17], urlParameters: [Parameters.$host, Parameters.scope1, Parameters.ruleId], headerParameters: [Parameters.accept], serializer @@ -440,7 +440,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { } }, requestBody: Parameters.governanceRule, - queryParameters: [Parameters.apiVersion16], + queryParameters: [Parameters.apiVersion17], urlParameters: [Parameters.$host, Parameters.scope1, Parameters.ruleId], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", @@ -450,7 +450,7 @@ const deleteOperationSpec: coreClient.OperationSpec = { path: "/{scope}/providers/Microsoft.Security/governanceRules/{ruleId}", httpMethod: "DELETE", responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - queryParameters: [Parameters.apiVersion16], + queryParameters: [Parameters.apiVersion17], urlParameters: [Parameters.$host, Parameters.scope1, Parameters.ruleId], serializer }; @@ -476,7 +476,7 @@ const executeOperationSpec: coreClient.OperationSpec = { } }, requestBody: Parameters.executeGovernanceRuleParams, - queryParameters: [Parameters.apiVersion16], + queryParameters: [Parameters.apiVersion17], urlParameters: [Parameters.$host, Parameters.scope1, Parameters.ruleId], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", @@ -497,7 +497,7 @@ const operationResultsOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion16], + queryParameters: [Parameters.apiVersion17], urlParameters: [ Parameters.$host, Parameters.scope1, diff --git a/sdk/security/arm-security/src/operations/healthReportOperations.ts b/sdk/security/arm-security/src/operations/healthReportOperations.ts deleted file mode 100644 index ed8525397864..000000000000 --- a/sdk/security/arm-security/src/operations/healthReportOperations.ts +++ /dev/null @@ -1,71 +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 { HealthReportOperations } from "../operationsInterfaces"; -import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers"; -import * as Parameters from "../models/parameters"; -import { SecurityCenter } from "../securityCenter"; -import { - HealthReportGetOptionalParams, - HealthReportGetResponse -} from "../models"; - -/** Class containing HealthReportOperations operations. */ -export class HealthReportOperationsImpl implements HealthReportOperations { - private readonly client: SecurityCenter; - - /** - * Initialize a new instance of the class HealthReportOperations class. - * @param client Reference to the service client - */ - constructor(client: SecurityCenter) { - this.client = client; - } - - /** - * Get health report of resource - * @param resourceId The identifier of the resource. - * @param healthReportName The health report Key - Unique key for the health report type - * @param options The options parameters. - */ - get( - resourceId: string, - healthReportName: string, - options?: HealthReportGetOptionalParams - ): Promise { - return this.client.sendOperationRequest( - { resourceId, healthReportName, options }, - getOperationSpec - ); - } -} -// Operation Specifications -const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); - -const getOperationSpec: coreClient.OperationSpec = { - path: - "/{resourceId}/providers/Microsoft.Security/healthReports/{healthReportName}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.HealthReport - }, - default: { - bodyMapper: Mappers.ErrorResponseAutoGenerated - } - }, - queryParameters: [Parameters.apiVersion19], - urlParameters: [ - Parameters.$host, - Parameters.resourceId, - Parameters.healthReportName - ], - 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 5d2a17a24404..a2d50a4b781e 100644 --- a/sdk/security/arm-security/src/operations/healthReports.ts +++ b/sdk/security/arm-security/src/operations/healthReports.ts @@ -18,6 +18,8 @@ import { HealthReportsListNextOptionalParams, HealthReportsListOptionalParams, HealthReportsListResponse, + HealthReportsGetOptionalParams, + HealthReportsGetResponse, HealthReportsListNextResponse } from "../models"; @@ -111,6 +113,23 @@ export class HealthReportsImpl implements HealthReports { ); } + /** + * Get health report of resource + * @param resourceId The identifier of the resource. + * @param healthReportName The health report Key - Unique key for the health report type + * @param options The options parameters. + */ + get( + resourceId: string, + healthReportName: string, + options?: HealthReportsGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { resourceId, healthReportName, options }, + getOperationSpec + ); + } + /** * ListNext * @param scope The scope at which the operation is performed. @@ -142,11 +161,32 @@ const listOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponseAutoGenerated } }, - queryParameters: [Parameters.apiVersion19], + queryParameters: [Parameters.apiVersion24], urlParameters: [Parameters.$host, Parameters.scope2], headerParameters: [Parameters.accept], serializer }; +const getOperationSpec: coreClient.OperationSpec = { + path: + "/{resourceId}/providers/Microsoft.Security/healthReports/{healthReportName}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.HealthReport + }, + default: { + bodyMapper: Mappers.ErrorResponseAutoGenerated + } + }, + queryParameters: [Parameters.apiVersion24], + urlParameters: [ + Parameters.$host, + Parameters.resourceId, + Parameters.healthReportName + ], + headerParameters: [Parameters.accept], + serializer +}; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", diff --git a/sdk/security/arm-security/src/operations/index.ts b/sdk/security/arm-security/src/operations/index.ts index 34ac4c6ae693..adb65c43c7d6 100644 --- a/sdk/security/arm-security/src/operations/index.ts +++ b/sdk/security/arm-security/src/operations/index.ts @@ -47,6 +47,7 @@ export * from "./secureScoreControls"; export * from "./secureScoreControlDefinitions"; export * from "./securitySolutions"; export * from "./connectors"; +export * from "./sensitivitySettings"; export * from "./alerts"; export * from "./settings"; export * from "./ingestionSettings"; @@ -60,10 +61,21 @@ export * from "./securityConnectorApplication"; export * from "./aPICollection"; export * from "./aPICollectionOnboarding"; export * from "./aPICollectionOffboarding"; -export * from "./healthReports"; -export * from "./healthReportOperations"; export * from "./sqlVulnerabilityAssessmentScans"; export * from "./sqlVulnerabilityAssessmentScanResults"; export * from "./sqlVulnerabilityAssessmentBaselineRules"; export * from "./securityConnectors"; export * from "./securityOperators"; +export * from "./serverVulnerabilityAssessmentsSettings"; +export * from "./healthReports"; +export * from "./defenderForStorage"; +export * from "./azureDevOpsOrgs"; +export * from "./azureDevOpsProjects"; +export * from "./azureDevOpsRepos"; +export * from "./devOpsConfigurations"; +export * from "./gitHubOwners"; +export * from "./gitHubRepos"; +export * from "./gitLabGroups"; +export * from "./gitLabSubgroups"; +export * from "./gitLabProjects"; +export * from "./devOpsOperationResults"; diff --git a/sdk/security/arm-security/src/operations/ingestionSettings.ts b/sdk/security/arm-security/src/operations/ingestionSettings.ts index ec5e8d1b26c4..a5a70435a413 100644 --- a/sdk/security/arm-security/src/operations/ingestionSettings.ts +++ b/sdk/security/arm-security/src/operations/ingestionSettings.ts @@ -219,7 +219,7 @@ const listOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion14], + queryParameters: [Parameters.apiVersion15], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], serializer @@ -236,7 +236,7 @@ const getOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion14], + queryParameters: [Parameters.apiVersion15], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -258,7 +258,7 @@ const createOperationSpec: coreClient.OperationSpec = { } }, requestBody: Parameters.ingestionSetting, - queryParameters: [Parameters.apiVersion14], + queryParameters: [Parameters.apiVersion15], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -279,7 +279,7 @@ const deleteOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion14], + queryParameters: [Parameters.apiVersion15], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -300,7 +300,7 @@ const listTokensOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion14], + queryParameters: [Parameters.apiVersion15], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -321,7 +321,7 @@ const listConnectionStringsOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion14], + queryParameters: [Parameters.apiVersion15], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/security/arm-security/src/operations/securityConnectorApplication.ts b/sdk/security/arm-security/src/operations/securityConnectorApplication.ts index 86e2dfb5ae2a..370d6c5a50f3 100644 --- a/sdk/security/arm-security/src/operations/securityConnectorApplication.ts +++ b/sdk/security/arm-security/src/operations/securityConnectorApplication.ts @@ -116,7 +116,7 @@ const getOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion17], + queryParameters: [Parameters.apiVersion18], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -143,7 +143,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { } }, requestBody: Parameters.application, - queryParameters: [Parameters.apiVersion17], + queryParameters: [Parameters.apiVersion18], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -160,7 +160,7 @@ const deleteOperationSpec: coreClient.OperationSpec = { "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName}/providers/Microsoft.Security/applications/{applicationId}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: {} }, - queryParameters: [Parameters.apiVersion17], + queryParameters: [Parameters.apiVersion18], 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 c76c79f3b9e7..9436d7a1e731 100644 --- a/sdk/security/arm-security/src/operations/securityConnectorApplications.ts +++ b/sdk/security/arm-security/src/operations/securityConnectorApplications.ts @@ -173,7 +173,7 @@ const listOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion17], + queryParameters: [Parameters.apiVersion18], 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 e2ebfbc44bf9..1a139139581e 100644 --- a/sdk/security/arm-security/src/operations/securityConnectors.ts +++ b/sdk/security/arm-security/src/operations/securityConnectors.ts @@ -324,7 +324,7 @@ const listOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion20], + queryParameters: [Parameters.apiVersion21], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], serializer @@ -341,7 +341,7 @@ const listByResourceGroupOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion20], + queryParameters: [Parameters.apiVersion21], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -362,7 +362,7 @@ const getOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion20], + queryParameters: [Parameters.apiVersion21], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -388,7 +388,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { } }, requestBody: Parameters.securityConnector, - queryParameters: [Parameters.apiVersion20], + queryParameters: [Parameters.apiVersion21], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -412,7 +412,7 @@ const updateOperationSpec: coreClient.OperationSpec = { } }, requestBody: Parameters.securityConnector, - queryParameters: [Parameters.apiVersion20], + queryParameters: [Parameters.apiVersion21], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -434,7 +434,7 @@ const deleteOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion20], + queryParameters: [Parameters.apiVersion21], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/security/arm-security/src/operations/securityOperators.ts b/sdk/security/arm-security/src/operations/securityOperators.ts index 91a76d6caaa5..81604abe5f64 100644 --- a/sdk/security/arm-security/src/operations/securityOperators.ts +++ b/sdk/security/arm-security/src/operations/securityOperators.ts @@ -114,7 +114,7 @@ const listOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion21], + queryParameters: [Parameters.apiVersion22], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -135,7 +135,7 @@ const getOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion21], + queryParameters: [Parameters.apiVersion22], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -157,7 +157,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion21], + queryParameters: [Parameters.apiVersion22], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -178,7 +178,7 @@ const deleteOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion21], + queryParameters: [Parameters.apiVersion22], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/security/arm-security/src/operations/sensitivitySettings.ts b/sdk/security/arm-security/src/operations/sensitivitySettings.ts new file mode 100644 index 000000000000..f5c5d059edf7 --- /dev/null +++ b/sdk/security/arm-security/src/operations/sensitivitySettings.ts @@ -0,0 +1,59 @@ +/* + * 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 { SensitivitySettings } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { SecurityCenter } from "../securityCenter"; +import { + SensitivitySettingsListOptionalParams, + SensitivitySettingsListResponse +} from "../models"; + +/** Class containing SensitivitySettings operations. */ +export class SensitivitySettingsImpl implements SensitivitySettings { + private readonly client: SecurityCenter; + + /** + * Initialize a new instance of the class SensitivitySettings class. + * @param client Reference to the service client + */ + constructor(client: SecurityCenter) { + this.client = client; + } + + /** + * Gets a list with a single sensitivity settings resource + * @param options The options parameters. + */ + list( + options?: SensitivitySettingsListOptionalParams + ): Promise { + return this.client.sendOperationRequest({ options }, listOperationSpec); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listOperationSpec: coreClient.OperationSpec = { + path: "/providers/Microsoft.Security/sensitivitySettings", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.GetSensitivitySettingsListResponse + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + queryParameters: [Parameters.apiVersion12], + urlParameters: [Parameters.$host], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/security/arm-security/src/operations/serverVulnerabilityAssessmentsSettings.ts b/sdk/security/arm-security/src/operations/serverVulnerabilityAssessmentsSettings.ts new file mode 100644 index 000000000000..f4b89556fddd --- /dev/null +++ b/sdk/security/arm-security/src/operations/serverVulnerabilityAssessmentsSettings.ts @@ -0,0 +1,283 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper"; +import { ServerVulnerabilityAssessmentsSettings } from "../operationsInterfaces"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers"; +import * as Parameters from "../models/parameters"; +import { SecurityCenter } from "../securityCenter"; +import { + ServerVulnerabilityAssessmentsSettingUnion, + ServerVulnerabilityAssessmentsSettingsListBySubscriptionNextOptionalParams, + ServerVulnerabilityAssessmentsSettingsListBySubscriptionOptionalParams, + ServerVulnerabilityAssessmentsSettingsListBySubscriptionResponse, + ServerVulnerabilityAssessmentsSettingKindName, + ServerVulnerabilityAssessmentsSettingsGetOptionalParams, + ServerVulnerabilityAssessmentsSettingsGetResponse, + ServerVulnerabilityAssessmentsSettingsCreateOrUpdateOptionalParams, + ServerVulnerabilityAssessmentsSettingsCreateOrUpdateResponse, + ServerVulnerabilityAssessmentsSettingsDeleteOptionalParams, + ServerVulnerabilityAssessmentsSettingsListBySubscriptionNextResponse +} from "../models"; + +/// +/** Class containing ServerVulnerabilityAssessmentsSettings operations. */ +export class ServerVulnerabilityAssessmentsSettingsImpl + implements ServerVulnerabilityAssessmentsSettings { + private readonly client: SecurityCenter; + + /** + * Initialize a new instance of the class ServerVulnerabilityAssessmentsSettings class. + * @param client Reference to the service client + */ + constructor(client: SecurityCenter) { + this.client = client; + } + + /** + * Get a list of all the server vulnerability assessments settings over a subscription level scope + * @param options The options parameters. + */ + public listBySubscription( + options?: ServerVulnerabilityAssessmentsSettingsListBySubscriptionOptionalParams + ): PagedAsyncIterableIterator { + const iter = this.listBySubscriptionPagingAll(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.listBySubscriptionPagingPage(options, settings); + } + }; + } + + private async *listBySubscriptionPagingPage( + options?: ServerVulnerabilityAssessmentsSettingsListBySubscriptionOptionalParams, + settings?: PageSettings + ): AsyncIterableIterator { + let result: ServerVulnerabilityAssessmentsSettingsListBySubscriptionResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._listBySubscription(options); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listBySubscriptionNext(continuationToken, options); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listBySubscriptionPagingAll( + options?: ServerVulnerabilityAssessmentsSettingsListBySubscriptionOptionalParams + ): AsyncIterableIterator { + for await (const page of this.listBySubscriptionPagingPage(options)) { + yield* page; + } + } + + /** + * Get a list of all the server vulnerability assessments settings over a subscription level scope + * @param options The options parameters. + */ + private _listBySubscription( + options?: ServerVulnerabilityAssessmentsSettingsListBySubscriptionOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { options }, + listBySubscriptionOperationSpec + ); + } + + /** + * Get a server vulnerability assessments setting of the requested kind, that is set on the + * subscription + * @param settingKind The kind of the server vulnerability assessments setting + * @param options The options parameters. + */ + get( + settingKind: ServerVulnerabilityAssessmentsSettingKindName, + options?: ServerVulnerabilityAssessmentsSettingsGetOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { settingKind, options }, + getOperationSpec + ); + } + + /** + * Create or update a server vulnerability assessments setting of the requested kind on the + * subscription + * @param settingKind The kind of the server vulnerability assessments setting + * @param serverVulnerabilityAssessmentsSetting A server vulnerability assessments setting over a + * predefined scope + * @param options The options parameters. + */ + createOrUpdate( + settingKind: ServerVulnerabilityAssessmentsSettingKindName, + serverVulnerabilityAssessmentsSetting: ServerVulnerabilityAssessmentsSettingUnion, + options?: ServerVulnerabilityAssessmentsSettingsCreateOrUpdateOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { settingKind, serverVulnerabilityAssessmentsSetting, options }, + createOrUpdateOperationSpec + ); + } + + /** + * Delete the server vulnerability assessments setting of the requested kind from the subscription + * @param settingKind The kind of the server vulnerability assessments setting + * @param options The options parameters. + */ + delete( + settingKind: ServerVulnerabilityAssessmentsSettingKindName, + options?: ServerVulnerabilityAssessmentsSettingsDeleteOptionalParams + ): Promise { + return this.client.sendOperationRequest( + { settingKind, options }, + deleteOperationSpec + ); + } + + /** + * ListBySubscriptionNext + * @param nextLink The nextLink from the previous successful call to the ListBySubscription method. + * @param options The options parameters. + */ + private _listBySubscriptionNext( + nextLink: string, + options?: ServerVulnerabilityAssessmentsSettingsListBySubscriptionNextOptionalParams + ): Promise< + ServerVulnerabilityAssessmentsSettingsListBySubscriptionNextResponse + > { + return this.client.sendOperationRequest( + { nextLink, options }, + listBySubscriptionNextOperationSpec + ); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listBySubscriptionOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/providers/Microsoft.Security/serverVulnerabilityAssessmentsSettings", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ServerVulnerabilityAssessmentsSettingsList + }, + default: { + bodyMapper: Mappers.ErrorResponseAutoGenerated + } + }, + queryParameters: [Parameters.apiVersion23], + urlParameters: [Parameters.$host, Parameters.subscriptionId], + headerParameters: [Parameters.accept], + serializer +}; +const getOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/providers/Microsoft.Security/serverVulnerabilityAssessmentsSettings/{settingKind}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ServerVulnerabilityAssessmentsSetting + }, + default: { + bodyMapper: Mappers.ErrorResponseAutoGenerated + } + }, + queryParameters: [Parameters.apiVersion23], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.settingKind + ], + headerParameters: [Parameters.accept], + serializer +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/providers/Microsoft.Security/serverVulnerabilityAssessmentsSettings/{settingKind}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.ServerVulnerabilityAssessmentsSetting + }, + 201: { + bodyMapper: Mappers.ServerVulnerabilityAssessmentsSetting + }, + default: { + bodyMapper: Mappers.ErrorResponseAutoGenerated + } + }, + requestBody: Parameters.serverVulnerabilityAssessmentsSetting, + queryParameters: [Parameters.apiVersion23], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.settingKind + ], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: + "/subscriptions/{subscriptionId}/providers/Microsoft.Security/serverVulnerabilityAssessmentsSettings/{settingKind}", + httpMethod: "DELETE", + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponseAutoGenerated + } + }, + queryParameters: [Parameters.apiVersion23], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.settingKind + ], + headerParameters: [Parameters.accept], + serializer +}; +const listBySubscriptionNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ServerVulnerabilityAssessmentsSettingsList + }, + default: { + bodyMapper: Mappers.ErrorResponseAutoGenerated + } + }, + 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 656fedf1aea4..028a8cd55c8e 100644 --- a/sdk/security/arm-security/src/operations/settings.ts +++ b/sdk/security/arm-security/src/operations/settings.ts @@ -164,7 +164,7 @@ const listOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion13], + queryParameters: [Parameters.apiVersion14], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], serializer @@ -181,7 +181,7 @@ const getOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion13], + queryParameters: [Parameters.apiVersion14], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -203,7 +203,7 @@ const updateOperationSpec: coreClient.OperationSpec = { } }, requestBody: Parameters.setting1, - queryParameters: [Parameters.apiVersion13], + queryParameters: [Parameters.apiVersion14], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/security/arm-security/src/operations/softwareInventories.ts b/sdk/security/arm-security/src/operations/softwareInventories.ts index c27168e8f7f0..f4814c85e2bd 100644 --- a/sdk/security/arm-security/src/operations/softwareInventories.ts +++ b/sdk/security/arm-security/src/operations/softwareInventories.ts @@ -330,7 +330,7 @@ const listByExtendedResourceOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion15], + queryParameters: [Parameters.apiVersion16], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -354,7 +354,7 @@ const listBySubscriptionOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion15], + queryParameters: [Parameters.apiVersion16], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], serializer @@ -371,7 +371,7 @@ const getOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion15], + queryParameters: [Parameters.apiVersion16], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/security/arm-security/src/operations/sqlVulnerabilityAssessmentBaselineRules.ts b/sdk/security/arm-security/src/operations/sqlVulnerabilityAssessmentBaselineRules.ts index 978b404987ae..973378d453e2 100644 --- a/sdk/security/arm-security/src/operations/sqlVulnerabilityAssessmentBaselineRules.ts +++ b/sdk/security/arm-security/src/operations/sqlVulnerabilityAssessmentBaselineRules.ts @@ -143,7 +143,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { } }, requestBody: Parameters.body4, - queryParameters: [Parameters.apiVersion19, Parameters.workspaceId], + queryParameters: [Parameters.workspaceId, Parameters.apiVersion20], urlParameters: [Parameters.$host, Parameters.resourceId, Parameters.ruleId], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", @@ -161,7 +161,7 @@ const getOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion19, Parameters.workspaceId], + queryParameters: [Parameters.workspaceId, Parameters.apiVersion20], urlParameters: [Parameters.$host, Parameters.resourceId, Parameters.ruleId], headerParameters: [Parameters.accept], serializer @@ -177,7 +177,7 @@ const deleteOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion19, Parameters.workspaceId], + queryParameters: [Parameters.workspaceId, Parameters.apiVersion20], urlParameters: [Parameters.$host, Parameters.resourceId, Parameters.ruleId], headerParameters: [Parameters.accept], serializer @@ -194,7 +194,7 @@ const listOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion19, Parameters.workspaceId], + queryParameters: [Parameters.workspaceId, Parameters.apiVersion20], urlParameters: [Parameters.$host, Parameters.resourceId], headerParameters: [Parameters.accept], serializer @@ -212,7 +212,7 @@ const addOperationSpec: coreClient.OperationSpec = { } }, requestBody: Parameters.body5, - queryParameters: [Parameters.apiVersion19, Parameters.workspaceId], + queryParameters: [Parameters.workspaceId, Parameters.apiVersion20], 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 66291f56d2cc..25fd6803623d 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.apiVersion19, Parameters.workspaceId], + queryParameters: [Parameters.workspaceId, Parameters.apiVersion20], urlParameters: [ Parameters.$host, Parameters.resourceId, @@ -108,7 +108,7 @@ const listOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion19, Parameters.workspaceId], + queryParameters: [Parameters.workspaceId, Parameters.apiVersion20], 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 61fb5937f737..bc77aa9b6805 100644 --- a/sdk/security/arm-security/src/operations/sqlVulnerabilityAssessmentScans.ts +++ b/sdk/security/arm-security/src/operations/sqlVulnerabilityAssessmentScans.ts @@ -82,7 +82,7 @@ const getOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion19, Parameters.workspaceId], + queryParameters: [Parameters.workspaceId, Parameters.apiVersion20], urlParameters: [Parameters.$host, Parameters.resourceId, Parameters.scanId], headerParameters: [Parameters.accept], serializer @@ -99,7 +99,7 @@ const listOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError } }, - queryParameters: [Parameters.apiVersion19, Parameters.workspaceId], + queryParameters: [Parameters.workspaceId, Parameters.apiVersion20], urlParameters: [Parameters.$host, Parameters.resourceId], headerParameters: [Parameters.accept], serializer diff --git a/sdk/security/arm-security/src/operationsInterfaces/azureDevOpsOrgs.ts b/sdk/security/arm-security/src/operationsInterfaces/azureDevOpsOrgs.ts new file mode 100644 index 000000000000..f7364a19154d --- /dev/null +++ b/sdk/security/arm-security/src/operationsInterfaces/azureDevOpsOrgs.ts @@ -0,0 +1,133 @@ +/* + * 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 { + AzureDevOpsOrg, + AzureDevOpsOrgsListOptionalParams, + AzureDevOpsOrgsListAvailableOptionalParams, + AzureDevOpsOrgsListAvailableResponse, + AzureDevOpsOrgsGetOptionalParams, + AzureDevOpsOrgsGetResponse, + AzureDevOpsOrgsCreateOrUpdateOptionalParams, + AzureDevOpsOrgsCreateOrUpdateResponse, + AzureDevOpsOrgsUpdateOptionalParams, + AzureDevOpsOrgsUpdateResponse +} from "../models"; + +/// +/** Interface representing a AzureDevOpsOrgs. */ +export interface AzureDevOpsOrgs { + /** + * Returns a list of Azure DevOps organizations onboarded to the connector. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param securityConnectorName The security connector name. + * @param options The options parameters. + */ + list( + resourceGroupName: string, + securityConnectorName: string, + options?: AzureDevOpsOrgsListOptionalParams + ): PagedAsyncIterableIterator; + /** + * Returns a list of all Azure DevOps organizations accessible by the user token consumed by the + * connector. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param securityConnectorName The security connector name. + * @param options The options parameters. + */ + listAvailable( + resourceGroupName: string, + securityConnectorName: string, + options?: AzureDevOpsOrgsListAvailableOptionalParams + ): Promise; + /** + * Returns a monitored Azure DevOps organization resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param securityConnectorName The security connector name. + * @param orgName The Azure DevOps organization name. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + securityConnectorName: string, + orgName: string, + options?: AzureDevOpsOrgsGetOptionalParams + ): Promise; + /** + * Creates or updates monitored Azure DevOps organization details. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param securityConnectorName The security connector name. + * @param orgName The Azure DevOps organization name. + * @param azureDevOpsOrg The Azure DevOps organization resource payload. + * @param options The options parameters. + */ + beginCreateOrUpdate( + resourceGroupName: string, + securityConnectorName: string, + orgName: string, + azureDevOpsOrg: AzureDevOpsOrg, + options?: AzureDevOpsOrgsCreateOrUpdateOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + AzureDevOpsOrgsCreateOrUpdateResponse + > + >; + /** + * Creates or updates monitored Azure DevOps organization details. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param securityConnectorName The security connector name. + * @param orgName The Azure DevOps organization name. + * @param azureDevOpsOrg The Azure DevOps organization resource payload. + * @param options The options parameters. + */ + beginCreateOrUpdateAndWait( + resourceGroupName: string, + securityConnectorName: string, + orgName: string, + azureDevOpsOrg: AzureDevOpsOrg, + options?: AzureDevOpsOrgsCreateOrUpdateOptionalParams + ): Promise; + /** + * Updates monitored Azure DevOps organization details. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param securityConnectorName The security connector name. + * @param orgName The Azure DevOps organization name. + * @param azureDevOpsOrg The Azure DevOps organization resource payload. + * @param options The options parameters. + */ + beginUpdate( + resourceGroupName: string, + securityConnectorName: string, + orgName: string, + azureDevOpsOrg: AzureDevOpsOrg, + options?: AzureDevOpsOrgsUpdateOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + AzureDevOpsOrgsUpdateResponse + > + >; + /** + * Updates monitored Azure DevOps organization details. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param securityConnectorName The security connector name. + * @param orgName The Azure DevOps organization name. + * @param azureDevOpsOrg The Azure DevOps organization resource payload. + * @param options The options parameters. + */ + beginUpdateAndWait( + resourceGroupName: string, + securityConnectorName: string, + orgName: string, + azureDevOpsOrg: AzureDevOpsOrg, + options?: AzureDevOpsOrgsUpdateOptionalParams + ): Promise; +} diff --git a/sdk/security/arm-security/src/operationsInterfaces/azureDevOpsProjects.ts b/sdk/security/arm-security/src/operationsInterfaces/azureDevOpsProjects.ts new file mode 100644 index 000000000000..1ec0a8c3388d --- /dev/null +++ b/sdk/security/arm-security/src/operationsInterfaces/azureDevOpsProjects.ts @@ -0,0 +1,131 @@ +/* + * 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 { + AzureDevOpsProject, + AzureDevOpsProjectsListOptionalParams, + AzureDevOpsProjectsGetOptionalParams, + AzureDevOpsProjectsGetResponse, + AzureDevOpsProjectsCreateOrUpdateOptionalParams, + AzureDevOpsProjectsCreateOrUpdateResponse, + AzureDevOpsProjectsUpdateOptionalParams, + AzureDevOpsProjectsUpdateResponse +} from "../models"; + +/// +/** Interface representing a AzureDevOpsProjects. */ +export interface AzureDevOpsProjects { + /** + * Returns a list of Azure DevOps projects onboarded to the connector. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param securityConnectorName The security connector name. + * @param orgName The Azure DevOps organization name. + * @param options The options parameters. + */ + list( + resourceGroupName: string, + securityConnectorName: string, + orgName: string, + options?: AzureDevOpsProjectsListOptionalParams + ): PagedAsyncIterableIterator; + /** + * Returns a monitored Azure DevOps project resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param securityConnectorName The security connector name. + * @param orgName The Azure DevOps organization name. + * @param projectName The project name. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + securityConnectorName: string, + orgName: string, + projectName: string, + options?: AzureDevOpsProjectsGetOptionalParams + ): Promise; + /** + * Creates or updates a monitored Azure DevOps project resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param securityConnectorName The security connector name. + * @param orgName The Azure DevOps organization name. + * @param projectName The project name. + * @param azureDevOpsProject The Azure DevOps project resource payload. + * @param options The options parameters. + */ + beginCreateOrUpdate( + resourceGroupName: string, + securityConnectorName: string, + orgName: string, + projectName: string, + azureDevOpsProject: AzureDevOpsProject, + options?: AzureDevOpsProjectsCreateOrUpdateOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + AzureDevOpsProjectsCreateOrUpdateResponse + > + >; + /** + * Creates or updates a monitored Azure DevOps project resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param securityConnectorName The security connector name. + * @param orgName The Azure DevOps organization name. + * @param projectName The project name. + * @param azureDevOpsProject The Azure DevOps project resource payload. + * @param options The options parameters. + */ + beginCreateOrUpdateAndWait( + resourceGroupName: string, + securityConnectorName: string, + orgName: string, + projectName: string, + azureDevOpsProject: AzureDevOpsProject, + options?: AzureDevOpsProjectsCreateOrUpdateOptionalParams + ): Promise; + /** + * Updates a monitored Azure DevOps project resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param securityConnectorName The security connector name. + * @param orgName The Azure DevOps organization name. + * @param projectName The project name. + * @param azureDevOpsProject The Azure DevOps project resource payload. + * @param options The options parameters. + */ + beginUpdate( + resourceGroupName: string, + securityConnectorName: string, + orgName: string, + projectName: string, + azureDevOpsProject: AzureDevOpsProject, + options?: AzureDevOpsProjectsUpdateOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + AzureDevOpsProjectsUpdateResponse + > + >; + /** + * Updates a monitored Azure DevOps project resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param securityConnectorName The security connector name. + * @param orgName The Azure DevOps organization name. + * @param projectName The project name. + * @param azureDevOpsProject The Azure DevOps project resource payload. + * @param options The options parameters. + */ + beginUpdateAndWait( + resourceGroupName: string, + securityConnectorName: string, + orgName: string, + projectName: string, + azureDevOpsProject: AzureDevOpsProject, + options?: AzureDevOpsProjectsUpdateOptionalParams + ): Promise; +} diff --git a/sdk/security/arm-security/src/operationsInterfaces/azureDevOpsRepos.ts b/sdk/security/arm-security/src/operationsInterfaces/azureDevOpsRepos.ts new file mode 100644 index 000000000000..82d95be13d56 --- /dev/null +++ b/sdk/security/arm-security/src/operationsInterfaces/azureDevOpsRepos.ts @@ -0,0 +1,143 @@ +/* + * 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 { + AzureDevOpsRepository, + AzureDevOpsReposListOptionalParams, + AzureDevOpsReposGetOptionalParams, + AzureDevOpsReposGetResponse, + AzureDevOpsReposCreateOrUpdateOptionalParams, + AzureDevOpsReposCreateOrUpdateResponse, + AzureDevOpsReposUpdateOptionalParams, + AzureDevOpsReposUpdateResponse +} from "../models"; + +/// +/** Interface representing a AzureDevOpsRepos. */ +export interface AzureDevOpsRepos { + /** + * Returns a list of Azure DevOps repositories onboarded to the connector. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param securityConnectorName The security connector name. + * @param orgName The Azure DevOps organization name. + * @param projectName The project name. + * @param options The options parameters. + */ + list( + resourceGroupName: string, + securityConnectorName: string, + orgName: string, + projectName: string, + options?: AzureDevOpsReposListOptionalParams + ): PagedAsyncIterableIterator; + /** + * Returns a monitored Azure DevOps repository resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param securityConnectorName The security connector name. + * @param orgName The Azure DevOps organization name. + * @param projectName The project name. + * @param repoName The repository name. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + securityConnectorName: string, + orgName: string, + projectName: string, + repoName: string, + options?: AzureDevOpsReposGetOptionalParams + ): Promise; + /** + * Creates or updates a monitored Azure DevOps repository resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param securityConnectorName The security connector name. + * @param orgName The Azure DevOps organization name. + * @param projectName The project name. + * @param repoName The repository name. + * @param azureDevOpsRepository The Azure DevOps repository resource payload. + * @param options The options parameters. + */ + beginCreateOrUpdate( + resourceGroupName: string, + securityConnectorName: string, + orgName: string, + projectName: string, + repoName: string, + azureDevOpsRepository: AzureDevOpsRepository, + options?: AzureDevOpsReposCreateOrUpdateOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + AzureDevOpsReposCreateOrUpdateResponse + > + >; + /** + * Creates or updates a monitored Azure DevOps repository resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param securityConnectorName The security connector name. + * @param orgName The Azure DevOps organization name. + * @param projectName The project name. + * @param repoName The repository name. + * @param azureDevOpsRepository The Azure DevOps repository resource payload. + * @param options The options parameters. + */ + beginCreateOrUpdateAndWait( + resourceGroupName: string, + securityConnectorName: string, + orgName: string, + projectName: string, + repoName: string, + azureDevOpsRepository: AzureDevOpsRepository, + options?: AzureDevOpsReposCreateOrUpdateOptionalParams + ): Promise; + /** + * Updates a monitored Azure DevOps repository resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param securityConnectorName The security connector name. + * @param orgName The Azure DevOps organization name. + * @param projectName The project name. + * @param repoName The repository name. + * @param azureDevOpsRepository The Azure DevOps repository resource payload. + * @param options The options parameters. + */ + beginUpdate( + resourceGroupName: string, + securityConnectorName: string, + orgName: string, + projectName: string, + repoName: string, + azureDevOpsRepository: AzureDevOpsRepository, + options?: AzureDevOpsReposUpdateOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + AzureDevOpsReposUpdateResponse + > + >; + /** + * Updates a monitored Azure DevOps repository resource. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param securityConnectorName The security connector name. + * @param orgName The Azure DevOps organization name. + * @param projectName The project name. + * @param repoName The repository name. + * @param azureDevOpsRepository The Azure DevOps repository resource payload. + * @param options The options parameters. + */ + beginUpdateAndWait( + resourceGroupName: string, + securityConnectorName: string, + orgName: string, + projectName: string, + repoName: string, + azureDevOpsRepository: AzureDevOpsRepository, + options?: AzureDevOpsReposUpdateOptionalParams + ): Promise; +} diff --git a/sdk/security/arm-security/src/operationsInterfaces/defenderForStorage.ts b/sdk/security/arm-security/src/operationsInterfaces/defenderForStorage.ts new file mode 100644 index 000000000000..ef0e1c34366d --- /dev/null +++ b/sdk/security/arm-security/src/operationsInterfaces/defenderForStorage.ts @@ -0,0 +1,44 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { + SettingNameAutoGenerated, + DefenderForStorageGetOptionalParams, + DefenderForStorageGetResponse, + DefenderForStorageSetting, + DefenderForStorageCreateOptionalParams, + DefenderForStorageCreateResponse +} from "../models"; + +/** Interface representing a DefenderForStorage. */ +export interface DefenderForStorage { + /** + * Gets the Defender for Storage settings for the specified storage account. + * @param resourceId The identifier of the resource. + * @param settingName Defender for Storage setting name. + * @param options The options parameters. + */ + get( + resourceId: string, + settingName: SettingNameAutoGenerated, + options?: DefenderForStorageGetOptionalParams + ): Promise; + /** + * Creates or updates the Defender for Storage settings on a specified storage account. + * @param resourceId The identifier of the resource. + * @param settingName Defender for Storage setting name. + * @param defenderForStorageSetting Defender for Storage Settings + * @param options The options parameters. + */ + create( + resourceId: string, + settingName: SettingNameAutoGenerated, + defenderForStorageSetting: DefenderForStorageSetting, + options?: DefenderForStorageCreateOptionalParams + ): Promise; +} diff --git a/sdk/security/arm-security/src/operationsInterfaces/devOpsConfigurations.ts b/sdk/security/arm-security/src/operationsInterfaces/devOpsConfigurations.ts new file mode 100644 index 000000000000..72fbe73b4f0a --- /dev/null +++ b/sdk/security/arm-security/src/operationsInterfaces/devOpsConfigurations.ts @@ -0,0 +1,132 @@ +/* + * 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 { + DevOpsConfiguration, + DevOpsConfigurationsListOptionalParams, + DevOpsConfigurationsGetOptionalParams, + DevOpsConfigurationsGetResponse, + DevOpsConfigurationsCreateOrUpdateOptionalParams, + DevOpsConfigurationsCreateOrUpdateResponse, + DevOpsConfigurationsUpdateOptionalParams, + DevOpsConfigurationsUpdateResponse, + DevOpsConfigurationsDeleteOptionalParams +} from "../models"; + +/// +/** Interface representing a DevOpsConfigurations. */ +export interface DevOpsConfigurations { + /** + * List DevOps Configurations. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param securityConnectorName The security connector name. + * @param options The options parameters. + */ + list( + resourceGroupName: string, + securityConnectorName: string, + options?: DevOpsConfigurationsListOptionalParams + ): PagedAsyncIterableIterator; + /** + * Gets a DevOps Configuration. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param securityConnectorName The security connector name. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + securityConnectorName: string, + options?: DevOpsConfigurationsGetOptionalParams + ): Promise; + /** + * Creates or updates a DevOps Configuration. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param securityConnectorName The security connector name. + * @param devOpsConfiguration The DevOps configuration resource payload. + * @param options The options parameters. + */ + beginCreateOrUpdate( + resourceGroupName: string, + securityConnectorName: string, + devOpsConfiguration: DevOpsConfiguration, + options?: DevOpsConfigurationsCreateOrUpdateOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + DevOpsConfigurationsCreateOrUpdateResponse + > + >; + /** + * Creates or updates a DevOps Configuration. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param securityConnectorName The security connector name. + * @param devOpsConfiguration The DevOps configuration resource payload. + * @param options The options parameters. + */ + beginCreateOrUpdateAndWait( + resourceGroupName: string, + securityConnectorName: string, + devOpsConfiguration: DevOpsConfiguration, + options?: DevOpsConfigurationsCreateOrUpdateOptionalParams + ): Promise; + /** + * Updates a DevOps Configuration. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param securityConnectorName The security connector name. + * @param devOpsConfiguration The DevOps configuration resource payload. + * @param options The options parameters. + */ + beginUpdate( + resourceGroupName: string, + securityConnectorName: string, + devOpsConfiguration: DevOpsConfiguration, + options?: DevOpsConfigurationsUpdateOptionalParams + ): Promise< + SimplePollerLike< + OperationState, + DevOpsConfigurationsUpdateResponse + > + >; + /** + * Updates a DevOps Configuration. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param securityConnectorName The security connector name. + * @param devOpsConfiguration The DevOps configuration resource payload. + * @param options The options parameters. + */ + beginUpdateAndWait( + resourceGroupName: string, + securityConnectorName: string, + devOpsConfiguration: DevOpsConfiguration, + options?: DevOpsConfigurationsUpdateOptionalParams + ): Promise; + /** + * Deletes a DevOps Connector. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param securityConnectorName The security connector name. + * @param options The options parameters. + */ + beginDelete( + resourceGroupName: string, + securityConnectorName: string, + options?: DevOpsConfigurationsDeleteOptionalParams + ): Promise, void>>; + /** + * Deletes a DevOps Connector. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param securityConnectorName The security connector name. + * @param options The options parameters. + */ + beginDeleteAndWait( + resourceGroupName: string, + securityConnectorName: string, + options?: DevOpsConfigurationsDeleteOptionalParams + ): Promise; +} diff --git a/sdk/security/arm-security/src/operationsInterfaces/devOpsOperationResults.ts b/sdk/security/arm-security/src/operationsInterfaces/devOpsOperationResults.ts new file mode 100644 index 000000000000..7cc12d8b1e12 --- /dev/null +++ b/sdk/security/arm-security/src/operationsInterfaces/devOpsOperationResults.ts @@ -0,0 +1,29 @@ +/* + * 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 { + DevOpsOperationResultsGetOptionalParams, + DevOpsOperationResultsGetResponse +} from "../models"; + +/** Interface representing a DevOpsOperationResults. */ +export interface DevOpsOperationResults { + /** + * Get devops long running operation result. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param securityConnectorName The security connector name. + * @param operationResultId The operation result Id. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + securityConnectorName: string, + operationResultId: string, + options?: DevOpsOperationResultsGetOptionalParams + ): Promise; +} diff --git a/sdk/security/arm-security/src/operationsInterfaces/gitHubOwners.ts b/sdk/security/arm-security/src/operationsInterfaces/gitHubOwners.ts new file mode 100644 index 000000000000..c0e32f1c8c69 --- /dev/null +++ b/sdk/security/arm-security/src/operationsInterfaces/gitHubOwners.ts @@ -0,0 +1,57 @@ +/* + * 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 { + GitHubOwner, + GitHubOwnersListOptionalParams, + GitHubOwnersListAvailableOptionalParams, + GitHubOwnersListAvailableResponse, + GitHubOwnersGetOptionalParams, + GitHubOwnersGetResponse +} from "../models"; + +/// +/** Interface representing a GitHubOwners. */ +export interface GitHubOwners { + /** + * Returns a list of GitHub owners onboarded to the connector. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param securityConnectorName The security connector name. + * @param options The options parameters. + */ + list( + resourceGroupName: string, + securityConnectorName: string, + options?: GitHubOwnersListOptionalParams + ): PagedAsyncIterableIterator; + /** + * Returns a list of all GitHub owners accessible by the user token consumed by the connector. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param securityConnectorName The security connector name. + * @param options The options parameters. + */ + listAvailable( + resourceGroupName: string, + securityConnectorName: string, + options?: GitHubOwnersListAvailableOptionalParams + ): Promise; + /** + * Returns a monitored GitHub owner. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param securityConnectorName The security connector name. + * @param ownerName The GitHub owner name. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + securityConnectorName: string, + ownerName: string, + options?: GitHubOwnersGetOptionalParams + ): Promise; +} diff --git a/sdk/security/arm-security/src/operationsInterfaces/gitHubRepos.ts b/sdk/security/arm-security/src/operationsInterfaces/gitHubRepos.ts new file mode 100644 index 000000000000..f58f04519e9d --- /dev/null +++ b/sdk/security/arm-security/src/operationsInterfaces/gitHubRepos.ts @@ -0,0 +1,48 @@ +/* + * 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 { + GitHubRepository, + GitHubReposListOptionalParams, + GitHubReposGetOptionalParams, + GitHubReposGetResponse +} from "../models"; + +/// +/** Interface representing a GitHubRepos. */ +export interface GitHubRepos { + /** + * Returns a list of GitHub repositories onboarded to the connector. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param securityConnectorName The security connector name. + * @param ownerName The GitHub owner name. + * @param options The options parameters. + */ + list( + resourceGroupName: string, + securityConnectorName: string, + ownerName: string, + options?: GitHubReposListOptionalParams + ): PagedAsyncIterableIterator; + /** + * Returns a monitored GitHub repository. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param securityConnectorName The security connector name. + * @param ownerName The GitHub owner name. + * @param repoName The repository name. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + securityConnectorName: string, + ownerName: string, + repoName: string, + options?: GitHubReposGetOptionalParams + ): Promise; +} diff --git a/sdk/security/arm-security/src/operationsInterfaces/gitLabGroups.ts b/sdk/security/arm-security/src/operationsInterfaces/gitLabGroups.ts new file mode 100644 index 000000000000..24873565ba0a --- /dev/null +++ b/sdk/security/arm-security/src/operationsInterfaces/gitLabGroups.ts @@ -0,0 +1,57 @@ +/* + * 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 { + GitLabGroup, + GitLabGroupsListOptionalParams, + GitLabGroupsListAvailableOptionalParams, + GitLabGroupsListAvailableResponse, + GitLabGroupsGetOptionalParams, + GitLabGroupsGetResponse +} from "../models"; + +/// +/** Interface representing a GitLabGroups. */ +export interface GitLabGroups { + /** + * Returns a list of GitLab groups onboarded to the connector. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param securityConnectorName The security connector name. + * @param options The options parameters. + */ + list( + resourceGroupName: string, + securityConnectorName: string, + options?: GitLabGroupsListOptionalParams + ): PagedAsyncIterableIterator; + /** + * Returns a list of all GitLab groups accessible by the user token consumed by the connector. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param securityConnectorName The security connector name. + * @param options The options parameters. + */ + listAvailable( + resourceGroupName: string, + securityConnectorName: string, + options?: GitLabGroupsListAvailableOptionalParams + ): Promise; + /** + * Returns a monitored GitLab Group resource for a given fully-qualified name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param securityConnectorName The security connector name. + * @param groupFQName The GitLab group fully-qualified name. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + securityConnectorName: string, + groupFQName: string, + options?: GitLabGroupsGetOptionalParams + ): Promise; +} diff --git a/sdk/security/arm-security/src/operationsInterfaces/gitLabProjects.ts b/sdk/security/arm-security/src/operationsInterfaces/gitLabProjects.ts new file mode 100644 index 000000000000..cd4e76c8df07 --- /dev/null +++ b/sdk/security/arm-security/src/operationsInterfaces/gitLabProjects.ts @@ -0,0 +1,49 @@ +/* + * 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 { + GitLabProject, + GitLabProjectsListOptionalParams, + GitLabProjectsGetOptionalParams, + GitLabProjectsGetResponse +} from "../models"; + +/// +/** Interface representing a GitLabProjects. */ +export interface GitLabProjects { + /** + * Gets a list of GitLab projects that are directly owned by given group and onboarded to the + * connector. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param securityConnectorName The security connector name. + * @param groupFQName The GitLab group fully-qualified name. + * @param options The options parameters. + */ + list( + resourceGroupName: string, + securityConnectorName: string, + groupFQName: string, + options?: GitLabProjectsListOptionalParams + ): PagedAsyncIterableIterator; + /** + * Returns a monitored GitLab Project resource for a given fully-qualified group name and project name. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param securityConnectorName The security connector name. + * @param groupFQName The GitLab group fully-qualified name. + * @param projectName The project name. + * @param options The options parameters. + */ + get( + resourceGroupName: string, + securityConnectorName: string, + groupFQName: string, + projectName: string, + options?: GitLabProjectsGetOptionalParams + ): Promise; +} diff --git a/sdk/security/arm-security/src/operationsInterfaces/gitLabSubgroups.ts b/sdk/security/arm-security/src/operationsInterfaces/gitLabSubgroups.ts new file mode 100644 index 000000000000..788d5dac2abf --- /dev/null +++ b/sdk/security/arm-security/src/operationsInterfaces/gitLabSubgroups.ts @@ -0,0 +1,29 @@ +/* + * 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 { + GitLabSubgroupsListOptionalParams, + GitLabSubgroupsListResponse +} from "../models"; + +/** Interface representing a GitLabSubgroups. */ +export interface GitLabSubgroups { + /** + * Gets nested subgroups of given GitLab Group which are onboarded to the connector. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param securityConnectorName The security connector name. + * @param groupFQName The GitLab group fully-qualified name. + * @param options The options parameters. + */ + list( + resourceGroupName: string, + securityConnectorName: string, + groupFQName: string, + options?: GitLabSubgroupsListOptionalParams + ): Promise; +} diff --git a/sdk/security/arm-security/src/operationsInterfaces/healthReportOperations.ts b/sdk/security/arm-security/src/operationsInterfaces/healthReportOperations.ts deleted file mode 100644 index 240b79319a78..000000000000 --- a/sdk/security/arm-security/src/operationsInterfaces/healthReportOperations.ts +++ /dev/null @@ -1,27 +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 { - HealthReportGetOptionalParams, - HealthReportGetResponse -} from "../models"; - -/** Interface representing a HealthReportOperations. */ -export interface HealthReportOperations { - /** - * Get health report of resource - * @param resourceId The identifier of the resource. - * @param healthReportName The health report Key - Unique key for the health report type - * @param options The options parameters. - */ - get( - resourceId: string, - healthReportName: string, - options?: HealthReportGetOptionalParams - ): Promise; -} diff --git a/sdk/security/arm-security/src/operationsInterfaces/healthReports.ts b/sdk/security/arm-security/src/operationsInterfaces/healthReports.ts index 2126939b24b8..19c9d8b3fd5a 100644 --- a/sdk/security/arm-security/src/operationsInterfaces/healthReports.ts +++ b/sdk/security/arm-security/src/operationsInterfaces/healthReports.ts @@ -7,7 +7,12 @@ */ import { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { HealthReport, HealthReportsListOptionalParams } from "../models"; +import { + HealthReport, + HealthReportsListOptionalParams, + HealthReportsGetOptionalParams, + HealthReportsGetResponse +} from "../models"; /// /** Interface representing a HealthReports. */ @@ -23,4 +28,15 @@ export interface HealthReports { scope: string, options?: HealthReportsListOptionalParams ): PagedAsyncIterableIterator; + /** + * Get health report of resource + * @param resourceId The identifier of the resource. + * @param healthReportName The health report Key - Unique key for the health report type + * @param options The options parameters. + */ + get( + resourceId: string, + healthReportName: string, + options?: HealthReportsGetOptionalParams + ): Promise; } diff --git a/sdk/security/arm-security/src/operationsInterfaces/index.ts b/sdk/security/arm-security/src/operationsInterfaces/index.ts index 34ac4c6ae693..adb65c43c7d6 100644 --- a/sdk/security/arm-security/src/operationsInterfaces/index.ts +++ b/sdk/security/arm-security/src/operationsInterfaces/index.ts @@ -47,6 +47,7 @@ export * from "./secureScoreControls"; export * from "./secureScoreControlDefinitions"; export * from "./securitySolutions"; export * from "./connectors"; +export * from "./sensitivitySettings"; export * from "./alerts"; export * from "./settings"; export * from "./ingestionSettings"; @@ -60,10 +61,21 @@ export * from "./securityConnectorApplication"; export * from "./aPICollection"; export * from "./aPICollectionOnboarding"; export * from "./aPICollectionOffboarding"; -export * from "./healthReports"; -export * from "./healthReportOperations"; export * from "./sqlVulnerabilityAssessmentScans"; export * from "./sqlVulnerabilityAssessmentScanResults"; export * from "./sqlVulnerabilityAssessmentBaselineRules"; export * from "./securityConnectors"; export * from "./securityOperators"; +export * from "./serverVulnerabilityAssessmentsSettings"; +export * from "./healthReports"; +export * from "./defenderForStorage"; +export * from "./azureDevOpsOrgs"; +export * from "./azureDevOpsProjects"; +export * from "./azureDevOpsRepos"; +export * from "./devOpsConfigurations"; +export * from "./gitHubOwners"; +export * from "./gitHubRepos"; +export * from "./gitLabGroups"; +export * from "./gitLabSubgroups"; +export * from "./gitLabProjects"; +export * from "./devOpsOperationResults"; diff --git a/sdk/security/arm-security/src/operationsInterfaces/sensitivitySettings.ts b/sdk/security/arm-security/src/operationsInterfaces/sensitivitySettings.ts new file mode 100644 index 000000000000..cbef9da20be0 --- /dev/null +++ b/sdk/security/arm-security/src/operationsInterfaces/sensitivitySettings.ts @@ -0,0 +1,23 @@ +/* + * 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 { + SensitivitySettingsListOptionalParams, + SensitivitySettingsListResponse +} from "../models"; + +/** Interface representing a SensitivitySettings. */ +export interface SensitivitySettings { + /** + * Gets a list with a single sensitivity settings resource + * @param options The options parameters. + */ + list( + options?: SensitivitySettingsListOptionalParams + ): Promise; +} diff --git a/sdk/security/arm-security/src/operationsInterfaces/serverVulnerabilityAssessmentsSettings.ts b/sdk/security/arm-security/src/operationsInterfaces/serverVulnerabilityAssessmentsSettings.ts new file mode 100644 index 000000000000..2263f7712e18 --- /dev/null +++ b/sdk/security/arm-security/src/operationsInterfaces/serverVulnerabilityAssessmentsSettings.ts @@ -0,0 +1,63 @@ +/* + * 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 { + ServerVulnerabilityAssessmentsSettingUnion, + ServerVulnerabilityAssessmentsSettingsListBySubscriptionOptionalParams, + ServerVulnerabilityAssessmentsSettingKindName, + ServerVulnerabilityAssessmentsSettingsGetOptionalParams, + ServerVulnerabilityAssessmentsSettingsGetResponse, + ServerVulnerabilityAssessmentsSettingsCreateOrUpdateOptionalParams, + ServerVulnerabilityAssessmentsSettingsCreateOrUpdateResponse, + ServerVulnerabilityAssessmentsSettingsDeleteOptionalParams +} from "../models"; + +/// +/** Interface representing a ServerVulnerabilityAssessmentsSettings. */ +export interface ServerVulnerabilityAssessmentsSettings { + /** + * Get a list of all the server vulnerability assessments settings over a subscription level scope + * @param options The options parameters. + */ + listBySubscription( + options?: ServerVulnerabilityAssessmentsSettingsListBySubscriptionOptionalParams + ): PagedAsyncIterableIterator; + /** + * Get a server vulnerability assessments setting of the requested kind, that is set on the + * subscription + * @param settingKind The kind of the server vulnerability assessments setting + * @param options The options parameters. + */ + get( + settingKind: ServerVulnerabilityAssessmentsSettingKindName, + options?: ServerVulnerabilityAssessmentsSettingsGetOptionalParams + ): Promise; + /** + * Create or update a server vulnerability assessments setting of the requested kind on the + * subscription + * @param settingKind The kind of the server vulnerability assessments setting + * @param serverVulnerabilityAssessmentsSetting A server vulnerability assessments setting over a + * predefined scope + * @param options The options parameters. + */ + createOrUpdate( + settingKind: ServerVulnerabilityAssessmentsSettingKindName, + serverVulnerabilityAssessmentsSetting: ServerVulnerabilityAssessmentsSettingUnion, + options?: ServerVulnerabilityAssessmentsSettingsCreateOrUpdateOptionalParams + ): Promise; + /** + * Delete the server vulnerability assessments setting of the requested kind from the subscription + * @param settingKind The kind of the server vulnerability assessments setting + * @param options The options parameters. + */ + delete( + settingKind: ServerVulnerabilityAssessmentsSettingKindName, + options?: ServerVulnerabilityAssessmentsSettingsDeleteOptionalParams + ): Promise; +} diff --git a/sdk/security/arm-security/src/securityCenter.ts b/sdk/security/arm-security/src/securityCenter.ts index 2a9d8ca7353f..227f557f7790 100644 --- a/sdk/security/arm-security/src/securityCenter.ts +++ b/sdk/security/arm-security/src/securityCenter.ts @@ -51,6 +51,7 @@ import { SecureScoreControlDefinitionsImpl, SecuritySolutionsImpl, ConnectorsImpl, + SensitivitySettingsImpl, AlertsImpl, SettingsImpl, IngestionSettingsImpl, @@ -64,13 +65,24 @@ import { APICollectionImpl, APICollectionOnboardingImpl, APICollectionOffboardingImpl, - HealthReportsImpl, - HealthReportOperationsImpl, SqlVulnerabilityAssessmentScansImpl, SqlVulnerabilityAssessmentScanResultsImpl, SqlVulnerabilityAssessmentBaselineRulesImpl, SecurityConnectorsImpl, - SecurityOperatorsImpl + SecurityOperatorsImpl, + ServerVulnerabilityAssessmentsSettingsImpl, + HealthReportsImpl, + DefenderForStorageImpl, + AzureDevOpsOrgsImpl, + AzureDevOpsProjectsImpl, + AzureDevOpsReposImpl, + DevOpsConfigurationsImpl, + GitHubOwnersImpl, + GitHubReposImpl, + GitLabGroupsImpl, + GitLabSubgroupsImpl, + GitLabProjectsImpl, + DevOpsOperationResultsImpl } from "./operations"; import { MdeOnboardings, @@ -114,6 +126,7 @@ import { SecureScoreControlDefinitions, SecuritySolutions, Connectors, + SensitivitySettings, Alerts, Settings, IngestionSettings, @@ -127,19 +140,39 @@ import { APICollection, APICollectionOnboarding, APICollectionOffboarding, - HealthReports, - HealthReportOperations, SqlVulnerabilityAssessmentScans, SqlVulnerabilityAssessmentScanResults, SqlVulnerabilityAssessmentBaselineRules, SecurityConnectors, - SecurityOperators + SecurityOperators, + ServerVulnerabilityAssessmentsSettings, + HealthReports, + DefenderForStorage, + AzureDevOpsOrgs, + AzureDevOpsProjects, + AzureDevOpsRepos, + DevOpsConfigurations, + GitHubOwners, + GitHubRepos, + GitLabGroups, + GitLabSubgroups, + GitLabProjects, + DevOpsOperationResults } from "./operationsInterfaces"; -import { SecurityCenterOptionalParams } from "./models"; +import * as Parameters from "./models/parameters"; +import * as Mappers from "./models/mappers"; +import { + SecurityCenterOptionalParams, + UpdateSensitivitySettingsRequest, + UpdateSensitivitySettingsOptionalParams, + UpdateSensitivitySettingsResponse, + GetSensitivitySettingsOptionalParams, + GetSensitivitySettingsOperationResponse +} from "./models"; export class SecurityCenter extends coreClient.ServiceClient { $host: string; - subscriptionId: string; + subscriptionId?: string; /** * Initializes a new instance of the SecurityCenter class. @@ -151,12 +184,26 @@ export class SecurityCenter extends coreClient.ServiceClient { credentials: coreAuth.TokenCredential, subscriptionId: string, options?: SecurityCenterOptionalParams + ); + constructor( + credentials: coreAuth.TokenCredential, + options?: SecurityCenterOptionalParams + ); + constructor( + credentials: coreAuth.TokenCredential, + subscriptionIdOrOptions?: SecurityCenterOptionalParams | string, + options?: SecurityCenterOptionalParams ) { if (credentials === undefined) { throw new Error("'credentials' cannot be null"); } - if (subscriptionId === undefined) { - throw new Error("'subscriptionId' cannot be null"); + + let subscriptionId: string | undefined; + + if (typeof subscriptionIdOrOptions === "string") { + subscriptionId = subscriptionIdOrOptions; + } else if (typeof subscriptionIdOrOptions === "object") { + options = subscriptionIdOrOptions; } // Initializing default values for options @@ -290,6 +337,7 @@ export class SecurityCenter extends coreClient.ServiceClient { ); this.securitySolutions = new SecuritySolutionsImpl(this); this.connectors = new ConnectorsImpl(this); + this.sensitivitySettings = new SensitivitySettingsImpl(this); this.alerts = new AlertsImpl(this); this.settings = new SettingsImpl(this); this.ingestionSettings = new IngestionSettingsImpl(this); @@ -307,8 +355,6 @@ export class SecurityCenter extends coreClient.ServiceClient { this.aPICollection = new APICollectionImpl(this); this.aPICollectionOnboarding = new APICollectionOnboardingImpl(this); this.aPICollectionOffboarding = new APICollectionOffboardingImpl(this); - this.healthReports = new HealthReportsImpl(this); - this.healthReportOperations = new HealthReportOperationsImpl(this); this.sqlVulnerabilityAssessmentScans = new SqlVulnerabilityAssessmentScansImpl( this ); @@ -320,6 +366,49 @@ export class SecurityCenter extends coreClient.ServiceClient { ); this.securityConnectors = new SecurityConnectorsImpl(this); this.securityOperators = new SecurityOperatorsImpl(this); + this.serverVulnerabilityAssessmentsSettings = new ServerVulnerabilityAssessmentsSettingsImpl( + this + ); + this.healthReports = new HealthReportsImpl(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 + * @param options The options parameters. + */ + getSensitivitySettings( + options?: GetSensitivitySettingsOptionalParams + ): Promise { + return this.sendOperationRequest( + { options }, + getSensitivitySettingsOperationSpec + ); } mdeOnboardings: MdeOnboardings; @@ -363,6 +452,7 @@ export class SecurityCenter extends coreClient.ServiceClient { secureScoreControlDefinitions: SecureScoreControlDefinitions; securitySolutions: SecuritySolutions; connectors: Connectors; + sensitivitySettings: SensitivitySettings; alerts: Alerts; settings: Settings; ingestionSettings: IngestionSettings; @@ -376,11 +466,59 @@ export class SecurityCenter extends coreClient.ServiceClient { aPICollection: APICollection; aPICollectionOnboarding: APICollectionOnboarding; aPICollectionOffboarding: APICollectionOffboarding; - healthReports: HealthReports; - healthReportOperations: HealthReportOperations; sqlVulnerabilityAssessmentScans: SqlVulnerabilityAssessmentScans; sqlVulnerabilityAssessmentScanResults: SqlVulnerabilityAssessmentScanResults; sqlVulnerabilityAssessmentBaselineRules: SqlVulnerabilityAssessmentBaselineRules; securityConnectors: SecurityConnectors; securityOperators: SecurityOperators; + serverVulnerabilityAssessmentsSettings: ServerVulnerabilityAssessmentsSettings; + healthReports: HealthReports; + 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", + responses: { + 200: { + bodyMapper: Mappers.GetSensitivitySettingsResponse + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + requestBody: Parameters.sensitivitySettings, + queryParameters: [Parameters.apiVersion12], + urlParameters: [Parameters.$host], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer +}; +const getSensitivitySettingsOperationSpec: coreClient.OperationSpec = { + path: "/providers/Microsoft.Security/sensitivitySettings/current", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.GetSensitivitySettingsResponse + }, + default: { + bodyMapper: Mappers.CloudError + } + }, + queryParameters: [Parameters.apiVersion12], + urlParameters: [Parameters.$host], + headerParameters: [Parameters.accept], + serializer +}; diff --git a/sdk/security/arm-security/test/sampleTest.ts b/sdk/security/arm-security/test/sampleTest.ts new file mode 100644 index 000000000000..25aeb3ebcc36 --- /dev/null +++ b/sdk/security/arm-security/test/sampleTest.ts @@ -0,0 +1,43 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { + Recorder, + RecorderStartOptions, + env +} from "@azure-tools/test-recorder"; +import { assert } from "chai"; +import { Context } from "mocha"; + +const replaceableVariables: Record = { + AZURE_CLIENT_ID: "azure_client_id", + AZURE_CLIENT_SECRET: "azure_client_secret", + AZURE_TENANT_ID: "88888888-8888-8888-8888-888888888888", + SUBSCRIPTION_ID: "azure_subscription_id" +}; + +const recorderOptions: RecorderStartOptions = { + envSetupForPlayback: replaceableVariables +}; + +describe("My test", () => { + let recorder: Recorder; + + beforeEach(async function(this: Context) { + recorder = new Recorder(this.currentTest); + await recorder.start(recorderOptions); + }); + + afterEach(async function() { + await recorder.stop(); + }); + + it("sample test", async function() { + console.log("Hi, I'm a test!"); + }); +}); diff --git a/sdk/security/arm-security/tsconfig.json b/sdk/security/arm-security/tsconfig.json index 3f5144384125..3e6ae96443f3 100644 --- a/sdk/security/arm-security/tsconfig.json +++ b/sdk/security/arm-security/tsconfig.json @@ -15,17 +15,11 @@ ], "declaration": true, "outDir": "./dist-esm", - "importHelpers": true, - "paths": { - "@azure/arm-security": [ - "./src/index" - ] - } + "importHelpers": true }, "include": [ "./src/**/*.ts", - "./test/**/*.ts", - "samples-dev/**/*.ts" + "./test/**/*.ts" ], "exclude": [ "node_modules"