From 2ef7e61c195c36a7485d0e6518cef796284c1566 Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Tue, 13 May 2025 15:08:39 +0000 Subject: [PATCH] CodeGen from PR 34639 in Azure/azure-rest-api-specs Merge 2ce19638cc9fe6b2f4683228fa0dfacad4cc0b23 into 903e7ca5b4afaa5828df1fb709aa0f5801966087 --- sdk/security/arm-security/CHANGELOG.md | 746 +- sdk/security/arm-security/LICENSE | 2 +- sdk/security/arm-security/README.md | 8 +- sdk/security/arm-security/_meta.json | 10 +- sdk/security/arm-security/api-extractor.json | 2 +- sdk/security/arm-security/package.json | 54 +- .../arm-security/review/arm-security.api.md | 1093 +- sdk/security/arm-security/sample.env | 5 +- sdk/security/arm-security/src/lroImpl.ts | 6 +- sdk/security/arm-security/src/models/index.ts | 7134 ++++++------ .../arm-security/src/models/mappers.ts | 9513 +++++++++-------- .../arm-security/src/models/parameters.ts | 516 +- .../src/operations/aPICollections.ts | 84 +- .../operations/adaptiveApplicationControls.ts | 192 - .../operations/adaptiveNetworkHardenings.ts | 453 - .../operations/advancedThreatProtection.ts | 17 +- .../arm-security/src/operations/alerts.ts | 473 +- .../src/operations/alertsSuppressionRules.ts | 11 +- .../src/operations/allowedConnections.ts | 28 +- .../src/operations/applicationOperations.ts | 39 +- .../src/operations/applications.ts | 21 +- .../src/operations/assessments.ts | 28 +- .../src/operations/assessmentsMetadata.ts | 39 +- .../operations/autoProvisioningSettings.ts | 33 +- .../src/operations/automations.ts | 56 +- .../src/operations/azureDevOpsOrgs.ts | 58 +- .../src/operations/azureDevOpsProjects.ts | 44 +- .../src/operations/azureDevOpsRepos.ts | 35 +- .../src/operations/complianceResults.ts | 16 +- .../src/operations/compliances.ts | 21 +- .../arm-security/src/operations/connectors.ts | 56 +- .../operations/customAssessmentAutomations.ts | 48 +- .../customEntityStoreAssignments.ts | 48 +- .../src/operations/customRecommendations.ts | 282 + .../src/operations/defenderForStorage.ts | 134 +- .../src/operations/devOpsConfigurations.ts | 62 +- .../src/operations/devOpsOperationResults.ts | 4 +- .../src/operations/deviceSecurityGroups.ts | 23 +- .../operations/discoveredSecuritySolutions.ts | 32 +- .../operations/externalSecuritySolutions.ts | 32 +- .../src/operations/gitHubOwners.ts | 33 +- .../src/operations/gitHubRepos.ts | 24 +- .../src/operations/gitLabGroups.ts | 33 +- .../src/operations/gitLabProjects.ts | 24 +- .../src/operations/gitLabSubgroups.ts | 9 +- .../src/operations/governanceAssignments.ts | 32 +- .../src/operations/governanceRules.ts | 51 +- .../src/operations/healthReports.ts | 20 +- .../arm-security/src/operations/index.ts | 33 +- .../informationProtectionPolicies.ts | 26 +- .../src/operations/iotSecuritySolution.ts | 34 +- .../iotSecuritySolutionAnalytics.ts | 4 +- ...curitySolutionsAnalyticsAggregatedAlert.ts | 20 +- ...ecuritySolutionsAnalyticsRecommendation.ts | 20 +- .../operations/jitNetworkAccessPolicies.ts | 105 +- .../arm-security/src/operations/locations.ts | 35 +- .../src/operations/mdeOnboardings.ts | 12 +- .../arm-security/src/operations/operations.ts | 23 +- .../arm-security/src/operations/pricings.ts | 38 +- .../regulatoryComplianceAssessments.ts | 4 +- .../regulatoryComplianceControls.ts | 21 +- .../regulatoryComplianceStandards.ts | 15 +- .../secureScoreControlDefinitions.ts | 20 +- .../src/operations/secureScoreControls.ts | 34 +- .../src/operations/secureScores.ts | 26 +- .../securityConnectorApplication.ts | 10 +- .../securityConnectorApplications.ts | 25 +- .../src/operations/securityConnectors.ts | 46 +- .../src/operations/securityContacts.ts | 47 +- .../src/operations/securityOperators.ts | 19 +- .../src/operations/securitySolutions.ts | 11 +- ...ecuritySolutionsReferenceDataOperations.ts | 6 +- .../src/operations/securityStandards.ts | 276 + .../src/operations/sensitivitySettings.ts | 68 +- ...serverVulnerabilityAssessmentOperations.ts | 9 +- .../serverVulnerabilityAssessmentsSettings.ts | 39 +- .../arm-security/src/operations/settings.ts | 41 +- .../src/operations/softwareInventories.ts | 17 +- ...sqlVulnerabilityAssessmentBaselineRules.ts | 15 +- .../sqlVulnerabilityAssessmentScanResults.ts | 4 +- .../sqlVulnerabilityAssessmentScans.ts | 8 +- .../src/operations/standardAssignments.ts | 281 + .../src/operations/subAssessments.ts | 34 +- .../arm-security/src/operations/tasks.ts | 124 +- .../arm-security/src/operations/topology.ts | 36 +- .../src/operations/workspaceSettings.ts | 45 +- .../adaptiveApplicationControls.ts | 67 - .../adaptiveNetworkHardenings.ts | 97 - .../applicationOperations.ts | 5 +- .../src/operationsInterfaces/applications.ts | 4 +- .../src/operationsInterfaces/automations.ts | 4 +- .../operationsInterfaces/azureDevOpsOrgs.ts | 5 +- .../operationsInterfaces/azureDevOpsRepos.ts | 5 +- .../src/operationsInterfaces/connectors.ts | 14 +- .../customRecommendations.ts | 79 + .../defenderForStorage.ts | 43 + .../operationsInterfaces/gitLabSubgroups.ts | 5 +- .../operationsInterfaces/governanceRules.ts | 5 +- .../src/operationsInterfaces/index.ts | 33 +- .../src/operationsInterfaces/locations.ts | 9 +- .../operationsInterfaces/mdeOnboardings.ts | 8 +- .../src/operationsInterfaces/operations.ts | 4 +- .../src/operationsInterfaces/pricings.ts | 5 +- .../src/operationsInterfaces/secureScores.ts | 4 +- .../securityConnectorApplications.ts | 5 +- .../operationsInterfaces/securityContacts.ts | 4 +- .../operationsInterfaces/securitySolutions.ts | 4 +- .../operationsInterfaces/securityStandards.ts | 79 + .../sensitivitySettings.ts | 23 +- .../src/operationsInterfaces/settings.ts | 4 +- .../standardAssignments.ts | 78 + .../src/operationsInterfaces/tasks.ts | 4 +- .../src/operationsInterfaces/topology.ts | 4 +- .../operationsInterfaces/workspaceSettings.ts | 4 +- sdk/security/arm-security/src/pagingHelper.ts | 5 +- .../arm-security/src/securityCenter.ts | 287 +- .../arm-security/test/sampleTest.spec.ts | 38 + .../arm-security/test/snippets.spec.ts | 9 +- .../arm-security/tsconfig.browser.config.json | 5 +- sdk/security/arm-security/tsconfig.json | 5 +- .../arm-security/tsconfig.samples.json | 4 +- sdk/security/arm-security/tsconfig.test.json | 5 +- 122 files changed, 12408 insertions(+), 11870 deletions(-) delete mode 100644 sdk/security/arm-security/src/operations/adaptiveApplicationControls.ts delete mode 100644 sdk/security/arm-security/src/operations/adaptiveNetworkHardenings.ts create mode 100644 sdk/security/arm-security/src/operations/customRecommendations.ts create mode 100644 sdk/security/arm-security/src/operations/securityStandards.ts create mode 100644 sdk/security/arm-security/src/operations/standardAssignments.ts delete mode 100644 sdk/security/arm-security/src/operationsInterfaces/adaptiveApplicationControls.ts delete mode 100644 sdk/security/arm-security/src/operationsInterfaces/adaptiveNetworkHardenings.ts create mode 100644 sdk/security/arm-security/src/operationsInterfaces/customRecommendations.ts create mode 100644 sdk/security/arm-security/src/operationsInterfaces/securityStandards.ts create mode 100644 sdk/security/arm-security/src/operationsInterfaces/standardAssignments.ts create mode 100644 sdk/security/arm-security/test/sampleTest.spec.ts diff --git a/sdk/security/arm-security/CHANGELOG.md b/sdk/security/arm-security/CHANGELOG.md index b9f9980d641b..e1c689178d83 100644 --- a/sdk/security/arm-security/CHANGELOG.md +++ b/sdk/security/arm-security/CHANGELOG.md @@ -1,15 +1,747 @@ # Release History - -## 6.0.0-beta.6 (Unreleased) - + +## 6.0.0-beta.6 (2025-05-13) +Compared with version 5.0.0 + ### Features Added + - Added operation group APICollections + - Added operation group ApplicationOperations + - Added operation group Applications + - Added operation group AzureDevOpsOrgs + - Added operation group AzureDevOpsProjects + - Added operation group AzureDevOpsRepos + - Added operation group CustomRecommendations + - Added operation group DefenderForStorage + - Added operation group DevOpsConfigurations + - Added operation group DevOpsOperationResults + - Added operation group GitHubOwners + - Added operation group GitHubRepos + - Added operation group GitLabGroups + - Added operation group GitLabProjects + - Added operation group GitLabSubgroups + - Added operation group GovernanceAssignments + - Added operation group GovernanceRules + - Added operation group HealthReports + - Added operation group SecurityConnectorApplication + - Added operation group SecurityConnectorApplications + - Added operation group SecurityOperators + - Added operation group SecurityStandards + - Added operation group SensitivitySettings + - Added operation group ServerVulnerabilityAssessmentsSettings + - Added operation group StandardAssignments + - Added operation Alerts.beginSimulate + - Added operation Alerts.beginSimulateAndWait + - Added operation Alerts.updateResourceGroupLevelStateToInProgress + - Added operation Alerts.updateSubscriptionLevelStateToInProgress + - Added operation Automations.update + - Added operation Pricings.delete + - Added Interface AadExternalSecuritySolution + - Added Interface AadSolutionProperties + - Added Interface AccessTokenAuthentication + - Added Interface ActionableRemediation + - Added Interface ActiveConnectionsNotInAllowedRange + - Added Interface AdvancedThreatProtectionSetting + - Added Interface AgentlessConfiguration + - Added Interface Alert + - Added Interface AlertPropertiesSupportingEvidence + - Added Interface AlertSimulatorBundlesRequestProperties + - Added Interface AlertsSuppressionRule + - Added Interface AlertsUpdateResourceGroupLevelStateToInProgressOptionalParams + - Added Interface AlertsUpdateSubscriptionLevelStateToInProgressOptionalParams + - Added Interface AlertSyncSettings + - Added Interface AllowedConnectionsResource + - Added Interface AllowlistCustomAlertRule + - Added Interface AmqpC2DMessagesNotInAllowedRange + - Added Interface AmqpC2DRejectedMessagesNotInAllowedRange + - Added Interface AmqpD2CMessagesNotInAllowedRange + - Added Interface ApiCollection + - Added Interface ApiCollectionList + - Added Interface APICollectionsGetByAzureApiManagementServiceOptionalParams + - Added Interface APICollectionsListByAzureApiManagementServiceNextOptionalParams + - Added Interface APICollectionsListByAzureApiManagementServiceOptionalParams + - Added Interface APICollectionsListByResourceGroupNextOptionalParams + - Added Interface APICollectionsListByResourceGroupOptionalParams + - Added Interface APICollectionsListBySubscriptionNextOptionalParams + - Added Interface APICollectionsListBySubscriptionOptionalParams + - Added Interface APICollectionsOffboardAzureApiManagementApiOptionalParams + - Added Interface APICollectionsOnboardAzureApiManagementApiHeaders + - Added Interface APICollectionsOnboardAzureApiManagementApiOptionalParams + - Added Interface Application + - Added Interface ApplicationCondition + - Added Interface ApplicationCreateOrUpdateOptionalParams + - Added Interface ApplicationDeleteOptionalParams + - Added Interface ApplicationGetOptionalParams + - Added Interface ApplicationsList + - Added Interface ApplicationsListNextOptionalParams + - Added Interface ApplicationsListOptionalParams + - Added Interface ArcAutoProvisioning + - Added Interface ArcAutoProvisioningAws + - Added Interface ArcAutoProvisioningConfiguration + - Added Interface ArcAutoProvisioningGcp + - Added Interface AscLocation + - Added Interface AssessmentStatusResponse + - Added Interface AssignedAssessmentItem + - Added Interface AssignedStandardItem + - Added Interface AtaExternalSecuritySolution + - Added Interface AtaSolutionProperties + - Added Interface AttestationEvidence + - Added Interface Authentication + - Added Interface Authorization + - Added Interface Automation + - Added Interface AutomationActionEventHub + - Added Interface AutomationActionLogicApp + - Added Interface AutomationActionWorkspace + - Added Interface AutomationsUpdateOptionalParams + - Added Interface AutomationUpdateModel + - Added Interface AutoProvisioningSetting + - Added Interface AwAssumeRoleAuthenticationDetailsProperties + - Added Interface AwsCredsAuthenticationDetailsProperties + - Added Interface AwsEnvironmentData + - Added Interface AwsOrganizationalData + - Added Interface AwsOrganizationalDataMaster + - Added Interface AwsOrganizationalDataMember + - Added Interface AzureDevOpsOrg + - Added Interface AzureDevOpsOrganizationConfiguration + - Added Interface AzureDevOpsOrgListResponse + - Added Interface AzureDevOpsOrgProperties + - Added Interface AzureDevOpsOrgsCreateOrUpdateOptionalParams + - Added Interface AzureDevOpsOrgsGetOptionalParams + - Added Interface AzureDevOpsOrgsListAvailableOptionalParams + - Added Interface AzureDevOpsOrgsListNextOptionalParams + - Added Interface AzureDevOpsOrgsListOptionalParams + - Added Interface AzureDevOpsOrgsUpdateOptionalParams + - Added Interface AzureDevOpsProject + - Added Interface AzureDevOpsProjectConfiguration + - Added Interface AzureDevOpsProjectListResponse + - Added Interface AzureDevOpsProjectProperties + - Added Interface AzureDevOpsProjectsCreateOrUpdateOptionalParams + - Added Interface AzureDevOpsProjectsGetOptionalParams + - Added Interface AzureDevOpsProjectsListNextOptionalParams + - Added Interface AzureDevOpsProjectsListOptionalParams + - Added Interface AzureDevOpsProjectsUpdateOptionalParams + - Added Interface AzureDevOpsReposCreateOrUpdateOptionalParams + - Added Interface AzureDevOpsReposGetOptionalParams + - Added Interface AzureDevOpsRepository + - Added Interface AzureDevOpsRepositoryListResponse + - Added Interface AzureDevOpsRepositoryProperties + - Added Interface AzureDevOpsReposListNextOptionalParams + - Added Interface AzureDevOpsReposListOptionalParams + - Added Interface AzureDevOpsReposUpdateOptionalParams + - Added Interface AzureDevOpsScopeEnvironmentData + - Added Interface AzureResourceDetails + - Added Interface AzureResourceIdentifier + - Added Interface AzureServersSetting + - Added Interface BaseResourceConfiguration + - Added Interface BlobsScanSummary + - Added Interface BuiltInInfoType + - Added Interface CategoryConfiguration + - Added Interface CefExternalSecuritySolution + - Added Interface CefSolutionProperties + - Added Interface Compliance + - Added Interface ComplianceResult + - Added Interface Condition + - Added Interface ConnectionFromIpNotAllowed + - Added Interface ConnectionToIpNotAllowed + - Added Interface ConnectorSetting + - Added Interface ContainerRegistryVulnerabilityProperties + - Added Interface CspmMonitorAwsOffering + - Added Interface CspmMonitorAzureDevOpsOffering + - Added Interface CspmMonitorDockerHubOffering + - Added Interface CspmMonitorGcpOffering + - Added Interface CspmMonitorGcpOfferingNativeCloudConnection + - Added Interface CspmMonitorGithubOffering + - Added Interface CspmMonitorGitLabOffering + - Added Interface CspmMonitorJFrogOffering + - Added Interface CustomAssessmentAutomation + - Added Interface CustomAssessmentAutomationRequest + - Added Interface CustomEntityStoreAssignment + - Added Interface CustomRecommendation + - Added Interface CustomRecommendationsCreateOrUpdateOptionalParams + - Added Interface CustomRecommendationsDeleteOptionalParams + - Added Interface CustomRecommendationsGetOptionalParams + - Added Interface CustomRecommendationsList + - Added Interface CustomRecommendationsListNextOptionalParams + - Added Interface CustomRecommendationsListOptionalParams + - Added Interface DataExportSettings + - Added Interface DefenderCspmAwsOffering + - Added Interface DefenderCspmAwsOfferingCiem + - Added Interface DefenderCspmAwsOfferingCiemDiscovery + - Added Interface DefenderCspmAwsOfferingCiemOidc + - Added Interface DefenderCspmAwsOfferingDatabasesDspm + - Added Interface DefenderCspmAwsOfferingDataSensitivityDiscovery + - Added Interface DefenderCspmAwsOfferingMdcContainersAgentlessDiscoveryK8S + - Added Interface DefenderCspmAwsOfferingMdcContainersImageAssessment + - Added Interface DefenderCspmAwsOfferingVmScanners + - Added Interface DefenderCspmDockerHubOffering + - Added Interface DefenderCspmGcpOffering + - Added Interface DefenderCspmGcpOfferingCiemDiscovery + - Added Interface DefenderCspmGcpOfferingDataSensitivityDiscovery + - Added Interface DefenderCspmGcpOfferingMdcContainersAgentlessDiscoveryK8S + - Added Interface DefenderCspmGcpOfferingMdcContainersImageAssessment + - Added Interface DefenderCspmGcpOfferingVmScanners + - Added Interface DefenderCspmJFrogOffering + - Added Interface DefenderCspmJFrogOfferingMdcContainersImageAssessment + - Added Interface DefenderFoDatabasesAwsOffering + - Added Interface DefenderFoDatabasesAwsOfferingArcAutoProvisioning + - Added Interface DefenderFoDatabasesAwsOfferingDatabasesDspm + - Added Interface DefenderFoDatabasesAwsOfferingRds + - Added Interface DefenderForContainersAwsOffering + - Added Interface DefenderForContainersAwsOfferingKubernetesDataCollection + - Added Interface DefenderForContainersAwsOfferingMdcContainersAgentlessDiscoveryK8S + - Added Interface DefenderForContainersAwsOfferingMdcContainersImageAssessment + - Added Interface DefenderForContainersAwsOfferingVmScanners + - Added Interface DefenderForContainersDockerHubOffering + - Added Interface DefenderForContainersGcpOffering + - Added Interface DefenderForContainersGcpOfferingDataPipelineNativeCloudConnection + - Added Interface DefenderForContainersGcpOfferingMdcContainersAgentlessDiscoveryK8S + - Added Interface DefenderForContainersGcpOfferingMdcContainersImageAssessment + - Added Interface DefenderForContainersGcpOfferingNativeCloudConnection + - Added Interface DefenderForContainersGcpOfferingVmScanners + - Added Interface DefenderForContainersJFrogOffering + - Added Interface DefenderForDatabasesGcpOffering + - Added Interface DefenderForDatabasesGcpOfferingArcAutoProvisioning + - Added Interface DefenderForDatabasesGcpOfferingDefenderForDatabasesArcAutoProvisioning + - Added Interface DefenderForServersAwsOffering + - Added Interface DefenderForServersAwsOfferingMdeAutoProvisioning + - Added Interface DefenderForServersAwsOfferingSubPlan + - Added Interface DefenderForServersAwsOfferingVaAutoProvisioning + - Added Interface DefenderForServersAwsOfferingVaAutoProvisioningConfiguration + - Added Interface DefenderForServersAwsOfferingVmScanners + - Added Interface DefenderForServersGcpOffering + - Added Interface DefenderForServersGcpOfferingArcAutoProvisioning + - Added Interface DefenderForServersGcpOfferingDefenderForServers + - Added Interface DefenderForServersGcpOfferingMdeAutoProvisioning + - Added Interface DefenderForServersGcpOfferingSubPlan + - Added Interface DefenderForServersGcpOfferingVaAutoProvisioning + - Added Interface DefenderForServersGcpOfferingVaAutoProvisioningConfiguration + - Added Interface DefenderForServersGcpOfferingVmScanners + - Added Interface DefenderForStorageCancelMalwareScanOptionalParams + - Added Interface DefenderForStorageCreateOptionalParams + - Added Interface DefenderForStorageGetMalwareScanOptionalParams + - Added Interface DefenderForStorageGetOptionalParams + - Added Interface DefenderForStorageSetting + - Added Interface DefenderForStorageSettingProperties + - Added Interface DefenderForStorageStartMalwareScanOptionalParams + - Added Interface DenylistCustomAlertRule + - Added Interface DeviceSecurityGroup + - Added Interface DevOpsCapability + - Added Interface DevOpsConfiguration + - Added Interface DevOpsConfigurationListResponse + - Added Interface DevOpsConfigurationProperties + - Added Interface DevOpsConfigurationsCreateOrUpdateOptionalParams + - Added Interface DevOpsConfigurationsDeleteOptionalParams + - Added Interface DevOpsConfigurationsGetOptionalParams + - Added Interface DevOpsConfigurationsListNextOptionalParams + - Added Interface DevOpsConfigurationsListOptionalParams + - Added Interface DevOpsConfigurationsUpdateOptionalParams + - Added Interface DevOpsOperationResultsGetOptionalParams + - Added Interface DirectMethodInvokesNotInAllowedRange + - Added Interface DiscoveredSecuritySolution + - Added Interface DockerHubEnvironmentData + - Added Interface EnvironmentData + - Added Interface EnvironmentDetails + - Added Interface ErrorDetail + - Added Interface ErrorDetailAutoGenerated + - Added Interface ErrorDetailAutoGenerated2 + - Added Interface ErrorResponse + - Added Interface ErrorResponseAutoGenerated + - Added Interface ErrorResponseAutoGenerated2 + - Added Interface ExecuteGovernanceRuleParams + - Added Interface Extension + - Added Interface ExternalSecuritySolution + - Added Interface FailedLocalLoginsNotInAllowedRange + - Added Interface FileUploadsNotInAllowedRange + - Added Interface GcpCredentialsDetailsProperties + - Added Interface GcpOrganizationalData + - Added Interface GcpOrganizationalDataMember + - Added Interface GcpOrganizationalDataOrganization + - Added Interface GcpProjectDetails + - Added Interface GcpProjectEnvironmentData + - Added Interface GetSensitivitySettingsListResponse + - Added Interface GetSensitivitySettingsResponse + - Added Interface GetSensitivitySettingsResponseProperties + - Added Interface GetSensitivitySettingsResponsePropertiesMipInformation + - Added Interface GitHubOwner + - Added Interface GitHubOwnerConfiguration + - Added Interface GitHubOwnerListResponse + - Added Interface GitHubOwnerProperties + - Added Interface GitHubOwnersGetOptionalParams + - Added Interface GitHubOwnersListAvailableOptionalParams + - Added Interface GitHubOwnersListNextOptionalParams + - Added Interface GitHubOwnersListOptionalParams + - Added Interface GitHubReposGetOptionalParams + - Added Interface GitHubRepository + - Added Interface GitHubRepositoryListResponse + - Added Interface GitHubRepositoryProperties + - Added Interface GitHubReposListNextOptionalParams + - Added Interface GitHubReposListOptionalParams + - Added Interface GithubScopeEnvironmentData + - Added Interface GitLabGroup + - Added Interface GitLabGroupConfiguration + - Added Interface GitLabGroupListResponse + - Added Interface GitLabGroupProperties + - Added Interface GitLabGroupsGetOptionalParams + - Added Interface GitLabGroupsListAvailableOptionalParams + - Added Interface GitLabGroupsListNextOptionalParams + - Added Interface GitLabGroupsListOptionalParams + - Added Interface GitLabProject + - Added Interface GitLabProjectListResponse + - Added Interface GitLabProjectProperties + - Added Interface GitLabProjectsGetOptionalParams + - Added Interface GitLabProjectsListNextOptionalParams + - Added Interface GitLabProjectsListOptionalParams + - Added Interface GitlabScopeEnvironmentData + - Added Interface GitLabSubgroupsListOptionalParams + - Added Interface GovernanceAssignment + - Added Interface GovernanceAssignmentAdditionalData + - Added Interface GovernanceAssignmentsCreateOrUpdateOptionalParams + - Added Interface GovernanceAssignmentsDeleteOptionalParams + - Added Interface GovernanceAssignmentsGetOptionalParams + - Added Interface GovernanceAssignmentsList + - Added Interface GovernanceAssignmentsListNextOptionalParams + - Added Interface GovernanceAssignmentsListOptionalParams + - Added Interface GovernanceEmailNotification + - Added Interface GovernanceRule + - Added Interface GovernanceRuleEmailNotification + - Added Interface GovernanceRuleList + - Added Interface GovernanceRuleMetadata + - Added Interface GovernanceRuleOwnerSource + - Added Interface GovernanceRulesCreateOrUpdateOptionalParams + - Added Interface GovernanceRulesDeleteHeaders + - Added Interface GovernanceRulesDeleteOptionalParams + - Added Interface GovernanceRulesExecuteHeaders + - Added Interface GovernanceRulesExecuteOptionalParams + - Added Interface GovernanceRulesGetOptionalParams + - Added Interface GovernanceRulesListNextOptionalParams + - Added Interface GovernanceRulesListOptionalParams + - Added Interface GovernanceRulesOperationResultsHeaders + - Added Interface GovernanceRulesOperationResultsOptionalParams + - Added Interface HealthDataClassification + - Added Interface HealthReport + - Added Interface HealthReportsGetOptionalParams + - Added Interface HealthReportsList + - Added Interface HealthReportsListNextOptionalParams + - Added Interface HealthReportsListOptionalParams + - Added Interface HttpC2DMessagesNotInAllowedRange + - Added Interface HttpC2DRejectedMessagesNotInAllowedRange + - Added Interface HttpD2CMessagesNotInAllowedRange + - Added Interface Identity + - Added Interface InformationProtectionPolicy + - Added Interface InfoType + - Added Interface InventoryList + - Added Interface IoTSecurityAggregatedAlert + - Added Interface IoTSecurityAggregatedRecommendation + - Added Interface IoTSecuritySolutionAnalyticsModel + - Added Interface IoTSecuritySolutionModel + - Added Interface Issue + - Added Interface JFrogEnvironmentData + - Added Interface JitNetworkAccessPolicy + - Added Interface Label + - Added Interface ListCustomAlertRule + - Added Interface LocalUserNotAllowed + - Added Interface LogAnalyticsIdentifier + - Added Interface MalwareScan + - Added Interface MalwareScanningProperties + - Added Interface MalwareScanProperties + - Added Interface MdeOnboardingData + - Added Interface MqttC2DMessagesNotInAllowedRange + - Added Interface MqttC2DRejectedMessagesNotInAllowedRange + - Added Interface MqttD2CMessagesNotInAllowedRange + - Added Interface NotificationsSource + - Added Interface NotificationsSourceAlert + - Added Interface NotificationsSourceAttackPath + - Added Interface OnPremiseResourceDetails + - Added Interface OnPremiseSqlResourceDetails + - Added Interface OnUploadFilters + - Added Interface OnUploadProperties + - Added Interface OperationListResult + - Added Interface OperationResultAutoGenerated + - Added Interface OperationStatus + - Added Interface OperationStatusAutoGenerated + - Added Interface OperationStatusResult + - Added Interface PartialAssessmentProperties + - Added Interface Pricing + - Added Interface PricingsDeleteOptionalParams + - Added Interface ProcessNotAllowed + - Added Interface ProxyResource + - Added Interface QueuePurgesNotInAllowedRange + - Added Interface RegulatoryComplianceAssessment + - Added Interface RegulatoryComplianceControl + - Added Interface RegulatoryComplianceStandard + - Added Interface RemediationEta + - Added Interface ResourceAutoGenerated + - Added Interface ResourceAutoGenerated2 + - Added Interface ResourceDetailsAutoGenerated + - Added Interface RuleResults + - Added Interface Scan + - Added Interface ScanResult + - Added Interface ScanSummary + - Added Interface SecureScoreControlDefinitionItem + - Added Interface SecureScoreControlDetails + - Added Interface SecureScoreItem + - Added Interface SecurityAssessment + - Added Interface SecurityAssessmentMetadata + - Added Interface SecurityAssessmentMetadataPropertiesResponse + - Added Interface SecurityAssessmentMetadataResponse + - Added Interface SecurityAssessmentProperties + - Added Interface SecurityAssessmentPropertiesResponse + - Added Interface SecurityAssessmentResponse + - Added Interface SecurityConnector + - Added Interface SecurityConnectorApplicationCreateOrUpdateOptionalParams + - Added Interface SecurityConnectorApplicationDeleteOptionalParams + - Added Interface SecurityConnectorApplicationGetOptionalParams + - Added Interface SecurityConnectorApplicationsListNextOptionalParams + - Added Interface SecurityConnectorApplicationsListOptionalParams + - Added Interface SecurityContact + - Added Interface SecurityContactPropertiesNotificationsByRole + - Added Interface SecurityOperator + - Added Interface SecurityOperatorList + - Added Interface SecurityOperatorsCreateOrUpdateOptionalParams + - Added Interface SecurityOperatorsDeleteOptionalParams + - Added Interface SecurityOperatorsGetOptionalParams + - Added Interface SecurityOperatorsListOptionalParams + - Added Interface SecuritySolution + - Added Interface SecuritySolutionsReferenceData + - Added Interface SecurityStandard + - Added Interface SecurityStandardList + - Added Interface SecurityStandardsCreateOrUpdateOptionalParams + - Added Interface SecurityStandardsDeleteOptionalParams + - Added Interface SecurityStandardsGetOptionalParams + - Added Interface SecurityStandardsListNextOptionalParams + - Added Interface SecurityStandardsListOptionalParams + - Added Interface SecuritySubAssessment + - Added Interface SecurityTask + - Added Interface SensitiveDataDiscoveryProperties + - Added Interface SensitivitySettingsCreateOrUpdateOptionalParams + - Added Interface SensitivitySettingsGetOptionalParams + - Added Interface SensitivitySettingsListOptionalParams + - Added Interface ServerVulnerabilityAssessment + - Added Interface ServerVulnerabilityAssessmentsSetting + - Added Interface ServerVulnerabilityAssessmentsSettingsCreateOrUpdateOptionalParams + - Added Interface ServerVulnerabilityAssessmentsSettingsDeleteOptionalParams + - Added Interface ServerVulnerabilityAssessmentsSettingsGetOptionalParams + - Added Interface ServerVulnerabilityAssessmentsSettingsList + - Added Interface ServerVulnerabilityAssessmentsSettingsListBySubscriptionNextOptionalParams + - Added Interface ServerVulnerabilityAssessmentsSettingsListBySubscriptionOptionalParams + - Added Interface ServerVulnerabilityProperties + - Added Interface Setting + - Added Interface Software + - Added Interface SqlServerVulnerabilityProperties + - Added Interface StandardAssignment + - Added Interface StandardAssignmentMetadata + - Added Interface StandardAssignmentPropertiesAttestationData + - Added Interface StandardAssignmentPropertiesExemptionData + - Added Interface StandardAssignmentsCreateOptionalParams + - Added Interface StandardAssignmentsDeleteOptionalParams + - Added Interface StandardAssignmentsGetOptionalParams + - Added Interface StandardAssignmentsList + - Added Interface StandardAssignmentsListNextOptionalParams + - Added Interface StandardAssignmentsListOptionalParams + - Added Interface StandardMetadata + - Added Interface StatusAutoGenerated + - Added Interface TargetBranchConfiguration + - Added Interface ThresholdCustomAlertRule + - Added Interface TimeWindowCustomAlertRule + - Added Interface TopologyResource + - Added Interface TrackedResource + - Added Interface TwinUpdatesNotInAllowedRange + - Added Interface UnauthorizedOperationsNotInAllowedRange + - Added Interface UpdateIotSecuritySolutionData + - Added Interface UpdateSensitivitySettingsRequest + - Added Interface VmScannersAws + - Added Interface VmScannersBase + - Added Interface VmScannersBaseConfiguration + - Added Interface VmScannersGcp + - Added Interface WorkspaceSetting + - Added Type Alias ActionableRemediationState + - Added Type Alias AgentlessEnablement + - Added Type Alias AnnotateDefaultBranchState + - Added Type Alias APICollectionsGetByAzureApiManagementServiceResponse + - Added Type Alias APICollectionsListByAzureApiManagementServiceNextResponse + - Added Type Alias APICollectionsListByAzureApiManagementServiceResponse + - Added Type Alias APICollectionsListByResourceGroupNextResponse + - Added Type Alias APICollectionsListByResourceGroupResponse + - Added Type Alias APICollectionsListBySubscriptionNextResponse + - Added Type Alias APICollectionsListBySubscriptionResponse + - Added Type Alias APICollectionsOnboardAzureApiManagementApiResponse + - Added Type Alias ApplicationConditionOperator + - Added Type Alias ApplicationCreateOrUpdateResponse + - Added Type Alias ApplicationGetResponse + - Added Type Alias ApplicationsListNextResponse + - Added Type Alias ApplicationsListResponse + - Added Type Alias ApplicationSourceResourceType + - Added Type Alias AttestationComplianceState + - Added Type Alias AuthenticationUnion + - Added Type Alias AutoDiscovery + - Added Type Alias AutomationsUpdateResponse + - Added Type Alias AwsOrganizationalDataUnion + - Added Type Alias AzureDevOpsOrgsCreateOrUpdateResponse + - Added Type Alias AzureDevOpsOrgsGetResponse + - Added Type Alias AzureDevOpsOrgsListAvailableResponse + - Added Type Alias AzureDevOpsOrgsListNextResponse + - Added Type Alias AzureDevOpsOrgsListResponse + - Added Type Alias AzureDevOpsOrgsUpdateResponse + - Added Type Alias AzureDevOpsProjectsCreateOrUpdateResponse + - Added Type Alias AzureDevOpsProjectsGetResponse + - Added Type Alias AzureDevOpsProjectsListNextResponse + - Added Type Alias AzureDevOpsProjectsListResponse + - Added Type Alias AzureDevOpsProjectsUpdateResponse + - Added Type Alias AzureDevOpsReposCreateOrUpdateResponse + - Added Type Alias AzureDevOpsReposGetResponse + - Added Type Alias AzureDevOpsReposListNextResponse + - Added Type Alias AzureDevOpsReposListResponse + - Added Type Alias AzureDevOpsReposUpdateResponse + - Added Type Alias BlobScanResultsOptions + - Added Type Alias Code + - Added Type Alias ConnectionType + - Added Type Alias CustomRecommendationsCreateOrUpdateResponse + - Added Type Alias CustomRecommendationsGetResponse + - Added Type Alias CustomRecommendationsListNextResponse + - Added Type Alias CustomRecommendationsListResponse + - Added Type Alias DefenderForStorageCancelMalwareScanResponse + - Added Type Alias DefenderForStorageCreateResponse + - Added Type Alias DefenderForStorageGetMalwareScanResponse + - Added Type Alias DefenderForStorageGetResponse + - Added Type Alias DefenderForStorageStartMalwareScanResponse + - Added Type Alias DesiredOnboardingState + - Added Type Alias DevOpsConfigurationsCreateOrUpdateResponse + - Added Type Alias DevOpsConfigurationsGetResponse + - Added Type Alias DevOpsConfigurationsListNextResponse + - Added Type Alias DevOpsConfigurationsListResponse + - Added Type Alias DevOpsConfigurationsUpdateResponse + - Added Type Alias DevOpsOperationResultsGetResponse + - Added Type Alias DevOpsProvisioningState + - Added Type Alias Effect + - Added Type Alias Enforce + - Added Type Alias EnvironmentDataUnion + - Added Type Alias EnvironmentType + - Added Type Alias ExemptionCategory + - Added Type Alias GcpOrganizationalDataUnion + - Added Type Alias GitHubOwnersGetResponse + - Added Type Alias GitHubOwnersListAvailableResponse + - Added Type Alias GitHubOwnersListNextResponse + - Added Type Alias GitHubOwnersListResponse + - Added Type Alias GitHubReposGetResponse + - Added Type Alias GitHubReposListNextResponse + - Added Type Alias GitHubReposListResponse + - Added Type Alias GitLabGroupsGetResponse + - Added Type Alias GitLabGroupsListAvailableResponse + - Added Type Alias GitLabGroupsListNextResponse + - Added Type Alias GitLabGroupsListResponse + - Added Type Alias GitLabProjectsGetResponse + - Added Type Alias GitLabProjectsListNextResponse + - Added Type Alias GitLabProjectsListResponse + - Added Type Alias GitLabSubgroupsListResponse + - Added Type Alias GovernanceAssignmentsCreateOrUpdateResponse + - Added Type Alias GovernanceAssignmentsGetResponse + - Added Type Alias GovernanceAssignmentsListNextResponse + - Added Type Alias GovernanceAssignmentsListResponse + - Added Type Alias GovernanceRuleConditionOperator + - Added Type Alias GovernanceRuleOwnerSourceType + - Added Type Alias GovernanceRulesCreateOrUpdateResponse + - Added Type Alias GovernanceRulesExecuteResponse + - Added Type Alias GovernanceRulesGetResponse + - Added Type Alias GovernanceRulesListNextResponse + - Added Type Alias GovernanceRulesListResponse + - Added Type Alias GovernanceRulesOperationResultsResponse + - Added Type Alias GovernanceRuleSourceResourceType + - Added Type Alias GovernanceRuleType + - Added Type Alias HealthReportsGetResponse + - Added Type Alias HealthReportsListNextResponse + - Added Type Alias HealthReportsListResponse + - Added Type Alias Inherited + - Added Type Alias InheritFromParentState + - Added Type Alias InventoryKind + - Added Type Alias InventoryListKind + - Added Type Alias IsEnabled + - Added Type Alias MinimalRiskLevel + - Added Type Alias MinimalSeverity + - Added Type Alias MipIntegrationStatus + - Added Type Alias NotificationsSourceUnion + - Added Type Alias OnboardingState + - Added Type Alias OperationResult + - Added Type Alias Origin + - Added Type Alias RecommendationSupportedClouds + - Added Type Alias ResourcesCoverageStatus + - Added Type Alias RuleCategory + - Added Type Alias ScanningMode + - Added Type Alias SecurityConnectorApplicationCreateOrUpdateResponse + - Added Type Alias SecurityConnectorApplicationGetResponse + - Added Type Alias SecurityConnectorApplicationsListNextResponse + - Added Type Alias SecurityConnectorApplicationsListResponse + - Added Type Alias SecurityContactName + - Added Type Alias SecurityContactRole + - Added Type Alias SecurityIssue + - Added Type Alias SecurityOperatorsCreateOrUpdateResponse + - Added Type Alias SecurityOperatorsGetResponse + - Added Type Alias SecurityOperatorsListResponse + - Added Type Alias SecurityStandardsCreateOrUpdateResponse + - Added Type Alias SecurityStandardsGetResponse + - Added Type Alias SecurityStandardsListNextResponse + - Added Type Alias SecurityStandardsListResponse + - Added Type Alias SensitivitySettingsCreateOrUpdateResponse + - Added Type Alias SensitivitySettingsGetResponse + - Added Type Alias SensitivitySettingsListResponse + - Added Type Alias ServerVulnerabilityAssessmentsAzureSettingSelectedProvider + - Added Type Alias ServerVulnerabilityAssessmentsSettingKind + - Added Type Alias ServerVulnerabilityAssessmentsSettingKindName + - Added Type Alias ServerVulnerabilityAssessmentsSettingsCreateOrUpdateResponse + - Added Type Alias ServerVulnerabilityAssessmentsSettingsGetResponse + - Added Type Alias ServerVulnerabilityAssessmentsSettingsListBySubscriptionNextResponse + - Added Type Alias ServerVulnerabilityAssessmentsSettingsListBySubscriptionResponse + - Added Type Alias ServerVulnerabilityAssessmentsSettingUnion + - Added Type Alias SettingNameAutoGenerated + - Added Type Alias SourceType + - Added Type Alias StandardAssignmentsCreateResponse + - Added Type Alias StandardAssignmentsGetResponse + - Added Type Alias StandardAssignmentsListNextResponse + - Added Type Alias StandardAssignmentsListResponse + - Added Type Alias StandardSupportedCloud + - Added Type Alias StandardType + - Added Type Alias StatusName + - Added Type Alias SubPlan + - Added Type Alias Type + - Interface AlertsSimulateOptionalParams has a new optional parameter resumeFrom + - Interface AlertsSimulateOptionalParams has a new optional parameter updateIntervalInMs + - Interface Operation has a new optional parameter actionType + - Interface Operation has a new optional parameter isDataAction + - Interface PricingsListOptionalParams has a new optional parameter filter + - Interface ScanProperties has a new optional parameter lastScanTime + - Added Enum KnownActionableRemediationState + - Added Enum KnownAgentlessEnablement + - Added Enum KnownAnnotateDefaultBranchState + - Added Enum KnownApplicationConditionOperator + - Added Enum KnownApplicationSourceResourceType + - Added Enum KnownAttestationComplianceState + - Added Enum KnownAutoDiscovery + - Added Enum KnownBlobScanResultsOptions + - Added Enum KnownCode + - Added Enum KnownDesiredOnboardingState + - Added Enum KnownDevOpsProvisioningState + - Added Enum KnownEffect + - Added Enum KnownEnforce + - Added Enum KnownEnvironmentType + - Added Enum KnownExemptionCategory + - Added Enum KnownGovernanceRuleConditionOperator + - Added Enum KnownGovernanceRuleOwnerSourceType + - Added Enum KnownGovernanceRuleSourceResourceType + - Added Enum KnownGovernanceRuleType + - Added Enum KnownInherited + - Added Enum KnownInheritFromParentState + - Added Enum KnownInventoryKind + - Added Enum KnownInventoryListKind + - Added Enum KnownIsEnabled + - Added Enum KnownMinimalRiskLevel + - Added Enum KnownMinimalSeverity + - Added Enum KnownMipIntegrationStatus + - Added Enum KnownOnboardingState + - Added Enum KnownOperationResult + - Added Enum KnownOrigin + - Added Enum KnownRecommendationSupportedClouds + - Added Enum KnownResourcesCoverageStatus + - Added Enum KnownRuleCategory + - Added Enum KnownScanningMode + - Added Enum KnownSecurityContactName + - Added Enum KnownSecurityContactRole + - Added Enum KnownSecurityIssue + - Added Enum KnownServerVulnerabilityAssessmentsAzureSettingSelectedProvider + - Added Enum KnownServerVulnerabilityAssessmentsSettingKind + - Added Enum KnownServerVulnerabilityAssessmentsSettingKindName + - Added Enum KnownSettingNameAutoGenerated + - Added Enum KnownSourceType + - Added Enum KnownStandardSupportedCloud + - Added Enum KnownStandardType + - Added Enum KnownStatusName + - Added Enum KnownSubPlan + - Added Enum KnownType + - Enum KnownActionType has a new value Internal + - Enum KnownAlertStatus has a new value InProgress + - Enum KnownBundleType has a new value CosmosDbs + - Enum KnownCloudName has a new value AzureDevOps + - Enum KnownCloudName has a new value DockerHub + - Enum KnownCloudName has a new value Github + - Enum KnownCloudName has a new value GitLab + - Enum KnownCloudName has a new value JFrog + - Enum KnownEventSource has a new value AttackPaths + - Enum KnownEventSource has a new value AttackPathsSnapshot + - Enum KnownOfferingType has a new value CspmMonitorAzureDevOps + - Enum KnownOfferingType has a new value CspmMonitorDockerHub + - Enum KnownOfferingType has a new value CspmMonitorGcp + - Enum KnownOfferingType has a new value CspmMonitorGithub + - Enum KnownOfferingType has a new value CspmMonitorGitLab + - Enum KnownOfferingType has a new value CspmMonitorJFrog + - Enum KnownOfferingType has a new value DefenderCspmAws + - Enum KnownOfferingType has a new value DefenderCspmDockerHub + - Enum KnownOfferingType has a new value DefenderCspmGcp + - Enum KnownOfferingType has a new value DefenderCspmJFrog + - Enum KnownOfferingType has a new value DefenderForContainersDockerHub + - Enum KnownOfferingType has a new value DefenderForContainersGcp + - Enum KnownOfferingType has a new value DefenderForContainersJFrog + - Enum KnownOfferingType has a new value DefenderForDatabasesAws + - Enum KnownOfferingType has a new value DefenderForDatabasesGcp + - Enum KnownOfferingType has a new value DefenderForServersGcp + - Enum KnownSettingName has a new value Current + - Added function getContinuationToken + ### Breaking Changes -### Bugs Fixed - -### Other Changes - + - Removed operation group AdaptiveApplicationControls + - Removed operation group AdaptiveNetworkHardenings + - Removed operation group IngestionSettings + - Removed operation Alerts.simulate + - Removed operation SecurityContacts.update + - Operation AllowedConnections.get has a new signature + - Operation Pricings.get has a new signature + - Operation Pricings.list has a new signature + - Operation Pricings.update has a new signature + - Operation SecurityContacts.create has a new signature + - Operation SecurityContacts.delete has a new signature + - Operation SecurityContacts.get has a new signature + - Operation Settings.get has a new signature + - Operation Settings.update has a new signature + - Class SecurityCenter has a new signature + - Interface AlertsSuppressionRulesListNextOptionalParams no longer has parameter alertType + - Interface DefenderForServersAwsOfferingArcAutoProvisioning no longer has parameter enabled + - Interface DefenderForServersAwsOfferingArcAutoProvisioning no longer has parameter servicePrincipalSecretMetadata + - Interface IotSecuritySolutionListByResourceGroupNextOptionalParams no longer has parameter filter + - Interface IotSecuritySolutionListBySubscriptionNextOptionalParams no longer has parameter filter + - Interface IotSecuritySolutionsAnalyticsAggregatedAlertListNextOptionalParams no longer has parameter top + - Interface IotSecuritySolutionsAnalyticsRecommendationListNextOptionalParams no longer has parameter top + - Interface RegulatoryComplianceAssessmentsListNextOptionalParams no longer has parameter filter + - Interface RegulatoryComplianceControlsListNextOptionalParams no longer has parameter filter + - Interface RegulatoryComplianceStandardsListNextOptionalParams no longer has parameter filter + - Interface SecureScoreControlsListBySecureScoreNextOptionalParams no longer has parameter expand + - Interface SecureScoreControlsListNextOptionalParams no longer has parameter expand + - Interface TasksListByHomeRegionNextOptionalParams no longer has parameter filter + - Interface TasksListByResourceGroupNextOptionalParams no longer has parameter filter + - Interface TasksListNextOptionalParams no longer has parameter filter + - Parameter value of interface SecurityContactList is now required + - Type of parameter offeringType of interface CloudOffering is changed from "CspmMonitorAws" | "DefenderForContainersAws" | "DefenderForServersAws" | "InformationProtectionAws" to "CspmMonitorAws" | "DefenderForContainersAws" | "DefenderForServersAws" | "DefenderForDatabasesAws" | "CspmMonitorGcp" | "DefenderForServersGcp" | "DefenderForDatabasesGcp" | "DefenderForContainersGcp" | "CspmMonitorGithub" | "CspmMonitorAzureDevOps" | "DefenderCspmAws" | "DefenderCspmGcp" | "CspmMonitorGitLab" | "CspmMonitorDockerHub" | "DefenderForContainersDockerHub" | "DefenderCspmDockerHub" | "CspmMonitorJFrog" | "DefenderForContainersJFrog" | "DefenderCspmJFrog" + - Type of parameter value of interface ExternalSecuritySolutionList is changed from ExternalSecuritySolutionUnion[] to ExternalSecuritySolution[] + - Type of parameter origin of interface Operation is changed from string to Origin + - Class SecurityCenter no longer has parameter adaptiveApplicationControls + - Class SecurityCenter no longer has parameter adaptiveNetworkHardenings + - Class SecurityCenter no longer has parameter ingestionSettings + - Removed Enum KnownAdaptiveApplicationControlIssue + - Removed Enum KnownAlertNotifications + - Removed Enum KnownAlertsToAdmins + - Removed Enum KnownConfigurationStatus + - Removed Enum KnownDirection + - Removed Enum KnownEnforcementMode + - Removed Enum KnownEnforcementSupport + - Removed Enum KnownFileType + - Removed Enum KnownRecommendationAction + - Removed Enum KnownRecommendationStatus + - Removed Enum KnownSourceSystem + - Removed Enum KnownTransportProtocol + - Enum KnownOfferingType no longer has value InformationProtectionAws + - Enum KnownSettingName no longer has value Mcas + - Enum KnownSettingName no longer has value Sentinel + - Enum KnownSettingName no longer has value Wdatp + - Enum KnownSettingName no longer has value WdatpExcludeLinuxPublicPreview + + ## 6.0.0-beta.5 (2024-05-16) Compared with version 5.0.0 diff --git a/sdk/security/arm-security/LICENSE b/sdk/security/arm-security/LICENSE index b2f52a2bad4e..63447fd8bbbf 100644 --- a/sdk/security/arm-security/LICENSE +++ b/sdk/security/arm-security/LICENSE @@ -18,4 +18,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. +SOFTWARE. \ No newline at end of file diff --git a/sdk/security/arm-security/README.md b/sdk/security/arm-security/README.md index d1dd6e6557a4..2003af5a84fb 100644 --- a/sdk/security/arm-security/README.md +++ b/sdk/security/arm-security/README.md @@ -44,7 +44,6 @@ npm install @azure/identity ``` You will also need to **register a new AAD application and grant access to Azure SecurityCenter** by assigning the suitable role to your service principal (note: roles such as `"Owner"` will not grant the necessary permissions). -Set the values of the client ID, tenant ID, and client secret of the AAD application as environment variables: `AZURE_CLIENT_ID`, `AZURE_TENANT_ID`, `AZURE_CLIENT_SECRET`. For more information about how to create an Azure AD Application check out [this guide](https://learn.microsoft.com/azure/active-directory/develop/howto-create-service-principal-portal). @@ -64,16 +63,14 @@ For browser environments, use the `InteractiveBrowserCredential` from the `@azur import { InteractiveBrowserCredential } from "@azure/identity"; import { SecurityCenter } from "@azure/arm-security"; -const subscriptionId = "00000000-0000-0000-0000-000000000000"; const credential = new InteractiveBrowserCredential({ tenantId: "", - clientId: "", -}); + clientId: "" + }); const client = new SecurityCenter(credential, subscriptionId); ``` ### JavaScript Bundle - To use this client library in the browser, first you need to use a bundler. For details on how to do this, please refer to our [bundling documentation](https://aka.ms/AzureSDKBundling). ## Key concepts @@ -109,7 +106,6 @@ If you'd like to contribute to this library, please read the [contributing guide - [Microsoft Azure SDK for JavaScript](https://github.com/Azure/azure-sdk-for-js) - [azure_cli]: https://learn.microsoft.com/cli/azure [azure_sub]: https://azure.microsoft.com/free/ [azure_sub]: https://azure.microsoft.com/free/ diff --git a/sdk/security/arm-security/_meta.json b/sdk/security/arm-security/_meta.json index 922a39a7437f..a566d6a2bbff 100644 --- a/sdk/security/arm-security/_meta.json +++ b/sdk/security/arm-security/_meta.json @@ -1,8 +1,8 @@ { - "commit": "c43d0d41a6edc75a2cf452e33ea9344863db3c9e", + "commit": "dd35fb8da48a4cf2e22a4a8e742cbe61ce2ae284", "readme": "specification/security/resource-manager/readme.md", - "autorest_command": "autorest --version=3.9.7 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=D:\\Git\\azure-sdk-for-js ..\\azure-rest-api-specs\\specification\\security\\resource-manager\\readme.md --use=@autorest/typescript@6.0.18 --generate-sample=true", + "autorest_command": "autorest --version=3.9.7 --typescript --modelerfour.lenient-model-deduplication --azure-arm --head-as-boolean=true --license-header=MICROSOFT_MIT_NO_VERSION --generate-test --typescript-sdks-folder=/mnt/vss/_work/1/s/azure-sdk-for-js ../azure-rest-api-specs/specification/security/resource-manager/readme.md --use=@autorest/typescript@^6.0.12", "repository_url": "https://github.com/Azure/azure-rest-api-specs.git", - "release_tool": "@azure-tools/js-sdk-release-tools@2.7.4", - "use": "@autorest/typescript@6.0.18" -} \ No newline at end of file + "release_tool": "@azure-tools/js-sdk-release-tools@2.7.27", + "use": "@autorest/typescript@^6.0.12" +} diff --git a/sdk/security/arm-security/api-extractor.json b/sdk/security/arm-security/api-extractor.json index 7cf220f6e984..1c619288bab5 100644 --- a/sdk/security/arm-security/api-extractor.json +++ b/sdk/security/arm-security/api-extractor.json @@ -28,4 +28,4 @@ } } } -} +} \ No newline at end of file diff --git a/sdk/security/arm-security/package.json b/sdk/security/arm-security/package.json index 131451c66a8e..a8858f6284e8 100644 --- a/sdk/security/arm-security/package.json +++ b/sdk/security/arm-security/package.json @@ -10,10 +10,10 @@ "dependencies": { "@azure/abort-controller": "^2.1.2", "@azure/core-auth": "^1.9.0", - "@azure/core-client": "^1.9.2", + "@azure/core-client": "^1.9.4", "@azure/core-lro": "^2.5.4", "@azure/core-paging": "^1.6.2", - "@azure/core-rest-pipeline": "^1.19.0", + "@azure/core-rest-pipeline": "^1.20.0", "tslib": "^2.8.1" }, "keywords": [ @@ -21,31 +21,30 @@ "azure", "typescript", "browser", - "isomorphic" + "isomorphic", + "cloud" ], "license": "MIT", "main": "./dist/commonjs/index.js", "module": "./dist/esm/index.js", "types": "./dist/commonjs/index.d.ts", + "type": "module", "devDependencies": { "@azure-tools/test-credential": "^2.0.0", "@azure-tools/test-recorder": "^4.1.0", "@azure-tools/test-utils-vitest": "^1.0.0", "@azure/dev-tool": "^1.0.0", - "@azure/identity": "^4.6.0", - "@azure/logger": "^1.1.4", + "@azure/identity": "^4.9.1", + "@azure/logger": "^1.2.0", "@types/node": "^18.0.0", "@vitest/browser": "^3.0.9", "@vitest/coverage-istanbul": "^3.0.9", "dotenv": "^16.0.0", - "playwright": "^1.50.1", + "playwright": "^1.52.0", "typescript": "~5.8.2", "vitest": "^3.0.9" }, - "repository": { - "type": "git", - "url": "https://github.com/Azure/azure-sdk-for-js.git" - }, + "repository": "github:Azure/azure-sdk-for-js", "bugs": { "url": "https://github.com/Azure/azure-sdk-for-js/issues" }, @@ -58,20 +57,30 @@ ], "scripts": { "build": "npm run clean && dev-tool run build-package && dev-tool run extract-api", + "build:browser": "echo skipped", + "build:node": "echo skipped", "build:samples": "echo skipped.", - "check-format": "echo skipped", + "build:test": "echo skipped", + "check-format": "dev-tool run vendored prettier --list-different --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.{ts,cts,mts}\" \"test/**/*.{ts,cts,mts}\" \"*.{js,cjs,mjs,json}\" ", "clean": "dev-tool run vendored rimraf --glob dist dist-browser dist-esm test-dist temp types *.tgz *.log", "execute:samples": "echo skipped", "extract-api": "dev-tool run extract-api", - "format": "echo skipped", + "format": "dev-tool run vendored prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.{ts,cts,mts}\" \"test/**/*.{ts,cts,mts}\" \"*.{js,cjs,mjs,json}\" ", + "integration-test": "npm run integration-test:node && npm run integration-test:browser", + "integration-test:browser": "echo skipped", + "integration-test:node": "dev-tool run test:vitest --esm", "lint": "echo skipped", + "minify": "dev-tool run vendored uglifyjs -c -m --comments --source-map \"content='./dist/index.js.map'\" -o ./dist/index.min.js ./dist/index.js", "pack": "npm pack 2>&1", "prepack": "npm run build", - "test": "npm run test:node && npm run test:browser", + "test": "npm run integration-test", "test:browser": "echo skipped", "test:node": "dev-tool run test:vitest", - "test:node:esm": "dev-tool run test:vitest --esm", - "update-snippets": "dev-tool run update-snippets" + "unit-test": "npm run unit-test:node && npm run unit-test:browser", + "unit-test:browser": "echo skipped", + "unit-test:node": "dev-tool run test:vitest", + "update-snippets": "dev-tool run update-snippets", + "test:node:esm": "dev-tool run test:vitest --esm" }, "sideEffects": false, "//metadata": { @@ -83,16 +92,9 @@ ] }, "autoPublish": true, + "browser": "./dist/browser/index.js", + "react-native": "./dist/react-native/index.js", "homepage": "https://github.com/Azure/azure-sdk-for-js/tree/main/sdk/security/arm-security", - "//sampleConfiguration": { - "productName": "", - "productSlugs": [ - "azure" - ], - "disableDocsMs": true, - "apiRefLink": "https://learn.microsoft.com/javascript/api/@azure/arm-security?view=azure-node-preview" - }, - "type": "module", "tshy": { "project": "./tsconfig.src.json", "exports": { @@ -109,8 +111,6 @@ ], "selfLink": false }, - "browser": "./dist/browser/index.js", - "react-native": "./dist/react-native/index.js", "exports": { "./package.json": "./package.json", ".": { @@ -132,4 +132,4 @@ } } } -} +} \ No newline at end of file diff --git a/sdk/security/arm-security/review/arm-security.api.md b/sdk/security/arm-security/review/arm-security.api.md index d551e8a73af2..758853f9d01f 100644 --- a/sdk/security/arm-security/review/arm-security.api.md +++ b/sdk/security/arm-security/review/arm-security.api.md @@ -27,6 +27,13 @@ export interface AadExternalSecuritySolution extends ExternalSecuritySolution { export interface AadSolutionProperties extends ExternalSecuritySolutionProperties, AadConnectivityStateAutoGenerated { } +// @public +export interface AccessTokenAuthentication extends Authentication { + accessToken?: string; + authenticationType: "AccessToken"; + username?: string; +} + // @public export interface ActionableRemediation { branchConfiguration?: TargetBranchConfiguration; @@ -46,124 +53,6 @@ export interface ActiveConnectionsNotInAllowedRange extends TimeWindowCustomAler ruleType: "ActiveConnectionsNotInAllowedRange"; } -// @public (undocumented) -export interface AdaptiveApplicationControlGroup extends Resource, Location_2 { - readonly configurationStatus?: ConfigurationStatus; - enforcementMode?: EnforcementMode; - readonly issues?: AdaptiveApplicationControlIssueSummary[]; - // (undocumented) - pathRecommendations?: PathRecommendation[]; - protectionMode?: ProtectionMode; - readonly recommendationStatus?: RecommendationStatus; - readonly sourceSystem?: SourceSystem; - // (undocumented) - vmRecommendations?: VmRecommendation[]; -} - -// @public -export interface AdaptiveApplicationControlGroups { - // (undocumented) - value?: AdaptiveApplicationControlGroup[]; -} - -// @public -export type AdaptiveApplicationControlIssue = string; - -// @public -export interface AdaptiveApplicationControlIssueSummary { - issue?: AdaptiveApplicationControlIssue; - numberOfVms?: number; -} - -// @public -export interface AdaptiveApplicationControls { - delete(ascLocation: string, groupName: string, options?: AdaptiveApplicationControlsDeleteOptionalParams): Promise; - get(ascLocation: string, groupName: string, options?: AdaptiveApplicationControlsGetOptionalParams): Promise; - list(options?: AdaptiveApplicationControlsListOptionalParams): Promise; - put(ascLocation: string, groupName: string, body: AdaptiveApplicationControlGroup, options?: AdaptiveApplicationControlsPutOptionalParams): Promise; -} - -// @public -export interface AdaptiveApplicationControlsDeleteOptionalParams extends coreClient.OperationOptions { -} - -// @public -export interface AdaptiveApplicationControlsGetOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type AdaptiveApplicationControlsGetResponse = AdaptiveApplicationControlGroup; - -// @public -export interface AdaptiveApplicationControlsListOptionalParams extends coreClient.OperationOptions { - includePathRecommendations?: boolean; - summary?: boolean; -} - -// @public -export type AdaptiveApplicationControlsListResponse = AdaptiveApplicationControlGroups; - -// @public -export interface AdaptiveApplicationControlsPutOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type AdaptiveApplicationControlsPutResponse = AdaptiveApplicationControlGroup; - -// @public -export interface AdaptiveNetworkHardening extends Resource { - effectiveNetworkSecurityGroups?: EffectiveNetworkSecurityGroups[]; - rules?: Rule[]; - rulesCalculationTime?: Date; -} - -// @public (undocumented) -export interface AdaptiveNetworkHardeningEnforceRequest { - networkSecurityGroups: string[]; - rules: Rule[]; -} - -// @public -export interface AdaptiveNetworkHardenings { - beginEnforce(resourceGroupName: string, resourceNamespace: string, resourceType: string, resourceName: string, adaptiveNetworkHardeningResourceName: string, body: AdaptiveNetworkHardeningEnforceRequest, options?: AdaptiveNetworkHardeningsEnforceOptionalParams): Promise, void>>; - beginEnforceAndWait(resourceGroupName: string, resourceNamespace: string, resourceType: string, resourceName: string, adaptiveNetworkHardeningResourceName: string, body: AdaptiveNetworkHardeningEnforceRequest, options?: AdaptiveNetworkHardeningsEnforceOptionalParams): Promise; - get(resourceGroupName: string, resourceNamespace: string, resourceType: string, resourceName: string, adaptiveNetworkHardeningResourceName: string, options?: AdaptiveNetworkHardeningsGetOptionalParams): Promise; - listByExtendedResource(resourceGroupName: string, resourceNamespace: string, resourceType: string, resourceName: string, options?: AdaptiveNetworkHardeningsListByExtendedResourceOptionalParams): PagedAsyncIterableIterator; -} - -// @public -export interface AdaptiveNetworkHardeningsEnforceOptionalParams extends coreClient.OperationOptions { - resumeFrom?: string; - updateIntervalInMs?: number; -} - -// @public -export interface AdaptiveNetworkHardeningsGetOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type AdaptiveNetworkHardeningsGetResponse = AdaptiveNetworkHardening; - -// @public -export interface AdaptiveNetworkHardeningsList { - nextLink?: string; - value?: AdaptiveNetworkHardening[]; -} - -// @public -export interface AdaptiveNetworkHardeningsListByExtendedResourceNextOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type AdaptiveNetworkHardeningsListByExtendedResourceNextResponse = AdaptiveNetworkHardeningsList; - -// @public -export interface AdaptiveNetworkHardeningsListByExtendedResourceOptionalParams extends coreClient.OperationOptions { -} - -// @public -export type AdaptiveNetworkHardeningsListByExtendedResourceResponse = AdaptiveNetworkHardeningsList; - // @public export interface AdditionalData { assessedResourceType: "SqlServerVulnerability" | "ContainerRegistryVulnerability" | "ServerVulnerabilityAssessment"; @@ -210,6 +99,18 @@ export interface AdvancedThreatProtectionSetting extends Resource { isEnabled?: boolean; } +// @public +export interface AgentlessConfiguration { + agentlessAutoDiscovery?: AutoDiscovery; + agentlessEnabled?: AgentlessEnablement; + inventoryList?: InventoryList[]; + inventoryListType?: InventoryListKind; + scanners?: string[]; +} + +// @public +export type AgentlessEnablement = string; + // @public export interface Alert extends Resource { readonly alertDisplayName?: string; @@ -733,6 +634,27 @@ export type ApplicationsListResponse = ApplicationsList; // @public export type ApplicationSourceResourceType = string; +// @public +export interface ArcAutoProvisioning { + configuration?: ArcAutoProvisioningConfiguration; + enabled?: boolean; +} + +// @public +export interface ArcAutoProvisioningAws extends ArcAutoProvisioning { + cloudRoleArn?: string; +} + +// @public +export interface ArcAutoProvisioningConfiguration { + privateLinkScope?: string; + proxy?: string; +} + +// @public +export interface ArcAutoProvisioningGcp extends ArcAutoProvisioning { +} + // @public export interface AscLocation extends Resource { properties?: Record; @@ -875,6 +797,16 @@ export interface AssessmentStatusResponse extends AssessmentStatus { // @public export type AssessmentType = string; +// @public +export interface AssignedAssessmentItem { + assessmentKey?: string; +} + +// @public +export interface AssignedStandardItem { + id?: string; +} + // @public export interface AtaExternalSecuritySolution extends ExternalSecuritySolution { properties?: AtaSolutionProperties; @@ -886,6 +818,20 @@ export interface AtaSolutionProperties extends ExternalSecuritySolutionPropertie lastEventReceived?: string; } +// @public +export type AttestationComplianceState = string; + +// @public +export interface AttestationEvidence { + description?: string; + sourceUrl?: string; +} + +// @public +export interface Authentication { + authenticationType: "AccessToken"; +} + // @public export interface AuthenticationDetailsProperties { readonly authenticationProvisioningState?: AuthenticationProvisioningState; @@ -902,6 +848,9 @@ export type AuthenticationProvisioningState = string; // @public export type AuthenticationType = string; +// @public (undocumented) +export type AuthenticationUnion = Authentication | AccessTokenAuthentication; + // @public export interface Authorization { code?: string; @@ -1186,7 +1135,7 @@ export interface AzureDevOpsOrgListResponse { export interface AzureDevOpsOrgProperties { actionableRemediation?: ActionableRemediation; onboardingState?: OnboardingState; - provisioningState?: DevOpsProvisioningState; + readonly provisioningState?: DevOpsProvisioningState; readonly provisioningStatusMessage?: string; readonly provisioningStatusUpdateTimeUtc?: Date; } @@ -1274,7 +1223,7 @@ export interface AzureDevOpsProjectProperties { onboardingState?: OnboardingState; parentOrgName?: string; readonly projectId?: string; - provisioningState?: DevOpsProvisioningState; + readonly provisioningState?: DevOpsProvisioningState; readonly provisioningStatusMessage?: string; readonly provisioningStatusUpdateTimeUtc?: Date; } @@ -1372,7 +1321,7 @@ export interface AzureDevOpsRepositoryProperties { onboardingState?: OnboardingState; parentOrgName?: string; parentProjectName?: string; - provisioningState?: DevOpsProvisioningState; + readonly provisioningState?: DevOpsProvisioningState; readonly provisioningStatusMessage?: string; readonly provisioningStatusUpdateTimeUtc?: Date; readonly repoId?: string; @@ -1461,6 +1410,18 @@ export interface BenchmarkReference { reference?: string; } +// @public +export type BlobScanResultsOptions = string; + +// @public +export interface BlobsScanSummary { + failedBlobsCount?: number; + maliciousBlobsCount?: number; + scannedBlobsInGB?: number; + skippedBlobsCount?: number; + totalBlobsScanned?: number; +} + // @public export interface BuiltInInfoType { id?: string; @@ -1519,11 +1480,11 @@ export type CloudName = string; // @public export interface CloudOffering { readonly description?: string; - offeringType: "CspmMonitorAws" | "DefenderForContainersAws" | "DefenderForServersAws" | "DefenderForDatabasesAws" | "InformationProtectionAws" | "CspmMonitorGcp" | "DefenderForServersGcp" | "DefenderForDatabasesGcp" | "DefenderForContainersGcp" | "CspmMonitorGithub" | "CspmMonitorAzureDevOps" | "DefenderCspmAws" | "DefenderCspmGcp" | "DefenderForDevOpsGithub" | "DefenderForDevOpsAzureDevOps" | "CspmMonitorGitLab" | "DefenderForDevOpsGitLab"; + offeringType: "CspmMonitorAws" | "DefenderForContainersAws" | "DefenderForServersAws" | "DefenderForDatabasesAws" | "CspmMonitorGcp" | "DefenderForServersGcp" | "DefenderForDatabasesGcp" | "DefenderForContainersGcp" | "CspmMonitorGithub" | "CspmMonitorAzureDevOps" | "DefenderCspmAws" | "DefenderCspmGcp" | "CspmMonitorGitLab" | "CspmMonitorDockerHub" | "DefenderForContainersDockerHub" | "DefenderCspmDockerHub" | "CspmMonitorJFrog" | "DefenderForContainersJFrog" | "DefenderCspmJFrog"; } // @public (undocumented) -export type CloudOfferingUnion = CloudOffering | CspmMonitorAwsOffering | DefenderForContainersAwsOffering | DefenderForServersAwsOffering | DefenderFoDatabasesAwsOffering | InformationProtectionAwsOffering | CspmMonitorGcpOffering | DefenderForServersGcpOffering | DefenderForDatabasesGcpOffering | DefenderForContainersGcpOffering | CspmMonitorGithubOffering | CspmMonitorAzureDevOpsOffering | DefenderCspmAwsOffering | DefenderCspmGcpOffering | DefenderForDevOpsGithubOffering | DefenderForDevOpsAzureDevOpsOffering | CspmMonitorGitLabOffering | DefenderForDevOpsGitLabOffering; +export type CloudOfferingUnion = CloudOffering | CspmMonitorAwsOffering | DefenderForContainersAwsOffering | DefenderForServersAwsOffering | DefenderFoDatabasesAwsOffering | CspmMonitorGcpOffering | DefenderForServersGcpOffering | DefenderForDatabasesGcpOffering | DefenderForContainersGcpOffering | CspmMonitorGithubOffering | CspmMonitorAzureDevOpsOffering | DefenderCspmAwsOffering | DefenderCspmGcpOffering | CspmMonitorGitLabOffering | CspmMonitorDockerHubOffering | DefenderForContainersDockerHubOffering | DefenderCspmDockerHubOffering | CspmMonitorJFrogOffering | DefenderForContainersJFrogOffering | DefenderCspmJFrogOffering; // @public export type Code = string; @@ -1619,9 +1580,6 @@ export interface Condition { value?: string; } -// @public -export type ConfigurationStatus = string; - // @public export interface ConnectableResource { readonly id?: string; @@ -1743,6 +1701,11 @@ export interface CspmMonitorAzureDevOpsOffering extends CloudOffering { offeringType: "CspmMonitorAzureDevOps"; } +// @public +export interface CspmMonitorDockerHubOffering extends CloudOffering { + offeringType: "CspmMonitorDockerHub"; +} + // @public export interface CspmMonitorGcpOffering extends CloudOffering { nativeCloudConnection?: CspmMonitorGcpOfferingNativeCloudConnection; @@ -1765,6 +1728,11 @@ export interface CspmMonitorGitLabOffering extends CloudOffering { offeringType: "CspmMonitorGitLab"; } +// @public +export interface CspmMonitorJFrogOffering extends CloudOffering { + offeringType: "CspmMonitorJFrog"; +} + // @public export interface CustomAlertRule { readonly description?: string; @@ -1932,6 +1900,65 @@ export interface CustomEntityStoreAssignmentsListResult { readonly value?: CustomEntityStoreAssignment[]; } +// @public +export interface CustomRecommendation extends Resource { + readonly assessmentKey?: string; + cloudProviders?: RecommendationSupportedClouds[]; + description?: string; + displayName?: string; + query?: string; + remediationDescription?: string; + securityIssue?: SecurityIssue; + severity?: SeverityEnum; + readonly systemData?: SystemData; +} + +// @public +export interface CustomRecommendations { + createOrUpdate(scope: string, customRecommendationName: string, customRecommendationBody: CustomRecommendation, options?: CustomRecommendationsCreateOrUpdateOptionalParams): Promise; + delete(scope: string, customRecommendationName: string, options?: CustomRecommendationsDeleteOptionalParams): Promise; + get(scope: string, customRecommendationName: string, options?: CustomRecommendationsGetOptionalParams): Promise; + list(scope: string, options?: CustomRecommendationsListOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface CustomRecommendationsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type CustomRecommendationsCreateOrUpdateResponse = CustomRecommendation; + +// @public +export interface CustomRecommendationsDeleteOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface CustomRecommendationsGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type CustomRecommendationsGetResponse = CustomRecommendation; + +// @public +export interface CustomRecommendationsList { + nextLink?: string; + readonly value: CustomRecommendation[]; +} + +// @public +export interface CustomRecommendationsListNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type CustomRecommendationsListNextResponse = CustomRecommendationsList; + +// @public +export interface CustomRecommendationsListOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type CustomRecommendationsListResponse = CustomRecommendationsList; + // @public export interface Cve { readonly link?: string; @@ -2005,18 +2032,12 @@ export interface DefenderCspmAwsOfferingMdcContainersImageAssessment { } // @public -export interface DefenderCspmAwsOfferingVmScanners { - configuration?: DefenderCspmAwsOfferingVmScannersConfiguration; - enabled?: boolean; +export interface DefenderCspmAwsOfferingVmScanners extends VmScannersAws { } // @public -export interface DefenderCspmAwsOfferingVmScannersConfiguration { - cloudRoleArn?: string; - exclusionTags?: { - [propertyName: string]: string; - }; - scanningMode?: ScanningMode; +export interface DefenderCspmDockerHubOffering extends CloudOffering { + offeringType: "DefenderCspmDockerHub"; } // @public @@ -2058,17 +2079,18 @@ export interface DefenderCspmGcpOfferingMdcContainersImageAssessment { } // @public -export interface DefenderCspmGcpOfferingVmScanners { - configuration?: DefenderCspmGcpOfferingVmScannersConfiguration; - enabled?: boolean; +export interface DefenderCspmGcpOfferingVmScanners extends VmScannersGcp { } // @public -export interface DefenderCspmGcpOfferingVmScannersConfiguration { - exclusionTags?: { - [propertyName: string]: string; - }; - scanningMode?: ScanningMode; +export interface DefenderCspmJFrogOffering extends CloudOffering { + mdcContainersImageAssessment?: DefenderCspmJFrogOfferingMdcContainersImageAssessment; + offeringType: "DefenderCspmJFrog"; +} + +// @public +export interface DefenderCspmJFrogOfferingMdcContainersImageAssessment { + enabled?: boolean; } // @public @@ -2080,16 +2102,7 @@ export interface DefenderFoDatabasesAwsOffering extends CloudOffering { } // @public -export interface DefenderFoDatabasesAwsOfferingArcAutoProvisioning { - cloudRoleArn?: string; - configuration?: DefenderFoDatabasesAwsOfferingArcAutoProvisioningConfiguration; - enabled?: boolean; -} - -// @public -export interface DefenderFoDatabasesAwsOfferingArcAutoProvisioningConfiguration { - privateLinkScope?: string; - proxy?: string; +export interface DefenderFoDatabasesAwsOfferingArcAutoProvisioning extends ArcAutoProvisioningAws { } // @public @@ -2106,19 +2119,19 @@ export interface DefenderFoDatabasesAwsOfferingRds { // @public export interface DefenderForContainersAwsOffering extends CloudOffering { - autoProvisioning?: boolean; cloudWatchToKinesis?: DefenderForContainersAwsOfferingCloudWatchToKinesis; - containerVulnerabilityAssessment?: DefenderForContainersAwsOfferingContainerVulnerabilityAssessment; - containerVulnerabilityAssessmentTask?: DefenderForContainersAwsOfferingContainerVulnerabilityAssessmentTask; - enableContainerVulnerabilityAssessment?: boolean; + dataCollectionExternalId?: string; + enableAuditLogsAutoProvisioning?: boolean; + enableDefenderAgentAutoProvisioning?: boolean; + enablePolicyAgentAutoProvisioning?: boolean; kinesisToS3?: DefenderForContainersAwsOfferingKinesisToS3; kubeAuditRetentionTime?: number; - kubernetesScubaReader?: DefenderForContainersAwsOfferingKubernetesScubaReader; + kubernetesDataCollection?: DefenderForContainersAwsOfferingKubernetesDataCollection; kubernetesService?: DefenderForContainersAwsOfferingKubernetesService; mdcContainersAgentlessDiscoveryK8S?: DefenderForContainersAwsOfferingMdcContainersAgentlessDiscoveryK8S; mdcContainersImageAssessment?: DefenderForContainersAwsOfferingMdcContainersImageAssessment; offeringType: "DefenderForContainersAws"; - scubaExternalId?: string; + vmScanners?: DefenderForContainersAwsOfferingVmScanners; } // @public @@ -2126,23 +2139,13 @@ export interface DefenderForContainersAwsOfferingCloudWatchToKinesis { cloudRoleArn?: string; } -// @public -export interface DefenderForContainersAwsOfferingContainerVulnerabilityAssessment { - cloudRoleArn?: string; -} - -// @public -export interface DefenderForContainersAwsOfferingContainerVulnerabilityAssessmentTask { - cloudRoleArn?: string; -} - // @public export interface DefenderForContainersAwsOfferingKinesisToS3 { cloudRoleArn?: string; } // @public -export interface DefenderForContainersAwsOfferingKubernetesScubaReader { +export interface DefenderForContainersAwsOfferingKubernetesDataCollection { cloudRoleArn?: string; } @@ -2163,16 +2166,26 @@ export interface DefenderForContainersAwsOfferingMdcContainersImageAssessment { enabled?: boolean; } +// @public +export interface DefenderForContainersAwsOfferingVmScanners extends VmScannersAws { +} + +// @public +export interface DefenderForContainersDockerHubOffering extends CloudOffering { + offeringType: "DefenderForContainersDockerHub"; +} + // @public export interface DefenderForContainersGcpOffering extends CloudOffering { - auditLogsAutoProvisioningFlag?: boolean; dataPipelineNativeCloudConnection?: DefenderForContainersGcpOfferingDataPipelineNativeCloudConnection; - defenderAgentAutoProvisioningFlag?: boolean; + enableAuditLogsAutoProvisioning?: boolean; + enableDefenderAgentAutoProvisioning?: boolean; + enablePolicyAgentAutoProvisioning?: boolean; mdcContainersAgentlessDiscoveryK8S?: DefenderForContainersGcpOfferingMdcContainersAgentlessDiscoveryK8S; mdcContainersImageAssessment?: DefenderForContainersGcpOfferingMdcContainersImageAssessment; nativeCloudConnection?: DefenderForContainersGcpOfferingNativeCloudConnection; offeringType: "DefenderForContainersGcp"; - policyAgentAutoProvisioningFlag?: boolean; + vmScanners?: DefenderForContainersGcpOfferingVmScanners; } // @public @@ -2201,6 +2214,15 @@ export interface DefenderForContainersGcpOfferingNativeCloudConnection { workloadIdentityProviderId?: string; } +// @public +export interface DefenderForContainersGcpOfferingVmScanners extends VmScannersGcp { +} + +// @public +export interface DefenderForContainersJFrogOffering extends CloudOffering { + offeringType: "DefenderForContainersJFrog"; +} + // @public export interface DefenderForDatabasesGcpOffering extends CloudOffering { arcAutoProvisioning?: DefenderForDatabasesGcpOfferingArcAutoProvisioning; @@ -2209,15 +2231,7 @@ export interface DefenderForDatabasesGcpOffering extends CloudOffering { } // @public -export interface DefenderForDatabasesGcpOfferingArcAutoProvisioning { - configuration?: DefenderForDatabasesGcpOfferingArcAutoProvisioningConfiguration; - enabled?: boolean; -} - -// @public -export interface DefenderForDatabasesGcpOfferingArcAutoProvisioningConfiguration { - privateLinkScope?: string; - proxy?: string; +export interface DefenderForDatabasesGcpOfferingArcAutoProvisioning extends ArcAutoProvisioningGcp { } // @public @@ -2226,21 +2240,6 @@ export interface DefenderForDatabasesGcpOfferingDefenderForDatabasesArcAutoProvi workloadIdentityProviderId?: string; } -// @public -export interface DefenderForDevOpsAzureDevOpsOffering extends CloudOffering { - offeringType: "DefenderForDevOpsAzureDevOps"; -} - -// @public -export interface DefenderForDevOpsGithubOffering extends CloudOffering { - offeringType: "DefenderForDevOpsGithub"; -} - -// @public -export interface DefenderForDevOpsGitLabOffering extends CloudOffering { - offeringType: "DefenderForDevOpsGitLab"; -} - // @public export interface DefenderForServersAwsOffering extends CloudOffering { arcAutoProvisioning?: DefenderForServersAwsOfferingArcAutoProvisioning; @@ -2253,16 +2252,7 @@ export interface DefenderForServersAwsOffering extends CloudOffering { } // @public -export interface DefenderForServersAwsOfferingArcAutoProvisioning { - cloudRoleArn?: string; - configuration?: DefenderForServersAwsOfferingArcAutoProvisioningConfiguration; - enabled?: boolean; -} - -// @public -export interface DefenderForServersAwsOfferingArcAutoProvisioningConfiguration { - privateLinkScope?: string; - proxy?: string; +export interface DefenderForServersAwsOfferingArcAutoProvisioning extends ArcAutoProvisioningAws { } // @public @@ -2293,18 +2283,7 @@ export interface DefenderForServersAwsOfferingVaAutoProvisioningConfiguration { } // @public -export interface DefenderForServersAwsOfferingVmScanners { - configuration?: DefenderForServersAwsOfferingVmScannersConfiguration; - enabled?: boolean; -} - -// @public -export interface DefenderForServersAwsOfferingVmScannersConfiguration { - cloudRoleArn?: string; - exclusionTags?: { - [propertyName: string]: string; - }; - scanningMode?: ScanningMode; +export interface DefenderForServersAwsOfferingVmScanners extends VmScannersAws { } // @public @@ -2319,15 +2298,7 @@ export interface DefenderForServersGcpOffering extends CloudOffering { } // @public -export interface DefenderForServersGcpOfferingArcAutoProvisioning { - configuration?: DefenderForServersGcpOfferingArcAutoProvisioningConfiguration; - enabled?: boolean; -} - -// @public -export interface DefenderForServersGcpOfferingArcAutoProvisioningConfiguration { - privateLinkScope?: string; - proxy?: string; +export interface DefenderForServersGcpOfferingArcAutoProvisioning extends ArcAutoProvisioningGcp { } // @public @@ -2359,25 +2330,25 @@ export interface DefenderForServersGcpOfferingVaAutoProvisioningConfiguration { } // @public -export interface DefenderForServersGcpOfferingVmScanners { - configuration?: DefenderForServersGcpOfferingVmScannersConfiguration; - enabled?: boolean; -} - -// @public -export interface DefenderForServersGcpOfferingVmScannersConfiguration { - exclusionTags?: { - [propertyName: string]: string; - }; - scanningMode?: ScanningMode; +export interface DefenderForServersGcpOfferingVmScanners extends VmScannersGcp { } // @public export interface DefenderForStorage { + cancelMalwareScan(resourceId: string, settingName: SettingName, scanId: string, options?: DefenderForStorageCancelMalwareScanOptionalParams): Promise; create(resourceId: string, settingName: SettingName, defenderForStorageSetting: DefenderForStorageSetting, options?: DefenderForStorageCreateOptionalParams): Promise; get(resourceId: string, settingName: SettingName, options?: DefenderForStorageGetOptionalParams): Promise; + getMalwareScan(resourceId: string, settingName: SettingName, scanId: string, options?: DefenderForStorageGetMalwareScanOptionalParams): Promise; + startMalwareScan(resourceId: string, settingName: SettingName, options?: DefenderForStorageStartMalwareScanOptionalParams): Promise; } +// @public +export interface DefenderForStorageCancelMalwareScanOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type DefenderForStorageCancelMalwareScanResponse = MalwareScan; + // @public export interface DefenderForStorageCreateOptionalParams extends coreClient.OperationOptions { } @@ -2385,6 +2356,13 @@ export interface DefenderForStorageCreateOptionalParams extends coreClient.Opera // @public export type DefenderForStorageCreateResponse = DefenderForStorageSetting; +// @public +export interface DefenderForStorageGetMalwareScanOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type DefenderForStorageGetMalwareScanResponse = MalwareScan; + // @public export interface DefenderForStorageGetOptionalParams extends coreClient.OperationOptions { } @@ -2394,16 +2372,24 @@ export type DefenderForStorageGetResponse = DefenderForStorageSetting; // @public export interface DefenderForStorageSetting extends Resource { - capGBPerMonth?: number; - isEnabledPropertiesIsEnabled?: boolean; - isEnabledPropertiesMalwareScanningOnUploadIsEnabled?: boolean; - isEnabledPropertiesSensitiveDataDiscoveryIsEnabled?: boolean; - readonly operationStatusPropertiesMalwareScanningOperationStatus?: OperationStatus; - readonly operationStatusPropertiesSensitiveDataDiscoveryOperationStatus?: OperationStatus; + properties?: DefenderForStorageSettingProperties; +} + +// @public +export interface DefenderForStorageSettingProperties { + isEnabled?: boolean; + malwareScanning?: MalwareScanningProperties; overrideSubscriptionLevelSettings?: boolean; - scanResultsEventGridTopicResourceId?: string; + sensitiveDataDiscovery?: SensitiveDataDiscoveryProperties; } +// @public +export interface DefenderForStorageStartMalwareScanOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type DefenderForStorageStartMalwareScanResponse = MalwareScan; + // @public export interface DenylistCustomAlertRule extends ListCustomAlertRule { denylistValues: string[]; @@ -2467,6 +2453,12 @@ export interface DeviceSecurityGroupsListOptionalParams extends coreClient.Opera // @public export type DeviceSecurityGroupsListResponse = DeviceSecurityGroupList; +// @public +export interface DevOpsCapability { + readonly name?: string; + readonly value?: string; +} + // @public export interface DevOpsConfiguration extends ProxyResource { properties?: DevOpsConfigurationProperties; @@ -2481,9 +2473,11 @@ export interface DevOpsConfigurationListResponse { // @public export interface DevOpsConfigurationProperties { + agentlessConfiguration?: AgentlessConfiguration; authorization?: Authorization; autoDiscovery?: AutoDiscovery; - provisioningState?: DevOpsProvisioningState; + readonly capabilities?: DevOpsCapability[]; + readonly provisioningState?: DevOpsProvisioningState; readonly provisioningStatusMessage?: string; readonly provisioningStatusUpdateTimeUtc?: Date; topLevelInventoryList?: string[]; @@ -2561,9 +2555,6 @@ export type DevOpsOperationResultsGetResponse = OperationStatusResult; // @public export type DevOpsProvisioningState = string; -// @public -export type Direction = string; - // @public export interface DirectMethodInvokesNotInAllowedRange extends TimeWindowCustomAlertRule { ruleType: "DirectMethodInvokesNotInAllowedRange"; @@ -2627,30 +2618,28 @@ export interface DiscoveredSecuritySolutionsListOptionalParams extends coreClien export type DiscoveredSecuritySolutionsListResponse = DiscoveredSecuritySolutionList; // @public -export interface EffectiveNetworkSecurityGroups { - networkInterface?: string; - networkSecurityGroups?: string[]; +export interface DockerHubEnvironmentData extends EnvironmentData { + authentication?: AuthenticationUnion; + environmentType: "DockerHubOrganization"; + scanInterval?: number; } // @public -export type EndOfSupportStatus = string; - -// @public -export type Enforce = string; +export type Effect = string; // @public -export type EnforcementMode = string; +export type EndOfSupportStatus = string; // @public -export type EnforcementSupport = string; +export type Enforce = string; // @public export interface EnvironmentData { - environmentType: "AwsAccount" | "GcpProject" | "GithubScope" | "AzureDevOpsScope" | "GitlabScope"; + environmentType: "AwsAccount" | "GcpProject" | "GithubScope" | "AzureDevOpsScope" | "GitlabScope" | "DockerHubOrganization" | "JFrogArtifactory"; } // @public (undocumented) -export type EnvironmentDataUnion = EnvironmentData | AwsEnvironmentData | GcpProjectEnvironmentData | GithubScopeEnvironmentData | AzureDevOpsScopeEnvironmentData | GitlabScopeEnvironmentData; +export type EnvironmentDataUnion = EnvironmentData | AwsEnvironmentData | GcpProjectEnvironmentData | GithubScopeEnvironmentData | AzureDevOpsScopeEnvironmentData | GitlabScopeEnvironmentData | DockerHubEnvironmentData | JFrogEnvironmentData; // @public export interface EnvironmentDetails { @@ -2688,6 +2677,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; @@ -2698,6 +2696,11 @@ export interface ErrorResponseAutoGenerated { error?: ErrorDetailAutoGenerated; } +// @public +export interface ErrorResponseAutoGenerated2 { + error?: ErrorDetailAutoGenerated2; +} + // @public export interface ETag { etag?: string; @@ -2712,6 +2715,9 @@ export interface ExecuteGovernanceRuleParams { override?: boolean; } +// @public +export type ExemptionCategory = string; + // @public export type ExpandControlsEnum = string; @@ -2807,9 +2813,6 @@ export interface FailedLocalLoginsNotInAllowedRange extends TimeWindowCustomAler ruleType: "FailedLocalLoginsNotInAllowedRange"; } -// @public -export type FileType = string; - // @public export interface FileUploadsNotInAllowedRange extends TimeWindowCustomAlertRule { ruleType: "FileUploadsNotInAllowedRange"; @@ -2880,13 +2883,6 @@ export interface GetSensitivitySettingsListResponse { value?: GetSensitivitySettingsResponse[]; } -// @public -export type GetSensitivitySettingsOperationResponse = GetSensitivitySettingsResponse; - -// @public -export interface GetSensitivitySettingsOptionalParams extends coreClient.OperationOptions { -} - // @public export interface GetSensitivitySettingsResponse { readonly id?: string; @@ -2936,7 +2932,7 @@ export interface GitHubOwnerProperties { readonly gitHubInternalId?: string; onboardingState?: OnboardingState; readonly ownerUrl?: string; - provisioningState?: DevOpsProvisioningState; + readonly provisioningState?: DevOpsProvisioningState; readonly provisioningStatusMessage?: string; readonly provisioningStatusUpdateTimeUtc?: Date; } @@ -3005,7 +3001,7 @@ export interface GitHubRepositoryListResponse { export interface GitHubRepositoryProperties { onboardingState?: OnboardingState; parentOwnerName?: string; - provisioningState?: DevOpsProvisioningState; + readonly provisioningState?: DevOpsProvisioningState; readonly provisioningStatusMessage?: string; readonly provisioningStatusUpdateTimeUtc?: Date; readonly repoFullName?: string; @@ -3058,7 +3054,7 @@ export interface GitLabGroupProperties { readonly fullyQualifiedFriendlyName?: string; readonly fullyQualifiedName?: string; onboardingState?: OnboardingState; - provisioningState?: DevOpsProvisioningState; + readonly provisioningState?: DevOpsProvisioningState; readonly provisioningStatusMessage?: string; readonly provisioningStatusUpdateTimeUtc?: Date; readonly url?: string; @@ -3117,7 +3113,7 @@ export interface GitLabProjectProperties { readonly fullyQualifiedName?: string; readonly fullyQualifiedParentGroupName?: string; onboardingState?: OnboardingState; - provisioningState?: DevOpsProvisioningState; + readonly provisioningState?: DevOpsProvisioningState; readonly provisioningStatusMessage?: string; readonly provisioningStatusUpdateTimeUtc?: Date; readonly url?: string; @@ -3463,17 +3459,6 @@ export interface Identity { // @public export type ImplementationEffort = string; -// @public -export interface InformationProtectionAwsOffering extends CloudOffering { - informationProtection?: InformationProtectionAwsOfferingInformationProtection; - offeringType: "InformationProtectionAws"; -} - -// @public -export interface InformationProtectionAwsOfferingInformationProtection { - cloudRoleArn?: string; -} - // @public export interface InformationProtectionKeyword { canBeNumeric?: boolean; @@ -3565,6 +3550,18 @@ export type InheritFromParentState = string; // @public export type Intent = string; +// @public +export type InventoryKind = string; + +// @public +export interface InventoryList { + inventoryKind?: InventoryKind; + value?: string; +} + +// @public +export type InventoryListKind = string; + // @public export interface IoTSecurityAggregatedAlert extends Resource, TagsResource { readonly actionTaken?: string; @@ -3849,6 +3846,12 @@ export interface Issue { securityValues?: string[]; } +// @public +export interface JFrogEnvironmentData extends EnvironmentData { + environmentType: "JFrogArtifactory"; + scanInterval?: number; +} + // @public export interface JitNetworkAccessPolicies { createOrUpdate(resourceGroupName: string, ascLocation: string, jitNetworkAccessPolicyName: string, body: JitNetworkAccessPolicy, options?: JitNetworkAccessPoliciesCreateOrUpdateOptionalParams): Promise; @@ -4047,20 +4050,11 @@ export enum KnownActionableRemediationState { // @public export enum KnownActionType { EventHub = "EventHub", + Internal = "Internal", LogicApp = "LogicApp", Workspace = "Workspace" } -// @public -export enum KnownAdaptiveApplicationControlIssue { - ExecutableViolationsAudited = "ExecutableViolationsAudited", - MsiAndScriptViolationsAudited = "MsiAndScriptViolationsAudited", - MsiAndScriptViolationsBlocked = "MsiAndScriptViolationsBlocked", - RulesViolatedManually = "RulesViolatedManually", - ViolationsAudited = "ViolationsAudited", - ViolationsBlocked = "ViolationsBlocked" -} - // @public export enum KnownAdditionalWorkspaceDataType { Alerts = "Alerts", @@ -4072,6 +4066,13 @@ export enum KnownAdditionalWorkspaceType { Sentinel = "Sentinel" } +// @public +export enum KnownAgentlessEnablement { + Disabled = "Disabled", + Enabled = "Enabled", + NotApplicable = "NotApplicable" +} + // @public export enum KnownAlertSeverity { High = "High", @@ -4128,6 +4129,13 @@ export enum KnownAssessmentType { VerifiedPartner = "VerifiedPartner" } +// @public +export enum KnownAttestationComplianceState { + Compliant = "compliant", + NonCompliant = "nonCompliant", + Unknown = "unknown" +} + // @public export enum KnownAuthenticationProvisioningState { Expired = "Expired", @@ -4156,6 +4164,12 @@ export enum KnownAutoProvision { On = "On" } +// @public +export enum KnownBlobScanResultsOptions { + BlobIndexTags = "blobIndexTags", + None = "None" +} + // @public export enum KnownBundleType { AppServices = "AppServices", @@ -4183,9 +4197,11 @@ export enum KnownCloudName { AWS = "AWS", Azure = "Azure", AzureDevOps = "AzureDevOps", + DockerHub = "DockerHub", GCP = "GCP", Github = "Github", - GitLab = "GitLab" + GitLab = "GitLab", + JFrog = "JFrog" } // @public @@ -4194,15 +4210,6 @@ export enum KnownCode { Succeeded = "Succeeded" } -// @public -export enum KnownConfigurationStatus { - Configured = "Configured", - Failed = "Failed", - InProgress = "InProgress", - NoStatus = "NoStatus", - NotConfigured = "NotConfigured" -} - // @public export enum KnownConnectionType { External = "External", @@ -4246,9 +4253,10 @@ export enum KnownDevOpsProvisioningState { } // @public -export enum KnownDirection { - Inbound = "Inbound", - Outbound = "Outbound" +export enum KnownEffect { + Attest = "Attest", + Audit = "Audit", + Exempt = "Exempt" } // @public @@ -4266,27 +4274,15 @@ export enum KnownEnforce { True = "True" } -// @public -export enum KnownEnforcementMode { - Audit = "Audit", - Enforce = "Enforce", - None = "None" -} - -// @public -export enum KnownEnforcementSupport { - NotSupported = "NotSupported", - Supported = "Supported", - Unknown = "Unknown" -} - // @public export enum KnownEnvironmentType { AwsAccount = "AwsAccount", AzureDevOpsScope = "AzureDevOpsScope", + DockerHubOrganization = "DockerHubOrganization", GcpProject = "GcpProject", GithubScope = "GithubScope", - GitlabScope = "GitlabScope" + GitlabScope = "GitlabScope", + JFrogArtifactory = "JFrogArtifactory" } // @public @@ -4306,6 +4302,12 @@ export enum KnownEventSource { SubAssessmentsSnapshot = "SubAssessmentsSnapshot" } +// @public +export enum KnownExemptionCategory { + Mitigated = "mitigated", + Waiver = "waiver" +} + // @public export enum KnownExpandControlsEnum { Definition = "definition" @@ -4329,16 +4331,6 @@ export enum KnownExternalSecuritySolutionKind { CEF = "CEF" } -// @public -export enum KnownFileType { - Dll = "Dll", - Exe = "Exe", - Executable = "Executable", - Msi = "Msi", - Script = "Script", - Unknown = "Unknown" -} - // @public export enum KnownGovernanceRuleConditionOperator { Equals = "Equals", @@ -4414,6 +4406,21 @@ export enum KnownIntent { Unknown = "Unknown" } +// @public +export enum KnownInventoryKind { + AzureDevOpsOrganization = "AzureDevOpsOrganization", + AzureDevOpsProject = "AzureDevOpsProject", + AzureDevOpsRepository = "AzureDevOpsRepository", + GitHubOwner = "GitHubOwner", + GitHubRepository = "GitHubRepository" +} + +// @public +export enum KnownInventoryListKind { + Exclusion = "Exclusion", + Inclusion = "Inclusion" +} + // @public export enum KnownIsEnabled { False = "False", @@ -4452,21 +4459,23 @@ export enum KnownMipIntegrationStatus { export enum KnownOfferingType { CspmMonitorAws = "CspmMonitorAws", CspmMonitorAzureDevOps = "CspmMonitorAzureDevOps", + CspmMonitorDockerHub = "CspmMonitorDockerHub", CspmMonitorGcp = "CspmMonitorGcp", CspmMonitorGithub = "CspmMonitorGithub", CspmMonitorGitLab = "CspmMonitorGitLab", + CspmMonitorJFrog = "CspmMonitorJFrog", DefenderCspmAws = "DefenderCspmAws", + DefenderCspmDockerHub = "DefenderCspmDockerHub", DefenderCspmGcp = "DefenderCspmGcp", + DefenderCspmJFrog = "DefenderCspmJFrog", DefenderForContainersAws = "DefenderForContainersAws", + DefenderForContainersDockerHub = "DefenderForContainersDockerHub", DefenderForContainersGcp = "DefenderForContainersGcp", + DefenderForContainersJFrog = "DefenderForContainersJFrog", DefenderForDatabasesAws = "DefenderForDatabasesAws", DefenderForDatabasesGcp = "DefenderForDatabasesGcp", - DefenderForDevOpsAzureDevOps = "DefenderForDevOpsAzureDevOps", - DefenderForDevOpsGithub = "DefenderForDevOpsGithub", - DefenderForDevOpsGitLab = "DefenderForDevOpsGitLab", DefenderForServersAws = "DefenderForServersAws", - DefenderForServersGcp = "DefenderForServersGcp", - InformationProtectionAws = "InformationProtectionAws" + DefenderForServersGcp = "DefenderForServersGcp" } // @public @@ -4503,6 +4512,13 @@ export enum KnownOrganizationMembershipType { Organization = "Organization" } +// @public +export enum KnownOrigin { + System = "system", + User = "user", + UserSystem = "user,system" +} + // @public export enum KnownPermissionProperty { AWSAmazonSSMAutomationRole = "AWS::AmazonSSMAutomationRole", @@ -4539,13 +4555,6 @@ export enum KnownProvisioningState { Updating = "Updating" } -// @public -export enum KnownRecommendationAction { - Add = "Add", - Recommended = "Recommended", - Remove = "Remove" -} - // @public export enum KnownRecommendationConfigStatus { Disabled = "Disabled", @@ -4553,11 +4562,10 @@ export enum KnownRecommendationConfigStatus { } // @public -export enum KnownRecommendationStatus { - NoStatus = "NoStatus", - NotAvailable = "NotAvailable", - NotRecommended = "NotRecommended", - Recommended = "Recommended" +export enum KnownRecommendationSupportedClouds { + AWS = "AWS", + Azure = "Azure", + GCP = "GCP" } // @public @@ -4683,6 +4691,16 @@ export enum KnownSecurityFamily { Waf = "Waf" } +// @public +export enum KnownSecurityIssue { + AnonymousAccess = "AnonymousAccess", + BestPractices = "BestPractices", + ExcessivePermissions = "ExcessivePermissions", + NetworkExposure = "NetworkExposure", + TrafficEncryption = "TrafficEncryption", + Vulnerability = "Vulnerability" +} + // @public export enum KnownSecuritySolutionStatus { Disabled = "Disabled", @@ -4755,21 +4773,26 @@ export enum KnownSource { OnPremiseSql = "OnPremiseSql" } -// @public -export enum KnownSourceSystem { - AzureAppLocker = "Azure_AppLocker", - AzureAuditD = "Azure_AuditD", - NonAzureAppLocker = "NonAzure_AppLocker", - NonAzureAuditD = "NonAzure_AuditD", - None = "None" -} - // @public export enum KnownSourceType { Alert = "Alert", AttackPath = "AttackPath" } +// @public +export enum KnownStandardSupportedCloud { + AWS = "AWS", + Azure = "Azure", + GCP = "GCP" +} + +// @public +export enum KnownStandardType { + Compliance = "Compliance", + Custom = "Custom", + Default = "Default" +} + // @public export enum KnownState { Failed = "Failed", @@ -4964,12 +4987,6 @@ export enum KnownThreats { ThreatResistance = "threatResistance" } -// @public -export enum KnownTransportProtocol { - TCP = "TCP", - UDP = "UDP" -} - // @public export enum KnownType { Qualys = "Qualys", @@ -5058,6 +5075,30 @@ export interface LogAnalyticsIdentifier extends ResourceIdentifier { readonly workspaceSubscriptionId?: string; } +// @public +export interface MalwareScan { + // (undocumented) + properties?: MalwareScanProperties; +} + +// @public +export interface MalwareScanningProperties { + blobScanResultsOptions?: BlobScanResultsOptions; + onUpload?: OnUploadProperties; + readonly operationStatus?: OperationStatus; + scanResultsEventGridTopicResourceId?: string; +} + +// @public (undocumented) +export interface MalwareScanProperties { + scanEndTime?: string; + scanId?: string; + scanStartTime?: string; + scanStatus?: string; + scanStatusMessage?: string; + scanSummary?: ScanSummary; +} + // @public export interface MdeOnboardingData extends Resource { onboardingPackageLinux?: Uint8Array; @@ -5158,11 +5199,27 @@ export interface OnPremiseSqlResourceDetails extends OnPremiseResourceDetails { source: "OnPremiseSql"; } +// @public +export interface OnUploadFilters { + excludeBlobsLargerThan?: any; + excludeBlobsWithPrefix?: string[]; + excludeBlobsWithSuffix?: string[]; +} + +// @public +export interface OnUploadProperties { + capGBPerMonth?: number; + filters?: OnUploadFilters; + isEnabled?: boolean; +} + // @public export interface Operation { + readonly actionType?: ActionType; display?: OperationDisplay; + readonly isDataAction?: boolean; readonly name?: string; - readonly origin?: string; + readonly origin?: Origin; } // @public @@ -5174,9 +5231,9 @@ export interface OperationDisplay { } // @public -export interface OperationList { +export interface OperationListResult { readonly nextLink?: string; - value?: Operation[]; + readonly value?: Operation[]; } // @public @@ -5197,14 +5254,14 @@ export interface OperationsListNextOptionalParams extends coreClient.OperationOp } // @public -export type OperationsListNextResponse = OperationList; +export type OperationsListNextResponse = OperationListResult; // @public export interface OperationsListOptionalParams extends coreClient.OperationOptions { } // @public -export type OperationsListResponse = OperationList; +export type OperationsListResponse = OperationListResult; // @public export interface OperationStatus { @@ -5221,7 +5278,7 @@ export interface OperationStatusAutoGenerated { // @public export interface OperationStatusResult { endTime?: Date; - error?: ErrorDetailAutoGenerated; + error?: ErrorDetailAutoGenerated2; id?: string; name?: string; operations?: OperationStatusResult[]; @@ -5237,18 +5294,11 @@ export type Operator = string; export type OrganizationMembershipType = string; // @public -export interface PathRecommendation { - action?: RecommendationAction; - common?: boolean; - configurationStatus?: ConfigurationStatus; - fileType?: FileType; - path?: string; - publisherInfo?: PublisherInfo; - type?: RecommendationType; - // (undocumented) - usernames?: UserRecommendation[]; - // (undocumented) - userSids?: string[]; +export type Origin = string; + +// @public +export interface PartialAssessmentProperties { + assessmentKey?: string; } // @public @@ -5319,14 +5369,6 @@ export interface ProcessNotAllowed extends AllowlistCustomAlertRule { // @public export type PropertyType = string; -// @public -export interface ProtectionMode { - exe?: EnforcementMode; - executable?: EnforcementMode; - msi?: EnforcementMode; - script?: EnforcementMode; -} - // @public export type Protocol = string; @@ -5334,7 +5376,7 @@ export type Protocol = string; export type ProvisioningState = string; // @public -export interface ProxyResource extends ResourceAutoGenerated { +export interface ProxyResource extends ResourceAutoGenerated2 { } // @public @@ -5343,14 +5385,6 @@ export interface ProxyServerProperties { port?: string; } -// @public -export interface PublisherInfo { - binaryName?: string; - productName?: string; - publisherName?: string; - version?: string; -} - // @public export interface QueryCheck { columnNames?: string[]; @@ -5366,9 +5400,6 @@ export interface QueuePurgesNotInAllowedRange extends TimeWindowCustomAlertRule // @public export type Rank = "None" | "Low" | "Medium" | "High" | "Critical"; -// @public -export type RecommendationAction = string; - // @public export type RecommendationConfigStatus = string; @@ -5380,7 +5411,7 @@ export interface RecommendationConfigurationProperties { } // @public -export type RecommendationStatus = string; +export type RecommendationSupportedClouds = string; // @public export type RecommendationType = string; @@ -5547,6 +5578,7 @@ export interface Resource { export interface ResourceAutoGenerated { readonly id?: string; readonly name?: string; + readonly systemData?: SystemData; readonly type?: string; } @@ -5554,7 +5586,6 @@ export interface ResourceAutoGenerated { export interface ResourceAutoGenerated2 { readonly id?: string; readonly name?: string; - readonly systemData?: SystemData; readonly type?: string; } @@ -5590,15 +5621,6 @@ export type ResourcesCoverageStatus = string; // @public export type ResourceStatus = string; -// @public -export interface Rule { - destinationPort?: number; - direction?: Direction; - ipAddresses?: string[]; - name?: string; - protocols?: TransportProtocol[]; -} - // @public export type RuleCategory = string; @@ -5699,6 +5721,12 @@ export interface Scans { // @public export type ScanState = string; +// @public +export interface ScanSummary { + blobs?: BlobsScanSummary; + estimatedScanCostUSD?: number; +} + // @public export type ScanTriggerType = string; @@ -6028,10 +6056,6 @@ export class SecurityCenter extends coreClient.ServiceClient { constructor(credentials: coreAuth.TokenCredential, subscriptionId: string, options?: SecurityCenterOptionalParams); constructor(credentials: coreAuth.TokenCredential, options?: SecurityCenterOptionalParams); // (undocumented) - adaptiveApplicationControls: AdaptiveApplicationControls; - // (undocumented) - adaptiveNetworkHardenings: AdaptiveNetworkHardenings; - // (undocumented) advancedThreatProtection: AdvancedThreatProtection; // (undocumented) alerts: Alerts; @@ -6070,6 +6094,8 @@ export class SecurityCenter extends coreClient.ServiceClient { // (undocumented) customEntityStoreAssignments: CustomEntityStoreAssignments; // (undocumented) + customRecommendations: CustomRecommendations; + // (undocumented) defenderForStorage: DefenderForStorage; // (undocumented) deviceSecurityGroups: DeviceSecurityGroups; @@ -6081,7 +6107,6 @@ export class SecurityCenter extends coreClient.ServiceClient { discoveredSecuritySolutions: DiscoveredSecuritySolutions; // (undocumented) externalSecuritySolutions: ExternalSecuritySolutions; - getSensitivitySettings(options?: GetSensitivitySettingsOptionalParams): Promise; // (undocumented) gitHubOwners: GitHubOwners; // (undocumented) @@ -6145,6 +6170,8 @@ export class SecurityCenter extends coreClient.ServiceClient { // (undocumented) securitySolutionsReferenceDataOperations: SecuritySolutionsReferenceDataOperations; // (undocumented) + securityStandards: SecurityStandards; + // (undocumented) sensitivitySettings: SensitivitySettings; // (undocumented) serverVulnerabilityAssessmentOperations: ServerVulnerabilityAssessmentOperations; @@ -6161,6 +6188,8 @@ export class SecurityCenter extends coreClient.ServiceClient { // (undocumented) sqlVulnerabilityAssessmentScans: SqlVulnerabilityAssessmentScans; // (undocumented) + standardAssignments: StandardAssignments; + // (undocumented) subAssessments: SubAssessments; // (undocumented) subscriptionId?: string; @@ -6168,7 +6197,6 @@ export class SecurityCenter extends coreClient.ServiceClient { tasks: Tasks; // (undocumented) topology: Topology; - updateSensitivitySettings(sensitivitySettings: UpdateSensitivitySettingsRequest, options?: UpdateSensitivitySettingsOptionalParams): Promise; // (undocumented) workspaceSettings: WorkspaceSettings; } @@ -6372,6 +6400,9 @@ export type SecurityContactsListResponse = SecurityContactList; // @public export type SecurityFamily = string; +// @public +export type SecurityIssue = string; + // @public export interface SecurityOperator extends Resource { identity?: Identity; @@ -6497,6 +6528,63 @@ export interface SecuritySolutionsReferenceDataOperations { // @public export type SecuritySolutionStatus = string; +// @public +export interface SecurityStandard extends Resource { + assessments?: PartialAssessmentProperties[]; + cloudProviders?: StandardSupportedCloud[]; + description?: string; + displayName?: string; + metadata?: StandardMetadata; + policySetDefinitionId?: string; + readonly standardType?: StandardType; +} + +// @public +export interface SecurityStandardList { + readonly nextLink?: string; + readonly value: SecurityStandard[]; +} + +// @public +export interface SecurityStandards { + createOrUpdate(scope: string, standardId: string, standard: SecurityStandard, options?: SecurityStandardsCreateOrUpdateOptionalParams): Promise; + delete(scope: string, standardId: string, options?: SecurityStandardsDeleteOptionalParams): Promise; + get(scope: string, standardId: string, options?: SecurityStandardsGetOptionalParams): Promise; + list(scope: string, options?: SecurityStandardsListOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface SecurityStandardsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type SecurityStandardsCreateOrUpdateResponse = SecurityStandard; + +// @public +export interface SecurityStandardsDeleteOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface SecurityStandardsGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type SecurityStandardsGetResponse = SecurityStandard; + +// @public +export interface SecurityStandardsListNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type SecurityStandardsListNextResponse = SecurityStandardList; + +// @public +export interface SecurityStandardsListOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type SecurityStandardsListResponse = SecurityStandardList; + // @public export interface SecuritySubAssessment extends Resource { additionalData?: AdditionalDataUnion; @@ -6538,6 +6626,12 @@ export interface SecurityTaskParameters { readonly name?: string; } +// @public +export interface SensitiveDataDiscoveryProperties { + isEnabled?: boolean; + readonly operationStatus?: OperationStatus; +} + // @public export interface SensitivityLabel { description?: string; @@ -6549,9 +6643,25 @@ export interface SensitivityLabel { // @public export interface SensitivitySettings { + createOrUpdate(sensitivitySettings: UpdateSensitivitySettingsRequest, options?: SensitivitySettingsCreateOrUpdateOptionalParams): Promise; + get(options?: SensitivitySettingsGetOptionalParams): Promise; list(options?: SensitivitySettingsListOptionalParams): Promise; } +// @public +export interface SensitivitySettingsCreateOrUpdateOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type SensitivitySettingsCreateOrUpdateResponse = GetSensitivitySettingsResponse; + +// @public +export interface SensitivitySettingsGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type SensitivitySettingsGetResponse = GetSensitivitySettingsResponse; + // @public export interface SensitivitySettingsListOptionalParams extends coreClient.OperationOptions { } @@ -6613,7 +6723,7 @@ export interface ServerVulnerabilityAssessmentsList { } // @public -export interface ServerVulnerabilityAssessmentsSetting extends ResourceAutoGenerated2 { +export interface ServerVulnerabilityAssessmentsSetting extends ResourceAutoGenerated { kind: ServerVulnerabilityAssessmentsSettingKind; } @@ -6821,9 +6931,6 @@ export interface SoftwaresList { // @public export type Source = string; -// @public -export type SourceSystem = string; - // @public export type SourceType = string; @@ -6917,6 +7024,101 @@ export interface SqlVulnerabilityAssessmentScansListOptionalParams extends coreC // @public export type SqlVulnerabilityAssessmentScansListResponse = Scans; +// @public +export interface StandardAssignment extends Resource { + assignedStandard?: AssignedStandardItem; + attestationData?: StandardAssignmentPropertiesAttestationData; + description?: string; + displayName?: string; + effect?: Effect; + excludedScopes?: string[]; + exemptionData?: StandardAssignmentPropertiesExemptionData; + expiresOn?: Date; + metadata?: StandardAssignmentMetadata; +} + +// @public +export interface StandardAssignmentMetadata { + readonly createdBy?: string; + readonly createdOn?: Date; + readonly lastUpdatedBy?: string; + readonly lastUpdatedOn?: Date; +} + +// @public +export interface StandardAssignmentPropertiesAttestationData { + assignedAssessment?: AssignedAssessmentItem; + readonly complianceDate?: Date; + complianceState?: AttestationComplianceState; + evidence?: AttestationEvidence[]; +} + +// @public +export interface StandardAssignmentPropertiesExemptionData { + assignedAssessment?: AssignedAssessmentItem; + exemptionCategory?: ExemptionCategory; +} + +// @public +export interface StandardAssignments { + create(resourceId: string, standardAssignmentName: string, standardAssignment: StandardAssignment, options?: StandardAssignmentsCreateOptionalParams): Promise; + delete(resourceId: string, standardAssignmentName: string, options?: StandardAssignmentsDeleteOptionalParams): Promise; + get(resourceId: string, standardAssignmentName: string, options?: StandardAssignmentsGetOptionalParams): Promise; + list(scope: string, options?: StandardAssignmentsListOptionalParams): PagedAsyncIterableIterator; +} + +// @public +export interface StandardAssignmentsCreateOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type StandardAssignmentsCreateResponse = StandardAssignment; + +// @public +export interface StandardAssignmentsDeleteOptionalParams extends coreClient.OperationOptions { +} + +// @public +export interface StandardAssignmentsGetOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type StandardAssignmentsGetResponse = StandardAssignment; + +// @public +export interface StandardAssignmentsList { + readonly nextLink?: string; + readonly value: StandardAssignment[]; +} + +// @public +export interface StandardAssignmentsListNextOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type StandardAssignmentsListNextResponse = StandardAssignmentsList; + +// @public +export interface StandardAssignmentsListOptionalParams extends coreClient.OperationOptions { +} + +// @public +export type StandardAssignmentsListResponse = StandardAssignmentsList; + +// @public +export interface StandardMetadata { + readonly createdBy?: string; + readonly createdOn?: Date; + readonly lastUpdatedBy?: string; + readonly lastUpdatedOn?: Date; +} + +// @public +export type StandardSupportedCloud = string; + +// @public +export type StandardType = string; + // @public export type State = string; @@ -7221,9 +7423,6 @@ export interface TopologySingleResourceParent { export interface TrackedResource extends Resource, AzureTrackedResourceLocation, KindAutoGenerated, ETag, Tags { } -// @public -export type TransportProtocol = string; - // @public export interface TwinUpdatesNotInAllowedRange extends TimeWindowCustomAlertRule { ruleType: "TwinUpdatesNotInAllowedRange"; @@ -7246,10 +7445,6 @@ export interface UpdateIotSecuritySolutionData extends TagsResource { userDefinedResources?: UserDefinedResourcesProperties; } -// @public -export interface UpdateSensitivitySettingsOptionalParams extends coreClient.OperationOptions { -} - // @public export interface UpdateSensitivitySettingsRequest { sensitiveInfoTypesIds: string[]; @@ -7257,9 +7452,6 @@ export interface UpdateSensitivitySettingsRequest { sensitivityThresholdLabelOrder?: number; } -// @public -export type UpdateSensitivitySettingsResponse = GetSensitivitySettingsResponse; - // @public export interface UserDefinedResourcesProperties { query: string | null; @@ -7269,12 +7461,6 @@ export interface UserDefinedResourcesProperties { // @public export type UserImpact = string; -// @public -export interface UserRecommendation { - recommendationAction?: RecommendationAction; - username?: string; -} - // @public export type ValueType = string; @@ -7298,11 +7484,26 @@ export interface VendorReference { } // @public -export interface VmRecommendation { - configurationStatus?: ConfigurationStatus; - enforcementSupport?: EnforcementSupport; - recommendationAction?: RecommendationAction; - resourceId?: string; +export interface VmScannersAws extends VmScannersBase { + cloudRoleArn?: string; +} + +// @public +export interface VmScannersBase { + configuration?: VmScannersBaseConfiguration; + enabled?: boolean; +} + +// @public +export interface VmScannersBaseConfiguration { + exclusionTags?: { + [propertyName: string]: string; + }; + scanningMode?: ScanningMode; +} + +// @public +export interface VmScannersGcp extends VmScannersBase { } // @public diff --git a/sdk/security/arm-security/sample.env b/sdk/security/arm-security/sample.env index 672847a3fea0..508439fc7d62 100644 --- a/sdk/security/arm-security/sample.env +++ b/sdk/security/arm-security/sample.env @@ -1,4 +1 @@ -# App registration secret for AAD authentication -AZURE_CLIENT_SECRET= -AZURE_CLIENT_ID= -AZURE_TENANT_ID= \ No newline at end of file +# Feel free to add your own environment variables. \ No newline at end of file diff --git a/sdk/security/arm-security/src/lroImpl.ts b/sdk/security/arm-security/src/lroImpl.ts index d8bc98987053..1b3a95e6c540 100644 --- a/sdk/security/arm-security/src/lroImpl.ts +++ b/sdk/security/arm-security/src/lroImpl.ts @@ -5,6 +5,7 @@ * Code generated by Microsoft (R) AutoRest Code Generator. * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ + import { AbortSignalLike } from "@azure/abort-controller"; import { LongRunningOperation, LroResponse } from "@azure/core-lro"; @@ -22,10 +23,7 @@ export function createLroSpec(inputs: { requestMethod: spec.httpMethod, requestPath: spec.path!, sendInitialRequest: () => sendOperationFn(args, spec), - sendPollRequest: ( - path: string, - options?: { abortSignal?: AbortSignalLike }, - ) => { + sendPollRequest: (path: string, options?: { abortSignal?: AbortSignalLike }) => { const { requestBody, ...restSpec } = spec; return sendOperationFn(args, { ...restSpec, diff --git a/sdk/security/arm-security/src/models/index.ts b/sdk/security/arm-security/src/models/index.ts index 8a35f7ebeea6..610ce74a892f 100644 --- a/sdk/security/arm-security/src/models/index.ts +++ b/sdk/security/arm-security/src/models/index.ts @@ -8,11 +8,6 @@ import * as coreClient from "@azure/core-client"; -export type AutomationActionUnion = - | AutomationAction - | AutomationActionLogicApp - | AutomationActionEventHub - | AutomationActionWorkspace; export type ResourceDetailsUnion = | ResourceDetails | AzureResourceDetails @@ -27,6 +22,11 @@ export type AuthenticationDetailsPropertiesUnion = | AwsCredsAuthenticationDetailsProperties | AwAssumeRoleAuthenticationDetailsProperties | GcpCredentialsDetailsProperties; +export type AutomationActionUnion = + | AutomationAction + | AutomationActionLogicApp + | AutomationActionEventHub + | AutomationActionWorkspace; export type NotificationsSourceUnion = | NotificationsSource | NotificationsSourceAlert @@ -37,7 +37,6 @@ export type CloudOfferingUnion = | DefenderForContainersAwsOffering | DefenderForServersAwsOffering | DefenderFoDatabasesAwsOffering - | InformationProtectionAwsOffering | CspmMonitorGcpOffering | DefenderForServersGcpOffering | DefenderForDatabasesGcpOffering @@ -46,17 +45,22 @@ export type CloudOfferingUnion = | CspmMonitorAzureDevOpsOffering | DefenderCspmAwsOffering | DefenderCspmGcpOffering - | DefenderForDevOpsGithubOffering - | DefenderForDevOpsAzureDevOpsOffering | CspmMonitorGitLabOffering - | DefenderForDevOpsGitLabOffering; + | CspmMonitorDockerHubOffering + | DefenderForContainersDockerHubOffering + | DefenderCspmDockerHubOffering + | CspmMonitorJFrogOffering + | DefenderForContainersJFrogOffering + | DefenderCspmJFrogOffering; export type EnvironmentDataUnion = | EnvironmentData | AwsEnvironmentData | GcpProjectEnvironmentData | GithubScopeEnvironmentData | AzureDevOpsScopeEnvironmentData - | GitlabScopeEnvironmentData; + | GitlabScopeEnvironmentData + | DockerHubEnvironmentData + | JFrogEnvironmentData; export type CustomAlertRuleUnion = | CustomAlertRule | ThresholdCustomAlertRuleUnion @@ -76,10 +80,9 @@ export type GcpOrganizationalDataUnion = | GcpOrganizationalData | GcpOrganizationalDataOrganization | GcpOrganizationalDataMember; +export type AuthenticationUnion = Authentication | AccessTokenAuthentication; export type SettingUnion = Setting | DataExportSettings | AlertSyncSettings; -export type OnPremiseResourceDetailsUnion = - | OnPremiseResourceDetails - | OnPremiseSqlResourceDetails; +export type OnPremiseResourceDetailsUnion = OnPremiseResourceDetails | OnPremiseSqlResourceDetails; export type ThresholdCustomAlertRuleUnion = | ThresholdCustomAlertRule | TimeWindowCustomAlertRuleUnion; @@ -217,57 +220,6 @@ export interface ErrorAdditionalInfo { readonly info?: Record; } -/** List of possible operations for Microsoft.Security resource provider */ -export interface OperationList { - /** List of Security operations */ - value?: Operation[]; - /** - * The URI to fetch the next page. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly nextLink?: string; -} - -/** Possible operation in the REST API of Microsoft.Security */ -export interface Operation { - /** - * Name of the operation - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly name?: string; - /** - * Where the operation is originated - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly origin?: string; - /** Security operation display */ - display?: OperationDisplay; -} - -/** Security operation display */ -export interface OperationDisplay { - /** - * The resource provider for the operation. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly provider?: string; - /** - * The display name of the resource the operation applies to. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly resource?: string; - /** - * The display name of the security operation. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly operation?: string; - /** - * The description of the operation. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly description?: string; -} - /** List of security task recommendations */ export interface SecurityTaskList { /** NOTE: This property will not be serialized. It can only be populated by the server. */ @@ -415,88 +367,6 @@ export interface ScopeElement { field?: string; } -/** List of security automations response. */ -export interface AutomationList { - /** The list of security automations under the given scope. */ - value: Automation[]; - /** - * The URI to fetch the next page. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly nextLink?: string; -} - -/** A single automation scope. */ -export interface AutomationScope { - /** The resources scope description. */ - description?: string; - /** The resources scope path. Can be the subscription on which the automation is defined on or a resource group under that subscription (fully qualified Azure resource IDs). */ - scopePath?: string; -} - -/** The source event types which evaluate the security automation set of rules. For example - security alerts and security assessments. To learn more about the supported security events data models schemas - please visit https://aka.ms/ASCAutomationSchemas. */ -export interface AutomationSource { - /** A valid event source type. */ - eventSource?: EventSource; - /** A set of rules which evaluate upon event interception. A logical disjunction is applied between defined rule sets (logical 'or'). */ - ruleSets?: AutomationRuleSet[]; -} - -/** A rule set which evaluates all its rules upon an event interception. Only when all the included rules in the rule set will be evaluated as 'true', will the event trigger the defined actions. */ -export interface AutomationRuleSet { - rules?: AutomationTriggeringRule[]; -} - -/** A rule which is evaluated upon event interception. The rule is configured by comparing a specific value from the event model to an expected value. This comparison is done by using one of the supported operators set. */ -export interface AutomationTriggeringRule { - /** The JPath of the entity model property that should be checked. */ - propertyJPath?: string; - /** The data type of the compared operands (string, integer, floating point number or a boolean [true/false]] */ - propertyType?: PropertyType; - /** The expected value. */ - expectedValue?: string; - /** A valid comparer operator to use. A case-insensitive comparison will be applied for String PropertyType. */ - operator?: Operator; -} - -/** The action that should be triggered. */ -export interface AutomationAction { - /** Polymorphic discriminator, which specifies the different types this object can be */ - actionType: "LogicApp" | "EventHub" | "Workspace"; -} - -/** Describes an Azure resource with location */ -export interface AzureTrackedResourceLocation { - /** Location where the resource is stored */ - location?: string; -} - -/** Describes an Azure resource with kind */ -export interface KindAutoGenerated { - /** Kind of the resource */ - kind?: string; -} - -/** Entity tag is used for comparing two or more entities from the same requested resource. */ -export interface ETag { - /** Entity tag is used for comparing two or more entities from the same requested resource. */ - etag?: string; -} - -/** A list of key value pairs that describe the resource. */ -export interface Tags { - /** A list of key value pairs that describe the resource. */ - tags?: { [propertyName: string]: string }; -} - -/** The security automation model state property bag. */ -export interface AutomationValidationStatus { - /** Indicates whether the model is valid or not. */ - isValid?: boolean; - /** The validation message. */ - message?: string; -} - /** List of regulatory compliance standards response */ export interface RegulatoryComplianceStandardList { value: RegulatoryComplianceStandard[]; @@ -640,31 +510,6 @@ export interface AuthenticationDetailsProperties { readonly grantedPermissions?: PermissionProperty[]; } -/** List of security contacts response */ -export interface SecurityContactList { - /** List of security contacts */ - value: SecurityContact[]; - /** - * The URI to fetch the next page. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly nextLink?: string; -} - -/** A valid notification source type */ -export interface NotificationsSource { - /** Polymorphic discriminator, which specifies the different types this object can be */ - sourceType: "Alert" | "AttackPath"; -} - -/** Defines whether to send email notifications from Microsoft Defender for Cloud to persons with specific RBAC roles on the subscription. */ -export interface SecurityContactPropertiesNotificationsByRole { - /** Defines whether to send email notifications from AMicrosoft Defender for Cloud to persons with specific RBAC roles on the subscription. */ - state?: State; - /** Defines which RBAC roles will get email notifications from Microsoft Defender for Cloud. List of allowed RBAC roles: */ - roles?: SecurityContactRole[]; -} - /** Represents the software inventory of the virtual machine. */ export interface SoftwaresList { value?: Software[]; @@ -848,14 +693,6 @@ export interface ApplicationsList { readonly nextLink?: string; } -/** A status describing the success/failure of the enablement/disablement operation. */ -export interface OperationStatus { - /** The operation status code. */ - code?: string; - /** Additional information regarding the success/failure of the operation. */ - message?: string; -} - /** List of SecurityOperator response. */ export interface SecurityOperatorList { /** List of SecurityOperator configurations */ @@ -1271,119 +1108,229 @@ export interface ErrorDetail { readonly additionalInfo?: ErrorAdditionalInfo[]; } -/** List of RP resources which supports pagination. */ -export interface AzureDevOpsOrgListResponse { - /** Gets or sets list of resources. */ - value?: AzureDevOpsOrg[]; - /** Gets or sets next link to scroll over the results. */ - nextLink?: string; -} - -/** Azure DevOps Organization properties. */ -export interface AzureDevOpsOrgProperties { - /** - * Gets or sets resource status message. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly provisioningStatusMessage?: string; +/** List of security automations response. */ +export interface AutomationList { + /** The list of security automations under the given scope. */ + value: Automation[]; /** - * Gets or sets time when resource was last checked. + * The URI to fetch the next page. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly provisioningStatusUpdateTimeUtc?: Date; - /** - * The provisioning state of the resource. - * - * Pending - Provisioning pending. - * Failed - Provisioning failed. - * Succeeded - Successful provisioning. - * Canceled - Provisioning canceled. - * PendingDeletion - Deletion pending. - * DeletionSuccess - Deletion successful. - * DeletionFailure - Deletion failure. - */ - provisioningState?: DevOpsProvisioningState; - /** - * Details about resource onboarding status across all connectors. - * - * OnboardedByOtherConnector - this resource has already been onboarded to another connector. This is only applicable to top-level resources. - * Onboarded - this resource has already been onboarded by the specified connector. - * NotOnboarded - this resource has not been onboarded to any connector. - * NotApplicable - the onboarding state is not applicable to the current endpoint. - */ - onboardingState?: OnboardingState; - /** Configuration payload for PR Annotations. */ - actionableRemediation?: ActionableRemediation; + readonly nextLink?: string; } -/** Configuration payload for PR Annotations. */ -export interface ActionableRemediation { - /** - * ActionableRemediation Setting. - * None - the setting was never set. - * Enabled - ActionableRemediation is enabled. - * Disabled - ActionableRemediation is disabled. - */ - state?: ActionableRemediationState; - /** Gets or sets list of categories and severity levels. */ - categoryConfigurations?: CategoryConfiguration[]; - /** Repository branch configuration for PR Annotations. */ - branchConfiguration?: TargetBranchConfiguration; - /** - * Update Settings. - * - * Enabled - Resource should inherit configurations from parent. - * Disabled - Resource should not inherit configurations from parent. - */ - inheritFromParentState?: InheritFromParentState; +/** A single automation scope. */ +export interface AutomationScope { + /** The resources scope description. */ + description?: string; + /** The resources scope path. Can be the subscription on which the automation is defined on or a resource group under that subscription (fully qualified Azure resource IDs). */ + scopePath?: string; } -/** Severity level per category configuration for PR Annotations. */ -export interface CategoryConfiguration { - /** Gets or sets minimum severity level for a given category. */ - minimumSeverityLevel?: string; - /** - * Rule categories. - * Code - code scanning results. - * Artifact scanning results. - * Dependencies scanning results. - * IaC results. - * Secrets scanning results. - * Container scanning results. - */ - category?: RuleCategory; +/** The source event types which evaluate the security automation set of rules. For example - security alerts and security assessments. To learn more about the supported security events data models schemas - please visit https://aka.ms/ASCAutomationSchemas. */ +export interface AutomationSource { + /** A valid event source type. */ + eventSource?: EventSource; + /** A set of rules which evaluate upon event interception. A logical disjunction is applied between defined rule sets (logical 'or'). */ + ruleSets?: AutomationRuleSet[]; } -/** Repository branch configuration for PR Annotations. */ -export interface TargetBranchConfiguration { - /** Gets or sets branches that should have annotations. */ - branchNames?: string[]; - /** - * Configuration of PR Annotations on default branch. - * - * Enabled - PR Annotations are enabled on the resource's default branch. - * Disabled - PR Annotations are disabled on the resource's default branch. +/** A rule set which evaluates all its rules upon an event interception. Only when all the included rules in the rule set will be evaluated as 'true', will the event trigger the defined actions. */ +export interface AutomationRuleSet { + rules?: AutomationTriggeringRule[]; +} + +/** A rule which is evaluated upon event interception. The rule is configured by comparing a specific value from the event model to an expected value. This comparison is done by using one of the supported operators set. */ +export interface AutomationTriggeringRule { + /** The JPath of the entity model property that should be checked. */ + propertyJPath?: string; + /** The data type of the compared operands (string, integer, floating point number or a boolean [true/false]] */ + propertyType?: PropertyType; + /** The expected value. */ + expectedValue?: string; + /** A valid comparer operator to use. A case-insensitive comparison will be applied for String PropertyType. */ + operator?: Operator; +} + +/** The action that should be triggered. */ +export interface AutomationAction { + /** Polymorphic discriminator, which specifies the different types this object can be */ + actionType: "LogicApp" | "EventHub" | "Workspace"; +} + +/** Describes an Azure resource with location */ +export interface AzureTrackedResourceLocation { + /** Location where the resource is stored */ + location?: string; +} + +/** Describes an Azure resource with kind */ +export interface KindAutoGenerated { + /** Kind of the resource */ + kind?: string; +} + +/** Entity tag is used for comparing two or more entities from the same requested resource. */ +export interface ETag { + /** Entity tag is used for comparing two or more entities from the same requested resource. */ + etag?: string; +} + +/** A list of key value pairs that describe the resource. */ +export interface Tags { + /** A list of key value pairs that describe the resource. */ + tags?: { [propertyName: string]: string }; +} + +/** The security automation model state property bag. */ +export interface AutomationValidationStatus { + /** Indicates whether the model is valid or not. */ + isValid?: boolean; + /** The validation message. */ + message?: string; +} + +/** List of security contacts response */ +export interface SecurityContactList { + /** List of security contacts */ + value: SecurityContact[]; + /** + * The URI to fetch the next page. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - annotateDefaultBranch?: AnnotateDefaultBranchState; + readonly nextLink?: string; } -/** Common fields that are returned in the response for all Azure Resource Manager resources */ -export interface ResourceAutoGenerated { +/** A valid notification source type */ +export interface NotificationsSource { + /** Polymorphic discriminator, which specifies the different types this object can be */ + sourceType: "Alert" | "AttackPath"; +} + +/** Defines whether to send email notifications from Microsoft Defender for Cloud to persons with specific RBAC roles on the subscription. */ +export interface SecurityContactPropertiesNotificationsByRole { + /** Defines whether to send email notifications from AMicrosoft Defender for Cloud to persons with specific RBAC roles on the subscription. */ + state?: State; + /** Defines which RBAC roles will get email notifications from Microsoft Defender for Cloud. List of allowed RBAC roles: */ + roles?: SecurityContactRole[]; +} + +/** List of security connectors response. */ +export interface SecurityConnectorsList { + /** The list of security connectors under the given scope. */ + value: SecurityConnector[]; /** - * Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + * The URI to fetch the next page. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly id?: string; + readonly nextLink?: string; +} + +/** The security offering details */ +export interface CloudOffering { + /** Polymorphic discriminator, which specifies the different types this object can be */ + offeringType: + | "CspmMonitorAws" + | "DefenderForContainersAws" + | "DefenderForServersAws" + | "DefenderForDatabasesAws" + | "CspmMonitorGcp" + | "DefenderForServersGcp" + | "DefenderForDatabasesGcp" + | "DefenderForContainersGcp" + | "CspmMonitorGithub" + | "CspmMonitorAzureDevOps" + | "DefenderCspmAws" + | "DefenderCspmGcp" + | "CspmMonitorGitLab" + | "CspmMonitorDockerHub" + | "DefenderForContainersDockerHub" + | "DefenderCspmDockerHub" + | "CspmMonitorJFrog" + | "DefenderForContainersJFrog" + | "DefenderCspmJFrog"; /** - * The name of the resource + * The offering description. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly description?: string; +} + +/** The security connector environment data. */ +export interface EnvironmentData { + /** Polymorphic discriminator, which specifies the different types this object can be */ + environmentType: + | "AwsAccount" + | "GcpProject" + | "GithubScope" + | "AzureDevOpsScope" + | "GitlabScope" + | "DockerHubOrganization" + | "JFrogArtifactory"; +} + +/** A list of REST API operations supported by an Azure Resource Provider. It contains an URL link to get the next set of results. */ +export interface OperationListResult { + /** + * List of operations supported by the resource provider + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly value?: Operation[]; + /** + * URL to get the next set of operation list results (if there are any). + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly nextLink?: string; +} + +/** Details of a REST API operation, returned from the Resource Provider Operations API */ +export interface Operation { + /** + * The name of the operation, as per Resource-Based Access Control (RBAC). Examples: "Microsoft.Compute/virtualMachines/write", "Microsoft.Compute/virtualMachines/capture/action" * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly name?: string; /** - * The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + * Whether the operation applies to data-plane. This is "true" for data-plane operations and "false" for ARM/control-plane operations. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly type?: string; + readonly isDataAction?: boolean; + /** Localized display information for this particular operation. */ + display?: OperationDisplay; + /** + * The intended executor of the operation; as in Resource Based Access Control (RBAC) and audit logs UX. Default value is "user,system" + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly origin?: Origin; + /** + * Enum. Indicates the action type. "Internal" refers to actions that are for internal only APIs. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly actionType?: ActionType; +} + +/** Localized display information for this particular operation. */ +export interface OperationDisplay { + /** + * The localized friendly form of the resource provider name, e.g. "Microsoft Monitoring Insights" or "Microsoft Compute". + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provider?: string; + /** + * The localized friendly name of the resource type related to this operation. E.g. "Virtual Machines" or "Job Schedule Collections". + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly resource?: string; + /** + * The concise, localized friendly name for the operation; suitable for dropdowns. E.g. "Create or Update Virtual Machine", "Restart Virtual Machine". + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly operation?: string; + /** + * The short, localized friendly description of the operation; suitable for tool tips and detailed views. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly description?: string; } /** Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.). */ @@ -1421,454 +1368,409 @@ export interface ErrorDetailAutoGenerated { readonly additionalInfo?: ErrorAdditionalInfo[]; } -/** List of RP resources which supports pagination. */ -export interface AzureDevOpsProjectListResponse { - /** Gets or sets list of resources. */ - value?: AzureDevOpsProject[]; - /** Gets or sets next link to scroll over the results. */ - nextLink?: string; +/** Defender for Storage resource properties. */ +export interface DefenderForStorageSettingProperties { + /** Indicates whether Defender for Storage is enabled on this storage account. */ + isEnabled?: boolean; + /** Properties of Malware Scanning. */ + malwareScanning?: MalwareScanningProperties; + /** Properties of Sensitive Data Discovery. */ + sensitiveDataDiscovery?: SensitiveDataDiscoveryProperties; + /** Indicates whether the settings defined for this storage account should override the settings defined for the subscription. */ + overrideSubscriptionLevelSettings?: boolean; } -/** 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; +/** Properties of Malware Scanning. */ +export interface MalwareScanningProperties { + /** Properties of On Upload malware scanning. */ + onUpload?: OnUploadProperties; + /** Optional. Resource id of an Event Grid Topic to send scan results to. */ + scanResultsEventGridTopicResourceId?: string; + /** Optional. Write scan result on blobIndexTags by default. */ + blobScanResultsOptions?: BlobScanResultsOptions; /** - * Gets or sets Azure DevOps Project id. + * 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 projectId?: string; + readonly operationStatus?: OperationStatus; +} + +/** Properties of On Upload malware scanning. */ +export interface OnUploadProperties { + /** Indicates whether On Upload malware scanning should be enabled. */ + isEnabled?: boolean; + /** Defines the max GB to be scanned per Month. Set to -1 if no capping is needed. If not specified, the default value is -1. */ + capGBPerMonth?: number; + /** Optional. Determine which blobs get scanned by On Upload malware scanning. An Or operation is performed between each filter type. */ + filters?: OnUploadFilters; +} + +/** Optional. Determine which blobs get scanned by On Upload malware scanning. An Or operation is performed between each filter type. */ +export interface OnUploadFilters { /** - * 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. + * Optional. A list of prefixes to exclude from on-upload malware scanning. + * Format: `container-name/blob-name` (start with the container name; do not include the storage account name). + * Exclude entire containers: Use prefix of container names you want to exclude without a trailing `/`. + * Exclude a single container: Add a trailing slash `/` after the container name to avoid excluding other containers with similar prefixes. */ - onboardingState?: OnboardingState; - /** Configuration payload for PR Annotations. */ - actionableRemediation?: ActionableRemediation; + excludeBlobsWithPrefix?: string[]; + /** Optional. A list of suffixes to exclude from on-upload malware scanning. Suffixes match only the end of blob names, and should be used for file extensions or blob name endings only. */ + excludeBlobsWithSuffix?: string[]; + /** Optional. Specifies the maximum size in bytes for blobs to be scanned. This parameter accepts a single positive integer value. Blobs larger than this value will be excluded from scanning. */ + excludeBlobsLargerThan?: any; } -/** 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; +/** A status describing the success/failure of the enablement/disablement operation. */ +export interface OperationStatus { + /** The operation status code. */ + code?: string; + /** Additional information regarding the success/failure of the operation. */ + message?: string; } -/** Azure DevOps Repository properties. */ -export interface AzureDevOpsRepositoryProperties { +/** Properties of Sensitive Data Discovery. */ +export interface SensitiveDataDiscoveryProperties { + /** Indicates whether Sensitive Data Discovery should be enabled. */ + isEnabled?: boolean; /** - * Gets or sets resource status message. + * 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 provisioningStatusMessage?: string; + readonly operationStatus?: OperationStatus; +} + +/** Describes the state of a malware scan operation. */ +export interface MalwareScan { + properties?: MalwareScanProperties; +} + +export interface MalwareScanProperties { + /** The identifier of the scan. */ + scanId?: string; + /** A status code of the scan operation. */ + scanStatus?: string; + /** A description of the status of the scan. */ + scanStatusMessage?: string; + /** The time at which the scan had been initiated. */ + scanStartTime?: string; + /** The time at which the scan has ended. Only available for a scan which has terminated. */ + scanEndTime?: string; + /** A summary of the scan results. */ + scanSummary?: ScanSummary; +} + +/** A summary of the scan results. */ +export interface ScanSummary { + /** A summary of the scan results of the blobs that were scanned. */ + blobs?: BlobsScanSummary; + /** The estimated cost of the scan. Only available for a scan which has terminated. */ + estimatedScanCostUSD?: number; +} + +/** A summary of the scan results of the blobs that were scanned. */ +export interface BlobsScanSummary { + /** The total number of blobs that were scanned. */ + totalBlobsScanned?: number; + /** The number of malicious blobs that were detected during the scan. */ + maliciousBlobsCount?: number; + /** The number of blobs that were skipped. */ + skippedBlobsCount?: number; + /** The number of failed blob scans. */ + failedBlobsCount?: number; + /** The number of gigabytes of data that were scanned. */ + scannedBlobsInGB?: number; +} + +/** List of compliance results response */ +export interface ComplianceResultList { + /** List of compliance results */ + value: ComplianceResult[]; /** - * Gets or sets time when resource was last checked. + * The URI to fetch the next page. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly provisioningStatusUpdateTimeUtc?: Date; - /** - * The provisioning state of the resource. - * - * Pending - Provisioning pending. - * Failed - Provisioning failed. - * Succeeded - Successful provisioning. - * Canceled - Provisioning canceled. - * PendingDeletion - Deletion pending. - * DeletionSuccess - Deletion successful. - * DeletionFailure - Deletion failure. - */ - provisioningState?: DevOpsProvisioningState; - /** Gets or sets parent Azure DevOps Organization name. */ - parentOrgName?: string; - /** Gets or sets parent Azure DevOps Project name. */ - parentProjectName?: string; + readonly nextLink?: string; +} + +/** List of device security groups */ +export interface DeviceSecurityGroupList { + /** List of device security group objects */ + value?: DeviceSecurityGroup[]; /** - * Gets or sets Azure DevOps Repository id. + * The URI to fetch the next page. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly repoId?: string; + readonly nextLink?: string; +} + +/** A custom alert rule. */ +export interface CustomAlertRule { + /** Polymorphic discriminator, which specifies the different types this object can be */ + ruleType: + | "ThresholdCustomAlertRule" + | "TimeWindowCustomAlertRule" + | "ListCustomAlertRule" + | "AllowlistCustomAlertRule" + | "DenylistCustomAlertRule" + | "ConnectionToIpNotAllowed" + | "ConnectionFromIpNotAllowed" + | "LocalUserNotAllowed" + | "ProcessNotAllowed" + | "ActiveConnectionsNotInAllowedRange" + | "AmqpC2DMessagesNotInAllowedRange" + | "MqttC2DMessagesNotInAllowedRange" + | "HttpC2DMessagesNotInAllowedRange" + | "AmqpC2DRejectedMessagesNotInAllowedRange" + | "MqttC2DRejectedMessagesNotInAllowedRange" + | "HttpC2DRejectedMessagesNotInAllowedRange" + | "AmqpD2CMessagesNotInAllowedRange" + | "MqttD2CMessagesNotInAllowedRange" + | "HttpD2CMessagesNotInAllowedRange" + | "DirectMethodInvokesNotInAllowedRange" + | "FailedLocalLoginsNotInAllowedRange" + | "FileUploadsNotInAllowedRange" + | "QueuePurgesNotInAllowedRange" + | "TwinUpdatesNotInAllowedRange" + | "UnauthorizedOperationsNotInAllowedRange"; /** - * Gets or sets Azure DevOps Repository url. + * The display name of the custom alert. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly repoUrl?: string; + readonly displayName?: string; /** - * Gets or sets Azure DevOps repository visibility, whether it is public or private etc. + * The description of the custom alert. * 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; -} - -/** 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; + readonly description?: string; + /** Status of the custom alert. */ + isEnabled: boolean; } -/** 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; +/** List of Security analytics of your IoT Security solution */ +export interface IoTSecuritySolutionAnalyticsModelList { + /** List of Security analytics of your IoT Security solution */ + value: IoTSecuritySolutionAnalyticsModel[]; /** - * Gets or sets time when resource was last checked. + * When there is too much alert data for one page, use this URI to fetch the next page. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly 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[]; + readonly nextLink?: 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; +/** IoT Security solution analytics severity metrics. */ +export interface IoTSeverityMetrics { + /** Count of high severity alerts/recommendations. */ + high?: number; + /** Count of medium severity alerts/recommendations. */ + medium?: number; + /** Count of low severity alerts/recommendations. */ + low?: number; } -/** 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; +export interface IoTSecuritySolutionAnalyticsModelPropertiesDevicesMetricsItem { + /** Aggregation of IoT Security solution device alert metrics by date. */ + date?: Date; + /** Device alert count by severity. */ + devicesMetrics?: IoTSeverityMetrics; } -/** GitHub Owner properties. */ -export interface GitHubOwnerProperties { +/** Statistical information about the number of alerts per device during last set number of days. */ +export interface IoTSecurityAlertedDevice { /** - * Gets or sets resource status message. + * Device identifier. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly provisioningStatusMessage?: string; + readonly deviceId?: string; /** - * Gets or sets time when resource was last checked. + * Number of alerts raised for this device. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly provisioningStatusUpdateTimeUtc?: Date; - /** - * The provisioning state of the resource. - * - * Pending - Provisioning pending. - * Failed - Provisioning failed. - * Succeeded - Successful provisioning. - * Canceled - Provisioning canceled. - * PendingDeletion - Deletion pending. - * DeletionSuccess - Deletion successful. - * DeletionFailure - Deletion failure. - */ - provisioningState?: DevOpsProvisioningState; + readonly alertsCount?: number; +} + +/** Statistical information about the number of alerts per alert type during last set number of days */ +export interface IoTSecurityDeviceAlert { /** - * Gets or sets GitHub Owner url. + * Display name of the alert * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly ownerUrl?: string; + readonly alertDisplayName?: string; /** - * Gets or sets internal GitHub id. + * Assessed Alert severity. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly gitHubInternalId?: string; + readonly reportedSeverity?: ReportedSeverity; /** - * Details about resource onboarding status across all connectors. - * - * OnboardedByOtherConnector - this resource has already been onboarded to another connector. This is only applicable to top-level resources. - * Onboarded - this resource has already been onboarded by the specified connector. - * NotOnboarded - this resource has not been onboarded to any connector. - * NotApplicable - the onboarding state is not applicable to the current endpoint. + * Number of alerts raised for this alert type. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - onboardingState?: OnboardingState; -} - -/** List of RP resources which supports pagination. */ -export interface GitHubRepositoryListResponse { - /** Gets or sets list of resources. */ - value?: GitHubRepository[]; - /** Gets or sets next link to scroll over the results. */ - nextLink?: string; + readonly alertsCount?: number; } -/** GitHub Repository properties. */ -export interface GitHubRepositoryProperties { +/** Statistical information about the number of recommendations per device, per recommendation type. */ +export interface IoTSecurityDeviceRecommendation { /** - * Gets or sets resource status message. + * Display name of the recommendation. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly provisioningStatusMessage?: string; + readonly recommendationDisplayName?: string; /** - * Gets or sets time when resource was last checked. + * Assessed recommendation severity. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly provisioningStatusUpdateTimeUtc?: Date; - /** - * The provisioning state of the resource. - * - * Pending - Provisioning pending. - * Failed - Provisioning failed. - * Succeeded - Successful provisioning. - * Canceled - Provisioning canceled. - * PendingDeletion - Deletion pending. - * DeletionSuccess - Deletion successful. - * DeletionFailure - Deletion failure. - */ - provisioningState?: DevOpsProvisioningState; + readonly reportedSeverity?: ReportedSeverity; /** - * Gets or sets GitHub Repository id. - * - * This is a numeric id defined by Github. - * Eg: "123456". + * Number of devices with this recommendation. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly repoId?: string; + readonly devicesCount?: number; +} + +/** List of IoT Security solution aggregated alert data. */ +export interface IoTSecurityAggregatedAlertList { + /** List of aggregated alerts data. */ + value: IoTSecurityAggregatedAlert[]; /** - * Gets or sets GitHub Repository name. - * Eg: "new-repo-1". + * When there is too much alert data for one page, use this URI to fetch the next page. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly repoName?: string; + readonly nextLink?: string; +} + +export interface IoTSecurityAggregatedAlertPropertiesTopDevicesListItem { /** - * Gets or sets GitHub Full Name. - * Repository name, prefixed with Owner name. - * Eg: "my-org/new-repo-1". + * Name of the device. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly repoFullName?: string; + readonly deviceId?: string; /** - * Details about resource onboarding status across all connectors. - * - * OnboardedByOtherConnector - this resource has already been onboarded to another connector. This is only applicable to top-level resources. - * Onboarded - this resource has already been onboarded by the specified connector. - * NotOnboarded - this resource has not been onboarded to any connector. - * NotApplicable - the onboarding state is not applicable to the current endpoint. + * Number of alerts raised for this device. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - onboardingState?: OnboardingState; + readonly alertsCount?: number; /** - * Gets or sets GitHub Repository url. + * Most recent time this alert was raised for this device, on this day. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly repoUrl?: string; - /** Gets or sets parent GitHub Owner name. */ - parentOwnerName?: string; + readonly lastOccurrence?: string; } -/** List of RP resources which supports pagination. */ -export interface GitLabGroupListResponse { - /** Gets or sets list of resources. */ - value?: GitLabGroup[]; - /** Gets or sets next link to scroll over the results. */ - nextLink?: string; +/** A container holding only the Tags for a resource, allowing the user to update the tags. */ +export interface TagsResource { + /** Resource tags */ + tags?: { [propertyName: string]: string }; } -/** GitLab Group properties. */ -export interface GitLabGroupProperties { - /** - * 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; +/** List of IoT Security solution aggregated recommendations. */ +export interface IoTSecurityAggregatedRecommendationList { + /** List of aggregated recommendations data. */ + value: IoTSecurityAggregatedRecommendation[]; /** - * 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. + * When there is too much alert data for one page, use this URI to fetch the next page. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly fullyQualifiedFriendlyName?: string; + readonly nextLink?: string; +} + +/** List of IoT Security solutions. */ +export interface IoTSecuritySolutionsList { + /** List of IoT Security solutions */ + value: IoTSecuritySolutionModel[]; /** - * Gets or sets the url of the GitLab Group. + * The URI to fetch the next page. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly url?: string; - /** - * Details about resource onboarding status across all connectors. - * - * OnboardedByOtherConnector - this resource has already been onboarded to another connector. This is only applicable to top-level resources. - * Onboarded - this resource has already been onboarded by the specified connector. - * NotOnboarded - this resource has not been onboarded to any connector. - * NotApplicable - the onboarding state is not applicable to the current endpoint. - */ - onboardingState?: OnboardingState; + readonly nextLink?: string; } -/** List of RP resources which supports pagination. */ -export interface GitLabProjectListResponse { - /** Gets or sets list of resources. */ - value?: GitLabProject[]; - /** Gets or sets next link to scroll over the results. */ - nextLink?: string; +/** Properties of the IoT Security solution's user defined resources. */ +export interface UserDefinedResourcesProperties { + /** Azure Resource Graph query which represents the security solution's user defined resources. Required to start with "where type != "Microsoft.Devices/IotHubs"" */ + query: string | null; + /** List of Azure subscription ids on which the user defined resources query should be executed. */ + querySubscriptions: string[] | null; } -/** GitLab Project properties. */ -export interface GitLabProjectProperties { +/** The type of IoT Security recommendation. */ +export interface RecommendationConfigurationProperties { + /** The type of IoT Security recommendation. */ + recommendationType: RecommendationType; + /** NOTE: This property will not be serialized. It can only be populated by the server. */ + readonly name?: string; + /** Recommendation status. When the recommendation status is disabled recommendations are not generated. */ + status: RecommendationConfigStatus; +} + +/** Properties of the additional workspaces. */ +export interface AdditionalWorkspacesProperties { + /** Workspace resource id */ + workspace?: string; + /** Workspace type. */ + type?: AdditionalWorkspaceType; + /** List of data types sent to workspace */ + dataTypes?: AdditionalWorkspaceDataType[]; +} + +/** List of all possible traffic between Azure resources */ +export interface AllowedConnectionsList { + /** NOTE: This property will not be serialized. It can only be populated by the server. */ + readonly value?: AllowedConnectionsResource[]; /** - * Gets or sets resource status message. + * The URI to fetch the next page. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly provisioningStatusMessage?: string; + readonly nextLink?: string; +} + +/** Describes the allowed inbound and outbound traffic of an Azure resource */ +export interface ConnectableResource { /** - * Gets or sets time when resource was last checked. + * The Azure resource id * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly provisioningStatusUpdateTimeUtc?: Date; - /** - * The provisioning state of the resource. - * - * Pending - Provisioning pending. - * Failed - Provisioning failed. - * Succeeded - Successful provisioning. - * Canceled - Provisioning canceled. - * PendingDeletion - Deletion pending. - * DeletionSuccess - Deletion successful. - * DeletionFailure - Deletion failure. - */ - provisioningState?: DevOpsProvisioningState; + readonly id?: string; /** - * Gets or sets the fully-qualified name of the project object. - * - * This contains the entire hierarchy where entities are separated by the '$' character. + * The list of Azure resources that the resource has inbound allowed connection from * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly fullyQualifiedName?: string; + readonly inboundConnectedResources?: ConnectedResource[]; /** - * Gets or sets the human readable fully-qualified name of the Project object. - * - * This contains the entire namespace hierarchy as seen on GitLab UI where entities are separated by the '/' character. + * The list of Azure resources that the resource has outbound allowed connection to * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly fullyQualifiedFriendlyName?: string; + readonly outboundConnectedResources?: ConnectedResource[]; +} + +/** Describes properties of a connected resource */ +export interface ConnectedResource { /** - * Gets or sets the fully-qualified name of the project's parent group object. - * - * This contains the entire hierarchy where namespaces are separated by the '$' character. + * The Azure resource id of the connected resource * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly fullyQualifiedParentGroupName?: string; + readonly connectedResourceId?: string; /** - * Gets or sets the url of the GitLab Project. + * The allowed tcp ports * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly url?: string; + readonly tcpPorts?: string; /** - * Details about resource onboarding status across all connectors. - * - * OnboardedByOtherConnector - this resource has already been onboarded to another connector. This is only applicable to top-level resources. - * Onboarded - this resource has already been onboarded by the specified connector. - * NotOnboarded - this resource has not been onboarded to any connector. - * NotApplicable - the onboarding state is not applicable to the current endpoint. + * The allowed udp ports + * NOTE: This property will not be serialized. It can only be populated by the server. */ - onboardingState?: OnboardingState; + readonly udpPorts?: string; } -/** The current status of an async operation. */ -export interface OperationStatusResult { - /** Fully qualified ID for the async operation. */ - id?: string; - /** Name of the async operation. */ - name?: string; - /** Operation status. */ - status: string; - /** Percent of the operation that is complete. */ - percentComplete?: number; - /** The start time of the operation. */ - startTime?: Date; - /** The end time of the operation. */ - endTime?: Date; - /** The operations list. */ - operations?: OperationStatusResult[]; - /** If present, details of the operation error. */ - error?: ErrorDetailAutoGenerated; +/** Describes an Azure resource with location */ +export interface Location { + /** + * Location where the resource is stored + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly location?: string; } -/** List of security connectors response. */ -export interface SecurityConnectorsList { - /** The list of security connectors under the given scope. */ - value: SecurityConnector[]; +export interface DiscoveredSecuritySolutionList { + value?: DiscoveredSecuritySolution[]; /** * The URI to fetch the next page. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -1876,49 +1778,23 @@ export interface SecurityConnectorsList { readonly nextLink?: string; } -/** The security offering details */ -export interface CloudOffering { - /** Polymorphic discriminator, which specifies the different types this object can be */ - offeringType: - | "CspmMonitorAws" - | "DefenderForContainersAws" - | "DefenderForServersAws" - | "DefenderForDatabasesAws" - | "InformationProtectionAws" - | "CspmMonitorGcp" - | "DefenderForServersGcp" - | "DefenderForDatabasesGcp" - | "DefenderForContainersGcp" - | "CspmMonitorGithub" - | "CspmMonitorAzureDevOps" - | "DefenderCspmAws" - | "DefenderCspmGcp" - | "DefenderForDevOpsGithub" - | "DefenderForDevOpsAzureDevOps" - | "CspmMonitorGitLab" - | "DefenderForDevOpsGitLab"; +export interface ExternalSecuritySolutionList { + value?: ExternalSecuritySolution[]; /** - * The offering description. + * The URI to fetch the next page. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly description?: string; + readonly nextLink?: string; } -/** The security connector environment data. */ -export interface EnvironmentData { - /** Polymorphic discriminator, which specifies the different types this object can be */ - environmentType: - | "AwsAccount" - | "GcpProject" - | "GithubScope" - | "AzureDevOpsScope" - | "GitlabScope"; +/** Describes an Azure resource with kind */ +export interface ExternalSecuritySolutionKindAutoGenerated { + /** The kind of the external solution */ + kind?: ExternalSecuritySolutionKind; } -/** List of compliance results response */ -export interface ComplianceResultList { - /** List of compliance results */ - value: ComplianceResult[]; +export interface JitNetworkAccessPoliciesList { + value?: JitNetworkAccessPolicy[]; /** * The URI to fetch the next page. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -1926,190 +1802,229 @@ export interface ComplianceResultList { readonly nextLink?: string; } -/** List of device security groups */ -export interface DeviceSecurityGroupList { - /** List of device security group objects */ - value?: DeviceSecurityGroup[]; - /** - * The URI to fetch the next page. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly nextLink?: string; +export interface JitNetworkAccessPolicyVirtualMachine { + /** Resource ID of the virtual machine that is linked to this policy */ + id: string; + /** Port configurations for the virtual machine */ + ports: JitNetworkAccessPortRule[]; + /** Public IP address of the Azure Firewall that is linked to this policy, if applicable */ + publicIpAddress?: string; } -/** A custom alert rule. */ -export interface CustomAlertRule { - /** Polymorphic discriminator, which specifies the different types this object can be */ - ruleType: - | "ThresholdCustomAlertRule" - | "TimeWindowCustomAlertRule" - | "ListCustomAlertRule" - | "AllowlistCustomAlertRule" - | "DenylistCustomAlertRule" - | "ConnectionToIpNotAllowed" - | "ConnectionFromIpNotAllowed" - | "LocalUserNotAllowed" - | "ProcessNotAllowed" - | "ActiveConnectionsNotInAllowedRange" - | "AmqpC2DMessagesNotInAllowedRange" - | "MqttC2DMessagesNotInAllowedRange" - | "HttpC2DMessagesNotInAllowedRange" - | "AmqpC2DRejectedMessagesNotInAllowedRange" - | "MqttC2DRejectedMessagesNotInAllowedRange" - | "HttpC2DRejectedMessagesNotInAllowedRange" - | "AmqpD2CMessagesNotInAllowedRange" - | "MqttD2CMessagesNotInAllowedRange" - | "HttpD2CMessagesNotInAllowedRange" - | "DirectMethodInvokesNotInAllowedRange" - | "FailedLocalLoginsNotInAllowedRange" - | "FileUploadsNotInAllowedRange" - | "QueuePurgesNotInAllowedRange" - | "TwinUpdatesNotInAllowedRange" - | "UnauthorizedOperationsNotInAllowedRange"; +export interface JitNetworkAccessPortRule { + number: number; + protocol: Protocol; + /** Mutually exclusive with the "allowedSourceAddressPrefixes" parameter. Should be an IP address or CIDR, for example "192.168.0.3" or "192.168.0.0/16". */ + allowedSourceAddressPrefix?: string; + /** Mutually exclusive with the "allowedSourceAddressPrefix" parameter. */ + allowedSourceAddressPrefixes?: string[]; + /** Maximum duration requests can be made for. In ISO 8601 duration format. Minimum 5 minutes, maximum 1 day */ + maxRequestAccessDuration: string; +} + +export interface JitNetworkAccessRequest { + virtualMachines: JitNetworkAccessRequestVirtualMachine[]; + /** The start time of the request in UTC */ + startTimeUtc: Date; + /** The identity of the person who made the request */ + requestor: string; + /** The justification for making the initiate request */ + justification?: string; +} + +export interface JitNetworkAccessRequestVirtualMachine { + /** Resource ID of the virtual machine that is linked to this policy */ + id: string; + /** The ports that were opened for the virtual machine */ + ports: JitNetworkAccessRequestPort[]; +} + +export interface JitNetworkAccessRequestPort { + number: number; + /** Mutually exclusive with the "allowedSourceAddressPrefixes" parameter. Should be an IP address or CIDR, for example "192.168.0.3" or "192.168.0.0/16". */ + allowedSourceAddressPrefix?: string; + /** Mutually exclusive with the "allowedSourceAddressPrefix" parameter. */ + allowedSourceAddressPrefixes?: string[]; + /** The date & time at which the request ends in UTC */ + endTimeUtc: Date; + /** The status of the port */ + status: Status; + /** A description of why the `status` has its value */ + statusReason: StatusReason; + /** The port which is mapped to this port's `number` in the Azure Firewall, if applicable */ + mappedPort?: number; +} + +export interface JitNetworkAccessPolicyInitiateRequest { + /** A list of virtual machines & ports to open access for */ + virtualMachines: JitNetworkAccessPolicyInitiateVirtualMachine[]; + /** The justification for making the initiate request */ + justification?: string; +} + +export interface JitNetworkAccessPolicyInitiateVirtualMachine { + /** Resource ID of the virtual machine that is linked to this policy */ + id: string; + /** The ports to open for the resource with the `id` */ + ports: JitNetworkAccessPolicyInitiatePort[]; +} + +export interface JitNetworkAccessPolicyInitiatePort { + number: number; + /** Source of the allowed traffic. If omitted, the request will be for the source IP address of the initiate request. */ + allowedSourceAddressPrefix?: string; + /** The time to close the request in UTC */ + endTimeUtc: Date; +} + +/** List of secure scores */ +export interface SecureScoresList { /** - * The display name of the custom alert. + * Collection of secure scores in this page * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly displayName?: string; + readonly value?: SecureScoreItem[]; /** - * The description of the custom alert. + * The URI to fetch the next page. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly description?: string; - /** Status of the custom alert. */ - isEnabled: boolean; + readonly nextLink?: string; } -/** List of Security analytics of your IoT Security solution */ -export interface IoTSecuritySolutionAnalyticsModelList { - /** List of Security analytics of your IoT Security solution */ - value: IoTSecuritySolutionAnalyticsModel[]; +/** List of security controls */ +export interface SecureScoreControlList { /** - * When there is too much alert data for one page, use this URI to fetch the next page. + * Collection of security controls in this page + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly value?: SecureScoreControlDetails[]; + /** + * The URI to fetch the next page. * NOTE: This property will not be serialized. It can only be populated by the server. */ readonly nextLink?: string; } -/** IoT Security solution analytics severity metrics. */ -export interface IoTSeverityMetrics { - /** Count of high severity alerts/recommendations. */ - high?: number; - /** Count of medium severity alerts/recommendations. */ - medium?: number; - /** Count of low severity alerts/recommendations. */ - low?: number; +/** The type of the security control (For example, BuiltIn) */ +export interface SecureScoreControlDefinitionSource { + /** The type of security control (for example, BuiltIn) */ + sourceType?: ControlType; } -export interface IoTSecuritySolutionAnalyticsModelPropertiesDevicesMetricsItem { - /** Aggregation of IoT Security solution device alert metrics by date. */ - date?: Date; - /** Device alert count by severity. */ - devicesMetrics?: IoTSeverityMetrics; +/** Describes an Azure resource with kind */ +export interface AzureResourceLink { + /** + * Azure resource Id + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly id?: string; } -/** Statistical information about the number of alerts per device during last set number of days. */ -export interface IoTSecurityAlertedDevice { +/** List of security controls definition */ +export interface SecureScoreControlDefinitionList { /** - * Device identifier. + * Collection of security controls definition in this page * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly deviceId?: string; + readonly value?: SecureScoreControlDefinitionItem[]; /** - * Number of alerts raised for this device. + * The URI to fetch the next page. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly alertsCount?: number; + readonly nextLink?: string; } -/** Statistical information about the number of alerts per alert type during last set number of days */ -export interface IoTSecurityDeviceAlert { +export interface SecuritySolutionList { + value?: SecuritySolution[]; /** - * Display name of the alert + * The URI to fetch the next page. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly alertDisplayName?: string; + readonly nextLink?: string; +} + +export interface SecuritySolutionsReferenceDataList { + value?: SecuritySolutionsReferenceData[]; +} + +/** List of server vulnerability assessments */ +export interface ServerVulnerabilityAssessmentsList { + value?: ServerVulnerabilityAssessment[]; +} + +export interface TopologyList { + /** NOTE: This property will not be serialized. It can only be populated by the server. */ + readonly value?: TopologyResource[]; /** - * Assessed Alert severity. + * The URI to fetch the next page. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly reportedSeverity?: ReportedSeverity; + readonly nextLink?: string; +} + +export interface TopologySingleResource { /** - * Number of alerts raised for this alert type. + * Azure resource id * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly alertsCount?: number; -} - -/** Statistical information about the number of recommendations per device, per recommendation type. */ -export interface IoTSecurityDeviceRecommendation { + readonly resourceId?: string; /** - * Display name of the recommendation. + * The security severity of the resource * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly recommendationDisplayName?: string; + readonly severity?: string; /** - * Assessed recommendation severity. + * Indicates if the resource has security recommendations * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly reportedSeverity?: ReportedSeverity; + readonly recommendationsExist?: boolean; /** - * Number of devices with this recommendation. + * Indicates the resource connectivity level to the Internet (InternetFacing, Internal ,etc.) * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly devicesCount?: number; -} - -/** List of IoT Security solution aggregated alert data. */ -export interface IoTSecurityAggregatedAlertList { - /** List of aggregated alerts data. */ - value: IoTSecurityAggregatedAlert[]; + readonly networkZones?: string; /** - * When there is too much alert data for one page, use this URI to fetch the next page. + * Score of the resource based on its security severity * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly nextLink?: string; -} - -export interface IoTSecurityAggregatedAlertPropertiesTopDevicesListItem { + readonly topologyScore?: number; /** - * Name of the device. + * The location of this resource * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly deviceId?: string; + readonly location?: string; /** - * Number of alerts raised for this device. + * Azure resources connected to this resource which are in higher level in the topology view * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly alertsCount?: number; + readonly parents?: TopologySingleResourceParent[]; /** - * Most recent time this alert was raised for this device, on this day. + * Azure resources connected to this resource which are in lower level in the topology view * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly lastOccurrence?: string; + readonly children?: TopologySingleResourceChild[]; } -/** A container holding only the Tags for a resource, allowing the user to update the tags. */ -export interface TagsResource { - /** Resource tags */ - tags?: { [propertyName: string]: string }; +export interface TopologySingleResourceParent { + /** + * Azure resource id which serves as parent resource in topology view + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly resourceId?: string; } -/** List of IoT Security solution aggregated recommendations. */ -export interface IoTSecurityAggregatedRecommendationList { - /** List of aggregated recommendations data. */ - value: IoTSecurityAggregatedRecommendation[]; +export interface TopologySingleResourceChild { /** - * When there is too much alert data for one page, use this URI to fetch the next page. + * Azure resource id which serves as child resource in topology view * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly nextLink?: string; + readonly resourceId?: string; } -/** List of IoT Security solutions. */ -export interface IoTSecuritySolutionsList { - /** List of IoT Security solutions */ - value: IoTSecuritySolutionModel[]; +/** List of security assessment metadata */ +export interface SecurityAssessmentMetadataResponseList { + /** NOTE: This property will not be serialized. It can only be populated by the server. */ + readonly value?: SecurityAssessmentMetadataResponse[]; /** * The URI to fetch the next page. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -2117,75 +2032,57 @@ export interface IoTSecuritySolutionsList { readonly nextLink?: string; } -/** Properties of the IoT Security solution's user defined resources. */ -export interface UserDefinedResourcesProperties { - /** Azure Resource Graph query which represents the security solution's user defined resources. Required to start with "where type != "Microsoft.Devices/IotHubs"" */ - query: string | null; - /** List of Azure subscription ids on which the user defined resources query should be executed. */ - querySubscriptions: string[] | null; -} - -/** The type of IoT Security recommendation. */ -export interface RecommendationConfigurationProperties { - /** The type of IoT Security recommendation. */ - recommendationType: RecommendationType; - /** NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly name?: string; - /** Recommendation status. When the recommendation status is disabled recommendations are not generated. */ - status: RecommendationConfigStatus; -} - -/** Properties of the additional workspaces. */ -export interface AdditionalWorkspacesProperties { - /** Workspace resource id */ - workspace?: string; - /** Workspace type. */ - type?: AdditionalWorkspaceType; - /** List of data types sent to workspace */ - dataTypes?: AdditionalWorkspaceDataType[]; -} - -/** Response for ListAdaptiveNetworkHardenings API service call */ -export interface AdaptiveNetworkHardeningsList { - /** A list of Adaptive Network Hardenings resources */ - value?: AdaptiveNetworkHardening[]; - /** The URL to get the next set of results */ - nextLink?: string; -} - -/** Describes remote addresses that is recommended to communicate with the Azure resource on some (Protocol, Port, Direction). All other remote addresses are recommended to be blocked */ -export interface Rule { - /** The name of the rule */ - name?: string; - /** The rule's direction */ - direction?: Direction; - /** The rule's destination port */ - destinationPort?: number; - /** The rule's transport protocols */ - protocols?: TransportProtocol[]; - /** The remote IP addresses that should be able to communicate with the Azure resource on the rule's destination port and protocol */ - ipAddresses?: string[]; +export interface SecurityAssessmentMetadataPropertiesResponsePublishDates { + ga?: string; + public: string; } -/** Describes the Network Security Groups effective on a network interface */ -export interface EffectiveNetworkSecurityGroups { - /** The Azure resource ID of the network interface */ - networkInterface?: string; - /** The Network Security Groups effective on the network interface */ - networkSecurityGroups?: string[]; +/** Describes properties of an assessment metadata. */ +export interface SecurityAssessmentMetadataProperties { + /** User friendly display name of the assessment */ + displayName: string; + /** + * Azure resource ID of the policy definition that turns this assessment calculation on + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly policyDefinitionId?: string; + /** Human readable description of the assessment */ + description?: string; + /** Human readable description of what you should do to mitigate this security issue */ + remediationDescription?: string; + categories?: Categories[]; + /** The severity level of the assessment */ + severity: Severity; + /** The user impact of the assessment */ + userImpact?: UserImpact; + /** The implementation effort required to remediate this assessment */ + implementationEffort?: ImplementationEffort; + threats?: Threats[]; + /** True if this assessment is in preview release status */ + preview?: boolean; + /** BuiltIn if the assessment based on built-in Azure Policy definition, Custom if the assessment based on custom Azure Policy definition */ + assessmentType: AssessmentType; + /** Describes the partner that created the assessment */ + partnerData?: SecurityAssessmentMetadataPartnerData; } -export interface AdaptiveNetworkHardeningEnforceRequest { - /** The rules to enforce */ - rules: Rule[]; - /** The Azure resource IDs of the effective network security groups that will be updated with the created security rules from the Adaptive Network Hardening rules */ - networkSecurityGroups: string[]; +/** Describes the partner that created the assessment */ +export interface SecurityAssessmentMetadataPartnerData { + /** Name of the company of the partner */ + partnerName: string; + /** Name of the product of the partner that created the assessment */ + productName?: string; + /** Secret to authenticate the partner and verify it created the assessment - write only */ + secret: string; } -/** List of all possible traffic between Azure resources */ -export interface AllowedConnectionsList { - /** NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: AllowedConnectionsResource[]; +/** Page of a security assessments list */ +export interface SecurityAssessmentList { + /** + * Collection of security assessments in this page + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly value?: SecurityAssessmentResponse[]; /** * The URI to fetch the next page. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -2193,132 +2090,112 @@ export interface AllowedConnectionsList { readonly nextLink?: string; } -/** Describes the allowed inbound and outbound traffic of an Azure resource */ -export interface ConnectableResource { - /** - * The Azure resource id - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly id?: string; +/** The result of the assessment */ +export interface AssessmentStatus { + /** Programmatic code for the status of the assessment */ + code: AssessmentStatusCode; + /** Programmatic code for the cause of the assessment status */ + cause?: string; + /** Human readable description of the assessment status */ + description?: string; +} + +/** Describes properties of an assessment. */ +export interface SecurityAssessmentPropertiesBase { + /** Details of the resource that was assessed */ + resourceDetails: ResourceDetailsUnion; /** - * The list of Azure resources that the resource has inbound allowed connection from + * User friendly display name of the assessment * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly inboundConnectedResources?: ConnectedResource[]; + readonly displayName?: string; + /** Additional data regarding the assessment */ + additionalData?: { [propertyName: string]: string }; /** - * The list of Azure resources that the resource has outbound allowed connection to + * Links relevant to the assessment * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly outboundConnectedResources?: ConnectedResource[]; + readonly links?: AssessmentLinks; + /** Describes properties of an assessment metadata. */ + metadata?: SecurityAssessmentMetadataProperties; + /** Data regarding 3rd party partner integration */ + partnersData?: SecurityAssessmentPartnerData; } -/** Describes properties of a connected resource */ -export interface ConnectedResource { +/** Links relevant to the assessment */ +export interface AssessmentLinks { /** - * The Azure resource id of the connected resource + * Link to assessment in Azure Portal * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly connectedResourceId?: string; + readonly azurePortalUri?: string; +} + +/** Data regarding 3rd party partner integration */ +export interface SecurityAssessmentPartnerData { + /** Name of the company of the partner */ + partnerName: string; + /** secret to authenticate the partner - write only */ + secret: string; +} + +/** List of security alerts */ +export interface AlertList { + /** describes security alert properties. */ + value?: Alert[]; /** - * The allowed tcp ports + * The URI to fetch the next page. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly tcpPorts?: string; + readonly nextLink?: string; +} + +/** A resource identifier for an alert which can be used to direct the alert to the right product exposure group (tenant, workspace, subscription etc.). */ +export interface ResourceIdentifier { + /** Polymorphic discriminator, which specifies the different types this object can be */ + type: "AzureResource" | "LogAnalytics"; +} + +/** Changing set of properties depending on the entity type. */ +export interface AlertEntity { + /** Describes unknown properties. The value of an unknown property can be of "any" type. */ + [property: string]: any; /** - * The allowed udp ports + * Type of entity * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly udpPorts?: string; + readonly type?: string; } -/** Describes an Azure resource with location */ -export interface Location { +/** Changing set of properties depending on the supportingEvidence type. */ +export interface AlertPropertiesSupportingEvidence { + /** Describes unknown properties. The value of an unknown property can be of "any" type. */ + [property: string]: any; /** - * Location where the resource is stored + * Type of the supportingEvidence * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly location?: string; + readonly type?: string; } -/** Represents a list of VM/server groups and set of rules that are Recommended by Microsoft Defender for Cloud to be allowed */ -export interface AdaptiveApplicationControlGroups { - value?: AdaptiveApplicationControlGroup[]; -} - -/** The protection mode of the collection/file types. Exe/Msi/Script are used for Windows, Executable is used for Linux. */ -export interface ProtectionMode { - /** The application control policy enforcement/protection mode of the machine group */ - exe?: EnforcementMode; - /** The application control policy enforcement/protection mode of the machine group */ - msi?: EnforcementMode; - /** The application control policy enforcement/protection mode of the machine group */ - script?: EnforcementMode; - /** The application control policy enforcement/protection mode of the machine group */ - executable?: EnforcementMode; -} - -/** Represents a summary of the alerts of the machine group */ -export interface AdaptiveApplicationControlIssueSummary { - /** An alert that machines within a group can have */ - issue?: AdaptiveApplicationControlIssue; - /** The number of machines in the group that have this alert */ - numberOfVms?: number; -} - -/** Represents a machine that is part of a machine group */ -export interface VmRecommendation { - /** The configuration status of the machines group or machine or rule */ - configurationStatus?: ConfigurationStatus; - /** The recommendation action of the machine or rule */ - recommendationAction?: RecommendationAction; - /** The full resource id of the machine */ - resourceId?: string; - /** The machine supportability of Enforce feature */ - enforcementSupport?: EnforcementSupport; -} - -/** Represents a path that is recommended to be allowed and its properties */ -export interface PathRecommendation { - /** The full path of the file, or an identifier of the application */ - path?: string; - /** The recommendation action of the machine or rule */ - action?: RecommendationAction; - /** The type of IoT Security recommendation. */ - type?: RecommendationType; - /** Represents the publisher information of a process/rule */ - publisherInfo?: PublisherInfo; - /** Whether the application is commonly run on the machine */ - common?: boolean; - userSids?: string[]; - usernames?: UserRecommendation[]; - /** The type of the file (for Linux files - Executable is used) */ - fileType?: FileType; - /** The configuration status of the machines group or machine or rule */ - configurationStatus?: ConfigurationStatus; -} - -/** Represents the publisher information of a process/rule */ -export interface PublisherInfo { - /** The Subject field of the x.509 certificate used to sign the code, using the following fields - O = Organization, L = Locality, S = State or Province, and C = Country */ - publisherName?: string; - /** The product name taken from the file's version resource */ - productName?: string; - /** The "OriginalName" field taken from the file's version resource */ - binaryName?: string; - /** The binary file version taken from the file's version resource */ - version?: string; +/** Alert Simulator request body. */ +export interface AlertSimulatorRequestBody { + /** Alert Simulator request body data. */ + properties?: AlertSimulatorRequestPropertiesUnion; } -/** Represents a user that is recommended to be allowed for a certain rule */ -export interface UserRecommendation { - /** Represents a user that is recommended to be allowed for a certain rule */ - username?: string; - /** The recommendation action of the machine or rule */ - recommendationAction?: RecommendationAction; +/** Describes properties of an alert simulation request */ +export interface AlertSimulatorRequestProperties { + /** Polymorphic discriminator, which specifies the different types this object can be */ + kind: "Bundles"; + /** Describes unknown properties. The value of an unknown property can be of "any" type. */ + [property: string]: any; } -export interface DiscoveredSecuritySolutionList { - value?: DiscoveredSecuritySolution[]; +/** Subscription settings list. */ +export interface SettingsList { + /** The settings list. */ + value?: SettingUnion[]; /** * The URI to fetch the next page. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -2326,23 +2203,51 @@ export interface DiscoveredSecuritySolutionList { readonly nextLink?: string; } -export interface ExternalSecuritySolutionList { - value?: ExternalSecuritySolution[]; +/** A page of a server vulnerability assessments settings list */ +export interface ServerVulnerabilityAssessmentsSettingsList { /** - * The URI to fetch the next page. + * 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 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; } -/** Describes an Azure resource with kind */ -export interface ExternalSecuritySolutionKindAutoGenerated { - /** The kind of the external solution */ - kind?: ExternalSecuritySolutionKind; +/** Common fields that are returned in the response for all Azure Resource Manager resources */ +export interface ResourceAutoGenerated { + /** + * Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + 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; + /** + * 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; } -export interface JitNetworkAccessPoliciesList { - value?: JitNetworkAccessPolicy[]; +/** Page of a list of API collections as represented by Microsoft Defender for APIs. */ +export interface ApiCollectionList { + /** + * API collections in this page. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly value?: ApiCollection[]; /** * The URI to fetch the next page. * NOTE: This property will not be serialized. It can only be populated by the server. @@ -2350,492 +2255,817 @@ export interface JitNetworkAccessPoliciesList { readonly nextLink?: string; } -export interface JitNetworkAccessPolicyVirtualMachine { - /** Resource ID of the virtual machine that is linked to this policy */ - id: string; - /** Port configurations for the virtual machine */ - ports: JitNetworkAccessPortRule[]; - /** Public IP address of the Azure Firewall that is linked to this policy, if applicable */ - publicIpAddress?: string; +/** A plan's extension properties */ +export interface Extension { + /** The extension name. Supported values are:

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

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

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

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

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

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

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

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

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

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

*/ + name: string; + /** Indicates whether the extension is enabled. */ + isEnabled: IsEnabled; + /** Property values associated with the extension. */ + additionalExtensionProperties?: { [propertyName: string]: any }; + /** + * Optional. A status describing the success/failure of the extension's enablement/disablement operation. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly operationStatus?: OperationStatusAutoGenerated; } -export interface JitNetworkAccessPortRule { - number: number; - protocol: Protocol; - /** Mutually exclusive with the "allowedSourceAddressPrefixes" parameter. Should be an IP address or CIDR, for example "192.168.0.3" or "192.168.0.0/16". */ - allowedSourceAddressPrefix?: string; - /** Mutually exclusive with the "allowedSourceAddressPrefix" parameter. */ - allowedSourceAddressPrefixes?: string[]; - /** Maximum duration requests can be made for. In ISO 8601 duration format. Minimum 5 minutes, maximum 1 day */ - maxRequestAccessDuration: string; +/** A status describing the success/failure of the extension's enablement/disablement operation. */ +export interface OperationStatusAutoGenerated { + /** The operation status code. */ + code?: Code; + /** Additional information regarding the success/failure of the operation. */ + message?: string; } -export interface JitNetworkAccessRequest { - virtualMachines: JitNetworkAccessRequestVirtualMachine[]; - /** The start time of the request in UTC */ - startTimeUtc: Date; - /** The identity of the person who made the request */ - requestor: string; - /** The justification for making the initiate request */ - justification?: string; +/** List of pricing configurations response. */ +export interface PricingList { + /** List of pricing configurations */ + value: Pricing[]; } -export interface JitNetworkAccessRequestVirtualMachine { - /** Resource ID of the virtual machine that is linked to this policy */ - id: string; - /** The ports that were opened for the virtual machine */ - ports: JitNetworkAccessRequestPort[]; +/** Page of a Standard list */ +export interface SecurityStandardList { + /** + * Collection of standards in this page + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly value: SecurityStandard[]; + /** + * The URI to fetch the next page + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly nextLink?: string; } -export interface JitNetworkAccessRequestPort { - number: number; - /** Mutually exclusive with the "allowedSourceAddressPrefixes" parameter. Should be an IP address or CIDR, for example "192.168.0.3" or "192.168.0.0/16". */ - allowedSourceAddressPrefix?: string; - /** Mutually exclusive with the "allowedSourceAddressPrefix" parameter. */ - allowedSourceAddressPrefixes?: string[]; - /** The date & time at which the request ends in UTC */ - endTimeUtc: Date; - /** The status of the port */ - status: Status; - /** A description of why the `status` has its value */ - statusReason: StatusReason; - /** The port which is mapped to this port's `number` in the Azure Firewall, if applicable */ - mappedPort?: number; +/** Describes properties of an assessment as related to the standard */ +export interface PartialAssessmentProperties { + /** The assessment key */ + assessmentKey?: string; } -export interface JitNetworkAccessPolicyInitiateRequest { - /** A list of virtual machines & ports to open access for */ - virtualMachines: JitNetworkAccessPolicyInitiateVirtualMachine[]; - /** The justification for making the initiate request */ - justification?: string; +/** The standard metadata */ +export interface StandardMetadata { + /** + * Standard Created by object id (GUID) + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly createdBy?: string; + /** + * Standard creation date + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly createdOn?: Date; + /** + * Standard last updated by object id (GUID) + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly lastUpdatedBy?: string; + /** + * Standard last update date + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly lastUpdatedOn?: Date; } -export interface JitNetworkAccessPolicyInitiateVirtualMachine { - /** Resource ID of the virtual machine that is linked to this policy */ - id: string; - /** The ports to open for the resource with the `id` */ - ports: JitNetworkAccessPolicyInitiatePort[]; +/** Describe the properties of a of a standard assignments object reference */ +export interface AssignedStandardItem { + /** Full resourceId of the Microsoft.Security/standard object */ + id?: string; } -export interface JitNetworkAccessPolicyInitiatePort { - number: number; - /** Source of the allowed traffic. If omitted, the request will be for the source IP address of the initiate request. */ - allowedSourceAddressPrefix?: string; - /** The time to close the request in UTC */ - endTimeUtc: Date; +/** Additional data about assignment that has Exempt effect */ +export interface StandardAssignmentPropertiesExemptionData { + /** Exemption category of this assignment */ + exemptionCategory?: ExemptionCategory; + /** Component item with key as applied to this standard assignment over the given scope */ + assignedAssessment?: AssignedAssessmentItem; } -/** List of secure scores */ -export interface SecureScoresList { +/** Describe the properties of a security assessment object reference (by key) */ +export interface AssignedAssessmentItem { + /** Unique key to a security assessment object */ + assessmentKey?: string; +} + +/** Additional data about assignment that has Attest effect */ +export interface StandardAssignmentPropertiesAttestationData { + /** Attest category of this assignment */ + complianceState?: AttestationComplianceState; + /** Component item with key as applied to this standard assignment over the given scope */ + assignedAssessment?: AssignedAssessmentItem; + /** + * Attestation compliance date + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly complianceDate?: Date; + /** Array of links to attestation evidence */ + evidence?: AttestationEvidence[]; +} + +/** Describe the properties of a assignment attestation */ +export interface AttestationEvidence { + /** The description of the evidence */ + description?: string; + /** The source url of the evidence */ + sourceUrl?: string; +} + +/** The standard assignment metadata */ +export interface StandardAssignmentMetadata { + /** + * Standard assignment Created by object id (GUID) + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly createdBy?: string; + /** + * Standard assignment creation date + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly createdOn?: Date; + /** + * Standard assignment last updated by object id (GUID) + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly lastUpdatedBy?: string; + /** + * Standard assignment last update date + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly lastUpdatedOn?: Date; +} + +/** Page of a standard assignment list */ +export interface StandardAssignmentsList { + /** + * Collection of standardAssignments in this page + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly value: StandardAssignment[]; + /** + * The URI to fetch the next page + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly nextLink?: string; +} + +/** A list of Custom Recommendations */ +export interface CustomRecommendationsList { + /** + * Collection of Custom Recommendations + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly value: CustomRecommendation[]; + /** The link used to get the next page of operations. */ + nextLink?: string; +} + +/** List of RP resources which supports pagination. */ +export interface AzureDevOpsOrgListResponse { + /** Gets or sets list of resources. */ + value?: AzureDevOpsOrg[]; + /** Gets or sets next link to scroll over the results. */ + nextLink?: string; +} + +/** Azure DevOps Organization properties. */ +export interface AzureDevOpsOrgProperties { + /** + * Gets the resource status message. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningStatusMessage?: string; + /** + * Gets the time when resource was last checked. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningStatusUpdateTimeUtc?: Date; + /** + * The provisioning state of the resource. + * + * Pending - Provisioning pending. + * Failed - Provisioning failed. + * Succeeded - Successful provisioning. + * Canceled - Provisioning canceled. + * PendingDeletion - Deletion pending. + * DeletionSuccess - Deletion successful. + * DeletionFailure - Deletion failure. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: DevOpsProvisioningState; + /** + * Details about resource onboarding status across all connectors. + * + * OnboardedByOtherConnector - this resource has already been onboarded to another connector. This is only applicable to top-level resources. + * Onboarded - this resource has already been onboarded by the specified connector. + * NotOnboarded - this resource has not been onboarded to any connector. + * NotApplicable - the onboarding state is not applicable to the current endpoint. + */ + onboardingState?: OnboardingState; + /** Configuration payload for PR Annotations. */ + actionableRemediation?: ActionableRemediation; +} + +/** Configuration payload for PR Annotations. */ +export interface ActionableRemediation { + /** + * ActionableRemediation Setting. + * None - the setting was never set. + * Enabled - ActionableRemediation is enabled. + * Disabled - ActionableRemediation is disabled. + */ + state?: ActionableRemediationState; + /** Gets or sets list of categories and severity levels. */ + categoryConfigurations?: CategoryConfiguration[]; + /** Repository branch configuration for PR Annotations. */ + branchConfiguration?: TargetBranchConfiguration; + /** + * Update Settings. + * + * Enabled - Resource should inherit configurations from parent. + * Disabled - Resource should not inherit configurations from parent. + */ + inheritFromParentState?: InheritFromParentState; +} + +/** Severity level per category configuration for PR Annotations. */ +export interface CategoryConfiguration { + /** Gets or sets minimum severity level for a given category. */ + minimumSeverityLevel?: string; + /** + * Rule categories. + * Code - code scanning results. + * Artifact scanning results. + * Dependencies scanning results. + * IaC results. + * Secrets scanning results. + * Container scanning results. + */ + category?: RuleCategory; +} + +/** Repository branch configuration for PR Annotations. */ +export interface TargetBranchConfiguration { + /** Gets or sets branches that should have annotations. */ + branchNames?: string[]; + /** + * Configuration of PR Annotations on default branch. + * + * Enabled - PR Annotations are enabled on the resource's default branch. + * Disabled - PR Annotations are disabled on the resource's default branch. + */ + annotateDefaultBranch?: AnnotateDefaultBranchState; +} + +/** Common fields that are returned in the response for all Azure Resource Manager resources */ +export interface 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; +} + +/** 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; +} + +/** 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[]; +} + +/** List of RP resources which supports pagination. */ +export interface AzureDevOpsProjectListResponse { + /** Gets or sets list of resources. */ + value?: AzureDevOpsProject[]; + /** Gets or sets next link to scroll over the results. */ + nextLink?: string; +} + +/** Azure DevOps Project properties. */ +export interface AzureDevOpsProjectProperties { + /** + * Gets the resource status message. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningStatusMessage?: string; + /** + * Gets the time when resource was last checked. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningStatusUpdateTimeUtc?: Date; + /** + * The provisioning state of the resource. + * + * Pending - Provisioning pending. + * Failed - Provisioning failed. + * Succeeded - Successful provisioning. + * Canceled - Provisioning canceled. + * PendingDeletion - Deletion pending. + * DeletionSuccess - Deletion successful. + * DeletionFailure - Deletion failure. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly provisioningState?: DevOpsProvisioningState; + /** Gets or sets parent Azure DevOps Organization name. */ + parentOrgName?: string; + /** + * Gets or sets Azure DevOps Project id. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly projectId?: string; + /** + * Details about resource onboarding status across all connectors. + * + * OnboardedByOtherConnector - this resource has already been onboarded to another connector. This is only applicable to top-level resources. + * Onboarded - this resource has already been onboarded by the specified connector. + * NotOnboarded - this resource has not been onboarded to any connector. + * NotApplicable - the onboarding state is not applicable to the current endpoint. + */ + onboardingState?: OnboardingState; + /** Configuration payload for PR Annotations. */ + actionableRemediation?: ActionableRemediation; +} + +/** 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; +} + +/** Azure DevOps Repository properties. */ +export interface AzureDevOpsRepositoryProperties { /** - * Collection of secure scores in this page + * Gets the resource status message. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: SecureScoreItem[]; + readonly provisioningStatusMessage?: string; /** - * The URI to fetch the next page. + * Gets the time when resource was last checked. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly nextLink?: string; -} - -/** List of security controls */ -export interface SecureScoreControlList { + readonly provisioningStatusUpdateTimeUtc?: Date; /** - * Collection of security controls in this page + * The provisioning state of the resource. + * + * Pending - Provisioning pending. + * Failed - Provisioning failed. + * Succeeded - Successful provisioning. + * Canceled - Provisioning canceled. + * PendingDeletion - Deletion pending. + * DeletionSuccess - Deletion successful. + * DeletionFailure - Deletion failure. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: SecureScoreControlDetails[]; + readonly provisioningState?: DevOpsProvisioningState; + /** Gets or sets parent Azure DevOps Organization name. */ + parentOrgName?: string; + /** Gets or sets parent Azure DevOps Project name. */ + parentProjectName?: string; /** - * The URI to fetch the next page. + * Gets or sets Azure DevOps Repository id. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly nextLink?: string; + 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 type of the security control (For example, BuiltIn) */ -export interface SecureScoreControlDefinitionSource { - /** The type of security control (for example, BuiltIn) */ - sourceType?: ControlType; +/** 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; } -/** Describes an Azure resource with kind */ -export interface AzureResourceLink { +/** DevOps Configuration properties. */ +export interface DevOpsConfigurationProperties { /** - * Azure resource Id + * Gets the resource status message. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly id?: string; -} - -/** List of security controls definition */ -export interface SecureScoreControlDefinitionList { + readonly provisioningStatusMessage?: string; /** - * Collection of security controls definition in this page + * Gets the time when resource was last checked. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: SecureScoreControlDefinitionItem[]; + readonly provisioningStatusUpdateTimeUtc?: Date; /** - * The URI to fetch the next page. + * The provisioning state of the resource. + * + * Pending - Provisioning pending. + * Failed - Provisioning failed. + * Succeeded - Successful provisioning. + * Canceled - Provisioning canceled. + * PendingDeletion - Deletion pending. + * DeletionSuccess - Deletion successful. + * DeletionFailure - Deletion failure. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly nextLink?: string; -} - -export interface SecuritySolutionList { - value?: SecuritySolution[]; + readonly provisioningState?: DevOpsProvisioningState; + /** Authorization payload. */ + authorization?: Authorization; + /** AutoDiscovery states. */ + autoDiscovery?: AutoDiscovery; /** - * The URI to fetch the next page. + * List of top-level inventory to select when AutoDiscovery is disabled. + * This field is ignored when AutoDiscovery is enabled. + */ + topLevelInventoryList?: string[]; + /** + * List of capabilities assigned to the DevOps configuration during the discovery process. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly nextLink?: string; -} - -export interface SecuritySolutionsReferenceDataList { - value?: SecuritySolutionsReferenceData[]; + readonly capabilities?: DevOpsCapability[]; + /** Details about Agentless configuration. */ + agentlessConfiguration?: AgentlessConfiguration; } -/** List of server vulnerability assessments */ -export interface ServerVulnerabilityAssessmentsList { - value?: ServerVulnerabilityAssessment[]; -} - -export interface TopologyList { - /** NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: TopologyResource[]; +/** Authorization payload. */ +export interface Authorization { /** - * The URI to fetch the next page. - * NOTE: This property will not be serialized. It can only be populated by the server. + * 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. */ - readonly nextLink?: string; + code?: string; } -export interface TopologySingleResource { +/** Details about DevOps capability. */ +export interface DevOpsCapability { /** - * Azure resource id + * Gets the name of the DevOps capability. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly resourceId?: string; + readonly name?: string; /** - * The security severity of the resource + * Gets the value of the DevOps capability. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly severity?: string; + readonly value?: string; +} + +/** Details about Agentless configuration. */ +export interface AgentlessConfiguration { + /** Agentless Enablement states. */ + agentlessEnabled?: AgentlessEnablement; + /** AutoDiscovery states. */ + agentlessAutoDiscovery?: AutoDiscovery; + /** Gets or sets the scanners for the connector. */ + scanners?: string[]; + /** Types for inventory list. */ + inventoryListType?: InventoryListKind; /** - * Indicates if the resource has security recommendations - * NOTE: This property will not be serialized. It can only be populated by the server. + * Gets or sets the inventory list for inclusion or exclusion from Agentless. + * Will be ignored if agentless auto-discovery is enabled. */ - readonly recommendationsExist?: boolean; + inventoryList?: InventoryList[]; +} + +/** Model for inventory to be included or excluded from Agentless. */ +export interface InventoryList { + /** Types for inventory kind. */ + inventoryKind?: InventoryKind; + /** Gets or sets the value for inventory type. */ + value?: string; +} + +/** List of RP resources which supports pagination. */ +export interface GitHubOwnerListResponse { + /** Gets or sets list of resources. */ + value?: GitHubOwner[]; + /** Gets or sets next link to scroll over the results. */ + nextLink?: string; +} + +/** GitHub Owner properties. */ +export interface GitHubOwnerProperties { /** - * Indicates the resource connectivity level to the Internet (InternetFacing, Internal ,etc.) + * Gets the resource status message. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly networkZones?: string; + readonly provisioningStatusMessage?: string; /** - * Score of the resource based on its security severity + * Gets the time when resource was last checked. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly topologyScore?: number; + readonly provisioningStatusUpdateTimeUtc?: Date; /** - * The location of this resource + * The provisioning state of the resource. + * + * Pending - Provisioning pending. + * Failed - Provisioning failed. + * Succeeded - Successful provisioning. + * Canceled - Provisioning canceled. + * PendingDeletion - Deletion pending. + * DeletionSuccess - Deletion successful. + * DeletionFailure - Deletion failure. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly location?: string; + readonly provisioningState?: DevOpsProvisioningState; /** - * Azure resources connected to this resource which are in higher level in the topology view + * Gets or sets GitHub Owner url. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly parents?: TopologySingleResourceParent[]; + readonly ownerUrl?: string; /** - * Azure resources connected to this resource which are in lower level in the topology view + * Gets or sets internal GitHub id. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly children?: TopologySingleResourceChild[]; -} - -export interface TopologySingleResourceParent { + readonly gitHubInternalId?: string; /** - * Azure resource id which serves as parent resource in topology view - * NOTE: This property will not be serialized. It can only be populated by the server. + * Details about resource onboarding status across all connectors. + * + * OnboardedByOtherConnector - this resource has already been onboarded to another connector. This is only applicable to top-level resources. + * Onboarded - this resource has already been onboarded by the specified connector. + * NotOnboarded - this resource has not been onboarded to any connector. + * NotApplicable - the onboarding state is not applicable to the current endpoint. */ - readonly resourceId?: string; + onboardingState?: OnboardingState; } -export interface TopologySingleResourceChild { - /** - * Azure resource id which serves as child resource in topology view - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly resourceId?: 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; } -/** List of security assessment metadata */ -export interface SecurityAssessmentMetadataResponseList { - /** NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: SecurityAssessmentMetadataResponse[]; +/** GitHub Repository properties. */ +export interface GitHubRepositoryProperties { /** - * The URI to fetch the next page. + * Gets the resource status message. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly nextLink?: string; -} - -export interface SecurityAssessmentMetadataPropertiesResponsePublishDates { - ga?: string; - public: string; -} - -/** Describes properties of an assessment metadata. */ -export interface SecurityAssessmentMetadataProperties { - /** User friendly display name of the assessment */ - displayName: string; + readonly provisioningStatusMessage?: string; /** - * Azure resource ID of the policy definition that turns this assessment calculation on + * Gets the time when resource was last checked. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly policyDefinitionId?: string; - /** Human readable description of the assessment */ - description?: string; - /** Human readable description of what you should do to mitigate this security issue */ - remediationDescription?: string; - categories?: Categories[]; - /** The severity level of the assessment */ - severity: Severity; - /** The user impact of the assessment */ - userImpact?: UserImpact; - /** The implementation effort required to remediate this assessment */ - implementationEffort?: ImplementationEffort; - threats?: Threats[]; - /** True if this assessment is in preview release status */ - preview?: boolean; - /** BuiltIn if the assessment based on built-in Azure Policy definition, Custom if the assessment based on custom Azure Policy definition */ - assessmentType: AssessmentType; - /** Describes the partner that created the assessment */ - partnerData?: SecurityAssessmentMetadataPartnerData; -} - -/** Describes the partner that created the assessment */ -export interface SecurityAssessmentMetadataPartnerData { - /** Name of the company of the partner */ - partnerName: string; - /** Name of the product of the partner that created the assessment */ - productName?: string; - /** Secret to authenticate the partner and verify it created the assessment - write only */ - secret: string; -} - -/** Page of a security assessments list */ -export interface SecurityAssessmentList { + readonly provisioningStatusUpdateTimeUtc?: Date; /** - * Collection of security assessments in this page + * The provisioning state of the resource. + * + * Pending - Provisioning pending. + * Failed - Provisioning failed. + * Succeeded - Successful provisioning. + * Canceled - Provisioning canceled. + * PendingDeletion - Deletion pending. + * DeletionSuccess - Deletion successful. + * DeletionFailure - Deletion failure. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly value?: SecurityAssessmentResponse[]; + readonly provisioningState?: DevOpsProvisioningState; /** - * The URI to fetch the next page. + * 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 nextLink?: string; -} - -/** The result of the assessment */ -export interface AssessmentStatus { - /** Programmatic code for the status of the assessment */ - code: AssessmentStatusCode; - /** Programmatic code for the cause of the assessment status */ - cause?: string; - /** Human readable description of the assessment status */ - description?: string; -} - -/** Describes properties of an assessment. */ -export interface SecurityAssessmentPropertiesBase { - /** Details of the resource that was assessed */ - resourceDetails: ResourceDetailsUnion; + readonly repoId?: string; /** - * User friendly display name of the assessment + * 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 displayName?: string; - /** Additional data regarding the assessment */ - additionalData?: { [propertyName: string]: string }; + readonly repoName?: string; /** - * Links relevant to the assessment + * 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 links?: AssessmentLinks; - /** Describes properties of an assessment metadata. */ - metadata?: SecurityAssessmentMetadataProperties; - /** Data regarding 3rd party partner integration */ - partnersData?: SecurityAssessmentPartnerData; -} - -/** Links relevant to the assessment */ -export interface AssessmentLinks { + readonly repoFullName?: string; /** - * Link to assessment in Azure Portal + * 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 azurePortalUri?: string; + readonly repoUrl?: string; + /** Gets or sets parent GitHub Owner name. */ + parentOwnerName?: string; } -/** Data regarding 3rd party partner integration */ -export interface SecurityAssessmentPartnerData { - /** Name of the company of the partner */ - partnerName: string; - /** secret to authenticate the partner - write only */ - secret: string; +/** 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; } -/** List of security alerts */ -export interface AlertList { - /** describes security alert properties. */ - value?: Alert[]; +/** GitLab Group properties. */ +export interface GitLabGroupProperties { /** - * The URI to fetch the next page. + * Gets the resource status message. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly nextLink?: string; -} - -/** A resource identifier for an alert which can be used to direct the alert to the right product exposure group (tenant, workspace, subscription etc.). */ -export interface ResourceIdentifier { - /** Polymorphic discriminator, which specifies the different types this object can be */ - type: "AzureResource" | "LogAnalytics"; -} - -/** Changing set of properties depending on the entity type. */ -export interface AlertEntity { - /** Describes unknown properties. The value of an unknown property can be of "any" type. */ - [property: string]: any; + readonly provisioningStatusMessage?: string; /** - * Type of entity + * Gets the time when resource was last checked. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly type?: string; -} - -/** Changing set of properties depending on the supportingEvidence type. */ -export interface AlertPropertiesSupportingEvidence { - /** Describes unknown properties. The value of an unknown property can be of "any" type. */ - [property: string]: any; + readonly provisioningStatusUpdateTimeUtc?: Date; /** - * Type of the supportingEvidence + * The provisioning state of the resource. + * + * Pending - Provisioning pending. + * Failed - Provisioning failed. + * Succeeded - Successful provisioning. + * Canceled - Provisioning canceled. + * PendingDeletion - Deletion pending. + * DeletionSuccess - Deletion successful. + * DeletionFailure - Deletion failure. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly type?: string; -} - -/** Alert Simulator request body. */ -export interface AlertSimulatorRequestBody { - /** Alert Simulator request body data. */ - properties?: AlertSimulatorRequestPropertiesUnion; -} - -/** Describes properties of an alert simulation request */ -export interface AlertSimulatorRequestProperties { - /** Polymorphic discriminator, which specifies the different types this object can be */ - kind: "Bundles"; - /** Describes unknown properties. The value of an unknown property can be of "any" type. */ - [property: string]: any; -} - -/** Subscription settings list. */ -export interface SettingsList { - /** The settings list. */ - value?: SettingUnion[]; + readonly provisioningState?: DevOpsProvisioningState; /** - * The URI to fetch the next page. + * 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 nextLink?: string; -} - -/** A page of a server vulnerability assessments settings list */ -export interface ServerVulnerabilityAssessmentsSettingsList { + readonly fullyQualifiedName?: string; /** - * A collection of server vulnerability assessments settings in this page + * 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 value?: ServerVulnerabilityAssessmentsSettingUnion[]; + readonly fullyQualifiedFriendlyName?: string; /** - * The URI to fetch the next page + * 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 nextLink?: string; + 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; } -/** Common fields that are returned in the response for all Azure Resource Manager resources */ -export interface ResourceAutoGenerated2 { +/** 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; +} + +/** GitLab Project properties. */ +export interface GitLabProjectProperties { /** - * Fully qualified resource ID for the resource. E.g. "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}" + * Gets the resource status message. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly id?: string; + readonly provisioningStatusMessage?: string; /** - * The name of the resource + * Gets the time when resource was last checked. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly name?: string; + readonly provisioningStatusUpdateTimeUtc?: Date; /** - * The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + * The provisioning state of the resource. + * + * Pending - Provisioning pending. + * Failed - Provisioning failed. + * Succeeded - Successful provisioning. + * Canceled - Provisioning canceled. + * PendingDeletion - Deletion pending. + * DeletionSuccess - Deletion successful. + * DeletionFailure - Deletion failure. * NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly type?: string; + readonly provisioningState?: DevOpsProvisioningState; /** - * Azure Resource Manager metadata containing createdBy and modifiedBy information. + * 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 systemData?: SystemData; -} - -/** Page of a list of API collections as represented by Microsoft Defender for APIs. */ -export interface ApiCollectionList { + readonly fullyQualifiedName?: string; /** - * API collections in this page. + * 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 value?: ApiCollection[]; + readonly fullyQualifiedFriendlyName?: string; /** - * The URI to fetch the next page. + * 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 nextLink?: string; -} - -/** A plan's extension properties */ -export interface Extension { + readonly fullyQualifiedParentGroupName?: string; /** - * The extension name. Supported values are:

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

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

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

**ContainerRegistriesVulnerabilityAssessments** - Provides vulnerability management for images stored in your container registries. - * Available for CloudPosture and Containers plans. + * Gets or sets the url of the GitLab Project. + * NOTE: This property will not be serialized. It can only be populated by the server. */ - name: string; - /** Indicates whether the extension is enabled. */ - isEnabled: IsEnabled; - /** Property values associated with the extension. */ - additionalExtensionProperties?: { [propertyName: string]: any }; + readonly url?: string; /** - * Optional. A status describing the success/failure of the extension's enablement/disablement operation. - * NOTE: This property will not be serialized. It can only be populated by the server. + * Details about resource onboarding status across all connectors. + * + * OnboardedByOtherConnector - this resource has already been onboarded to another connector. This is only applicable to top-level resources. + * Onboarded - this resource has already been onboarded by the specified connector. + * NotOnboarded - this resource has not been onboarded to any connector. + * NotApplicable - the onboarding state is not applicable to the current endpoint. */ - readonly operationStatus?: OperationStatusAutoGenerated; -} - -/** A status describing the success/failure of the extension's enablement/disablement operation. */ -export interface OperationStatusAutoGenerated { - /** The operation status code. */ - code?: Code; - /** Additional information regarding the success/failure of the operation. */ - message?: string; + onboardingState?: OnboardingState; } -/** List of pricing configurations response. */ -export interface PricingList { - /** List of pricing configurations */ - value: Pricing[]; +/** 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; } /** CVSS details */ @@ -2895,60 +3125,6 @@ export interface ApplicationCondition { operator?: ApplicationConditionOperator; } -/** AzureDevOps Org Inventory Configuration. */ -export interface AzureDevOpsOrganizationConfiguration { - /** AutoDiscovery states. */ - autoDiscovery?: AutoDiscovery; - /** - * AzureDevOps Project Inventory Configuration. - * Dictionary of AzureDevOps project name to desired project configuration. - * If AutoDiscovery is Enabled, this field should be empty or null. - */ - projectConfigs?: { [propertyName: string]: AzureDevOpsProjectConfiguration }; -} - -/** AzureDevOps Project Inventory Configuration. */ -export interface AzureDevOpsProjectConfiguration { - /** AutoDiscovery states. */ - autoDiscovery?: AutoDiscovery; - /** - * AzureDevOps Repository Inventory Configuration. - * Dictionary of AzureDevOps repository name to desired repository configuration. - * If AutoDiscovery is Enabled, this field should be null or empty. - */ - repositoryConfigs?: { [propertyName: string]: BaseResourceConfiguration }; -} - -/** Base Resource Inventory configuration changes. */ -export interface BaseResourceConfiguration { - /** Onboarding states. */ - desiredOnboardingState?: DesiredOnboardingState; -} - -/** GitHub Owner Inventory Configuration. */ -export interface GitHubOwnerConfiguration { - /** AutoDiscovery states. */ - autoDiscovery?: AutoDiscovery; - /** - * GitHub Repository Inventory Configuration. - * Dictionary of GitHub repository name to desired repository configuration. - * If AutoDiscovery is Enabled, this field should be null or empty. - */ - repositoryConfigs?: { [propertyName: string]: BaseResourceConfiguration }; -} - -/** GitLab Group Inventory Configuration. */ -export interface GitLabGroupConfiguration { - /** AutoDiscovery states. */ - autoDiscovery?: AutoDiscovery; - /** - * GitLab Project Inventory Configuration. - * Dictionary of GitLab fully-qualified project name to desired project configuration. - * If AutoDiscovery is Enabled, this field should be null or empty. - */ - projectConfigs?: { [propertyName: string]: BaseResourceConfiguration }; -} - /** The AWS organization data */ export interface AwsOrganizationalData { /** Polymorphic discriminator, which specifies the different types this object can be */ @@ -2979,6 +3155,12 @@ export interface GcpProjectDetails { readonly projectName?: string; } +/** The environment authentication details */ +export interface Authentication { + /** Polymorphic discriminator, which specifies the different types this object can be */ + authenticationType: "AccessToken"; +} + /** The native cloud connection configuration */ export interface CspmMonitorAwsOfferingNativeCloudConnection { /** The cloud role ARN in AWS for this feature */ @@ -2991,8 +3173,8 @@ export interface DefenderForContainersAwsOfferingKubernetesService { cloudRoleArn?: string; } -/** The kubernetes to scuba connection configuration */ -export interface DefenderForContainersAwsOfferingKubernetesScubaReader { +/** The kubernetes data collection connection configuration */ +export interface DefenderForContainersAwsOfferingKubernetesDataCollection { /** The cloud role ARN in AWS for this feature used for reading data */ cloudRoleArn?: string; } @@ -3009,18 +3191,6 @@ export interface DefenderForContainersAwsOfferingKinesisToS3 { cloudRoleArn?: string; } -/** The container vulnerability assessment configuration */ -export interface DefenderForContainersAwsOfferingContainerVulnerabilityAssessment { - /** The cloud role ARN in AWS for this feature */ - cloudRoleArn?: string; -} - -/** The container vulnerability assessment task configuration */ -export interface DefenderForContainersAwsOfferingContainerVulnerabilityAssessmentTask { - /** The cloud role ARN in AWS for this feature */ - cloudRoleArn?: string; -} - /** The Microsoft Defender container image assessment configuration */ export interface DefenderForContainersAwsOfferingMdcContainersImageAssessment { /** Is Microsoft Defender container image assessment enabled */ @@ -3037,6 +3207,22 @@ export interface DefenderForContainersAwsOfferingMdcContainersAgentlessDiscovery cloudRoleArn?: string; } +/** A VM scanning configuration for a security offering of a given environment */ +export interface VmScannersBase { + /** Is VM scanning enabled */ + enabled?: boolean; + /** Configuration for VM scanning */ + configuration?: VmScannersBaseConfiguration; +} + +/** Configuration for VM scanning */ +export interface VmScannersBaseConfiguration { + /** The scanning mode for the VM scan. */ + scanningMode?: ScanningMode; + /** Tags that indicates that a resource should not be scanned */ + exclusionTags?: { [propertyName: string]: string }; +} + /** The Defender for servers connection configuration */ export interface DefenderForServersAwsOfferingDefenderForServers { /** The cloud role ARN in AWS for this feature */ @@ -3044,17 +3230,15 @@ export interface DefenderForServersAwsOfferingDefenderForServers { } /** The ARC autoprovisioning configuration */ -export interface DefenderForServersAwsOfferingArcAutoProvisioning { +export interface ArcAutoProvisioning { /** Is arc auto provisioning enabled */ enabled?: boolean; - /** The cloud role ARN in AWS for this feature */ - cloudRoleArn?: string; - /** Configuration for servers Arc auto provisioning */ - configuration?: DefenderForServersAwsOfferingArcAutoProvisioningConfiguration; + /** Configuration for servers Arc auto provisioning for a given environment */ + configuration?: ArcAutoProvisioningConfiguration; } -/** Configuration for servers Arc auto provisioning */ -export interface DefenderForServersAwsOfferingArcAutoProvisioningConfiguration { +/** Configuration for servers Arc auto provisioning for a given environment */ +export interface ArcAutoProvisioningConfiguration { /** Optional HTTP proxy endpoint to use for the Arc agent */ proxy?: string; /** Optional Arc private link scope resource id to link the Arc agent */ @@ -3089,42 +3273,6 @@ export interface DefenderForServersAwsOfferingSubPlan { type?: SubPlan; } -/** The Microsoft Defender for Server VM scanning configuration */ -export interface DefenderForServersAwsOfferingVmScanners { - /** Is Microsoft Defender for Server VM scanning enabled */ - enabled?: boolean; - /** configuration for Microsoft Defender for Server VM scanning */ - configuration?: DefenderForServersAwsOfferingVmScannersConfiguration; -} - -/** configuration for Microsoft Defender for Server VM scanning */ -export interface DefenderForServersAwsOfferingVmScannersConfiguration { - /** The cloud role ARN in AWS for this feature */ - cloudRoleArn?: string; - /** The scanning mode for the VM scan. */ - scanningMode?: ScanningMode; - /** VM tags that indicates that VM should not be scanned */ - exclusionTags?: { [propertyName: string]: string }; -} - -/** The ARC autoprovisioning configuration */ -export interface DefenderFoDatabasesAwsOfferingArcAutoProvisioning { - /** Is arc auto provisioning enabled */ - enabled?: boolean; - /** The cloud role ARN in AWS for this feature */ - cloudRoleArn?: string; - /** Configuration for servers Arc auto provisioning */ - configuration?: DefenderFoDatabasesAwsOfferingArcAutoProvisioningConfiguration; -} - -/** Configuration for servers Arc auto provisioning */ -export interface DefenderFoDatabasesAwsOfferingArcAutoProvisioningConfiguration { - /** Optional http proxy endpoint to use for the Arc agent */ - proxy?: string; - /** Optional Arc private link scope resource id to link the Arc agent */ - privateLinkScope?: string; -} - /** The RDS configuration */ export interface DefenderFoDatabasesAwsOfferingRds { /** Is RDS protection enabled */ @@ -3141,12 +3289,6 @@ export interface DefenderFoDatabasesAwsOfferingDatabasesDspm { cloudRoleArn?: string; } -/** The native cloud connection configuration */ -export interface InformationProtectionAwsOfferingInformationProtection { - /** The cloud role ARN in AWS for this feature */ - cloudRoleArn?: string; -} - /** The native cloud connection configuration */ export interface CspmMonitorGcpOfferingNativeCloudConnection { /** The GCP workload identity provider id for the offering */ @@ -3163,22 +3305,6 @@ export interface DefenderForServersGcpOfferingDefenderForServers { serviceAccountEmailAddress?: string; } -/** The ARC autoprovisioning configuration */ -export interface DefenderForServersGcpOfferingArcAutoProvisioning { - /** Is arc auto provisioning enabled */ - enabled?: boolean; - /** Configuration for servers Arc auto provisioning */ - configuration?: DefenderForServersGcpOfferingArcAutoProvisioningConfiguration; -} - -/** Configuration for servers Arc auto provisioning */ -export interface DefenderForServersGcpOfferingArcAutoProvisioningConfiguration { - /** Optional HTTP proxy endpoint to use for the Arc agent */ - proxy?: string; - /** Optional Arc private link scope resource id to link the Arc agent */ - privateLinkScope?: string; -} - /** The Vulnerability Assessment autoprovisioning configuration */ export interface DefenderForServersGcpOfferingVaAutoProvisioning { /** Is Vulnerability Assessment auto provisioning enabled */ @@ -3207,38 +3333,6 @@ export interface DefenderForServersGcpOfferingSubPlan { type?: SubPlan; } -/** The Microsoft Defender for Server VM scanning configuration */ -export interface DefenderForServersGcpOfferingVmScanners { - /** Is Microsoft Defender for Server VM scanning enabled */ - enabled?: boolean; - /** configuration for Microsoft Defender for Server VM scanning */ - configuration?: DefenderForServersGcpOfferingVmScannersConfiguration; -} - -/** configuration for Microsoft Defender for Server VM scanning */ -export interface DefenderForServersGcpOfferingVmScannersConfiguration { - /** The scanning mode for the VM scan. */ - scanningMode?: ScanningMode; - /** VM tags that indicate that VM should not be scanned */ - exclusionTags?: { [propertyName: string]: string }; -} - -/** The ARC autoprovisioning configuration */ -export interface DefenderForDatabasesGcpOfferingArcAutoProvisioning { - /** Is arc auto provisioning enabled */ - enabled?: boolean; - /** Configuration for servers Arc auto provisioning */ - configuration?: DefenderForDatabasesGcpOfferingArcAutoProvisioningConfiguration; -} - -/** Configuration for servers Arc auto provisioning */ -export interface DefenderForDatabasesGcpOfferingArcAutoProvisioningConfiguration { - /** Optional http proxy endpoint to use for the Arc agent */ - proxy?: string; - /** Optional Arc private link scope resource id to link the Arc agent */ - privateLinkScope?: string; -} - /** The native cloud connection configuration */ export interface DefenderForDatabasesGcpOfferingDefenderForDatabasesArcAutoProvisioning { /** The service account email address in GCP for this offering */ @@ -3283,24 +3377,6 @@ export interface DefenderForContainersGcpOfferingMdcContainersAgentlessDiscovery serviceAccountEmailAddress?: string; } -/** The Microsoft Defender for Server VM scanning configuration */ -export interface DefenderCspmAwsOfferingVmScanners { - /** Is Microsoft Defender for Server VM scanning enabled */ - enabled?: boolean; - /** configuration for Microsoft Defender for Server VM scanning */ - configuration?: DefenderCspmAwsOfferingVmScannersConfiguration; -} - -/** configuration for Microsoft Defender for Server VM scanning */ -export interface DefenderCspmAwsOfferingVmScannersConfiguration { - /** The cloud role ARN in AWS for this feature */ - cloudRoleArn?: string; - /** The scanning mode for the VM scan. */ - scanningMode?: ScanningMode; - /** VM tags that indicates that VM should not be scanned */ - exclusionTags?: { [propertyName: string]: string }; -} - /** The Microsoft Defender Data Sensitivity discovery configuration */ export interface DefenderCspmAwsOfferingDataSensitivityDiscovery { /** Is Microsoft Defender Data Sensitivity discovery enabled */ @@ -3317,23 +3393,23 @@ export interface DefenderCspmAwsOfferingDatabasesDspm { cloudRoleArn?: string; } -/** Defenders CSPM Cloud infrastructure entitlement management (CIEM) offering configurations */ +/** Defenders CSPM Permissions Management offering configurations */ export interface DefenderCspmAwsOfferingCiem { - /** Defender CSPM CIEM discovery configuration */ + /** Defender CSPM Permissions Management discovery configuration */ ciemDiscovery?: DefenderCspmAwsOfferingCiemDiscovery; - /** Defender CSPM CIEM AWS OIDC (open id connect) configuration */ + /** AWS Defender CSPM Permissions Management OIDC (open id connect) connection configurations */ ciemOidc?: DefenderCspmAwsOfferingCiemOidc; } -/** Defender CSPM CIEM discovery configuration */ +/** Defender CSPM Permissions Management discovery configuration */ export interface DefenderCspmAwsOfferingCiemDiscovery { - /** The cloud role ARN in AWS for CIEM discovery */ + /** The cloud role ARN in AWS for Permissions Management discovery */ cloudRoleArn?: string; } -/** Defender CSPM CIEM AWS OIDC (open id connect) configuration */ +/** AWS Defender CSPM Permissions Management OIDC (open id connect) connection configurations */ export interface DefenderCspmAwsOfferingCiemOidc { - /** The cloud role ARN in AWS for CIEM oidc connection */ + /** The cloud role ARN in AWS for Permissions Management used for oidc connection */ cloudRoleArn?: string; /** the azure active directory app name used of authenticating against AWS */ azureActiveDirectoryAppName?: string; @@ -3355,32 +3431,16 @@ export interface DefenderCspmAwsOfferingMdcContainersAgentlessDiscoveryK8S { cloudRoleArn?: string; } -/** GCP Defenders CSPM Cloud infrastructure entitlement management (CIEM) discovery offering configurations */ +/** GCP Defenders CSPM Permissions Management OIDC (Open ID connect) connection configurations */ export interface DefenderCspmGcpOfferingCiemDiscovery { - /** The GCP workload identity provider id for CIEM discovery offering */ + /** The GCP workload identity provider id for Permissions Management offering */ workloadIdentityProviderId?: string; - /** The service account email address in GCP for CIEM discovery offering */ + /** The service account email address in GCP for Permissions Management offering */ serviceAccountEmailAddress?: string; /** the azure active directory app name used of authenticating against GCP workload identity federation */ azureActiveDirectoryAppName?: string; } -/** The Microsoft Defender for Server VM scanning configuration */ -export interface DefenderCspmGcpOfferingVmScanners { - /** Is Microsoft Defender for Server VM scanning enabled */ - enabled?: boolean; - /** configuration for Microsoft Defender for Server VM scanning */ - configuration?: DefenderCspmGcpOfferingVmScannersConfiguration; -} - -/** configuration for Microsoft Defender for Server VM scanning */ -export interface DefenderCspmGcpOfferingVmScannersConfiguration { - /** The scanning mode for the VM scan. */ - scanningMode?: ScanningMode; - /** VM tags that indicates that VM should not be scanned */ - exclusionTags?: { [propertyName: string]: string }; -} - /** The Microsoft Defender Data Sensitivity discovery configuration */ export interface DefenderCspmGcpOfferingDataSensitivityDiscovery { /** Is Microsoft Defender Data Sensitivity discovery enabled */ @@ -3411,6 +3471,12 @@ export interface DefenderCspmGcpOfferingMdcContainersAgentlessDiscoveryK8S { serviceAccountEmailAddress?: string; } +/** The Microsoft Defender Container image assessment configuration */ +export interface DefenderCspmJFrogOfferingMdcContainersImageAssessment { + /** Is Microsoft Defender container image assessment enabled */ + enabled?: boolean; +} + /** The solution properties (correspond to the solution kind) */ export interface ExternalSecuritySolutionProperties { /** Describes unknown properties. The value of an unknown property can be of "any" type. */ @@ -3452,6 +3518,60 @@ export interface SecureScoreControlScore { readonly percentage?: number; } +/** 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 ASC location of the subscription is in the "name" field */ export interface AscLocation extends Resource { /** An empty set of properties */ @@ -3556,14 +3676,6 @@ export interface AlertsSuppressionRule extends Resource { suppressionAlertsScope?: SuppressionAlertsScope; } -/** Describes an Azure tracked resource. */ -export interface TrackedResource - extends Resource, - AzureTrackedResourceLocation, - KindAutoGenerated, - ETag, - Tags {} - /** Regulatory compliance standard details and state */ export interface RegulatoryComplianceStandard extends Resource { /** Aggregative state based on the standard's supported controls states */ @@ -3701,27 +3813,13 @@ export interface SecuritySubAssessment extends Resource { /** Details of the sub-assessment */ additionalData?: AdditionalDataUnion; } - -/** The connector setting */ -export interface ConnectorSetting extends Resource { - /** Settings for hybrid compute management. These settings are relevant only for Arc autoProvision (Hybrid Compute). */ - hybridComputeSettings?: HybridComputeSettingsProperties; - /** Settings for authentication management, these settings are relevant only for the cloud connector. */ - authenticationDetails?: AuthenticationDetailsPropertiesUnion; -} - -/** Contact details and configurations for notifications coming from Microsoft Defender for Cloud. */ -export interface SecurityContact extends Resource { - /** List of email addresses which will get notifications from Microsoft Defender for Cloud by the configurations defined in this security contact. */ - emails?: string; - /** The security contact's phone number */ - phone?: string; - /** Indicates whether the security contact is enabled. */ - isEnabled?: boolean; - /** A collection of sources types which evaluate the email notification. */ - notificationsSources?: NotificationsSourceUnion[]; - /** Defines whether to send email notifications from Microsoft Defender for Cloud to persons with specific RBAC roles on the subscription. */ - notificationsByRole?: SecurityContactPropertiesNotificationsByRole; + +/** The connector setting */ +export interface ConnectorSetting extends Resource { + /** Settings for hybrid compute management. These settings are relevant only for Arc autoProvision (Hybrid Compute). */ + hybridComputeSettings?: HybridComputeSettingsProperties; + /** Settings for authentication management, these settings are relevant only for the cloud connector. */ + authenticationDetails?: AuthenticationDetailsPropertiesUnion; } /** Represents a software data */ @@ -3871,32 +3969,6 @@ export interface Application extends Resource { conditionSets?: Record[]; } -/** The Defender for Storage resource. */ -export interface DefenderForStorageSetting extends Resource { - /** Indicates whether Defender for Storage is enabled on this storage account. */ - isEnabledPropertiesIsEnabled?: boolean; - /** Indicates whether the settings defined for this storage account should override the settings defined for the subscription. */ - overrideSubscriptionLevelSettings?: boolean; - /** Indicates whether Sensitive Data Discovery should be enabled. */ - isEnabledPropertiesSensitiveDataDiscoveryIsEnabled?: boolean; - /** - * Upon failure or partial success. Additional data describing Sensitive Data Discovery enable/disable operation. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly operationStatusPropertiesSensitiveDataDiscoveryOperationStatus?: OperationStatus; - /** Optional. Resource id of an Event Grid Topic to send scan results to. */ - scanResultsEventGridTopicResourceId?: string; - /** - * Upon failure or partial success. Additional data describing Malware Scanning enable/disable operation. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly operationStatusPropertiesMalwareScanningOperationStatus?: OperationStatus; - /** Indicates whether On Upload malware scanning should be enabled. */ - isEnabledPropertiesMalwareScanningOnUploadIsEnabled?: boolean; - /** Defines the max GB to be scanned per Month. Set to -1 if no capping is needed. */ - capGBPerMonth?: number; -} - /** Security operator under a given subscription and pricing */ export interface SecurityOperator extends Resource { /** Identity for the resource. */ @@ -3944,6 +4016,34 @@ export interface HealthReport extends Resource { issues?: Issue[]; } +/** Describes an Azure tracked resource. */ +export interface TrackedResource + extends Resource, + AzureTrackedResourceLocation, + KindAutoGenerated, + ETag, + Tags {} + +/** Contact details and configurations for notifications coming from Microsoft Defender for Cloud. */ +export interface SecurityContact extends Resource { + /** List of email addresses which will get notifications from Microsoft Defender for Cloud by the configurations defined in this security contact. */ + emails?: string; + /** The security contact's phone number */ + phone?: string; + /** Indicates whether the security contact is enabled. */ + isEnabled?: boolean; + /** A collection of sources types which evaluate the email notification. */ + notificationsSources?: NotificationsSourceUnion[]; + /** Defines whether to send email notifications from Microsoft Defender for Cloud to persons with specific RBAC roles on the subscription. */ + notificationsByRole?: SecurityContactPropertiesNotificationsByRole; +} + +/** The Defender for Storage resource. */ +export interface DefenderForStorageSetting extends Resource { + /** Defender for Storage resource properties. */ + properties?: DefenderForStorageSettingProperties; +} + /** a compliance result */ export interface ComplianceResult extends Resource { /** @@ -4066,9 +4166,7 @@ export interface IoTSecurityAggregatedAlert extends Resource, TagsResource { } /** IoT Security solution recommendation information. */ -export interface IoTSecurityAggregatedRecommendation - extends Resource, - TagsResource { +export interface IoTSecurityAggregatedRecommendation extends Resource, TagsResource { /** Name of the recommendation. */ recommendationName?: string; /** @@ -4154,16 +4252,6 @@ export interface IoTSecuritySolutionModel extends Resource, TagsResource { additionalWorkspaces?: AdditionalWorkspacesProperties[]; } -/** The resource whose properties describes the Adaptive Network Hardening settings for some Azure resource */ -export interface AdaptiveNetworkHardening extends Resource { - /** The security rules which are recommended to be effective on the VM */ - rules?: Rule[]; - /** The UTC time on which the rules were calculated */ - rulesCalculationTime?: Date; - /** The Network Security Groups effective on the network interfaces of the protected resource */ - effectiveNetworkSecurityGroups?: EffectiveNetworkSecurityGroups[]; -} - /** The resource whose properties describes the allowed traffic between Azure resources */ export interface AllowedConnectionsResource extends Resource, Location { /** @@ -4178,32 +4266,6 @@ export interface AllowedConnectionsResource extends Resource, Location { readonly connectableResources?: ConnectableResource[]; } -export interface AdaptiveApplicationControlGroup extends Resource, Location { - /** The application control policy enforcement/protection mode of the machine group */ - enforcementMode?: EnforcementMode; - /** The protection mode of the collection/file types. Exe/Msi/Script are used for Windows, Executable is used for Linux. */ - protectionMode?: ProtectionMode; - /** - * The configuration status of the machines group or machine or rule - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly configurationStatus?: ConfigurationStatus; - /** - * The initial recommendation status of the machine group or machine - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly recommendationStatus?: RecommendationStatus; - /** NOTE: This property will not be serialized. It can only be populated by the server. */ - readonly issues?: AdaptiveApplicationControlIssueSummary[]; - /** - * The source type of the machine group - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly sourceSystem?: SourceSystem; - vmRecommendations?: VmRecommendation[]; - pathRecommendations?: PathRecommendation[]; -} - export interface DiscoveredSecuritySolution extends Resource, Location { /** The security family of the discovered solution */ securityFamily: SecurityFamily; @@ -4221,10 +4283,7 @@ export interface ExternalSecuritySolution ExternalSecuritySolutionKindAutoGenerated, Location {} -export interface JitNetworkAccessPolicy - extends Resource, - KindAutoGenerated, - Location { +export interface JitNetworkAccessPolicy extends Resource, KindAutoGenerated, Location { /** Configurations for Microsoft.Compute/virtualMachines resource type. */ virtualMachines: JitNetworkAccessPolicyVirtualMachine[]; requests?: JitNetworkAccessRequest[]; @@ -4710,6 +4769,77 @@ export interface Pricing extends Resource { readonly replacedBy?: string[]; } +/** Security Standard on a resource */ +export interface SecurityStandard extends Resource { + /** Display name of the standard, equivalent to the standardId */ + displayName?: string; + /** + * Standard type (Custom or Default or Compliance only currently) + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly standardType?: StandardType; + /** Description of the standard */ + description?: string; + /** List of assessment keys to apply to standard scope. */ + assessments?: PartialAssessmentProperties[]; + /** List of all standard supported clouds. */ + cloudProviders?: StandardSupportedCloud[]; + /** The policy set definition id associated with the standard. */ + policySetDefinitionId?: string; + /** The security standard metadata. */ + metadata?: StandardMetadata; +} + +/** Security Assignment on a resource group over a given scope */ +export interface StandardAssignment extends Resource { + /** Display name of the standardAssignment */ + displayName?: string; + /** Description of the standardAssignment */ + description?: string; + /** Standard item with key as applied to this standard assignment over the given scope */ + assignedStandard?: AssignedStandardItem; + /** Expected effect of this assignment (Audit/Exempt/Attest) */ + effect?: Effect; + /** Excluded scopes, filter out the descendants of the scope (on management scopes) */ + excludedScopes?: string[]; + /** Expiration date of this assignment as a full ISO date */ + expiresOn?: Date; + /** Additional data about assignment that has Exempt effect */ + exemptionData?: StandardAssignmentPropertiesExemptionData; + /** Additional data about assignment that has Attest effect */ + attestationData?: StandardAssignmentPropertiesAttestationData; + /** The standard assignment metadata. */ + metadata?: StandardAssignmentMetadata; +} + +/** Custom Recommendation */ +export interface CustomRecommendation extends Resource { + /** + * Azure Resource Manager metadata containing createdBy and modifiedBy information. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly systemData?: SystemData; + /** KQL query representing the Recommendation results required. */ + query?: string; + /** List of all standard supported clouds. */ + cloudProviders?: RecommendationSupportedClouds[]; + /** The severity to relate to the assessments generated by this Recommendation. */ + severity?: SeverityEnum; + /** The severity to relate to the assessments generated by this Recommendation. */ + securityIssue?: SecurityIssue; + /** The display name of the assessments generated by this Recommendation. */ + displayName?: string; + /** The description to relate to the assessments generated by this Recommendation. */ + description?: string; + /** The remediation description to relate to the assessments generated by this Recommendation. */ + remediationDescription?: string; + /** + * The assessment metadata key used when an assessment is generated for this Recommendation. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly assessmentKey?: string; +} + /** Security assessment metadata */ export interface SecurityAssessmentMetadata extends Resource { /** User friendly display name of the assessment */ @@ -4739,55 +4869,6 @@ export interface SecurityAssessmentMetadata extends Resource { partnerData?: SecurityAssessmentMetadataPartnerData; } -/** The logic app action that should be triggered. To learn more about Microsoft Defender for Cloud's Workflow Automation capabilities, visit https://aka.ms/ASCWorkflowAutomationLearnMore */ -export interface AutomationActionLogicApp extends AutomationAction { - /** Polymorphic discriminator, which specifies the different types this object can be */ - actionType: "LogicApp"; - /** The triggered Logic App Azure Resource ID. This can also reside on other subscriptions, given that you have permissions to trigger the Logic App */ - logicAppResourceId?: string; - /** The Logic App trigger URI endpoint (it will not be included in any response). */ - uri?: string; -} - -/** The target Event Hub to which event data will be exported. To learn more about Microsoft Defender for Cloud continuous export capabilities, visit https://aka.ms/ASCExportLearnMore */ -export interface AutomationActionEventHub extends AutomationAction { - /** Polymorphic discriminator, which specifies the different types this object can be */ - actionType: "EventHub"; - /** The target Event Hub Azure Resource ID. */ - eventHubResourceId?: string; - /** - * The target Event Hub SAS policy name. - * NOTE: This property will not be serialized. It can only be populated by the server. - */ - readonly sasPolicyName?: string; - /** The target Event Hub connection string (it will not be included in any response). */ - connectionString?: string; - /** Indicates whether the trusted service is enabled or not. */ - isTrustedServiceEnabled?: boolean; -} - -/** The�Log�Analytics�Workspace�to�which�event data will be exported. Security alerts data will reside in the 'SecurityAlert' table and the assessments data will reside in the 'SecurityRecommendation' table (under the 'Security'/'SecurityCenterFree' solutions). Note that in order to view the data in the workspace, the Security Center Log Analytics free/standard solution needs to be enabled on that workspace. To learn more about Microsoft Defender for Cloud continuous export capabilities, visit https://aka.ms/ASCExportLearnMore */ -export interface AutomationActionWorkspace extends AutomationAction { - /** Polymorphic discriminator, which specifies the different types this object can be */ - actionType: "Workspace"; - /** The fully qualified Log Analytics Workspace Azure Resource ID. */ - workspaceResourceId?: string; -} - -/** The update model of security automation resource. */ -export interface AutomationUpdateModel extends Tags { - /** The security automation description. */ - description?: string; - /** Indicates whether the security automation is enabled. */ - isEnabled?: boolean; - /** A collection of scopes on which the security automations logic is applied. Supported scopes are the subscription itself or a resource group under that subscription. The automation will only apply on defined scopes. */ - scopes?: AutomationScope[]; - /** A collection of the source event types which evaluate the security automation set of rules. */ - sources?: AutomationSource[]; - /** A collection of the actions which are triggered if all the configured rules evaluations, within at least one rule set, are true. */ - actions?: AutomationActionUnion[]; -} - /** Details of the Azure resource that was assessed */ export interface AzureResourceDetails extends ResourceDetails { /** Polymorphic discriminator, which specifies the different types this object can be */ @@ -4830,8 +4911,7 @@ export interface SqlServerVulnerabilityProperties extends AdditionalData { } /** Additional context fields for container registry Vulnerability assessment */ -export interface ContainerRegistryVulnerabilityProperties - extends AdditionalData { +export interface ContainerRegistryVulnerabilityProperties extends AdditionalData { /** Polymorphic discriminator, which specifies the different types this object can be */ assessedResourceType: "ContainerRegistryVulnerability"; /** @@ -4912,8 +4992,7 @@ export interface ServerVulnerabilityProperties extends AdditionalData { } /** AWS cloud account connector based credentials, the credentials is composed of access key ID and secret key, for more details, refer to Creating an IAM User in Your AWS Account (write only) */ -export interface AwsCredsAuthenticationDetailsProperties - extends AuthenticationDetailsProperties { +export interface AwsCredsAuthenticationDetailsProperties extends AuthenticationDetailsProperties { /** Polymorphic discriminator, which specifies the different types this object can be */ authenticationType: "awsCreds"; /** @@ -4944,8 +5023,7 @@ export interface AwAssumeRoleAuthenticationDetailsProperties } /** GCP cloud account connector based service to service credentials, the credentials are composed of the organization ID and a JSON API key (write only) */ -export interface GcpCredentialsDetailsProperties - extends AuthenticationDetailsProperties { +export interface GcpCredentialsDetailsProperties extends AuthenticationDetailsProperties { /** Polymorphic discriminator, which specifies the different types this object can be */ authenticationType: "gcpCredentials"; /** The organization ID of the GCP cloud account */ @@ -4972,6 +5050,55 @@ export interface GcpCredentialsDetailsProperties clientX509CertUrl: string; } +/** The logic app action that should be triggered. To learn more about Microsoft Defender for Cloud's Workflow Automation capabilities, visit https://aka.ms/ASCWorkflowAutomationLearnMore */ +export interface AutomationActionLogicApp extends AutomationAction { + /** Polymorphic discriminator, which specifies the different types this object can be */ + actionType: "LogicApp"; + /** The triggered Logic App Azure Resource ID. This can also reside on other subscriptions, given that you have permissions to trigger the Logic App */ + logicAppResourceId?: string; + /** The Logic App trigger URI endpoint (it will not be included in any response). */ + uri?: string; +} + +/** The target Event Hub to which event data will be exported. To learn more about Microsoft Defender for Cloud continuous export capabilities, visit https://aka.ms/ASCExportLearnMore */ +export interface AutomationActionEventHub extends AutomationAction { + /** Polymorphic discriminator, which specifies the different types this object can be */ + actionType: "EventHub"; + /** The target Event Hub Azure Resource ID. */ + eventHubResourceId?: string; + /** + * The target Event Hub SAS policy name. + * NOTE: This property will not be serialized. It can only be populated by the server. + */ + readonly sasPolicyName?: string; + /** The target Event Hub connection string (it will not be included in any response). */ + connectionString?: string; + /** Indicates whether the trusted service is enabled or not. */ + isTrustedServiceEnabled?: boolean; +} + +/** The Log Analytics Workspace to which event data will be exported. Security alerts data will reside in the 'SecurityAlert' table and the assessments data will reside in the 'SecurityRecommendation' table (under the 'Security'/'SecurityCenterFree' solutions). Note that in order to view the data in the workspace, the Security Center Log Analytics free/standard solution needs to be enabled on that workspace. To learn more about Microsoft Defender for Cloud continuous export capabilities, visit https://aka.ms/ASCExportLearnMore */ +export interface AutomationActionWorkspace extends AutomationAction { + /** Polymorphic discriminator, which specifies the different types this object can be */ + actionType: "Workspace"; + /** The fully qualified Log Analytics Workspace Azure Resource ID. */ + workspaceResourceId?: string; +} + +/** The update model of security automation resource. */ +export interface AutomationUpdateModel extends Tags { + /** The security automation description. */ + description?: string; + /** Indicates whether the security automation is enabled. */ + isEnabled?: boolean; + /** A collection of scopes on which the security automations logic is applied. Supported scopes are the subscription itself or a resource group under that subscription. The automation will only apply on defined scopes. */ + scopes?: AutomationScope[]; + /** A collection of the source event types which evaluate the security automation set of rules. */ + sources?: AutomationSource[]; + /** A collection of the actions which are triggered if all the configured rules evaluations, within at least one rule set, are true. */ + actions?: AutomationActionUnion[]; +} + /** Alert notification source */ export interface NotificationsSourceAlert extends NotificationsSource { /** Polymorphic discriminator, which specifies the different types this object can be */ @@ -4988,9 +5115,6 @@ export interface NotificationsSourceAttackPath extends NotificationsSource { minimalRiskLevel?: MinimalRiskLevel; } -/** The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location */ -export interface ProxyResource extends ResourceAutoGenerated {} - /** The CSPM monitoring for AWS offering */ export interface CspmMonitorAwsOffering extends CloudOffering { /** Polymorphic discriminator, which specifies the different types this object can be */ @@ -5005,28 +5129,28 @@ export interface DefenderForContainersAwsOffering extends CloudOffering { offeringType: "DefenderForContainersAws"; /** The kubernetes service connection configuration */ kubernetesService?: DefenderForContainersAwsOfferingKubernetesService; - /** The kubernetes to scuba connection configuration */ - kubernetesScubaReader?: DefenderForContainersAwsOfferingKubernetesScubaReader; + /** The kubernetes data collection connection configuration */ + kubernetesDataCollection?: DefenderForContainersAwsOfferingKubernetesDataCollection; /** The cloudwatch to kinesis connection configuration */ cloudWatchToKinesis?: DefenderForContainersAwsOfferingCloudWatchToKinesis; /** The kinesis to s3 connection configuration */ kinesisToS3?: DefenderForContainersAwsOfferingKinesisToS3; - /** The container vulnerability assessment configuration */ - containerVulnerabilityAssessment?: DefenderForContainersAwsOfferingContainerVulnerabilityAssessment; - /** The container vulnerability assessment task configuration */ - containerVulnerabilityAssessmentTask?: DefenderForContainersAwsOfferingContainerVulnerabilityAssessmentTask; - /** Enable container vulnerability assessment feature */ - enableContainerVulnerabilityAssessment?: boolean; - /** Is audit logs pipeline auto provisioning enabled */ - autoProvisioning?: boolean; + /** Is audit logs data collection enabled */ + enableAuditLogsAutoProvisioning?: boolean; + /** Is Microsoft Defender for Cloud Kubernetes agent auto provisioning enabled */ + enableDefenderAgentAutoProvisioning?: boolean; + /** Is Policy Kubernetes agent auto provisioning enabled */ + enablePolicyAgentAutoProvisioning?: boolean; /** The retention time in days of kube audit logs set on the CloudWatch log group */ kubeAuditRetentionTime?: number; /** The externalId used by the data reader to prevent the confused deputy attack */ - scubaExternalId?: string; + dataCollectionExternalId?: string; /** The Microsoft Defender container image assessment configuration */ mdcContainersImageAssessment?: DefenderForContainersAwsOfferingMdcContainersImageAssessment; /** The Microsoft Defender container agentless discovery K8s configuration */ mdcContainersAgentlessDiscoveryK8S?: DefenderForContainersAwsOfferingMdcContainersAgentlessDiscoveryK8S; + /** The Microsoft Defender for Container K8s VM host scanning configuration */ + vmScanners?: DefenderForContainersAwsOfferingVmScanners; } /** The Defender for Servers AWS offering */ @@ -5059,14 +5183,6 @@ export interface DefenderFoDatabasesAwsOffering extends CloudOffering { databasesDspm?: DefenderFoDatabasesAwsOfferingDatabasesDspm; } -/** The information protection for AWS offering */ -export interface InformationProtectionAwsOffering extends CloudOffering { - /** Polymorphic discriminator, which specifies the different types this object can be */ - offeringType: "InformationProtectionAws"; - /** The native cloud connection configuration */ - informationProtection?: InformationProtectionAwsOfferingInformationProtection; -} - /** The CSPM monitoring for GCP offering */ export interface CspmMonitorGcpOffering extends CloudOffering { /** Polymorphic discriminator, which specifies the different types this object can be */ @@ -5112,15 +5228,17 @@ export interface DefenderForContainersGcpOffering extends CloudOffering { /** The native cloud connection configuration */ dataPipelineNativeCloudConnection?: DefenderForContainersGcpOfferingDataPipelineNativeCloudConnection; /** Is audit logs data collection enabled */ - auditLogsAutoProvisioningFlag?: boolean; + enableAuditLogsAutoProvisioning?: boolean; /** Is Microsoft Defender for Cloud Kubernetes agent auto provisioning enabled */ - defenderAgentAutoProvisioningFlag?: boolean; + enableDefenderAgentAutoProvisioning?: boolean; /** Is Policy Kubernetes agent auto provisioning enabled */ - policyAgentAutoProvisioningFlag?: boolean; + enablePolicyAgentAutoProvisioning?: boolean; /** The Microsoft Defender Container image assessment configuration */ mdcContainersImageAssessment?: DefenderForContainersGcpOfferingMdcContainersImageAssessment; /** The Microsoft Defender Container agentless discovery configuration */ mdcContainersAgentlessDiscoveryK8S?: DefenderForContainersGcpOfferingMdcContainersAgentlessDiscoveryK8S; + /** The Microsoft Defender for Container K8s VM host scanning configuration */ + vmScanners?: DefenderForContainersGcpOfferingVmScanners; } /** The CSPM monitoring for github offering */ @@ -5139,13 +5257,13 @@ export interface CspmMonitorAzureDevOpsOffering extends CloudOffering { export interface DefenderCspmAwsOffering extends CloudOffering { /** Polymorphic discriminator, which specifies the different types this object can be */ offeringType: "DefenderCspmAws"; - /** The Microsoft Defender for Server VM scanning configuration */ + /** The Microsoft Defender for CSPM offering VM scanning configuration */ vmScanners?: DefenderCspmAwsOfferingVmScanners; /** The Microsoft Defender Data Sensitivity discovery configuration */ dataSensitivityDiscovery?: DefenderCspmAwsOfferingDataSensitivityDiscovery; /** The databases DSPM configuration */ databasesDspm?: DefenderCspmAwsOfferingDatabasesDspm; - /** Defenders CSPM Cloud infrastructure entitlement management (CIEM) offering configurations */ + /** Defenders CSPM Permissions Management offering configurations */ ciem?: DefenderCspmAwsOfferingCiem; /** The Microsoft Defender container image assessment configuration */ mdcContainersImageAssessment?: DefenderCspmAwsOfferingMdcContainersImageAssessment; @@ -5157,9 +5275,9 @@ export interface DefenderCspmAwsOffering extends CloudOffering { export interface DefenderCspmGcpOffering extends CloudOffering { /** Polymorphic discriminator, which specifies the different types this object can be */ offeringType: "DefenderCspmGcp"; - /** GCP Defenders CSPM Cloud infrastructure entitlement management (CIEM) discovery offering configurations */ + /** GCP Defenders CSPM Permissions Management OIDC (Open ID connect) connection configurations */ ciemDiscovery?: DefenderCspmGcpOfferingCiemDiscovery; - /** The Microsoft Defender for Server VM scanning configuration */ + /** The Microsoft Defender for CSPM VM scanning configuration */ vmScanners?: DefenderCspmGcpOfferingVmScanners; /** The Microsoft Defender Data Sensitivity discovery configuration */ dataSensitivityDiscovery?: DefenderCspmGcpOfferingDataSensitivityDiscovery; @@ -5169,28 +5287,48 @@ export interface DefenderCspmGcpOffering extends CloudOffering { mdcContainersAgentlessDiscoveryK8S?: DefenderCspmGcpOfferingMdcContainersAgentlessDiscoveryK8S; } -/** The Defender for DevOps for Github offering */ -export interface DefenderForDevOpsGithubOffering extends CloudOffering { +/** The CSPM (Cloud security posture management) monitoring for gitlab offering */ +export interface CspmMonitorGitLabOffering extends CloudOffering { + /** Polymorphic discriminator, which specifies the different types this object can be */ + offeringType: "CspmMonitorGitLab"; +} + +/** The CSPM (Cloud security posture management) monitoring for Docker Hub offering */ +export interface CspmMonitorDockerHubOffering extends CloudOffering { /** Polymorphic discriminator, which specifies the different types this object can be */ - offeringType: "DefenderForDevOpsGithub"; + offeringType: "CspmMonitorDockerHub"; } -/** The Defender for DevOps for Azure DevOps offering */ -export interface DefenderForDevOpsAzureDevOpsOffering extends CloudOffering { +/** The Defender for containers Docker Hub offering configurations */ +export interface DefenderForContainersDockerHubOffering extends CloudOffering { /** Polymorphic discriminator, which specifies the different types this object can be */ - offeringType: "DefenderForDevOpsAzureDevOps"; + offeringType: "DefenderForContainersDockerHub"; } -/** The CSPM (Cloud security posture management) monitoring for gitlab offering */ -export interface CspmMonitorGitLabOffering extends CloudOffering { +/** The Defender for CSPM Docker Hub offering configurations */ +export interface DefenderCspmDockerHubOffering extends CloudOffering { /** Polymorphic discriminator, which specifies the different types this object can be */ - offeringType: "CspmMonitorGitLab"; + offeringType: "DefenderCspmDockerHub"; +} + +/** The CSPM (Cloud security posture management) monitoring for JFrog Artifactory offering */ +export interface CspmMonitorJFrogOffering extends CloudOffering { + /** Polymorphic discriminator, which specifies the different types this object can be */ + offeringType: "CspmMonitorJFrog"; +} + +/** The Defender for Containers for JFrog Artifactory offering */ +export interface DefenderForContainersJFrogOffering extends CloudOffering { + /** Polymorphic discriminator, which specifies the different types this object can be */ + offeringType: "DefenderForContainersJFrog"; } -/** The Defender for DevOps for Gitlab offering */ -export interface DefenderForDevOpsGitLabOffering extends CloudOffering { +/** The CSPM P1 for JFrog Artifactory offering */ +export interface DefenderCspmJFrogOffering extends CloudOffering { /** Polymorphic discriminator, which specifies the different types this object can be */ - offeringType: "DefenderForDevOpsGitLab"; + offeringType: "DefenderCspmJFrog"; + /** The Microsoft Defender Container image assessment configuration */ + mdcContainersImageAssessment?: DefenderCspmJFrogOfferingMdcContainersImageAssessment; } /** The AWS connector environment data */ @@ -5240,6 +5378,24 @@ export interface GitlabScopeEnvironmentData extends EnvironmentData { environmentType: "GitlabScope"; } +/** The Docker Hub connector environment data */ +export interface DockerHubEnvironmentData extends EnvironmentData { + /** Polymorphic discriminator, which specifies the different types this object can be */ + environmentType: "DockerHubOrganization"; + /** The Docker Hub organization authentication details */ + authentication?: AuthenticationUnion; + /** Scan interval in hours (value should be between 1-hour to 24-hours) */ + scanInterval?: number; +} + +/** The JFrog Artifactory connector environment data */ +export interface JFrogEnvironmentData extends EnvironmentData { + /** Polymorphic discriminator, which specifies the different types this object can be */ + environmentType: "JFrogArtifactory"; + /** Scan interval in hours (value should be between 1-hour to 24-hours) */ + scanInterval?: number; +} + /** A custom alert rule that checks if a value (depends on the custom alert type) is within the given range. */ export interface ThresholdCustomAlertRule extends CustomAlertRule { /** Polymorphic discriminator, which specifies the different types this object can be */ @@ -5317,15 +5473,13 @@ export interface AssessmentStatusResponse extends AssessmentStatus { } /** Describes properties of an assessment. */ -export interface SecurityAssessmentPropertiesResponse - extends SecurityAssessmentPropertiesBase { +export interface SecurityAssessmentPropertiesResponse extends SecurityAssessmentPropertiesBase { /** The result of the assessment */ status: AssessmentStatusResponse; } /** Describes properties of an assessment. */ -export interface SecurityAssessmentProperties - extends SecurityAssessmentPropertiesBase { +export interface SecurityAssessmentProperties extends SecurityAssessmentPropertiesBase { /** The result of the assessment */ status: AssessmentStatus; } @@ -5368,8 +5522,7 @@ export interface LogAnalyticsIdentifier extends ResourceIdentifier { } /** Simulate alerts according to this bundles. */ -export interface AlertSimulatorBundlesRequestProperties - extends AlertSimulatorRequestProperties { +export interface AlertSimulatorBundlesRequestProperties extends AlertSimulatorRequestProperties { /** Polymorphic discriminator, which specifies the different types this object can be */ kind: "Bundles"; /** Bundles list. */ @@ -5377,12 +5530,14 @@ export interface AlertSimulatorBundlesRequestProperties } /** A base vulnerability assessments setting on servers in the defined scope. */ -export interface ServerVulnerabilityAssessmentsSetting - extends ResourceAutoGenerated2 { +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 AWS organization data for the master account */ export interface AwsOrganizationalDataMaster extends AwsOrganizationalData { /** Polymorphic discriminator, which specifies the different types this object can be */ @@ -5402,8 +5557,7 @@ export interface AwsOrganizationalDataMember extends AwsOrganizationalData { } /** The gcpOrganization data for the parent account */ -export interface GcpOrganizationalDataOrganization - extends GcpOrganizationalData { +export interface GcpOrganizationalDataOrganization extends GcpOrganizationalData { /** Polymorphic discriminator, which specifies the different types this object can be */ organizationMembershipType: "Organization"; /** If the multi cloud account is of membership type organization, list of accounts excluded from offering */ @@ -5419,27 +5573,53 @@ export interface GcpOrganizationalDataOrganization readonly organizationName?: string; } -/** The gcpOrganization data for the member account */ -export interface GcpOrganizationalDataMember extends GcpOrganizationalData { - /** Polymorphic discriminator, which specifies the different types this object can be */ - organizationMembershipType: "Member"; - /** If the multi cloud account is not of membership type organization, this will be the ID of the project's parent */ - parentHierarchyId?: string; - /** The GCP management project number from organizational onboarding */ - managementProjectNumber?: string; -} +/** The gcpOrganization data for the member account */ +export interface GcpOrganizationalDataMember extends GcpOrganizationalData { + /** Polymorphic discriminator, which specifies the different types this object can be */ + organizationMembershipType: "Member"; + /** If the multi cloud account is not of membership type organization, this will be the ID of the project's parent */ + parentHierarchyId?: string; + /** The GCP management project number from organizational onboarding */ + managementProjectNumber?: string; +} + +/** The environment authentication details */ +export interface AccessTokenAuthentication extends Authentication { + /** Polymorphic discriminator, which specifies the different types this object can be */ + authenticationType: "AccessToken"; + /** The user name that will be used while authenticating with the onboarded environment */ + username?: string; + /** The access token that will be used while authenticating with the onboarded environment */ + accessToken?: string; +} + +/** A VM scanning configuration for a security offering of a Aws environment */ +export interface VmScannersAws extends VmScannersBase { + /** The cloud role ARN in AWS for this feature */ + cloudRoleArn?: string; +} + +/** A VM scanning configuration for a security offering of a GCP environment */ +export interface VmScannersGcp extends VmScannersBase {} + +/** The ARC autoprovisioning configuration for an AWS environment */ +export interface ArcAutoProvisioningAws extends ArcAutoProvisioning { + /** The cloud role ARN in AWS for this feature */ + cloudRoleArn?: string; +} + +/** The ARC autoprovisioning configuration for an GCP environment */ +export interface ArcAutoProvisioningGcp extends ArcAutoProvisioning {} /** The external security solution properties for CEF solutions */ -export interface CefSolutionProperties - extends ExternalSecuritySolutionProperties { +export interface CefSolutionProperties extends ExternalSecuritySolutionProperties { hostname?: string; agent?: string; lastEventReceived?: string; } /** The external security solution properties for ATA solutions */ -export interface AtaSolutionProperties - extends ExternalSecuritySolutionProperties { +export interface AtaSolutionProperties extends ExternalSecuritySolutionProperties { lastEventReceived?: string; } @@ -5528,6 +5708,60 @@ export interface OnPremiseSqlResourceDetails extends OnPremiseResourceDetails { databaseName: string; } +/** A custom alert rule that checks if the number of activities (depends on the custom alert type) in a time window is within the given range. */ +export interface TimeWindowCustomAlertRule extends ThresholdCustomAlertRule { + /** Polymorphic discriminator, which specifies the different types this object can be */ + ruleType: + | "TimeWindowCustomAlertRule" + | "ActiveConnectionsNotInAllowedRange" + | "AmqpC2DMessagesNotInAllowedRange" + | "MqttC2DMessagesNotInAllowedRange" + | "HttpC2DMessagesNotInAllowedRange" + | "AmqpC2DRejectedMessagesNotInAllowedRange" + | "MqttC2DRejectedMessagesNotInAllowedRange" + | "HttpC2DRejectedMessagesNotInAllowedRange" + | "AmqpD2CMessagesNotInAllowedRange" + | "MqttD2CMessagesNotInAllowedRange" + | "HttpD2CMessagesNotInAllowedRange" + | "DirectMethodInvokesNotInAllowedRange" + | "FailedLocalLoginsNotInAllowedRange" + | "FileUploadsNotInAllowedRange" + | "QueuePurgesNotInAllowedRange" + | "TwinUpdatesNotInAllowedRange" + | "UnauthorizedOperationsNotInAllowedRange"; + /** The time window size in iso8601 format. */ + timeWindowSize: string; +} + +/** A custom alert rule that checks if a value (depends on the custom alert type) is allowed. */ +export interface AllowlistCustomAlertRule extends ListCustomAlertRule { + /** Polymorphic discriminator, which specifies the different types this object can be */ + ruleType: + | "AllowlistCustomAlertRule" + | "ConnectionToIpNotAllowed" + | "ConnectionFromIpNotAllowed" + | "LocalUserNotAllowed" + | "ProcessNotAllowed"; + /** The values to allow. The format of the values depends on the rule type. */ + allowlistValues: string[]; +} + +/** A custom alert rule that checks if a value (depends on the custom alert type) is denied. */ +export interface DenylistCustomAlertRule extends ListCustomAlertRule { + /** Polymorphic discriminator, which specifies the different types this object can be */ + ruleType: "DenylistCustomAlertRule"; + /** The values to deny. The format of the values depends on the rule type. */ + denylistValues: string[]; +} + +/** 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 { /** @@ -5616,169 +5850,129 @@ export interface GitLabProject extends ProxyResource { properties?: GitLabProjectProperties; } -/** A custom alert rule that checks if the number of activities (depends on the custom alert type) in a time window is within the given range. */ -export interface TimeWindowCustomAlertRule extends ThresholdCustomAlertRule { - /** Polymorphic discriminator, which specifies the different types this object can be */ - ruleType: - | "TimeWindowCustomAlertRule" - | "ActiveConnectionsNotInAllowedRange" - | "AmqpC2DMessagesNotInAllowedRange" - | "MqttC2DMessagesNotInAllowedRange" - | "HttpC2DMessagesNotInAllowedRange" - | "AmqpC2DRejectedMessagesNotInAllowedRange" - | "MqttC2DRejectedMessagesNotInAllowedRange" - | "HttpC2DRejectedMessagesNotInAllowedRange" - | "AmqpD2CMessagesNotInAllowedRange" - | "MqttD2CMessagesNotInAllowedRange" - | "HttpD2CMessagesNotInAllowedRange" - | "DirectMethodInvokesNotInAllowedRange" - | "FailedLocalLoginsNotInAllowedRange" - | "FileUploadsNotInAllowedRange" - | "QueuePurgesNotInAllowedRange" - | "TwinUpdatesNotInAllowedRange" - | "UnauthorizedOperationsNotInAllowedRange"; - /** The time window size in iso8601 format. */ - timeWindowSize: string; -} +/** The Microsoft Defender for Container K8s VM host scanning configuration */ +export interface DefenderForContainersAwsOfferingVmScanners extends VmScannersAws {} -/** A custom alert rule that checks if a value (depends on the custom alert type) is allowed. */ -export interface AllowlistCustomAlertRule extends ListCustomAlertRule { - /** Polymorphic discriminator, which specifies the different types this object can be */ - ruleType: - | "AllowlistCustomAlertRule" - | "ConnectionToIpNotAllowed" - | "ConnectionFromIpNotAllowed" - | "LocalUserNotAllowed" - | "ProcessNotAllowed"; - /** The values to allow. The format of the values depends on the rule type. */ - allowlistValues: string[]; -} +/** The Microsoft Defender for Server VM scanning configuration */ +export interface DefenderForServersAwsOfferingVmScanners extends VmScannersAws {} -/** A custom alert rule that checks if a value (depends on the custom alert type) is denied. */ -export interface DenylistCustomAlertRule extends ListCustomAlertRule { - /** Polymorphic discriminator, which specifies the different types this object can be */ - ruleType: "DenylistCustomAlertRule"; - /** The values to deny. The format of the values depends on the rule type. */ - denylistValues: string[]; -} +/** The Microsoft Defender for CSPM offering VM scanning configuration */ +export interface DefenderCspmAwsOfferingVmScanners extends VmScannersAws {} -/** 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; -} +/** The Microsoft Defender for Server VM scanning configuration */ +export interface DefenderForServersGcpOfferingVmScanners extends VmScannersGcp {} + +/** The Microsoft Defender for Container K8s VM host scanning configuration */ +export interface DefenderForContainersGcpOfferingVmScanners extends VmScannersGcp {} + +/** The Microsoft Defender for CSPM VM scanning configuration */ +export interface DefenderCspmGcpOfferingVmScanners extends VmScannersGcp {} + +/** The ARC autoprovisioning configuration */ +export interface DefenderForServersAwsOfferingArcAutoProvisioning extends ArcAutoProvisioningAws {} + +/** The ARC autoprovisioning configuration */ +export interface DefenderFoDatabasesAwsOfferingArcAutoProvisioning extends ArcAutoProvisioningAws {} + +/** The ARC autoprovisioning configuration */ +export interface DefenderForServersGcpOfferingArcAutoProvisioning extends ArcAutoProvisioningGcp {} + +/** The ARC autoprovisioning configuration */ +export interface DefenderForDatabasesGcpOfferingArcAutoProvisioning + extends ArcAutoProvisioningGcp {} /** Number of active connections is not in allowed range. */ -export interface ActiveConnectionsNotInAllowedRange - extends TimeWindowCustomAlertRule { +export interface ActiveConnectionsNotInAllowedRange extends TimeWindowCustomAlertRule { /** Polymorphic discriminator, which specifies the different types this object can be */ ruleType: "ActiveConnectionsNotInAllowedRange"; } /** Number of cloud to device messages (AMQP protocol) is not in allowed range. */ -export interface AmqpC2DMessagesNotInAllowedRange - extends TimeWindowCustomAlertRule { +export interface AmqpC2DMessagesNotInAllowedRange extends TimeWindowCustomAlertRule { /** Polymorphic discriminator, which specifies the different types this object can be */ ruleType: "AmqpC2DMessagesNotInAllowedRange"; } /** Number of cloud to device messages (MQTT protocol) is not in allowed range. */ -export interface MqttC2DMessagesNotInAllowedRange - extends TimeWindowCustomAlertRule { +export interface MqttC2DMessagesNotInAllowedRange extends TimeWindowCustomAlertRule { /** Polymorphic discriminator, which specifies the different types this object can be */ ruleType: "MqttC2DMessagesNotInAllowedRange"; } /** Number of cloud to device messages (HTTP protocol) is not in allowed range. */ -export interface HttpC2DMessagesNotInAllowedRange - extends TimeWindowCustomAlertRule { +export interface HttpC2DMessagesNotInAllowedRange extends TimeWindowCustomAlertRule { /** Polymorphic discriminator, which specifies the different types this object can be */ ruleType: "HttpC2DMessagesNotInAllowedRange"; } /** Number of rejected cloud to device messages (AMQP protocol) is not in allowed range. */ -export interface AmqpC2DRejectedMessagesNotInAllowedRange - extends TimeWindowCustomAlertRule { +export interface AmqpC2DRejectedMessagesNotInAllowedRange extends TimeWindowCustomAlertRule { /** Polymorphic discriminator, which specifies the different types this object can be */ ruleType: "AmqpC2DRejectedMessagesNotInAllowedRange"; } /** Number of rejected cloud to device messages (MQTT protocol) is not in allowed range. */ -export interface MqttC2DRejectedMessagesNotInAllowedRange - extends TimeWindowCustomAlertRule { +export interface MqttC2DRejectedMessagesNotInAllowedRange extends TimeWindowCustomAlertRule { /** Polymorphic discriminator, which specifies the different types this object can be */ ruleType: "MqttC2DRejectedMessagesNotInAllowedRange"; } /** Number of rejected cloud to device messages (HTTP protocol) is not in allowed range. */ -export interface HttpC2DRejectedMessagesNotInAllowedRange - extends TimeWindowCustomAlertRule { +export interface HttpC2DRejectedMessagesNotInAllowedRange extends TimeWindowCustomAlertRule { /** Polymorphic discriminator, which specifies the different types this object can be */ ruleType: "HttpC2DRejectedMessagesNotInAllowedRange"; } /** Number of device to cloud messages (AMQP protocol) is not in allowed range. */ -export interface AmqpD2CMessagesNotInAllowedRange - extends TimeWindowCustomAlertRule { +export interface AmqpD2CMessagesNotInAllowedRange extends TimeWindowCustomAlertRule { /** Polymorphic discriminator, which specifies the different types this object can be */ ruleType: "AmqpD2CMessagesNotInAllowedRange"; } /** Number of device to cloud messages (MQTT protocol) is not in allowed range. */ -export interface MqttD2CMessagesNotInAllowedRange - extends TimeWindowCustomAlertRule { +export interface MqttD2CMessagesNotInAllowedRange extends TimeWindowCustomAlertRule { /** Polymorphic discriminator, which specifies the different types this object can be */ ruleType: "MqttD2CMessagesNotInAllowedRange"; } /** Number of device to cloud messages (HTTP protocol) is not in allowed range. */ -export interface HttpD2CMessagesNotInAllowedRange - extends TimeWindowCustomAlertRule { +export interface HttpD2CMessagesNotInAllowedRange extends TimeWindowCustomAlertRule { /** Polymorphic discriminator, which specifies the different types this object can be */ ruleType: "HttpD2CMessagesNotInAllowedRange"; } /** Number of direct method invokes is not in allowed range. */ -export interface DirectMethodInvokesNotInAllowedRange - extends TimeWindowCustomAlertRule { +export interface DirectMethodInvokesNotInAllowedRange extends TimeWindowCustomAlertRule { /** Polymorphic discriminator, which specifies the different types this object can be */ ruleType: "DirectMethodInvokesNotInAllowedRange"; } /** Number of failed local logins is not in allowed range. */ -export interface FailedLocalLoginsNotInAllowedRange - extends TimeWindowCustomAlertRule { +export interface FailedLocalLoginsNotInAllowedRange extends TimeWindowCustomAlertRule { /** Polymorphic discriminator, which specifies the different types this object can be */ ruleType: "FailedLocalLoginsNotInAllowedRange"; } /** Number of file uploads is not in allowed range. */ -export interface FileUploadsNotInAllowedRange - extends TimeWindowCustomAlertRule { +export interface FileUploadsNotInAllowedRange extends TimeWindowCustomAlertRule { /** Polymorphic discriminator, which specifies the different types this object can be */ ruleType: "FileUploadsNotInAllowedRange"; } /** Number of device queue purges is not in allowed range. */ -export interface QueuePurgesNotInAllowedRange - extends TimeWindowCustomAlertRule { +export interface QueuePurgesNotInAllowedRange extends TimeWindowCustomAlertRule { /** Polymorphic discriminator, which specifies the different types this object can be */ ruleType: "QueuePurgesNotInAllowedRange"; } /** Number of twin updates is not in allowed range. */ -export interface TwinUpdatesNotInAllowedRange - extends TimeWindowCustomAlertRule { +export interface TwinUpdatesNotInAllowedRange extends TimeWindowCustomAlertRule { /** Polymorphic discriminator, which specifies the different types this object can be */ ruleType: "TwinUpdatesNotInAllowedRange"; } /** Number of unauthorized operations is not in allowed range. */ -export interface UnauthorizedOperationsNotInAllowedRange - extends TimeWindowCustomAlertRule { +export interface UnauthorizedOperationsNotInAllowedRange extends TimeWindowCustomAlertRule { /** Polymorphic discriminator, which specifies the different types this object can be */ ruleType: "UnauthorizedOperationsNotInAllowedRange"; } @@ -5855,178 +6049,43 @@ export enum KnownTaskUpdateActionType { * **Resolve** \ * **Close** */ -export type TaskUpdateActionType = string; - -/** Known values of {@link AutoProvision} that the service accepts. */ -export enum KnownAutoProvision { - /** Install missing security agent on VMs automatically */ - On = "On", - /** Do not install security agent on the VMs automatically */ - Off = "Off", -} - -/** - * Defines values for AutoProvision. \ - * {@link KnownAutoProvision} can be used interchangeably with AutoProvision, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **On**: Install missing security agent on VMs automatically \ - * **Off**: Do not install security agent on the VMs automatically - */ -export type AutoProvision = string; - -/** Known values of {@link InformationProtectionPolicyName} that the service accepts. */ -export enum KnownInformationProtectionPolicyName { - /** Effective */ - Effective = "effective", - /** Custom */ - Custom = "custom", -} - -/** - * Defines values for InformationProtectionPolicyName. \ - * {@link KnownInformationProtectionPolicyName} can be used interchangeably with InformationProtectionPolicyName, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **effective** \ - * **custom** - */ -export type InformationProtectionPolicyName = string; - -/** Known values of {@link EventSource} that the service accepts. */ -export enum KnownEventSource { - /** Assessments */ - Assessments = "Assessments", - /** AssessmentsSnapshot */ - AssessmentsSnapshot = "AssessmentsSnapshot", - /** SubAssessments */ - SubAssessments = "SubAssessments", - /** SubAssessmentsSnapshot */ - SubAssessmentsSnapshot = "SubAssessmentsSnapshot", - /** Alerts */ - Alerts = "Alerts", - /** SecureScores */ - SecureScores = "SecureScores", - /** SecureScoresSnapshot */ - SecureScoresSnapshot = "SecureScoresSnapshot", - /** SecureScoreControls */ - SecureScoreControls = "SecureScoreControls", - /** SecureScoreControlsSnapshot */ - SecureScoreControlsSnapshot = "SecureScoreControlsSnapshot", - /** RegulatoryComplianceAssessment */ - RegulatoryComplianceAssessment = "RegulatoryComplianceAssessment", - /** RegulatoryComplianceAssessmentSnapshot */ - RegulatoryComplianceAssessmentSnapshot = "RegulatoryComplianceAssessmentSnapshot", - /** AttackPaths */ - AttackPaths = "AttackPaths", - /** AttackPathsSnapshot */ - AttackPathsSnapshot = "AttackPathsSnapshot", -} - -/** - * Defines values for EventSource. \ - * {@link KnownEventSource} can be used interchangeably with EventSource, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Assessments** \ - * **AssessmentsSnapshot** \ - * **SubAssessments** \ - * **SubAssessmentsSnapshot** \ - * **Alerts** \ - * **SecureScores** \ - * **SecureScoresSnapshot** \ - * **SecureScoreControls** \ - * **SecureScoreControlsSnapshot** \ - * **RegulatoryComplianceAssessment** \ - * **RegulatoryComplianceAssessmentSnapshot** \ - * **AttackPaths** \ - * **AttackPathsSnapshot** - */ -export type EventSource = string; - -/** Known values of {@link PropertyType} that the service accepts. */ -export enum KnownPropertyType { - /** String */ - String = "String", - /** Integer */ - Integer = "Integer", - /** Number */ - Number = "Number", - /** Boolean */ - Boolean = "Boolean", -} - -/** - * Defines values for PropertyType. \ - * {@link KnownPropertyType} can be used interchangeably with PropertyType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **String** \ - * **Integer** \ - * **Number** \ - * **Boolean** - */ -export type PropertyType = string; - -/** Known values of {@link Operator} that the service accepts. */ -export enum KnownOperator { - /** Applies for decimal and non-decimal operands */ - Equals = "Equals", - /** Applies only for decimal operands */ - GreaterThan = "GreaterThan", - /** Applies only for decimal operands */ - GreaterThanOrEqualTo = "GreaterThanOrEqualTo", - /** Applies only for decimal operands */ - LesserThan = "LesserThan", - /** Applies only for decimal operands */ - LesserThanOrEqualTo = "LesserThanOrEqualTo", - /** Applies for decimal and non-decimal operands */ - NotEquals = "NotEquals", - /** Applies only for non-decimal operands */ - Contains = "Contains", - /** Applies only for non-decimal operands */ - StartsWith = "StartsWith", - /** Applies only for non-decimal operands */ - EndsWith = "EndsWith", +export type TaskUpdateActionType = string; + +/** Known values of {@link AutoProvision} that the service accepts. */ +export enum KnownAutoProvision { + /** Install missing security agent on VMs automatically */ + On = "On", + /** Do not install security agent on the VMs automatically */ + Off = "Off", } /** - * Defines values for Operator. \ - * {@link KnownOperator} can be used interchangeably with Operator, + * Defines values for AutoProvision. \ + * {@link KnownAutoProvision} can be used interchangeably with AutoProvision, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Equals**: Applies for decimal and non-decimal operands \ - * **GreaterThan**: Applies only for decimal operands \ - * **GreaterThanOrEqualTo**: Applies only for decimal operands \ - * **LesserThan**: Applies only for decimal operands \ - * **LesserThanOrEqualTo**: Applies only for decimal operands \ - * **NotEquals**: Applies for decimal and non-decimal operands \ - * **Contains**: Applies only for non-decimal operands \ - * **StartsWith**: Applies only for non-decimal operands \ - * **EndsWith**: Applies only for non-decimal operands + * **On**: Install missing security agent on VMs automatically \ + * **Off**: Do not install security agent on the VMs automatically */ -export type Operator = string; +export type AutoProvision = string; -/** Known values of {@link ActionType} that the service accepts. */ -export enum KnownActionType { - /** LogicApp */ - LogicApp = "LogicApp", - /** EventHub */ - EventHub = "EventHub", - /** Workspace */ - Workspace = "Workspace", +/** Known values of {@link InformationProtectionPolicyName} that the service accepts. */ +export enum KnownInformationProtectionPolicyName { + /** Effective */ + Effective = "effective", + /** Custom */ + Custom = "custom", } /** - * Defines values for ActionType. \ - * {@link KnownActionType} can be used interchangeably with ActionType, + * Defines values for InformationProtectionPolicyName. \ + * {@link KnownInformationProtectionPolicyName} can be used interchangeably with InformationProtectionPolicyName, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **LogicApp** \ - * **EventHub** \ - * **Workspace** + * **effective** \ + * **custom** */ -export type ActionType = string; +export type InformationProtectionPolicyName = string; /** Known values of {@link State} that the service accepts. */ export enum KnownState { @@ -6226,63 +6285,6 @@ export enum KnownAuthenticationType { */ export type AuthenticationType = string; -/** Known values of {@link SourceType} that the service accepts. */ -export enum KnownSourceType { - /** Alert */ - Alert = "Alert", - /** AttackPath */ - AttackPath = "AttackPath", -} - -/** - * Defines values for SourceType. \ - * {@link KnownSourceType} can be used interchangeably with SourceType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Alert** \ - * **AttackPath** - */ -export type SourceType = string; - -/** Known values of {@link SecurityContactRole} that the service accepts. */ -export enum KnownSecurityContactRole { - /** If enabled, send notification on new alerts to the account admins */ - AccountAdmin = "AccountAdmin", - /** If enabled, send notification on new alerts to the service admins */ - ServiceAdmin = "ServiceAdmin", - /** If enabled, send notification on new alerts to the subscription owners */ - Owner = "Owner", - /** If enabled, send notification on new alerts to the subscription contributors */ - Contributor = "Contributor", -} - -/** - * Defines values for SecurityContactRole. \ - * {@link KnownSecurityContactRole} can be used interchangeably with SecurityContactRole, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **AccountAdmin**: If enabled, send notification on new alerts to the account admins \ - * **ServiceAdmin**: If enabled, send notification on new alerts to the service admins \ - * **Owner**: If enabled, send notification on new alerts to the subscription owners \ - * **Contributor**: If enabled, send notification on new alerts to the subscription contributors - */ -export type SecurityContactRole = string; - -/** Known values of {@link SecurityContactName} that the service accepts. */ -export enum KnownSecurityContactName { - /** The single applicable name of the security contact object */ - Default = "default", -} - -/** - * Defines values for SecurityContactName. \ - * {@link KnownSecurityContactName} can be used interchangeably with SecurityContactName, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **default**: The single applicable name of the security contact object - */ -export type SecurityContactName = string; - /** Known values of {@link EndOfSupportStatus} that the service accepts. */ export enum KnownEndOfSupportStatus { /** None */ @@ -6460,21 +6462,6 @@ export enum KnownApplicationSourceResourceType { */ export type ApplicationSourceResourceType = string; -/** Known values of {@link SettingName} that the service accepts. */ -export enum KnownSettingName { - /** Name of the Defender for Storage Settings name. */ - Current = "current", -} - -/** - * Defines values for SettingName. \ - * {@link KnownSettingName} can be used interchangeably with SettingName, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **current**: Name of the Defender for Storage Settings name. - */ -export type SettingName = string; - /** Known values of {@link ScanTriggerType} that the service accepts. */ export enum KnownScanTriggerType { /** OnDemand */ @@ -6634,170 +6621,200 @@ export enum KnownStatusName { */ export type StatusName = 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", +/** Known values of {@link EventSource} that the service accepts. */ +export enum KnownEventSource { + /** Assessments */ + Assessments = "Assessments", + /** AssessmentsSnapshot */ + AssessmentsSnapshot = "AssessmentsSnapshot", + /** SubAssessments */ + SubAssessments = "SubAssessments", + /** SubAssessmentsSnapshot */ + SubAssessmentsSnapshot = "SubAssessmentsSnapshot", + /** Alerts */ + Alerts = "Alerts", + /** SecureScores */ + SecureScores = "SecureScores", + /** SecureScoresSnapshot */ + SecureScoresSnapshot = "SecureScoresSnapshot", + /** SecureScoreControls */ + SecureScoreControls = "SecureScoreControls", + /** SecureScoreControlsSnapshot */ + SecureScoreControlsSnapshot = "SecureScoreControlsSnapshot", + /** RegulatoryComplianceAssessment */ + RegulatoryComplianceAssessment = "RegulatoryComplianceAssessment", + /** RegulatoryComplianceAssessmentSnapshot */ + RegulatoryComplianceAssessmentSnapshot = "RegulatoryComplianceAssessmentSnapshot", + /** AttackPaths */ + AttackPaths = "AttackPaths", + /** AttackPathsSnapshot */ + AttackPathsSnapshot = "AttackPathsSnapshot", } /** - * Defines values for DevOpsProvisioningState. \ - * {@link KnownDevOpsProvisioningState} can be used interchangeably with DevOpsProvisioningState, + * Defines values for EventSource. \ + * {@link KnownEventSource} can be used interchangeably with EventSource, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Succeeded** \ - * **Failed** \ - * **Canceled** \ - * **Pending** \ - * **PendingDeletion** \ - * **DeletionSuccess** \ - * **DeletionFailure** + * **Assessments** \ + * **AssessmentsSnapshot** \ + * **SubAssessments** \ + * **SubAssessmentsSnapshot** \ + * **Alerts** \ + * **SecureScores** \ + * **SecureScoresSnapshot** \ + * **SecureScoreControls** \ + * **SecureScoreControlsSnapshot** \ + * **RegulatoryComplianceAssessment** \ + * **RegulatoryComplianceAssessmentSnapshot** \ + * **AttackPaths** \ + * **AttackPathsSnapshot** */ -export type DevOpsProvisioningState = string; +export type EventSource = 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", +/** Known values of {@link PropertyType} that the service accepts. */ +export enum KnownPropertyType { + /** String */ + String = "String", + /** Integer */ + Integer = "Integer", + /** Number */ + Number = "Number", + /** Boolean */ + Boolean = "Boolean", } /** - * Defines values for OnboardingState. \ - * {@link KnownOnboardingState} can be used interchangeably with OnboardingState, + * Defines values for PropertyType. \ + * {@link KnownPropertyType} can be used interchangeably with PropertyType, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **NotApplicable** \ - * **OnboardedByOtherConnector** \ - * **Onboarded** \ - * **NotOnboarded** + * **String** \ + * **Integer** \ + * **Number** \ + * **Boolean** */ -export type OnboardingState = string; +export type PropertyType = string; -/** Known values of {@link ActionableRemediationState} that the service accepts. */ -export enum KnownActionableRemediationState { - /** None */ - None = "None", - /** Disabled */ - Disabled = "Disabled", - /** Enabled */ - Enabled = "Enabled", +/** Known values of {@link Operator} that the service accepts. */ +export enum KnownOperator { + /** Applies for decimal and non-decimal operands */ + Equals = "Equals", + /** Applies only for decimal operands */ + GreaterThan = "GreaterThan", + /** Applies only for decimal operands */ + GreaterThanOrEqualTo = "GreaterThanOrEqualTo", + /** Applies only for decimal operands */ + LesserThan = "LesserThan", + /** Applies only for decimal operands */ + LesserThanOrEqualTo = "LesserThanOrEqualTo", + /** Applies for decimal and non-decimal operands */ + NotEquals = "NotEquals", + /** Applies only for non-decimal operands */ + Contains = "Contains", + /** Applies only for non-decimal operands */ + StartsWith = "StartsWith", + /** Applies only for non-decimal operands */ + EndsWith = "EndsWith", } /** - * Defines values for ActionableRemediationState. \ - * {@link KnownActionableRemediationState} can be used interchangeably with ActionableRemediationState, + * Defines values for Operator. \ + * {@link KnownOperator} can be used interchangeably with Operator, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **None** \ - * **Disabled** \ - * **Enabled** + * **Equals**: Applies for decimal and non-decimal operands \ + * **GreaterThan**: Applies only for decimal operands \ + * **GreaterThanOrEqualTo**: Applies only for decimal operands \ + * **LesserThan**: Applies only for decimal operands \ + * **LesserThanOrEqualTo**: Applies only for decimal operands \ + * **NotEquals**: Applies for decimal and non-decimal operands \ + * **Contains**: Applies only for non-decimal operands \ + * **StartsWith**: Applies only for non-decimal operands \ + * **EndsWith**: Applies only for non-decimal operands */ -export type ActionableRemediationState = string; +export type Operator = 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", +/** Known values of {@link ActionType} that the service accepts. */ +export enum KnownActionType { + /** Internal */ + Internal = "Internal", + /** LogicApp */ + LogicApp = "LogicApp", + /** EventHub */ + EventHub = "EventHub", + /** Workspace */ + Workspace = "Workspace", } /** - * Defines values for RuleCategory. \ - * {@link KnownRuleCategory} can be used interchangeably with RuleCategory, + * Defines values for ActionType. \ + * {@link KnownActionType} can be used interchangeably with ActionType, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Code** \ - * **Artifacts** \ - * **Dependencies** \ - * **Secrets** \ - * **IaC** \ - * **Containers** + * **Internal** \ + * **LogicApp** \ + * **EventHub** \ + * **Workspace** */ -export type RuleCategory = string; +export type ActionType = string; -/** Known values of {@link AnnotateDefaultBranchState} that the service accepts. */ -export enum KnownAnnotateDefaultBranchState { - /** Disabled */ - Disabled = "Disabled", - /** Enabled */ - Enabled = "Enabled", +/** Known values of {@link SourceType} that the service accepts. */ +export enum KnownSourceType { + /** Alert */ + Alert = "Alert", + /** AttackPath */ + AttackPath = "AttackPath", } /** - * Defines values for AnnotateDefaultBranchState. \ - * {@link KnownAnnotateDefaultBranchState} can be used interchangeably with AnnotateDefaultBranchState, + * Defines values for SourceType. \ + * {@link KnownSourceType} can be used interchangeably with SourceType, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Disabled** \ - * **Enabled** + * **Alert** \ + * **AttackPath** */ -export type AnnotateDefaultBranchState = string; +export type SourceType = string; -/** Known values of {@link InheritFromParentState} that the service accepts. */ -export enum KnownInheritFromParentState { - /** Disabled */ - Disabled = "Disabled", - /** Enabled */ - Enabled = "Enabled", +/** Known values of {@link SecurityContactRole} that the service accepts. */ +export enum KnownSecurityContactRole { + /** If enabled, send notification on new alerts to the account admins */ + AccountAdmin = "AccountAdmin", + /** If enabled, send notification on new alerts to the service admins */ + ServiceAdmin = "ServiceAdmin", + /** If enabled, send notification on new alerts to the subscription owners */ + Owner = "Owner", + /** If enabled, send notification on new alerts to the subscription contributors */ + Contributor = "Contributor", } /** - * Defines values for InheritFromParentState. \ - * {@link KnownInheritFromParentState} can be used interchangeably with InheritFromParentState, + * Defines values for SecurityContactRole. \ + * {@link KnownSecurityContactRole} can be used interchangeably with SecurityContactRole, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Disabled** \ - * **Enabled** + * **AccountAdmin**: If enabled, send notification on new alerts to the account admins \ + * **ServiceAdmin**: If enabled, send notification on new alerts to the service admins \ + * **Owner**: If enabled, send notification on new alerts to the subscription owners \ + * **Contributor**: If enabled, send notification on new alerts to the subscription contributors */ -export type InheritFromParentState = string; +export type SecurityContactRole = string; -/** Known values of {@link AutoDiscovery} that the service accepts. */ -export enum KnownAutoDiscovery { - /** Disabled */ - Disabled = "Disabled", - /** Enabled */ - Enabled = "Enabled", - /** NotApplicable */ - NotApplicable = "NotApplicable", +/** Known values of {@link SecurityContactName} that the service accepts. */ +export enum KnownSecurityContactName { + /** The single applicable name of the security contact object */ + Default = "default", } /** - * Defines values for AutoDiscovery. \ - * {@link KnownAutoDiscovery} can be used interchangeably with AutoDiscovery, + * Defines values for SecurityContactName. \ + * {@link KnownSecurityContactName} can be used interchangeably with SecurityContactName, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Disabled** \ - * **Enabled** \ - * **NotApplicable** + * **default**: The single applicable name of the security contact object */ -export type AutoDiscovery = string; +export type SecurityContactName = string; /** Known values of {@link CloudName} that the service accepts. */ export enum KnownCloudName { @@ -6813,6 +6830,10 @@ export enum KnownCloudName { AzureDevOps = "AzureDevOps", /** GitLab */ GitLab = "GitLab", + /** DockerHub */ + DockerHub = "DockerHub", + /** JFrog */ + JFrog = "JFrog", } /** @@ -6825,7 +6846,9 @@ export enum KnownCloudName { * **GCP** \ * **Github** \ * **AzureDevOps** \ - * **GitLab** + * **GitLab** \ + * **DockerHub** \ + * **JFrog** */ export type CloudName = string; @@ -6839,8 +6862,6 @@ export enum KnownOfferingType { DefenderForServersAws = "DefenderForServersAws", /** DefenderForDatabasesAws */ DefenderForDatabasesAws = "DefenderForDatabasesAws", - /** InformationProtectionAws */ - InformationProtectionAws = "InformationProtectionAws", /** CspmMonitorGcp */ CspmMonitorGcp = "CspmMonitorGcp", /** CspmMonitorGithub */ @@ -6857,14 +6878,20 @@ export enum KnownOfferingType { DefenderCspmAws = "DefenderCspmAws", /** DefenderCspmGcp */ DefenderCspmGcp = "DefenderCspmGcp", - /** DefenderForDevOpsGithub */ - DefenderForDevOpsGithub = "DefenderForDevOpsGithub", - /** DefenderForDevOpsAzureDevOps */ - DefenderForDevOpsAzureDevOps = "DefenderForDevOpsAzureDevOps", /** CspmMonitorGitLab */ CspmMonitorGitLab = "CspmMonitorGitLab", - /** DefenderForDevOpsGitLab */ - DefenderForDevOpsGitLab = "DefenderForDevOpsGitLab", + /** CspmMonitorDockerHub */ + CspmMonitorDockerHub = "CspmMonitorDockerHub", + /** DefenderForContainersDockerHub */ + DefenderForContainersDockerHub = "DefenderForContainersDockerHub", + /** DefenderCspmDockerHub */ + DefenderCspmDockerHub = "DefenderCspmDockerHub", + /** CspmMonitorJFrog */ + CspmMonitorJFrog = "CspmMonitorJFrog", + /** DefenderForContainersJFrog */ + DefenderForContainersJFrog = "DefenderForContainersJFrog", + /** DefenderCspmJFrog */ + DefenderCspmJFrog = "DefenderCspmJFrog", } /** @@ -6876,7 +6903,6 @@ export enum KnownOfferingType { * **DefenderForContainersAws** \ * **DefenderForServersAws** \ * **DefenderForDatabasesAws** \ - * **InformationProtectionAws** \ * **CspmMonitorGcp** \ * **CspmMonitorGithub** \ * **CspmMonitorAzureDevOps** \ @@ -6885,10 +6911,13 @@ export enum KnownOfferingType { * **DefenderForDatabasesGcp** \ * **DefenderCspmAws** \ * **DefenderCspmGcp** \ - * **DefenderForDevOpsGithub** \ - * **DefenderForDevOpsAzureDevOps** \ * **CspmMonitorGitLab** \ - * **DefenderForDevOpsGitLab** + * **CspmMonitorDockerHub** \ + * **DefenderForContainersDockerHub** \ + * **DefenderCspmDockerHub** \ + * **CspmMonitorJFrog** \ + * **DefenderForContainersJFrog** \ + * **DefenderCspmJFrog** */ export type OfferingType = string; @@ -6904,6 +6933,10 @@ export enum KnownEnvironmentType { AzureDevOpsScope = "AzureDevOpsScope", /** GitlabScope */ GitlabScope = "GitlabScope", + /** DockerHubOrganization */ + DockerHubOrganization = "DockerHubOrganization", + /** JFrogArtifactory */ + JFrogArtifactory = "JFrogArtifactory", } /** @@ -6915,10 +6948,66 @@ export enum KnownEnvironmentType { * **GcpProject** \ * **GithubScope** \ * **AzureDevOpsScope** \ - * **GitlabScope** + * **GitlabScope** \ + * **DockerHubOrganization** \ + * **JFrogArtifactory** */ export type EnvironmentType = string; +/** Known values of {@link Origin} that the service accepts. */ +export enum KnownOrigin { + /** User */ + User = "user", + /** System */ + System = "system", + /** UserSystem */ + UserSystem = "user,system", +} + +/** + * Defines values for Origin. \ + * {@link KnownOrigin} can be used interchangeably with Origin, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **user** \ + * **system** \ + * **user,system** + */ +export type Origin = string; + +/** Known values of {@link SettingName} that the service accepts. */ +export enum KnownSettingName { + /** Name of the Defender for Storage Settings name. */ + Current = "current", +} + +/** + * Defines values for SettingName. \ + * {@link KnownSettingName} can be used interchangeably with SettingName, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **current**: Name of the Defender for Storage Settings name. + */ +export type SettingName = string; + +/** Known values of {@link BlobScanResultsOptions} that the service accepts. */ +export enum KnownBlobScanResultsOptions { + /** Write scan results on the blobs index tags. */ + BlobIndexTags = "blobIndexTags", + /** Do not write scan results on the blobs index tags. */ + None = "None", +} + +/** + * Defines values for BlobScanResultsOptions. \ + * {@link KnownBlobScanResultsOptions} can be used interchangeably with BlobScanResultsOptions, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **blobIndexTags**: Write scan results on the blobs index tags. \ + * **None**: Do not write scan results on the blobs index tags. + */ +export type BlobScanResultsOptions = string; + /** Known values of {@link ResourceStatus} that the service accepts. */ export enum KnownResourceStatus { /** This assessment on the resource is healthy */ @@ -7162,260 +7251,23 @@ export enum KnownAdditionalWorkspaceDataType { */ export type AdditionalWorkspaceDataType = string; -/** Known values of {@link Direction} that the service accepts. */ -export enum KnownDirection { - /** Inbound */ - Inbound = "Inbound", - /** Outbound */ - Outbound = "Outbound", -} - -/** - * Defines values for Direction. \ - * {@link KnownDirection} can be used interchangeably with Direction, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Inbound** \ - * **Outbound** - */ -export type Direction = string; - -/** Known values of {@link TransportProtocol} that the service accepts. */ -export enum KnownTransportProtocol { - /** TCP */ - TCP = "TCP", - /** UDP */ - UDP = "UDP", -} - -/** - * Defines values for TransportProtocol. \ - * {@link KnownTransportProtocol} can be used interchangeably with TransportProtocol, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **TCP** \ - * **UDP** - */ -export type TransportProtocol = string; - -/** Known values of {@link ConnectionType} that the service accepts. */ -export enum KnownConnectionType { - /** Internal */ - Internal = "Internal", - /** External */ - External = "External", -} - -/** - * Defines values for ConnectionType. \ - * {@link KnownConnectionType} can be used interchangeably with ConnectionType, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Internal** \ - * **External** - */ -export type ConnectionType = string; - -/** Known values of {@link EnforcementMode} that the service accepts. */ -export enum KnownEnforcementMode { - /** Audit */ - Audit = "Audit", - /** Enforce */ - Enforce = "Enforce", - /** None */ - None = "None", -} - -/** - * Defines values for EnforcementMode. \ - * {@link KnownEnforcementMode} can be used interchangeably with EnforcementMode, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Audit** \ - * **Enforce** \ - * **None** - */ -export type EnforcementMode = string; - -/** Known values of {@link ConfigurationStatus} that the service accepts. */ -export enum KnownConfigurationStatus { - /** Configured */ - Configured = "Configured", - /** NotConfigured */ - NotConfigured = "NotConfigured", - /** InProgress */ - InProgress = "InProgress", - /** Failed */ - Failed = "Failed", - /** NoStatus */ - NoStatus = "NoStatus", -} - -/** - * Defines values for ConfigurationStatus. \ - * {@link KnownConfigurationStatus} can be used interchangeably with ConfigurationStatus, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Configured** \ - * **NotConfigured** \ - * **InProgress** \ - * **Failed** \ - * **NoStatus** - */ -export type ConfigurationStatus = string; - -/** Known values of {@link RecommendationStatus} that the service accepts. */ -export enum KnownRecommendationStatus { - /** Recommended */ - Recommended = "Recommended", - /** NotRecommended */ - NotRecommended = "NotRecommended", - /** NotAvailable */ - NotAvailable = "NotAvailable", - /** NoStatus */ - NoStatus = "NoStatus", -} - -/** - * Defines values for RecommendationStatus. \ - * {@link KnownRecommendationStatus} can be used interchangeably with RecommendationStatus, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Recommended** \ - * **NotRecommended** \ - * **NotAvailable** \ - * **NoStatus** - */ -export type RecommendationStatus = string; - -/** Known values of {@link AdaptiveApplicationControlIssue} that the service accepts. */ -export enum KnownAdaptiveApplicationControlIssue { - /** ViolationsAudited */ - ViolationsAudited = "ViolationsAudited", - /** ViolationsBlocked */ - ViolationsBlocked = "ViolationsBlocked", - /** MsiAndScriptViolationsAudited */ - MsiAndScriptViolationsAudited = "MsiAndScriptViolationsAudited", - /** MsiAndScriptViolationsBlocked */ - MsiAndScriptViolationsBlocked = "MsiAndScriptViolationsBlocked", - /** ExecutableViolationsAudited */ - ExecutableViolationsAudited = "ExecutableViolationsAudited", - /** RulesViolatedManually */ - RulesViolatedManually = "RulesViolatedManually", -} - -/** - * Defines values for AdaptiveApplicationControlIssue. \ - * {@link KnownAdaptiveApplicationControlIssue} can be used interchangeably with AdaptiveApplicationControlIssue, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **ViolationsAudited** \ - * **ViolationsBlocked** \ - * **MsiAndScriptViolationsAudited** \ - * **MsiAndScriptViolationsBlocked** \ - * **ExecutableViolationsAudited** \ - * **RulesViolatedManually** - */ -export type AdaptiveApplicationControlIssue = string; - -/** Known values of {@link SourceSystem} that the service accepts. */ -export enum KnownSourceSystem { - /** AzureAppLocker */ - AzureAppLocker = "Azure_AppLocker", - /** AzureAuditD */ - AzureAuditD = "Azure_AuditD", - /** NonAzureAppLocker */ - NonAzureAppLocker = "NonAzure_AppLocker", - /** NonAzureAuditD */ - NonAzureAuditD = "NonAzure_AuditD", - /** None */ - None = "None", -} - -/** - * Defines values for SourceSystem. \ - * {@link KnownSourceSystem} can be used interchangeably with SourceSystem, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Azure_AppLocker** \ - * **Azure_AuditD** \ - * **NonAzure_AppLocker** \ - * **NonAzure_AuditD** \ - * **None** - */ -export type SourceSystem = string; - -/** Known values of {@link RecommendationAction} that the service accepts. */ -export enum KnownRecommendationAction { - /** Recommended */ - Recommended = "Recommended", - /** Add */ - Add = "Add", - /** Remove */ - Remove = "Remove", -} - -/** - * Defines values for RecommendationAction. \ - * {@link KnownRecommendationAction} can be used interchangeably with RecommendationAction, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Recommended** \ - * **Add** \ - * **Remove** - */ -export type RecommendationAction = string; - -/** Known values of {@link EnforcementSupport} that the service accepts. */ -export enum KnownEnforcementSupport { - /** Supported */ - Supported = "Supported", - /** NotSupported */ - NotSupported = "NotSupported", - /** Unknown */ - Unknown = "Unknown", -} - -/** - * Defines values for EnforcementSupport. \ - * {@link KnownEnforcementSupport} can be used interchangeably with EnforcementSupport, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Supported** \ - * **NotSupported** \ - * **Unknown** - */ -export type EnforcementSupport = string; - -/** Known values of {@link FileType} that the service accepts. */ -export enum KnownFileType { - /** Exe */ - Exe = "Exe", - /** Dll */ - Dll = "Dll", - /** Msi */ - Msi = "Msi", - /** Script */ - Script = "Script", - /** Executable */ - Executable = "Executable", - /** Unknown */ - Unknown = "Unknown", +/** Known values of {@link ConnectionType} that the service accepts. */ +export enum KnownConnectionType { + /** Internal */ + Internal = "Internal", + /** External */ + External = "External", } /** - * Defines values for FileType. \ - * {@link KnownFileType} can be used interchangeably with FileType, + * Defines values for ConnectionType. \ + * {@link KnownConnectionType} can be used interchangeably with ConnectionType, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Exe** \ - * **Dll** \ - * **Msi** \ - * **Script** \ - * **Executable** \ - * **Unknown** + * **Internal** \ + * **External** */ -export type FileType = string; +export type ConnectionType = string; /** Known values of {@link SecurityFamily} that the service accepts. */ export enum KnownSecurityFamily { @@ -8433,96 +8285,435 @@ export enum KnownResourcesCoverageStatus { } /** - * Defines values for ResourcesCoverageStatus. \ - * {@link KnownResourcesCoverageStatus} can be used interchangeably with ResourcesCoverageStatus, + * Defines values for ResourcesCoverageStatus. \ + * {@link KnownResourcesCoverageStatus} can be used interchangeably with ResourcesCoverageStatus, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **FullyCovered**: This value indicates that all resources associated with the subscription have the Defender plan enabled. \ + * **PartiallyCovered**: This value indicates that some resources under the subscription have the Defender plan enabled, while others have it disabled. There is a mixed coverage status among resources. \ + * **NotCovered**: This value indicates that the Defender plan is disabled for all resources under the subscription. None of the resources are protected by the Defender plan. + */ +export type ResourcesCoverageStatus = string; + +/** Known values of {@link IsEnabled} that the service accepts. */ +export enum KnownIsEnabled { + /** Indicates the extension is enabled */ + True = "True", + /** Indicates the extension is disabled */ + False = "False", +} + +/** + * Defines values for IsEnabled. \ + * {@link KnownIsEnabled} can be used interchangeably with IsEnabled, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **True**: Indicates the extension is enabled \ + * **False**: Indicates the extension is disabled + */ +export type IsEnabled = string; + +/** Known values of {@link Code} that the service accepts. */ +export enum KnownCode { + /** Extension was created\/updated successfully. */ + Succeeded = "Succeeded", + /** Extension was not created\/updated successfully. See operation status message for more details. */ + Failed = "Failed", +} + +/** + * Defines values for Code. \ + * {@link KnownCode} can be used interchangeably with Code, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Succeeded**: Extension was created\/updated successfully. \ + * **Failed**: Extension was not created\/updated successfully. See operation status message for more details. + */ +export type Code = string; + +/** Known values of {@link StandardType} that the service accepts. */ +export enum KnownStandardType { + /** Custom */ + Custom = "Custom", + /** Default */ + Default = "Default", + /** Compliance */ + Compliance = "Compliance", +} + +/** + * Defines values for StandardType. \ + * {@link KnownStandardType} can be used interchangeably with StandardType, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Custom** \ + * **Default** \ + * **Compliance** + */ +export type StandardType = string; + +/** Known values of {@link StandardSupportedCloud} that the service accepts. */ +export enum KnownStandardSupportedCloud { + /** Azure */ + Azure = "Azure", + /** AWS */ + AWS = "AWS", + /** GCP */ + GCP = "GCP", +} + +/** + * Defines values for StandardSupportedCloud. \ + * {@link KnownStandardSupportedCloud} can be used interchangeably with StandardSupportedCloud, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Azure** \ + * **AWS** \ + * **GCP** + */ +export type StandardSupportedCloud = string; + +/** Known values of {@link Effect} that the service accepts. */ +export enum KnownEffect { + /** Audit */ + Audit = "Audit", + /** Exempt */ + Exempt = "Exempt", + /** Attest */ + Attest = "Attest", +} + +/** + * Defines values for Effect. \ + * {@link KnownEffect} can be used interchangeably with Effect, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Audit** \ + * **Exempt** \ + * **Attest** + */ +export type Effect = string; + +/** Known values of {@link ExemptionCategory} that the service accepts. */ +export enum KnownExemptionCategory { + /** Waiver */ + Waiver = "waiver", + /** Mitigated */ + Mitigated = "mitigated", +} + +/** + * Defines values for ExemptionCategory. \ + * {@link KnownExemptionCategory} can be used interchangeably with ExemptionCategory, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **waiver** \ + * **mitigated** + */ +export type ExemptionCategory = string; + +/** Known values of {@link AttestationComplianceState} that the service accepts. */ +export enum KnownAttestationComplianceState { + /** Unknown */ + Unknown = "unknown", + /** Compliant */ + Compliant = "compliant", + /** NonCompliant */ + NonCompliant = "nonCompliant", +} + +/** + * Defines values for AttestationComplianceState. \ + * {@link KnownAttestationComplianceState} can be used interchangeably with AttestationComplianceState, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **unknown** \ + * **compliant** \ + * **nonCompliant** + */ +export type AttestationComplianceState = string; + +/** Known values of {@link RecommendationSupportedClouds} that the service accepts. */ +export enum KnownRecommendationSupportedClouds { + /** Azure */ + Azure = "Azure", + /** AWS */ + AWS = "AWS", + /** GCP */ + GCP = "GCP", +} + +/** + * Defines values for RecommendationSupportedClouds. \ + * {@link KnownRecommendationSupportedClouds} can be used interchangeably with RecommendationSupportedClouds, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Azure** \ + * **AWS** \ + * **GCP** + */ +export type RecommendationSupportedClouds = string; + +/** Known values of {@link SecurityIssue} that the service accepts. */ +export enum KnownSecurityIssue { + /** Vulnerability */ + Vulnerability = "Vulnerability", + /** ExcessivePermissions */ + ExcessivePermissions = "ExcessivePermissions", + /** AnonymousAccess */ + AnonymousAccess = "AnonymousAccess", + /** NetworkExposure */ + NetworkExposure = "NetworkExposure", + /** TrafficEncryption */ + TrafficEncryption = "TrafficEncryption", + /** BestPractices */ + BestPractices = "BestPractices", +} + +/** + * Defines values for SecurityIssue. \ + * {@link KnownSecurityIssue} can be used interchangeably with SecurityIssue, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Vulnerability** \ + * **ExcessivePermissions** \ + * **AnonymousAccess** \ + * **NetworkExposure** \ + * **TrafficEncryption** \ + * **BestPractices** + */ +export type SecurityIssue = string; + +/** Known values of {@link 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 - * **FullyCovered**: This value indicates that all resources associated with the subscription have the Defender plan enabled. \ - * **PartiallyCovered**: This value indicates that some resources under the subscription have the Defender plan enabled, while others have it disabled. There is a mixed coverage status among resources. \ - * **NotCovered**: This value indicates that the Defender plan is disabled for all resources under the subscription. None of the resources are protected by the Defender plan. + * **Disabled** \ + * **Enabled** */ -export type ResourcesCoverageStatus = string; +export type InheritFromParentState = string; -/** Known values of {@link IsEnabled} that the service accepts. */ -export enum KnownIsEnabled { - /** Indicates the extension is enabled */ - True = "True", - /** Indicates the extension is disabled */ - False = "False", +/** Known values of {@link AutoDiscovery} that the service accepts. */ +export enum KnownAutoDiscovery { + /** Disabled */ + Disabled = "Disabled", + /** Enabled */ + Enabled = "Enabled", + /** NotApplicable */ + NotApplicable = "NotApplicable", } /** - * Defines values for IsEnabled. \ - * {@link KnownIsEnabled} can be used interchangeably with IsEnabled, + * Defines values for AutoDiscovery. \ + * {@link KnownAutoDiscovery} can be used interchangeably with AutoDiscovery, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **True**: Indicates the extension is enabled \ - * **False**: Indicates the extension is disabled + * **Disabled** \ + * **Enabled** \ + * **NotApplicable** */ -export type IsEnabled = string; +export type AutoDiscovery = string; -/** Known values of {@link Code} that the service accepts. */ -export enum KnownCode { - /** Extension was created\/updated successfully. */ - Succeeded = "Succeeded", - /** Extension was not created\/updated successfully. See operation status message for more details. */ - Failed = "Failed", +/** Known values of {@link AgentlessEnablement} that the service accepts. */ +export enum KnownAgentlessEnablement { + /** Disabled */ + Disabled = "Disabled", + /** Enabled */ + Enabled = "Enabled", + /** NotApplicable */ + NotApplicable = "NotApplicable", } /** - * Defines values for Code. \ - * {@link KnownCode} can be used interchangeably with Code, + * Defines values for AgentlessEnablement. \ + * {@link KnownAgentlessEnablement} can be used interchangeably with AgentlessEnablement, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Succeeded**: Extension was created\/updated successfully. \ - * **Failed**: Extension was not created\/updated successfully. See operation status message for more details. + * **Disabled** \ + * **Enabled** \ + * **NotApplicable** */ -export type Code = string; +export type AgentlessEnablement = string; -/** Known values of {@link MinimalSeverity} that the service accepts. */ -export enum KnownMinimalSeverity { - /** Get notifications on new alerts with High severity */ - High = "High", - /** Get notifications on new alerts with Medium or High severity */ - Medium = "Medium", - /** Get notifications on new alerts with Low, Medium or High severity */ - Low = "Low", +/** Known values of {@link InventoryListKind} that the service accepts. */ +export enum KnownInventoryListKind { + /** Inclusion */ + Inclusion = "Inclusion", + /** Exclusion */ + Exclusion = "Exclusion", } /** - * Defines values for MinimalSeverity. \ - * {@link KnownMinimalSeverity} can be used interchangeably with MinimalSeverity, + * Defines values for InventoryListKind. \ + * {@link KnownInventoryListKind} can be used interchangeably with InventoryListKind, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **High**: Get notifications on new alerts with High severity \ - * **Medium**: Get notifications on new alerts with Medium or High severity \ - * **Low**: Get notifications on new alerts with Low, Medium or High severity + * **Inclusion** \ + * **Exclusion** */ -export type MinimalSeverity = string; - -/** Known values of {@link MinimalRiskLevel} that the service accepts. */ -export enum KnownMinimalRiskLevel { - /** Get notifications on new attack paths with Critical risk level */ - Critical = "Critical", - /** Get notifications on new attack paths with High or Critical risk level */ - High = "High", - /** Get notifications on new attach paths with Medium, High or Critical risk level */ - Medium = "Medium", - /** Get notifications on new attach paths with Low, Medium, High or Critical risk level */ - Low = "Low", +export type InventoryListKind = string; + +/** Known values of {@link InventoryKind} that the service accepts. */ +export enum KnownInventoryKind { + /** AzureDevOpsOrganization */ + AzureDevOpsOrganization = "AzureDevOpsOrganization", + /** AzureDevOpsProject */ + AzureDevOpsProject = "AzureDevOpsProject", + /** AzureDevOpsRepository */ + AzureDevOpsRepository = "AzureDevOpsRepository", + /** GitHubOwner */ + GitHubOwner = "GitHubOwner", + /** GitHubRepository */ + GitHubRepository = "GitHubRepository", } /** - * Defines values for MinimalRiskLevel. \ - * {@link KnownMinimalRiskLevel} can be used interchangeably with MinimalRiskLevel, + * Defines values for InventoryKind. \ + * {@link KnownInventoryKind} can be used interchangeably with InventoryKind, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Critical**: Get notifications on new attack paths with Critical risk level \ - * **High**: Get notifications on new attack paths with High or Critical risk level \ - * **Medium**: Get notifications on new attach paths with Medium, High or Critical risk level \ - * **Low**: Get notifications on new attach paths with Low, Medium, High or Critical risk level + * **AzureDevOpsOrganization** \ + * **AzureDevOpsProject** \ + * **AzureDevOpsRepository** \ + * **GitHubOwner** \ + * **GitHubRepository** */ -export type MinimalRiskLevel = string; +export type InventoryKind = string; /** Known values of {@link GovernanceRuleConditionOperator} that the service accepts. */ export enum KnownGovernanceRuleConditionOperator { @@ -8563,23 +8754,50 @@ export enum KnownApplicationConditionOperator { */ export type ApplicationConditionOperator = string; -/** Known values of {@link DesiredOnboardingState} that the service accepts. */ -export enum KnownDesiredOnboardingState { - /** Disabled */ - Disabled = "Disabled", - /** Enabled */ - Enabled = "Enabled", +/** Known values of {@link MinimalSeverity} that the service accepts. */ +export enum KnownMinimalSeverity { + /** Get notifications on new alerts with High severity */ + High = "High", + /** Get notifications on new alerts with Medium or High severity */ + Medium = "Medium", + /** Get notifications on new alerts with Low, Medium or High severity */ + Low = "Low", } /** - * Defines values for DesiredOnboardingState. \ - * {@link KnownDesiredOnboardingState} can be used interchangeably with DesiredOnboardingState, + * Defines values for MinimalSeverity. \ + * {@link KnownMinimalSeverity} can be used interchangeably with MinimalSeverity, * this enum contains the known values that the service supports. * ### Known values supported by the service - * **Disabled** \ - * **Enabled** + * **High**: Get notifications on new alerts with High severity \ + * **Medium**: Get notifications on new alerts with Medium or High severity \ + * **Low**: Get notifications on new alerts with Low, Medium or High severity */ -export type DesiredOnboardingState = string; +export type MinimalSeverity = string; + +/** Known values of {@link MinimalRiskLevel} that the service accepts. */ +export enum KnownMinimalRiskLevel { + /** Get notifications on new attack paths with Critical risk level */ + Critical = "Critical", + /** Get notifications on new attack paths with High or Critical risk level */ + High = "High", + /** Get notifications on new attach paths with Medium, High or Critical risk level */ + Medium = "Medium", + /** Get notifications on new attach paths with Low, Medium, High or Critical risk level */ + Low = "Low", +} + +/** + * Defines values for MinimalRiskLevel. \ + * {@link KnownMinimalRiskLevel} can be used interchangeably with MinimalRiskLevel, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Critical**: Get notifications on new attack paths with Critical risk level \ + * **High**: Get notifications on new attack paths with High or Critical risk level \ + * **Medium**: Get notifications on new attach paths with Medium, High or Critical risk level \ + * **Low**: Get notifications on new attach paths with Low, Medium, High or Critical risk level + */ +export type MinimalRiskLevel = string; /** Known values of {@link OrganizationMembershipType} that the service accepts. */ export enum KnownOrganizationMembershipType { @@ -8599,6 +8817,21 @@ export enum KnownOrganizationMembershipType { */ export type OrganizationMembershipType = string; +/** Known values of {@link ScanningMode} that the service accepts. */ +export enum KnownScanningMode { + /** Default */ + Default = "Default", +} + +/** + * Defines values for ScanningMode. \ + * {@link KnownScanningMode} can be used interchangeably with ScanningMode, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Default** + */ +export type ScanningMode = string; + /** Known values of {@link Type} that the service accepts. */ export enum KnownType { /** Qualys */ @@ -8635,21 +8868,6 @@ export enum KnownSubPlan { */ export type SubPlan = string; -/** Known values of {@link ScanningMode} that the service accepts. */ -export enum KnownScanningMode { - /** Default */ - Default = "Default", -} - -/** - * Defines values for ScanningMode. \ - * {@link KnownScanningMode} can be used interchangeably with ScanningMode, - * this enum contains the known values that the service supports. - * ### Known values supported by the service - * **Default** - */ -export type ScanningMode = string; - /** Known values of {@link AadConnectivityState} that the service accepts. */ export enum KnownAadConnectivityState { /** Discovered */ @@ -8724,46 +8942,47 @@ export enum KnownServerVulnerabilityAssessmentsAzureSettingSelectedProvider { * **MdeTvm**: Microsoft Defender for Endpoints threat and vulnerability management. */ export type ServerVulnerabilityAssessmentsAzureSettingSelectedProvider = string; + +/** Known values of {@link DesiredOnboardingState} that the service accepts. */ +export enum KnownDesiredOnboardingState { + /** Disabled */ + Disabled = "Disabled", + /** Enabled */ + Enabled = "Enabled", +} + +/** + * Defines values for DesiredOnboardingState. \ + * {@link KnownDesiredOnboardingState} can be used interchangeably with DesiredOnboardingState, + * this enum contains the known values that the service supports. + * ### Known values supported by the service + * **Disabled** \ + * **Enabled** + */ +export type DesiredOnboardingState = string; /** Defines values for Rank. */ export type Rank = "None" | "Low" | "Medium" | "High" | "Critical"; /** Defines values for RuleState. */ export type RuleState = "Enabled" | "Disabled" | "Expired"; /** Optional parameters. */ -export interface LocationsListOptionalParams - extends coreClient.OperationOptions {} +export interface LocationsListOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the list operation. */ export type LocationsListResponse = AscLocationList; /** Optional parameters. */ -export interface LocationsGetOptionalParams - extends coreClient.OperationOptions {} +export interface LocationsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ export type LocationsGetResponse = AscLocation; /** Optional parameters. */ -export interface LocationsListNextOptionalParams - extends coreClient.OperationOptions {} +export interface LocationsListNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ export type LocationsListNextResponse = AscLocationList; -/** Optional parameters. */ -export interface OperationsListOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the list operation. */ -export type OperationsListResponse = OperationList; - -/** Optional parameters. */ -export interface OperationsListNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listNext operation. */ -export type OperationsListNextResponse = OperationList; - /** Optional parameters. */ export interface TasksListOptionalParams extends coreClient.OperationOptions { /** OData filter. Optional. */ @@ -8774,8 +8993,7 @@ export interface TasksListOptionalParams extends coreClient.OperationOptions { export type TasksListResponse = SecurityTaskList; /** Optional parameters. */ -export interface TasksListByHomeRegionOptionalParams - extends coreClient.OperationOptions { +export interface TasksListByHomeRegionOptionalParams extends coreClient.OperationOptions { /** OData filter. Optional. */ filter?: string; } @@ -8784,8 +9002,7 @@ export interface TasksListByHomeRegionOptionalParams export type TasksListByHomeRegionResponse = SecurityTaskList; /** Optional parameters. */ -export interface TasksGetSubscriptionLevelTaskOptionalParams - extends coreClient.OperationOptions {} +export interface TasksGetSubscriptionLevelTaskOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the getSubscriptionLevelTask operation. */ export type TasksGetSubscriptionLevelTaskResponse = SecurityTask; @@ -8795,8 +9012,7 @@ export interface TasksUpdateSubscriptionLevelTaskStateOptionalParams extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface TasksListByResourceGroupOptionalParams - extends coreClient.OperationOptions { +export interface TasksListByResourceGroupOptionalParams extends coreClient.OperationOptions { /** OData filter. Optional. */ filter?: string; } @@ -8805,8 +9021,7 @@ export interface TasksListByResourceGroupOptionalParams export type TasksListByResourceGroupResponse = SecurityTaskList; /** Optional parameters. */ -export interface TasksGetResourceGroupLevelTaskOptionalParams - extends coreClient.OperationOptions {} +export interface TasksGetResourceGroupLevelTaskOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the getResourceGroupLevelTask operation. */ export type TasksGetResourceGroupLevelTaskResponse = SecurityTask; @@ -8816,43 +9031,37 @@ export interface TasksUpdateResourceGroupLevelTaskStateOptionalParams extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface TasksListNextOptionalParams - extends coreClient.OperationOptions {} +export interface TasksListNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ export type TasksListNextResponse = SecurityTaskList; /** Optional parameters. */ -export interface TasksListByHomeRegionNextOptionalParams - extends coreClient.OperationOptions {} +export interface TasksListByHomeRegionNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByHomeRegionNext operation. */ export type TasksListByHomeRegionNextResponse = SecurityTaskList; /** Optional parameters. */ -export interface TasksListByResourceGroupNextOptionalParams - extends coreClient.OperationOptions {} +export interface TasksListByResourceGroupNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByResourceGroupNext operation. */ export type TasksListByResourceGroupNextResponse = SecurityTaskList; /** Optional parameters. */ -export interface AutoProvisioningSettingsListOptionalParams - extends coreClient.OperationOptions {} +export interface AutoProvisioningSettingsListOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the list operation. */ export type AutoProvisioningSettingsListResponse = AutoProvisioningSettingList; /** Optional parameters. */ -export interface AutoProvisioningSettingsGetOptionalParams - extends coreClient.OperationOptions {} +export interface AutoProvisioningSettingsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ export type AutoProvisioningSettingsGetResponse = AutoProvisioningSetting; /** Optional parameters. */ -export interface AutoProvisioningSettingsCreateOptionalParams - extends coreClient.OperationOptions {} +export interface AutoProvisioningSettingsCreateOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the create operation. */ export type AutoProvisioningSettingsCreateResponse = AutoProvisioningSetting; @@ -8862,26 +9071,22 @@ export interface AutoProvisioningSettingsListNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ -export type AutoProvisioningSettingsListNextResponse = - AutoProvisioningSettingList; +export type AutoProvisioningSettingsListNextResponse = AutoProvisioningSettingList; /** Optional parameters. */ -export interface CompliancesListOptionalParams - extends coreClient.OperationOptions {} +export interface CompliancesListOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the list operation. */ export type CompliancesListResponse = ComplianceList; /** Optional parameters. */ -export interface CompliancesGetOptionalParams - extends coreClient.OperationOptions {} +export interface CompliancesGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ export type CompliancesGetResponse = Compliance; /** Optional parameters. */ -export interface CompliancesListNextOptionalParams - extends coreClient.OperationOptions {} +export interface CompliancesListNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ export type CompliancesListNextResponse = ComplianceList; @@ -8891,166 +9096,91 @@ export interface InformationProtectionPoliciesGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type InformationProtectionPoliciesGetResponse = - InformationProtectionPolicy; +export type InformationProtectionPoliciesGetResponse = InformationProtectionPolicy; /** Optional parameters. */ export interface InformationProtectionPoliciesCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the createOrUpdate operation. */ -export type InformationProtectionPoliciesCreateOrUpdateResponse = - InformationProtectionPolicy; +export type InformationProtectionPoliciesCreateOrUpdateResponse = InformationProtectionPolicy; /** Optional parameters. */ export interface InformationProtectionPoliciesListOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the list operation. */ -export type InformationProtectionPoliciesListResponse = - InformationProtectionPolicyList; +export type InformationProtectionPoliciesListResponse = InformationProtectionPolicyList; /** Optional parameters. */ export interface InformationProtectionPoliciesListNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ -export type InformationProtectionPoliciesListNextResponse = - InformationProtectionPolicyList; +export type InformationProtectionPoliciesListNextResponse = InformationProtectionPolicyList; /** Optional parameters. */ -export interface WorkspaceSettingsListOptionalParams - extends coreClient.OperationOptions {} +export interface WorkspaceSettingsListOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the list operation. */ export type WorkspaceSettingsListResponse = WorkspaceSettingList; /** Optional parameters. */ -export interface WorkspaceSettingsGetOptionalParams - extends coreClient.OperationOptions {} +export interface WorkspaceSettingsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ export type WorkspaceSettingsGetResponse = WorkspaceSetting; /** Optional parameters. */ -export interface WorkspaceSettingsCreateOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the create operation. */ -export type WorkspaceSettingsCreateResponse = WorkspaceSetting; - -/** Optional parameters. */ -export interface WorkspaceSettingsUpdateOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the update operation. */ -export type WorkspaceSettingsUpdateResponse = WorkspaceSetting; - -/** Optional parameters. */ -export interface WorkspaceSettingsDeleteOptionalParams - extends coreClient.OperationOptions {} - -/** Optional parameters. */ -export interface WorkspaceSettingsListNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listNext operation. */ -export type WorkspaceSettingsListNextResponse = WorkspaceSettingList; - -/** Optional parameters. */ -export interface AlertsSuppressionRulesListOptionalParams - extends coreClient.OperationOptions { - /** Type of the alert to get rules for */ - alertType?: string; -} - -/** Contains response data for the list operation. */ -export type AlertsSuppressionRulesListResponse = AlertsSuppressionRulesList; - -/** Optional parameters. */ -export interface AlertsSuppressionRulesGetOptionalParams - extends coreClient.OperationOptions {} +export interface WorkspaceSettingsCreateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type AlertsSuppressionRulesGetResponse = AlertsSuppressionRule; +/** Contains response data for the create operation. */ +export type WorkspaceSettingsCreateResponse = WorkspaceSetting; /** Optional parameters. */ -export interface AlertsSuppressionRulesUpdateOptionalParams - extends coreClient.OperationOptions {} +export interface WorkspaceSettingsUpdateOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the update operation. */ -export type AlertsSuppressionRulesUpdateResponse = AlertsSuppressionRule; +export type WorkspaceSettingsUpdateResponse = WorkspaceSetting; /** Optional parameters. */ -export interface AlertsSuppressionRulesDeleteOptionalParams - extends coreClient.OperationOptions {} +export interface WorkspaceSettingsDeleteOptionalParams extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface AlertsSuppressionRulesListNextOptionalParams - extends coreClient.OperationOptions {} +export interface WorkspaceSettingsListNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ -export type AlertsSuppressionRulesListNextResponse = AlertsSuppressionRulesList; +export type WorkspaceSettingsListNextResponse = WorkspaceSettingList; /** Optional parameters. */ -export interface AutomationsListOptionalParams - extends coreClient.OperationOptions {} +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 AutomationsListResponse = AutomationList; - -/** Optional parameters. */ -export interface AutomationsListByResourceGroupOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByResourceGroup operation. */ -export type AutomationsListByResourceGroupResponse = AutomationList; +export type AlertsSuppressionRulesListResponse = AlertsSuppressionRulesList; /** Optional parameters. */ -export interface AutomationsGetOptionalParams - extends coreClient.OperationOptions {} +export interface AlertsSuppressionRulesGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type AutomationsGetResponse = Automation; - -/** Optional parameters. */ -export interface AutomationsCreateOrUpdateOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the createOrUpdate operation. */ -export type AutomationsCreateOrUpdateResponse = Automation; +export type AlertsSuppressionRulesGetResponse = AlertsSuppressionRule; /** Optional parameters. */ -export interface AutomationsUpdateOptionalParams - extends coreClient.OperationOptions {} +export interface AlertsSuppressionRulesUpdateOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the update operation. */ -export type AutomationsUpdateResponse = Automation; - -/** Optional parameters. */ -export interface AutomationsDeleteOptionalParams - extends coreClient.OperationOptions {} +export type AlertsSuppressionRulesUpdateResponse = AlertsSuppressionRule; /** Optional parameters. */ -export interface AutomationsValidateOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the validate operation. */ -export type AutomationsValidateResponse = AutomationValidationStatus; +export interface AlertsSuppressionRulesDeleteOptionalParams extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface AutomationsListNextOptionalParams - extends coreClient.OperationOptions {} +export interface AlertsSuppressionRulesListNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ -export type AutomationsListNextResponse = AutomationList; - -/** Optional parameters. */ -export interface AutomationsListByResourceGroupNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByResourceGroupNext operation. */ -export type AutomationsListByResourceGroupNextResponse = AutomationList; +export type AlertsSuppressionRulesListNextResponse = AlertsSuppressionRulesList; /** Optional parameters. */ export interface RegulatoryComplianceStandardsListOptionalParams @@ -9060,24 +9190,21 @@ export interface RegulatoryComplianceStandardsListOptionalParams } /** Contains response data for the list operation. */ -export type RegulatoryComplianceStandardsListResponse = - RegulatoryComplianceStandardList; +export type RegulatoryComplianceStandardsListResponse = RegulatoryComplianceStandardList; /** Optional parameters. */ export interface RegulatoryComplianceStandardsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type RegulatoryComplianceStandardsGetResponse = - RegulatoryComplianceStandard; +export type RegulatoryComplianceStandardsGetResponse = RegulatoryComplianceStandard; /** Optional parameters. */ export interface RegulatoryComplianceStandardsListNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ -export type RegulatoryComplianceStandardsListNextResponse = - RegulatoryComplianceStandardList; +export type RegulatoryComplianceStandardsListNextResponse = RegulatoryComplianceStandardList; /** Optional parameters. */ export interface RegulatoryComplianceControlsListOptionalParams @@ -9087,24 +9214,21 @@ export interface RegulatoryComplianceControlsListOptionalParams } /** Contains response data for the list operation. */ -export type RegulatoryComplianceControlsListResponse = - RegulatoryComplianceControlList; +export type RegulatoryComplianceControlsListResponse = RegulatoryComplianceControlList; /** Optional parameters. */ export interface RegulatoryComplianceControlsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type RegulatoryComplianceControlsGetResponse = - RegulatoryComplianceControl; +export type RegulatoryComplianceControlsGetResponse = RegulatoryComplianceControl; /** Optional parameters. */ export interface RegulatoryComplianceControlsListNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ -export type RegulatoryComplianceControlsListNextResponse = - RegulatoryComplianceControlList; +export type RegulatoryComplianceControlsListNextResponse = RegulatoryComplianceControlList; /** Optional parameters. */ export interface RegulatoryComplianceAssessmentsListOptionalParams @@ -9114,124 +9238,79 @@ export interface RegulatoryComplianceAssessmentsListOptionalParams } /** Contains response data for the list operation. */ -export type RegulatoryComplianceAssessmentsListResponse = - RegulatoryComplianceAssessmentList; +export type RegulatoryComplianceAssessmentsListResponse = RegulatoryComplianceAssessmentList; /** Optional parameters. */ export interface RegulatoryComplianceAssessmentsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type RegulatoryComplianceAssessmentsGetResponse = - RegulatoryComplianceAssessment; +export type RegulatoryComplianceAssessmentsGetResponse = RegulatoryComplianceAssessment; /** Optional parameters. */ export interface RegulatoryComplianceAssessmentsListNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ -export type RegulatoryComplianceAssessmentsListNextResponse = - RegulatoryComplianceAssessmentList; +export type RegulatoryComplianceAssessmentsListNextResponse = RegulatoryComplianceAssessmentList; /** Optional parameters. */ -export interface SubAssessmentsListAllOptionalParams - extends coreClient.OperationOptions {} +export interface SubAssessmentsListAllOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listAll operation. */ export type SubAssessmentsListAllResponse = SecuritySubAssessmentList; /** Optional parameters. */ -export interface SubAssessmentsListOptionalParams - extends coreClient.OperationOptions {} +export interface SubAssessmentsListOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the list operation. */ export type SubAssessmentsListResponse = SecuritySubAssessmentList; /** Optional parameters. */ -export interface SubAssessmentsGetOptionalParams - extends coreClient.OperationOptions {} +export interface SubAssessmentsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ export type SubAssessmentsGetResponse = SecuritySubAssessment; /** Optional parameters. */ -export interface SubAssessmentsListAllNextOptionalParams - extends coreClient.OperationOptions {} +export interface SubAssessmentsListAllNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listAllNext operation. */ export type SubAssessmentsListAllNextResponse = SecuritySubAssessmentList; /** Optional parameters. */ -export interface SubAssessmentsListNextOptionalParams - extends coreClient.OperationOptions {} +export interface SubAssessmentsListNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ export type SubAssessmentsListNextResponse = SecuritySubAssessmentList; /** Optional parameters. */ -export interface ConnectorsListOptionalParams - extends coreClient.OperationOptions {} +export interface ConnectorsListOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the list operation. */ export type ConnectorsListResponse = ConnectorSettingList; /** Optional parameters. */ -export interface ConnectorsGetOptionalParams - extends coreClient.OperationOptions {} +export interface ConnectorsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ export type ConnectorsGetResponse = ConnectorSetting; /** Optional parameters. */ -export interface ConnectorsCreateOrUpdateOptionalParams - extends coreClient.OperationOptions {} +export interface ConnectorsCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the createOrUpdate operation. */ export type ConnectorsCreateOrUpdateResponse = ConnectorSetting; /** Optional parameters. */ -export interface ConnectorsDeleteOptionalParams - extends coreClient.OperationOptions {} +export interface ConnectorsDeleteOptionalParams extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface ConnectorsListNextOptionalParams - extends coreClient.OperationOptions {} +export interface ConnectorsListNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ export type ConnectorsListNextResponse = ConnectorSettingList; -/** Optional parameters. */ -export interface SecurityContactsListOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the list operation. */ -export type SecurityContactsListResponse = SecurityContactList; - -/** Optional parameters. */ -export interface SecurityContactsGetOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the get operation. */ -export type SecurityContactsGetResponse = SecurityContact; - -/** Optional parameters. */ -export interface SecurityContactsCreateOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the create operation. */ -export type SecurityContactsCreateResponse = SecurityContact; - -/** Optional parameters. */ -export interface SecurityContactsDeleteOptionalParams - extends coreClient.OperationOptions {} - -/** Optional parameters. */ -export interface SecurityContactsListNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listNext operation. */ -export type SecurityContactsListNextResponse = SecurityContactList; - /** Optional parameters. */ export interface SoftwareInventoriesListByExtendedResourceOptionalParams extends coreClient.OperationOptions {} @@ -9247,8 +9326,7 @@ export interface SoftwareInventoriesListBySubscriptionOptionalParams export type SoftwareInventoriesListBySubscriptionResponse = SoftwaresList; /** Optional parameters. */ -export interface SoftwareInventoriesGetOptionalParams - extends coreClient.OperationOptions {} +export interface SoftwareInventoriesGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ export type SoftwareInventoriesGetResponse = Software; @@ -9258,8 +9336,7 @@ export interface SoftwareInventoriesListByExtendedResourceNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByExtendedResourceNext operation. */ -export type SoftwareInventoriesListByExtendedResourceNextResponse = - SoftwaresList; +export type SoftwareInventoriesListByExtendedResourceNextResponse = SoftwaresList; /** Optional parameters. */ export interface SoftwareInventoriesListBySubscriptionNextOptionalParams @@ -9269,8 +9346,7 @@ export interface SoftwareInventoriesListBySubscriptionNextOptionalParams export type SoftwareInventoriesListBySubscriptionNextResponse = SoftwaresList; /** Optional parameters. */ -export interface CustomAssessmentAutomationsGetOptionalParams - extends coreClient.OperationOptions {} +export interface CustomAssessmentAutomationsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ export type CustomAssessmentAutomationsGetResponse = CustomAssessmentAutomation; @@ -9280,8 +9356,7 @@ export interface CustomAssessmentAutomationsCreateOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the create operation. */ -export type CustomAssessmentAutomationsCreateResponse = - CustomAssessmentAutomation; +export type CustomAssessmentAutomationsCreateResponse = CustomAssessmentAutomation; /** Optional parameters. */ export interface CustomAssessmentAutomationsDeleteOptionalParams @@ -9324,16 +9399,14 @@ export interface CustomEntityStoreAssignmentsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type CustomEntityStoreAssignmentsGetResponse = - CustomEntityStoreAssignment; +export type CustomEntityStoreAssignmentsGetResponse = CustomEntityStoreAssignment; /** Optional parameters. */ export interface CustomEntityStoreAssignmentsCreateOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the create operation. */ -export type CustomEntityStoreAssignmentsCreateResponse = - CustomEntityStoreAssignment; +export type CustomEntityStoreAssignmentsCreateResponse = CustomEntityStoreAssignment; /** Optional parameters. */ export interface CustomEntityStoreAssignmentsDeleteOptionalParams @@ -9372,29 +9445,25 @@ export type CustomEntityStoreAssignmentsListBySubscriptionNextResponse = CustomEntityStoreAssignmentsListResult; /** Optional parameters. */ -export interface MdeOnboardingsListOptionalParams - extends coreClient.OperationOptions {} +export interface MdeOnboardingsListOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the list operation. */ export type MdeOnboardingsListResponse = MdeOnboardingDataList; /** Optional parameters. */ -export interface MdeOnboardingsGetOptionalParams - extends coreClient.OperationOptions {} +export interface MdeOnboardingsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ export type MdeOnboardingsGetResponse = MdeOnboardingData; /** Optional parameters. */ -export interface GovernanceAssignmentsListOptionalParams - extends coreClient.OperationOptions {} +export interface GovernanceAssignmentsListOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the list operation. */ export type GovernanceAssignmentsListResponse = GovernanceAssignmentsList; /** Optional parameters. */ -export interface GovernanceAssignmentsGetOptionalParams - extends coreClient.OperationOptions {} +export interface GovernanceAssignmentsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ export type GovernanceAssignmentsGetResponse = GovernanceAssignment; @@ -9407,40 +9476,34 @@ export interface GovernanceAssignmentsCreateOrUpdateOptionalParams export type GovernanceAssignmentsCreateOrUpdateResponse = GovernanceAssignment; /** Optional parameters. */ -export interface GovernanceAssignmentsDeleteOptionalParams - extends coreClient.OperationOptions {} +export interface GovernanceAssignmentsDeleteOptionalParams extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface GovernanceAssignmentsListNextOptionalParams - extends coreClient.OperationOptions {} +export interface GovernanceAssignmentsListNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ export type GovernanceAssignmentsListNextResponse = GovernanceAssignmentsList; /** Optional parameters. */ -export interface GovernanceRulesListOptionalParams - extends coreClient.OperationOptions {} +export interface GovernanceRulesListOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the list operation. */ export type GovernanceRulesListResponse = GovernanceRuleList; /** Optional parameters. */ -export interface GovernanceRulesGetOptionalParams - extends coreClient.OperationOptions {} +export interface GovernanceRulesGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ export type GovernanceRulesGetResponse = GovernanceRule; /** Optional parameters. */ -export interface GovernanceRulesCreateOrUpdateOptionalParams - extends coreClient.OperationOptions {} +export interface GovernanceRulesCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the createOrUpdate operation. */ export type GovernanceRulesCreateOrUpdateResponse = GovernanceRule; /** Optional parameters. */ -export interface GovernanceRulesDeleteOptionalParams - extends coreClient.OperationOptions { +export interface GovernanceRulesDeleteOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ @@ -9448,8 +9511,7 @@ export interface GovernanceRulesDeleteOptionalParams } /** Optional parameters. */ -export interface GovernanceRulesExecuteOptionalParams - extends coreClient.OperationOptions { +export interface GovernanceRulesExecuteOptionalParams extends coreClient.OperationOptions { /** Execute governance rule over a given scope */ executeGovernanceRuleParams?: ExecuteGovernanceRuleParams; /** Delay to wait until next poll, in milliseconds. */ @@ -9466,47 +9528,40 @@ export interface GovernanceRulesOperationResultsOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the operationResults operation. */ -export type GovernanceRulesOperationResultsResponse = - OperationResultAutoGenerated; +export type GovernanceRulesOperationResultsResponse = OperationResultAutoGenerated; /** Optional parameters. */ -export interface GovernanceRulesListNextOptionalParams - extends coreClient.OperationOptions {} +export interface GovernanceRulesListNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ export type GovernanceRulesListNextResponse = GovernanceRuleList; /** Optional parameters. */ -export interface ApplicationsListOptionalParams - extends coreClient.OperationOptions {} +export interface ApplicationsListOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the list operation. */ export type ApplicationsListResponse = ApplicationsList; /** Optional parameters. */ -export interface ApplicationsListNextOptionalParams - extends coreClient.OperationOptions {} +export interface ApplicationsListNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ export type ApplicationsListNextResponse = ApplicationsList; /** Optional parameters. */ -export interface ApplicationGetOptionalParams - extends coreClient.OperationOptions {} +export interface ApplicationGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ export type ApplicationGetResponse = Application; /** Optional parameters. */ -export interface ApplicationCreateOrUpdateOptionalParams - extends coreClient.OperationOptions {} +export interface ApplicationCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the createOrUpdate operation. */ export type ApplicationCreateOrUpdateResponse = Application; /** Optional parameters. */ -export interface ApplicationDeleteOptionalParams - extends coreClient.OperationOptions {} +export interface ApplicationDeleteOptionalParams extends coreClient.OperationOptions {} /** Optional parameters. */ export interface SecurityConnectorApplicationsListOptionalParams @@ -9541,29 +9596,13 @@ export interface SecurityConnectorApplicationDeleteOptionalParams extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface DefenderForStorageGetOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the get operation. */ -export type DefenderForStorageGetResponse = DefenderForStorageSetting; - -/** Optional parameters. */ -export interface DefenderForStorageCreateOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the create operation. */ -export type DefenderForStorageCreateResponse = DefenderForStorageSetting; - -/** Optional parameters. */ -export interface SecurityOperatorsListOptionalParams - extends coreClient.OperationOptions {} +export interface SecurityOperatorsListOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the list operation. */ export type SecurityOperatorsListResponse = SecurityOperatorList; /** Optional parameters. */ -export interface SecurityOperatorsGetOptionalParams - extends coreClient.OperationOptions {} +export interface SecurityOperatorsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ export type SecurityOperatorsGetResponse = SecurityOperator; @@ -9576,8 +9615,7 @@ export interface SecurityOperatorsCreateOrUpdateOptionalParams export type SecurityOperatorsCreateOrUpdateResponse = SecurityOperator; /** Optional parameters. */ -export interface SecurityOperatorsDeleteOptionalParams - extends coreClient.OperationOptions {} +export interface SecurityOperatorsDeleteOptionalParams extends coreClient.OperationOptions {} /** Optional parameters. */ export interface SqlVulnerabilityAssessmentBaselineRulesCreateOrUpdateOptionalParams @@ -9587,8 +9625,7 @@ export interface SqlVulnerabilityAssessmentBaselineRulesCreateOrUpdateOptionalPa } /** Contains response data for the createOrUpdate operation. */ -export type SqlVulnerabilityAssessmentBaselineRulesCreateOrUpdateResponse = - RuleResults; +export type SqlVulnerabilityAssessmentBaselineRulesCreateOrUpdateResponse = RuleResults; /** Optional parameters. */ export interface SqlVulnerabilityAssessmentBaselineRulesGetOptionalParams @@ -9647,639 +9684,716 @@ export interface SqlVulnerabilityAssessmentScanResultsListOptionalParams export type SqlVulnerabilityAssessmentScanResultsListResponse = ScanResults; /** Optional parameters. */ -export interface UpdateSensitivitySettingsOptionalParams - extends coreClient.OperationOptions {} +export interface SensitivitySettingsCreateOrUpdateOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the createOrUpdate operation. */ +export type SensitivitySettingsCreateOrUpdateResponse = GetSensitivitySettingsResponse; + +/** Optional parameters. */ +export interface SensitivitySettingsGetOptionalParams extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type SensitivitySettingsGetResponse = GetSensitivitySettingsResponse; + +/** Optional parameters. */ +export interface SensitivitySettingsListOptionalParams extends coreClient.OperationOptions {} + +/** Contains response data for the list operation. */ +export type SensitivitySettingsListResponse = GetSensitivitySettingsListResponse; + +/** Optional parameters. */ +export interface HealthReportsListOptionalParams extends coreClient.OperationOptions {} + +/** Contains response data for the list operation. */ +export type HealthReportsListResponse = HealthReportsList; + +/** Optional parameters. */ +export interface HealthReportsGetOptionalParams extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type HealthReportsGetResponse = HealthReport; + +/** Optional parameters. */ +export interface HealthReportsListNextOptionalParams extends coreClient.OperationOptions {} + +/** Contains response data for the listNext operation. */ +export type HealthReportsListNextResponse = HealthReportsList; + +/** Optional parameters. */ +export interface AutomationsListOptionalParams extends coreClient.OperationOptions {} + +/** Contains response data for the list operation. */ +export type AutomationsListResponse = AutomationList; + +/** Optional parameters. */ +export interface AutomationsListByResourceGroupOptionalParams extends coreClient.OperationOptions {} + +/** Contains response data for the listByResourceGroup operation. */ +export type AutomationsListByResourceGroupResponse = AutomationList; + +/** Optional parameters. */ +export interface AutomationsGetOptionalParams extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type AutomationsGetResponse = Automation; + +/** Optional parameters. */ +export interface AutomationsCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} + +/** Contains response data for the createOrUpdate operation. */ +export type AutomationsCreateOrUpdateResponse = Automation; + +/** Optional parameters. */ +export interface AutomationsUpdateOptionalParams extends coreClient.OperationOptions {} + +/** Contains response data for the update operation. */ +export type AutomationsUpdateResponse = Automation; + +/** Optional parameters. */ +export interface AutomationsDeleteOptionalParams extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface AutomationsValidateOptionalParams extends coreClient.OperationOptions {} + +/** Contains response data for the validate operation. */ +export type AutomationsValidateResponse = AutomationValidationStatus; + +/** Optional parameters. */ +export interface AutomationsListNextOptionalParams extends coreClient.OperationOptions {} + +/** Contains response data for the listNext operation. */ +export type AutomationsListNextResponse = AutomationList; + +/** Optional parameters. */ +export interface AutomationsListByResourceGroupNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByResourceGroupNext operation. */ +export type AutomationsListByResourceGroupNextResponse = AutomationList; + +/** Optional parameters. */ +export interface SecurityContactsListOptionalParams extends coreClient.OperationOptions {} + +/** Contains response data for the list operation. */ +export type SecurityContactsListResponse = SecurityContactList; + +/** Optional parameters. */ +export interface SecurityContactsGetOptionalParams extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type SecurityContactsGetResponse = SecurityContact; + +/** Optional parameters. */ +export interface SecurityContactsCreateOptionalParams extends coreClient.OperationOptions {} + +/** Contains response data for the create operation. */ +export type SecurityContactsCreateResponse = SecurityContact; + +/** Optional parameters. */ +export interface SecurityContactsDeleteOptionalParams extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface SecurityContactsListNextOptionalParams extends coreClient.OperationOptions {} + +/** Contains response data for the listNext operation. */ +export type SecurityContactsListNextResponse = SecurityContactList; + +/** Optional parameters. */ +export interface SecurityConnectorsListOptionalParams extends coreClient.OperationOptions {} + +/** Contains response data for the list operation. */ +export type SecurityConnectorsListResponse = SecurityConnectorsList; + +/** Optional parameters. */ +export interface SecurityConnectorsListByResourceGroupOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByResourceGroup operation. */ +export type SecurityConnectorsListByResourceGroupResponse = SecurityConnectorsList; + +/** Optional parameters. */ +export interface SecurityConnectorsGetOptionalParams extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type SecurityConnectorsGetResponse = SecurityConnector; + +/** Optional parameters. */ +export interface SecurityConnectorsCreateOrUpdateOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the createOrUpdate operation. */ +export type SecurityConnectorsCreateOrUpdateResponse = SecurityConnector; + +/** Optional parameters. */ +export interface SecurityConnectorsUpdateOptionalParams extends coreClient.OperationOptions {} + +/** Contains response data for the update operation. */ +export type SecurityConnectorsUpdateResponse = SecurityConnector; + +/** Optional parameters. */ +export interface SecurityConnectorsDeleteOptionalParams extends coreClient.OperationOptions {} + +/** Optional parameters. */ +export interface SecurityConnectorsListNextOptionalParams extends coreClient.OperationOptions {} + +/** Contains response data for the listNext operation. */ +export type SecurityConnectorsListNextResponse = SecurityConnectorsList; + +/** Optional parameters. */ +export interface SecurityConnectorsListByResourceGroupNextOptionalParams + extends coreClient.OperationOptions {} + +/** Contains response data for the listByResourceGroupNext operation. */ +export type SecurityConnectorsListByResourceGroupNextResponse = SecurityConnectorsList; + +/** Optional parameters. */ +export interface OperationsListOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the updateSensitivitySettings operation. */ -export type UpdateSensitivitySettingsResponse = GetSensitivitySettingsResponse; +/** Contains response data for the list operation. */ +export type OperationsListResponse = OperationListResult; /** Optional parameters. */ -export interface GetSensitivitySettingsOptionalParams - extends coreClient.OperationOptions {} +export interface OperationsListNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the getSensitivitySettings operation. */ -export type GetSensitivitySettingsOperationResponse = - GetSensitivitySettingsResponse; +/** Contains response data for the listNext operation. */ +export type OperationsListNextResponse = OperationListResult; /** Optional parameters. */ -export interface SensitivitySettingsListOptionalParams - extends coreClient.OperationOptions {} +export interface DefenderForStorageGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the list operation. */ -export type SensitivitySettingsListResponse = - GetSensitivitySettingsListResponse; +/** Contains response data for the get operation. */ +export type DefenderForStorageGetResponse = DefenderForStorageSetting; /** Optional parameters. */ -export interface HealthReportsListOptionalParams - extends coreClient.OperationOptions {} +export interface DefenderForStorageCreateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the list operation. */ -export type HealthReportsListResponse = HealthReportsList; +/** Contains response data for the create operation. */ +export type DefenderForStorageCreateResponse = DefenderForStorageSetting; /** Optional parameters. */ -export interface HealthReportsGetOptionalParams +export interface DefenderForStorageStartMalwareScanOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type HealthReportsGetResponse = HealthReport; +/** Contains response data for the startMalwareScan operation. */ +export type DefenderForStorageStartMalwareScanResponse = MalwareScan; /** Optional parameters. */ -export interface HealthReportsListNextOptionalParams +export interface DefenderForStorageCancelMalwareScanOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listNext operation. */ -export type HealthReportsListNextResponse = HealthReportsList; +/** Contains response data for the cancelMalwareScan operation. */ +export type DefenderForStorageCancelMalwareScanResponse = MalwareScan; /** Optional parameters. */ -export interface AzureDevOpsOrgsListAvailableOptionalParams +export interface DefenderForStorageGetMalwareScanOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listAvailable operation. */ -export type AzureDevOpsOrgsListAvailableResponse = AzureDevOpsOrgListResponse; +/** Contains response data for the getMalwareScan operation. */ +export type DefenderForStorageGetMalwareScanResponse = MalwareScan; /** Optional parameters. */ -export interface AzureDevOpsOrgsListOptionalParams - extends coreClient.OperationOptions {} +export interface ComplianceResultsListOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the list operation. */ -export type AzureDevOpsOrgsListResponse = AzureDevOpsOrgListResponse; +export type ComplianceResultsListResponse = ComplianceResultList; /** Optional parameters. */ -export interface AzureDevOpsOrgsGetOptionalParams - extends coreClient.OperationOptions {} +export interface ComplianceResultsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type AzureDevOpsOrgsGetResponse = AzureDevOpsOrg; +export type ComplianceResultsGetResponse = ComplianceResult; /** Optional parameters. */ -export interface AzureDevOpsOrgsCreateOrUpdateOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} +export interface ComplianceResultsListNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the createOrUpdate operation. */ -export type AzureDevOpsOrgsCreateOrUpdateResponse = AzureDevOpsOrg; +/** Contains response data for the listNext operation. */ +export type ComplianceResultsListNextResponse = ComplianceResultList; /** Optional parameters. */ -export interface AzureDevOpsOrgsUpdateOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} +export interface AdvancedThreatProtectionGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the update operation. */ -export type AzureDevOpsOrgsUpdateResponse = AzureDevOpsOrg; +/** Contains response data for the get operation. */ +export type AdvancedThreatProtectionGetResponse = AdvancedThreatProtectionSetting; /** Optional parameters. */ -export interface AzureDevOpsOrgsListNextOptionalParams - extends coreClient.OperationOptions {} +export interface AdvancedThreatProtectionCreateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listNext operation. */ -export type AzureDevOpsOrgsListNextResponse = AzureDevOpsOrgListResponse; +/** Contains response data for the create operation. */ +export type AdvancedThreatProtectionCreateResponse = AdvancedThreatProtectionSetting; /** Optional parameters. */ -export interface AzureDevOpsProjectsListOptionalParams - extends coreClient.OperationOptions {} +export interface DeviceSecurityGroupsListOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the list operation. */ -export type AzureDevOpsProjectsListResponse = AzureDevOpsProjectListResponse; +export type DeviceSecurityGroupsListResponse = DeviceSecurityGroupList; /** Optional parameters. */ -export interface AzureDevOpsProjectsGetOptionalParams - extends coreClient.OperationOptions {} +export interface DeviceSecurityGroupsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type AzureDevOpsProjectsGetResponse = AzureDevOpsProject; +export type DeviceSecurityGroupsGetResponse = DeviceSecurityGroup; /** Optional parameters. */ -export interface AzureDevOpsProjectsCreateOrUpdateOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} +export interface DeviceSecurityGroupsCreateOrUpdateOptionalParams + extends coreClient.OperationOptions {} /** Contains response data for the createOrUpdate operation. */ -export type AzureDevOpsProjectsCreateOrUpdateResponse = AzureDevOpsProject; +export type DeviceSecurityGroupsCreateOrUpdateResponse = DeviceSecurityGroup; /** Optional parameters. */ -export interface AzureDevOpsProjectsUpdateOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} - -/** Contains response data for the update operation. */ -export type AzureDevOpsProjectsUpdateResponse = AzureDevOpsProject; +export interface DeviceSecurityGroupsDeleteOptionalParams extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface AzureDevOpsProjectsListNextOptionalParams - extends coreClient.OperationOptions {} +export interface DeviceSecurityGroupsListNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ -export type AzureDevOpsProjectsListNextResponse = - AzureDevOpsProjectListResponse; +export type DeviceSecurityGroupsListNextResponse = DeviceSecurityGroupList; /** Optional parameters. */ -export interface AzureDevOpsReposListOptionalParams +export interface IotSecuritySolutionAnalyticsListOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the list operation. */ -export type AzureDevOpsReposListResponse = AzureDevOpsRepositoryListResponse; +export type IotSecuritySolutionAnalyticsListResponse = IoTSecuritySolutionAnalyticsModelList; /** Optional parameters. */ -export interface AzureDevOpsReposGetOptionalParams +export interface IotSecuritySolutionAnalyticsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type AzureDevOpsReposGetResponse = AzureDevOpsRepository; +export type IotSecuritySolutionAnalyticsGetResponse = IoTSecuritySolutionAnalyticsModel; /** Optional parameters. */ -export interface AzureDevOpsReposCreateOrUpdateOptionalParams +export interface IotSecuritySolutionsAnalyticsAggregatedAlertListOptionalParams extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; + /** Number of results to retrieve. */ + top?: number; } -/** Contains response data for the createOrUpdate operation. */ -export type AzureDevOpsReposCreateOrUpdateResponse = AzureDevOpsRepository; +/** Contains response data for the list operation. */ +export type IotSecuritySolutionsAnalyticsAggregatedAlertListResponse = + IoTSecurityAggregatedAlertList; /** Optional parameters. */ -export interface AzureDevOpsReposUpdateOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} +export interface IotSecuritySolutionsAnalyticsAggregatedAlertGetOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the update operation. */ -export type AzureDevOpsReposUpdateResponse = AzureDevOpsRepository; +/** Contains response data for the get operation. */ +export type IotSecuritySolutionsAnalyticsAggregatedAlertGetResponse = IoTSecurityAggregatedAlert; /** Optional parameters. */ -export interface AzureDevOpsReposListNextOptionalParams +export interface IotSecuritySolutionsAnalyticsAggregatedAlertDismissOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listNext operation. */ -export type AzureDevOpsReposListNextResponse = - AzureDevOpsRepositoryListResponse; - /** Optional parameters. */ -export interface DevOpsConfigurationsListOptionalParams +export interface IotSecuritySolutionsAnalyticsAggregatedAlertListNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the list operation. */ -export type DevOpsConfigurationsListResponse = DevOpsConfigurationListResponse; +/** Contains response data for the listNext operation. */ +export type IotSecuritySolutionsAnalyticsAggregatedAlertListNextResponse = + IoTSecurityAggregatedAlertList; /** Optional parameters. */ -export interface DevOpsConfigurationsGetOptionalParams +export interface IotSecuritySolutionsAnalyticsRecommendationGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type DevOpsConfigurationsGetResponse = DevOpsConfiguration; +export type IotSecuritySolutionsAnalyticsRecommendationGetResponse = + IoTSecurityAggregatedRecommendation; /** Optional parameters. */ -export interface DevOpsConfigurationsCreateOrUpdateOptionalParams +export interface IotSecuritySolutionsAnalyticsRecommendationListOptionalParams extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; + /** Number of results to retrieve. */ + top?: number; } -/** Contains response data for the createOrUpdate operation. */ -export type DevOpsConfigurationsCreateOrUpdateResponse = DevOpsConfiguration; +/** Contains response data for the list operation. */ +export type IotSecuritySolutionsAnalyticsRecommendationListResponse = + IoTSecurityAggregatedRecommendationList; /** Optional parameters. */ -export interface DevOpsConfigurationsUpdateOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} +export interface IotSecuritySolutionsAnalyticsRecommendationListNextOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the update operation. */ -export type DevOpsConfigurationsUpdateResponse = DevOpsConfiguration; +/** Contains response data for the listNext operation. */ +export type IotSecuritySolutionsAnalyticsRecommendationListNextResponse = + IoTSecurityAggregatedRecommendationList; /** Optional parameters. */ -export interface DevOpsConfigurationsDeleteOptionalParams +export interface IotSecuritySolutionListBySubscriptionOptionalParams extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; + /** Filter the IoT Security solution with OData syntax. Supports filtering by iotHubs. */ + filter?: string; } -/** Optional parameters. */ -export interface DevOpsConfigurationsListNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listNext operation. */ -export type DevOpsConfigurationsListNextResponse = - DevOpsConfigurationListResponse; +/** Contains response data for the listBySubscription operation. */ +export type IotSecuritySolutionListBySubscriptionResponse = IoTSecuritySolutionsList; /** Optional parameters. */ -export interface GitHubOwnersListAvailableOptionalParams - extends coreClient.OperationOptions {} +export interface IotSecuritySolutionListByResourceGroupOptionalParams + extends coreClient.OperationOptions { + /** Filter the IoT Security solution with OData syntax. Supports filtering by iotHubs. */ + filter?: string; +} -/** Contains response data for the listAvailable operation. */ -export type GitHubOwnersListAvailableResponse = GitHubOwnerListResponse; +/** Contains response data for the listByResourceGroup operation. */ +export type IotSecuritySolutionListByResourceGroupResponse = IoTSecuritySolutionsList; /** Optional parameters. */ -export interface GitHubOwnersListOptionalParams - extends coreClient.OperationOptions {} +export interface IotSecuritySolutionGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the list operation. */ -export type GitHubOwnersListResponse = GitHubOwnerListResponse; +/** Contains response data for the get operation. */ +export type IotSecuritySolutionGetResponse = IoTSecuritySolutionModel; /** Optional parameters. */ -export interface GitHubOwnersGetOptionalParams +export interface IotSecuritySolutionCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type GitHubOwnersGetResponse = GitHubOwner; +/** Contains response data for the createOrUpdate operation. */ +export type IotSecuritySolutionCreateOrUpdateResponse = IoTSecuritySolutionModel; /** Optional parameters. */ -export interface GitHubOwnersListNextOptionalParams - extends coreClient.OperationOptions {} +export interface IotSecuritySolutionUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listNext operation. */ -export type GitHubOwnersListNextResponse = GitHubOwnerListResponse; +/** Contains response data for the update operation. */ +export type IotSecuritySolutionUpdateResponse = IoTSecuritySolutionModel; /** Optional parameters. */ -export interface GitHubReposListOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the list operation. */ -export type GitHubReposListResponse = GitHubRepositoryListResponse; +export interface IotSecuritySolutionDeleteOptionalParams extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface GitHubReposGetOptionalParams +export interface IotSecuritySolutionListBySubscriptionNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type GitHubReposGetResponse = GitHubRepository; +/** Contains response data for the listBySubscriptionNext operation. */ +export type IotSecuritySolutionListBySubscriptionNextResponse = IoTSecuritySolutionsList; /** Optional parameters. */ -export interface GitHubReposListNextOptionalParams +export interface IotSecuritySolutionListByResourceGroupNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listNext operation. */ -export type GitHubReposListNextResponse = GitHubRepositoryListResponse; +/** Contains response data for the listByResourceGroupNext operation. */ +export type IotSecuritySolutionListByResourceGroupNextResponse = IoTSecuritySolutionsList; /** Optional parameters. */ -export interface GitLabGroupsListAvailableOptionalParams - extends coreClient.OperationOptions {} +export interface AllowedConnectionsListOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listAvailable operation. */ -export type GitLabGroupsListAvailableResponse = GitLabGroupListResponse; +/** Contains response data for the list operation. */ +export type AllowedConnectionsListResponse = AllowedConnectionsList; /** Optional parameters. */ -export interface GitLabGroupsListOptionalParams +export interface AllowedConnectionsListByHomeRegionOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the list operation. */ -export type GitLabGroupsListResponse = GitLabGroupListResponse; +/** Contains response data for the listByHomeRegion operation. */ +export type AllowedConnectionsListByHomeRegionResponse = AllowedConnectionsList; /** Optional parameters. */ -export interface GitLabGroupsGetOptionalParams - extends coreClient.OperationOptions {} +export interface AllowedConnectionsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type GitLabGroupsGetResponse = GitLabGroup; +export type AllowedConnectionsGetResponse = AllowedConnectionsResource; /** Optional parameters. */ -export interface GitLabGroupsListNextOptionalParams - extends coreClient.OperationOptions {} +export interface AllowedConnectionsListNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ -export type GitLabGroupsListNextResponse = GitLabGroupListResponse; +export type AllowedConnectionsListNextResponse = AllowedConnectionsList; /** Optional parameters. */ -export interface GitLabSubgroupsListOptionalParams +export interface AllowedConnectionsListByHomeRegionNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the list operation. */ -export type GitLabSubgroupsListResponse = GitLabGroupListResponse; +/** Contains response data for the listByHomeRegionNext operation. */ +export type AllowedConnectionsListByHomeRegionNextResponse = AllowedConnectionsList; /** Optional parameters. */ -export interface GitLabProjectsListOptionalParams +export interface DiscoveredSecuritySolutionsListOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the list operation. */ -export type GitLabProjectsListResponse = GitLabProjectListResponse; - -/** Optional parameters. */ -export interface GitLabProjectsGetOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the get operation. */ -export type GitLabProjectsGetResponse = GitLabProject; +export type DiscoveredSecuritySolutionsListResponse = DiscoveredSecuritySolutionList; /** Optional parameters. */ -export interface GitLabProjectsListNextOptionalParams +export interface DiscoveredSecuritySolutionsListByHomeRegionOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listNext operation. */ -export type GitLabProjectsListNextResponse = GitLabProjectListResponse; +/** Contains response data for the listByHomeRegion operation. */ +export type DiscoveredSecuritySolutionsListByHomeRegionResponse = DiscoveredSecuritySolutionList; /** Optional parameters. */ -export interface DevOpsOperationResultsGetOptionalParams - extends coreClient.OperationOptions {} +export interface DiscoveredSecuritySolutionsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type DevOpsOperationResultsGetResponse = OperationStatusResult; +export type DiscoveredSecuritySolutionsGetResponse = DiscoveredSecuritySolution; /** Optional parameters. */ -export interface SecurityConnectorsListOptionalParams +export interface DiscoveredSecuritySolutionsListNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the list operation. */ -export type SecurityConnectorsListResponse = SecurityConnectorsList; +/** Contains response data for the listNext operation. */ +export type DiscoveredSecuritySolutionsListNextResponse = DiscoveredSecuritySolutionList; /** Optional parameters. */ -export interface SecurityConnectorsListByResourceGroupOptionalParams +export interface DiscoveredSecuritySolutionsListByHomeRegionNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByResourceGroup operation. */ -export type SecurityConnectorsListByResourceGroupResponse = - SecurityConnectorsList; +/** Contains response data for the listByHomeRegionNext operation. */ +export type DiscoveredSecuritySolutionsListByHomeRegionNextResponse = + DiscoveredSecuritySolutionList; /** Optional parameters. */ -export interface SecurityConnectorsGetOptionalParams - extends coreClient.OperationOptions {} +export interface ExternalSecuritySolutionsListOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type SecurityConnectorsGetResponse = SecurityConnector; +/** Contains response data for the list operation. */ +export type ExternalSecuritySolutionsListResponse = ExternalSecuritySolutionList; /** Optional parameters. */ -export interface SecurityConnectorsCreateOrUpdateOptionalParams +export interface ExternalSecuritySolutionsListByHomeRegionOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the createOrUpdate operation. */ -export type SecurityConnectorsCreateOrUpdateResponse = SecurityConnector; +/** Contains response data for the listByHomeRegion operation. */ +export type ExternalSecuritySolutionsListByHomeRegionResponse = ExternalSecuritySolutionList; /** Optional parameters. */ -export interface SecurityConnectorsUpdateOptionalParams - extends coreClient.OperationOptions {} +export interface ExternalSecuritySolutionsGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the update operation. */ -export type SecurityConnectorsUpdateResponse = SecurityConnector; - -/** Optional parameters. */ -export interface SecurityConnectorsDeleteOptionalParams - extends coreClient.OperationOptions {} +/** Contains response data for the get operation. */ +export type ExternalSecuritySolutionsGetResponse = ExternalSecuritySolution; /** Optional parameters. */ -export interface SecurityConnectorsListNextOptionalParams +export interface ExternalSecuritySolutionsListNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ -export type SecurityConnectorsListNextResponse = SecurityConnectorsList; +export type ExternalSecuritySolutionsListNextResponse = ExternalSecuritySolutionList; /** Optional parameters. */ -export interface SecurityConnectorsListByResourceGroupNextOptionalParams +export interface ExternalSecuritySolutionsListByHomeRegionNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByResourceGroupNext operation. */ -export type SecurityConnectorsListByResourceGroupNextResponse = - SecurityConnectorsList; +/** Contains response data for the listByHomeRegionNext operation. */ +export type ExternalSecuritySolutionsListByHomeRegionNextResponse = ExternalSecuritySolutionList; /** Optional parameters. */ -export interface ComplianceResultsListOptionalParams - extends coreClient.OperationOptions {} +export interface JitNetworkAccessPoliciesListOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the list operation. */ -export type ComplianceResultsListResponse = ComplianceResultList; +export type JitNetworkAccessPoliciesListResponse = JitNetworkAccessPoliciesList; /** Optional parameters. */ -export interface ComplianceResultsGetOptionalParams +export interface JitNetworkAccessPoliciesListByRegionOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type ComplianceResultsGetResponse = ComplianceResult; +/** Contains response data for the listByRegion operation. */ +export type JitNetworkAccessPoliciesListByRegionResponse = JitNetworkAccessPoliciesList; /** Optional parameters. */ -export interface ComplianceResultsListNextOptionalParams +export interface JitNetworkAccessPoliciesListByResourceGroupOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listNext operation. */ -export type ComplianceResultsListNextResponse = ComplianceResultList; +/** Contains response data for the listByResourceGroup operation. */ +export type JitNetworkAccessPoliciesListByResourceGroupResponse = JitNetworkAccessPoliciesList; /** Optional parameters. */ -export interface AdvancedThreatProtectionGetOptionalParams +export interface JitNetworkAccessPoliciesListByResourceGroupAndRegionOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the listByResourceGroupAndRegion operation. */ +export type JitNetworkAccessPoliciesListByResourceGroupAndRegionResponse = + JitNetworkAccessPoliciesList; + +/** Optional parameters. */ +export interface JitNetworkAccessPoliciesGetOptionalParams extends coreClient.OperationOptions {} + /** Contains response data for the get operation. */ -export type AdvancedThreatProtectionGetResponse = - AdvancedThreatProtectionSetting; +export type JitNetworkAccessPoliciesGetResponse = JitNetworkAccessPolicy; /** Optional parameters. */ -export interface AdvancedThreatProtectionCreateOptionalParams +export interface JitNetworkAccessPoliciesCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the create operation. */ -export type AdvancedThreatProtectionCreateResponse = - AdvancedThreatProtectionSetting; +/** Contains response data for the createOrUpdate operation. */ +export type JitNetworkAccessPoliciesCreateOrUpdateResponse = JitNetworkAccessPolicy; + +/** Optional parameters. */ +export interface JitNetworkAccessPoliciesDeleteOptionalParams extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface DeviceSecurityGroupsListOptionalParams +export interface JitNetworkAccessPoliciesInitiateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the list operation. */ -export type DeviceSecurityGroupsListResponse = DeviceSecurityGroupList; +/** Contains response data for the initiate operation. */ +export type JitNetworkAccessPoliciesInitiateResponse = JitNetworkAccessRequest; /** Optional parameters. */ -export interface DeviceSecurityGroupsGetOptionalParams +export interface JitNetworkAccessPoliciesListNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type DeviceSecurityGroupsGetResponse = DeviceSecurityGroup; +/** Contains response data for the listNext operation. */ +export type JitNetworkAccessPoliciesListNextResponse = JitNetworkAccessPoliciesList; /** Optional parameters. */ -export interface DeviceSecurityGroupsCreateOrUpdateOptionalParams +export interface JitNetworkAccessPoliciesListByRegionNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the createOrUpdate operation. */ -export type DeviceSecurityGroupsCreateOrUpdateResponse = DeviceSecurityGroup; +/** Contains response data for the listByRegionNext operation. */ +export type JitNetworkAccessPoliciesListByRegionNextResponse = JitNetworkAccessPoliciesList; /** Optional parameters. */ -export interface DeviceSecurityGroupsDeleteOptionalParams +export interface JitNetworkAccessPoliciesListByResourceGroupNextOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the listByResourceGroupNext operation. */ +export type JitNetworkAccessPoliciesListByResourceGroupNextResponse = JitNetworkAccessPoliciesList; + /** Optional parameters. */ -export interface DeviceSecurityGroupsListNextOptionalParams +export interface JitNetworkAccessPoliciesListByResourceGroupAndRegionNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listNext operation. */ -export type DeviceSecurityGroupsListNextResponse = DeviceSecurityGroupList; +/** Contains response data for the listByResourceGroupAndRegionNext operation. */ +export type JitNetworkAccessPoliciesListByResourceGroupAndRegionNextResponse = + JitNetworkAccessPoliciesList; /** Optional parameters. */ -export interface IotSecuritySolutionAnalyticsListOptionalParams - extends coreClient.OperationOptions {} +export interface SecureScoresListOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the list operation. */ -export type IotSecuritySolutionAnalyticsListResponse = - IoTSecuritySolutionAnalyticsModelList; +export type SecureScoresListResponse = SecureScoresList; /** Optional parameters. */ -export interface IotSecuritySolutionAnalyticsGetOptionalParams - extends coreClient.OperationOptions {} +export interface SecureScoresGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type IotSecuritySolutionAnalyticsGetResponse = - IoTSecuritySolutionAnalyticsModel; +export type SecureScoresGetResponse = SecureScoreItem; /** Optional parameters. */ -export interface IotSecuritySolutionsAnalyticsAggregatedAlertListOptionalParams +export interface SecureScoresListNextOptionalParams extends coreClient.OperationOptions {} + +/** Contains response data for the listNext operation. */ +export type SecureScoresListNextResponse = SecureScoresList; + +/** Optional parameters. */ +export interface SecureScoreControlsListBySecureScoreOptionalParams extends coreClient.OperationOptions { - /** Number of results to retrieve. */ - top?: number; + /** OData expand. Optional. */ + expand?: ExpandControlsEnum; } -/** Contains response data for the list operation. */ -export type IotSecuritySolutionsAnalyticsAggregatedAlertListResponse = - IoTSecurityAggregatedAlertList; +/** Contains response data for the listBySecureScore operation. */ +export type SecureScoreControlsListBySecureScoreResponse = SecureScoreControlList; /** Optional parameters. */ -export interface IotSecuritySolutionsAnalyticsAggregatedAlertGetOptionalParams - extends coreClient.OperationOptions {} +export interface SecureScoreControlsListOptionalParams extends coreClient.OperationOptions { + /** OData expand. Optional. */ + expand?: ExpandControlsEnum; +} -/** Contains response data for the get operation. */ -export type IotSecuritySolutionsAnalyticsAggregatedAlertGetResponse = - IoTSecurityAggregatedAlert; +/** Contains response data for the list operation. */ +export type SecureScoreControlsListResponse = SecureScoreControlList; /** Optional parameters. */ -export interface IotSecuritySolutionsAnalyticsAggregatedAlertDismissOptionalParams +export interface SecureScoreControlsListBySecureScoreNextOptionalParams extends coreClient.OperationOptions {} +/** Contains response data for the listBySecureScoreNext operation. */ +export type SecureScoreControlsListBySecureScoreNextResponse = SecureScoreControlList; + /** Optional parameters. */ -export interface IotSecuritySolutionsAnalyticsAggregatedAlertListNextOptionalParams - extends coreClient.OperationOptions {} +export interface SecureScoreControlsListNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ -export type IotSecuritySolutionsAnalyticsAggregatedAlertListNextResponse = - IoTSecurityAggregatedAlertList; +export type SecureScoreControlsListNextResponse = SecureScoreControlList; /** Optional parameters. */ -export interface IotSecuritySolutionsAnalyticsRecommendationGetOptionalParams +export interface SecureScoreControlDefinitionsListOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type IotSecuritySolutionsAnalyticsRecommendationGetResponse = - IoTSecurityAggregatedRecommendation; +/** Contains response data for the list operation. */ +export type SecureScoreControlDefinitionsListResponse = SecureScoreControlDefinitionList; /** Optional parameters. */ -export interface IotSecuritySolutionsAnalyticsRecommendationListOptionalParams - extends coreClient.OperationOptions { - /** Number of results to retrieve. */ - top?: number; -} +export interface SecureScoreControlDefinitionsListBySubscriptionOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the list operation. */ -export type IotSecuritySolutionsAnalyticsRecommendationListResponse = - IoTSecurityAggregatedRecommendationList; +/** Contains response data for the listBySubscription operation. */ +export type SecureScoreControlDefinitionsListBySubscriptionResponse = + SecureScoreControlDefinitionList; /** Optional parameters. */ -export interface IotSecuritySolutionsAnalyticsRecommendationListNextOptionalParams +export interface SecureScoreControlDefinitionsListNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ -export type IotSecuritySolutionsAnalyticsRecommendationListNextResponse = - IoTSecurityAggregatedRecommendationList; +export type SecureScoreControlDefinitionsListNextResponse = SecureScoreControlDefinitionList; /** Optional parameters. */ -export interface IotSecuritySolutionListBySubscriptionOptionalParams - extends coreClient.OperationOptions { - /** Filter the IoT Security solution with OData syntax. Supports filtering by iotHubs. */ - filter?: string; -} +export interface SecureScoreControlDefinitionsListBySubscriptionNextOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the listBySubscription operation. */ -export type IotSecuritySolutionListBySubscriptionResponse = - IoTSecuritySolutionsList; +/** Contains response data for the listBySubscriptionNext operation. */ +export type SecureScoreControlDefinitionsListBySubscriptionNextResponse = + SecureScoreControlDefinitionList; /** Optional parameters. */ -export interface IotSecuritySolutionListByResourceGroupOptionalParams - extends coreClient.OperationOptions { - /** Filter the IoT Security solution with OData syntax. Supports filtering by iotHubs. */ - filter?: string; -} +export interface SecuritySolutionsListOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByResourceGroup operation. */ -export type IotSecuritySolutionListByResourceGroupResponse = - IoTSecuritySolutionsList; +/** Contains response data for the list operation. */ +export type SecuritySolutionsListResponse = SecuritySolutionList; /** Optional parameters. */ -export interface IotSecuritySolutionGetOptionalParams - extends coreClient.OperationOptions {} +export interface SecuritySolutionsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type IotSecuritySolutionGetResponse = IoTSecuritySolutionModel; +export type SecuritySolutionsGetResponse = SecuritySolution; /** Optional parameters. */ -export interface IotSecuritySolutionCreateOrUpdateOptionalParams - extends coreClient.OperationOptions {} +export interface SecuritySolutionsListNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the createOrUpdate operation. */ -export type IotSecuritySolutionCreateOrUpdateResponse = - IoTSecuritySolutionModel; +/** Contains response data for the listNext operation. */ +export type SecuritySolutionsListNextResponse = SecuritySolutionList; /** Optional parameters. */ -export interface IotSecuritySolutionUpdateOptionalParams +export interface SecuritySolutionsReferenceDataListOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the update operation. */ -export type IotSecuritySolutionUpdateResponse = IoTSecuritySolutionModel; - -/** Optional parameters. */ -export interface IotSecuritySolutionDeleteOptionalParams - extends coreClient.OperationOptions {} +/** Contains response data for the list operation. */ +export type SecuritySolutionsReferenceDataListResponse = SecuritySolutionsReferenceDataList; /** Optional parameters. */ -export interface IotSecuritySolutionListBySubscriptionNextOptionalParams +export interface SecuritySolutionsReferenceDataListByHomeRegionOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listBySubscriptionNext operation. */ -export type IotSecuritySolutionListBySubscriptionNextResponse = - IoTSecuritySolutionsList; +/** Contains response data for the listByHomeRegion operation. */ +export type SecuritySolutionsReferenceDataListByHomeRegionResponse = + SecuritySolutionsReferenceDataList; /** Optional parameters. */ -export interface IotSecuritySolutionListByResourceGroupNextOptionalParams +export interface ServerVulnerabilityAssessmentListByExtendedResourceOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByResourceGroupNext operation. */ -export type IotSecuritySolutionListByResourceGroupNextResponse = - IoTSecuritySolutionsList; +/** Contains response data for the listByExtendedResource operation. */ +export type ServerVulnerabilityAssessmentListByExtendedResourceResponse = + ServerVulnerabilityAssessmentsList; /** Optional parameters. */ -export interface AdaptiveNetworkHardeningsListByExtendedResourceOptionalParams +export interface ServerVulnerabilityAssessmentGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByExtendedResource operation. */ -export type AdaptiveNetworkHardeningsListByExtendedResourceResponse = - AdaptiveNetworkHardeningsList; +/** Contains response data for the get operation. */ +export type ServerVulnerabilityAssessmentGetResponse = ServerVulnerabilityAssessment; /** Optional parameters. */ -export interface AdaptiveNetworkHardeningsGetOptionalParams +export interface ServerVulnerabilityAssessmentCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type AdaptiveNetworkHardeningsGetResponse = AdaptiveNetworkHardening; +/** Contains response data for the createOrUpdate operation. */ +export type ServerVulnerabilityAssessmentCreateOrUpdateResponse = ServerVulnerabilityAssessment; /** Optional parameters. */ -export interface AdaptiveNetworkHardeningsEnforceOptionalParams +export interface ServerVulnerabilityAssessmentDeleteOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -10288,401 +10402,310 @@ export interface AdaptiveNetworkHardeningsEnforceOptionalParams } /** Optional parameters. */ -export interface AdaptiveNetworkHardeningsListByExtendedResourceNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByExtendedResourceNext operation. */ -export type AdaptiveNetworkHardeningsListByExtendedResourceNextResponse = - AdaptiveNetworkHardeningsList; - -/** Optional parameters. */ -export interface AllowedConnectionsListOptionalParams - extends coreClient.OperationOptions {} +export interface TopologyListOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the list operation. */ -export type AllowedConnectionsListResponse = AllowedConnectionsList; +export type TopologyListResponse = TopologyList; /** Optional parameters. */ -export interface AllowedConnectionsListByHomeRegionOptionalParams - extends coreClient.OperationOptions {} +export interface TopologyListByHomeRegionOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByHomeRegion operation. */ -export type AllowedConnectionsListByHomeRegionResponse = AllowedConnectionsList; +export type TopologyListByHomeRegionResponse = TopologyList; /** Optional parameters. */ -export interface AllowedConnectionsGetOptionalParams - extends coreClient.OperationOptions {} +export interface TopologyGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type AllowedConnectionsGetResponse = AllowedConnectionsResource; +export type TopologyGetResponse = TopologyResource; /** Optional parameters. */ -export interface AllowedConnectionsListNextOptionalParams - extends coreClient.OperationOptions {} +export interface TopologyListNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ -export type AllowedConnectionsListNextResponse = AllowedConnectionsList; +export type TopologyListNextResponse = TopologyList; /** Optional parameters. */ -export interface AllowedConnectionsListByHomeRegionNextOptionalParams - extends coreClient.OperationOptions {} +export interface TopologyListByHomeRegionNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listByHomeRegionNext operation. */ -export type AllowedConnectionsListByHomeRegionNextResponse = - AllowedConnectionsList; +export type TopologyListByHomeRegionNextResponse = TopologyList; /** Optional parameters. */ -export interface AdaptiveApplicationControlsListOptionalParams - extends coreClient.OperationOptions { - /** Include the policy rules */ - includePathRecommendations?: boolean; - /** Return output in a summarized form */ - summary?: boolean; -} +export interface AssessmentsMetadataListOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the list operation. */ -export type AdaptiveApplicationControlsListResponse = - AdaptiveApplicationControlGroups; +export type AssessmentsMetadataListResponse = SecurityAssessmentMetadataResponseList; /** Optional parameters. */ -export interface AdaptiveApplicationControlsGetOptionalParams - extends coreClient.OperationOptions {} +export interface AssessmentsMetadataGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type AdaptiveApplicationControlsGetResponse = - AdaptiveApplicationControlGroup; +export type AssessmentsMetadataGetResponse = SecurityAssessmentMetadataResponse; /** Optional parameters. */ -export interface AdaptiveApplicationControlsPutOptionalParams +export interface AssessmentsMetadataListBySubscriptionOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the put operation. */ -export type AdaptiveApplicationControlsPutResponse = - AdaptiveApplicationControlGroup; - -/** Optional parameters. */ -export interface AdaptiveApplicationControlsDeleteOptionalParams - extends coreClient.OperationOptions {} +/** Contains response data for the listBySubscription operation. */ +export type AssessmentsMetadataListBySubscriptionResponse = SecurityAssessmentMetadataResponseList; /** Optional parameters. */ -export interface DiscoveredSecuritySolutionsListOptionalParams +export interface AssessmentsMetadataGetInSubscriptionOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the list operation. */ -export type DiscoveredSecuritySolutionsListResponse = - DiscoveredSecuritySolutionList; +/** Contains response data for the getInSubscription operation. */ +export type AssessmentsMetadataGetInSubscriptionResponse = SecurityAssessmentMetadataResponse; /** Optional parameters. */ -export interface DiscoveredSecuritySolutionsListByHomeRegionOptionalParams +export interface AssessmentsMetadataCreateInSubscriptionOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByHomeRegion operation. */ -export type DiscoveredSecuritySolutionsListByHomeRegionResponse = - DiscoveredSecuritySolutionList; +/** Contains response data for the createInSubscription operation. */ +export type AssessmentsMetadataCreateInSubscriptionResponse = SecurityAssessmentMetadataResponse; /** Optional parameters. */ -export interface DiscoveredSecuritySolutionsGetOptionalParams +export interface AssessmentsMetadataDeleteInSubscriptionOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type DiscoveredSecuritySolutionsGetResponse = DiscoveredSecuritySolution; - /** Optional parameters. */ -export interface DiscoveredSecuritySolutionsListNextOptionalParams - extends coreClient.OperationOptions {} +export interface AssessmentsMetadataListNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ -export type DiscoveredSecuritySolutionsListNextResponse = - DiscoveredSecuritySolutionList; +export type AssessmentsMetadataListNextResponse = SecurityAssessmentMetadataResponseList; /** Optional parameters. */ -export interface DiscoveredSecuritySolutionsListByHomeRegionNextOptionalParams +export interface AssessmentsMetadataListBySubscriptionNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByHomeRegionNext operation. */ -export type DiscoveredSecuritySolutionsListByHomeRegionNextResponse = - DiscoveredSecuritySolutionList; +/** Contains response data for the listBySubscriptionNext operation. */ +export type AssessmentsMetadataListBySubscriptionNextResponse = + SecurityAssessmentMetadataResponseList; /** Optional parameters. */ -export interface ExternalSecuritySolutionsListOptionalParams - extends coreClient.OperationOptions {} +export interface AssessmentsListOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the list operation. */ -export type ExternalSecuritySolutionsListResponse = - ExternalSecuritySolutionList; +export type AssessmentsListResponse = SecurityAssessmentList; /** Optional parameters. */ -export interface ExternalSecuritySolutionsListByHomeRegionOptionalParams - extends coreClient.OperationOptions {} +export interface AssessmentsGetOptionalParams extends coreClient.OperationOptions { + /** OData expand. Optional. */ + expand?: ExpandEnum; +} -/** Contains response data for the listByHomeRegion operation. */ -export type ExternalSecuritySolutionsListByHomeRegionResponse = - ExternalSecuritySolutionList; +/** Contains response data for the get operation. */ +export type AssessmentsGetResponse = SecurityAssessmentResponse; /** Optional parameters. */ -export interface ExternalSecuritySolutionsGetOptionalParams - extends coreClient.OperationOptions {} +export interface AssessmentsCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type ExternalSecuritySolutionsGetResponse = ExternalSecuritySolution; +/** Contains response data for the createOrUpdate operation. */ +export type AssessmentsCreateOrUpdateResponse = SecurityAssessmentResponse; /** Optional parameters. */ -export interface ExternalSecuritySolutionsListNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listNext operation. */ -export type ExternalSecuritySolutionsListNextResponse = - ExternalSecuritySolutionList; +export interface AssessmentsDeleteOptionalParams extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface ExternalSecuritySolutionsListByHomeRegionNextOptionalParams - extends coreClient.OperationOptions {} +export interface AssessmentsListNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByHomeRegionNext operation. */ -export type ExternalSecuritySolutionsListByHomeRegionNextResponse = - ExternalSecuritySolutionList; +/** Contains response data for the listNext operation. */ +export type AssessmentsListNextResponse = SecurityAssessmentList; /** Optional parameters. */ -export interface JitNetworkAccessPoliciesListOptionalParams - extends coreClient.OperationOptions {} +export interface AlertsListOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the list operation. */ -export type JitNetworkAccessPoliciesListResponse = JitNetworkAccessPoliciesList; +export type AlertsListResponse = AlertList; /** Optional parameters. */ -export interface JitNetworkAccessPoliciesListByRegionOptionalParams - extends coreClient.OperationOptions {} +export interface AlertsListByResourceGroupOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByRegion operation. */ -export type JitNetworkAccessPoliciesListByRegionResponse = - JitNetworkAccessPoliciesList; +/** Contains response data for the listByResourceGroup operation. */ +export type AlertsListByResourceGroupResponse = AlertList; /** Optional parameters. */ -export interface JitNetworkAccessPoliciesListByResourceGroupOptionalParams +export interface AlertsListSubscriptionLevelByRegionOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByResourceGroup operation. */ -export type JitNetworkAccessPoliciesListByResourceGroupResponse = - JitNetworkAccessPoliciesList; +/** Contains response data for the listSubscriptionLevelByRegion operation. */ +export type AlertsListSubscriptionLevelByRegionResponse = AlertList; /** Optional parameters. */ -export interface JitNetworkAccessPoliciesListByResourceGroupAndRegionOptionalParams +export interface AlertsListResourceGroupLevelByRegionOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByResourceGroupAndRegion operation. */ -export type JitNetworkAccessPoliciesListByResourceGroupAndRegionResponse = - JitNetworkAccessPoliciesList; +/** Contains response data for the listResourceGroupLevelByRegion operation. */ +export type AlertsListResourceGroupLevelByRegionResponse = AlertList; /** Optional parameters. */ -export interface JitNetworkAccessPoliciesGetOptionalParams - extends coreClient.OperationOptions {} +export interface AlertsGetSubscriptionLevelOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type JitNetworkAccessPoliciesGetResponse = JitNetworkAccessPolicy; +/** Contains response data for the getSubscriptionLevel operation. */ +export type AlertsGetSubscriptionLevelResponse = Alert; /** Optional parameters. */ -export interface JitNetworkAccessPoliciesCreateOrUpdateOptionalParams - extends coreClient.OperationOptions {} +export interface AlertsGetResourceGroupLevelOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the createOrUpdate operation. */ -export type JitNetworkAccessPoliciesCreateOrUpdateResponse = - JitNetworkAccessPolicy; +/** Contains response data for the getResourceGroupLevel operation. */ +export type AlertsGetResourceGroupLevelResponse = Alert; /** Optional parameters. */ -export interface JitNetworkAccessPoliciesDeleteOptionalParams +export interface AlertsUpdateSubscriptionLevelStateToDismissOptionalParams extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface JitNetworkAccessPoliciesInitiateOptionalParams +export interface AlertsUpdateSubscriptionLevelStateToResolveOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the initiate operation. */ -export type JitNetworkAccessPoliciesInitiateResponse = JitNetworkAccessRequest; - /** Optional parameters. */ -export interface JitNetworkAccessPoliciesListNextOptionalParams +export interface AlertsUpdateSubscriptionLevelStateToActivateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listNext operation. */ -export type JitNetworkAccessPoliciesListNextResponse = - JitNetworkAccessPoliciesList; - /** Optional parameters. */ -export interface JitNetworkAccessPoliciesListByRegionNextOptionalParams +export interface AlertsUpdateSubscriptionLevelStateToInProgressOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByRegionNext operation. */ -export type JitNetworkAccessPoliciesListByRegionNextResponse = - JitNetworkAccessPoliciesList; - /** Optional parameters. */ -export interface JitNetworkAccessPoliciesListByResourceGroupNextOptionalParams +export interface AlertsUpdateResourceGroupLevelStateToResolveOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByResourceGroupNext operation. */ -export type JitNetworkAccessPoliciesListByResourceGroupNextResponse = - JitNetworkAccessPoliciesList; - /** Optional parameters. */ -export interface JitNetworkAccessPoliciesListByResourceGroupAndRegionNextOptionalParams +export interface AlertsUpdateResourceGroupLevelStateToDismissOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByResourceGroupAndRegionNext operation. */ -export type JitNetworkAccessPoliciesListByResourceGroupAndRegionNextResponse = - JitNetworkAccessPoliciesList; - /** Optional parameters. */ -export interface SecureScoresListOptionalParams +export interface AlertsUpdateResourceGroupLevelStateToActivateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the list operation. */ -export type SecureScoresListResponse = SecureScoresList; - /** Optional parameters. */ -export interface SecureScoresGetOptionalParams +export interface AlertsUpdateResourceGroupLevelStateToInProgressOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type SecureScoresGetResponse = SecureScoreItem; +/** Optional parameters. */ +export interface AlertsSimulateOptionalParams extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} /** Optional parameters. */ -export interface SecureScoresListNextOptionalParams - extends coreClient.OperationOptions {} +export interface AlertsListNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ -export type SecureScoresListNextResponse = SecureScoresList; +export type AlertsListNextResponse = AlertList; /** Optional parameters. */ -export interface SecureScoreControlsListBySecureScoreOptionalParams - extends coreClient.OperationOptions { - /** OData expand. Optional. */ - expand?: ExpandControlsEnum; -} +export interface AlertsListByResourceGroupNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listBySecureScore operation. */ -export type SecureScoreControlsListBySecureScoreResponse = - SecureScoreControlList; +/** Contains response data for the listByResourceGroupNext operation. */ +export type AlertsListByResourceGroupNextResponse = AlertList; /** Optional parameters. */ -export interface SecureScoreControlsListOptionalParams - extends coreClient.OperationOptions { - /** OData expand. Optional. */ - expand?: ExpandControlsEnum; -} +export interface AlertsListSubscriptionLevelByRegionNextOptionalParams + extends coreClient.OperationOptions {} -/** Contains response data for the list operation. */ -export type SecureScoreControlsListResponse = SecureScoreControlList; +/** Contains response data for the listSubscriptionLevelByRegionNext operation. */ +export type AlertsListSubscriptionLevelByRegionNextResponse = AlertList; /** Optional parameters. */ -export interface SecureScoreControlsListBySecureScoreNextOptionalParams +export interface AlertsListResourceGroupLevelByRegionNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listBySecureScoreNext operation. */ -export type SecureScoreControlsListBySecureScoreNextResponse = - SecureScoreControlList; +/** Contains response data for the listResourceGroupLevelByRegionNext operation. */ +export type AlertsListResourceGroupLevelByRegionNextResponse = AlertList; /** Optional parameters. */ -export interface SecureScoreControlsListNextOptionalParams - extends coreClient.OperationOptions {} +export interface SettingsListOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listNext operation. */ -export type SecureScoreControlsListNextResponse = SecureScoreControlList; +/** Contains response data for the list operation. */ +export type SettingsListResponse = SettingsList; /** Optional parameters. */ -export interface SecureScoreControlDefinitionsListOptionalParams - extends coreClient.OperationOptions {} +export interface SettingsGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the list operation. */ -export type SecureScoreControlDefinitionsListResponse = - SecureScoreControlDefinitionList; +/** Contains response data for the get operation. */ +export type SettingsGetResponse = SettingUnion; /** Optional parameters. */ -export interface SecureScoreControlDefinitionsListBySubscriptionOptionalParams - extends coreClient.OperationOptions {} +export interface SettingsUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listBySubscription operation. */ -export type SecureScoreControlDefinitionsListBySubscriptionResponse = - SecureScoreControlDefinitionList; +/** Contains response data for the update operation. */ +export type SettingsUpdateResponse = SettingUnion; /** Optional parameters. */ -export interface SecureScoreControlDefinitionsListNextOptionalParams - extends coreClient.OperationOptions {} +export interface SettingsListNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ -export type SecureScoreControlDefinitionsListNextResponse = - SecureScoreControlDefinitionList; +export type SettingsListNextResponse = SettingsList; /** Optional parameters. */ -export interface SecureScoreControlDefinitionsListBySubscriptionNextOptionalParams +export interface ServerVulnerabilityAssessmentsSettingsListBySubscriptionOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listBySubscriptionNext operation. */ -export type SecureScoreControlDefinitionsListBySubscriptionNextResponse = - SecureScoreControlDefinitionList; +/** Contains response data for the listBySubscription operation. */ +export type ServerVulnerabilityAssessmentsSettingsListBySubscriptionResponse = + ServerVulnerabilityAssessmentsSettingsList; /** Optional parameters. */ -export interface SecuritySolutionsListOptionalParams +export interface ServerVulnerabilityAssessmentsSettingsGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the list operation. */ -export type SecuritySolutionsListResponse = SecuritySolutionList; +/** Contains response data for the get operation. */ +export type ServerVulnerabilityAssessmentsSettingsGetResponse = + ServerVulnerabilityAssessmentsSettingUnion; /** Optional parameters. */ -export interface SecuritySolutionsGetOptionalParams +export interface ServerVulnerabilityAssessmentsSettingsCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type SecuritySolutionsGetResponse = SecuritySolution; +/** Contains response data for the createOrUpdate operation. */ +export type ServerVulnerabilityAssessmentsSettingsCreateOrUpdateResponse = + ServerVulnerabilityAssessmentsSettingUnion; /** Optional parameters. */ -export interface SecuritySolutionsListNextOptionalParams +export interface ServerVulnerabilityAssessmentsSettingsDeleteOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listNext operation. */ -export type SecuritySolutionsListNextResponse = SecuritySolutionList; - /** Optional parameters. */ -export interface SecuritySolutionsReferenceDataListOptionalParams +export interface ServerVulnerabilityAssessmentsSettingsListBySubscriptionNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the list operation. */ -export type SecuritySolutionsReferenceDataListResponse = - SecuritySolutionsReferenceDataList; +/** Contains response data for the listBySubscriptionNext operation. */ +export type ServerVulnerabilityAssessmentsSettingsListBySubscriptionNextResponse = + ServerVulnerabilityAssessmentsSettingsList; /** Optional parameters. */ -export interface SecuritySolutionsReferenceDataListByHomeRegionOptionalParams +export interface APICollectionsListBySubscriptionOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByHomeRegion operation. */ -export type SecuritySolutionsReferenceDataListByHomeRegionResponse = - SecuritySolutionsReferenceDataList; +/** Contains response data for the listBySubscription operation. */ +export type APICollectionsListBySubscriptionResponse = ApiCollectionList; /** Optional parameters. */ -export interface ServerVulnerabilityAssessmentListByExtendedResourceOptionalParams +export interface APICollectionsListByResourceGroupOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByExtendedResource operation. */ -export type ServerVulnerabilityAssessmentListByExtendedResourceResponse = - ServerVulnerabilityAssessmentsList; +/** Contains response data for the listByResourceGroup operation. */ +export type APICollectionsListByResourceGroupResponse = ApiCollectionList; /** Optional parameters. */ -export interface ServerVulnerabilityAssessmentGetOptionalParams +export interface APICollectionsListByAzureApiManagementServiceOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type ServerVulnerabilityAssessmentGetResponse = - ServerVulnerabilityAssessment; +/** Contains response data for the listByAzureApiManagementService operation. */ +export type APICollectionsListByAzureApiManagementServiceResponse = ApiCollectionList; /** Optional parameters. */ -export interface ServerVulnerabilityAssessmentCreateOrUpdateOptionalParams +export interface APICollectionsGetByAzureApiManagementServiceOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the createOrUpdate operation. */ -export type ServerVulnerabilityAssessmentCreateOrUpdateResponse = - ServerVulnerabilityAssessment; +/** Contains response data for the getByAzureApiManagementService operation. */ +export type APICollectionsGetByAzureApiManagementServiceResponse = ApiCollection; /** Optional parameters. */ -export interface ServerVulnerabilityAssessmentDeleteOptionalParams +export interface APICollectionsOnboardAzureApiManagementApiOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; @@ -10690,408 +10713,415 @@ export interface ServerVulnerabilityAssessmentDeleteOptionalParams resumeFrom?: string; } -/** Optional parameters. */ -export interface TopologyListOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the list operation. */ -export type TopologyListResponse = TopologyList; - -/** Optional parameters. */ -export interface TopologyListByHomeRegionOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listByHomeRegion operation. */ -export type TopologyListByHomeRegionResponse = TopologyList; +/** Contains response data for the onboardAzureApiManagementApi operation. */ +export type APICollectionsOnboardAzureApiManagementApiResponse = ApiCollection; /** Optional parameters. */ -export interface TopologyGetOptionalParams +export interface APICollectionsOffboardAzureApiManagementApiOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the get operation. */ -export type TopologyGetResponse = TopologyResource; - /** Optional parameters. */ -export interface TopologyListNextOptionalParams +export interface APICollectionsListBySubscriptionNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listNext operation. */ -export type TopologyListNextResponse = TopologyList; +/** Contains response data for the listBySubscriptionNext operation. */ +export type APICollectionsListBySubscriptionNextResponse = ApiCollectionList; /** Optional parameters. */ -export interface TopologyListByHomeRegionNextOptionalParams +export interface APICollectionsListByResourceGroupNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByHomeRegionNext operation. */ -export type TopologyListByHomeRegionNextResponse = TopologyList; +/** Contains response data for the listByResourceGroupNext operation. */ +export type APICollectionsListByResourceGroupNextResponse = ApiCollectionList; /** Optional parameters. */ -export interface AssessmentsMetadataListOptionalParams +export interface APICollectionsListByAzureApiManagementServiceNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the list operation. */ -export type AssessmentsMetadataListResponse = - SecurityAssessmentMetadataResponseList; +/** Contains response data for the listByAzureApiManagementServiceNext operation. */ +export type APICollectionsListByAzureApiManagementServiceNextResponse = ApiCollectionList; /** Optional parameters. */ -export interface AssessmentsMetadataGetOptionalParams - extends coreClient.OperationOptions {} +export interface PricingsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type AssessmentsMetadataGetResponse = SecurityAssessmentMetadataResponse; - -/** Optional parameters. */ -export interface AssessmentsMetadataListBySubscriptionOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listBySubscription operation. */ -export type AssessmentsMetadataListBySubscriptionResponse = - SecurityAssessmentMetadataResponseList; - -/** Optional parameters. */ -export interface AssessmentsMetadataGetInSubscriptionOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the getInSubscription operation. */ -export type AssessmentsMetadataGetInSubscriptionResponse = - SecurityAssessmentMetadataResponse; +export type PricingsGetResponse = Pricing; /** Optional parameters. */ -export interface AssessmentsMetadataCreateInSubscriptionOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the createInSubscription operation. */ -export type AssessmentsMetadataCreateInSubscriptionResponse = - SecurityAssessmentMetadataResponse; +export interface PricingsUpdateOptionalParams extends coreClient.OperationOptions {} -/** Optional parameters. */ -export interface AssessmentsMetadataDeleteInSubscriptionOptionalParams - extends coreClient.OperationOptions {} +/** Contains response data for the update operation. */ +export type PricingsUpdateResponse = Pricing; /** Optional parameters. */ -export interface AssessmentsMetadataListNextOptionalParams - extends coreClient.OperationOptions {} - -/** Contains response data for the listNext operation. */ -export type AssessmentsMetadataListNextResponse = - SecurityAssessmentMetadataResponseList; +export interface PricingsDeleteOptionalParams extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface AssessmentsMetadataListBySubscriptionNextOptionalParams - extends coreClient.OperationOptions {} +export interface PricingsListOptionalParams extends coreClient.OperationOptions { + /** OData filter. Optional. */ + filter?: string; +} -/** Contains response data for the listBySubscriptionNext operation. */ -export type AssessmentsMetadataListBySubscriptionNextResponse = - SecurityAssessmentMetadataResponseList; +/** Contains response data for the list operation. */ +export type PricingsListResponse = PricingList; /** Optional parameters. */ -export interface AssessmentsListOptionalParams - extends coreClient.OperationOptions {} +export interface SecurityStandardsListOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the list operation. */ -export type AssessmentsListResponse = SecurityAssessmentList; +export type SecurityStandardsListResponse = SecurityStandardList; /** Optional parameters. */ -export interface AssessmentsGetOptionalParams - extends coreClient.OperationOptions { - /** OData expand. Optional. */ - expand?: ExpandEnum; -} +export interface SecurityStandardsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type AssessmentsGetResponse = SecurityAssessmentResponse; +export type SecurityStandardsGetResponse = SecurityStandard; /** Optional parameters. */ -export interface AssessmentsCreateOrUpdateOptionalParams +export interface SecurityStandardsCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the createOrUpdate operation. */ -export type AssessmentsCreateOrUpdateResponse = SecurityAssessmentResponse; +export type SecurityStandardsCreateOrUpdateResponse = SecurityStandard; /** Optional parameters. */ -export interface AssessmentsDeleteOptionalParams - extends coreClient.OperationOptions {} +export interface SecurityStandardsDeleteOptionalParams extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface AssessmentsListNextOptionalParams - extends coreClient.OperationOptions {} +export interface SecurityStandardsListNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ -export type AssessmentsListNextResponse = SecurityAssessmentList; +export type SecurityStandardsListNextResponse = SecurityStandardList; /** Optional parameters. */ -export interface AlertsListOptionalParams extends coreClient.OperationOptions {} +export interface StandardAssignmentsGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the list operation. */ -export type AlertsListResponse = AlertList; +/** Contains response data for the get operation. */ +export type StandardAssignmentsGetResponse = StandardAssignment; /** Optional parameters. */ -export interface AlertsListByResourceGroupOptionalParams - extends coreClient.OperationOptions {} +export interface StandardAssignmentsCreateOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByResourceGroup operation. */ -export type AlertsListByResourceGroupResponse = AlertList; +/** Contains response data for the create operation. */ +export type StandardAssignmentsCreateResponse = StandardAssignment; /** Optional parameters. */ -export interface AlertsListSubscriptionLevelByRegionOptionalParams - extends coreClient.OperationOptions {} +export interface StandardAssignmentsDeleteOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listSubscriptionLevelByRegion operation. */ -export type AlertsListSubscriptionLevelByRegionResponse = AlertList; +/** Optional parameters. */ +export interface StandardAssignmentsListOptionalParams extends coreClient.OperationOptions {} + +/** Contains response data for the list operation. */ +export type StandardAssignmentsListResponse = StandardAssignmentsList; /** Optional parameters. */ -export interface AlertsListResourceGroupLevelByRegionOptionalParams - extends coreClient.OperationOptions {} +export interface StandardAssignmentsListNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listResourceGroupLevelByRegion operation. */ -export type AlertsListResourceGroupLevelByRegionResponse = AlertList; +/** Contains response data for the listNext operation. */ +export type StandardAssignmentsListNextResponse = StandardAssignmentsList; /** Optional parameters. */ -export interface AlertsGetSubscriptionLevelOptionalParams - extends coreClient.OperationOptions {} +export interface CustomRecommendationsListOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the getSubscriptionLevel operation. */ -export type AlertsGetSubscriptionLevelResponse = Alert; +/** Contains response data for the list operation. */ +export type CustomRecommendationsListResponse = CustomRecommendationsList; /** Optional parameters. */ -export interface AlertsGetResourceGroupLevelOptionalParams - extends coreClient.OperationOptions {} +export interface CustomRecommendationsGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the getResourceGroupLevel operation. */ -export type AlertsGetResourceGroupLevelResponse = Alert; +/** Contains response data for the get operation. */ +export type CustomRecommendationsGetResponse = CustomRecommendation; /** Optional parameters. */ -export interface AlertsUpdateSubscriptionLevelStateToDismissOptionalParams +export interface CustomRecommendationsCreateOrUpdateOptionalParams extends coreClient.OperationOptions {} -/** Optional parameters. */ -export interface AlertsUpdateSubscriptionLevelStateToResolveOptionalParams - extends coreClient.OperationOptions {} +/** Contains response data for the createOrUpdate operation. */ +export type CustomRecommendationsCreateOrUpdateResponse = CustomRecommendation; /** Optional parameters. */ -export interface AlertsUpdateSubscriptionLevelStateToActivateOptionalParams - extends coreClient.OperationOptions {} +export interface CustomRecommendationsDeleteOptionalParams extends coreClient.OperationOptions {} /** Optional parameters. */ -export interface AlertsUpdateSubscriptionLevelStateToInProgressOptionalParams - extends coreClient.OperationOptions {} +export interface CustomRecommendationsListNextOptionalParams extends coreClient.OperationOptions {} + +/** Contains response data for the listNext operation. */ +export type CustomRecommendationsListNextResponse = CustomRecommendationsList; /** Optional parameters. */ -export interface AlertsUpdateResourceGroupLevelStateToResolveOptionalParams - extends coreClient.OperationOptions {} +export interface AzureDevOpsOrgsListAvailableOptionalParams extends coreClient.OperationOptions {} + +/** Contains response data for the listAvailable operation. */ +export type AzureDevOpsOrgsListAvailableResponse = AzureDevOpsOrgListResponse; /** Optional parameters. */ -export interface AlertsUpdateResourceGroupLevelStateToDismissOptionalParams - extends coreClient.OperationOptions {} +export interface AzureDevOpsOrgsListOptionalParams extends coreClient.OperationOptions {} + +/** Contains response data for the list operation. */ +export type AzureDevOpsOrgsListResponse = AzureDevOpsOrgListResponse; /** Optional parameters. */ -export interface AlertsUpdateResourceGroupLevelStateToActivateOptionalParams - extends coreClient.OperationOptions {} +export interface AzureDevOpsOrgsGetOptionalParams extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type AzureDevOpsOrgsGetResponse = AzureDevOpsOrg; /** Optional parameters. */ -export interface AlertsUpdateResourceGroupLevelStateToInProgressOptionalParams - 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 AzureDevOpsOrgsCreateOrUpdateResponse = AzureDevOpsOrg; /** Optional parameters. */ -export interface AlertsSimulateOptionalParams - extends coreClient.OperationOptions { +export interface AzureDevOpsOrgsUpdateOptionalParams extends coreClient.OperationOptions { /** Delay to wait until next poll, in milliseconds. */ updateIntervalInMs?: number; /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ resumeFrom?: string; } +/** Contains response data for the update operation. */ +export type AzureDevOpsOrgsUpdateResponse = AzureDevOpsOrg; + /** Optional parameters. */ -export interface AlertsListNextOptionalParams - extends coreClient.OperationOptions {} +export interface AzureDevOpsOrgsListNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ -export type AlertsListNextResponse = AlertList; +export type AzureDevOpsOrgsListNextResponse = AzureDevOpsOrgListResponse; /** Optional parameters. */ -export interface AlertsListByResourceGroupNextOptionalParams - extends coreClient.OperationOptions {} +export interface AzureDevOpsProjectsListOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByResourceGroupNext operation. */ -export type AlertsListByResourceGroupNextResponse = AlertList; +/** Contains response data for the list operation. */ +export type AzureDevOpsProjectsListResponse = AzureDevOpsProjectListResponse; /** Optional parameters. */ -export interface AlertsListSubscriptionLevelByRegionNextOptionalParams - extends coreClient.OperationOptions {} +export interface AzureDevOpsProjectsGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listSubscriptionLevelByRegionNext operation. */ -export type AlertsListSubscriptionLevelByRegionNextResponse = AlertList; +/** Contains response data for the get operation. */ +export type AzureDevOpsProjectsGetResponse = AzureDevOpsProject; /** Optional parameters. */ -export interface AlertsListResourceGroupLevelByRegionNextOptionalParams - 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 listResourceGroupLevelByRegionNext operation. */ -export type AlertsListResourceGroupLevelByRegionNextResponse = AlertList; +/** Contains response data for the createOrUpdate operation. */ +export type AzureDevOpsProjectsCreateOrUpdateResponse = AzureDevOpsProject; /** Optional parameters. */ -export interface SettingsListOptionalParams - 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 update operation. */ +export type AzureDevOpsProjectsUpdateResponse = AzureDevOpsProject; + +/** Optional parameters. */ +export interface AzureDevOpsProjectsListNextOptionalParams extends coreClient.OperationOptions {} + +/** Contains response data for the listNext operation. */ +export type AzureDevOpsProjectsListNextResponse = AzureDevOpsProjectListResponse; + +/** Optional parameters. */ +export interface AzureDevOpsReposListOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the list operation. */ -export type SettingsListResponse = SettingsList; +export type AzureDevOpsReposListResponse = AzureDevOpsRepositoryListResponse; /** Optional parameters. */ -export interface SettingsGetOptionalParams - extends coreClient.OperationOptions {} +export interface AzureDevOpsReposGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type SettingsGetResponse = SettingUnion; +export type AzureDevOpsReposGetResponse = AzureDevOpsRepository; /** Optional parameters. */ -export interface SettingsUpdateOptionalParams - 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 createOrUpdate operation. */ +export type AzureDevOpsReposCreateOrUpdateResponse = AzureDevOpsRepository; + +/** Optional parameters. */ +export interface AzureDevOpsReposUpdateOptionalParams extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} /** Contains response data for the update operation. */ -export type SettingsUpdateResponse = SettingUnion; +export type AzureDevOpsReposUpdateResponse = AzureDevOpsRepository; /** Optional parameters. */ -export interface SettingsListNextOptionalParams - extends coreClient.OperationOptions {} +export interface AzureDevOpsReposListNextOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the listNext operation. */ -export type SettingsListNextResponse = SettingsList; +export type AzureDevOpsReposListNextResponse = AzureDevOpsRepositoryListResponse; /** Optional parameters. */ -export interface ServerVulnerabilityAssessmentsSettingsListBySubscriptionOptionalParams - extends coreClient.OperationOptions {} +export interface DevOpsConfigurationsListOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listBySubscription operation. */ -export type ServerVulnerabilityAssessmentsSettingsListBySubscriptionResponse = - ServerVulnerabilityAssessmentsSettingsList; +/** Contains response data for the list operation. */ +export type DevOpsConfigurationsListResponse = DevOpsConfigurationListResponse; /** Optional parameters. */ -export interface ServerVulnerabilityAssessmentsSettingsGetOptionalParams - extends coreClient.OperationOptions {} +export interface DevOpsConfigurationsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type ServerVulnerabilityAssessmentsSettingsGetResponse = - ServerVulnerabilityAssessmentsSettingUnion; +export type DevOpsConfigurationsGetResponse = DevOpsConfiguration; /** Optional parameters. */ -export interface ServerVulnerabilityAssessmentsSettingsCreateOrUpdateOptionalParams - extends coreClient.OperationOptions {} +export interface DevOpsConfigurationsCreateOrUpdateOptionalParams + extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} /** Contains response data for the createOrUpdate operation. */ -export type ServerVulnerabilityAssessmentsSettingsCreateOrUpdateResponse = - ServerVulnerabilityAssessmentsSettingUnion; +export type DevOpsConfigurationsCreateOrUpdateResponse = DevOpsConfiguration; /** Optional parameters. */ -export interface ServerVulnerabilityAssessmentsSettingsDeleteOptionalParams - extends coreClient.OperationOptions {} +export interface DevOpsConfigurationsUpdateOptionalParams extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} + +/** Contains response data for the update operation. */ +export type DevOpsConfigurationsUpdateResponse = DevOpsConfiguration; /** Optional parameters. */ -export interface ServerVulnerabilityAssessmentsSettingsListBySubscriptionNextOptionalParams - extends coreClient.OperationOptions {} +export interface DevOpsConfigurationsDeleteOptionalParams extends coreClient.OperationOptions { + /** Delay to wait until next poll, in milliseconds. */ + updateIntervalInMs?: number; + /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ + resumeFrom?: string; +} -/** Contains response data for the listBySubscriptionNext operation. */ -export type ServerVulnerabilityAssessmentsSettingsListBySubscriptionNextResponse = - ServerVulnerabilityAssessmentsSettingsList; +/** Optional parameters. */ +export interface DevOpsConfigurationsListNextOptionalParams extends coreClient.OperationOptions {} + +/** Contains response data for the listNext operation. */ +export type DevOpsConfigurationsListNextResponse = DevOpsConfigurationListResponse; /** Optional parameters. */ -export interface APICollectionsListBySubscriptionOptionalParams - extends coreClient.OperationOptions {} +export interface GitHubOwnersListAvailableOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listBySubscription operation. */ -export type APICollectionsListBySubscriptionResponse = ApiCollectionList; +/** Contains response data for the listAvailable operation. */ +export type GitHubOwnersListAvailableResponse = GitHubOwnerListResponse; /** Optional parameters. */ -export interface APICollectionsListByResourceGroupOptionalParams - extends coreClient.OperationOptions {} +export interface GitHubOwnersListOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByResourceGroup operation. */ -export type APICollectionsListByResourceGroupResponse = ApiCollectionList; +/** Contains response data for the list operation. */ +export type GitHubOwnersListResponse = GitHubOwnerListResponse; /** Optional parameters. */ -export interface APICollectionsListByAzureApiManagementServiceOptionalParams - extends coreClient.OperationOptions {} +export interface GitHubOwnersGetOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByAzureApiManagementService operation. */ -export type APICollectionsListByAzureApiManagementServiceResponse = - ApiCollectionList; +/** Contains response data for the get operation. */ +export type GitHubOwnersGetResponse = GitHubOwner; /** Optional parameters. */ -export interface APICollectionsGetByAzureApiManagementServiceOptionalParams - extends coreClient.OperationOptions {} +export interface GitHubOwnersListNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the getByAzureApiManagementService operation. */ -export type APICollectionsGetByAzureApiManagementServiceResponse = - ApiCollection; +/** Contains response data for the listNext operation. */ +export type GitHubOwnersListNextResponse = GitHubOwnerListResponse; /** Optional parameters. */ -export interface APICollectionsOnboardAzureApiManagementApiOptionalParams - extends coreClient.OperationOptions { - /** Delay to wait until next poll, in milliseconds. */ - updateIntervalInMs?: number; - /** A serialized poller which can be used to resume an existing paused Long-Running-Operation. */ - resumeFrom?: string; -} +export interface GitHubReposListOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the onboardAzureApiManagementApi operation. */ -export type APICollectionsOnboardAzureApiManagementApiResponse = ApiCollection; +/** Contains response data for the list operation. */ +export type GitHubReposListResponse = GitHubRepositoryListResponse; /** Optional parameters. */ -export interface APICollectionsOffboardAzureApiManagementApiOptionalParams - extends coreClient.OperationOptions {} +export interface GitHubReposGetOptionalParams extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type GitHubReposGetResponse = GitHubRepository; /** Optional parameters. */ -export interface APICollectionsListBySubscriptionNextOptionalParams - extends coreClient.OperationOptions {} +export interface GitHubReposListNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listBySubscriptionNext operation. */ -export type APICollectionsListBySubscriptionNextResponse = ApiCollectionList; +/** Contains response data for the listNext operation. */ +export type GitHubReposListNextResponse = GitHubRepositoryListResponse; /** Optional parameters. */ -export interface APICollectionsListByResourceGroupNextOptionalParams - extends coreClient.OperationOptions {} +export interface GitLabGroupsListAvailableOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByResourceGroupNext operation. */ -export type APICollectionsListByResourceGroupNextResponse = ApiCollectionList; +/** Contains response data for the listAvailable operation. */ +export type GitLabGroupsListAvailableResponse = GitLabGroupListResponse; /** Optional parameters. */ -export interface APICollectionsListByAzureApiManagementServiceNextOptionalParams - extends coreClient.OperationOptions {} +export interface GitLabGroupsListOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the listByAzureApiManagementServiceNext operation. */ -export type APICollectionsListByAzureApiManagementServiceNextResponse = - ApiCollectionList; +/** Contains response data for the list operation. */ +export type GitLabGroupsListResponse = GitLabGroupListResponse; /** Optional parameters. */ -export interface PricingsGetOptionalParams - extends coreClient.OperationOptions {} +export interface GitLabGroupsGetOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the get operation. */ -export type PricingsGetResponse = Pricing; +export type GitLabGroupsGetResponse = GitLabGroup; /** Optional parameters. */ -export interface PricingsUpdateOptionalParams - extends coreClient.OperationOptions {} +export interface GitLabGroupsListNextOptionalParams extends coreClient.OperationOptions {} -/** Contains response data for the update operation. */ -export type PricingsUpdateResponse = Pricing; +/** Contains response data for the listNext operation. */ +export type GitLabGroupsListNextResponse = GitLabGroupListResponse; /** Optional parameters. */ -export interface PricingsDeleteOptionalParams - extends coreClient.OperationOptions {} +export interface GitLabSubgroupsListOptionalParams extends coreClient.OperationOptions {} + +/** Contains response data for the list operation. */ +export type GitLabSubgroupsListResponse = GitLabGroupListResponse; /** Optional parameters. */ -export interface PricingsListOptionalParams - extends coreClient.OperationOptions { - /** OData filter. Optional. */ - filter?: string; -} +export interface GitLabProjectsListOptionalParams extends coreClient.OperationOptions {} /** Contains response data for the list operation. */ -export type PricingsListResponse = PricingList; +export type GitLabProjectsListResponse = GitLabProjectListResponse; + +/** Optional parameters. */ +export interface GitLabProjectsGetOptionalParams extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type GitLabProjectsGetResponse = GitLabProject; + +/** Optional parameters. */ +export interface GitLabProjectsListNextOptionalParams extends coreClient.OperationOptions {} + +/** Contains response data for the listNext operation. */ +export type GitLabProjectsListNextResponse = GitLabProjectListResponse; + +/** Optional parameters. */ +export interface DevOpsOperationResultsGetOptionalParams extends coreClient.OperationOptions {} + +/** Contains response data for the get operation. */ +export type DevOpsOperationResultsGetResponse = OperationStatusResult; /** Optional parameters. */ -export interface SecurityCenterOptionalParams - extends coreClient.ServiceClientOptions { +export interface SecurityCenterOptionalParams extends coreClient.ServiceClientOptions { /** server parameter */ $host?: string; /** Overrides client endpoint. */ diff --git a/sdk/security/arm-security/src/models/mappers.ts b/sdk/security/arm-security/src/models/mappers.ts index b3a699b668d5..621830322988 100644 --- a/sdk/security/arm-security/src/models/mappers.ts +++ b/sdk/security/arm-security/src/models/mappers.ts @@ -203,101 +203,6 @@ export const ErrorAdditionalInfo: coreClient.CompositeMapper = { }, }; -export const OperationList: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "OperationList", - modelProperties: { - value: { - serializedName: "value", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "Operation", - }, - }, - }, - }, - nextLink: { - serializedName: "nextLink", - readOnly: true, - type: { - name: "String", - }, - }, - }, - }, -}; - -export const Operation: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "Operation", - modelProperties: { - name: { - serializedName: "name", - readOnly: true, - type: { - name: "String", - }, - }, - origin: { - serializedName: "origin", - readOnly: true, - type: { - name: "String", - }, - }, - display: { - serializedName: "display", - type: { - name: "Composite", - className: "OperationDisplay", - }, - }, - }, - }, -}; - -export const OperationDisplay: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "OperationDisplay", - modelProperties: { - provider: { - serializedName: "provider", - readOnly: true, - type: { - name: "String", - }, - }, - resource: { - serializedName: "resource", - readOnly: true, - type: { - name: "String", - }, - }, - operation: { - serializedName: "operation", - readOnly: true, - type: { - name: "String", - }, - }, - description: { - serializedName: "description", - readOnly: true, - type: { - name: "String", - }, - }, - }, - }, -}; - export const SecurityTaskList: coreClient.CompositeMapper = { type: { name: "Composite", @@ -677,10 +582,10 @@ export const ScopeElement: coreClient.CompositeMapper = { }, }; -export const AutomationList: coreClient.CompositeMapper = { +export const RegulatoryComplianceStandardList: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AutomationList", + className: "RegulatoryComplianceStandardList", modelProperties: { value: { serializedName: "value", @@ -690,7 +595,7 @@ export const AutomationList: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "Automation", + className: "RegulatoryComplianceStandard", }, }, }, @@ -706,19 +611,27 @@ export const AutomationList: coreClient.CompositeMapper = { }, }; -export const AutomationScope: coreClient.CompositeMapper = { +export const RegulatoryComplianceControlList: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AutomationScope", + className: "RegulatoryComplianceControlList", modelProperties: { - description: { - serializedName: "description", + value: { + serializedName: "value", + required: true, type: { - name: "String", + name: "Sequence", + element: { + type: { + name: "Composite", + className: "RegulatoryComplianceControl", + }, + }, }, }, - scopePath: { - serializedName: "scopePath", + nextLink: { + serializedName: "nextLink", + readOnly: true, type: { name: "String", }, @@ -727,79 +640,93 @@ export const AutomationScope: coreClient.CompositeMapper = { }, }; -export const AutomationSource: coreClient.CompositeMapper = { +export const RegulatoryComplianceAssessmentList: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AutomationSource", + className: "RegulatoryComplianceAssessmentList", modelProperties: { - eventSource: { - serializedName: "eventSource", - type: { - name: "String", - }, - }, - ruleSets: { - serializedName: "ruleSets", + value: { + serializedName: "value", + required: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "AutomationRuleSet", + className: "RegulatoryComplianceAssessment", }, }, }, }, + nextLink: { + serializedName: "nextLink", + readOnly: true, + type: { + name: "String", + }, + }, }, }, }; -export const AutomationRuleSet: coreClient.CompositeMapper = { +export const SecuritySubAssessmentList: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AutomationRuleSet", + className: "SecuritySubAssessmentList", modelProperties: { - rules: { - serializedName: "rules", + value: { + serializedName: "value", + readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "AutomationTriggeringRule", + className: "SecuritySubAssessment", }, }, }, }, + nextLink: { + serializedName: "nextLink", + readOnly: true, + type: { + name: "String", + }, + }, }, }, }; -export const AutomationTriggeringRule: coreClient.CompositeMapper = { +export const SubAssessmentStatus: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AutomationTriggeringRule", + className: "SubAssessmentStatus", modelProperties: { - propertyJPath: { - serializedName: "propertyJPath", + code: { + serializedName: "code", + readOnly: true, type: { name: "String", }, }, - propertyType: { - serializedName: "propertyType", + cause: { + serializedName: "cause", + readOnly: true, type: { name: "String", }, }, - expectedValue: { - serializedName: "expectedValue", + description: { + serializedName: "description", + readOnly: true, type: { name: "String", }, }, - operator: { - serializedName: "operator", + severity: { + serializedName: "severity", + readOnly: true, type: { name: "String", }, @@ -808,18 +735,18 @@ export const AutomationTriggeringRule: coreClient.CompositeMapper = { }, }; -export const AutomationAction: coreClient.CompositeMapper = { +export const ResourceDetails: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AutomationAction", - uberParent: "AutomationAction", + className: "ResourceDetails", + uberParent: "ResourceDetails", polymorphicDiscriminator: { - serializedName: "actionType", - clientName: "actionType", + serializedName: "source", + clientName: "source", }, modelProperties: { - actionType: { - serializedName: "actionType", + source: { + serializedName: "source", required: true, type: { name: "String", @@ -829,13 +756,19 @@ export const AutomationAction: coreClient.CompositeMapper = { }, }; -export const AzureTrackedResourceLocation: coreClient.CompositeMapper = { +export const AdditionalData: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AzureTrackedResourceLocation", + className: "AdditionalData", + uberParent: "AdditionalData", + polymorphicDiscriminator: { + serializedName: "assessedResourceType", + clientName: "assessedResourceType", + }, modelProperties: { - location: { - serializedName: "location", + assessedResourceType: { + serializedName: "assessedResourceType", + required: true, type: { name: "String", }, @@ -844,28 +777,26 @@ export const AzureTrackedResourceLocation: coreClient.CompositeMapper = { }, }; -export const KindAutoGenerated: coreClient.CompositeMapper = { +export const ConnectorSettingList: coreClient.CompositeMapper = { type: { name: "Composite", - className: "KindAutoGenerated", + className: "ConnectorSettingList", modelProperties: { - kind: { - serializedName: "kind", + value: { + serializedName: "value", type: { - name: "String", + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ConnectorSetting", + }, + }, }, }, - }, - }, -}; - -export const ETag: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ETag", - modelProperties: { - etag: { - serializedName: "etag", + nextLink: { + serializedName: "nextLink", + readOnly: true, type: { name: "String", }, @@ -874,35 +805,68 @@ export const ETag: coreClient.CompositeMapper = { }, }; -export const Tags: coreClient.CompositeMapper = { +export const HybridComputeSettingsProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Tags", + className: "HybridComputeSettingsProperties", modelProperties: { - tags: { - serializedName: "tags", + hybridComputeProvisioningState: { + serializedName: "hybridComputeProvisioningState", + readOnly: true, type: { - name: "Dictionary", - value: { type: { name: "String" } }, + name: "String", + }, + }, + autoProvision: { + serializedName: "autoProvision", + required: true, + type: { + name: "String", + }, + }, + resourceGroupName: { + serializedName: "resourceGroupName", + type: { + name: "String", + }, + }, + region: { + serializedName: "region", + type: { + name: "String", + }, + }, + proxyServer: { + serializedName: "proxyServer", + type: { + name: "Composite", + className: "ProxyServerProperties", + }, + }, + servicePrincipal: { + serializedName: "servicePrincipal", + type: { + name: "Composite", + className: "ServicePrincipalProperties", }, }, }, }, }; -export const AutomationValidationStatus: coreClient.CompositeMapper = { +export const ProxyServerProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AutomationValidationStatus", + className: "ProxyServerProperties", modelProperties: { - isValid: { - serializedName: "isValid", + ip: { + serializedName: "ip", type: { - name: "Boolean", + name: "String", }, }, - message: { - serializedName: "message", + port: { + serializedName: "port", type: { name: "String", }, @@ -911,27 +875,19 @@ export const AutomationValidationStatus: coreClient.CompositeMapper = { }, }; -export const RegulatoryComplianceStandardList: coreClient.CompositeMapper = { +export const ServicePrincipalProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RegulatoryComplianceStandardList", + className: "ServicePrincipalProperties", modelProperties: { - value: { - serializedName: "value", - required: true, + applicationId: { + serializedName: "applicationId", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "RegulatoryComplianceStandard", - }, - }, + name: "String", }, }, - nextLink: { - serializedName: "nextLink", - readOnly: true, + secret: { + serializedName: "secret", type: { name: "String", }, @@ -940,27 +896,38 @@ export const RegulatoryComplianceStandardList: coreClient.CompositeMapper = { }, }; -export const RegulatoryComplianceControlList: coreClient.CompositeMapper = { +export const AuthenticationDetailsProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RegulatoryComplianceControlList", + className: "AuthenticationDetailsProperties", + uberParent: "AuthenticationDetailsProperties", + polymorphicDiscriminator: { + serializedName: "authenticationType", + clientName: "authenticationType", + }, modelProperties: { - value: { - serializedName: "value", - required: true, + authenticationProvisioningState: { + serializedName: "authenticationProvisioningState", + readOnly: true, + type: { + name: "String", + }, + }, + grantedPermissions: { + serializedName: "grantedPermissions", + readOnly: true, type: { name: "Sequence", element: { type: { - name: "Composite", - className: "RegulatoryComplianceControl", + name: "String", }, }, }, }, - nextLink: { - serializedName: "nextLink", - readOnly: true, + authenticationType: { + serializedName: "authenticationType", + required: true, type: { name: "String", }, @@ -969,20 +936,19 @@ export const RegulatoryComplianceControlList: coreClient.CompositeMapper = { }, }; -export const RegulatoryComplianceAssessmentList: coreClient.CompositeMapper = { +export const SoftwaresList: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RegulatoryComplianceAssessmentList", + className: "SoftwaresList", modelProperties: { value: { serializedName: "value", - required: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "RegulatoryComplianceAssessment", + className: "Software", }, }, }, @@ -998,10 +964,55 @@ export const RegulatoryComplianceAssessmentList: coreClient.CompositeMapper = { }, }; -export const SecuritySubAssessmentList: coreClient.CompositeMapper = { +export const SystemData: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SecuritySubAssessmentList", + className: "SystemData", + modelProperties: { + createdBy: { + serializedName: "createdBy", + type: { + name: "String", + }, + }, + createdByType: { + serializedName: "createdByType", + type: { + name: "String", + }, + }, + createdAt: { + serializedName: "createdAt", + type: { + name: "DateTime", + }, + }, + lastModifiedBy: { + serializedName: "lastModifiedBy", + type: { + name: "String", + }, + }, + lastModifiedByType: { + serializedName: "lastModifiedByType", + type: { + name: "String", + }, + }, + lastModifiedAt: { + serializedName: "lastModifiedAt", + type: { + name: "DateTime", + }, + }, + }, + }, +}; + +export const CustomAssessmentAutomationsListResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "CustomAssessmentAutomationsListResult", modelProperties: { value: { serializedName: "value", @@ -1011,14 +1022,13 @@ export const SecuritySubAssessmentList: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "SecuritySubAssessment", + className: "CustomAssessmentAutomation", }, }, }, }, nextLink: { serializedName: "nextLink", - readOnly: true, type: { name: "String", }, @@ -1027,35 +1037,13 @@ export const SecuritySubAssessmentList: coreClient.CompositeMapper = { }, }; -export const SubAssessmentStatus: coreClient.CompositeMapper = { +export const CustomEntityStoreAssignmentRequest: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SubAssessmentStatus", + className: "CustomEntityStoreAssignmentRequest", modelProperties: { - code: { - serializedName: "code", - readOnly: true, - type: { - name: "String", - }, - }, - cause: { - serializedName: "cause", - readOnly: true, - type: { - name: "String", - }, - }, - description: { - serializedName: "description", - readOnly: true, - type: { - name: "String", - }, - }, - severity: { - serializedName: "severity", - readOnly: true, + principal: { + serializedName: "properties.principal", type: { name: "String", }, @@ -1064,19 +1052,26 @@ export const SubAssessmentStatus: coreClient.CompositeMapper = { }, }; -export const ResourceDetails: coreClient.CompositeMapper = { +export const CustomEntityStoreAssignmentsListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ResourceDetails", - uberParent: "ResourceDetails", - polymorphicDiscriminator: { - serializedName: "source", - clientName: "source", - }, + className: "CustomEntityStoreAssignmentsListResult", modelProperties: { - source: { - serializedName: "source", - required: true, + value: { + serializedName: "value", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "CustomEntityStoreAssignment", + }, + }, + }, + }, + nextLink: { + serializedName: "nextLink", type: { name: "String", }, @@ -1085,40 +1080,41 @@ export const ResourceDetails: coreClient.CompositeMapper = { }, }; -export const AdditionalData: coreClient.CompositeMapper = { +export const MdeOnboardingDataList: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AdditionalData", - uberParent: "AdditionalData", - polymorphicDiscriminator: { - serializedName: "assessedResourceType", - clientName: "assessedResourceType", - }, + className: "MdeOnboardingDataList", modelProperties: { - assessedResourceType: { - serializedName: "assessedResourceType", - required: true, + value: { + serializedName: "value", type: { - name: "String", + name: "Sequence", + element: { + type: { + name: "Composite", + className: "MdeOnboardingData", + }, + }, }, }, }, }, }; -export const ConnectorSettingList: coreClient.CompositeMapper = { +export const GovernanceAssignmentsList: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ConnectorSettingList", + className: "GovernanceAssignmentsList", modelProperties: { value: { serializedName: "value", + readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "ConnectorSetting", + className: "GovernanceAssignment", }, }, }, @@ -1134,129 +1130,72 @@ export const ConnectorSettingList: coreClient.CompositeMapper = { }, }; -export const HybridComputeSettingsProperties: coreClient.CompositeMapper = { +export const RemediationEta: coreClient.CompositeMapper = { type: { name: "Composite", - className: "HybridComputeSettingsProperties", + className: "RemediationEta", modelProperties: { - hybridComputeProvisioningState: { - serializedName: "hybridComputeProvisioningState", - readOnly: true, + eta: { + serializedName: "eta", + required: true, type: { - name: "String", + name: "DateTime", }, }, - autoProvision: { - serializedName: "autoProvision", + justification: { + serializedName: "justification", required: true, type: { name: "String", }, }, - resourceGroupName: { - serializedName: "resourceGroupName", - type: { - name: "String", - }, - }, - region: { - serializedName: "region", - type: { - name: "String", - }, - }, - proxyServer: { - serializedName: "proxyServer", - type: { - name: "Composite", - className: "ProxyServerProperties", - }, - }, - servicePrincipal: { - serializedName: "servicePrincipal", - type: { - name: "Composite", - className: "ServicePrincipalProperties", - }, - }, }, }, }; -export const ProxyServerProperties: coreClient.CompositeMapper = { +export const GovernanceEmailNotification: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ProxyServerProperties", + className: "GovernanceEmailNotification", modelProperties: { - ip: { - serializedName: "ip", + disableManagerEmailNotification: { + serializedName: "disableManagerEmailNotification", type: { - name: "String", + name: "Boolean", }, }, - port: { - serializedName: "port", + disableOwnerEmailNotification: { + serializedName: "disableOwnerEmailNotification", type: { - name: "String", + name: "Boolean", }, }, }, }, }; -export const ServicePrincipalProperties: coreClient.CompositeMapper = { +export const GovernanceAssignmentAdditionalData: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ServicePrincipalProperties", + className: "GovernanceAssignmentAdditionalData", modelProperties: { - applicationId: { - serializedName: "applicationId", - type: { - name: "String", + ticketNumber: { + constraints: { + InclusiveMinimum: 0, }, - }, - secret: { - serializedName: "secret", + serializedName: "ticketNumber", type: { - name: "String", + name: "Number", }, }, - }, - }, -}; - -export const AuthenticationDetailsProperties: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "AuthenticationDetailsProperties", - uberParent: "AuthenticationDetailsProperties", - polymorphicDiscriminator: { - serializedName: "authenticationType", - clientName: "authenticationType", - }, - modelProperties: { - authenticationProvisioningState: { - serializedName: "authenticationProvisioningState", - readOnly: true, + ticketLink: { + serializedName: "ticketLink", type: { name: "String", }, }, - grantedPermissions: { - serializedName: "grantedPermissions", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "String", - }, - }, - }, - }, - authenticationType: { - serializedName: "authenticationType", - required: true, + ticketStatus: { + serializedName: "ticketStatus", type: { name: "String", }, @@ -1265,20 +1204,20 @@ export const AuthenticationDetailsProperties: coreClient.CompositeMapper = { }, }; -export const SecurityContactList: coreClient.CompositeMapper = { +export const GovernanceRuleList: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SecurityContactList", + className: "GovernanceRuleList", modelProperties: { value: { serializedName: "value", - required: true, + readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "SecurityContact", + className: "GovernanceRule", }, }, }, @@ -1294,119 +1233,77 @@ export const SecurityContactList: coreClient.CompositeMapper = { }, }; -export const NotificationsSource: coreClient.CompositeMapper = { +export const GovernanceRuleOwnerSource: coreClient.CompositeMapper = { type: { name: "Composite", - className: "NotificationsSource", - uberParent: "NotificationsSource", - polymorphicDiscriminator: { - serializedName: "sourceType", - clientName: "sourceType", - }, + className: "GovernanceRuleOwnerSource", modelProperties: { - sourceType: { - serializedName: "sourceType", - required: true, + type: { + serializedName: "type", type: { name: "String", }, }, - }, - }, -}; - -export const SecurityContactPropertiesNotificationsByRole: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "SecurityContactPropertiesNotificationsByRole", - modelProperties: { - state: { - serializedName: "state", - type: { - name: "String", - }, - }, - roles: { - serializedName: "roles", - type: { - name: "Sequence", - element: { - type: { - name: "String", - }, - }, - }, + value: { + serializedName: "value", + type: { + name: "String", }, }, }, - }; + }, +}; -export const SoftwaresList: coreClient.CompositeMapper = { +export const GovernanceRuleEmailNotification: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SoftwaresList", + className: "GovernanceRuleEmailNotification", modelProperties: { - value: { - serializedName: "value", + disableManagerEmailNotification: { + serializedName: "disableManagerEmailNotification", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "Software", - }, - }, + name: "Boolean", }, }, - nextLink: { - serializedName: "nextLink", - readOnly: true, + disableOwnerEmailNotification: { + serializedName: "disableOwnerEmailNotification", type: { - name: "String", + name: "Boolean", }, }, }, }, }; -export const SystemData: coreClient.CompositeMapper = { +export const GovernanceRuleMetadata: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SystemData", + className: "GovernanceRuleMetadata", modelProperties: { createdBy: { serializedName: "createdBy", + readOnly: true, type: { name: "String", }, }, - createdByType: { - serializedName: "createdByType", - type: { - name: "String", - }, - }, - createdAt: { - serializedName: "createdAt", + createdOn: { + serializedName: "createdOn", + readOnly: true, type: { name: "DateTime", }, }, - lastModifiedBy: { - serializedName: "lastModifiedBy", - type: { - name: "String", - }, - }, - lastModifiedByType: { - serializedName: "lastModifiedByType", + updatedBy: { + serializedName: "updatedBy", + readOnly: true, type: { name: "String", }, }, - lastModifiedAt: { - serializedName: "lastModifiedAt", + updatedOn: { + serializedName: "updatedOn", + readOnly: true, type: { name: "DateTime", }, @@ -1415,42 +1312,29 @@ export const SystemData: coreClient.CompositeMapper = { }, }; -export const CustomAssessmentAutomationsListResult: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "CustomAssessmentAutomationsListResult", - modelProperties: { - value: { - serializedName: "value", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "CustomAssessmentAutomation", - }, - }, - }, - }, - nextLink: { - serializedName: "nextLink", - type: { - name: "String", - }, +export const ExecuteGovernanceRuleParams: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ExecuteGovernanceRuleParams", + modelProperties: { + override: { + serializedName: "override", + type: { + name: "Boolean", }, }, }, - }; + }, +}; -export const CustomEntityStoreAssignmentRequest: coreClient.CompositeMapper = { +export const OperationResultAutoGenerated: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CustomEntityStoreAssignmentRequest", + className: "OperationResultAutoGenerated", modelProperties: { - principal: { - serializedName: "properties.principal", + status: { + serializedName: "status", + readOnly: true, type: { name: "String", }, @@ -1459,100 +1343,80 @@ export const CustomEntityStoreAssignmentRequest: coreClient.CompositeMapper = { }, }; -export const CustomEntityStoreAssignmentsListResult: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "CustomEntityStoreAssignmentsListResult", - modelProperties: { - value: { - serializedName: "value", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "CustomEntityStoreAssignment", - }, - }, - }, - }, - nextLink: { - serializedName: "nextLink", - type: { - name: "String", - }, - }, - }, - }, - }; - -export const MdeOnboardingDataList: coreClient.CompositeMapper = { +export const ApplicationsList: coreClient.CompositeMapper = { type: { name: "Composite", - className: "MdeOnboardingDataList", + className: "ApplicationsList", modelProperties: { value: { serializedName: "value", + readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "MdeOnboardingData", + className: "Application", }, }, }, }, - }, - }, -}; - -export const GovernanceAssignmentsList: coreClient.CompositeMapper = { + nextLink: { + serializedName: "nextLink", + readOnly: true, + type: { + name: "String", + }, + }, + }, + }, +}; + +export const SecurityOperatorList: coreClient.CompositeMapper = { type: { name: "Composite", - className: "GovernanceAssignmentsList", + className: "SecurityOperatorList", modelProperties: { value: { serializedName: "value", - readOnly: true, + required: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "GovernanceAssignment", + className: "SecurityOperator", }, }, }, }, - nextLink: { - serializedName: "nextLink", - readOnly: true, - type: { - name: "String", - }, - }, }, }, }; -export const RemediationEta: coreClient.CompositeMapper = { +export const Identity: coreClient.CompositeMapper = { type: { name: "Composite", - className: "RemediationEta", + className: "Identity", modelProperties: { - eta: { - serializedName: "eta", - required: true, + principalId: { + serializedName: "principalId", + readOnly: true, type: { - name: "DateTime", + name: "String", }, }, - justification: { - serializedName: "justification", - required: true, + tenantId: { + serializedName: "tenantId", + readOnly: true, + type: { + name: "String", + }, + }, + type: { + defaultValue: "SystemAssigned", + isConstant: true, + serializedName: "type", type: { name: "String", }, @@ -1561,465 +1425,172 @@ export const RemediationEta: coreClient.CompositeMapper = { }, }; -export const GovernanceEmailNotification: coreClient.CompositeMapper = { +export const RuleResultsInput: coreClient.CompositeMapper = { type: { name: "Composite", - className: "GovernanceEmailNotification", + className: "RuleResultsInput", modelProperties: { - disableManagerEmailNotification: { - serializedName: "disableManagerEmailNotification", + latestScan: { + serializedName: "latestScan", type: { name: "Boolean", }, }, - disableOwnerEmailNotification: { - serializedName: "disableOwnerEmailNotification", + results: { + serializedName: "results", type: { - name: "Boolean", + name: "Sequence", + element: { + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, }, }, }, }, }; -export const GovernanceAssignmentAdditionalData: coreClient.CompositeMapper = { +export const RuleResultsProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "GovernanceAssignmentAdditionalData", + className: "RuleResultsProperties", modelProperties: { - ticketNumber: { - constraints: { - InclusiveMinimum: 0, - }, - serializedName: "ticketNumber", - type: { - name: "Number", - }, - }, - ticketLink: { - serializedName: "ticketLink", - type: { - name: "String", - }, - }, - ticketStatus: { - serializedName: "ticketStatus", + results: { + serializedName: "results", type: { - name: "String", + name: "Sequence", + element: { + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, }, }, }, }, }; -export const GovernanceRuleList: coreClient.CompositeMapper = { +export const RulesResults: coreClient.CompositeMapper = { type: { name: "Composite", - className: "GovernanceRuleList", + className: "RulesResults", modelProperties: { value: { serializedName: "value", - readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "GovernanceRule", + className: "RuleResults", }, }, }, }, - nextLink: { - serializedName: "nextLink", - readOnly: true, - type: { - name: "String", - }, - }, }, }, }; -export const GovernanceRuleOwnerSource: coreClient.CompositeMapper = { +export const RulesResultsInput: coreClient.CompositeMapper = { type: { name: "Composite", - className: "GovernanceRuleOwnerSource", + className: "RulesResultsInput", modelProperties: { - type: { - serializedName: "type", + latestScan: { + serializedName: "latestScan", type: { - name: "String", + name: "Boolean", }, }, - value: { - serializedName: "value", + results: { + serializedName: "results", type: { - name: "String", + name: "Dictionary", + value: { + type: { + name: "Sequence", + element: { + type: { + name: "Sequence", + element: { type: { name: "String" } }, + }, + }, + }, + }, }, }, }, }, }; -export const GovernanceRuleEmailNotification: coreClient.CompositeMapper = { +export const ScanProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "GovernanceRuleEmailNotification", + className: "ScanProperties", modelProperties: { - disableManagerEmailNotification: { - serializedName: "disableManagerEmailNotification", + triggerType: { + serializedName: "triggerType", type: { - name: "Boolean", + name: "String", }, }, - disableOwnerEmailNotification: { - serializedName: "disableOwnerEmailNotification", + state: { + serializedName: "state", type: { - name: "Boolean", + name: "String", }, }, - }, - }, -}; - -export const GovernanceRuleMetadata: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "GovernanceRuleMetadata", - modelProperties: { - createdBy: { - serializedName: "createdBy", - readOnly: true, + server: { + serializedName: "server", type: { name: "String", }, }, - createdOn: { - serializedName: "createdOn", - readOnly: true, + database: { + serializedName: "database", type: { - name: "DateTime", + name: "String", }, }, - updatedBy: { - serializedName: "updatedBy", - readOnly: true, + sqlVersion: { + serializedName: "sqlVersion", type: { name: "String", }, }, - updatedOn: { - serializedName: "updatedOn", - readOnly: true, + startTime: { + serializedName: "startTime", type: { name: "DateTime", }, }, - }, - }, -}; - -export const ExecuteGovernanceRuleParams: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ExecuteGovernanceRuleParams", - modelProperties: { - override: { - serializedName: "override", + endTime: { + serializedName: "endTime", type: { - name: "Boolean", + name: "DateTime", }, }, - }, - }, -}; - -export const OperationResultAutoGenerated: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "OperationResultAutoGenerated", - modelProperties: { - status: { - serializedName: "status", - readOnly: true, + highSeverityFailedRulesCount: { + serializedName: "highSeverityFailedRulesCount", type: { - name: "String", + name: "Number", }, }, - }, - }, -}; - -export const ApplicationsList: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ApplicationsList", - modelProperties: { - value: { - serializedName: "value", - readOnly: true, + mediumSeverityFailedRulesCount: { + serializedName: "mediumSeverityFailedRulesCount", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "Application", - }, - }, - }, - }, - nextLink: { - serializedName: "nextLink", - readOnly: true, - type: { - name: "String", - }, - }, - }, - }, -}; - -export const OperationStatus: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "OperationStatus", - modelProperties: { - code: { - serializedName: "code", - type: { - name: "String", - }, - }, - message: { - serializedName: "message", - type: { - name: "String", - }, - }, - }, - }, -}; - -export const SecurityOperatorList: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "SecurityOperatorList", - modelProperties: { - value: { - serializedName: "value", - required: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SecurityOperator", - }, - }, - }, - }, - }, - }, -}; - -export const Identity: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "Identity", - modelProperties: { - principalId: { - serializedName: "principalId", - readOnly: true, - type: { - name: "String", - }, - }, - tenantId: { - serializedName: "tenantId", - readOnly: true, - type: { - name: "String", - }, - }, - type: { - defaultValue: "SystemAssigned", - isConstant: true, - serializedName: "type", - type: { - name: "String", - }, - }, - }, - }, -}; - -export const RuleResultsInput: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "RuleResultsInput", - modelProperties: { - latestScan: { - serializedName: "latestScan", - type: { - name: "Boolean", - }, - }, - results: { - serializedName: "results", - type: { - name: "Sequence", - element: { - type: { - name: "Sequence", - element: { - type: { - name: "String", - }, - }, - }, - }, - }, - }, - }, - }, -}; - -export const RuleResultsProperties: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "RuleResultsProperties", - modelProperties: { - results: { - serializedName: "results", - type: { - name: "Sequence", - element: { - type: { - name: "Sequence", - element: { - type: { - name: "String", - }, - }, - }, - }, - }, - }, - }, - }, -}; - -export const RulesResults: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "RulesResults", - modelProperties: { - value: { - serializedName: "value", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "RuleResults", - }, - }, - }, - }, - }, - }, -}; - -export const RulesResultsInput: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "RulesResultsInput", - modelProperties: { - latestScan: { - serializedName: "latestScan", - type: { - name: "Boolean", - }, - }, - results: { - serializedName: "results", - type: { - name: "Dictionary", - value: { - type: { - name: "Sequence", - element: { - type: { - name: "Sequence", - element: { type: { name: "String" } }, - }, - }, - }, - }, - }, - }, - }, - }, -}; - -export const ScanProperties: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ScanProperties", - modelProperties: { - triggerType: { - serializedName: "triggerType", - type: { - name: "String", - }, - }, - state: { - serializedName: "state", - type: { - name: "String", - }, - }, - server: { - serializedName: "server", - type: { - name: "String", - }, - }, - database: { - serializedName: "database", - type: { - name: "String", - }, - }, - sqlVersion: { - serializedName: "sqlVersion", - type: { - name: "String", - }, - }, - startTime: { - serializedName: "startTime", - type: { - name: "DateTime", - }, - }, - endTime: { - serializedName: "endTime", - type: { - name: "DateTime", - }, - }, - highSeverityFailedRulesCount: { - serializedName: "highSeverityFailedRulesCount", - type: { - name: "Number", - }, - }, - mediumSeverityFailedRulesCount: { - serializedName: "mediumSeverityFailedRulesCount", - type: { - name: "Number", + name: "Number", }, }, lowSeverityFailedRulesCount: { @@ -2494,97 +2065,95 @@ export const GetSensitivitySettingsResponse: coreClient.CompositeMapper = { }, }; -export const GetSensitivitySettingsResponseProperties: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "GetSensitivitySettingsResponseProperties", - modelProperties: { - sensitiveInfoTypesIds: { - serializedName: "sensitiveInfoTypesIds", - type: { - name: "Sequence", - element: { - type: { - name: "Uuid", - }, - }, +export const GetSensitivitySettingsResponseProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "GetSensitivitySettingsResponseProperties", + modelProperties: { + sensitiveInfoTypesIds: { + serializedName: "sensitiveInfoTypesIds", + type: { + name: "Sequence", + element: { + type: { + name: "Uuid", + }, }, }, - sensitivityThresholdLabelOrder: { - serializedName: "sensitivityThresholdLabelOrder", - type: { - name: "Number", - }, + }, + sensitivityThresholdLabelOrder: { + serializedName: "sensitivityThresholdLabelOrder", + type: { + name: "Number", }, - sensitivityThresholdLabelId: { - serializedName: "sensitivityThresholdLabelId", - type: { - name: "Uuid", - }, + }, + sensitivityThresholdLabelId: { + serializedName: "sensitivityThresholdLabelId", + type: { + name: "Uuid", }, - mipInformation: { - serializedName: "mipInformation", - type: { - name: "Composite", - className: "GetSensitivitySettingsResponsePropertiesMipInformation", - }, + }, + mipInformation: { + serializedName: "mipInformation", + type: { + name: "Composite", + className: "GetSensitivitySettingsResponsePropertiesMipInformation", }, }, }, - }; + }, +}; -export const GetSensitivitySettingsResponsePropertiesMipInformation: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "GetSensitivitySettingsResponsePropertiesMipInformation", - modelProperties: { - mipIntegrationStatus: { - serializedName: "mipIntegrationStatus", - type: { - name: "String", - }, +export const GetSensitivitySettingsResponsePropertiesMipInformation: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "GetSensitivitySettingsResponsePropertiesMipInformation", + modelProperties: { + mipIntegrationStatus: { + serializedName: "mipIntegrationStatus", + type: { + name: "String", }, - labels: { - serializedName: "labels", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "Label", - }, + }, + labels: { + serializedName: "labels", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Label", }, }, }, - customInfoTypes: { - serializedName: "customInfoTypes", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "InfoType", - }, + }, + customInfoTypes: { + serializedName: "customInfoTypes", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "InfoType", }, }, }, - builtInInfoTypes: { - serializedName: "builtInInfoTypes", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "BuiltInInfoType", - }, + }, + builtInInfoTypes: { + serializedName: "builtInInfoTypes", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "BuiltInInfoType", }, }, }, }, }, - }; + }, +}; export const Label: coreClient.CompositeMapper = { type: { @@ -2985,25 +2554,27 @@ export const ErrorDetail: coreClient.CompositeMapper = { }, }; -export const AzureDevOpsOrgListResponse: coreClient.CompositeMapper = { +export const AutomationList: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AzureDevOpsOrgListResponse", + className: "AutomationList", modelProperties: { value: { serializedName: "value", + required: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "AzureDevOpsOrg", + className: "Automation", }, }, }, }, nextLink: { serializedName: "nextLink", + readOnly: true, type: { name: "String", }, @@ -3012,127 +2583,100 @@ export const AzureDevOpsOrgListResponse: coreClient.CompositeMapper = { }, }; -export const AzureDevOpsOrgProperties: coreClient.CompositeMapper = { +export const AutomationScope: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AzureDevOpsOrgProperties", + className: "AutomationScope", modelProperties: { - provisioningStatusMessage: { - serializedName: "provisioningStatusMessage", - readOnly: true, - type: { - name: "String", - }, - }, - provisioningStatusUpdateTimeUtc: { - serializedName: "provisioningStatusUpdateTimeUtc", - readOnly: true, - type: { - name: "DateTime", - }, - }, - provisioningState: { - serializedName: "provisioningState", + description: { + serializedName: "description", type: { name: "String", }, }, - onboardingState: { - serializedName: "onboardingState", + scopePath: { + serializedName: "scopePath", type: { name: "String", }, }, - actionableRemediation: { - serializedName: "actionableRemediation", - type: { - name: "Composite", - className: "ActionableRemediation", - }, - }, }, }, }; -export const ActionableRemediation: coreClient.CompositeMapper = { +export const AutomationSource: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ActionableRemediation", + className: "AutomationSource", modelProperties: { - state: { - serializedName: "state", + eventSource: { + serializedName: "eventSource", type: { name: "String", }, }, - categoryConfigurations: { - serializedName: "categoryConfigurations", + ruleSets: { + serializedName: "ruleSets", type: { name: "Sequence", element: { type: { name: "Composite", - className: "CategoryConfiguration", + className: "AutomationRuleSet", }, }, }, }, - branchConfiguration: { - serializedName: "branchConfiguration", - type: { - name: "Composite", - className: "TargetBranchConfiguration", - }, - }, - inheritFromParentState: { - serializedName: "inheritFromParentState", + }, + }, +}; + +export const AutomationRuleSet: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AutomationRuleSet", + modelProperties: { + rules: { + serializedName: "rules", type: { - name: "String", + name: "Sequence", + element: { + type: { + name: "Composite", + className: "AutomationTriggeringRule", + }, + }, }, }, }, }, }; -export const CategoryConfiguration: coreClient.CompositeMapper = { +export const AutomationTriggeringRule: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CategoryConfiguration", + className: "AutomationTriggeringRule", modelProperties: { - minimumSeverityLevel: { - serializedName: "minimumSeverityLevel", + propertyJPath: { + serializedName: "propertyJPath", type: { name: "String", }, }, - category: { - serializedName: "category", + propertyType: { + serializedName: "propertyType", type: { name: "String", }, }, - }, - }, -}; - -export const TargetBranchConfiguration: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "TargetBranchConfiguration", - modelProperties: { - branchNames: { - serializedName: "branchNames", + expectedValue: { + serializedName: "expectedValue", type: { - name: "Sequence", - element: { - type: { - name: "String", - }, - }, + name: "String", }, }, - annotateDefaultBranch: { - serializedName: "annotateDefaultBranch", + operator: { + serializedName: "operator", type: { name: "String", }, @@ -3141,28 +2685,49 @@ export const TargetBranchConfiguration: coreClient.CompositeMapper = { }, }; -export const ResourceAutoGenerated: coreClient.CompositeMapper = { +export const AutomationAction: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ResourceAutoGenerated", + className: "AutomationAction", + uberParent: "AutomationAction", + polymorphicDiscriminator: { + serializedName: "actionType", + clientName: "actionType", + }, modelProperties: { - id: { - serializedName: "id", - readOnly: true, + actionType: { + serializedName: "actionType", + required: true, type: { name: "String", }, }, - name: { - serializedName: "name", - readOnly: true, + }, + }, +}; + +export const AzureTrackedResourceLocation: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AzureTrackedResourceLocation", + modelProperties: { + location: { + serializedName: "location", type: { name: "String", }, }, - type: { - serializedName: "type", - readOnly: true, + }, + }, +}; + +export const KindAutoGenerated: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "KindAutoGenerated", + modelProperties: { + kind: { + serializedName: "kind", type: { name: "String", }, @@ -3171,70 +2736,126 @@ export const ResourceAutoGenerated: coreClient.CompositeMapper = { }, }; -export const ErrorResponseAutoGenerated: coreClient.CompositeMapper = { +export const ETag: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ErrorResponseAutoGenerated", + className: "ETag", modelProperties: { - error: { - serializedName: "error", + etag: { + serializedName: "etag", type: { - name: "Composite", - className: "ErrorDetailAutoGenerated", + name: "String", }, }, }, }, }; -export const ErrorDetailAutoGenerated: coreClient.CompositeMapper = { +export const Tags: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ErrorDetailAutoGenerated", + className: "Tags", modelProperties: { - code: { - serializedName: "code", - readOnly: true, + tags: { + serializedName: "tags", type: { - name: "String", + name: "Dictionary", + value: { type: { name: "String" } }, }, }, - message: { - serializedName: "message", - readOnly: true, + }, + }, +}; + +export const AutomationValidationStatus: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AutomationValidationStatus", + modelProperties: { + isValid: { + serializedName: "isValid", type: { - name: "String", + name: "Boolean", }, }, - target: { - serializedName: "target", - readOnly: true, + message: { + serializedName: "message", type: { name: "String", }, }, - details: { - serializedName: "details", - readOnly: true, + }, + }, +}; + +export const SecurityContactList: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SecurityContactList", + modelProperties: { + value: { + serializedName: "value", + required: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "ErrorDetailAutoGenerated", + className: "SecurityContact", }, }, }, }, - additionalInfo: { - serializedName: "additionalInfo", + nextLink: { + serializedName: "nextLink", readOnly: true, + type: { + name: "String", + }, + }, + }, + }, +}; + +export const NotificationsSource: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "NotificationsSource", + uberParent: "NotificationsSource", + polymorphicDiscriminator: { + serializedName: "sourceType", + clientName: "sourceType", + }, + modelProperties: { + sourceType: { + serializedName: "sourceType", + required: true, + type: { + name: "String", + }, + }, + }, + }, +}; + +export const SecurityContactPropertiesNotificationsByRole: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SecurityContactPropertiesNotificationsByRole", + modelProperties: { + state: { + serializedName: "state", + type: { + name: "String", + }, + }, + roles: { + serializedName: "roles", type: { name: "Sequence", element: { type: { - name: "Composite", - className: "ErrorAdditionalInfo", + name: "String", }, }, }, @@ -3243,25 +2864,27 @@ export const ErrorDetailAutoGenerated: coreClient.CompositeMapper = { }, }; -export const AzureDevOpsProjectListResponse: coreClient.CompositeMapper = { +export const SecurityConnectorsList: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AzureDevOpsProjectListResponse", + className: "SecurityConnectorsList", modelProperties: { value: { serializedName: "value", + required: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "AzureDevOpsProject", + className: "SecurityConnector", }, }, }, }, nextLink: { serializedName: "nextLink", + readOnly: true, type: { name: "String", }, @@ -3270,80 +2893,76 @@ export const AzureDevOpsProjectListResponse: coreClient.CompositeMapper = { }, }; -export const AzureDevOpsProjectProperties: coreClient.CompositeMapper = { +export const CloudOffering: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AzureDevOpsProjectProperties", + className: "CloudOffering", + uberParent: "CloudOffering", + polymorphicDiscriminator: { + serializedName: "offeringType", + clientName: "offeringType", + }, modelProperties: { - provisioningStatusMessage: { - serializedName: "provisioningStatusMessage", - readOnly: true, - type: { - name: "String", - }, - }, - provisioningStatusUpdateTimeUtc: { - serializedName: "provisioningStatusUpdateTimeUtc", - readOnly: true, - type: { - name: "DateTime", - }, - }, - provisioningState: { - serializedName: "provisioningState", - type: { - name: "String", - }, - }, - parentOrgName: { - serializedName: "parentOrgName", + offeringType: { + serializedName: "offeringType", + required: true, type: { name: "String", }, }, - projectId: { - serializedName: "projectId", + description: { + serializedName: "description", readOnly: true, type: { name: "String", }, }, - onboardingState: { - serializedName: "onboardingState", + }, + }, +}; + +export const EnvironmentData: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "EnvironmentData", + uberParent: "EnvironmentData", + polymorphicDiscriminator: { + serializedName: "environmentType", + clientName: "environmentType", + }, + modelProperties: { + environmentType: { + serializedName: "environmentType", + required: true, type: { name: "String", }, }, - actionableRemediation: { - serializedName: "actionableRemediation", - type: { - name: "Composite", - className: "ActionableRemediation", - }, - }, }, }, }; -export const AzureDevOpsRepositoryListResponse: coreClient.CompositeMapper = { +export const OperationListResult: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AzureDevOpsRepositoryListResponse", + className: "OperationListResult", modelProperties: { value: { serializedName: "value", + readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "AzureDevOpsRepository", + className: "Operation", }, }, }, }, nextLink: { serializedName: "nextLink", + readOnly: true, type: { name: "String", }, @@ -3352,153 +2971,151 @@ export const AzureDevOpsRepositoryListResponse: coreClient.CompositeMapper = { }, }; -export const AzureDevOpsRepositoryProperties: coreClient.CompositeMapper = { +export const Operation: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AzureDevOpsRepositoryProperties", + className: "Operation", modelProperties: { - provisioningStatusMessage: { - serializedName: "provisioningStatusMessage", + name: { + serializedName: "name", readOnly: true, type: { name: "String", }, }, - provisioningStatusUpdateTimeUtc: { - serializedName: "provisioningStatusUpdateTimeUtc", + isDataAction: { + serializedName: "isDataAction", readOnly: true, type: { - name: "DateTime", + name: "Boolean", }, }, - provisioningState: { - serializedName: "provisioningState", + display: { + serializedName: "display", type: { - name: "String", + name: "Composite", + className: "OperationDisplay", }, }, - parentOrgName: { - serializedName: "parentOrgName", + origin: { + serializedName: "origin", + readOnly: true, type: { name: "String", }, }, - parentProjectName: { - serializedName: "parentProjectName", + actionType: { + serializedName: "actionType", + readOnly: true, type: { name: "String", }, }, - repoId: { - serializedName: "repoId", + }, + }, +}; + +export const OperationDisplay: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "OperationDisplay", + modelProperties: { + provider: { + serializedName: "provider", readOnly: true, type: { name: "String", }, }, - repoUrl: { - serializedName: "repoUrl", + resource: { + serializedName: "resource", readOnly: true, type: { name: "String", }, }, - visibility: { - serializedName: "visibility", + operation: { + serializedName: "operation", readOnly: true, type: { name: "String", }, }, - onboardingState: { - serializedName: "onboardingState", + description: { + serializedName: "description", + readOnly: true, type: { name: "String", }, }, - actionableRemediation: { - serializedName: "actionableRemediation", + }, + }, +}; + +export const ErrorResponseAutoGenerated: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ErrorResponseAutoGenerated", + modelProperties: { + error: { + serializedName: "error", type: { name: "Composite", - className: "ActionableRemediation", + className: "ErrorDetailAutoGenerated", }, }, }, }, }; -export const DevOpsConfigurationListResponse: coreClient.CompositeMapper = { +export const ErrorDetailAutoGenerated: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DevOpsConfigurationListResponse", + className: "ErrorDetailAutoGenerated", modelProperties: { - value: { - serializedName: "value", + code: { + serializedName: "code", + readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "DevOpsConfiguration", - }, - }, + name: "String", }, }, - nextLink: { - serializedName: "nextLink", + message: { + serializedName: "message", + readOnly: true, type: { name: "String", }, }, - }, - }, -}; - -export const DevOpsConfigurationProperties: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "DevOpsConfigurationProperties", - modelProperties: { - provisioningStatusMessage: { - serializedName: "provisioningStatusMessage", + target: { + serializedName: "target", readOnly: true, type: { name: "String", }, }, - provisioningStatusUpdateTimeUtc: { - serializedName: "provisioningStatusUpdateTimeUtc", + details: { + serializedName: "details", readOnly: true, type: { - name: "DateTime", - }, - }, - provisioningState: { - serializedName: "provisioningState", - type: { - name: "String", - }, - }, - authorization: { - serializedName: "authorization", - type: { - name: "Composite", - className: "Authorization", - }, - }, - autoDiscovery: { - serializedName: "autoDiscovery", - type: { - name: "String", + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ErrorDetailAutoGenerated", + }, + }, }, }, - topLevelInventoryList: { - serializedName: "topLevelInventoryList", + additionalInfo: { + serializedName: "additionalInfo", + readOnly: true, type: { name: "Sequence", element: { type: { - name: "String", + name: "Composite", + className: "ErrorAdditionalInfo", }, }, }, @@ -3507,116 +3124,157 @@ export const DevOpsConfigurationProperties: coreClient.CompositeMapper = { }, }; -export const Authorization: coreClient.CompositeMapper = { +export const DefenderForStorageSettingProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Authorization", + className: "DefenderForStorageSettingProperties", modelProperties: { - code: { - serializedName: "code", + isEnabled: { + serializedName: "isEnabled", type: { - name: "String", + name: "Boolean", + }, + }, + malwareScanning: { + serializedName: "malwareScanning", + type: { + name: "Composite", + className: "MalwareScanningProperties", + }, + }, + sensitiveDataDiscovery: { + serializedName: "sensitiveDataDiscovery", + type: { + name: "Composite", + className: "SensitiveDataDiscoveryProperties", + }, + }, + overrideSubscriptionLevelSettings: { + serializedName: "overrideSubscriptionLevelSettings", + type: { + name: "Boolean", }, }, }, }, }; -export const GitHubOwnerListResponse: coreClient.CompositeMapper = { +export const MalwareScanningProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "GitHubOwnerListResponse", + className: "MalwareScanningProperties", modelProperties: { - value: { - serializedName: "value", + onUpload: { + serializedName: "onUpload", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "GitHubOwner", - }, - }, + name: "Composite", + className: "OnUploadProperties", }, }, - nextLink: { - serializedName: "nextLink", + scanResultsEventGridTopicResourceId: { + serializedName: "scanResultsEventGridTopicResourceId", type: { name: "String", }, }, + blobScanResultsOptions: { + serializedName: "blobScanResultsOptions", + type: { + name: "String", + }, + }, + operationStatus: { + serializedName: "operationStatus", + type: { + name: "Composite", + className: "OperationStatus", + }, + }, }, }, }; -export const GitHubOwnerProperties: coreClient.CompositeMapper = { +export const OnUploadProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "GitHubOwnerProperties", + className: "OnUploadProperties", modelProperties: { - provisioningStatusMessage: { - serializedName: "provisioningStatusMessage", - readOnly: true, + isEnabled: { + serializedName: "isEnabled", type: { - name: "String", + name: "Boolean", }, }, - provisioningStatusUpdateTimeUtc: { - serializedName: "provisioningStatusUpdateTimeUtc", - readOnly: true, + capGBPerMonth: { + serializedName: "capGBPerMonth", type: { - name: "DateTime", + name: "Number", }, }, - provisioningState: { - serializedName: "provisioningState", + filters: { + serializedName: "filters", type: { - name: "String", + name: "Composite", + className: "OnUploadFilters", }, }, - ownerUrl: { - serializedName: "ownerUrl", - readOnly: true, + }, + }, +}; + +export const OnUploadFilters: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "OnUploadFilters", + modelProperties: { + excludeBlobsWithPrefix: { + serializedName: "excludeBlobsWithPrefix", + nullable: true, type: { - name: "String", + name: "Sequence", + element: { + type: { + name: "String", + }, + }, }, }, - gitHubInternalId: { - serializedName: "gitHubInternalId", - readOnly: true, + excludeBlobsWithSuffix: { + serializedName: "excludeBlobsWithSuffix", + nullable: true, type: { - name: "String", + name: "Sequence", + element: { + type: { + name: "String", + }, + }, }, }, - onboardingState: { - serializedName: "onboardingState", + excludeBlobsLargerThan: { + serializedName: "excludeBlobsLargerThan", + nullable: true, type: { - name: "String", + name: "any", }, }, }, }, }; -export const GitHubRepositoryListResponse: coreClient.CompositeMapper = { +export const OperationStatus: coreClient.CompositeMapper = { type: { name: "Composite", - className: "GitHubRepositoryListResponse", + className: "OperationStatus", modelProperties: { - value: { - serializedName: "value", + code: { + serializedName: "code", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "GitHubRepository", - }, - }, + name: "String", }, }, - nextLink: { - serializedName: "nextLink", + message: { + serializedName: "message", type: { name: "String", }, @@ -3625,150 +3283,172 @@ export const GitHubRepositoryListResponse: coreClient.CompositeMapper = { }, }; -export const GitHubRepositoryProperties: coreClient.CompositeMapper = { +export const SensitiveDataDiscoveryProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "GitHubRepositoryProperties", + className: "SensitiveDataDiscoveryProperties", modelProperties: { - provisioningStatusMessage: { - serializedName: "provisioningStatusMessage", - readOnly: true, + isEnabled: { + serializedName: "isEnabled", type: { - name: "String", + name: "Boolean", }, }, - provisioningStatusUpdateTimeUtc: { - serializedName: "provisioningStatusUpdateTimeUtc", - readOnly: true, + operationStatus: { + serializedName: "operationStatus", type: { - name: "DateTime", + name: "Composite", + className: "OperationStatus", }, }, - provisioningState: { - serializedName: "provisioningState", + }, + }, +}; + +export const MalwareScan: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "MalwareScan", + modelProperties: { + properties: { + serializedName: "properties", type: { - name: "String", + name: "Composite", + className: "MalwareScanProperties", }, }, - repoId: { - serializedName: "repoId", - readOnly: true, + }, + }, +}; + +export const MalwareScanProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "MalwareScanProperties", + modelProperties: { + scanId: { + serializedName: "scanId", type: { name: "String", }, }, - repoName: { - serializedName: "repoName", - readOnly: true, + scanStatus: { + serializedName: "scanStatus", type: { name: "String", }, }, - repoFullName: { - serializedName: "repoFullName", - readOnly: true, + scanStatusMessage: { + serializedName: "scanStatusMessage", type: { name: "String", }, }, - onboardingState: { - serializedName: "onboardingState", + scanStartTime: { + serializedName: "scanStartTime", type: { name: "String", }, }, - repoUrl: { - serializedName: "repoUrl", - readOnly: true, + scanEndTime: { + serializedName: "scanEndTime", type: { name: "String", }, }, - parentOwnerName: { - serializedName: "parentOwnerName", + scanSummary: { + serializedName: "scanSummary", type: { - name: "String", + name: "Composite", + className: "ScanSummary", }, }, }, }, }; -export const GitLabGroupListResponse: coreClient.CompositeMapper = { +export const ScanSummary: coreClient.CompositeMapper = { type: { name: "Composite", - className: "GitLabGroupListResponse", + className: "ScanSummary", modelProperties: { - value: { - serializedName: "value", + blobs: { + serializedName: "blobs", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "GitLabGroup", - }, - }, + name: "Composite", + className: "BlobsScanSummary", }, }, - nextLink: { - serializedName: "nextLink", + estimatedScanCostUSD: { + serializedName: "estimatedScanCostUSD", type: { - name: "String", + name: "Number", }, }, }, }, }; -export const GitLabGroupProperties: coreClient.CompositeMapper = { +export const BlobsScanSummary: coreClient.CompositeMapper = { type: { name: "Composite", - className: "GitLabGroupProperties", + className: "BlobsScanSummary", modelProperties: { - provisioningStatusMessage: { - serializedName: "provisioningStatusMessage", - readOnly: true, + totalBlobsScanned: { + serializedName: "totalBlobsScanned", type: { - name: "String", + name: "Number", }, }, - provisioningStatusUpdateTimeUtc: { - serializedName: "provisioningStatusUpdateTimeUtc", - readOnly: true, + maliciousBlobsCount: { + serializedName: "maliciousBlobsCount", type: { - name: "DateTime", + name: "Number", }, }, - provisioningState: { - serializedName: "provisioningState", + skippedBlobsCount: { + serializedName: "skippedBlobsCount", type: { - name: "String", + name: "Number", }, }, - fullyQualifiedName: { - serializedName: "fullyQualifiedName", - readOnly: true, + failedBlobsCount: { + serializedName: "failedBlobsCount", type: { - name: "String", + name: "Number", }, }, - fullyQualifiedFriendlyName: { - serializedName: "fullyQualifiedFriendlyName", - readOnly: true, + scannedBlobsInGB: { + serializedName: "scannedBlobsInGB", type: { - name: "String", + name: "Number", }, }, - url: { - serializedName: "url", - readOnly: true, + }, + }, +}; + +export const ComplianceResultList: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ComplianceResultList", + modelProperties: { + value: { + serializedName: "value", + required: true, type: { - name: "String", + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ComplianceResult", + }, + }, }, }, - onboardingState: { - serializedName: "onboardingState", + nextLink: { + serializedName: "nextLink", + readOnly: true, type: { name: "String", }, @@ -3777,10 +3457,10 @@ export const GitLabGroupProperties: coreClient.CompositeMapper = { }, }; -export const GitLabProjectListResponse: coreClient.CompositeMapper = { +export const DeviceSecurityGroupList: coreClient.CompositeMapper = { type: { name: "Composite", - className: "GitLabProjectListResponse", + className: "DeviceSecurityGroupList", modelProperties: { value: { serializedName: "value", @@ -3789,13 +3469,14 @@ export const GitLabProjectListResponse: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "GitLabProject", + className: "DeviceSecurityGroup", }, }, }, }, nextLink: { serializedName: "nextLink", + readOnly: true, type: { name: "String", }, @@ -3804,142 +3485,214 @@ export const GitLabProjectListResponse: coreClient.CompositeMapper = { }, }; -export const GitLabProjectProperties: coreClient.CompositeMapper = { +export const CustomAlertRule: coreClient.CompositeMapper = { type: { name: "Composite", - className: "GitLabProjectProperties", + className: "CustomAlertRule", + uberParent: "CustomAlertRule", + polymorphicDiscriminator: { + serializedName: "ruleType", + clientName: "ruleType", + }, modelProperties: { - provisioningStatusMessage: { - serializedName: "provisioningStatusMessage", + displayName: { + serializedName: "displayName", readOnly: true, type: { name: "String", }, }, - provisioningStatusUpdateTimeUtc: { - serializedName: "provisioningStatusUpdateTimeUtc", + description: { + serializedName: "description", readOnly: true, type: { - name: "DateTime", + name: "String", }, }, - provisioningState: { - serializedName: "provisioningState", + isEnabled: { + serializedName: "isEnabled", + required: true, type: { - name: "String", + name: "Boolean", }, }, - fullyQualifiedName: { - serializedName: "fullyQualifiedName", - readOnly: true, + ruleType: { + serializedName: "ruleType", + required: true, type: { name: "String", }, }, - fullyQualifiedFriendlyName: { - serializedName: "fullyQualifiedFriendlyName", - readOnly: true, + }, + }, +}; + +export const IoTSecuritySolutionAnalyticsModelList: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "IoTSecuritySolutionAnalyticsModelList", + modelProperties: { + value: { + serializedName: "value", + required: true, type: { - name: "String", + name: "Sequence", + element: { + type: { + name: "Composite", + className: "IoTSecuritySolutionAnalyticsModel", + }, + }, }, }, - fullyQualifiedParentGroupName: { - serializedName: "fullyQualifiedParentGroupName", + nextLink: { + serializedName: "nextLink", readOnly: true, type: { name: "String", }, }, - url: { - serializedName: "url", - readOnly: true, + }, + }, +}; + +export const IoTSeverityMetrics: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "IoTSeverityMetrics", + modelProperties: { + high: { + serializedName: "high", type: { - name: "String", + name: "Number", }, }, - onboardingState: { - serializedName: "onboardingState", + medium: { + serializedName: "medium", type: { - name: "String", + name: "Number", + }, + }, + low: { + serializedName: "low", + type: { + name: "Number", }, }, }, }, }; -export const OperationStatusResult: coreClient.CompositeMapper = { +export const IoTSecuritySolutionAnalyticsModelPropertiesDevicesMetricsItem: coreClient.CompositeMapper = + { + type: { + name: "Composite", + className: "IoTSecuritySolutionAnalyticsModelPropertiesDevicesMetricsItem", + modelProperties: { + date: { + serializedName: "date", + type: { + name: "DateTime", + }, + }, + devicesMetrics: { + serializedName: "devicesMetrics", + type: { + name: "Composite", + className: "IoTSeverityMetrics", + }, + }, + }, + }, + }; + +export const IoTSecurityAlertedDevice: coreClient.CompositeMapper = { type: { name: "Composite", - className: "OperationStatusResult", + className: "IoTSecurityAlertedDevice", modelProperties: { - id: { - serializedName: "id", + deviceId: { + serializedName: "deviceId", + readOnly: true, type: { name: "String", }, }, - name: { - serializedName: "name", + alertsCount: { + serializedName: "alertsCount", + readOnly: true, type: { - name: "String", + name: "Number", }, }, - status: { - serializedName: "status", - required: true, + }, + }, +}; + +export const IoTSecurityDeviceAlert: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "IoTSecurityDeviceAlert", + modelProperties: { + alertDisplayName: { + serializedName: "alertDisplayName", + readOnly: true, type: { name: "String", }, }, - percentComplete: { - constraints: { - InclusiveMaximum: 100, - InclusiveMinimum: 0, - }, - serializedName: "percentComplete", + reportedSeverity: { + serializedName: "reportedSeverity", + readOnly: true, type: { - name: "Number", + name: "String", }, }, - startTime: { - serializedName: "startTime", + alertsCount: { + serializedName: "alertsCount", + readOnly: true, type: { - name: "DateTime", + name: "Number", }, }, - endTime: { - serializedName: "endTime", + }, + }, +}; + +export const IoTSecurityDeviceRecommendation: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "IoTSecurityDeviceRecommendation", + modelProperties: { + recommendationDisplayName: { + serializedName: "recommendationDisplayName", + readOnly: true, type: { - name: "DateTime", + name: "String", }, }, - operations: { - serializedName: "operations", + reportedSeverity: { + serializedName: "reportedSeverity", + readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "OperationStatusResult", - }, - }, + name: "String", }, }, - error: { - serializedName: "error", + devicesCount: { + serializedName: "devicesCount", + readOnly: true, type: { - name: "Composite", - className: "ErrorDetailAutoGenerated", + name: "Number", }, }, }, }, }; -export const SecurityConnectorsList: coreClient.CompositeMapper = { +export const IoTSecurityAggregatedAlertList: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SecurityConnectorsList", + className: "IoTSecurityAggregatedAlertList", modelProperties: { value: { serializedName: "value", @@ -3949,7 +3702,7 @@ export const SecurityConnectorsList: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "SecurityConnector", + className: "IoTSecurityAggregatedAlert", }, }, }, @@ -3965,25 +3718,27 @@ export const SecurityConnectorsList: coreClient.CompositeMapper = { }, }; -export const CloudOffering: coreClient.CompositeMapper = { +export const IoTSecurityAggregatedAlertPropertiesTopDevicesListItem: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CloudOffering", - uberParent: "CloudOffering", - polymorphicDiscriminator: { - serializedName: "offeringType", - clientName: "offeringType", - }, + className: "IoTSecurityAggregatedAlertPropertiesTopDevicesListItem", modelProperties: { - offeringType: { - serializedName: "offeringType", - required: true, - type: { + deviceId: { + serializedName: "deviceId", + readOnly: true, + type: { name: "String", }, }, - description: { - serializedName: "description", + alertsCount: { + serializedName: "alertsCount", + readOnly: true, + type: { + name: "Number", + }, + }, + lastOccurrence: { + serializedName: "lastOccurrence", readOnly: true, type: { name: "String", @@ -3993,31 +3748,26 @@ export const CloudOffering: coreClient.CompositeMapper = { }, }; -export const EnvironmentData: coreClient.CompositeMapper = { +export const TagsResource: coreClient.CompositeMapper = { type: { name: "Composite", - className: "EnvironmentData", - uberParent: "EnvironmentData", - polymorphicDiscriminator: { - serializedName: "environmentType", - clientName: "environmentType", - }, + className: "TagsResource", modelProperties: { - environmentType: { - serializedName: "environmentType", - required: true, + tags: { + serializedName: "tags", type: { - name: "String", + name: "Dictionary", + value: { type: { name: "String" } }, }, }, }, }, }; -export const ComplianceResultList: coreClient.CompositeMapper = { +export const IoTSecurityAggregatedRecommendationList: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ComplianceResultList", + className: "IoTSecurityAggregatedRecommendationList", modelProperties: { value: { serializedName: "value", @@ -4027,7 +3777,7 @@ export const ComplianceResultList: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ComplianceResult", + className: "IoTSecurityAggregatedRecommendation", }, }, }, @@ -4043,19 +3793,20 @@ export const ComplianceResultList: coreClient.CompositeMapper = { }, }; -export const DeviceSecurityGroupList: coreClient.CompositeMapper = { +export const IoTSecuritySolutionsList: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DeviceSecurityGroupList", + className: "IoTSecuritySolutionsList", modelProperties: { value: { serializedName: "value", + required: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "DeviceSecurityGroup", + className: "IoTSecuritySolutionModel", }, }, }, @@ -4071,39 +3822,61 @@ export const DeviceSecurityGroupList: coreClient.CompositeMapper = { }, }; -export const CustomAlertRule: coreClient.CompositeMapper = { +export const UserDefinedResourcesProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "CustomAlertRule", - uberParent: "CustomAlertRule", - polymorphicDiscriminator: { - serializedName: "ruleType", - clientName: "ruleType", - }, + className: "UserDefinedResourcesProperties", modelProperties: { - displayName: { - serializedName: "displayName", - readOnly: true, + query: { + serializedName: "query", + required: true, + nullable: true, type: { name: "String", }, }, - description: { - serializedName: "description", - readOnly: true, + querySubscriptions: { + serializedName: "querySubscriptions", + required: true, + nullable: true, type: { - name: "String", + name: "Sequence", + element: { + constraints: { + Pattern: new RegExp("^[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}$"), + }, + type: { + name: "String", + }, + }, }, }, - isEnabled: { - serializedName: "isEnabled", + }, + }, +}; + +export const RecommendationConfigurationProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "RecommendationConfigurationProperties", + modelProperties: { + recommendationType: { + serializedName: "recommendationType", required: true, type: { - name: "Boolean", + name: "String", }, }, - ruleType: { - serializedName: "ruleType", + name: { + serializedName: "name", + readOnly: true, + type: { + name: "String", + }, + }, + status: { + defaultValue: "Enabled", + serializedName: "status", required: true, type: { name: "String", @@ -4113,190 +3886,147 @@ export const CustomAlertRule: coreClient.CompositeMapper = { }, }; -export const IoTSecuritySolutionAnalyticsModelList: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "IoTSecuritySolutionAnalyticsModelList", - modelProperties: { - value: { - serializedName: "value", - required: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "IoTSecuritySolutionAnalyticsModel", - }, - }, - }, - }, - nextLink: { - serializedName: "nextLink", - readOnly: true, - type: { - name: "String", - }, - }, - }, - }, - }; - -export const IoTSeverityMetrics: coreClient.CompositeMapper = { +export const AdditionalWorkspacesProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "IoTSeverityMetrics", + className: "AdditionalWorkspacesProperties", modelProperties: { - high: { - serializedName: "high", + workspace: { + serializedName: "workspace", type: { - name: "Number", + name: "String", }, }, - medium: { - serializedName: "medium", + type: { + defaultValue: "Sentinel", + serializedName: "type", type: { - name: "Number", + name: "String", }, }, - low: { - serializedName: "low", + dataTypes: { + serializedName: "dataTypes", type: { - name: "Number", + name: "Sequence", + element: { + type: { + name: "String", + }, + }, }, }, }, }, }; -export const IoTSecuritySolutionAnalyticsModelPropertiesDevicesMetricsItem: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: - "IoTSecuritySolutionAnalyticsModelPropertiesDevicesMetricsItem", - modelProperties: { - date: { - serializedName: "date", - type: { - name: "DateTime", - }, - }, - devicesMetrics: { - serializedName: "devicesMetrics", - type: { - name: "Composite", - className: "IoTSeverityMetrics", - }, - }, - }, - }, - }; - -export const IoTSecurityAlertedDevice: coreClient.CompositeMapper = { +export const AllowedConnectionsList: coreClient.CompositeMapper = { type: { name: "Composite", - className: "IoTSecurityAlertedDevice", + className: "AllowedConnectionsList", modelProperties: { - deviceId: { - serializedName: "deviceId", + value: { + serializedName: "value", readOnly: true, type: { - name: "String", + name: "Sequence", + element: { + type: { + name: "Composite", + className: "AllowedConnectionsResource", + }, + }, }, }, - alertsCount: { - serializedName: "alertsCount", + nextLink: { + serializedName: "nextLink", readOnly: true, type: { - name: "Number", + name: "String", }, }, }, }, }; -export const IoTSecurityDeviceAlert: coreClient.CompositeMapper = { +export const ConnectableResource: coreClient.CompositeMapper = { type: { name: "Composite", - className: "IoTSecurityDeviceAlert", + className: "ConnectableResource", modelProperties: { - alertDisplayName: { - serializedName: "alertDisplayName", + id: { + serializedName: "id", readOnly: true, type: { name: "String", }, }, - reportedSeverity: { - serializedName: "reportedSeverity", + inboundConnectedResources: { + serializedName: "inboundConnectedResources", readOnly: true, type: { - name: "String", + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ConnectedResource", + }, + }, }, }, - alertsCount: { - serializedName: "alertsCount", + outboundConnectedResources: { + serializedName: "outboundConnectedResources", readOnly: true, type: { - name: "Number", + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ConnectedResource", + }, + }, }, }, }, }, }; -export const IoTSecurityDeviceRecommendation: coreClient.CompositeMapper = { +export const ConnectedResource: coreClient.CompositeMapper = { type: { name: "Composite", - className: "IoTSecurityDeviceRecommendation", + className: "ConnectedResource", modelProperties: { - recommendationDisplayName: { - serializedName: "recommendationDisplayName", + connectedResourceId: { + serializedName: "connectedResourceId", readOnly: true, type: { name: "String", }, }, - reportedSeverity: { - serializedName: "reportedSeverity", + tcpPorts: { + serializedName: "tcpPorts", readOnly: true, type: { name: "String", }, }, - devicesCount: { - serializedName: "devicesCount", + udpPorts: { + serializedName: "udpPorts", readOnly: true, type: { - name: "Number", + name: "String", }, }, }, }, }; -export const IoTSecurityAggregatedAlertList: coreClient.CompositeMapper = { +export const Location: coreClient.CompositeMapper = { type: { name: "Composite", - className: "IoTSecurityAggregatedAlertList", + className: "Location", modelProperties: { - value: { - serializedName: "value", - required: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "IoTSecurityAggregatedAlert", - }, - }, - }, - }, - nextLink: { - serializedName: "nextLink", + location: { + serializedName: "location", readOnly: true, type: { name: "String", @@ -4306,97 +4036,90 @@ export const IoTSecurityAggregatedAlertList: coreClient.CompositeMapper = { }, }; -export const IoTSecurityAggregatedAlertPropertiesTopDevicesListItem: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "IoTSecurityAggregatedAlertPropertiesTopDevicesListItem", - modelProperties: { - deviceId: { - serializedName: "deviceId", - readOnly: true, - type: { - name: "String", - }, - }, - alertsCount: { - serializedName: "alertsCount", - readOnly: true, - type: { - name: "Number", +export const DiscoveredSecuritySolutionList: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DiscoveredSecuritySolutionList", + modelProperties: { + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DiscoveredSecuritySolution", + }, }, }, - lastOccurrence: { - serializedName: "lastOccurrence", - readOnly: true, - type: { - name: "String", - }, + }, + nextLink: { + serializedName: "nextLink", + readOnly: true, + type: { + name: "String", }, }, }, - }; + }, +}; -export const TagsResource: coreClient.CompositeMapper = { +export const ExternalSecuritySolutionList: coreClient.CompositeMapper = { type: { name: "Composite", - className: "TagsResource", + className: "ExternalSecuritySolutionList", modelProperties: { - tags: { - serializedName: "tags", + value: { + serializedName: "value", type: { - name: "Dictionary", - value: { type: { name: "String" } }, + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ExternalSecuritySolution", + }, + }, + }, + }, + nextLink: { + serializedName: "nextLink", + readOnly: true, + type: { + name: "String", }, }, }, }, }; -export const IoTSecurityAggregatedRecommendationList: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "IoTSecurityAggregatedRecommendationList", - modelProperties: { - value: { - serializedName: "value", - required: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "IoTSecurityAggregatedRecommendation", - }, - }, - }, - }, - nextLink: { - serializedName: "nextLink", - readOnly: true, - type: { - name: "String", - }, +export const ExternalSecuritySolutionKindAutoGenerated: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ExternalSecuritySolutionKindAutoGenerated", + modelProperties: { + kind: { + serializedName: "kind", + type: { + name: "String", }, }, }, - }; + }, +}; -export const IoTSecuritySolutionsList: coreClient.CompositeMapper = { +export const JitNetworkAccessPoliciesList: coreClient.CompositeMapper = { type: { name: "Composite", - className: "IoTSecuritySolutionsList", + className: "JitNetworkAccessPoliciesList", modelProperties: { value: { serializedName: "value", - required: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "IoTSecuritySolutionModel", + className: "JitNetworkAccessPolicy", }, }, }, @@ -4412,93 +4135,72 @@ export const IoTSecuritySolutionsList: coreClient.CompositeMapper = { }, }; -export const UserDefinedResourcesProperties: coreClient.CompositeMapper = { +export const JitNetworkAccessPolicyVirtualMachine: coreClient.CompositeMapper = { type: { name: "Composite", - className: "UserDefinedResourcesProperties", + className: "JitNetworkAccessPolicyVirtualMachine", modelProperties: { - query: { - serializedName: "query", + id: { + serializedName: "id", required: true, - nullable: true, type: { name: "String", }, }, - querySubscriptions: { - serializedName: "querySubscriptions", + ports: { + serializedName: "ports", required: true, - nullable: true, type: { name: "Sequence", element: { - constraints: { - Pattern: new RegExp( - "^[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}$", - ), - }, type: { - name: "String", + name: "Composite", + className: "JitNetworkAccessPortRule", }, }, }, }, - }, - }, -}; - -export const RecommendationConfigurationProperties: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "RecommendationConfigurationProperties", - modelProperties: { - recommendationType: { - serializedName: "recommendationType", - required: true, - type: { - name: "String", - }, - }, - name: { - serializedName: "name", - readOnly: true, - type: { - name: "String", - }, - }, - status: { - defaultValue: "Enabled", - serializedName: "status", - required: true, - type: { - name: "String", - }, + publicIpAddress: { + serializedName: "publicIpAddress", + type: { + name: "String", }, }, }, - }; + }, +}; -export const AdditionalWorkspacesProperties: coreClient.CompositeMapper = { +export const JitNetworkAccessPortRule: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AdditionalWorkspacesProperties", + className: "JitNetworkAccessPortRule", modelProperties: { - workspace: { - serializedName: "workspace", + number: { + constraints: { + InclusiveMaximum: 65535, + InclusiveMinimum: 0, + }, + serializedName: "number", + required: true, + type: { + name: "Number", + }, + }, + protocol: { + serializedName: "protocol", + required: true, type: { name: "String", }, }, - type: { - defaultValue: "Sentinel", - serializedName: "type", + allowedSourceAddressPrefix: { + serializedName: "allowedSourceAddressPrefix", type: { name: "String", }, }, - dataTypes: { - serializedName: "dataTypes", + allowedSourceAddressPrefixes: { + serializedName: "allowedSourceAddressPrefixes", type: { name: "Sequence", element: { @@ -4508,29 +4210,51 @@ export const AdditionalWorkspacesProperties: coreClient.CompositeMapper = { }, }, }, + maxRequestAccessDuration: { + serializedName: "maxRequestAccessDuration", + required: true, + type: { + name: "String", + }, + }, }, }, }; -export const AdaptiveNetworkHardeningsList: coreClient.CompositeMapper = { +export const JitNetworkAccessRequest: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AdaptiveNetworkHardeningsList", + className: "JitNetworkAccessRequest", modelProperties: { - value: { - serializedName: "value", + virtualMachines: { + serializedName: "virtualMachines", + required: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "AdaptiveNetworkHardening", + className: "JitNetworkAccessRequestVirtualMachine", }, }, }, }, - nextLink: { - serializedName: "nextLink", + startTimeUtc: { + serializedName: "startTimeUtc", + required: true, + type: { + name: "DateTime", + }, + }, + requestor: { + serializedName: "requestor", + required: true, + type: { + name: "String", + }, + }, + justification: { + serializedName: "justification", type: { name: "String", }, @@ -4539,46 +4263,59 @@ export const AdaptiveNetworkHardeningsList: coreClient.CompositeMapper = { }, }; -export const Rule: coreClient.CompositeMapper = { +export const JitNetworkAccessRequestVirtualMachine: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Rule", + className: "JitNetworkAccessRequestVirtualMachine", modelProperties: { - name: { - serializedName: "name", + id: { + serializedName: "id", + required: true, type: { name: "String", }, }, - direction: { - serializedName: "direction", + ports: { + serializedName: "ports", + required: true, type: { - name: "String", + name: "Sequence", + element: { + type: { + name: "Composite", + className: "JitNetworkAccessRequestPort", + }, + }, }, }, - destinationPort: { + }, + }, +}; + +export const JitNetworkAccessRequestPort: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "JitNetworkAccessRequestPort", + modelProperties: { + number: { constraints: { InclusiveMaximum: 65535, InclusiveMinimum: 0, }, - serializedName: "destinationPort", + serializedName: "number", + required: true, type: { name: "Number", }, }, - protocols: { - serializedName: "protocols", + allowedSourceAddressPrefix: { + serializedName: "allowedSourceAddressPrefix", type: { - name: "Sequence", - element: { - type: { - name: "String", - }, - }, + name: "String", }, }, - ipAddresses: { - serializedName: "ipAddresses", + allowedSourceAddressPrefixes: { + serializedName: "allowedSourceAddressPrefixes", type: { name: "Sequence", element: { @@ -4588,92 +4325,57 @@ export const Rule: coreClient.CompositeMapper = { }, }, }, - }, - }, -}; - -export const EffectiveNetworkSecurityGroups: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "EffectiveNetworkSecurityGroups", - modelProperties: { - networkInterface: { - serializedName: "networkInterface", + endTimeUtc: { + serializedName: "endTimeUtc", + required: true, + type: { + name: "DateTime", + }, + }, + status: { + serializedName: "status", + required: true, type: { name: "String", }, }, - networkSecurityGroups: { - serializedName: "networkSecurityGroups", + statusReason: { + serializedName: "statusReason", + required: true, type: { - name: "Sequence", - element: { - type: { - name: "String", - }, - }, + name: "String", }, }, - }, - }, -}; - -export const AdaptiveNetworkHardeningEnforceRequest: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "AdaptiveNetworkHardeningEnforceRequest", - modelProperties: { - rules: { - serializedName: "rules", - required: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "Rule", - }, - }, - }, - }, - networkSecurityGroups: { - serializedName: "networkSecurityGroups", - required: true, - type: { - name: "Sequence", - element: { - type: { - name: "String", - }, - }, - }, + mappedPort: { + serializedName: "mappedPort", + type: { + name: "Number", }, }, }, - }; + }, +}; -export const AllowedConnectionsList: coreClient.CompositeMapper = { +export const JitNetworkAccessPolicyInitiateRequest: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AllowedConnectionsList", + className: "JitNetworkAccessPolicyInitiateRequest", modelProperties: { - value: { - serializedName: "value", - readOnly: true, + virtualMachines: { + serializedName: "virtualMachines", + required: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "AllowedConnectionsResource", + className: "JitNetworkAccessPolicyInitiateVirtualMachine", }, }, }, }, - nextLink: { - serializedName: "nextLink", - readOnly: true, + justification: { + serializedName: "justification", type: { name: "String", }, @@ -4682,40 +4384,27 @@ export const AllowedConnectionsList: coreClient.CompositeMapper = { }, }; -export const ConnectableResource: coreClient.CompositeMapper = { +export const JitNetworkAccessPolicyInitiateVirtualMachine: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ConnectableResource", + className: "JitNetworkAccessPolicyInitiateVirtualMachine", modelProperties: { id: { serializedName: "id", - readOnly: true, + required: true, type: { name: "String", }, }, - inboundConnectedResources: { - serializedName: "inboundConnectedResources", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ConnectedResource", - }, - }, - }, - }, - outboundConnectedResources: { - serializedName: "outboundConnectedResources", - readOnly: true, + ports: { + serializedName: "ports", + required: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "ConnectedResource", + className: "JitNetworkAccessPolicyInitiatePort", }, }, }, @@ -4724,153 +4413,60 @@ export const ConnectableResource: coreClient.CompositeMapper = { }, }; -export const ConnectedResource: coreClient.CompositeMapper = { +export const JitNetworkAccessPolicyInitiatePort: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ConnectedResource", + className: "JitNetworkAccessPolicyInitiatePort", modelProperties: { - connectedResourceId: { - serializedName: "connectedResourceId", - readOnly: true, - type: { - name: "String", + number: { + constraints: { + InclusiveMaximum: 65535, + InclusiveMinimum: 0, }, - }, - tcpPorts: { - serializedName: "tcpPorts", - readOnly: true, + serializedName: "number", + required: true, type: { - name: "String", + name: "Number", }, }, - udpPorts: { - serializedName: "udpPorts", - readOnly: true, + allowedSourceAddressPrefix: { + serializedName: "allowedSourceAddressPrefix", type: { name: "String", }, }, - }, - }, -}; - -export const Location: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "Location", - modelProperties: { - location: { - serializedName: "location", - readOnly: true, + endTimeUtc: { + serializedName: "endTimeUtc", + required: true, type: { - name: "String", + name: "DateTime", }, }, }, }, }; -export const AdaptiveApplicationControlGroups: coreClient.CompositeMapper = { +export const SecureScoresList: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AdaptiveApplicationControlGroups", + className: "SecureScoresList", modelProperties: { value: { serializedName: "value", + readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "AdaptiveApplicationControlGroup", + className: "SecureScoreItem", }, }, }, }, - }, - }, -}; - -export const ProtectionMode: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ProtectionMode", - modelProperties: { - exe: { - serializedName: "exe", - type: { - name: "String", - }, - }, - msi: { - serializedName: "msi", - type: { - name: "String", - }, - }, - script: { - serializedName: "script", - type: { - name: "String", - }, - }, - executable: { - serializedName: "executable", - type: { - name: "String", - }, - }, - }, - }, -}; - -export const AdaptiveApplicationControlIssueSummary: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "AdaptiveApplicationControlIssueSummary", - modelProperties: { - issue: { - serializedName: "issue", - type: { - name: "String", - }, - }, - numberOfVms: { - serializedName: "numberOfVms", - type: { - name: "Number", - }, - }, - }, - }, - }; - -export const VmRecommendation: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "VmRecommendation", - modelProperties: { - configurationStatus: { - serializedName: "configurationStatus", - type: { - name: "String", - }, - }, - recommendationAction: { - serializedName: "recommendationAction", - type: { - name: "String", - }, - }, - resourceId: { - serializedName: "resourceId", - type: { - name: "String", - }, - }, - enforcementSupport: { - serializedName: "enforcementSupport", + nextLink: { + serializedName: "nextLink", + readOnly: true, type: { name: "String", }, @@ -4879,73 +4475,27 @@ export const VmRecommendation: coreClient.CompositeMapper = { }, }; -export const PathRecommendation: coreClient.CompositeMapper = { +export const SecureScoreControlList: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PathRecommendation", + className: "SecureScoreControlList", modelProperties: { - path: { - serializedName: "path", - type: { - name: "String", - }, - }, - action: { - serializedName: "action", - type: { - name: "String", - }, - }, - type: { - serializedName: "type", - type: { - name: "String", - }, - }, - publisherInfo: { - serializedName: "publisherInfo", - type: { - name: "Composite", - className: "PublisherInfo", - }, - }, - common: { - serializedName: "common", - type: { - name: "Boolean", - }, - }, - userSids: { - serializedName: "userSids", - type: { - name: "Sequence", - element: { - type: { - name: "String", - }, - }, - }, - }, - usernames: { - serializedName: "usernames", + value: { + serializedName: "value", + readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "UserRecommendation", + className: "SecureScoreControlDetails", }, }, }, }, - fileType: { - serializedName: "fileType", - type: { - name: "String", - }, - }, - configurationStatus: { - serializedName: "configurationStatus", + nextLink: { + serializedName: "nextLink", + readOnly: true, type: { name: "String", }, @@ -4954,31 +4504,13 @@ export const PathRecommendation: coreClient.CompositeMapper = { }, }; -export const PublisherInfo: coreClient.CompositeMapper = { +export const SecureScoreControlDefinitionSource: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PublisherInfo", + className: "SecureScoreControlDefinitionSource", modelProperties: { - publisherName: { - serializedName: "publisherName", - type: { - name: "String", - }, - }, - productName: { - serializedName: "productName", - type: { - name: "String", - }, - }, - binaryName: { - serializedName: "binaryName", - type: { - name: "String", - }, - }, - version: { - serializedName: "version", + sourceType: { + serializedName: "sourceType", type: { name: "String", }, @@ -4987,19 +4519,14 @@ export const PublisherInfo: coreClient.CompositeMapper = { }, }; -export const UserRecommendation: coreClient.CompositeMapper = { +export const AzureResourceLink: coreClient.CompositeMapper = { type: { name: "Composite", - className: "UserRecommendation", + className: "AzureResourceLink", modelProperties: { - username: { - serializedName: "username", - type: { - name: "String", - }, - }, - recommendationAction: { - serializedName: "recommendationAction", + id: { + serializedName: "id", + readOnly: true, type: { name: "String", }, @@ -5008,19 +4535,20 @@ export const UserRecommendation: coreClient.CompositeMapper = { }, }; -export const DiscoveredSecuritySolutionList: coreClient.CompositeMapper = { +export const SecureScoreControlDefinitionList: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DiscoveredSecuritySolutionList", + className: "SecureScoreControlDefinitionList", modelProperties: { value: { serializedName: "value", + readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "DiscoveredSecuritySolution", + className: "SecureScoreControlDefinitionItem", }, }, }, @@ -5036,10 +4564,10 @@ export const DiscoveredSecuritySolutionList: coreClient.CompositeMapper = { }, }; -export const ExternalSecuritySolutionList: coreClient.CompositeMapper = { +export const SecuritySolutionList: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ExternalSecuritySolutionList", + className: "SecuritySolutionList", modelProperties: { value: { serializedName: "value", @@ -5048,7 +4576,7 @@ export const ExternalSecuritySolutionList: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "ExternalSecuritySolution", + className: "SecuritySolution", }, }, }, @@ -5064,26 +4592,31 @@ export const ExternalSecuritySolutionList: coreClient.CompositeMapper = { }, }; -export const ExternalSecuritySolutionKindAutoGenerated: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "ExternalSecuritySolutionKindAutoGenerated", - modelProperties: { - kind: { - serializedName: "kind", - type: { - name: "String", +export const SecuritySolutionsReferenceDataList: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SecuritySolutionsReferenceDataList", + modelProperties: { + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SecuritySolutionsReferenceData", + }, }, }, }, }, - }; + }, +}; -export const JitNetworkAccessPoliciesList: coreClient.CompositeMapper = { +export const ServerVulnerabilityAssessmentsList: coreClient.CompositeMapper = { type: { name: "Composite", - className: "JitNetworkAccessPoliciesList", + className: "ServerVulnerabilityAssessmentsList", modelProperties: { value: { serializedName: "value", @@ -5092,7 +4625,29 @@ export const JitNetworkAccessPoliciesList: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "JitNetworkAccessPolicy", + className: "ServerVulnerabilityAssessment", + }, + }, + }, + }, + }, + }, +}; + +export const TopologyList: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "TopologyList", + modelProperties: { + value: { + serializedName: "value", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "TopologyResource", }, }, }, @@ -5108,85 +4663,91 @@ export const JitNetworkAccessPoliciesList: coreClient.CompositeMapper = { }, }; -export const JitNetworkAccessPolicyVirtualMachine: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "JitNetworkAccessPolicyVirtualMachine", - modelProperties: { - id: { - serializedName: "id", - required: true, - type: { - name: "String", - }, +export const TopologySingleResource: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "TopologySingleResource", + modelProperties: { + resourceId: { + serializedName: "resourceId", + readOnly: true, + type: { + name: "String", }, - ports: { - serializedName: "ports", - required: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "JitNetworkAccessPortRule", - }, - }, - }, + }, + severity: { + serializedName: "severity", + readOnly: true, + type: { + name: "String", }, - publicIpAddress: { - serializedName: "publicIpAddress", - type: { - name: "String", - }, + }, + recommendationsExist: { + serializedName: "recommendationsExist", + readOnly: true, + type: { + name: "Boolean", }, }, - }, - }; - -export const JitNetworkAccessPortRule: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "JitNetworkAccessPortRule", - modelProperties: { - number: { - constraints: { - InclusiveMaximum: 65535, - InclusiveMinimum: 0, + networkZones: { + serializedName: "networkZones", + readOnly: true, + type: { + name: "String", }, - serializedName: "number", - required: true, + }, + topologyScore: { + serializedName: "topologyScore", + readOnly: true, type: { name: "Number", }, }, - protocol: { - serializedName: "protocol", - required: true, + location: { + serializedName: "location", + readOnly: true, type: { name: "String", }, }, - allowedSourceAddressPrefix: { - serializedName: "allowedSourceAddressPrefix", + parents: { + serializedName: "parents", + readOnly: true, type: { - name: "String", + name: "Sequence", + element: { + type: { + name: "Composite", + className: "TopologySingleResourceParent", + }, + }, }, }, - allowedSourceAddressPrefixes: { - serializedName: "allowedSourceAddressPrefixes", + children: { + serializedName: "children", + readOnly: true, type: { name: "Sequence", element: { type: { - name: "String", + name: "Composite", + className: "TopologySingleResourceChild", }, }, }, }, - maxRequestAccessDuration: { - serializedName: "maxRequestAccessDuration", - required: true, + }, + }, +}; + +export const TopologySingleResourceParent: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "TopologySingleResourceParent", + modelProperties: { + resourceId: { + serializedName: "resourceId", + readOnly: true, type: { name: "String", }, @@ -5195,40 +4756,43 @@ export const JitNetworkAccessPortRule: coreClient.CompositeMapper = { }, }; -export const JitNetworkAccessRequest: coreClient.CompositeMapper = { +export const TopologySingleResourceChild: coreClient.CompositeMapper = { type: { name: "Composite", - className: "JitNetworkAccessRequest", + className: "TopologySingleResourceChild", modelProperties: { - virtualMachines: { - serializedName: "virtualMachines", - required: true, + resourceId: { + serializedName: "resourceId", + readOnly: true, + type: { + name: "String", + }, + }, + }, + }, +}; + +export const SecurityAssessmentMetadataResponseList: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SecurityAssessmentMetadataResponseList", + modelProperties: { + value: { + serializedName: "value", + readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "JitNetworkAccessRequestVirtualMachine", + className: "SecurityAssessmentMetadataResponse", }, }, }, }, - startTimeUtc: { - serializedName: "startTimeUtc", - required: true, - type: { - name: "DateTime", - }, - }, - requestor: { - serializedName: "requestor", - required: true, - type: { - name: "String", - }, - }, - justification: { - serializedName: "justification", + nextLink: { + serializedName: "nextLink", + readOnly: true, type: { name: "String", }, @@ -5237,60 +4801,68 @@ export const JitNetworkAccessRequest: coreClient.CompositeMapper = { }, }; -export const JitNetworkAccessRequestVirtualMachine: coreClient.CompositeMapper = +export const SecurityAssessmentMetadataPropertiesResponsePublishDates: coreClient.CompositeMapper = { type: { name: "Composite", - className: "JitNetworkAccessRequestVirtualMachine", + className: "SecurityAssessmentMetadataPropertiesResponsePublishDates", modelProperties: { - id: { - serializedName: "id", - required: true, + ga: { + constraints: { + Pattern: new RegExp("^([0-9]{2}\\/){2}[0-9]{4}$"), + }, + serializedName: "GA", type: { name: "String", }, }, - ports: { - serializedName: "ports", + public: { + constraints: { + Pattern: new RegExp("^([0-9]{2}\\/){2}[0-9]{4}$"), + }, + serializedName: "public", required: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "JitNetworkAccessRequestPort", - }, - }, + name: "String", }, }, }, }, }; -export const JitNetworkAccessRequestPort: coreClient.CompositeMapper = { +export const SecurityAssessmentMetadataProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "JitNetworkAccessRequestPort", + className: "SecurityAssessmentMetadataProperties", modelProperties: { - number: { - constraints: { - InclusiveMaximum: 65535, - InclusiveMinimum: 0, - }, - serializedName: "number", + displayName: { + serializedName: "displayName", required: true, type: { - name: "Number", + name: "String", }, }, - allowedSourceAddressPrefix: { - serializedName: "allowedSourceAddressPrefix", + policyDefinitionId: { + serializedName: "policyDefinitionId", + readOnly: true, type: { name: "String", }, }, - allowedSourceAddressPrefixes: { - serializedName: "allowedSourceAddressPrefixes", + description: { + serializedName: "description", + type: { + name: "String", + }, + }, + remediationDescription: { + serializedName: "remediationDescription", + type: { + name: "String", + }, + }, + categories: { + serializedName: "categories", type: { name: "Sequence", element: { @@ -5300,133 +4872,93 @@ export const JitNetworkAccessRequestPort: coreClient.CompositeMapper = { }, }, }, - endTimeUtc: { - serializedName: "endTimeUtc", + severity: { + serializedName: "severity", required: true, type: { - name: "DateTime", + name: "String", }, }, - status: { - serializedName: "status", - required: true, + userImpact: { + serializedName: "userImpact", type: { name: "String", }, }, - statusReason: { - serializedName: "statusReason", - required: true, + implementationEffort: { + serializedName: "implementationEffort", type: { name: "String", }, }, - mappedPort: { - serializedName: "mappedPort", + threats: { + serializedName: "threats", type: { - name: "Number", - }, - }, - }, - }, -}; - -export const JitNetworkAccessPolicyInitiateRequest: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "JitNetworkAccessPolicyInitiateRequest", - modelProperties: { - virtualMachines: { - serializedName: "virtualMachines", - required: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "JitNetworkAccessPolicyInitiateVirtualMachine", - }, + name: "Sequence", + element: { + type: { + name: "String", }, }, }, - justification: { - serializedName: "justification", - type: { - name: "String", - }, + }, + preview: { + serializedName: "preview", + type: { + name: "Boolean", }, }, - }, - }; - -export const JitNetworkAccessPolicyInitiateVirtualMachine: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "JitNetworkAccessPolicyInitiateVirtualMachine", - modelProperties: { - id: { - serializedName: "id", - required: true, - type: { - name: "String", - }, + assessmentType: { + serializedName: "assessmentType", + required: true, + type: { + name: "String", }, - ports: { - serializedName: "ports", - required: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "JitNetworkAccessPolicyInitiatePort", - }, - }, - }, + }, + partnerData: { + serializedName: "partnerData", + type: { + name: "Composite", + className: "SecurityAssessmentMetadataPartnerData", }, }, }, - }; + }, +}; -export const JitNetworkAccessPolicyInitiatePort: coreClient.CompositeMapper = { +export const SecurityAssessmentMetadataPartnerData: coreClient.CompositeMapper = { type: { name: "Composite", - className: "JitNetworkAccessPolicyInitiatePort", + className: "SecurityAssessmentMetadataPartnerData", modelProperties: { - number: { - constraints: { - InclusiveMaximum: 65535, - InclusiveMinimum: 0, - }, - serializedName: "number", + partnerName: { + serializedName: "partnerName", required: true, type: { - name: "Number", + name: "String", }, }, - allowedSourceAddressPrefix: { - serializedName: "allowedSourceAddressPrefix", + productName: { + serializedName: "productName", type: { name: "String", }, }, - endTimeUtc: { - serializedName: "endTimeUtc", + secret: { + serializedName: "secret", required: true, type: { - name: "DateTime", + name: "String", }, }, }, }, }; -export const SecureScoresList: coreClient.CompositeMapper = { +export const SecurityAssessmentList: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SecureScoresList", + className: "SecurityAssessmentList", modelProperties: { value: { serializedName: "value", @@ -5436,7 +4968,7 @@ export const SecureScoresList: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "SecureScoreItem", + className: "SecurityAssessmentResponse", }, }, }, @@ -5452,27 +4984,26 @@ export const SecureScoresList: coreClient.CompositeMapper = { }, }; -export const SecureScoreControlList: coreClient.CompositeMapper = { +export const AssessmentStatus: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SecureScoreControlList", + className: "AssessmentStatus", modelProperties: { - value: { - serializedName: "value", - readOnly: true, + code: { + serializedName: "code", + required: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SecureScoreControlDetails", - }, - }, + name: "String", }, }, - nextLink: { - serializedName: "nextLink", - readOnly: true, + cause: { + serializedName: "cause", + type: { + name: "String", + }, + }, + description: { + serializedName: "description", type: { name: "String", }, @@ -5481,28 +5012,64 @@ export const SecureScoreControlList: coreClient.CompositeMapper = { }, }; -export const SecureScoreControlDefinitionSource: coreClient.CompositeMapper = { +export const SecurityAssessmentPropertiesBase: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SecureScoreControlDefinitionSource", + className: "SecurityAssessmentPropertiesBase", modelProperties: { - sourceType: { - serializedName: "sourceType", + resourceDetails: { + serializedName: "resourceDetails", + type: { + name: "Composite", + className: "ResourceDetails", + }, + }, + displayName: { + serializedName: "displayName", + readOnly: true, type: { name: "String", }, }, + additionalData: { + serializedName: "additionalData", + type: { + name: "Dictionary", + value: { type: { name: "String" } }, + }, + }, + links: { + serializedName: "links", + type: { + name: "Composite", + className: "AssessmentLinks", + }, + }, + metadata: { + serializedName: "metadata", + type: { + name: "Composite", + className: "SecurityAssessmentMetadataProperties", + }, + }, + partnersData: { + serializedName: "partnersData", + type: { + name: "Composite", + className: "SecurityAssessmentPartnerData", + }, + }, }, }, }; -export const AzureResourceLink: coreClient.CompositeMapper = { +export const AssessmentLinks: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AzureResourceLink", + className: "AssessmentLinks", modelProperties: { - id: { - serializedName: "id", + azurePortalUri: { + serializedName: "azurePortalUri", readOnly: true, type: { name: "String", @@ -5512,27 +5079,21 @@ export const AzureResourceLink: coreClient.CompositeMapper = { }, }; -export const SecureScoreControlDefinitionList: coreClient.CompositeMapper = { +export const SecurityAssessmentPartnerData: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SecureScoreControlDefinitionList", + className: "SecurityAssessmentPartnerData", modelProperties: { - value: { - serializedName: "value", - readOnly: true, + partnerName: { + serializedName: "partnerName", + required: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SecureScoreControlDefinitionItem", - }, - }, + name: "String", }, }, - nextLink: { - serializedName: "nextLink", - readOnly: true, + secret: { + serializedName: "secret", + required: true, type: { name: "String", }, @@ -5541,10 +5102,10 @@ export const SecureScoreControlDefinitionList: coreClient.CompositeMapper = { }, }; -export const SecuritySolutionList: coreClient.CompositeMapper = { +export const AlertList: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SecuritySolutionList", + className: "AlertList", modelProperties: { value: { serializedName: "value", @@ -5553,7 +5114,7 @@ export const SecuritySolutionList: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "SecuritySolution", + className: "Alert", }, }, }, @@ -5569,69 +5130,92 @@ export const SecuritySolutionList: coreClient.CompositeMapper = { }, }; -export const SecuritySolutionsReferenceDataList: coreClient.CompositeMapper = { +export const ResourceIdentifier: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SecuritySolutionsReferenceDataList", + className: "ResourceIdentifier", + uberParent: "ResourceIdentifier", + polymorphicDiscriminator: { + serializedName: "type", + clientName: "type", + }, modelProperties: { - value: { - serializedName: "value", + type: { + serializedName: "type", + required: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SecuritySolutionsReferenceData", - }, - }, + name: "String", }, }, }, }, }; -export const ServerVulnerabilityAssessmentsList: coreClient.CompositeMapper = { +export const AlertEntity: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ServerVulnerabilityAssessmentsList", + className: "AlertEntity", + additionalProperties: { type: { name: "Object" } }, modelProperties: { - value: { - serializedName: "value", + type: { + serializedName: "type", + readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ServerVulnerabilityAssessment", - }, - }, + name: "String", }, }, }, }, }; -export const TopologyList: coreClient.CompositeMapper = { +export const AlertPropertiesSupportingEvidence: coreClient.CompositeMapper = { type: { name: "Composite", - className: "TopologyList", + className: "AlertPropertiesSupportingEvidence", + additionalProperties: { type: { name: "Object" } }, modelProperties: { - value: { - serializedName: "value", + type: { + serializedName: "type", readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "TopologyResource", - }, - }, + name: "String", }, }, - nextLink: { - serializedName: "nextLink", - readOnly: true, + }, + }, +}; + +export const AlertSimulatorRequestBody: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AlertSimulatorRequestBody", + modelProperties: { + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "AlertSimulatorRequestProperties", + }, + }, + }, + }, +}; + +export const AlertSimulatorRequestProperties: coreClient.CompositeMapper = { + serializedName: "AlertSimulatorRequestProperties", + type: { + name: "Composite", + className: "AlertSimulatorRequestProperties", + uberParent: "AlertSimulatorRequestProperties", + additionalProperties: { type: { name: "Object" } }, + polymorphicDiscriminator: { + serializedName: "kind", + clientName: "kind", + }, + modelProperties: { + kind: { + serializedName: "kind", + required: true, type: { name: "String", }, @@ -5640,107 +5224,179 @@ export const TopologyList: coreClient.CompositeMapper = { }, }; -export const TopologySingleResource: coreClient.CompositeMapper = { +export const SettingsList: coreClient.CompositeMapper = { type: { name: "Composite", - className: "TopologySingleResource", + className: "SettingsList", modelProperties: { - resourceId: { - serializedName: "resourceId", + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Setting", + }, + }, + }, + }, + nextLink: { + serializedName: "nextLink", readOnly: true, type: { name: "String", }, }, - severity: { - serializedName: "severity", + }, + }, +}; + +export const ServerVulnerabilityAssessmentsSettingsList: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ServerVulnerabilityAssessmentsSettingsList", + modelProperties: { + value: { + serializedName: "value", readOnly: true, type: { - name: "String", + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ServerVulnerabilityAssessmentsSetting", + }, + }, }, }, - recommendationsExist: { - serializedName: "recommendationsExist", + nextLink: { + serializedName: "nextLink", readOnly: true, type: { - name: "Boolean", + name: "String", }, }, - networkZones: { - serializedName: "networkZones", + }, + }, +}; + +export const ResourceAutoGenerated: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ResourceAutoGenerated", + modelProperties: { + id: { + serializedName: "id", readOnly: true, type: { name: "String", }, }, - topologyScore: { - serializedName: "topologyScore", + name: { + serializedName: "name", readOnly: true, type: { - name: "Number", + name: "String", }, }, - location: { - serializedName: "location", + type: { + serializedName: "type", readOnly: true, type: { name: "String", }, }, - parents: { - serializedName: "parents", + systemData: { + serializedName: "systemData", + type: { + name: "Composite", + className: "SystemData", + }, + }, + }, + }, +}; + +export const ApiCollectionList: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ApiCollectionList", + modelProperties: { + value: { + serializedName: "value", readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "TopologySingleResourceParent", + className: "ApiCollection", }, }, }, }, - children: { - serializedName: "children", + nextLink: { + serializedName: "nextLink", readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "TopologySingleResourceChild", - }, - }, + name: "String", }, }, }, }, }; -export const TopologySingleResourceParent: coreClient.CompositeMapper = { +export const Extension: coreClient.CompositeMapper = { type: { name: "Composite", - className: "TopologySingleResourceParent", + className: "Extension", modelProperties: { - resourceId: { - serializedName: "resourceId", - readOnly: true, + name: { + serializedName: "name", + required: true, + type: { + name: "String", + }, + }, + isEnabled: { + serializedName: "isEnabled", + required: true, type: { name: "String", }, }, + additionalExtensionProperties: { + serializedName: "additionalExtensionProperties", + type: { + name: "Dictionary", + value: { type: { name: "any" } }, + }, + }, + operationStatus: { + serializedName: "operationStatus", + type: { + name: "Composite", + className: "OperationStatusAutoGenerated", + }, + }, }, }, }; -export const TopologySingleResourceChild: coreClient.CompositeMapper = { +export const OperationStatusAutoGenerated: coreClient.CompositeMapper = { type: { name: "Composite", - className: "TopologySingleResourceChild", + className: "OperationStatusAutoGenerated", modelProperties: { - resourceId: { - serializedName: "resourceId", - readOnly: true, + code: { + serializedName: "code", + type: { + name: "String", + }, + }, + message: { + serializedName: "message", type: { name: "String", }, @@ -5749,308 +5405,216 @@ export const TopologySingleResourceChild: coreClient.CompositeMapper = { }, }; -export const SecurityAssessmentMetadataResponseList: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "SecurityAssessmentMetadataResponseList", - modelProperties: { - value: { - serializedName: "value", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SecurityAssessmentMetadataResponse", - }, +export const PricingList: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "PricingList", + modelProperties: { + value: { + serializedName: "value", + required: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Pricing", }, }, }, - nextLink: { - serializedName: "nextLink", - readOnly: true, - type: { - name: "String", - }, - }, }, }, - }; + }, +}; -export const SecurityAssessmentMetadataPropertiesResponsePublishDates: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "SecurityAssessmentMetadataPropertiesResponsePublishDates", - modelProperties: { - ga: { - constraints: { - Pattern: new RegExp("^([0-9]{2}\\/){2}[0-9]{4}$"), - }, - serializedName: "GA", - type: { - name: "String", +export const SecurityStandardList: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SecurityStandardList", + modelProperties: { + value: { + serializedName: "value", + required: true, + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "SecurityStandard", + }, }, }, - public: { - constraints: { - Pattern: new RegExp("^([0-9]{2}\\/){2}[0-9]{4}$"), - }, - serializedName: "public", - required: true, - type: { - name: "String", - }, + }, + nextLink: { + serializedName: "nextLink", + readOnly: true, + type: { + name: "String", }, }, }, - }; + }, +}; -export const SecurityAssessmentMetadataProperties: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "SecurityAssessmentMetadataProperties", - modelProperties: { - displayName: { - serializedName: "displayName", - required: true, - type: { - name: "String", - }, - }, - policyDefinitionId: { - serializedName: "policyDefinitionId", - readOnly: true, - type: { - name: "String", - }, - }, - description: { - serializedName: "description", - type: { - name: "String", - }, - }, - remediationDescription: { - serializedName: "remediationDescription", - type: { - name: "String", - }, - }, - categories: { - serializedName: "categories", - type: { - name: "Sequence", - element: { - type: { - name: "String", - }, - }, - }, - }, - severity: { - serializedName: "severity", - required: true, - type: { - name: "String", - }, - }, - userImpact: { - serializedName: "userImpact", - type: { - name: "String", - }, - }, - implementationEffort: { - serializedName: "implementationEffort", - type: { - name: "String", - }, - }, - threats: { - serializedName: "threats", - type: { - name: "Sequence", - element: { - type: { - name: "String", - }, - }, - }, - }, - preview: { - serializedName: "preview", - type: { - name: "Boolean", - }, - }, - assessmentType: { - serializedName: "assessmentType", - required: true, - type: { - name: "String", - }, - }, - partnerData: { - serializedName: "partnerData", - type: { - name: "Composite", - className: "SecurityAssessmentMetadataPartnerData", - }, - }, - }, - }, - }; - -export const SecurityAssessmentMetadataPartnerData: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "SecurityAssessmentMetadataPartnerData", - modelProperties: { - partnerName: { - serializedName: "partnerName", - required: true, - type: { - name: "String", - }, - }, - productName: { - serializedName: "productName", - type: { - name: "String", - }, - }, - secret: { - serializedName: "secret", - required: true, - type: { - name: "String", - }, +export const PartialAssessmentProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "PartialAssessmentProperties", + modelProperties: { + assessmentKey: { + serializedName: "assessmentKey", + type: { + name: "String", }, }, }, - }; + }, +}; -export const SecurityAssessmentList: coreClient.CompositeMapper = { +export const StandardMetadata: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SecurityAssessmentList", + className: "StandardMetadata", modelProperties: { - value: { - serializedName: "value", + createdBy: { + serializedName: "createdBy", readOnly: true, type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "SecurityAssessmentResponse", - }, - }, + name: "String", }, }, - nextLink: { - serializedName: "nextLink", + createdOn: { + serializedName: "createdOn", + readOnly: true, + type: { + name: "DateTime", + }, + }, + lastUpdatedBy: { + serializedName: "lastUpdatedBy", readOnly: true, type: { name: "String", }, }, + lastUpdatedOn: { + serializedName: "lastUpdatedOn", + readOnly: true, + type: { + name: "DateTime", + }, + }, }, }, }; -export const AssessmentStatus: coreClient.CompositeMapper = { +export const AssignedStandardItem: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AssessmentStatus", + className: "AssignedStandardItem", modelProperties: { - code: { - serializedName: "code", - required: true, + id: { + serializedName: "id", type: { name: "String", }, }, - cause: { - serializedName: "cause", + }, + }, +}; + +export const StandardAssignmentPropertiesExemptionData: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "StandardAssignmentPropertiesExemptionData", + modelProperties: { + exemptionCategory: { + serializedName: "exemptionCategory", type: { name: "String", }, }, - description: { - serializedName: "description", + assignedAssessment: { + serializedName: "assignedAssessment", type: { - name: "String", + name: "Composite", + className: "AssignedAssessmentItem", }, }, }, }, }; -export const SecurityAssessmentPropertiesBase: coreClient.CompositeMapper = { +export const AssignedAssessmentItem: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SecurityAssessmentPropertiesBase", + className: "AssignedAssessmentItem", modelProperties: { - resourceDetails: { - serializedName: "resourceDetails", - type: { - name: "Composite", - className: "ResourceDetails", - }, - }, - displayName: { - serializedName: "displayName", - readOnly: true, + assessmentKey: { + serializedName: "assessmentKey", type: { name: "String", }, }, - additionalData: { - serializedName: "additionalData", + }, + }, +}; + +export const StandardAssignmentPropertiesAttestationData: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "StandardAssignmentPropertiesAttestationData", + modelProperties: { + complianceState: { + serializedName: "complianceState", type: { - name: "Dictionary", - value: { type: { name: "String" } }, + name: "String", }, }, - links: { - serializedName: "links", + assignedAssessment: { + serializedName: "assignedAssessment", type: { name: "Composite", - className: "AssessmentLinks", + className: "AssignedAssessmentItem", }, }, - metadata: { - serializedName: "metadata", + complianceDate: { + serializedName: "complianceDate", + readOnly: true, type: { - name: "Composite", - className: "SecurityAssessmentMetadataProperties", + name: "DateTime", }, }, - partnersData: { - serializedName: "partnersData", + evidence: { + serializedName: "evidence", type: { - name: "Composite", - className: "SecurityAssessmentPartnerData", + name: "Sequence", + element: { + type: { + name: "Composite", + className: "AttestationEvidence", + }, + }, }, }, }, }, }; -export const AssessmentLinks: coreClient.CompositeMapper = { +export const AttestationEvidence: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AssessmentLinks", + className: "AttestationEvidence", modelProperties: { - azurePortalUri: { - serializedName: "azurePortalUri", - readOnly: true, + description: { + serializedName: "description", + type: { + name: "String", + }, + }, + sourceUrl: { + serializedName: "sourceUrl", type: { name: "String", }, @@ -6059,42 +5623,58 @@ export const AssessmentLinks: coreClient.CompositeMapper = { }, }; -export const SecurityAssessmentPartnerData: coreClient.CompositeMapper = { +export const StandardAssignmentMetadata: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SecurityAssessmentPartnerData", + className: "StandardAssignmentMetadata", modelProperties: { - partnerName: { - serializedName: "partnerName", - required: true, + createdBy: { + serializedName: "createdBy", + readOnly: true, type: { name: "String", }, }, - secret: { - serializedName: "secret", - required: true, + createdOn: { + serializedName: "createdOn", + readOnly: true, + type: { + name: "DateTime", + }, + }, + lastUpdatedBy: { + serializedName: "lastUpdatedBy", + readOnly: true, type: { name: "String", }, }, + lastUpdatedOn: { + serializedName: "lastUpdatedOn", + readOnly: true, + type: { + name: "DateTime", + }, + }, }, }, }; -export const AlertList: coreClient.CompositeMapper = { +export const StandardAssignmentsList: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AlertList", + className: "StandardAssignmentsList", modelProperties: { value: { serializedName: "value", + required: true, + readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "Alert", + className: "StandardAssignment", }, }, }, @@ -6110,36 +5690,27 @@ export const AlertList: coreClient.CompositeMapper = { }, }; -export const ResourceIdentifier: coreClient.CompositeMapper = { +export const CustomRecommendationsList: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ResourceIdentifier", - uberParent: "ResourceIdentifier", - polymorphicDiscriminator: { - serializedName: "type", - clientName: "type", - }, + className: "CustomRecommendationsList", modelProperties: { - type: { - serializedName: "type", + value: { + serializedName: "value", required: true, + readOnly: true, type: { - name: "String", + name: "Sequence", + element: { + type: { + name: "Composite", + className: "CustomRecommendation", + }, + }, }, }, - }, - }, -}; - -export const AlertEntity: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "AlertEntity", - additionalProperties: { type: { name: "Object" } }, - modelProperties: { - type: { - serializedName: "type", - readOnly: true, + nextLink: { + serializedName: "nextLink", type: { name: "String", }, @@ -6148,66 +5719,10 @@ export const AlertEntity: coreClient.CompositeMapper = { }, }; -export const AlertPropertiesSupportingEvidence: coreClient.CompositeMapper = { +export const AzureDevOpsOrgListResponse: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AlertPropertiesSupportingEvidence", - additionalProperties: { type: { name: "Object" } }, - modelProperties: { - type: { - serializedName: "type", - readOnly: true, - type: { - name: "String", - }, - }, - }, - }, -}; - -export const AlertSimulatorRequestBody: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "AlertSimulatorRequestBody", - modelProperties: { - properties: { - serializedName: "properties", - type: { - name: "Composite", - className: "AlertSimulatorRequestProperties", - }, - }, - }, - }, -}; - -export const AlertSimulatorRequestProperties: coreClient.CompositeMapper = { - serializedName: "AlertSimulatorRequestProperties", - type: { - name: "Composite", - className: "AlertSimulatorRequestProperties", - uberParent: "AlertSimulatorRequestProperties", - additionalProperties: { type: { name: "Object" } }, - polymorphicDiscriminator: { - serializedName: "kind", - clientName: "kind", - }, - modelProperties: { - kind: { - serializedName: "kind", - required: true, - type: { - name: "String", - }, - }, - }, - }, -}; - -export const SettingsList: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "SettingsList", + className: "AzureDevOpsOrgListResponse", modelProperties: { value: { serializedName: "value", @@ -6216,14 +5731,13 @@ export const SettingsList: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: "Setting", + className: "AzureDevOpsOrg", }, }, }, }, nextLink: { serializedName: "nextLink", - readOnly: true, type: { name: "String", }, @@ -6232,152 +5746,102 @@ export const SettingsList: coreClient.CompositeMapper = { }, }; -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 ResourceAutoGenerated2: coreClient.CompositeMapper = { +export const AzureDevOpsOrgProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ResourceAutoGenerated2", + className: "AzureDevOpsOrgProperties", modelProperties: { - id: { - serializedName: "id", + provisioningStatusMessage: { + serializedName: "provisioningStatusMessage", readOnly: true, type: { name: "String", }, }, - name: { - serializedName: "name", + provisioningStatusUpdateTimeUtc: { + serializedName: "provisioningStatusUpdateTimeUtc", readOnly: true, type: { - name: "String", + name: "DateTime", }, }, - type: { - serializedName: "type", + provisioningState: { + serializedName: "provisioningState", readOnly: true, type: { name: "String", }, }, - systemData: { - serializedName: "systemData", + onboardingState: { + serializedName: "onboardingState", + type: { + name: "String", + }, + }, + actionableRemediation: { + serializedName: "actionableRemediation", type: { name: "Composite", - className: "SystemData", + className: "ActionableRemediation", }, }, }, }, }; -export const ApiCollectionList: coreClient.CompositeMapper = { +export const ActionableRemediation: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ApiCollectionList", + className: "ActionableRemediation", modelProperties: { - value: { - serializedName: "value", - readOnly: true, + state: { + serializedName: "state", + type: { + name: "String", + }, + }, + categoryConfigurations: { + serializedName: "categoryConfigurations", type: { name: "Sequence", element: { type: { name: "Composite", - className: "ApiCollection", + className: "CategoryConfiguration", }, }, }, }, - nextLink: { - serializedName: "nextLink", - readOnly: true, - type: { - name: "String", - }, - }, - }, - }, -}; - -export const Extension: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "Extension", - modelProperties: { - name: { - serializedName: "name", - required: true, + branchConfiguration: { + serializedName: "branchConfiguration", type: { - name: "String", + name: "Composite", + className: "TargetBranchConfiguration", }, }, - isEnabled: { - serializedName: "isEnabled", - required: true, + inheritFromParentState: { + serializedName: "inheritFromParentState", type: { name: "String", }, }, - additionalExtensionProperties: { - serializedName: "additionalExtensionProperties", - type: { - name: "Dictionary", - value: { type: { name: "any" } }, - }, - }, - operationStatus: { - serializedName: "operationStatus", - type: { - name: "Composite", - className: "OperationStatusAutoGenerated", - }, - }, }, }, }; -export const OperationStatusAutoGenerated: coreClient.CompositeMapper = { +export const CategoryConfiguration: coreClient.CompositeMapper = { type: { name: "Composite", - className: "OperationStatusAutoGenerated", + className: "CategoryConfiguration", modelProperties: { - code: { - serializedName: "code", + minimumSeverityLevel: { + serializedName: "minimumSeverityLevel", type: { name: "String", }, }, - message: { - serializedName: "message", + category: { + serializedName: "category", type: { name: "String", }, @@ -6386,58 +5850,53 @@ export const OperationStatusAutoGenerated: coreClient.CompositeMapper = { }, }; -export const PricingList: coreClient.CompositeMapper = { +export const TargetBranchConfiguration: coreClient.CompositeMapper = { type: { name: "Composite", - className: "PricingList", + className: "TargetBranchConfiguration", modelProperties: { - value: { - serializedName: "value", - required: true, + branchNames: { + serializedName: "branchNames", type: { name: "Sequence", element: { type: { - name: "Composite", - className: "Pricing", + name: "String", }, }, }, }, + annotateDefaultBranch: { + serializedName: "annotateDefaultBranch", + type: { + name: "String", + }, + }, }, }, }; -export const Cvss: coreClient.CompositeMapper = { +export const ResourceAutoGenerated2: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Cvss", + className: "ResourceAutoGenerated2", modelProperties: { - base: { - serializedName: "base", + id: { + serializedName: "id", readOnly: true, type: { - name: "Number", + name: "String", }, }, - }, - }, -}; - -export const Cve: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "Cve", - modelProperties: { - title: { - serializedName: "title", + name: { + serializedName: "name", readOnly: true, type: { name: "String", }, }, - link: { - serializedName: "link", + type: { + serializedName: "type", readOnly: true, type: { name: "String", @@ -6447,75 +5906,97 @@ export const Cve: coreClient.CompositeMapper = { }, }; -export const VendorReference: coreClient.CompositeMapper = { +export const ErrorResponseAutoGenerated2: coreClient.CompositeMapper = { type: { name: "Composite", - className: "VendorReference", + className: "ErrorResponseAutoGenerated2", modelProperties: { - title: { - serializedName: "title", - readOnly: true, - type: { - name: "String", - }, - }, - link: { - serializedName: "link", - readOnly: true, + error: { + serializedName: "error", type: { - name: "String", + name: "Composite", + className: "ErrorDetailAutoGenerated2", }, }, }, }, }; -export const Condition: coreClient.CompositeMapper = { +export const ErrorDetailAutoGenerated2: coreClient.CompositeMapper = { type: { name: "Composite", - className: "Condition", + className: "ErrorDetailAutoGenerated2", modelProperties: { - property: { - serializedName: "property", + code: { + serializedName: "code", + readOnly: true, type: { name: "String", }, }, - value: { - serializedName: "value", + message: { + serializedName: "message", + readOnly: true, type: { name: "String", }, }, - operator: { - serializedName: "operator", + target: { + serializedName: "target", + readOnly: true, type: { name: "String", }, }, - }, + details: { + serializedName: "details", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ErrorDetailAutoGenerated2", + }, + }, + }, + }, + additionalInfo: { + serializedName: "additionalInfo", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "ErrorAdditionalInfo", + }, + }, + }, + }, + }, }, }; -export const ApplicationCondition: coreClient.CompositeMapper = { +export const AzureDevOpsProjectListResponse: coreClient.CompositeMapper = { type: { name: "Composite", - className: "ApplicationCondition", + className: "AzureDevOpsProjectListResponse", modelProperties: { - property: { - serializedName: "property", - type: { - name: "String", - }, - }, value: { serializedName: "value", type: { - name: "String", + name: "Sequence", + element: { + type: { + name: "Composite", + className: "AzureDevOpsProject", + }, + }, }, }, - operator: { - serializedName: "operator", + nextLink: { + serializedName: "nextLink", type: { name: "String", }, @@ -6524,138 +6005,81 @@ export const ApplicationCondition: coreClient.CompositeMapper = { }, }; -export const AzureDevOpsOrganizationConfiguration: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "AzureDevOpsOrganizationConfiguration", - modelProperties: { - autoDiscovery: { - serializedName: "autoDiscovery", - type: { - name: "String", - }, - }, - projectConfigs: { - serializedName: "projectConfigs", - nullable: true, - type: { - name: "Dictionary", - value: { - type: { - name: "Composite", - className: "AzureDevOpsProjectConfiguration", - }, - }, - }, - }, - }, - }, - }; - -export const AzureDevOpsProjectConfiguration: coreClient.CompositeMapper = { +export const AzureDevOpsProjectProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AzureDevOpsProjectConfiguration", + className: "AzureDevOpsProjectProperties", modelProperties: { - autoDiscovery: { - serializedName: "autoDiscovery", + provisioningStatusMessage: { + serializedName: "provisioningStatusMessage", + readOnly: true, type: { name: "String", }, }, - repositoryConfigs: { - serializedName: "repositoryConfigs", - nullable: true, + provisioningStatusUpdateTimeUtc: { + serializedName: "provisioningStatusUpdateTimeUtc", + readOnly: true, type: { - name: "Dictionary", - value: { - type: { name: "Composite", className: "BaseResourceConfiguration" }, - }, + name: "DateTime", }, }, - }, - }, -}; - -export const BaseResourceConfiguration: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "BaseResourceConfiguration", - modelProperties: { - desiredOnboardingState: { - serializedName: "desiredOnboardingState", + provisioningState: { + serializedName: "provisioningState", + readOnly: true, type: { name: "String", }, }, - }, - }, -}; - -export const GitHubOwnerConfiguration: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "GitHubOwnerConfiguration", - modelProperties: { - autoDiscovery: { - serializedName: "autoDiscovery", + parentOrgName: { + serializedName: "parentOrgName", type: { name: "String", }, }, - repositoryConfigs: { - serializedName: "repositoryConfigs", - nullable: true, + projectId: { + serializedName: "projectId", + readOnly: true, type: { - name: "Dictionary", - value: { - type: { name: "Composite", className: "BaseResourceConfiguration" }, - }, + name: "String", }, }, - }, - }, -}; - -export const GitLabGroupConfiguration: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "GitLabGroupConfiguration", - modelProperties: { - autoDiscovery: { - serializedName: "autoDiscovery", + onboardingState: { + serializedName: "onboardingState", type: { name: "String", }, }, - projectConfigs: { - serializedName: "projectConfigs", - nullable: true, + actionableRemediation: { + serializedName: "actionableRemediation", type: { - name: "Dictionary", - value: { - type: { name: "Composite", className: "BaseResourceConfiguration" }, - }, + name: "Composite", + className: "ActionableRemediation", }, }, }, }, }; -export const AwsOrganizationalData: coreClient.CompositeMapper = { +export const AzureDevOpsRepositoryListResponse: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AwsOrganizationalData", - uberParent: "AwsOrganizationalData", - polymorphicDiscriminator: { - serializedName: "organizationMembershipType", - clientName: "organizationMembershipType", - }, + className: "AzureDevOpsRepositoryListResponse", modelProperties: { - organizationMembershipType: { - serializedName: "organizationMembershipType", - required: true, + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "AzureDevOpsRepository", + }, + }, + }, + }, + nextLink: { + serializedName: "nextLink", type: { name: "String", }, @@ -6664,188 +6088,960 @@ export const AwsOrganizationalData: coreClient.CompositeMapper = { }, }; -export const GcpOrganizationalData: coreClient.CompositeMapper = { +export const AzureDevOpsRepositoryProperties: coreClient.CompositeMapper = { type: { name: "Composite", - className: "GcpOrganizationalData", - uberParent: "GcpOrganizationalData", - polymorphicDiscriminator: { - serializedName: "organizationMembershipType", - clientName: "organizationMembershipType", - }, + className: "AzureDevOpsRepositoryProperties", modelProperties: { - organizationMembershipType: { - serializedName: "organizationMembershipType", - required: true, + provisioningStatusMessage: { + serializedName: "provisioningStatusMessage", + readOnly: true, type: { name: "String", }, }, - }, - }, -}; - -export const GcpProjectDetails: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "GcpProjectDetails", - modelProperties: { - projectNumber: { - serializedName: "projectNumber", + provisioningStatusUpdateTimeUtc: { + serializedName: "provisioningStatusUpdateTimeUtc", + readOnly: true, + type: { + name: "DateTime", + }, + }, + provisioningState: { + serializedName: "provisioningState", + readOnly: true, type: { name: "String", }, }, - projectId: { - serializedName: "projectId", + parentOrgName: { + serializedName: "parentOrgName", type: { name: "String", }, }, - workloadIdentityPoolId: { - serializedName: "workloadIdentityPoolId", + parentProjectName: { + serializedName: "parentProjectName", + type: { + name: "String", + }, + }, + repoId: { + serializedName: "repoId", readOnly: true, type: { name: "String", }, }, - projectName: { - serializedName: "projectName", + repoUrl: { + serializedName: "repoUrl", + readOnly: true, + type: { + name: "String", + }, + }, + visibility: { + serializedName: "visibility", readOnly: true, type: { name: "String", }, }, + onboardingState: { + serializedName: "onboardingState", + type: { + name: "String", + }, + }, + actionableRemediation: { + serializedName: "actionableRemediation", + type: { + name: "Composite", + className: "ActionableRemediation", + }, + }, }, }, }; -export const CspmMonitorAwsOfferingNativeCloudConnection: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "CspmMonitorAwsOfferingNativeCloudConnection", - modelProperties: { - cloudRoleArn: { - serializedName: "cloudRoleArn", - type: { - name: "String", - }, +export const DevOpsConfigurationListResponse: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DevOpsConfigurationListResponse", + modelProperties: { + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DevOpsConfiguration", + }, + }, + }, + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String", }, }, }, - }; + }, +}; -export const DefenderForContainersAwsOfferingKubernetesService: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "DefenderForContainersAwsOfferingKubernetesService", - modelProperties: { - cloudRoleArn: { - serializedName: "cloudRoleArn", - type: { - name: "String", +export const DevOpsConfigurationProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DevOpsConfigurationProperties", + modelProperties: { + provisioningStatusMessage: { + serializedName: "provisioningStatusMessage", + readOnly: true, + type: { + name: "String", + }, + }, + provisioningStatusUpdateTimeUtc: { + serializedName: "provisioningStatusUpdateTimeUtc", + readOnly: true, + type: { + name: "DateTime", + }, + }, + provisioningState: { + serializedName: "provisioningState", + readOnly: true, + type: { + name: "String", + }, + }, + authorization: { + serializedName: "authorization", + type: { + name: "Composite", + className: "Authorization", + }, + }, + autoDiscovery: { + serializedName: "autoDiscovery", + type: { + name: "String", + }, + }, + topLevelInventoryList: { + serializedName: "topLevelInventoryList", + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, + capabilities: { + serializedName: "capabilities", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "DevOpsCapability", + }, }, }, }, + agentlessConfiguration: { + serializedName: "agentlessConfiguration", + type: { + name: "Composite", + className: "AgentlessConfiguration", + }, + }, }, - }; + }, +}; -export const DefenderForContainersAwsOfferingKubernetesScubaReader: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "DefenderForContainersAwsOfferingKubernetesScubaReader", - modelProperties: { - cloudRoleArn: { - serializedName: "cloudRoleArn", - type: { - name: "String", - }, +export const Authorization: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "Authorization", + modelProperties: { + code: { + serializedName: "code", + type: { + name: "String", }, }, }, - }; + }, +}; -export const DefenderForContainersAwsOfferingCloudWatchToKinesis: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "DefenderForContainersAwsOfferingCloudWatchToKinesis", - modelProperties: { - cloudRoleArn: { - serializedName: "cloudRoleArn", - type: { - name: "String", - }, +export const DevOpsCapability: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DevOpsCapability", + modelProperties: { + name: { + serializedName: "name", + readOnly: true, + type: { + name: "String", + }, + }, + value: { + serializedName: "value", + readOnly: true, + type: { + name: "String", }, }, }, - }; + }, +}; -export const DefenderForContainersAwsOfferingKinesisToS3: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "DefenderForContainersAwsOfferingKinesisToS3", - modelProperties: { - cloudRoleArn: { - serializedName: "cloudRoleArn", - type: { - name: "String", +export const AgentlessConfiguration: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AgentlessConfiguration", + modelProperties: { + agentlessEnabled: { + serializedName: "agentlessEnabled", + type: { + name: "String", + }, + }, + agentlessAutoDiscovery: { + serializedName: "agentlessAutoDiscovery", + type: { + name: "String", + }, + }, + scanners: { + serializedName: "scanners", + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, + inventoryListType: { + serializedName: "inventoryListType", + type: { + name: "String", + }, + }, + inventoryList: { + serializedName: "inventoryList", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "InventoryList", + }, }, }, }, }, - }; + }, +}; -export const DefenderForContainersAwsOfferingContainerVulnerabilityAssessment: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: - "DefenderForContainersAwsOfferingContainerVulnerabilityAssessment", - modelProperties: { - cloudRoleArn: { - serializedName: "cloudRoleArn", - type: { - name: "String", - }, +export const InventoryList: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "InventoryList", + modelProperties: { + inventoryKind: { + serializedName: "inventoryKind", + type: { + name: "String", + }, + }, + value: { + serializedName: "value", + type: { + name: "String", }, }, }, - }; + }, +}; -export const DefenderForContainersAwsOfferingContainerVulnerabilityAssessmentTask: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: - "DefenderForContainersAwsOfferingContainerVulnerabilityAssessmentTask", - modelProperties: { - cloudRoleArn: { - serializedName: "cloudRoleArn", - type: { - name: "String", +export const GitHubOwnerListResponse: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "GitHubOwnerListResponse", + modelProperties: { + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "GitHubOwner", + }, }, }, }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String", + }, + }, }, - }; + }, +}; + +export const GitHubOwnerProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "GitHubOwnerProperties", + modelProperties: { + provisioningStatusMessage: { + serializedName: "provisioningStatusMessage", + readOnly: true, + type: { + name: "String", + }, + }, + provisioningStatusUpdateTimeUtc: { + serializedName: "provisioningStatusUpdateTimeUtc", + readOnly: true, + type: { + name: "DateTime", + }, + }, + provisioningState: { + serializedName: "provisioningState", + readOnly: true, + type: { + name: "String", + }, + }, + ownerUrl: { + serializedName: "ownerUrl", + readOnly: true, + type: { + name: "String", + }, + }, + gitHubInternalId: { + serializedName: "gitHubInternalId", + readOnly: true, + type: { + name: "String", + }, + }, + onboardingState: { + serializedName: "onboardingState", + type: { + name: "String", + }, + }, + }, + }, +}; + +export const GitHubRepositoryListResponse: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "GitHubRepositoryListResponse", + modelProperties: { + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "GitHubRepository", + }, + }, + }, + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String", + }, + }, + }, + }, +}; + +export const GitHubRepositoryProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "GitHubRepositoryProperties", + modelProperties: { + provisioningStatusMessage: { + serializedName: "provisioningStatusMessage", + readOnly: true, + type: { + name: "String", + }, + }, + provisioningStatusUpdateTimeUtc: { + serializedName: "provisioningStatusUpdateTimeUtc", + readOnly: true, + type: { + name: "DateTime", + }, + }, + provisioningState: { + serializedName: "provisioningState", + readOnly: true, + type: { + name: "String", + }, + }, + repoId: { + serializedName: "repoId", + readOnly: true, + type: { + name: "String", + }, + }, + repoName: { + serializedName: "repoName", + readOnly: true, + type: { + name: "String", + }, + }, + repoFullName: { + serializedName: "repoFullName", + readOnly: true, + type: { + name: "String", + }, + }, + onboardingState: { + serializedName: "onboardingState", + type: { + name: "String", + }, + }, + repoUrl: { + serializedName: "repoUrl", + readOnly: true, + type: { + name: "String", + }, + }, + parentOwnerName: { + serializedName: "parentOwnerName", + type: { + name: "String", + }, + }, + }, + }, +}; + +export const GitLabGroupListResponse: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "GitLabGroupListResponse", + modelProperties: { + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "GitLabGroup", + }, + }, + }, + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String", + }, + }, + }, + }, +}; + +export const GitLabGroupProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "GitLabGroupProperties", + modelProperties: { + provisioningStatusMessage: { + serializedName: "provisioningStatusMessage", + readOnly: true, + type: { + name: "String", + }, + }, + provisioningStatusUpdateTimeUtc: { + serializedName: "provisioningStatusUpdateTimeUtc", + readOnly: true, + type: { + name: "DateTime", + }, + }, + provisioningState: { + serializedName: "provisioningState", + readOnly: true, + type: { + name: "String", + }, + }, + fullyQualifiedName: { + serializedName: "fullyQualifiedName", + readOnly: true, + type: { + name: "String", + }, + }, + fullyQualifiedFriendlyName: { + serializedName: "fullyQualifiedFriendlyName", + readOnly: true, + type: { + name: "String", + }, + }, + url: { + serializedName: "url", + readOnly: true, + type: { + name: "String", + }, + }, + onboardingState: { + serializedName: "onboardingState", + type: { + name: "String", + }, + }, + }, + }, +}; + +export const GitLabProjectListResponse: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "GitLabProjectListResponse", + modelProperties: { + value: { + serializedName: "value", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "GitLabProject", + }, + }, + }, + }, + nextLink: { + serializedName: "nextLink", + type: { + name: "String", + }, + }, + }, + }, +}; + +export const GitLabProjectProperties: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "GitLabProjectProperties", + modelProperties: { + provisioningStatusMessage: { + serializedName: "provisioningStatusMessage", + readOnly: true, + type: { + name: "String", + }, + }, + provisioningStatusUpdateTimeUtc: { + serializedName: "provisioningStatusUpdateTimeUtc", + readOnly: true, + type: { + name: "DateTime", + }, + }, + provisioningState: { + serializedName: "provisioningState", + readOnly: true, + type: { + name: "String", + }, + }, + fullyQualifiedName: { + serializedName: "fullyQualifiedName", + readOnly: true, + type: { + name: "String", + }, + }, + fullyQualifiedFriendlyName: { + serializedName: "fullyQualifiedFriendlyName", + readOnly: true, + type: { + name: "String", + }, + }, + fullyQualifiedParentGroupName: { + serializedName: "fullyQualifiedParentGroupName", + readOnly: true, + type: { + name: "String", + }, + }, + url: { + serializedName: "url", + readOnly: true, + type: { + name: "String", + }, + }, + onboardingState: { + serializedName: "onboardingState", + type: { + name: "String", + }, + }, + }, + }, +}; + +export const OperationStatusResult: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "OperationStatusResult", + modelProperties: { + id: { + serializedName: "id", + type: { + name: "String", + }, + }, + name: { + serializedName: "name", + type: { + name: "String", + }, + }, + status: { + serializedName: "status", + required: true, + type: { + name: "String", + }, + }, + percentComplete: { + constraints: { + InclusiveMaximum: 100, + InclusiveMinimum: 0, + }, + serializedName: "percentComplete", + type: { + name: "Number", + }, + }, + startTime: { + serializedName: "startTime", + type: { + name: "DateTime", + }, + }, + endTime: { + serializedName: "endTime", + type: { + name: "DateTime", + }, + }, + operations: { + serializedName: "operations", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "OperationStatusResult", + }, + }, + }, + }, + error: { + serializedName: "error", + type: { + name: "Composite", + className: "ErrorDetailAutoGenerated2", + }, + }, + }, + }, +}; + +export const Cvss: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "Cvss", + modelProperties: { + base: { + serializedName: "base", + readOnly: true, + type: { + name: "Number", + }, + }, + }, + }, +}; + +export const Cve: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "Cve", + modelProperties: { + title: { + serializedName: "title", + readOnly: true, + type: { + name: "String", + }, + }, + link: { + serializedName: "link", + readOnly: true, + type: { + name: "String", + }, + }, + }, + }, +}; + +export const VendorReference: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "VendorReference", + modelProperties: { + title: { + serializedName: "title", + readOnly: true, + type: { + name: "String", + }, + }, + link: { + serializedName: "link", + readOnly: true, + type: { + name: "String", + }, + }, + }, + }, +}; + +export const Condition: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "Condition", + modelProperties: { + property: { + serializedName: "property", + type: { + name: "String", + }, + }, + value: { + serializedName: "value", + type: { + name: "String", + }, + }, + operator: { + serializedName: "operator", + type: { + name: "String", + }, + }, + }, + }, +}; + +export const ApplicationCondition: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ApplicationCondition", + modelProperties: { + property: { + serializedName: "property", + type: { + name: "String", + }, + }, + value: { + serializedName: "value", + type: { + name: "String", + }, + }, + operator: { + serializedName: "operator", + type: { + name: "String", + }, + }, + }, + }, +}; + +export const AwsOrganizationalData: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AwsOrganizationalData", + uberParent: "AwsOrganizationalData", + polymorphicDiscriminator: { + serializedName: "organizationMembershipType", + clientName: "organizationMembershipType", + }, + modelProperties: { + organizationMembershipType: { + serializedName: "organizationMembershipType", + required: true, + type: { + name: "String", + }, + }, + }, + }, +}; + +export const GcpOrganizationalData: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "GcpOrganizationalData", + uberParent: "GcpOrganizationalData", + polymorphicDiscriminator: { + serializedName: "organizationMembershipType", + clientName: "organizationMembershipType", + }, + modelProperties: { + organizationMembershipType: { + serializedName: "organizationMembershipType", + required: true, + type: { + name: "String", + }, + }, + }, + }, +}; + +export const GcpProjectDetails: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "GcpProjectDetails", + modelProperties: { + projectNumber: { + serializedName: "projectNumber", + type: { + name: "String", + }, + }, + projectId: { + serializedName: "projectId", + type: { + name: "String", + }, + }, + workloadIdentityPoolId: { + serializedName: "workloadIdentityPoolId", + readOnly: true, + type: { + name: "String", + }, + }, + projectName: { + serializedName: "projectName", + readOnly: true, + type: { + name: "String", + }, + }, + }, + }, +}; + +export const Authentication: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "Authentication", + uberParent: "Authentication", + polymorphicDiscriminator: { + serializedName: "authenticationType", + clientName: "authenticationType", + }, + modelProperties: { + authenticationType: { + serializedName: "authenticationType", + required: true, + type: { + name: "String", + }, + }, + }, + }, +}; + +export const CspmMonitorAwsOfferingNativeCloudConnection: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "CspmMonitorAwsOfferingNativeCloudConnection", + modelProperties: { + cloudRoleArn: { + serializedName: "cloudRoleArn", + type: { + name: "String", + }, + }, + }, + }, +}; + +export const DefenderForContainersAwsOfferingKubernetesService: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DefenderForContainersAwsOfferingKubernetesService", + modelProperties: { + cloudRoleArn: { + serializedName: "cloudRoleArn", + type: { + name: "String", + }, + }, + }, + }, +}; -export const DefenderForContainersAwsOfferingMdcContainersImageAssessment: coreClient.CompositeMapper = +export const DefenderForContainersAwsOfferingKubernetesDataCollection: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DefenderForContainersAwsOfferingMdcContainersImageAssessment", + className: "DefenderForContainersAwsOfferingKubernetesDataCollection", modelProperties: { - enabled: { - serializedName: "enabled", - type: { - name: "Boolean", - }, - }, cloudRoleArn: { serializedName: "cloudRoleArn", type: { @@ -6856,12 +7052,41 @@ export const DefenderForContainersAwsOfferingMdcContainersImageAssessment: coreC }, }; -export const DefenderForContainersAwsOfferingMdcContainersAgentlessDiscoveryK8S: coreClient.CompositeMapper = +export const DefenderForContainersAwsOfferingCloudWatchToKinesis: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DefenderForContainersAwsOfferingCloudWatchToKinesis", + modelProperties: { + cloudRoleArn: { + serializedName: "cloudRoleArn", + type: { + name: "String", + }, + }, + }, + }, +}; + +export const DefenderForContainersAwsOfferingKinesisToS3: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DefenderForContainersAwsOfferingKinesisToS3", + modelProperties: { + cloudRoleArn: { + serializedName: "cloudRoleArn", + type: { + name: "String", + }, + }, + }, + }, +}; + +export const DefenderForContainersAwsOfferingMdcContainersImageAssessment: coreClient.CompositeMapper = { type: { name: "Composite", - className: - "DefenderForContainersAwsOfferingMdcContainersAgentlessDiscoveryK8S", + className: "DefenderForContainersAwsOfferingMdcContainersImageAssessment", modelProperties: { enabled: { serializedName: "enabled", @@ -6879,27 +7104,11 @@ export const DefenderForContainersAwsOfferingMdcContainersAgentlessDiscoveryK8S: }, }; -export const DefenderForServersAwsOfferingDefenderForServers: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "DefenderForServersAwsOfferingDefenderForServers", - modelProperties: { - cloudRoleArn: { - serializedName: "cloudRoleArn", - type: { - name: "String", - }, - }, - }, - }, - }; - -export const DefenderForServersAwsOfferingArcAutoProvisioning: coreClient.CompositeMapper = +export const DefenderForContainersAwsOfferingMdcContainersAgentlessDiscoveryK8S: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DefenderForServersAwsOfferingArcAutoProvisioning", + className: "DefenderForContainersAwsOfferingMdcContainersAgentlessDiscoveryK8S", modelProperties: { enabled: { serializedName: "enabled", @@ -6913,224 +7122,186 @@ export const DefenderForServersAwsOfferingArcAutoProvisioning: coreClient.Compos name: "String", }, }, - configuration: { - serializedName: "configuration", - type: { - name: "Composite", - className: - "DefenderForServersAwsOfferingArcAutoProvisioningConfiguration", - }, - }, }, }, }; -export const DefenderForServersAwsOfferingArcAutoProvisioningConfiguration: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: - "DefenderForServersAwsOfferingArcAutoProvisioningConfiguration", - modelProperties: { - proxy: { - serializedName: "proxy", - type: { - name: "String", - }, +export const VmScannersBase: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "VmScannersBase", + modelProperties: { + enabled: { + serializedName: "enabled", + type: { + name: "Boolean", }, - privateLinkScope: { - serializedName: "privateLinkScope", - type: { - name: "String", - }, + }, + configuration: { + serializedName: "configuration", + type: { + name: "Composite", + className: "VmScannersBaseConfiguration", }, }, }, - }; + }, +}; -export const DefenderForServersAwsOfferingVaAutoProvisioning: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "DefenderForServersAwsOfferingVaAutoProvisioning", - modelProperties: { - enabled: { - serializedName: "enabled", - type: { - name: "Boolean", - }, +export const VmScannersBaseConfiguration: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "VmScannersBaseConfiguration", + modelProperties: { + scanningMode: { + serializedName: "scanningMode", + type: { + name: "String", }, - configuration: { - serializedName: "configuration", - type: { - name: "Composite", - className: - "DefenderForServersAwsOfferingVaAutoProvisioningConfiguration", - }, + }, + exclusionTags: { + serializedName: "exclusionTags", + type: { + name: "Dictionary", + value: { type: { name: "String" } }, }, }, }, - }; + }, +}; -export const DefenderForServersAwsOfferingVaAutoProvisioningConfiguration: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "DefenderForServersAwsOfferingVaAutoProvisioningConfiguration", - modelProperties: { +export const DefenderForServersAwsOfferingDefenderForServers: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DefenderForServersAwsOfferingDefenderForServers", + modelProperties: { + cloudRoleArn: { + serializedName: "cloudRoleArn", type: { - serializedName: "type", - type: { - name: "String", - }, + name: "String", }, }, }, - }; + }, +}; -export const DefenderForServersAwsOfferingMdeAutoProvisioning: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "DefenderForServersAwsOfferingMdeAutoProvisioning", - modelProperties: { - enabled: { - serializedName: "enabled", - type: { - name: "Boolean", - }, +export const ArcAutoProvisioning: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ArcAutoProvisioning", + modelProperties: { + enabled: { + serializedName: "enabled", + type: { + name: "Boolean", }, - configuration: { - serializedName: "configuration", - type: { - name: "Dictionary", - value: { type: { name: "any" } }, - }, + }, + configuration: { + serializedName: "configuration", + type: { + name: "Composite", + className: "ArcAutoProvisioningConfiguration", }, }, }, - }; + }, +}; -export const DefenderForServersAwsOfferingSubPlan: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "DefenderForServersAwsOfferingSubPlan", - modelProperties: { +export const ArcAutoProvisioningConfiguration: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ArcAutoProvisioningConfiguration", + modelProperties: { + proxy: { + serializedName: "proxy", type: { - serializedName: "type", - type: { - name: "String", - }, + name: "String", + }, + }, + privateLinkScope: { + serializedName: "privateLinkScope", + type: { + name: "String", }, }, }, - }; + }, +}; -export const DefenderForServersAwsOfferingVmScanners: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "DefenderForServersAwsOfferingVmScanners", - modelProperties: { - enabled: { - serializedName: "enabled", - type: { - name: "Boolean", - }, +export const DefenderForServersAwsOfferingVaAutoProvisioning: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DefenderForServersAwsOfferingVaAutoProvisioning", + modelProperties: { + enabled: { + serializedName: "enabled", + type: { + name: "Boolean", }, - configuration: { - serializedName: "configuration", - type: { - name: "Composite", - className: "DefenderForServersAwsOfferingVmScannersConfiguration", - }, + }, + configuration: { + serializedName: "configuration", + type: { + name: "Composite", + className: "DefenderForServersAwsOfferingVaAutoProvisioningConfiguration", }, }, }, - }; + }, +}; -export const DefenderForServersAwsOfferingVmScannersConfiguration: coreClient.CompositeMapper = +export const DefenderForServersAwsOfferingVaAutoProvisioningConfiguration: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DefenderForServersAwsOfferingVmScannersConfiguration", + className: "DefenderForServersAwsOfferingVaAutoProvisioningConfiguration", modelProperties: { - cloudRoleArn: { - serializedName: "cloudRoleArn", - type: { - name: "String", - }, - }, - scanningMode: { - serializedName: "scanningMode", + type: { + serializedName: "type", type: { name: "String", }, }, - exclusionTags: { - serializedName: "exclusionTags", - type: { - name: "Dictionary", - value: { type: { name: "String" } }, - }, - }, }, }, }; -export const DefenderFoDatabasesAwsOfferingArcAutoProvisioning: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "DefenderFoDatabasesAwsOfferingArcAutoProvisioning", - modelProperties: { - enabled: { - serializedName: "enabled", - type: { - name: "Boolean", - }, - }, - cloudRoleArn: { - serializedName: "cloudRoleArn", - type: { - name: "String", - }, +export const DefenderForServersAwsOfferingMdeAutoProvisioning: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DefenderForServersAwsOfferingMdeAutoProvisioning", + modelProperties: { + enabled: { + serializedName: "enabled", + type: { + name: "Boolean", }, - configuration: { - serializedName: "configuration", - type: { - name: "Composite", - className: - "DefenderFoDatabasesAwsOfferingArcAutoProvisioningConfiguration", - }, + }, + configuration: { + serializedName: "configuration", + type: { + name: "Dictionary", + value: { type: { name: "any" } }, }, }, }, - }; + }, +}; -export const DefenderFoDatabasesAwsOfferingArcAutoProvisioningConfiguration: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: - "DefenderFoDatabasesAwsOfferingArcAutoProvisioningConfiguration", - modelProperties: { - proxy: { - serializedName: "proxy", - type: { - name: "String", - }, - }, - privateLinkScope: { - serializedName: "privateLinkScope", - type: { - name: "String", - }, +export const DefenderForServersAwsOfferingSubPlan: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DefenderForServersAwsOfferingSubPlan", + modelProperties: { + type: { + serializedName: "type", + type: { + name: "String", }, }, }, - }; + }, +}; export const DefenderFoDatabasesAwsOfferingRds: coreClient.CompositeMapper = { type: { @@ -7153,158 +7324,90 @@ export const DefenderFoDatabasesAwsOfferingRds: coreClient.CompositeMapper = { }, }; -export const DefenderFoDatabasesAwsOfferingDatabasesDspm: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "DefenderFoDatabasesAwsOfferingDatabasesDspm", - modelProperties: { - enabled: { - serializedName: "enabled", - type: { - name: "Boolean", - }, - }, - cloudRoleArn: { - serializedName: "cloudRoleArn", - type: { - name: "String", - }, +export const DefenderFoDatabasesAwsOfferingDatabasesDspm: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DefenderFoDatabasesAwsOfferingDatabasesDspm", + modelProperties: { + enabled: { + serializedName: "enabled", + type: { + name: "Boolean", }, }, - }, - }; - -export const InformationProtectionAwsOfferingInformationProtection: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "InformationProtectionAwsOfferingInformationProtection", - modelProperties: { - cloudRoleArn: { - serializedName: "cloudRoleArn", - type: { - name: "String", - }, + cloudRoleArn: { + serializedName: "cloudRoleArn", + type: { + name: "String", }, }, }, - }; + }, +}; -export const CspmMonitorGcpOfferingNativeCloudConnection: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "CspmMonitorGcpOfferingNativeCloudConnection", - modelProperties: { - workloadIdentityProviderId: { - serializedName: "workloadIdentityProviderId", - type: { - name: "String", - }, - }, - serviceAccountEmailAddress: { - serializedName: "serviceAccountEmailAddress", - type: { - name: "String", - }, +export const CspmMonitorGcpOfferingNativeCloudConnection: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "CspmMonitorGcpOfferingNativeCloudConnection", + modelProperties: { + workloadIdentityProviderId: { + serializedName: "workloadIdentityProviderId", + type: { + name: "String", }, }, - }, - }; - -export const DefenderForServersGcpOfferingDefenderForServers: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "DefenderForServersGcpOfferingDefenderForServers", - modelProperties: { - workloadIdentityProviderId: { - serializedName: "workloadIdentityProviderId", - type: { - name: "String", - }, - }, - serviceAccountEmailAddress: { - serializedName: "serviceAccountEmailAddress", - type: { - name: "String", - }, + serviceAccountEmailAddress: { + serializedName: "serviceAccountEmailAddress", + type: { + name: "String", }, }, }, - }; + }, +}; -export const DefenderForServersGcpOfferingArcAutoProvisioning: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "DefenderForServersGcpOfferingArcAutoProvisioning", - modelProperties: { - enabled: { - serializedName: "enabled", - type: { - name: "Boolean", - }, - }, - configuration: { - serializedName: "configuration", - type: { - name: "Composite", - className: - "DefenderForServersGcpOfferingArcAutoProvisioningConfiguration", - }, +export const DefenderForServersGcpOfferingDefenderForServers: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DefenderForServersGcpOfferingDefenderForServers", + modelProperties: { + workloadIdentityProviderId: { + serializedName: "workloadIdentityProviderId", + type: { + name: "String", }, }, - }, - }; - -export const DefenderForServersGcpOfferingArcAutoProvisioningConfiguration: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: - "DefenderForServersGcpOfferingArcAutoProvisioningConfiguration", - modelProperties: { - proxy: { - serializedName: "proxy", - type: { - name: "String", - }, - }, - privateLinkScope: { - serializedName: "privateLinkScope", - type: { - name: "String", - }, + serviceAccountEmailAddress: { + serializedName: "serviceAccountEmailAddress", + type: { + name: "String", }, }, }, - }; + }, +}; -export const DefenderForServersGcpOfferingVaAutoProvisioning: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "DefenderForServersGcpOfferingVaAutoProvisioning", - modelProperties: { - enabled: { - serializedName: "enabled", - type: { - name: "Boolean", - }, +export const DefenderForServersGcpOfferingVaAutoProvisioning: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DefenderForServersGcpOfferingVaAutoProvisioning", + modelProperties: { + enabled: { + serializedName: "enabled", + type: { + name: "Boolean", }, - configuration: { - serializedName: "configuration", - type: { - name: "Composite", - className: - "DefenderForServersGcpOfferingVaAutoProvisioningConfiguration", - }, + }, + configuration: { + serializedName: "configuration", + type: { + name: "Composite", + className: "DefenderForServersGcpOfferingVaAutoProvisioningConfiguration", }, }, }, - }; + }, +}; export const DefenderForServersGcpOfferingVaAutoProvisioningConfiguration: coreClient.CompositeMapper = { @@ -7322,144 +7425,48 @@ export const DefenderForServersGcpOfferingVaAutoProvisioningConfiguration: coreC }, }; -export const DefenderForServersGcpOfferingMdeAutoProvisioning: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "DefenderForServersGcpOfferingMdeAutoProvisioning", - modelProperties: { - enabled: { - serializedName: "enabled", - type: { - name: "Boolean", - }, - }, - configuration: { - serializedName: "configuration", - type: { - name: "Dictionary", - value: { type: { name: "any" } }, - }, - }, - }, - }, - }; - -export const DefenderForServersGcpOfferingSubPlan: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "DefenderForServersGcpOfferingSubPlan", - modelProperties: { +export const DefenderForServersGcpOfferingMdeAutoProvisioning: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DefenderForServersGcpOfferingMdeAutoProvisioning", + modelProperties: { + enabled: { + serializedName: "enabled", type: { - serializedName: "type", - type: { - name: "String", - }, - }, - }, - }, - }; - -export const DefenderForServersGcpOfferingVmScanners: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "DefenderForServersGcpOfferingVmScanners", - modelProperties: { - enabled: { - serializedName: "enabled", - type: { - name: "Boolean", - }, - }, - configuration: { - serializedName: "configuration", - type: { - name: "Composite", - className: "DefenderForServersGcpOfferingVmScannersConfiguration", - }, - }, - }, - }, - }; - -export const DefenderForServersGcpOfferingVmScannersConfiguration: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "DefenderForServersGcpOfferingVmScannersConfiguration", - modelProperties: { - scanningMode: { - serializedName: "scanningMode", - type: { - name: "String", - }, - }, - exclusionTags: { - serializedName: "exclusionTags", - type: { - name: "Dictionary", - value: { type: { name: "String" } }, - }, - }, - }, - }, - }; - -export const DefenderForDatabasesGcpOfferingArcAutoProvisioning: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "DefenderForDatabasesGcpOfferingArcAutoProvisioning", - modelProperties: { - enabled: { - serializedName: "enabled", - type: { - name: "Boolean", - }, - }, - configuration: { - serializedName: "configuration", - type: { - name: "Composite", - className: - "DefenderForDatabasesGcpOfferingArcAutoProvisioningConfiguration", - }, + name: "Boolean", }, }, - }, - }; - -export const DefenderForDatabasesGcpOfferingArcAutoProvisioningConfiguration: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: - "DefenderForDatabasesGcpOfferingArcAutoProvisioningConfiguration", - modelProperties: { - proxy: { - serializedName: "proxy", - type: { - name: "String", - }, + configuration: { + serializedName: "configuration", + type: { + name: "Dictionary", + value: { type: { name: "any" } }, }, - privateLinkScope: { - serializedName: "privateLinkScope", - type: { - name: "String", - }, + }, + }, + }, +}; + +export const DefenderForServersGcpOfferingSubPlan: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DefenderForServersGcpOfferingSubPlan", + modelProperties: { + type: { + serializedName: "type", + type: { + name: "String", }, }, }, - }; + }, +}; export const DefenderForDatabasesGcpOfferingDefenderForDatabasesArcAutoProvisioning: coreClient.CompositeMapper = { type: { name: "Composite", - className: - "DefenderForDatabasesGcpOfferingDefenderForDatabasesArcAutoProvisioning", + className: "DefenderForDatabasesGcpOfferingDefenderForDatabasesArcAutoProvisioning", modelProperties: { serviceAccountEmailAddress: { serializedName: "serviceAccountEmailAddress", @@ -7477,34 +7484,32 @@ export const DefenderForDatabasesGcpOfferingDefenderForDatabasesArcAutoProvision }, }; -export const DefenderForContainersGcpOfferingNativeCloudConnection: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "DefenderForContainersGcpOfferingNativeCloudConnection", - modelProperties: { - serviceAccountEmailAddress: { - serializedName: "serviceAccountEmailAddress", - type: { - name: "String", - }, +export const DefenderForContainersGcpOfferingNativeCloudConnection: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DefenderForContainersGcpOfferingNativeCloudConnection", + modelProperties: { + serviceAccountEmailAddress: { + serializedName: "serviceAccountEmailAddress", + type: { + name: "String", }, - workloadIdentityProviderId: { - serializedName: "workloadIdentityProviderId", - type: { - name: "String", - }, + }, + workloadIdentityProviderId: { + serializedName: "workloadIdentityProviderId", + type: { + name: "String", }, }, }, - }; + }, +}; export const DefenderForContainersGcpOfferingDataPipelineNativeCloudConnection: coreClient.CompositeMapper = { type: { name: "Composite", - className: - "DefenderForContainersGcpOfferingDataPipelineNativeCloudConnection", + className: "DefenderForContainersGcpOfferingDataPipelineNativeCloudConnection", modelProperties: { serviceAccountEmailAddress: { serializedName: "serviceAccountEmailAddress", @@ -7554,8 +7559,7 @@ export const DefenderForContainersGcpOfferingMdcContainersAgentlessDiscoveryK8S: { type: { name: "Composite", - className: - "DefenderForContainersGcpOfferingMdcContainersAgentlessDiscoveryK8S", + className: "DefenderForContainersGcpOfferingMdcContainersAgentlessDiscoveryK8S", modelProperties: { enabled: { serializedName: "enabled", @@ -7579,10 +7583,10 @@ export const DefenderForContainersGcpOfferingMdcContainersAgentlessDiscoveryK8S: }, }; -export const DefenderCspmAwsOfferingVmScanners: coreClient.CompositeMapper = { +export const DefenderCspmAwsOfferingDataSensitivityDiscovery: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DefenderCspmAwsOfferingVmScanners", + className: "DefenderCspmAwsOfferingDataSensitivityDiscovery", modelProperties: { enabled: { serializedName: "enabled", @@ -7590,89 +7594,36 @@ export const DefenderCspmAwsOfferingVmScanners: coreClient.CompositeMapper = { name: "Boolean", }, }, - configuration: { - serializedName: "configuration", + cloudRoleArn: { + serializedName: "cloudRoleArn", type: { - name: "Composite", - className: "DefenderCspmAwsOfferingVmScannersConfiguration", + name: "String", }, }, }, }, }; -export const DefenderCspmAwsOfferingVmScannersConfiguration: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "DefenderCspmAwsOfferingVmScannersConfiguration", - modelProperties: { - cloudRoleArn: { - serializedName: "cloudRoleArn", - type: { - name: "String", - }, - }, - scanningMode: { - serializedName: "scanningMode", - type: { - name: "String", - }, - }, - exclusionTags: { - serializedName: "exclusionTags", - type: { - name: "Dictionary", - value: { type: { name: "String" } }, - }, - }, - }, - }, - }; - -export const DefenderCspmAwsOfferingDataSensitivityDiscovery: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "DefenderCspmAwsOfferingDataSensitivityDiscovery", - modelProperties: { - enabled: { - serializedName: "enabled", - type: { - name: "Boolean", - }, - }, - cloudRoleArn: { - serializedName: "cloudRoleArn", - type: { - name: "String", - }, +export const DefenderCspmAwsOfferingDatabasesDspm: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DefenderCspmAwsOfferingDatabasesDspm", + modelProperties: { + enabled: { + serializedName: "enabled", + type: { + name: "Boolean", }, }, - }, - }; - -export const DefenderCspmAwsOfferingDatabasesDspm: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "DefenderCspmAwsOfferingDatabasesDspm", - modelProperties: { - enabled: { - serializedName: "enabled", - type: { - name: "Boolean", - }, - }, - cloudRoleArn: { - serializedName: "cloudRoleArn", - type: { - name: "String", - }, + cloudRoleArn: { + serializedName: "cloudRoleArn", + type: { + name: "String", }, }, }, - }; + }, +}; export const DefenderCspmAwsOfferingCiem: coreClient.CompositeMapper = { type: { @@ -7697,21 +7648,20 @@ export const DefenderCspmAwsOfferingCiem: coreClient.CompositeMapper = { }, }; -export const DefenderCspmAwsOfferingCiemDiscovery: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "DefenderCspmAwsOfferingCiemDiscovery", - modelProperties: { - cloudRoleArn: { - serializedName: "cloudRoleArn", - type: { - name: "String", - }, +export const DefenderCspmAwsOfferingCiemDiscovery: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DefenderCspmAwsOfferingCiemDiscovery", + modelProperties: { + cloudRoleArn: { + serializedName: "cloudRoleArn", + type: { + name: "String", }, }, }, - }; + }, +}; export const DefenderCspmAwsOfferingCiemOidc: coreClient.CompositeMapper = { type: { @@ -7734,27 +7684,26 @@ export const DefenderCspmAwsOfferingCiemOidc: coreClient.CompositeMapper = { }, }; -export const DefenderCspmAwsOfferingMdcContainersImageAssessment: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "DefenderCspmAwsOfferingMdcContainersImageAssessment", - modelProperties: { - enabled: { - serializedName: "enabled", - type: { - name: "Boolean", - }, +export const DefenderCspmAwsOfferingMdcContainersImageAssessment: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DefenderCspmAwsOfferingMdcContainersImageAssessment", + modelProperties: { + enabled: { + serializedName: "enabled", + type: { + name: "Boolean", }, - cloudRoleArn: { - serializedName: "cloudRoleArn", - type: { - name: "String", - }, + }, + cloudRoleArn: { + serializedName: "cloudRoleArn", + type: { + name: "String", }, }, }, - }; + }, +}; export const DefenderCspmAwsOfferingMdcContainersAgentlessDiscoveryK8S: coreClient.CompositeMapper = { @@ -7778,134 +7727,86 @@ export const DefenderCspmAwsOfferingMdcContainersAgentlessDiscoveryK8S: coreClie }, }; -export const DefenderCspmGcpOfferingCiemDiscovery: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "DefenderCspmGcpOfferingCiemDiscovery", - modelProperties: { - workloadIdentityProviderId: { - serializedName: "workloadIdentityProviderId", - type: { - name: "String", - }, - }, - serviceAccountEmailAddress: { - serializedName: "serviceAccountEmailAddress", - type: { - name: "String", - }, - }, - azureActiveDirectoryAppName: { - serializedName: "azureActiveDirectoryAppName", - type: { - name: "String", - }, - }, - }, - }, - }; - -export const DefenderCspmGcpOfferingVmScanners: coreClient.CompositeMapper = { +export const DefenderCspmGcpOfferingCiemDiscovery: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DefenderCspmGcpOfferingVmScanners", + className: "DefenderCspmGcpOfferingCiemDiscovery", modelProperties: { - enabled: { - serializedName: "enabled", + workloadIdentityProviderId: { + serializedName: "workloadIdentityProviderId", type: { - name: "Boolean", + name: "String", }, }, - configuration: { - serializedName: "configuration", + serviceAccountEmailAddress: { + serializedName: "serviceAccountEmailAddress", type: { - name: "Composite", - className: "DefenderCspmGcpOfferingVmScannersConfiguration", + name: "String", }, }, - }, - }, -}; - -export const DefenderCspmGcpOfferingVmScannersConfiguration: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "DefenderCspmGcpOfferingVmScannersConfiguration", - modelProperties: { - scanningMode: { - serializedName: "scanningMode", - type: { - name: "String", - }, - }, - exclusionTags: { - serializedName: "exclusionTags", - type: { - name: "Dictionary", - value: { type: { name: "String" } }, - }, + azureActiveDirectoryAppName: { + serializedName: "azureActiveDirectoryAppName", + type: { + name: "String", }, }, }, - }; + }, +}; -export const DefenderCspmGcpOfferingDataSensitivityDiscovery: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "DefenderCspmGcpOfferingDataSensitivityDiscovery", - modelProperties: { - enabled: { - serializedName: "enabled", - type: { - name: "Boolean", - }, - }, - workloadIdentityProviderId: { - serializedName: "workloadIdentityProviderId", - type: { - name: "String", - }, +export const DefenderCspmGcpOfferingDataSensitivityDiscovery: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DefenderCspmGcpOfferingDataSensitivityDiscovery", + modelProperties: { + enabled: { + serializedName: "enabled", + type: { + name: "Boolean", }, - serviceAccountEmailAddress: { - serializedName: "serviceAccountEmailAddress", - type: { - name: "String", - }, + }, + workloadIdentityProviderId: { + serializedName: "workloadIdentityProviderId", + type: { + name: "String", + }, + }, + serviceAccountEmailAddress: { + serializedName: "serviceAccountEmailAddress", + type: { + name: "String", }, }, }, - }; + }, +}; -export const DefenderCspmGcpOfferingMdcContainersImageAssessment: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "DefenderCspmGcpOfferingMdcContainersImageAssessment", - modelProperties: { - enabled: { - serializedName: "enabled", - type: { - name: "Boolean", - }, +export const DefenderCspmGcpOfferingMdcContainersImageAssessment: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DefenderCspmGcpOfferingMdcContainersImageAssessment", + modelProperties: { + enabled: { + serializedName: "enabled", + type: { + name: "Boolean", }, - workloadIdentityProviderId: { - serializedName: "workloadIdentityProviderId", - type: { - name: "String", - }, + }, + workloadIdentityProviderId: { + serializedName: "workloadIdentityProviderId", + type: { + name: "String", }, - serviceAccountEmailAddress: { - serializedName: "serviceAccountEmailAddress", - type: { - name: "String", - }, + }, + serviceAccountEmailAddress: { + serializedName: "serviceAccountEmailAddress", + type: { + name: "String", }, }, }, - }; + }, +}; export const DefenderCspmGcpOfferingMdcContainersAgentlessDiscoveryK8S: coreClient.CompositeMapper = { @@ -7935,6 +7836,21 @@ export const DefenderCspmGcpOfferingMdcContainersAgentlessDiscoveryK8S: coreClie }, }; +export const DefenderCspmJFrogOfferingMdcContainersImageAssessment: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DefenderCspmJFrogOfferingMdcContainersImageAssessment", + modelProperties: { + enabled: { + serializedName: "enabled", + type: { + name: "Boolean", + }, + }, + }, + }, +}; + export const ExternalSecuritySolutionProperties: coreClient.CompositeMapper = { type: { name: "Composite", @@ -8036,6 +7952,124 @@ export const SecureScoreControlScore: coreClient.CompositeMapper = { }, }; +export const AzureDevOpsOrganizationConfiguration: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AzureDevOpsOrganizationConfiguration", + modelProperties: { + autoDiscovery: { + serializedName: "autoDiscovery", + type: { + name: "String", + }, + }, + projectConfigs: { + serializedName: "projectConfigs", + nullable: true, + type: { + name: "Dictionary", + value: { + type: { + name: "Composite", + className: "AzureDevOpsProjectConfiguration", + }, + }, + }, + }, + }, + }, +}; + +export const AzureDevOpsProjectConfiguration: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AzureDevOpsProjectConfiguration", + modelProperties: { + autoDiscovery: { + serializedName: "autoDiscovery", + type: { + name: "String", + }, + }, + repositoryConfigs: { + serializedName: "repositoryConfigs", + nullable: true, + type: { + name: "Dictionary", + value: { + type: { name: "Composite", className: "BaseResourceConfiguration" }, + }, + }, + }, + }, + }, +}; + +export const BaseResourceConfiguration: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "BaseResourceConfiguration", + modelProperties: { + desiredOnboardingState: { + serializedName: "desiredOnboardingState", + type: { + name: "String", + }, + }, + }, + }, +}; + +export const GitHubOwnerConfiguration: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "GitHubOwnerConfiguration", + modelProperties: { + autoDiscovery: { + serializedName: "autoDiscovery", + type: { + name: "String", + }, + }, + repositoryConfigs: { + serializedName: "repositoryConfigs", + nullable: true, + type: { + name: "Dictionary", + value: { + type: { name: "Composite", className: "BaseResourceConfiguration" }, + }, + }, + }, + }, + }, +}; + +export const GitLabGroupConfiguration: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "GitLabGroupConfiguration", + modelProperties: { + autoDiscovery: { + serializedName: "autoDiscovery", + type: { + name: "String", + }, + }, + projectConfigs: { + serializedName: "projectConfigs", + nullable: true, + type: { + name: "Dictionary", + value: { + type: { name: "Composite", className: "BaseResourceConfiguration" }, + }, + }, + }, + }, + }, +}; + export const AscLocation: coreClient.CompositeMapper = { type: { name: "Composite", @@ -8266,20 +8300,6 @@ export const AlertsSuppressionRule: coreClient.CompositeMapper = { }, }; -export const TrackedResource: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "TrackedResource", - modelProperties: { - ...Resource.type.modelProperties, - ...AzureTrackedResourceLocation.type.modelProperties, - ...KindAutoGenerated.type.modelProperties, - ...ETag.type.modelProperties, - ...Tags.type.modelProperties, - }, - }, -}; - export const RegulatoryComplianceStandard: coreClient.CompositeMapper = { type: { name: "Composite", @@ -8502,82 +8522,35 @@ export const SecuritySubAssessment: coreClient.CompositeMapper = { className: "ResourceDetails", }, }, - additionalData: { - serializedName: "properties.additionalData", - type: { - name: "Composite", - className: "AdditionalData", - }, - }, - }, - }, -}; - -export const ConnectorSetting: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ConnectorSetting", - modelProperties: { - ...Resource.type.modelProperties, - hybridComputeSettings: { - serializedName: "properties.hybridComputeSettings", - type: { - name: "Composite", - className: "HybridComputeSettingsProperties", - }, - }, - authenticationDetails: { - serializedName: "properties.authenticationDetails", - type: { - name: "Composite", - className: "AuthenticationDetailsProperties", - }, - }, - }, - }, -}; - -export const SecurityContact: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "SecurityContact", - modelProperties: { - ...Resource.type.modelProperties, - emails: { - serializedName: "properties.emails", - type: { - name: "String", - }, - }, - phone: { - serializedName: "properties.phone", - type: { - name: "String", - }, - }, - isEnabled: { - serializedName: "properties.isEnabled", + additionalData: { + serializedName: "properties.additionalData", type: { - name: "Boolean", + name: "Composite", + className: "AdditionalData", }, }, - notificationsSources: { - serializedName: "properties.notificationsSources", + }, + }, +}; + +export const ConnectorSetting: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ConnectorSetting", + modelProperties: { + ...Resource.type.modelProperties, + hybridComputeSettings: { + serializedName: "properties.hybridComputeSettings", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "NotificationsSource", - }, - }, + name: "Composite", + className: "HybridComputeSettingsProperties", }, }, - notificationsByRole: { - serializedName: "properties.notificationsByRole", + authenticationDetails: { + serializedName: "properties.authenticationDetails", type: { name: "Composite", - className: "SecurityContactPropertiesNotificationsByRole", + className: "AuthenticationDetailsProperties", }, }, }, @@ -9015,67 +8988,6 @@ export const Application: coreClient.CompositeMapper = { }, }; -export const DefenderForStorageSetting: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "DefenderForStorageSetting", - modelProperties: { - ...Resource.type.modelProperties, - isEnabledPropertiesIsEnabled: { - serializedName: "properties.isEnabled", - type: { - name: "Boolean", - }, - }, - overrideSubscriptionLevelSettings: { - serializedName: "properties.overrideSubscriptionLevelSettings", - type: { - name: "Boolean", - }, - }, - isEnabledPropertiesSensitiveDataDiscoveryIsEnabled: { - serializedName: "properties.sensitiveDataDiscovery.isEnabled", - type: { - name: "Boolean", - }, - }, - operationStatusPropertiesSensitiveDataDiscoveryOperationStatus: { - serializedName: "properties.sensitiveDataDiscovery.operationStatus", - type: { - name: "Composite", - className: "OperationStatus", - }, - }, - scanResultsEventGridTopicResourceId: { - serializedName: - "properties.malwareScanning.scanResultsEventGridTopicResourceId", - type: { - name: "String", - }, - }, - operationStatusPropertiesMalwareScanningOperationStatus: { - serializedName: "properties.malwareScanning.operationStatus", - type: { - name: "Composite", - className: "OperationStatus", - }, - }, - isEnabledPropertiesMalwareScanningOnUploadIsEnabled: { - serializedName: "properties.malwareScanning.onUpload.isEnabled", - type: { - name: "Boolean", - }, - }, - capGBPerMonth: { - serializedName: "properties.malwareScanning.onUpload.capGBPerMonth", - type: { - name: "Number", - }, - }, - }, - }, -}; - export const SecurityOperator: coreClient.CompositeMapper = { type: { name: "Composite", @@ -9224,6 +9136,84 @@ export const HealthReport: coreClient.CompositeMapper = { }, }; +export const TrackedResource: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "TrackedResource", + modelProperties: { + ...Resource.type.modelProperties, + ...AzureTrackedResourceLocation.type.modelProperties, + ...KindAutoGenerated.type.modelProperties, + ...ETag.type.modelProperties, + ...Tags.type.modelProperties, + }, + }, +}; + +export const SecurityContact: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SecurityContact", + modelProperties: { + ...Resource.type.modelProperties, + emails: { + serializedName: "properties.emails", + type: { + name: "String", + }, + }, + phone: { + serializedName: "properties.phone", + type: { + name: "String", + }, + }, + isEnabled: { + serializedName: "properties.isEnabled", + type: { + name: "Boolean", + }, + }, + notificationsSources: { + serializedName: "properties.notificationsSources", + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "NotificationsSource", + }, + }, + }, + }, + notificationsByRole: { + serializedName: "properties.notificationsByRole", + type: { + name: "Composite", + className: "SecurityContactPropertiesNotificationsByRole", + }, + }, + }, + }, +}; + +export const DefenderForStorageSetting: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DefenderForStorageSetting", + modelProperties: { + ...Resource.type.modelProperties, + properties: { + serializedName: "properties", + type: { + name: "Composite", + className: "DefenderForStorageSettingProperties", + }, + }, + }, + }, +}; + export const ComplianceResult: coreClient.CompositeMapper = { type: { name: "Composite", @@ -9343,8 +9333,7 @@ export const IoTSecuritySolutionAnalyticsModel: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: - "IoTSecuritySolutionAnalyticsModelPropertiesDevicesMetricsItem", + className: "IoTSecuritySolutionAnalyticsModelPropertiesDevicesMetricsItem", }, }, }, @@ -9488,8 +9477,7 @@ export const IoTSecurityAggregatedAlert: coreClient.CompositeMapper = { element: { type: { name: "Composite", - className: - "IoTSecurityAggregatedAlertPropertiesTopDevicesListItem", + className: "IoTSecurityAggregatedAlertPropertiesTopDevicesListItem", }, }, }, @@ -9704,46 +9692,6 @@ export const IoTSecuritySolutionModel: coreClient.CompositeMapper = { }, }; -export const AdaptiveNetworkHardening: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "AdaptiveNetworkHardening", - modelProperties: { - ...Resource.type.modelProperties, - rules: { - serializedName: "properties.rules", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "Rule", - }, - }, - }, - }, - rulesCalculationTime: { - serializedName: "properties.rulesCalculationTime", - type: { - name: "DateTime", - }, - }, - effectiveNetworkSecurityGroups: { - serializedName: "properties.effectiveNetworkSecurityGroups", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "EffectiveNetworkSecurityGroups", - }, - }, - }, - }, - }, - }, -}; - export const AllowedConnectionsResource: coreClient.CompositeMapper = { type: { name: "Composite", @@ -9758,97 +9706,15 @@ export const AllowedConnectionsResource: coreClient.CompositeMapper = { name: "DateTime", }, }, - connectableResources: { - serializedName: "properties.connectableResources", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "ConnectableResource", - }, - }, - }, - }, - }, - }, -}; - -export const AdaptiveApplicationControlGroup: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "AdaptiveApplicationControlGroup", - modelProperties: { - ...Resource.type.modelProperties, - ...Location.type.modelProperties, - enforcementMode: { - serializedName: "properties.enforcementMode", - type: { - name: "String", - }, - }, - protectionMode: { - serializedName: "properties.protectionMode", - type: { - name: "Composite", - className: "ProtectionMode", - }, - }, - configurationStatus: { - serializedName: "properties.configurationStatus", - readOnly: true, - type: { - name: "String", - }, - }, - recommendationStatus: { - serializedName: "properties.recommendationStatus", - readOnly: true, - type: { - name: "String", - }, - }, - issues: { - serializedName: "properties.issues", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "AdaptiveApplicationControlIssueSummary", - }, - }, - }, - }, - sourceSystem: { - serializedName: "properties.sourceSystem", - readOnly: true, - type: { - name: "String", - }, - }, - vmRecommendations: { - serializedName: "properties.vmRecommendations", - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "VmRecommendation", - }, - }, - }, - }, - pathRecommendations: { - serializedName: "properties.pathRecommendations", + connectableResources: { + serializedName: "properties.connectableResources", + readOnly: true, type: { name: "Sequence", element: { type: { name: "Composite", - className: "PathRecommendation", + className: "ConnectableResource", }, }, }, @@ -10865,8 +10731,7 @@ export const ApiCollection: coreClient.CompositeMapper = { }, }, numberOfApiEndpointsWithSensitiveDataExposed: { - serializedName: - "properties.numberOfApiEndpointsWithSensitiveDataExposed", + serializedName: "properties.numberOfApiEndpointsWithSensitiveDataExposed", readOnly: true, type: { name: "Number", @@ -10977,10 +10842,10 @@ export const Pricing: coreClient.CompositeMapper = { }, }; -export const SecurityAssessmentMetadata: coreClient.CompositeMapper = { +export const SecurityStandard: coreClient.CompositeMapper = { type: { name: "Composite", - className: "SecurityAssessmentMetadata", + className: "SecurityStandard", modelProperties: { ...Resource.type.modelProperties, displayName: { @@ -10989,8 +10854,8 @@ export const SecurityAssessmentMetadata: coreClient.CompositeMapper = { name: "String", }, }, - policyDefinitionId: { - serializedName: "properties.policyDefinitionId", + standardType: { + serializedName: "properties.standardType", readOnly: true, type: { name: "String", @@ -11002,14 +10867,20 @@ export const SecurityAssessmentMetadata: coreClient.CompositeMapper = { name: "String", }, }, - remediationDescription: { - serializedName: "properties.remediationDescription", + assessments: { + serializedName: "properties.assessments", type: { - name: "String", + name: "Sequence", + element: { + type: { + name: "Composite", + className: "PartialAssessmentProperties", + }, + }, }, }, - categories: { - serializedName: "properties.categories", + cloudProviders: { + serializedName: "properties.cloudProviders", type: { name: "Sequence", element: { @@ -11019,26 +10890,56 @@ export const SecurityAssessmentMetadata: coreClient.CompositeMapper = { }, }, }, - severity: { - serializedName: "properties.severity", + policySetDefinitionId: { + serializedName: "properties.policySetDefinitionId", type: { name: "String", }, }, - userImpact: { - serializedName: "properties.userImpact", + metadata: { + serializedName: "properties.metadata", + type: { + name: "Composite", + className: "StandardMetadata", + }, + }, + }, + }, +}; + +export const StandardAssignment: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "StandardAssignment", + modelProperties: { + ...Resource.type.modelProperties, + displayName: { + serializedName: "properties.displayName", type: { name: "String", }, }, - implementationEffort: { - serializedName: "properties.implementationEffort", + description: { + serializedName: "properties.description", type: { name: "String", }, }, - threats: { - serializedName: "properties.threats", + assignedStandard: { + serializedName: "properties.assignedStandard", + type: { + name: "Composite", + className: "AssignedStandardItem", + }, + }, + effect: { + serializedName: "properties.effect", + type: { + name: "String", + }, + }, + excludedScopes: { + serializedName: "properties.excludedScopes", type: { name: "Sequence", element: { @@ -11048,103 +10949,100 @@ export const SecurityAssessmentMetadata: coreClient.CompositeMapper = { }, }, }, - preview: { - serializedName: "properties.preview", + expiresOn: { + serializedName: "properties.expiresOn", type: { - name: "Boolean", + name: "DateTime", }, }, - assessmentType: { - serializedName: "properties.assessmentType", + exemptionData: { + serializedName: "properties.exemptionData", type: { - name: "String", + name: "Composite", + className: "StandardAssignmentPropertiesExemptionData", }, }, - partnerData: { - serializedName: "properties.partnerData", + attestationData: { + serializedName: "properties.attestationData", type: { name: "Composite", - className: "SecurityAssessmentMetadataPartnerData", + className: "StandardAssignmentPropertiesAttestationData", + }, + }, + metadata: { + serializedName: "properties.metadata", + type: { + name: "Composite", + className: "StandardAssignmentMetadata", }, }, }, }, }; -export const AutomationActionLogicApp: coreClient.CompositeMapper = { - serializedName: "LogicApp", +export const CustomRecommendation: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AutomationActionLogicApp", - uberParent: "AutomationAction", - polymorphicDiscriminator: AutomationAction.type.polymorphicDiscriminator, + className: "CustomRecommendation", modelProperties: { - ...AutomationAction.type.modelProperties, - logicAppResourceId: { - serializedName: "logicAppResourceId", + ...Resource.type.modelProperties, + systemData: { + serializedName: "systemData", + type: { + name: "Composite", + className: "SystemData", + }, + }, + query: { + serializedName: "properties.query", type: { name: "String", }, }, - uri: { - serializedName: "uri", + cloudProviders: { + serializedName: "properties.cloudProviders", + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, + severity: { + serializedName: "properties.severity", type: { name: "String", }, }, - }, - }, -}; - -export const AutomationActionEventHub: coreClient.CompositeMapper = { - serializedName: "EventHub", - type: { - name: "Composite", - className: "AutomationActionEventHub", - uberParent: "AutomationAction", - polymorphicDiscriminator: AutomationAction.type.polymorphicDiscriminator, - modelProperties: { - ...AutomationAction.type.modelProperties, - eventHubResourceId: { - serializedName: "eventHubResourceId", + securityIssue: { + serializedName: "properties.securityIssue", type: { name: "String", }, }, - sasPolicyName: { - serializedName: "sasPolicyName", - readOnly: true, + displayName: { + serializedName: "properties.displayName", type: { name: "String", }, }, - connectionString: { - serializedName: "connectionString", + description: { + serializedName: "properties.description", type: { name: "String", }, }, - isTrustedServiceEnabled: { - serializedName: "isTrustedServiceEnabled", + remediationDescription: { + serializedName: "properties.remediationDescription", type: { - name: "Boolean", + name: "String", }, }, - }, - }, -}; - -export const AutomationActionWorkspace: coreClient.CompositeMapper = { - serializedName: "Workspace", - type: { - name: "Composite", - className: "AutomationActionWorkspace", - uberParent: "AutomationAction", - polymorphicDiscriminator: AutomationAction.type.polymorphicDiscriminator, - modelProperties: { - ...AutomationAction.type.modelProperties, - workspaceResourceId: { - serializedName: "workspaceResourceId", + assessmentKey: { + serializedName: "properties.assessmentKey", + readOnly: true, type: { name: "String", }, @@ -11153,60 +11051,96 @@ export const AutomationActionWorkspace: coreClient.CompositeMapper = { }, }; -export const AutomationUpdateModel: coreClient.CompositeMapper = { +export const SecurityAssessmentMetadata: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AutomationUpdateModel", + className: "SecurityAssessmentMetadata", modelProperties: { - ...Tags.type.modelProperties, + ...Resource.type.modelProperties, + displayName: { + serializedName: "properties.displayName", + type: { + name: "String", + }, + }, + policyDefinitionId: { + serializedName: "properties.policyDefinitionId", + readOnly: true, + type: { + name: "String", + }, + }, description: { serializedName: "properties.description", type: { name: "String", }, }, - isEnabled: { - serializedName: "properties.isEnabled", + remediationDescription: { + serializedName: "properties.remediationDescription", type: { - name: "Boolean", + name: "String", }, }, - scopes: { - serializedName: "properties.scopes", + categories: { + serializedName: "properties.categories", type: { name: "Sequence", element: { type: { - name: "Composite", - className: "AutomationScope", + name: "String", }, }, }, }, - sources: { - serializedName: "properties.sources", + severity: { + serializedName: "properties.severity", type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "AutomationSource", - }, - }, + name: "String", }, }, - actions: { - serializedName: "properties.actions", + userImpact: { + serializedName: "properties.userImpact", + type: { + name: "String", + }, + }, + implementationEffort: { + serializedName: "properties.implementationEffort", + type: { + name: "String", + }, + }, + threats: { + serializedName: "properties.threats", type: { name: "Sequence", element: { type: { - name: "Composite", - className: "AutomationAction", + name: "String", }, }, }, }, + preview: { + serializedName: "properties.preview", + type: { + name: "Boolean", + }, + }, + assessmentType: { + serializedName: "properties.assessmentType", + type: { + name: "String", + }, + }, + partnerData: { + serializedName: "properties.partnerData", + type: { + name: "Composite", + className: "SecurityAssessmentMetadataPartnerData", + }, + }, }, }, }; @@ -11291,99 +11225,98 @@ export const SqlServerVulnerabilityProperties: coreClient.CompositeMapper = { name: "String", }, }, - query: { - serializedName: "query", + query: { + serializedName: "query", + readOnly: true, + type: { + name: "String", + }, + }, + }, + }, +}; + +export const ContainerRegistryVulnerabilityProperties: coreClient.CompositeMapper = { + serializedName: "ContainerRegistryVulnerability", + type: { + name: "Composite", + className: "ContainerRegistryVulnerabilityProperties", + uberParent: "AdditionalData", + polymorphicDiscriminator: AdditionalData.type.polymorphicDiscriminator, + modelProperties: { + ...AdditionalData.type.modelProperties, + type: { + serializedName: "type", + readOnly: true, + type: { + name: "String", + }, + }, + cvss: { + serializedName: "cvss", readOnly: true, type: { - name: "String", + name: "Dictionary", + value: { type: { name: "Composite", className: "Cvss" } }, }, }, - }, - }, -}; - -export const ContainerRegistryVulnerabilityProperties: coreClient.CompositeMapper = - { - serializedName: "ContainerRegistryVulnerability", - type: { - name: "Composite", - className: "ContainerRegistryVulnerabilityProperties", - uberParent: "AdditionalData", - polymorphicDiscriminator: AdditionalData.type.polymorphicDiscriminator, - modelProperties: { - ...AdditionalData.type.modelProperties, + patchable: { + serializedName: "patchable", + readOnly: true, type: { - serializedName: "type", - readOnly: true, - type: { - name: "String", - }, - }, - cvss: { - serializedName: "cvss", - readOnly: true, - type: { - name: "Dictionary", - value: { type: { name: "Composite", className: "Cvss" } }, - }, - }, - patchable: { - serializedName: "patchable", - readOnly: true, - type: { - name: "Boolean", - }, + name: "Boolean", }, - cve: { - serializedName: "cve", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "Cve", - }, + }, + cve: { + serializedName: "cve", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "Cve", }, }, }, - publishedTime: { - serializedName: "publishedTime", - readOnly: true, - type: { - name: "DateTime", - }, + }, + publishedTime: { + serializedName: "publishedTime", + readOnly: true, + type: { + name: "DateTime", }, - vendorReferences: { - serializedName: "vendorReferences", - readOnly: true, - type: { - name: "Sequence", - element: { - type: { - name: "Composite", - className: "VendorReference", - }, + }, + vendorReferences: { + serializedName: "vendorReferences", + readOnly: true, + type: { + name: "Sequence", + element: { + type: { + name: "Composite", + className: "VendorReference", }, }, }, - repositoryName: { - serializedName: "repositoryName", - readOnly: true, - type: { - name: "String", - }, + }, + repositoryName: { + serializedName: "repositoryName", + readOnly: true, + type: { + name: "String", }, - imageDigest: { - serializedName: "imageDigest", - readOnly: true, - type: { - name: "String", - }, + }, + imageDigest: { + serializedName: "imageDigest", + readOnly: true, + type: { + name: "String", }, }, }, - }; + }, +}; export const ServerVulnerabilityProperties: coreClient.CompositeMapper = { serializedName: "ServerVulnerabilityAssessment", @@ -11460,163 +11393,298 @@ export const ServerVulnerabilityProperties: coreClient.CompositeMapper = { }, }; -export const AwsCredsAuthenticationDetailsProperties: coreClient.CompositeMapper = - { - serializedName: "awsCreds", - type: { - name: "Composite", - className: "AwsCredsAuthenticationDetailsProperties", - uberParent: "AuthenticationDetailsProperties", - polymorphicDiscriminator: - AuthenticationDetailsProperties.type.polymorphicDiscriminator, - modelProperties: { - ...AuthenticationDetailsProperties.type.modelProperties, - accountId: { - serializedName: "accountId", - readOnly: true, - type: { - name: "String", - }, +export const AwsCredsAuthenticationDetailsProperties: coreClient.CompositeMapper = { + serializedName: "awsCreds", + type: { + name: "Composite", + className: "AwsCredsAuthenticationDetailsProperties", + uberParent: "AuthenticationDetailsProperties", + polymorphicDiscriminator: AuthenticationDetailsProperties.type.polymorphicDiscriminator, + modelProperties: { + ...AuthenticationDetailsProperties.type.modelProperties, + accountId: { + serializedName: "accountId", + readOnly: true, + type: { + name: "String", }, - awsAccessKeyId: { - serializedName: "awsAccessKeyId", - required: true, - type: { - name: "String", - }, + }, + awsAccessKeyId: { + serializedName: "awsAccessKeyId", + required: true, + type: { + name: "String", }, - awsSecretAccessKey: { - serializedName: "awsSecretAccessKey", - required: true, - type: { - name: "String", - }, + }, + awsSecretAccessKey: { + serializedName: "awsSecretAccessKey", + required: true, + type: { + name: "String", }, }, }, - }; + }, +}; -export const AwAssumeRoleAuthenticationDetailsProperties: coreClient.CompositeMapper = - { - serializedName: "awsAssumeRole", - type: { - name: "Composite", - className: "AwAssumeRoleAuthenticationDetailsProperties", - uberParent: "AuthenticationDetailsProperties", - polymorphicDiscriminator: - AuthenticationDetailsProperties.type.polymorphicDiscriminator, - modelProperties: { - ...AuthenticationDetailsProperties.type.modelProperties, - accountId: { - serializedName: "accountId", - readOnly: true, - type: { - name: "String", - }, +export const AwAssumeRoleAuthenticationDetailsProperties: coreClient.CompositeMapper = { + serializedName: "awsAssumeRole", + type: { + name: "Composite", + className: "AwAssumeRoleAuthenticationDetailsProperties", + uberParent: "AuthenticationDetailsProperties", + polymorphicDiscriminator: AuthenticationDetailsProperties.type.polymorphicDiscriminator, + modelProperties: { + ...AuthenticationDetailsProperties.type.modelProperties, + accountId: { + serializedName: "accountId", + readOnly: true, + type: { + name: "String", }, - awsAssumeRoleArn: { - serializedName: "awsAssumeRoleArn", - required: true, - type: { - name: "String", - }, + }, + awsAssumeRoleArn: { + serializedName: "awsAssumeRoleArn", + required: true, + type: { + name: "String", }, - awsExternalId: { - serializedName: "awsExternalId", - required: true, - type: { - name: "String", - }, + }, + awsExternalId: { + serializedName: "awsExternalId", + required: true, + type: { + name: "String", + }, + }, + }, + }, +}; + +export const GcpCredentialsDetailsProperties: coreClient.CompositeMapper = { + serializedName: "gcpCredentials", + type: { + name: "Composite", + className: "GcpCredentialsDetailsProperties", + uberParent: "AuthenticationDetailsProperties", + polymorphicDiscriminator: AuthenticationDetailsProperties.type.polymorphicDiscriminator, + modelProperties: { + ...AuthenticationDetailsProperties.type.modelProperties, + organizationId: { + serializedName: "organizationId", + required: true, + type: { + name: "String", + }, + }, + type: { + serializedName: "type", + required: true, + type: { + name: "String", + }, + }, + projectId: { + serializedName: "projectId", + required: true, + type: { + name: "String", + }, + }, + privateKeyId: { + serializedName: "privateKeyId", + required: true, + type: { + name: "String", + }, + }, + privateKey: { + serializedName: "privateKey", + required: true, + type: { + name: "String", + }, + }, + clientEmail: { + serializedName: "clientEmail", + required: true, + type: { + name: "String", + }, + }, + clientId: { + serializedName: "clientId", + required: true, + type: { + name: "String", + }, + }, + authUri: { + serializedName: "authUri", + required: true, + type: { + name: "String", + }, + }, + tokenUri: { + serializedName: "tokenUri", + required: true, + type: { + name: "String", + }, + }, + authProviderX509CertUrl: { + serializedName: "authProviderX509CertUrl", + required: true, + type: { + name: "String", + }, + }, + clientX509CertUrl: { + serializedName: "clientX509CertUrl", + required: true, + type: { + name: "String", + }, + }, + }, + }, +}; + +export const AutomationActionLogicApp: coreClient.CompositeMapper = { + serializedName: "LogicApp", + type: { + name: "Composite", + className: "AutomationActionLogicApp", + uberParent: "AutomationAction", + polymorphicDiscriminator: AutomationAction.type.polymorphicDiscriminator, + modelProperties: { + ...AutomationAction.type.modelProperties, + logicAppResourceId: { + serializedName: "logicAppResourceId", + type: { + name: "String", + }, + }, + uri: { + serializedName: "uri", + type: { + name: "String", }, }, }, - }; + }, +}; -export const GcpCredentialsDetailsProperties: coreClient.CompositeMapper = { - serializedName: "gcpCredentials", +export const AutomationActionEventHub: coreClient.CompositeMapper = { + serializedName: "EventHub", type: { name: "Composite", - className: "GcpCredentialsDetailsProperties", - uberParent: "AuthenticationDetailsProperties", - polymorphicDiscriminator: - AuthenticationDetailsProperties.type.polymorphicDiscriminator, + className: "AutomationActionEventHub", + uberParent: "AutomationAction", + polymorphicDiscriminator: AutomationAction.type.polymorphicDiscriminator, modelProperties: { - ...AuthenticationDetailsProperties.type.modelProperties, - organizationId: { - serializedName: "organizationId", - required: true, - type: { - name: "String", - }, - }, - type: { - serializedName: "type", - required: true, + ...AutomationAction.type.modelProperties, + eventHubResourceId: { + serializedName: "eventHubResourceId", type: { name: "String", }, }, - projectId: { - serializedName: "projectId", - required: true, + sasPolicyName: { + serializedName: "sasPolicyName", + readOnly: true, type: { name: "String", }, }, - privateKeyId: { - serializedName: "privateKeyId", - required: true, + connectionString: { + serializedName: "connectionString", type: { name: "String", }, }, - privateKey: { - serializedName: "privateKey", - required: true, + isTrustedServiceEnabled: { + serializedName: "isTrustedServiceEnabled", type: { - name: "String", + name: "Boolean", }, }, - clientEmail: { - serializedName: "clientEmail", - required: true, + }, + }, +}; + +export const AutomationActionWorkspace: coreClient.CompositeMapper = { + serializedName: "Workspace", + type: { + name: "Composite", + className: "AutomationActionWorkspace", + uberParent: "AutomationAction", + polymorphicDiscriminator: AutomationAction.type.polymorphicDiscriminator, + modelProperties: { + ...AutomationAction.type.modelProperties, + workspaceResourceId: { + serializedName: "workspaceResourceId", type: { name: "String", }, }, - clientId: { - serializedName: "clientId", - required: true, + }, + }, +}; + +export const AutomationUpdateModel: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "AutomationUpdateModel", + modelProperties: { + ...Tags.type.modelProperties, + description: { + serializedName: "properties.description", type: { name: "String", }, }, - authUri: { - serializedName: "authUri", - required: true, + isEnabled: { + serializedName: "properties.isEnabled", type: { - name: "String", + name: "Boolean", }, }, - tokenUri: { - serializedName: "tokenUri", - required: true, + scopes: { + serializedName: "properties.scopes", type: { - name: "String", + name: "Sequence", + element: { + type: { + name: "Composite", + className: "AutomationScope", + }, + }, }, }, - authProviderX509CertUrl: { - serializedName: "authProviderX509CertUrl", - required: true, + sources: { + serializedName: "properties.sources", type: { - name: "String", + name: "Sequence", + element: { + type: { + name: "Composite", + className: "AutomationSource", + }, + }, }, }, - clientX509CertUrl: { - serializedName: "clientX509CertUrl", - required: true, + actions: { + serializedName: "properties.actions", type: { - name: "String", + name: "Sequence", + element: { + type: { + name: "Composite", + className: "AutomationAction", + }, + }, }, }, }, @@ -11661,16 +11729,6 @@ export const NotificationsSourceAttackPath: coreClient.CompositeMapper = { }, }; -export const ProxyResource: coreClient.CompositeMapper = { - type: { - name: "Composite", - className: "ProxyResource", - modelProperties: { - ...ResourceAutoGenerated.type.modelProperties, - }, - }, -}; - export const CspmMonitorAwsOffering: coreClient.CompositeMapper = { serializedName: "CspmMonitorAws", type: { @@ -11707,11 +11765,11 @@ export const DefenderForContainersAwsOffering: coreClient.CompositeMapper = { className: "DefenderForContainersAwsOfferingKubernetesService", }, }, - kubernetesScubaReader: { - serializedName: "kubernetesScubaReader", + kubernetesDataCollection: { + serializedName: "kubernetesDataCollection", type: { name: "Composite", - className: "DefenderForContainersAwsOfferingKubernetesScubaReader", + className: "DefenderForContainersAwsOfferingKubernetesDataCollection", }, }, cloudWatchToKinesis: { @@ -11728,30 +11786,20 @@ export const DefenderForContainersAwsOffering: coreClient.CompositeMapper = { className: "DefenderForContainersAwsOfferingKinesisToS3", }, }, - containerVulnerabilityAssessment: { - serializedName: "containerVulnerabilityAssessment", + enableAuditLogsAutoProvisioning: { + serializedName: "enableAuditLogsAutoProvisioning", type: { - name: "Composite", - className: - "DefenderForContainersAwsOfferingContainerVulnerabilityAssessment", - }, - }, - containerVulnerabilityAssessmentTask: { - serializedName: "containerVulnerabilityAssessmentTask", - type: { - name: "Composite", - className: - "DefenderForContainersAwsOfferingContainerVulnerabilityAssessmentTask", + name: "Boolean", }, }, - enableContainerVulnerabilityAssessment: { - serializedName: "enableContainerVulnerabilityAssessment", + enableDefenderAgentAutoProvisioning: { + serializedName: "enableDefenderAgentAutoProvisioning", type: { name: "Boolean", }, }, - autoProvisioning: { - serializedName: "autoProvisioning", + enablePolicyAgentAutoProvisioning: { + serializedName: "enablePolicyAgentAutoProvisioning", type: { name: "Boolean", }, @@ -11762,8 +11810,8 @@ export const DefenderForContainersAwsOffering: coreClient.CompositeMapper = { name: "Number", }, }, - scubaExternalId: { - serializedName: "scubaExternalId", + dataCollectionExternalId: { + serializedName: "dataCollectionExternalId", type: { name: "String", }, @@ -11772,16 +11820,21 @@ export const DefenderForContainersAwsOffering: coreClient.CompositeMapper = { serializedName: "mdcContainersImageAssessment", type: { name: "Composite", - className: - "DefenderForContainersAwsOfferingMdcContainersImageAssessment", + className: "DefenderForContainersAwsOfferingMdcContainersImageAssessment", }, }, mdcContainersAgentlessDiscoveryK8S: { serializedName: "mdcContainersAgentlessDiscoveryK8s", type: { name: "Composite", - className: - "DefenderForContainersAwsOfferingMdcContainersAgentlessDiscoveryK8S", + className: "DefenderForContainersAwsOfferingMdcContainersAgentlessDiscoveryK8S", + }, + }, + vmScanners: { + serializedName: "vmScanners", + type: { + name: "Composite", + className: "DefenderForContainersAwsOfferingVmScanners", }, }, }, @@ -11877,26 +11930,6 @@ export const DefenderFoDatabasesAwsOffering: coreClient.CompositeMapper = { }, }; -export const InformationProtectionAwsOffering: coreClient.CompositeMapper = { - serializedName: "InformationProtectionAws", - type: { - name: "Composite", - className: "InformationProtectionAwsOffering", - uberParent: "CloudOffering", - polymorphicDiscriminator: CloudOffering.type.polymorphicDiscriminator, - modelProperties: { - ...CloudOffering.type.modelProperties, - informationProtection: { - serializedName: "informationProtection", - type: { - name: "Composite", - className: "InformationProtectionAwsOfferingInformationProtection", - }, - }, - }, - }, -}; - export const CspmMonitorGcpOffering: coreClient.CompositeMapper = { serializedName: "CspmMonitorGcp", type: { @@ -11992,8 +12025,7 @@ export const DefenderForDatabasesGcpOffering: coreClient.CompositeMapper = { serializedName: "defenderForDatabasesArcAutoProvisioning", type: { name: "Composite", - className: - "DefenderForDatabasesGcpOfferingDefenderForDatabasesArcAutoProvisioning", + className: "DefenderForDatabasesGcpOfferingDefenderForDatabasesArcAutoProvisioning", }, }, }, @@ -12020,24 +12052,23 @@ export const DefenderForContainersGcpOffering: coreClient.CompositeMapper = { serializedName: "dataPipelineNativeCloudConnection", type: { name: "Composite", - className: - "DefenderForContainersGcpOfferingDataPipelineNativeCloudConnection", + className: "DefenderForContainersGcpOfferingDataPipelineNativeCloudConnection", }, }, - auditLogsAutoProvisioningFlag: { - serializedName: "auditLogsAutoProvisioningFlag", + enableAuditLogsAutoProvisioning: { + serializedName: "enableAuditLogsAutoProvisioning", type: { name: "Boolean", }, }, - defenderAgentAutoProvisioningFlag: { - serializedName: "defenderAgentAutoProvisioningFlag", + enableDefenderAgentAutoProvisioning: { + serializedName: "enableDefenderAgentAutoProvisioning", type: { name: "Boolean", }, }, - policyAgentAutoProvisioningFlag: { - serializedName: "policyAgentAutoProvisioningFlag", + enablePolicyAgentAutoProvisioning: { + serializedName: "enablePolicyAgentAutoProvisioning", type: { name: "Boolean", }, @@ -12046,16 +12077,21 @@ export const DefenderForContainersGcpOffering: coreClient.CompositeMapper = { serializedName: "mdcContainersImageAssessment", type: { name: "Composite", - className: - "DefenderForContainersGcpOfferingMdcContainersImageAssessment", + className: "DefenderForContainersGcpOfferingMdcContainersImageAssessment", }, }, mdcContainersAgentlessDiscoveryK8S: { serializedName: "mdcContainersAgentlessDiscoveryK8s", type: { name: "Composite", - className: - "DefenderForContainersGcpOfferingMdcContainersAgentlessDiscoveryK8S", + className: "DefenderForContainersGcpOfferingMdcContainersAgentlessDiscoveryK8S", + }, + }, + vmScanners: { + serializedName: "vmScanners", + type: { + name: "Composite", + className: "DefenderForContainersGcpOfferingVmScanners", }, }, }, @@ -12136,8 +12172,7 @@ export const DefenderCspmAwsOffering: coreClient.CompositeMapper = { serializedName: "mdcContainersAgentlessDiscoveryK8s", type: { name: "Composite", - className: - "DefenderCspmAwsOfferingMdcContainersAgentlessDiscoveryK8S", + className: "DefenderCspmAwsOfferingMdcContainersAgentlessDiscoveryK8S", }, }, }, @@ -12185,19 +12220,18 @@ export const DefenderCspmGcpOffering: coreClient.CompositeMapper = { serializedName: "mdcContainersAgentlessDiscoveryK8s", type: { name: "Composite", - className: - "DefenderCspmGcpOfferingMdcContainersAgentlessDiscoveryK8S", + className: "DefenderCspmGcpOfferingMdcContainersAgentlessDiscoveryK8S", }, }, }, }, }; -export const DefenderForDevOpsGithubOffering: coreClient.CompositeMapper = { - serializedName: "DefenderForDevOpsGithub", +export const CspmMonitorGitLabOffering: coreClient.CompositeMapper = { + serializedName: "CspmMonitorGitLab", type: { name: "Composite", - className: "DefenderForDevOpsGithubOffering", + className: "CspmMonitorGitLabOffering", uberParent: "CloudOffering", polymorphicDiscriminator: CloudOffering.type.polymorphicDiscriminator, modelProperties: { @@ -12206,25 +12240,50 @@ export const DefenderForDevOpsGithubOffering: coreClient.CompositeMapper = { }, }; -export const DefenderForDevOpsAzureDevOpsOffering: coreClient.CompositeMapper = - { - serializedName: "DefenderForDevOpsAzureDevOps", - type: { - name: "Composite", - className: "DefenderForDevOpsAzureDevOpsOffering", - uberParent: "CloudOffering", - polymorphicDiscriminator: CloudOffering.type.polymorphicDiscriminator, - modelProperties: { - ...CloudOffering.type.modelProperties, - }, +export const CspmMonitorDockerHubOffering: coreClient.CompositeMapper = { + serializedName: "CspmMonitorDockerHub", + type: { + name: "Composite", + className: "CspmMonitorDockerHubOffering", + uberParent: "CloudOffering", + polymorphicDiscriminator: CloudOffering.type.polymorphicDiscriminator, + modelProperties: { + ...CloudOffering.type.modelProperties, }, - }; + }, +}; -export const CspmMonitorGitLabOffering: coreClient.CompositeMapper = { - serializedName: "CspmMonitorGitLab", +export const DefenderForContainersDockerHubOffering: coreClient.CompositeMapper = { + serializedName: "DefenderForContainersDockerHub", type: { name: "Composite", - className: "CspmMonitorGitLabOffering", + className: "DefenderForContainersDockerHubOffering", + uberParent: "CloudOffering", + polymorphicDiscriminator: CloudOffering.type.polymorphicDiscriminator, + modelProperties: { + ...CloudOffering.type.modelProperties, + }, + }, +}; + +export const DefenderCspmDockerHubOffering: coreClient.CompositeMapper = { + serializedName: "DefenderCspmDockerHub", + type: { + name: "Composite", + className: "DefenderCspmDockerHubOffering", + uberParent: "CloudOffering", + polymorphicDiscriminator: CloudOffering.type.polymorphicDiscriminator, + modelProperties: { + ...CloudOffering.type.modelProperties, + }, + }, +}; + +export const CspmMonitorJFrogOffering: coreClient.CompositeMapper = { + serializedName: "CspmMonitorJFrog", + type: { + name: "Composite", + className: "CspmMonitorJFrogOffering", uberParent: "CloudOffering", polymorphicDiscriminator: CloudOffering.type.polymorphicDiscriminator, modelProperties: { @@ -12233,11 +12292,11 @@ export const CspmMonitorGitLabOffering: coreClient.CompositeMapper = { }, }; -export const DefenderForDevOpsGitLabOffering: coreClient.CompositeMapper = { - serializedName: "DefenderForDevOpsGitLab", +export const DefenderForContainersJFrogOffering: coreClient.CompositeMapper = { + serializedName: "DefenderForContainersJFrog", type: { name: "Composite", - className: "DefenderForDevOpsGitLabOffering", + className: "DefenderForContainersJFrogOffering", uberParent: "CloudOffering", polymorphicDiscriminator: CloudOffering.type.polymorphicDiscriminator, modelProperties: { @@ -12246,6 +12305,26 @@ export const DefenderForDevOpsGitLabOffering: coreClient.CompositeMapper = { }, }; +export const DefenderCspmJFrogOffering: coreClient.CompositeMapper = { + serializedName: "DefenderCspmJFrog", + type: { + name: "Composite", + className: "DefenderCspmJFrogOffering", + uberParent: "CloudOffering", + polymorphicDiscriminator: CloudOffering.type.polymorphicDiscriminator, + modelProperties: { + ...CloudOffering.type.modelProperties, + mdcContainersImageAssessment: { + serializedName: "mdcContainersImageAssessment", + type: { + name: "Composite", + className: "DefenderCspmJFrogOfferingMdcContainersImageAssessment", + }, + }, + }, + }, +}; + export const AwsEnvironmentData: coreClient.CompositeMapper = { serializedName: "AwsAccount", type: { @@ -12362,6 +12441,55 @@ export const GitlabScopeEnvironmentData: coreClient.CompositeMapper = { }, }; +export const DockerHubEnvironmentData: coreClient.CompositeMapper = { + serializedName: "DockerHubOrganization", + type: { + name: "Composite", + className: "DockerHubEnvironmentData", + uberParent: "EnvironmentData", + polymorphicDiscriminator: EnvironmentData.type.polymorphicDiscriminator, + modelProperties: { + ...EnvironmentData.type.modelProperties, + authentication: { + serializedName: "authentication", + type: { + name: "Composite", + className: "Authentication", + }, + }, + scanInterval: { + serializedName: "scanInterval", + type: { + name: "Number", + }, + }, + }, + }, +}; + +export const JFrogEnvironmentData: coreClient.CompositeMapper = { + serializedName: "JFrogArtifactory", + type: { + name: "Composite", + className: "JFrogEnvironmentData", + uberParent: "EnvironmentData", + polymorphicDiscriminator: EnvironmentData.type.polymorphicDiscriminator, + modelProperties: { + ...EnvironmentData.type.modelProperties, + scanInterval: { + constraints: { + InclusiveMaximum: 24, + InclusiveMinimum: 1, + }, + serializedName: "scanInterval", + type: { + name: "Number", + }, + }, + }, + }, +}; + export const ThresholdCustomAlertRule: coreClient.CompositeMapper = { serializedName: "ThresholdCustomAlertRule", type: { @@ -12444,55 +12572,53 @@ export const UpdateIotSecuritySolutionData: coreClient.CompositeMapper = { }, }; -export const SecurityAssessmentMetadataPropertiesResponse: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "SecurityAssessmentMetadataPropertiesResponse", - modelProperties: { - ...SecurityAssessmentMetadataProperties.type.modelProperties, - publishDates: { - serializedName: "publishDates", - type: { - name: "Composite", - className: - "SecurityAssessmentMetadataPropertiesResponsePublishDates", - }, +export const SecurityAssessmentMetadataPropertiesResponse: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SecurityAssessmentMetadataPropertiesResponse", + modelProperties: { + ...SecurityAssessmentMetadataProperties.type.modelProperties, + publishDates: { + serializedName: "publishDates", + type: { + name: "Composite", + className: "SecurityAssessmentMetadataPropertiesResponsePublishDates", }, - plannedDeprecationDate: { - constraints: { - Pattern: new RegExp("^[0-9]{2}\\/[0-9]{4}$"), - }, - serializedName: "plannedDeprecationDate", - type: { - name: "String", - }, + }, + plannedDeprecationDate: { + constraints: { + Pattern: new RegExp("^[0-9]{2}\\/[0-9]{4}$"), }, - tactics: { - serializedName: "tactics", - type: { - name: "Sequence", - element: { - type: { - name: "String", - }, + serializedName: "plannedDeprecationDate", + type: { + name: "String", + }, + }, + tactics: { + serializedName: "tactics", + type: { + name: "Sequence", + element: { + type: { + name: "String", }, }, }, - techniques: { - serializedName: "techniques", - type: { - name: "Sequence", - element: { - type: { - name: "String", - }, + }, + techniques: { + serializedName: "techniques", + type: { + name: "Sequence", + element: { + type: { + name: "String", }, }, }, }, }, - }; + }, +}; export const AssessmentStatusResponse: coreClient.CompositeMapper = { type: { @@ -12518,23 +12644,22 @@ export const AssessmentStatusResponse: coreClient.CompositeMapper = { }, }; -export const SecurityAssessmentPropertiesResponse: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "SecurityAssessmentPropertiesResponse", - modelProperties: { - ...SecurityAssessmentPropertiesBase.type.modelProperties, - status: { - serializedName: "status", - type: { - name: "Composite", - className: "AssessmentStatusResponse", - }, +export const SecurityAssessmentPropertiesResponse: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "SecurityAssessmentPropertiesResponse", + modelProperties: { + ...SecurityAssessmentPropertiesBase.type.modelProperties, + status: { + serializedName: "status", + type: { + name: "Composite", + className: "AssessmentStatusResponse", }, }, }, - }; + }, +}; export const SecurityAssessmentProperties: coreClient.CompositeMapper = { type: { @@ -12591,9 +12716,7 @@ export const LogAnalyticsIdentifier: coreClient.CompositeMapper = { }, workspaceSubscriptionId: { constraints: { - Pattern: new RegExp( - "^[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}$", - ), + Pattern: new RegExp("^[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}$"), }, serializedName: "workspaceSubscriptionId", readOnly: true, @@ -12619,56 +12742,63 @@ export const LogAnalyticsIdentifier: coreClient.CompositeMapper = { }, }; -export const AlertSimulatorBundlesRequestProperties: coreClient.CompositeMapper = - { - serializedName: "Bundles", - type: { - name: "Composite", - className: "AlertSimulatorBundlesRequestProperties", - uberParent: "AlertSimulatorRequestProperties", - additionalProperties: { type: { name: "Object" } }, - polymorphicDiscriminator: - AlertSimulatorRequestProperties.type.polymorphicDiscriminator, - modelProperties: { - ...AlertSimulatorRequestProperties.type.modelProperties, - bundles: { - serializedName: "bundles", - type: { - name: "Sequence", - element: { - type: { - name: "String", - }, +export const AlertSimulatorBundlesRequestProperties: coreClient.CompositeMapper = { + serializedName: "Bundles", + type: { + name: "Composite", + className: "AlertSimulatorBundlesRequestProperties", + uberParent: "AlertSimulatorRequestProperties", + additionalProperties: { type: { name: "Object" } }, + polymorphicDiscriminator: AlertSimulatorRequestProperties.type.polymorphicDiscriminator, + modelProperties: { + ...AlertSimulatorRequestProperties.type.modelProperties, + bundles: { + serializedName: "bundles", + type: { + name: "Sequence", + element: { + type: { + name: "String", }, }, }, }, }, - }; + }, +}; -export const ServerVulnerabilityAssessmentsSetting: coreClient.CompositeMapper = - { - serializedName: "ServerVulnerabilityAssessmentsSetting", - type: { - name: "Composite", - className: "ServerVulnerabilityAssessmentsSetting", - uberParent: "ResourceAutoGenerated2", - polymorphicDiscriminator: { +export const ServerVulnerabilityAssessmentsSetting: coreClient.CompositeMapper = { + serializedName: "ServerVulnerabilityAssessmentsSetting", + type: { + name: "Composite", + className: "ServerVulnerabilityAssessmentsSetting", + uberParent: "ResourceAutoGenerated", + polymorphicDiscriminator: { + serializedName: "kind", + clientName: "kind", + }, + modelProperties: { + ...ResourceAutoGenerated.type.modelProperties, + kind: { serializedName: "kind", - clientName: "kind", - }, - modelProperties: { - ...ResourceAutoGenerated2.type.modelProperties, - kind: { - serializedName: "kind", - required: true, - type: { - name: "String", - }, + required: true, + type: { + name: "String", }, }, }, - }; + }, +}; + +export const ProxyResource: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ProxyResource", + modelProperties: { + ...ResourceAutoGenerated2.type.modelProperties, + }, + }, +}; export const AwsOrganizationalDataMaster: coreClient.CompositeMapper = { serializedName: "Organization", @@ -12676,8 +12806,7 @@ export const AwsOrganizationalDataMaster: coreClient.CompositeMapper = { name: "Composite", className: "AwsOrganizationalDataMaster", uberParent: "AwsOrganizationalData", - polymorphicDiscriminator: - AwsOrganizationalData.type.polymorphicDiscriminator, + polymorphicDiscriminator: AwsOrganizationalData.type.polymorphicDiscriminator, modelProperties: { ...AwsOrganizationalData.type.modelProperties, stacksetName: { @@ -12707,8 +12836,7 @@ export const AwsOrganizationalDataMember: coreClient.CompositeMapper = { name: "Composite", className: "AwsOrganizationalDataMember", uberParent: "AwsOrganizationalData", - polymorphicDiscriminator: - AwsOrganizationalData.type.polymorphicDiscriminator, + polymorphicDiscriminator: AwsOrganizationalData.type.polymorphicDiscriminator, modelProperties: { ...AwsOrganizationalData.type.modelProperties, parentHierarchyId: { @@ -12727,8 +12855,7 @@ export const GcpOrganizationalDataOrganization: coreClient.CompositeMapper = { name: "Composite", className: "GcpOrganizationalDataOrganization", uberParent: "GcpOrganizationalData", - polymorphicDiscriminator: - GcpOrganizationalData.type.polymorphicDiscriminator, + polymorphicDiscriminator: GcpOrganizationalData.type.polymorphicDiscriminator, modelProperties: { ...GcpOrganizationalData.type.modelProperties, excludedProjectNumbers: { @@ -12771,8 +12898,7 @@ export const GcpOrganizationalDataMember: coreClient.CompositeMapper = { name: "Composite", className: "GcpOrganizationalDataMember", uberParent: "GcpOrganizationalData", - polymorphicDiscriminator: - GcpOrganizationalData.type.polymorphicDiscriminator, + polymorphicDiscriminator: GcpOrganizationalData.type.polymorphicDiscriminator, modelProperties: { ...GcpOrganizationalData.type.modelProperties, parentHierarchyId: { @@ -12791,6 +12917,83 @@ export const GcpOrganizationalDataMember: coreClient.CompositeMapper = { }, }; +export const AccessTokenAuthentication: coreClient.CompositeMapper = { + serializedName: "AccessToken", + type: { + name: "Composite", + className: "AccessTokenAuthentication", + uberParent: "Authentication", + polymorphicDiscriminator: Authentication.type.polymorphicDiscriminator, + modelProperties: { + ...Authentication.type.modelProperties, + username: { + serializedName: "username", + type: { + name: "String", + }, + }, + accessToken: { + serializedName: "accessToken", + type: { + name: "String", + }, + }, + }, + }, +}; + +export const VmScannersAws: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "VmScannersAws", + modelProperties: { + ...VmScannersBase.type.modelProperties, + cloudRoleArn: { + serializedName: "cloudRoleArn", + type: { + name: "String", + }, + }, + }, + }, +}; + +export const VmScannersGcp: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "VmScannersGcp", + modelProperties: { + ...VmScannersBase.type.modelProperties, + }, + }, +}; + +export const ArcAutoProvisioningAws: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ArcAutoProvisioningAws", + modelProperties: { + ...ArcAutoProvisioning.type.modelProperties, + cloudRoleArn: { + serializedName: "cloudRoleArn", + type: { + name: "String", + }, + }, + }, + }, +}; + +export const ArcAutoProvisioningGcp: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "ArcAutoProvisioningGcp", + modelProperties: { + ...ArcAutoProvisioning.type.modelProperties, + }, + }, +}; + export const CefSolutionProperties: coreClient.CompositeMapper = { type: { name: "Composite", @@ -12968,8 +13171,7 @@ export const CefExternalSecuritySolution: coreClient.CompositeMapper = { name: "Composite", className: "CefExternalSecuritySolution", uberParent: "ExternalSecuritySolution", - polymorphicDiscriminator: - ExternalSecuritySolution.type.polymorphicDiscriminator, + polymorphicDiscriminator: ExternalSecuritySolution.type.polymorphicDiscriminator, modelProperties: { ...ExternalSecuritySolution.type.modelProperties, properties: { @@ -12989,8 +13191,7 @@ export const AtaExternalSecuritySolution: coreClient.CompositeMapper = { name: "Composite", className: "AtaExternalSecuritySolution", uberParent: "ExternalSecuritySolution", - polymorphicDiscriminator: - ExternalSecuritySolution.type.polymorphicDiscriminator, + polymorphicDiscriminator: ExternalSecuritySolution.type.polymorphicDiscriminator, modelProperties: { ...ExternalSecuritySolution.type.modelProperties, properties: { @@ -13010,8 +13211,7 @@ export const AadExternalSecuritySolution: coreClient.CompositeMapper = { name: "Composite", className: "AadExternalSecuritySolution", uberParent: "ExternalSecuritySolution", - polymorphicDiscriminator: - ExternalSecuritySolution.type.polymorphicDiscriminator, + polymorphicDiscriminator: ExternalSecuritySolution.type.polymorphicDiscriminator, modelProperties: { ...ExternalSecuritySolution.type.modelProperties, properties: { @@ -13063,26 +13263,120 @@ export const AlertSyncSettings: coreClient.CompositeMapper = { }, }; -export const OnPremiseSqlResourceDetails: coreClient.CompositeMapper = { - serializedName: "OnPremiseSql", +export const OnPremiseSqlResourceDetails: coreClient.CompositeMapper = { + serializedName: "OnPremiseSql", + type: { + name: "Composite", + className: "OnPremiseSqlResourceDetails", + uberParent: "OnPremiseResourceDetails", + polymorphicDiscriminator: OnPremiseResourceDetails.type.polymorphicDiscriminator, + modelProperties: { + ...OnPremiseResourceDetails.type.modelProperties, + serverName: { + serializedName: "serverName", + required: true, + type: { + name: "String", + }, + }, + databaseName: { + serializedName: "databaseName", + required: true, + type: { + name: "String", + }, + }, + }, + }, +}; + +export const TimeWindowCustomAlertRule: coreClient.CompositeMapper = { + serializedName: "TimeWindowCustomAlertRule", + type: { + name: "Composite", + className: "TimeWindowCustomAlertRule", + uberParent: "ThresholdCustomAlertRule", + polymorphicDiscriminator: { + serializedName: "ruleType", + clientName: "ruleType", + }, + modelProperties: { + ...ThresholdCustomAlertRule.type.modelProperties, + timeWindowSize: { + serializedName: "timeWindowSize", + required: true, + type: { + name: "TimeSpan", + }, + }, + }, + }, +}; + +export const AllowlistCustomAlertRule: coreClient.CompositeMapper = { + serializedName: "AllowlistCustomAlertRule", + type: { + name: "Composite", + className: "AllowlistCustomAlertRule", + uberParent: "ListCustomAlertRule", + polymorphicDiscriminator: { + serializedName: "ruleType", + clientName: "ruleType", + }, + modelProperties: { + ...ListCustomAlertRule.type.modelProperties, + allowlistValues: { + serializedName: "allowlistValues", + required: true, + type: { + name: "Sequence", + element: { + type: { + name: "String", + }, + }, + }, + }, + }, + }, +}; + +export const DenylistCustomAlertRule: coreClient.CompositeMapper = { + serializedName: "DenylistCustomAlertRule", type: { name: "Composite", - className: "OnPremiseSqlResourceDetails", - uberParent: "OnPremiseResourceDetails", - polymorphicDiscriminator: - OnPremiseResourceDetails.type.polymorphicDiscriminator, + className: "DenylistCustomAlertRule", + uberParent: "ListCustomAlertRule", + polymorphicDiscriminator: ListCustomAlertRule.type.polymorphicDiscriminator, modelProperties: { - ...OnPremiseResourceDetails.type.modelProperties, - serverName: { - serializedName: "serverName", + ...ListCustomAlertRule.type.modelProperties, + denylistValues: { + serializedName: "denylistValues", required: true, type: { - name: "String", + name: "Sequence", + element: { + type: { + name: "String", + }, + }, }, }, - databaseName: { - serializedName: "databaseName", - required: true, + }, + }, +}; + +export const AzureServersSetting: coreClient.CompositeMapper = { + serializedName: "AzureServersSetting", + type: { + name: "Composite", + className: "AzureServersSetting", + uberParent: "ServerVulnerabilityAssessmentsSetting", + polymorphicDiscriminator: ServerVulnerabilityAssessmentsSetting.type.polymorphicDiscriminator, + modelProperties: { + ...ServerVulnerabilityAssessmentsSetting.type.modelProperties, + selectedProvider: { + serializedName: "properties.selectedProvider", type: { name: "String", }, @@ -13283,98 +13577,102 @@ export const GitLabProject: coreClient.CompositeMapper = { }, }; -export const TimeWindowCustomAlertRule: coreClient.CompositeMapper = { - serializedName: "TimeWindowCustomAlertRule", +export const DefenderForContainersAwsOfferingVmScanners: coreClient.CompositeMapper = { type: { name: "Composite", - className: "TimeWindowCustomAlertRule", - uberParent: "ThresholdCustomAlertRule", - polymorphicDiscriminator: { - serializedName: "ruleType", - clientName: "ruleType", + className: "DefenderForContainersAwsOfferingVmScanners", + modelProperties: { + ...VmScannersAws.type.modelProperties, }, + }, +}; + +export const DefenderForServersAwsOfferingVmScanners: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DefenderForServersAwsOfferingVmScanners", modelProperties: { - ...ThresholdCustomAlertRule.type.modelProperties, - timeWindowSize: { - serializedName: "timeWindowSize", - required: true, - type: { - name: "TimeSpan", - }, - }, + ...VmScannersAws.type.modelProperties, }, }, }; -export const AllowlistCustomAlertRule: coreClient.CompositeMapper = { - serializedName: "AllowlistCustomAlertRule", +export const DefenderCspmAwsOfferingVmScanners: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AllowlistCustomAlertRule", - uberParent: "ListCustomAlertRule", - polymorphicDiscriminator: { - serializedName: "ruleType", - clientName: "ruleType", + className: "DefenderCspmAwsOfferingVmScanners", + modelProperties: { + ...VmScannersAws.type.modelProperties, }, + }, +}; + +export const DefenderForServersGcpOfferingVmScanners: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DefenderForServersGcpOfferingVmScanners", modelProperties: { - ...ListCustomAlertRule.type.modelProperties, - allowlistValues: { - serializedName: "allowlistValues", - required: true, - type: { - name: "Sequence", - element: { - type: { - name: "String", - }, - }, - }, - }, + ...VmScannersGcp.type.modelProperties, }, }, }; -export const DenylistCustomAlertRule: coreClient.CompositeMapper = { - serializedName: "DenylistCustomAlertRule", +export const DefenderForContainersGcpOfferingVmScanners: coreClient.CompositeMapper = { type: { name: "Composite", - className: "DenylistCustomAlertRule", - uberParent: "ListCustomAlertRule", - polymorphicDiscriminator: ListCustomAlertRule.type.polymorphicDiscriminator, + className: "DefenderForContainersGcpOfferingVmScanners", modelProperties: { - ...ListCustomAlertRule.type.modelProperties, - denylistValues: { - serializedName: "denylistValues", - required: true, - type: { - name: "Sequence", - element: { - type: { - name: "String", - }, - }, - }, - }, + ...VmScannersGcp.type.modelProperties, }, }, }; -export const AzureServersSetting: coreClient.CompositeMapper = { - serializedName: "AzureServersSetting", +export const DefenderCspmGcpOfferingVmScanners: coreClient.CompositeMapper = { type: { name: "Composite", - className: "AzureServersSetting", - uberParent: "ServerVulnerabilityAssessmentsSetting", - polymorphicDiscriminator: - ServerVulnerabilityAssessmentsSetting.type.polymorphicDiscriminator, + className: "DefenderCspmGcpOfferingVmScanners", modelProperties: { - ...ServerVulnerabilityAssessmentsSetting.type.modelProperties, - selectedProvider: { - serializedName: "properties.selectedProvider", - type: { - name: "String", - }, - }, + ...VmScannersGcp.type.modelProperties, + }, + }, +}; + +export const DefenderForServersAwsOfferingArcAutoProvisioning: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DefenderForServersAwsOfferingArcAutoProvisioning", + modelProperties: { + ...ArcAutoProvisioningAws.type.modelProperties, + }, + }, +}; + +export const DefenderFoDatabasesAwsOfferingArcAutoProvisioning: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DefenderFoDatabasesAwsOfferingArcAutoProvisioning", + modelProperties: { + ...ArcAutoProvisioningAws.type.modelProperties, + }, + }, +}; + +export const DefenderForServersGcpOfferingArcAutoProvisioning: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DefenderForServersGcpOfferingArcAutoProvisioning", + modelProperties: { + ...ArcAutoProvisioningGcp.type.modelProperties, + }, + }, +}; + +export const DefenderForDatabasesGcpOfferingArcAutoProvisioning: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "DefenderForDatabasesGcpOfferingArcAutoProvisioning", + modelProperties: { + ...ArcAutoProvisioningGcp.type.modelProperties, }, }, }; @@ -13385,8 +13683,7 @@ export const ActiveConnectionsNotInAllowedRange: coreClient.CompositeMapper = { name: "Composite", className: "ActiveConnectionsNotInAllowedRange", uberParent: "TimeWindowCustomAlertRule", - polymorphicDiscriminator: - TimeWindowCustomAlertRule.type.polymorphicDiscriminator, + polymorphicDiscriminator: TimeWindowCustomAlertRule.type.polymorphicDiscriminator, modelProperties: { ...TimeWindowCustomAlertRule.type.modelProperties, }, @@ -13399,8 +13696,7 @@ export const AmqpC2DMessagesNotInAllowedRange: coreClient.CompositeMapper = { name: "Composite", className: "AmqpC2DMessagesNotInAllowedRange", uberParent: "TimeWindowCustomAlertRule", - polymorphicDiscriminator: - TimeWindowCustomAlertRule.type.polymorphicDiscriminator, + polymorphicDiscriminator: TimeWindowCustomAlertRule.type.polymorphicDiscriminator, modelProperties: { ...TimeWindowCustomAlertRule.type.modelProperties, }, @@ -13413,8 +13709,7 @@ export const MqttC2DMessagesNotInAllowedRange: coreClient.CompositeMapper = { name: "Composite", className: "MqttC2DMessagesNotInAllowedRange", uberParent: "TimeWindowCustomAlertRule", - polymorphicDiscriminator: - TimeWindowCustomAlertRule.type.polymorphicDiscriminator, + polymorphicDiscriminator: TimeWindowCustomAlertRule.type.polymorphicDiscriminator, modelProperties: { ...TimeWindowCustomAlertRule.type.modelProperties, }, @@ -13427,58 +13722,51 @@ export const HttpC2DMessagesNotInAllowedRange: coreClient.CompositeMapper = { name: "Composite", className: "HttpC2DMessagesNotInAllowedRange", uberParent: "TimeWindowCustomAlertRule", - polymorphicDiscriminator: - TimeWindowCustomAlertRule.type.polymorphicDiscriminator, + polymorphicDiscriminator: TimeWindowCustomAlertRule.type.polymorphicDiscriminator, modelProperties: { ...TimeWindowCustomAlertRule.type.modelProperties, }, }, }; -export const AmqpC2DRejectedMessagesNotInAllowedRange: coreClient.CompositeMapper = - { - serializedName: "AmqpC2DRejectedMessagesNotInAllowedRange", - type: { - name: "Composite", - className: "AmqpC2DRejectedMessagesNotInAllowedRange", - uberParent: "TimeWindowCustomAlertRule", - polymorphicDiscriminator: - TimeWindowCustomAlertRule.type.polymorphicDiscriminator, - modelProperties: { - ...TimeWindowCustomAlertRule.type.modelProperties, - }, +export const AmqpC2DRejectedMessagesNotInAllowedRange: coreClient.CompositeMapper = { + serializedName: "AmqpC2DRejectedMessagesNotInAllowedRange", + type: { + name: "Composite", + className: "AmqpC2DRejectedMessagesNotInAllowedRange", + uberParent: "TimeWindowCustomAlertRule", + polymorphicDiscriminator: TimeWindowCustomAlertRule.type.polymorphicDiscriminator, + modelProperties: { + ...TimeWindowCustomAlertRule.type.modelProperties, }, - }; + }, +}; -export const MqttC2DRejectedMessagesNotInAllowedRange: coreClient.CompositeMapper = - { - serializedName: "MqttC2DRejectedMessagesNotInAllowedRange", - type: { - name: "Composite", - className: "MqttC2DRejectedMessagesNotInAllowedRange", - uberParent: "TimeWindowCustomAlertRule", - polymorphicDiscriminator: - TimeWindowCustomAlertRule.type.polymorphicDiscriminator, - modelProperties: { - ...TimeWindowCustomAlertRule.type.modelProperties, - }, +export const MqttC2DRejectedMessagesNotInAllowedRange: coreClient.CompositeMapper = { + serializedName: "MqttC2DRejectedMessagesNotInAllowedRange", + type: { + name: "Composite", + className: "MqttC2DRejectedMessagesNotInAllowedRange", + uberParent: "TimeWindowCustomAlertRule", + polymorphicDiscriminator: TimeWindowCustomAlertRule.type.polymorphicDiscriminator, + modelProperties: { + ...TimeWindowCustomAlertRule.type.modelProperties, }, - }; + }, +}; -export const HttpC2DRejectedMessagesNotInAllowedRange: coreClient.CompositeMapper = - { - serializedName: "HttpC2DRejectedMessagesNotInAllowedRange", - type: { - name: "Composite", - className: "HttpC2DRejectedMessagesNotInAllowedRange", - uberParent: "TimeWindowCustomAlertRule", - polymorphicDiscriminator: - TimeWindowCustomAlertRule.type.polymorphicDiscriminator, - modelProperties: { - ...TimeWindowCustomAlertRule.type.modelProperties, - }, +export const HttpC2DRejectedMessagesNotInAllowedRange: coreClient.CompositeMapper = { + serializedName: "HttpC2DRejectedMessagesNotInAllowedRange", + type: { + name: "Composite", + className: "HttpC2DRejectedMessagesNotInAllowedRange", + uberParent: "TimeWindowCustomAlertRule", + polymorphicDiscriminator: TimeWindowCustomAlertRule.type.polymorphicDiscriminator, + modelProperties: { + ...TimeWindowCustomAlertRule.type.modelProperties, }, - }; + }, +}; export const AmqpD2CMessagesNotInAllowedRange: coreClient.CompositeMapper = { serializedName: "AmqpD2CMessagesNotInAllowedRange", @@ -13486,8 +13774,7 @@ export const AmqpD2CMessagesNotInAllowedRange: coreClient.CompositeMapper = { name: "Composite", className: "AmqpD2CMessagesNotInAllowedRange", uberParent: "TimeWindowCustomAlertRule", - polymorphicDiscriminator: - TimeWindowCustomAlertRule.type.polymorphicDiscriminator, + polymorphicDiscriminator: TimeWindowCustomAlertRule.type.polymorphicDiscriminator, modelProperties: { ...TimeWindowCustomAlertRule.type.modelProperties, }, @@ -13500,8 +13787,7 @@ export const MqttD2CMessagesNotInAllowedRange: coreClient.CompositeMapper = { name: "Composite", className: "MqttD2CMessagesNotInAllowedRange", uberParent: "TimeWindowCustomAlertRule", - polymorphicDiscriminator: - TimeWindowCustomAlertRule.type.polymorphicDiscriminator, + polymorphicDiscriminator: TimeWindowCustomAlertRule.type.polymorphicDiscriminator, modelProperties: { ...TimeWindowCustomAlertRule.type.modelProperties, }, @@ -13514,28 +13800,25 @@ export const HttpD2CMessagesNotInAllowedRange: coreClient.CompositeMapper = { name: "Composite", className: "HttpD2CMessagesNotInAllowedRange", uberParent: "TimeWindowCustomAlertRule", - polymorphicDiscriminator: - TimeWindowCustomAlertRule.type.polymorphicDiscriminator, + polymorphicDiscriminator: TimeWindowCustomAlertRule.type.polymorphicDiscriminator, modelProperties: { ...TimeWindowCustomAlertRule.type.modelProperties, }, }, }; -export const DirectMethodInvokesNotInAllowedRange: coreClient.CompositeMapper = - { - serializedName: "DirectMethodInvokesNotInAllowedRange", - type: { - name: "Composite", - className: "DirectMethodInvokesNotInAllowedRange", - uberParent: "TimeWindowCustomAlertRule", - polymorphicDiscriminator: - TimeWindowCustomAlertRule.type.polymorphicDiscriminator, - modelProperties: { - ...TimeWindowCustomAlertRule.type.modelProperties, - }, +export const DirectMethodInvokesNotInAllowedRange: coreClient.CompositeMapper = { + serializedName: "DirectMethodInvokesNotInAllowedRange", + type: { + name: "Composite", + className: "DirectMethodInvokesNotInAllowedRange", + uberParent: "TimeWindowCustomAlertRule", + polymorphicDiscriminator: TimeWindowCustomAlertRule.type.polymorphicDiscriminator, + modelProperties: { + ...TimeWindowCustomAlertRule.type.modelProperties, }, - }; + }, +}; export const FailedLocalLoginsNotInAllowedRange: coreClient.CompositeMapper = { serializedName: "FailedLocalLoginsNotInAllowedRange", @@ -13543,8 +13826,7 @@ export const FailedLocalLoginsNotInAllowedRange: coreClient.CompositeMapper = { name: "Composite", className: "FailedLocalLoginsNotInAllowedRange", uberParent: "TimeWindowCustomAlertRule", - polymorphicDiscriminator: - TimeWindowCustomAlertRule.type.polymorphicDiscriminator, + polymorphicDiscriminator: TimeWindowCustomAlertRule.type.polymorphicDiscriminator, modelProperties: { ...TimeWindowCustomAlertRule.type.modelProperties, }, @@ -13557,8 +13839,7 @@ export const FileUploadsNotInAllowedRange: coreClient.CompositeMapper = { name: "Composite", className: "FileUploadsNotInAllowedRange", uberParent: "TimeWindowCustomAlertRule", - polymorphicDiscriminator: - TimeWindowCustomAlertRule.type.polymorphicDiscriminator, + polymorphicDiscriminator: TimeWindowCustomAlertRule.type.polymorphicDiscriminator, modelProperties: { ...TimeWindowCustomAlertRule.type.modelProperties, }, @@ -13571,8 +13852,7 @@ export const QueuePurgesNotInAllowedRange: coreClient.CompositeMapper = { name: "Composite", className: "QueuePurgesNotInAllowedRange", uberParent: "TimeWindowCustomAlertRule", - polymorphicDiscriminator: - TimeWindowCustomAlertRule.type.polymorphicDiscriminator, + polymorphicDiscriminator: TimeWindowCustomAlertRule.type.polymorphicDiscriminator, modelProperties: { ...TimeWindowCustomAlertRule.type.modelProperties, }, @@ -13585,28 +13865,25 @@ export const TwinUpdatesNotInAllowedRange: coreClient.CompositeMapper = { name: "Composite", className: "TwinUpdatesNotInAllowedRange", uberParent: "TimeWindowCustomAlertRule", - polymorphicDiscriminator: - TimeWindowCustomAlertRule.type.polymorphicDiscriminator, + polymorphicDiscriminator: TimeWindowCustomAlertRule.type.polymorphicDiscriminator, modelProperties: { ...TimeWindowCustomAlertRule.type.modelProperties, }, }, }; -export const UnauthorizedOperationsNotInAllowedRange: coreClient.CompositeMapper = - { - serializedName: "UnauthorizedOperationsNotInAllowedRange", - type: { - name: "Composite", - className: "UnauthorizedOperationsNotInAllowedRange", - uberParent: "TimeWindowCustomAlertRule", - polymorphicDiscriminator: - TimeWindowCustomAlertRule.type.polymorphicDiscriminator, - modelProperties: { - ...TimeWindowCustomAlertRule.type.modelProperties, - }, +export const UnauthorizedOperationsNotInAllowedRange: coreClient.CompositeMapper = { + serializedName: "UnauthorizedOperationsNotInAllowedRange", + type: { + name: "Composite", + className: "UnauthorizedOperationsNotInAllowedRange", + uberParent: "TimeWindowCustomAlertRule", + polymorphicDiscriminator: TimeWindowCustomAlertRule.type.polymorphicDiscriminator, + modelProperties: { + ...TimeWindowCustomAlertRule.type.modelProperties, }, - }; + }, +}; export const ConnectionToIpNotAllowed: coreClient.CompositeMapper = { serializedName: "ConnectionToIpNotAllowed", @@ -13614,8 +13891,7 @@ export const ConnectionToIpNotAllowed: coreClient.CompositeMapper = { name: "Composite", className: "ConnectionToIpNotAllowed", uberParent: "AllowlistCustomAlertRule", - polymorphicDiscriminator: - AllowlistCustomAlertRule.type.polymorphicDiscriminator, + polymorphicDiscriminator: AllowlistCustomAlertRule.type.polymorphicDiscriminator, modelProperties: { ...AllowlistCustomAlertRule.type.modelProperties, }, @@ -13628,8 +13904,7 @@ export const ConnectionFromIpNotAllowed: coreClient.CompositeMapper = { name: "Composite", className: "ConnectionFromIpNotAllowed", uberParent: "AllowlistCustomAlertRule", - polymorphicDiscriminator: - AllowlistCustomAlertRule.type.polymorphicDiscriminator, + polymorphicDiscriminator: AllowlistCustomAlertRule.type.polymorphicDiscriminator, modelProperties: { ...AllowlistCustomAlertRule.type.modelProperties, }, @@ -13642,8 +13917,7 @@ export const LocalUserNotAllowed: coreClient.CompositeMapper = { name: "Composite", className: "LocalUserNotAllowed", uberParent: "AllowlistCustomAlertRule", - polymorphicDiscriminator: - AllowlistCustomAlertRule.type.polymorphicDiscriminator, + polymorphicDiscriminator: AllowlistCustomAlertRule.type.polymorphicDiscriminator, modelProperties: { ...AllowlistCustomAlertRule.type.modelProperties, }, @@ -13656,8 +13930,7 @@ export const ProcessNotAllowed: coreClient.CompositeMapper = { name: "Composite", className: "ProcessNotAllowed", uberParent: "AllowlistCustomAlertRule", - polymorphicDiscriminator: - AllowlistCustomAlertRule.type.polymorphicDiscriminator, + polymorphicDiscriminator: AllowlistCustomAlertRule.type.polymorphicDiscriminator, modelProperties: { ...AllowlistCustomAlertRule.type.modelProperties, }, @@ -13694,43 +13967,41 @@ export const GovernanceRulesExecuteHeaders: coreClient.CompositeMapper = { }, }; -export const GovernanceRulesOperationResultsHeaders: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "GovernanceRulesOperationResultsHeaders", - modelProperties: { - location: { - serializedName: "location", - type: { - name: "String", - }, +export const GovernanceRulesOperationResultsHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "GovernanceRulesOperationResultsHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String", }, }, }, - }; + }, +}; -export const APICollectionsOnboardAzureApiManagementApiHeaders: coreClient.CompositeMapper = - { - type: { - name: "Composite", - className: "APICollectionsOnboardAzureApiManagementApiHeaders", - modelProperties: { - location: { - serializedName: "location", - type: { - name: "String", - }, +export const APICollectionsOnboardAzureApiManagementApiHeaders: coreClient.CompositeMapper = { + type: { + name: "Composite", + className: "APICollectionsOnboardAzureApiManagementApiHeaders", + modelProperties: { + location: { + serializedName: "location", + type: { + name: "String", }, }, }, - }; + }, +}; export let discriminators = { - AutomationAction: AutomationAction, ResourceDetails: ResourceDetails, AdditionalData: AdditionalData, AuthenticationDetailsProperties: AuthenticationDetailsProperties, + AutomationAction: AutomationAction, NotificationsSource: NotificationsSource, CloudOffering: CloudOffering, EnvironmentData: EnvironmentData, @@ -13739,29 +14010,25 @@ export let discriminators = { AlertSimulatorRequestProperties: AlertSimulatorRequestProperties, AwsOrganizationalData: AwsOrganizationalData, GcpOrganizationalData: GcpOrganizationalData, + Authentication: Authentication, "Resource.Setting": Setting, - "AutomationAction.LogicApp": AutomationActionLogicApp, - "AutomationAction.EventHub": AutomationActionEventHub, - "AutomationAction.Workspace": AutomationActionWorkspace, "ResourceDetails.Azure": AzureResourceDetails, "ResourceDetails.OnPremise": OnPremiseResourceDetails, "AdditionalData.SqlServerVulnerability": SqlServerVulnerabilityProperties, - "AdditionalData.ContainerRegistryVulnerability": - ContainerRegistryVulnerabilityProperties, + "AdditionalData.ContainerRegistryVulnerability": ContainerRegistryVulnerabilityProperties, "AdditionalData.ServerVulnerabilityAssessment": ServerVulnerabilityProperties, - "AuthenticationDetailsProperties.awsCreds": - AwsCredsAuthenticationDetailsProperties, - "AuthenticationDetailsProperties.awsAssumeRole": - AwAssumeRoleAuthenticationDetailsProperties, - "AuthenticationDetailsProperties.gcpCredentials": - GcpCredentialsDetailsProperties, + "AuthenticationDetailsProperties.awsCreds": AwsCredsAuthenticationDetailsProperties, + "AuthenticationDetailsProperties.awsAssumeRole": AwAssumeRoleAuthenticationDetailsProperties, + "AuthenticationDetailsProperties.gcpCredentials": GcpCredentialsDetailsProperties, + "AutomationAction.LogicApp": AutomationActionLogicApp, + "AutomationAction.EventHub": AutomationActionEventHub, + "AutomationAction.Workspace": AutomationActionWorkspace, "NotificationsSource.Alert": NotificationsSourceAlert, "NotificationsSource.AttackPath": NotificationsSourceAttackPath, "CloudOffering.CspmMonitorAws": CspmMonitorAwsOffering, "CloudOffering.DefenderForContainersAws": DefenderForContainersAwsOffering, "CloudOffering.DefenderForServersAws": DefenderForServersAwsOffering, "CloudOffering.DefenderForDatabasesAws": DefenderFoDatabasesAwsOffering, - "CloudOffering.InformationProtectionAws": InformationProtectionAwsOffering, "CloudOffering.CspmMonitorGcp": CspmMonitorGcpOffering, "CloudOffering.DefenderForServersGcp": DefenderForServersGcpOffering, "CloudOffering.DefenderForDatabasesGcp": DefenderForDatabasesGcpOffering, @@ -13770,75 +14037,67 @@ export let discriminators = { "CloudOffering.CspmMonitorAzureDevOps": CspmMonitorAzureDevOpsOffering, "CloudOffering.DefenderCspmAws": DefenderCspmAwsOffering, "CloudOffering.DefenderCspmGcp": DefenderCspmGcpOffering, - "CloudOffering.DefenderForDevOpsGithub": DefenderForDevOpsGithubOffering, - "CloudOffering.DefenderForDevOpsAzureDevOps": - DefenderForDevOpsAzureDevOpsOffering, "CloudOffering.CspmMonitorGitLab": CspmMonitorGitLabOffering, - "CloudOffering.DefenderForDevOpsGitLab": DefenderForDevOpsGitLabOffering, + "CloudOffering.CspmMonitorDockerHub": CspmMonitorDockerHubOffering, + "CloudOffering.DefenderForContainersDockerHub": DefenderForContainersDockerHubOffering, + "CloudOffering.DefenderCspmDockerHub": DefenderCspmDockerHubOffering, + "CloudOffering.CspmMonitorJFrog": CspmMonitorJFrogOffering, + "CloudOffering.DefenderForContainersJFrog": DefenderForContainersJFrogOffering, + "CloudOffering.DefenderCspmJFrog": DefenderCspmJFrogOffering, "EnvironmentData.AwsAccount": AwsEnvironmentData, "EnvironmentData.GcpProject": GcpProjectEnvironmentData, "EnvironmentData.GithubScope": GithubScopeEnvironmentData, "EnvironmentData.AzureDevOpsScope": AzureDevOpsScopeEnvironmentData, "EnvironmentData.GitlabScope": GitlabScopeEnvironmentData, + "EnvironmentData.DockerHubOrganization": DockerHubEnvironmentData, + "EnvironmentData.JFrogArtifactory": JFrogEnvironmentData, "CustomAlertRule.ThresholdCustomAlertRule": ThresholdCustomAlertRule, "CustomAlertRule.ListCustomAlertRule": ListCustomAlertRule, "ResourceIdentifier.AzureResource": AzureResourceIdentifier, "ResourceIdentifier.LogAnalytics": LogAnalyticsIdentifier, - "AlertSimulatorRequestProperties.Bundles": - AlertSimulatorBundlesRequestProperties, - "ResourceAutoGenerated2.ServerVulnerabilityAssessmentsSetting": + "AlertSimulatorRequestProperties.Bundles": AlertSimulatorBundlesRequestProperties, + "ResourceAutoGenerated.ServerVulnerabilityAssessmentsSetting": ServerVulnerabilityAssessmentsSetting, "AwsOrganizationalData.Organization": AwsOrganizationalDataMaster, "AwsOrganizationalData.Member": AwsOrganizationalDataMember, "GcpOrganizationalData.Organization": GcpOrganizationalDataOrganization, "GcpOrganizationalData.Member": GcpOrganizationalDataMember, + "Authentication.AccessToken": AccessTokenAuthentication, "ExternalSecuritySolution.CEF": CefExternalSecuritySolution, "ExternalSecuritySolution.ATA": AtaExternalSecuritySolution, "ExternalSecuritySolution.AAD": AadExternalSecuritySolution, "Setting.DataExportSettings": DataExportSettings, "Setting.AlertSyncSettings": AlertSyncSettings, "OnPremiseResourceDetails.OnPremiseSql": OnPremiseSqlResourceDetails, - "ThresholdCustomAlertRule.TimeWindowCustomAlertRule": - TimeWindowCustomAlertRule, + "ThresholdCustomAlertRule.TimeWindowCustomAlertRule": TimeWindowCustomAlertRule, "ListCustomAlertRule.AllowlistCustomAlertRule": AllowlistCustomAlertRule, "ListCustomAlertRule.DenylistCustomAlertRule": DenylistCustomAlertRule, - "ServerVulnerabilityAssessmentsSetting.AzureServersSetting": - AzureServersSetting, + "ServerVulnerabilityAssessmentsSetting.AzureServersSetting": AzureServersSetting, "TimeWindowCustomAlertRule.ActiveConnectionsNotInAllowedRange": ActiveConnectionsNotInAllowedRange, - "TimeWindowCustomAlertRule.AmqpC2DMessagesNotInAllowedRange": - AmqpC2DMessagesNotInAllowedRange, - "TimeWindowCustomAlertRule.MqttC2DMessagesNotInAllowedRange": - MqttC2DMessagesNotInAllowedRange, - "TimeWindowCustomAlertRule.HttpC2DMessagesNotInAllowedRange": - HttpC2DMessagesNotInAllowedRange, + "TimeWindowCustomAlertRule.AmqpC2DMessagesNotInAllowedRange": AmqpC2DMessagesNotInAllowedRange, + "TimeWindowCustomAlertRule.MqttC2DMessagesNotInAllowedRange": MqttC2DMessagesNotInAllowedRange, + "TimeWindowCustomAlertRule.HttpC2DMessagesNotInAllowedRange": HttpC2DMessagesNotInAllowedRange, "TimeWindowCustomAlertRule.AmqpC2DRejectedMessagesNotInAllowedRange": AmqpC2DRejectedMessagesNotInAllowedRange, "TimeWindowCustomAlertRule.MqttC2DRejectedMessagesNotInAllowedRange": MqttC2DRejectedMessagesNotInAllowedRange, "TimeWindowCustomAlertRule.HttpC2DRejectedMessagesNotInAllowedRange": HttpC2DRejectedMessagesNotInAllowedRange, - "TimeWindowCustomAlertRule.AmqpD2CMessagesNotInAllowedRange": - AmqpD2CMessagesNotInAllowedRange, - "TimeWindowCustomAlertRule.MqttD2CMessagesNotInAllowedRange": - MqttD2CMessagesNotInAllowedRange, - "TimeWindowCustomAlertRule.HttpD2CMessagesNotInAllowedRange": - HttpD2CMessagesNotInAllowedRange, + "TimeWindowCustomAlertRule.AmqpD2CMessagesNotInAllowedRange": AmqpD2CMessagesNotInAllowedRange, + "TimeWindowCustomAlertRule.MqttD2CMessagesNotInAllowedRange": MqttD2CMessagesNotInAllowedRange, + "TimeWindowCustomAlertRule.HttpD2CMessagesNotInAllowedRange": HttpD2CMessagesNotInAllowedRange, "TimeWindowCustomAlertRule.DirectMethodInvokesNotInAllowedRange": DirectMethodInvokesNotInAllowedRange, "TimeWindowCustomAlertRule.FailedLocalLoginsNotInAllowedRange": FailedLocalLoginsNotInAllowedRange, - "TimeWindowCustomAlertRule.FileUploadsNotInAllowedRange": - FileUploadsNotInAllowedRange, - "TimeWindowCustomAlertRule.QueuePurgesNotInAllowedRange": - QueuePurgesNotInAllowedRange, - "TimeWindowCustomAlertRule.TwinUpdatesNotInAllowedRange": - TwinUpdatesNotInAllowedRange, + "TimeWindowCustomAlertRule.FileUploadsNotInAllowedRange": FileUploadsNotInAllowedRange, + "TimeWindowCustomAlertRule.QueuePurgesNotInAllowedRange": QueuePurgesNotInAllowedRange, + "TimeWindowCustomAlertRule.TwinUpdatesNotInAllowedRange": TwinUpdatesNotInAllowedRange, "TimeWindowCustomAlertRule.UnauthorizedOperationsNotInAllowedRange": UnauthorizedOperationsNotInAllowedRange, "AllowlistCustomAlertRule.ConnectionToIpNotAllowed": ConnectionToIpNotAllowed, - "AllowlistCustomAlertRule.ConnectionFromIpNotAllowed": - ConnectionFromIpNotAllowed, + "AllowlistCustomAlertRule.ConnectionFromIpNotAllowed": ConnectionFromIpNotAllowed, "AllowlistCustomAlertRule.LocalUserNotAllowed": LocalUserNotAllowed, "AllowlistCustomAlertRule.ProcessNotAllowed": ProcessNotAllowed, }; diff --git a/sdk/security/arm-security/src/models/parameters.ts b/sdk/security/arm-security/src/models/parameters.ts index bc6a6b46507e..09e456fc1f49 100644 --- a/sdk/security/arm-security/src/models/parameters.ts +++ b/sdk/security/arm-security/src/models/parameters.ts @@ -16,31 +16,25 @@ import { InformationProtectionPolicy as InformationProtectionPolicyMapper, WorkspaceSetting as WorkspaceSettingMapper, AlertsSuppressionRule as AlertsSuppressionRuleMapper, - Automation as AutomationMapper, - AutomationUpdateModel as AutomationUpdateModelMapper, ConnectorSetting as ConnectorSettingMapper, - SecurityContact as SecurityContactMapper, CustomAssessmentAutomationRequest as CustomAssessmentAutomationRequestMapper, CustomEntityStoreAssignmentRequest as CustomEntityStoreAssignmentRequestMapper, GovernanceAssignment as GovernanceAssignmentMapper, GovernanceRule as GovernanceRuleMapper, ExecuteGovernanceRuleParams as ExecuteGovernanceRuleParamsMapper, Application as ApplicationMapper, - DefenderForStorageSetting as DefenderForStorageSettingMapper, RuleResultsInput as RuleResultsInputMapper, RulesResultsInput as RulesResultsInputMapper, UpdateSensitivitySettingsRequest as UpdateSensitivitySettingsRequestMapper, - AzureDevOpsOrg as AzureDevOpsOrgMapper, - AzureDevOpsProject as AzureDevOpsProjectMapper, - AzureDevOpsRepository as AzureDevOpsRepositoryMapper, - DevOpsConfiguration as DevOpsConfigurationMapper, + Automation as AutomationMapper, + AutomationUpdateModel as AutomationUpdateModelMapper, + SecurityContact as SecurityContactMapper, SecurityConnector as SecurityConnectorMapper, + DefenderForStorageSetting as DefenderForStorageSettingMapper, AdvancedThreatProtectionSetting as AdvancedThreatProtectionSettingMapper, DeviceSecurityGroup as DeviceSecurityGroupMapper, IoTSecuritySolutionModel as IoTSecuritySolutionModelMapper, UpdateIotSecuritySolutionData as UpdateIotSecuritySolutionDataMapper, - AdaptiveNetworkHardeningEnforceRequest as AdaptiveNetworkHardeningEnforceRequestMapper, - AdaptiveApplicationControlGroup as AdaptiveApplicationControlGroupMapper, JitNetworkAccessPolicy as JitNetworkAccessPolicyMapper, JitNetworkAccessPolicyInitiateRequest as JitNetworkAccessPolicyInitiateRequestMapper, SecurityAssessmentMetadataResponse as SecurityAssessmentMetadataResponseMapper, @@ -49,6 +43,13 @@ import { Setting as SettingMapper, ServerVulnerabilityAssessmentsSetting as ServerVulnerabilityAssessmentsSettingMapper, Pricing as PricingMapper, + SecurityStandard as SecurityStandardMapper, + StandardAssignment as StandardAssignmentMapper, + CustomRecommendation as CustomRecommendationMapper, + AzureDevOpsOrg as AzureDevOpsOrgMapper, + AzureDevOpsProject as AzureDevOpsProjectMapper, + AzureDevOpsRepository as AzureDevOpsRepositoryMapper, + DevOpsConfiguration as DevOpsConfigurationMapper, } from "../models/mappers.js"; export const accept: OperationParameter = { @@ -91,9 +92,7 @@ export const subscriptionId: OperationURLParameter = { parameterPath: "subscriptionId", mapper: { constraints: { - Pattern: new RegExp( - "^[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}$", - ), + Pattern: new RegExp("^[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}$"), }, serializedName: "subscriptionId", required: true, @@ -307,39 +306,6 @@ export const alertsSuppressionRule: OperationParameter = { mapper: AlertsSuppressionRuleMapper, }; -export const apiVersion3: OperationQueryParameter = { - parameterPath: "apiVersion", - mapper: { - defaultValue: "2023-12-01-preview", - isConstant: true, - serializedName: "api-version", - type: { - name: "String", - }, - }, -}; - -export const automationName: OperationURLParameter = { - parameterPath: "automationName", - mapper: { - serializedName: "automationName", - required: true, - type: { - name: "String", - }, - }, -}; - -export const automation: OperationParameter = { - parameterPath: "automation", - mapper: AutomationMapper, -}; - -export const automation1: OperationParameter = { - parameterPath: "automation", - mapper: AutomationUpdateModelMapper, -}; - export const regulatoryComplianceStandardName: OperationURLParameter = { parameterPath: "regulatoryComplianceStandardName", mapper: { @@ -395,7 +361,7 @@ export const subAssessmentName: OperationURLParameter = { }, }; -export const apiVersion4: OperationQueryParameter = { +export const apiVersion3: OperationQueryParameter = { parameterPath: "apiVersion", mapper: { defaultValue: "2020-01-01-preview", @@ -423,22 +389,6 @@ export const connectorSetting: OperationParameter = { mapper: ConnectorSettingMapper, }; -export const securityContactName: OperationURLParameter = { - parameterPath: "securityContactName", - mapper: { - serializedName: "securityContactName", - required: true, - type: { - name: "String", - }, - }, -}; - -export const securityContact: OperationParameter = { - parameterPath: "securityContact", - mapper: SecurityContactMapper, -}; - export const resourceNamespace: OperationURLParameter = { parameterPath: "resourceNamespace", mapper: { @@ -472,7 +422,7 @@ export const resourceName: OperationURLParameter = { }, }; -export const apiVersion5: OperationQueryParameter = { +export const apiVersion4: OperationQueryParameter = { parameterPath: "apiVersion", mapper: { defaultValue: "2021-05-01-preview", @@ -495,7 +445,7 @@ export const softwareName: OperationURLParameter = { }, }; -export const apiVersion6: OperationQueryParameter = { +export const apiVersion5: OperationQueryParameter = { parameterPath: "apiVersion", mapper: { defaultValue: "2021-07-01-preview", @@ -539,7 +489,7 @@ export const customEntityStoreAssignmentRequestBody: OperationParameter = { mapper: CustomEntityStoreAssignmentRequestMapper, }; -export const apiVersion7: OperationQueryParameter = { +export const apiVersion6: OperationQueryParameter = { parameterPath: "apiVersion", mapper: { defaultValue: "2021-10-01-preview", @@ -551,7 +501,7 @@ export const apiVersion7: OperationQueryParameter = { }, }; -export const apiVersion8: OperationQueryParameter = { +export const apiVersion7: OperationQueryParameter = { parameterPath: "apiVersion", mapper: { defaultValue: "2022-01-01-preview", @@ -636,7 +586,7 @@ export const operationId: OperationURLParameter = { }, }; -export const apiVersion9: OperationQueryParameter = { +export const apiVersion8: OperationQueryParameter = { parameterPath: "apiVersion", mapper: { defaultValue: "2022-07-01-preview", @@ -675,47 +625,7 @@ export const securityConnectorName: OperationURLParameter = { }, }; -export const apiVersion10: OperationQueryParameter = { - parameterPath: "apiVersion", - mapper: { - defaultValue: "2022-12-01-preview", - isConstant: true, - serializedName: "api-version", - type: { - name: "String", - }, - }, -}; - -export const resourceId: OperationURLParameter = { - parameterPath: "resourceId", - mapper: { - serializedName: "resourceId", - required: true, - type: { - name: "String", - }, - }, - skipEncoding: true, -}; - -export const settingName1: OperationURLParameter = { - parameterPath: "settingName", - mapper: { - serializedName: "settingName", - required: true, - type: { - name: "String", - }, - }, -}; - -export const defenderForStorageSetting: OperationParameter = { - parameterPath: "defenderForStorageSetting", - mapper: DefenderForStorageSettingMapper, -}; - -export const apiVersion11: OperationQueryParameter = { +export const apiVersion9: OperationQueryParameter = { parameterPath: "apiVersion", mapper: { defaultValue: "2023-01-01-preview", @@ -775,7 +685,7 @@ export const workspaceId: OperationQueryParameter = { }, }; -export const apiVersion12: OperationQueryParameter = { +export const apiVersion10: OperationQueryParameter = { parameterPath: "apiVersion", mapper: { defaultValue: "2023-02-01-preview", @@ -787,6 +697,18 @@ export const apiVersion12: OperationQueryParameter = { }, }; +export const resourceId: OperationURLParameter = { + parameterPath: "resourceId", + mapper: { + serializedName: "resourceId", + required: true, + type: { + name: "String", + }, + }, + skipEncoding: true, +}; + export const body1: OperationParameter = { parameterPath: ["options", "body"], mapper: RulesResultsInputMapper, @@ -819,7 +741,7 @@ export const sensitivitySettings: OperationParameter = { mapper: UpdateSensitivitySettingsRequestMapper, }; -export const apiVersion13: OperationQueryParameter = { +export const apiVersion11: OperationQueryParameter = { parameterPath: "apiVersion", mapper: { defaultValue: "2023-02-15-preview", @@ -831,7 +753,7 @@ export const apiVersion13: OperationQueryParameter = { }, }; -export const apiVersion14: OperationQueryParameter = { +export const apiVersion12: OperationQueryParameter = { parameterPath: "apiVersion", mapper: { defaultValue: "2023-05-01-preview", @@ -862,9 +784,7 @@ export const healthReportName: OperationURLParameter = { parameterPath: "healthReportName", mapper: { constraints: { - Pattern: new RegExp( - "[{]?[0-9a-fA-F]{8}-(?:[0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}[}]?$", - ), + Pattern: new RegExp("[{]?[0-9a-fA-F]{8}-(?:[0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}[}]?$"), }, serializedName: "healthReportName", required: true, @@ -874,25 +794,10 @@ export const healthReportName: OperationURLParameter = { }, }; -export const resourceGroupName1: OperationURLParameter = { - parameterPath: "resourceGroupName", - mapper: { - constraints: { - MaxLength: 90, - MinLength: 1, - }, - serializedName: "resourceGroupName", - required: true, - type: { - name: "String", - }, - }, -}; - -export const apiVersion15: OperationQueryParameter = { +export const apiVersion13: OperationQueryParameter = { parameterPath: "apiVersion", mapper: { - defaultValue: "2023-09-01-preview", + defaultValue: "2023-12-01-preview", isConstant: true, serializedName: "api-version", type: { @@ -901,10 +806,10 @@ export const apiVersion15: OperationQueryParameter = { }, }; -export const orgName: OperationURLParameter = { - parameterPath: "orgName", +export const automationName: OperationURLParameter = { + parameterPath: "automationName", mapper: { - serializedName: "orgName", + serializedName: "automationName", required: true, type: { name: "String", @@ -912,15 +817,20 @@ export const orgName: OperationURLParameter = { }, }; -export const azureDevOpsOrg: OperationParameter = { - parameterPath: "azureDevOpsOrg", - mapper: AzureDevOpsOrgMapper, +export const automation: OperationParameter = { + parameterPath: "automation", + mapper: AutomationMapper, }; -export const projectName: OperationURLParameter = { - parameterPath: "projectName", +export const automation1: OperationParameter = { + parameterPath: "automation", + mapper: AutomationUpdateModelMapper, +}; + +export const securityContactName: OperationURLParameter = { + parameterPath: "securityContactName", mapper: { - serializedName: "projectName", + serializedName: "securityContactName", required: true, type: { name: "String", @@ -928,58 +838,56 @@ export const projectName: OperationURLParameter = { }, }; -export const azureDevOpsProject: OperationParameter = { - parameterPath: "azureDevOpsProject", - mapper: AzureDevOpsProjectMapper, +export const securityContact: OperationParameter = { + parameterPath: "securityContact", + mapper: SecurityContactMapper, }; -export const repoName: OperationURLParameter = { - parameterPath: "repoName", +export const apiVersion14: OperationQueryParameter = { + parameterPath: "apiVersion", mapper: { - serializedName: "repoName", - required: true, + defaultValue: "2024-08-01-preview", + isConstant: true, + serializedName: "api-version", type: { name: "String", }, }, }; -export const azureDevOpsRepository: OperationParameter = { - parameterPath: "azureDevOpsRepository", - mapper: AzureDevOpsRepositoryMapper, -}; - -export const devOpsConfiguration: OperationParameter = { - parameterPath: "devOpsConfiguration", - mapper: DevOpsConfigurationMapper, +export const securityConnector: OperationParameter = { + parameterPath: "securityConnector", + mapper: SecurityConnectorMapper, }; -export const ownerName: OperationURLParameter = { - parameterPath: "ownerName", +export const apiVersion15: OperationQueryParameter = { + parameterPath: "apiVersion", mapper: { - serializedName: "ownerName", - required: true, + defaultValue: "2024-10-01-preview", + isConstant: true, + serializedName: "api-version", type: { name: "String", }, }, }; -export const groupFQName: OperationURLParameter = { - parameterPath: "groupFQName", +export const apiVersion16: OperationQueryParameter = { + parameterPath: "apiVersion", mapper: { - serializedName: "groupFQName", - required: true, + defaultValue: "2025-02-01-preview", + isConstant: true, + serializedName: "api-version", type: { name: "String", }, }, }; -export const operationResultId: OperationURLParameter = { - parameterPath: "operationResultId", +export const settingName1: OperationURLParameter = { + parameterPath: "settingName", mapper: { - serializedName: "operationResultId", + serializedName: "settingName", required: true, type: { name: "String", @@ -987,23 +895,27 @@ export const operationResultId: OperationURLParameter = { }, }; -export const apiVersion16: OperationQueryParameter = { - parameterPath: "apiVersion", +export const defenderForStorageSetting: OperationParameter = { + parameterPath: "defenderForStorageSetting", + mapper: DefenderForStorageSettingMapper, +}; + +export const scanId1: OperationURLParameter = { + parameterPath: "scanId", mapper: { - defaultValue: "2023-10-01-preview", - isConstant: true, - serializedName: "api-version", + constraints: { + Pattern: new RegExp( + "^(latest|[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12})$", + ), + }, + serializedName: "scanId", + required: true, type: { name: "String", }, }, }; -export const securityConnector: OperationParameter = { - parameterPath: "securityConnector", - mapper: SecurityConnectorMapper, -}; - export const apiVersion17: OperationQueryParameter = { parameterPath: "apiVersion", mapper: { @@ -1149,34 +1061,6 @@ export const apiVersion20: OperationQueryParameter = { }, }; -export const adaptiveNetworkHardeningResourceName: OperationURLParameter = { - parameterPath: "adaptiveNetworkHardeningResourceName", - mapper: { - serializedName: "adaptiveNetworkHardeningResourceName", - required: true, - type: { - name: "String", - }, - }, -}; - -export const body2: OperationParameter = { - parameterPath: "body", - mapper: AdaptiveNetworkHardeningEnforceRequestMapper, -}; - -export const adaptiveNetworkHardeningEnforceAction: OperationURLParameter = { - parameterPath: "adaptiveNetworkHardeningEnforceAction", - mapper: { - defaultValue: "enforce", - isConstant: true, - serializedName: "adaptiveNetworkHardeningEnforceAction", - type: { - name: "String", - }, - }, -}; - export const connectionType: OperationURLParameter = { parameterPath: "connectionType", mapper: { @@ -1188,42 +1072,6 @@ export const connectionType: OperationURLParameter = { }, }; -export const includePathRecommendations: OperationQueryParameter = { - parameterPath: ["options", "includePathRecommendations"], - mapper: { - serializedName: "includePathRecommendations", - type: { - name: "Boolean", - }, - }, -}; - -export const summary: OperationQueryParameter = { - parameterPath: ["options", "summary"], - mapper: { - serializedName: "summary", - type: { - name: "Boolean", - }, - }, -}; - -export const groupName: OperationURLParameter = { - parameterPath: "groupName", - mapper: { - serializedName: "groupName", - required: true, - type: { - name: "String", - }, - }, -}; - -export const body3: OperationParameter = { - parameterPath: "body", - mapper: AdaptiveApplicationControlGroupMapper, -}; - export const discoveredSecuritySolutionName: OperationURLParameter = { parameterPath: "discoveredSecuritySolutionName", mapper: { @@ -1257,12 +1105,12 @@ export const jitNetworkAccessPolicyName: OperationURLParameter = { }, }; -export const body4: OperationParameter = { +export const body2: OperationParameter = { parameterPath: "body", mapper: JitNetworkAccessPolicyMapper, }; -export const body5: OperationParameter = { +export const body3: OperationParameter = { parameterPath: "body", mapper: JitNetworkAccessPolicyInitiateRequestMapper, }; @@ -1473,6 +1321,21 @@ export const apiVersion25: OperationQueryParameter = { }, }; +export const resourceGroupName1: OperationURLParameter = { + parameterPath: "resourceGroupName", + mapper: { + constraints: { + MaxLength: 90, + MinLength: 1, + }, + serializedName: "resourceGroupName", + required: true, + type: { + name: "String", + }, + }, +}; + export const serviceName: OperationURLParameter = { parameterPath: "serviceName", mapper: { @@ -1544,3 +1407,170 @@ export const pricing: OperationParameter = { parameterPath: "pricing", mapper: PricingMapper, }; + +export const apiVersion27: OperationQueryParameter = { + parameterPath: "apiVersion", + mapper: { + defaultValue: "2024-08-01", + isConstant: true, + serializedName: "api-version", + type: { + name: "String", + }, + }, +}; + +export const standardId: OperationURLParameter = { + parameterPath: "standardId", + mapper: { + constraints: { + Pattern: new RegExp("[{]?[0-9a-fA-F]{8}-(?:[0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}[}]?$"), + }, + serializedName: "standardId", + required: true, + type: { + name: "String", + }, + }, +}; + +export const standard: OperationParameter = { + parameterPath: "standard", + mapper: SecurityStandardMapper, +}; + +export const standardAssignmentName: OperationURLParameter = { + parameterPath: "standardAssignmentName", + mapper: { + constraints: { + Pattern: new RegExp("[{]?[0-9a-fA-F]{8}-(?:[0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}[}]?$"), + }, + serializedName: "standardAssignmentName", + required: true, + type: { + name: "String", + }, + }, +}; + +export const standardAssignment: OperationParameter = { + parameterPath: "standardAssignment", + mapper: StandardAssignmentMapper, +}; + +export const customRecommendationName: OperationURLParameter = { + parameterPath: "customRecommendationName", + mapper: { + constraints: { + Pattern: new RegExp("[{]?[0-9a-fA-F]{8}-(?:[0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}[}]?$"), + }, + serializedName: "customRecommendationName", + required: true, + type: { + name: "String", + }, + }, +}; + +export const customRecommendationBody: OperationParameter = { + parameterPath: "customRecommendationBody", + mapper: CustomRecommendationMapper, +}; + +export const apiVersion28: OperationQueryParameter = { + parameterPath: "apiVersion", + mapper: { + defaultValue: "2025-03-01", + isConstant: true, + serializedName: "api-version", + type: { + name: "String", + }, + }, +}; + +export const orgName: OperationURLParameter = { + parameterPath: "orgName", + mapper: { + serializedName: "orgName", + required: true, + type: { + name: "String", + }, + }, +}; + +export const azureDevOpsOrg: OperationParameter = { + parameterPath: "azureDevOpsOrg", + mapper: AzureDevOpsOrgMapper, +}; + +export const projectName: OperationURLParameter = { + parameterPath: "projectName", + mapper: { + serializedName: "projectName", + required: true, + type: { + name: "String", + }, + }, +}; + +export const azureDevOpsProject: OperationParameter = { + parameterPath: "azureDevOpsProject", + mapper: AzureDevOpsProjectMapper, +}; + +export const repoName: OperationURLParameter = { + parameterPath: "repoName", + mapper: { + serializedName: "repoName", + required: true, + type: { + name: "String", + }, + }, +}; + +export const azureDevOpsRepository: OperationParameter = { + parameterPath: "azureDevOpsRepository", + mapper: AzureDevOpsRepositoryMapper, +}; + +export const devOpsConfiguration: OperationParameter = { + parameterPath: "devOpsConfiguration", + mapper: DevOpsConfigurationMapper, +}; + +export const ownerName: OperationURLParameter = { + parameterPath: "ownerName", + mapper: { + serializedName: "ownerName", + required: true, + type: { + name: "String", + }, + }, +}; + +export const groupFQName: OperationURLParameter = { + parameterPath: "groupFQName", + mapper: { + serializedName: "groupFQName", + required: true, + type: { + name: "String", + }, + }, +}; + +export const operationResultId: OperationURLParameter = { + parameterPath: "operationResultId", + mapper: { + serializedName: "operationResultId", + required: true, + type: { + name: "String", + }, + }, +}; diff --git a/sdk/security/arm-security/src/operations/aPICollections.ts b/sdk/security/arm-security/src/operations/aPICollections.ts index 2bcb1816b870..17b71697c1c1 100644 --- a/sdk/security/arm-security/src/operations/aPICollections.ts +++ b/sdk/security/arm-security/src/operations/aPICollections.ts @@ -13,11 +13,7 @@ import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers.js"; import * as Parameters from "../models/parameters.js"; import { SecurityCenter } from "../securityCenter.js"; -import { - SimplePollerLike, - OperationState, - createHttpPoller, -} from "@azure/core-lro"; +import { SimplePollerLike, OperationState, createHttpPoller } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl.js"; import { ApiCollection, @@ -130,11 +126,7 @@ export class APICollectionsImpl implements APICollections { if (settings?.maxPageSize) { throw new Error("maxPageSize is not supported by this operation."); } - return this.listByResourceGroupPagingPage( - resourceGroupName, - options, - settings, - ); + return this.listByResourceGroupPagingPage(resourceGroupName, options, settings); }, }; } @@ -154,11 +146,7 @@ export class APICollectionsImpl implements APICollections { yield page; } while (continuationToken) { - result = await this._listByResourceGroupNext( - resourceGroupName, - continuationToken, - options, - ); + result = await this._listByResourceGroupNext(resourceGroupName, continuationToken, options); continuationToken = result.nextLink; let page = result.value || []; setContinuationToken(page, continuationToken); @@ -170,10 +158,7 @@ export class APICollectionsImpl implements APICollections { resourceGroupName: string, options?: APICollectionsListByResourceGroupOptionalParams, ): AsyncIterableIterator { - for await (const page of this.listByResourceGroupPagingPage( - resourceGroupName, - options, - )) { + for await (const page of this.listByResourceGroupPagingPage(resourceGroupName, options)) { yield* page; } } @@ -227,11 +212,7 @@ export class APICollectionsImpl implements APICollections { let result: APICollectionsListByAzureApiManagementServiceResponse; let continuationToken = settings?.continuationToken; if (!continuationToken) { - result = await this._listByAzureApiManagementService( - resourceGroupName, - serviceName, - options, - ); + result = await this._listByAzureApiManagementService(resourceGroupName, serviceName, options); let page = result.value || []; continuationToken = result.nextLink; setContinuationToken(page, continuationToken); @@ -273,10 +254,7 @@ export class APICollectionsImpl implements APICollections { private _listBySubscription( options?: APICollectionsListBySubscriptionOptionalParams, ): Promise { - return this.client.sendOperationRequest( - { options }, - listBySubscriptionOperationSpec, - ); + return this.client.sendOperationRequest({ options }, listBySubscriptionOperationSpec); } /** @@ -369,8 +347,7 @@ export class APICollectionsImpl implements APICollections { args: coreClient.OperationArguments, spec: coreClient.OperationSpec, ) => { - let currentRawResponse: coreClient.FullOperationResponse | undefined = - undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, @@ -543,11 +520,7 @@ const listByResourceGroupOperationSpec: coreClient.OperationSpec = { }, }, queryParameters: [Parameters.apiVersion25], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName1, - ], + urlParameters: [Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName1], headerParameters: [Parameters.accept], serializer, }; @@ -647,6 +620,21 @@ const offboardAzureApiManagementApiOperationSpec: coreClient.OperationSpec = { serializer, }; const listBySubscriptionNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.ApiCollectionList, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + urlParameters: [Parameters.$host, Parameters.subscriptionId, Parameters.nextLink], + headerParameters: [Parameters.accept], + serializer, +}; +const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { @@ -661,11 +649,12 @@ const listBySubscriptionNextOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.nextLink, + Parameters.resourceGroupName1, ], headerParameters: [Parameters.accept], serializer, }; -const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = { +const listByAzureApiManagementServiceNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { @@ -681,29 +670,8 @@ const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = { Parameters.subscriptionId, Parameters.nextLink, Parameters.resourceGroupName1, + Parameters.serviceName, ], headerParameters: [Parameters.accept], serializer, }; -const listByAzureApiManagementServiceNextOperationSpec: coreClient.OperationSpec = - { - path: "{nextLink}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.ApiCollectionList, - }, - default: { - bodyMapper: Mappers.ErrorResponse, - }, - }, - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.nextLink, - Parameters.resourceGroupName1, - Parameters.serviceName, - ], - headerParameters: [Parameters.accept], - serializer, - }; diff --git a/sdk/security/arm-security/src/operations/adaptiveApplicationControls.ts b/sdk/security/arm-security/src/operations/adaptiveApplicationControls.ts deleted file mode 100644 index 36978c90497f..000000000000 --- a/sdk/security/arm-security/src/operations/adaptiveApplicationControls.ts +++ /dev/null @@ -1,192 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -import { AdaptiveApplicationControls } from "../operationsInterfaces/index.js"; -import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers.js"; -import * as Parameters from "../models/parameters.js"; -import { SecurityCenter } from "../securityCenter.js"; -import { - AdaptiveApplicationControlsListOptionalParams, - AdaptiveApplicationControlsListResponse, - AdaptiveApplicationControlsGetOptionalParams, - AdaptiveApplicationControlsGetResponse, - AdaptiveApplicationControlGroup, - AdaptiveApplicationControlsPutOptionalParams, - AdaptiveApplicationControlsPutResponse, - AdaptiveApplicationControlsDeleteOptionalParams, -} from "../models/index.js"; - -/** Class containing AdaptiveApplicationControls operations. */ -export class AdaptiveApplicationControlsImpl - implements AdaptiveApplicationControls -{ - private readonly client: SecurityCenter; - - /** - * Initialize a new instance of the class AdaptiveApplicationControls class. - * @param client Reference to the service client - */ - constructor(client: SecurityCenter) { - this.client = client; - } - - /** - * Gets a list of application control machine groups for the subscription. - * @param options The options parameters. - */ - list( - options?: AdaptiveApplicationControlsListOptionalParams, - ): Promise { - return this.client.sendOperationRequest({ options }, listOperationSpec); - } - - /** - * Gets an application control VM/server group. - * @param ascLocation The location where ASC stores the data of the subscription. can be retrieved from - * Get locations - * @param groupName Name of an application control machine group - * @param options The options parameters. - */ - get( - ascLocation: string, - groupName: string, - options?: AdaptiveApplicationControlsGetOptionalParams, - ): Promise { - return this.client.sendOperationRequest( - { ascLocation, groupName, options }, - getOperationSpec, - ); - } - - /** - * Update an application control machine group - * @param ascLocation The location where ASC stores the data of the subscription. can be retrieved from - * Get locations - * @param groupName Name of an application control machine group - * @param body - * @param options The options parameters. - */ - put( - ascLocation: string, - groupName: string, - body: AdaptiveApplicationControlGroup, - options?: AdaptiveApplicationControlsPutOptionalParams, - ): Promise { - return this.client.sendOperationRequest( - { ascLocation, groupName, body, options }, - putOperationSpec, - ); - } - - /** - * Delete an application control machine group - * @param ascLocation The location where ASC stores the data of the subscription. can be retrieved from - * Get locations - * @param groupName Name of an application control machine group - * @param options The options parameters. - */ - delete( - ascLocation: string, - groupName: string, - options?: AdaptiveApplicationControlsDeleteOptionalParams, - ): Promise { - return this.client.sendOperationRequest( - { ascLocation, groupName, options }, - deleteOperationSpec, - ); - } -} -// Operation Specifications -const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); - -const listOperationSpec: coreClient.OperationSpec = { - path: "/subscriptions/{subscriptionId}/providers/Microsoft.Security/applicationWhitelistings", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.AdaptiveApplicationControlGroups, - }, - default: { - bodyMapper: Mappers.CloudError, - }, - }, - queryParameters: [ - Parameters.apiVersion20, - Parameters.includePathRecommendations, - Parameters.summary, - ], - urlParameters: [Parameters.$host, Parameters.subscriptionId], - headerParameters: [Parameters.accept], - serializer, -}; -const getOperationSpec: coreClient.OperationSpec = { - path: "/subscriptions/{subscriptionId}/providers/Microsoft.Security/locations/{ascLocation}/applicationWhitelistings/{groupName}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.AdaptiveApplicationControlGroup, - }, - default: { - bodyMapper: Mappers.CloudError, - }, - }, - queryParameters: [Parameters.apiVersion20], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.ascLocation, - Parameters.groupName, - ], - headerParameters: [Parameters.accept], - serializer, -}; -const putOperationSpec: coreClient.OperationSpec = { - path: "/subscriptions/{subscriptionId}/providers/Microsoft.Security/locations/{ascLocation}/applicationWhitelistings/{groupName}", - httpMethod: "PUT", - responses: { - 200: { - bodyMapper: Mappers.AdaptiveApplicationControlGroup, - }, - default: { - bodyMapper: Mappers.CloudError, - }, - }, - requestBody: Parameters.body3, - queryParameters: [Parameters.apiVersion20], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.ascLocation, - Parameters.groupName, - ], - headerParameters: [Parameters.accept, Parameters.contentType], - mediaType: "json", - serializer, -}; -const deleteOperationSpec: coreClient.OperationSpec = { - path: "/subscriptions/{subscriptionId}/providers/Microsoft.Security/locations/{ascLocation}/applicationWhitelistings/{groupName}", - httpMethod: "DELETE", - responses: { - 200: {}, - 202: {}, - 204: {}, - default: { - bodyMapper: Mappers.CloudError, - }, - }, - queryParameters: [Parameters.apiVersion20], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.ascLocation, - Parameters.groupName, - ], - headerParameters: [Parameters.accept], - serializer, -}; diff --git a/sdk/security/arm-security/src/operations/adaptiveNetworkHardenings.ts b/sdk/security/arm-security/src/operations/adaptiveNetworkHardenings.ts deleted file mode 100644 index 774394382c01..000000000000 --- a/sdk/security/arm-security/src/operations/adaptiveNetworkHardenings.ts +++ /dev/null @@ -1,453 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; -import { setContinuationToken } from "../pagingHelper.js"; -import { AdaptiveNetworkHardenings } from "../operationsInterfaces/index.js"; -import * as coreClient from "@azure/core-client"; -import * as Mappers from "../models/mappers.js"; -import * as Parameters from "../models/parameters.js"; -import { SecurityCenter } from "../securityCenter.js"; -import { - SimplePollerLike, - OperationState, - createHttpPoller, -} from "@azure/core-lro"; -import { createLroSpec } from "../lroImpl.js"; -import { - AdaptiveNetworkHardening, - AdaptiveNetworkHardeningsListByExtendedResourceNextOptionalParams, - AdaptiveNetworkHardeningsListByExtendedResourceOptionalParams, - AdaptiveNetworkHardeningsListByExtendedResourceResponse, - AdaptiveNetworkHardeningsGetOptionalParams, - AdaptiveNetworkHardeningsGetResponse, - AdaptiveNetworkHardeningEnforceRequest, - AdaptiveNetworkHardeningsEnforceOptionalParams, - AdaptiveNetworkHardeningsListByExtendedResourceNextResponse, -} from "../models/index.js"; - -/// -/** Class containing AdaptiveNetworkHardenings operations. */ -export class AdaptiveNetworkHardeningsImpl - implements AdaptiveNetworkHardenings -{ - private readonly client: SecurityCenter; - - /** - * Initialize a new instance of the class AdaptiveNetworkHardenings class. - * @param client Reference to the service client - */ - constructor(client: SecurityCenter) { - this.client = client; - } - - /** - * Gets a list of Adaptive Network Hardenings resources in scope of an extended resource. - * @param resourceGroupName The name of the resource group within the user's subscription. The name is - * case insensitive. - * @param resourceNamespace The Namespace of the resource. - * @param resourceType The type of the resource. - * @param resourceName Name of the resource. - * @param options The options parameters. - */ - public listByExtendedResource( - resourceGroupName: string, - resourceNamespace: string, - resourceType: string, - resourceName: string, - options?: AdaptiveNetworkHardeningsListByExtendedResourceOptionalParams, - ): PagedAsyncIterableIterator { - const iter = this.listByExtendedResourcePagingAll( - resourceGroupName, - resourceNamespace, - resourceType, - resourceName, - options, - ); - return { - next() { - return iter.next(); - }, - [Symbol.asyncIterator]() { - return this; - }, - byPage: (settings?: PageSettings) => { - if (settings?.maxPageSize) { - throw new Error("maxPageSize is not supported by this operation."); - } - return this.listByExtendedResourcePagingPage( - resourceGroupName, - resourceNamespace, - resourceType, - resourceName, - options, - settings, - ); - }, - }; - } - - private async *listByExtendedResourcePagingPage( - resourceGroupName: string, - resourceNamespace: string, - resourceType: string, - resourceName: string, - options?: AdaptiveNetworkHardeningsListByExtendedResourceOptionalParams, - settings?: PageSettings, - ): AsyncIterableIterator { - let result: AdaptiveNetworkHardeningsListByExtendedResourceResponse; - let continuationToken = settings?.continuationToken; - if (!continuationToken) { - result = await this._listByExtendedResource( - resourceGroupName, - resourceNamespace, - resourceType, - resourceName, - options, - ); - let page = result.value || []; - continuationToken = result.nextLink; - setContinuationToken(page, continuationToken); - yield page; - } - while (continuationToken) { - result = await this._listByExtendedResourceNext( - resourceGroupName, - resourceNamespace, - resourceType, - resourceName, - continuationToken, - options, - ); - continuationToken = result.nextLink; - let page = result.value || []; - setContinuationToken(page, continuationToken); - yield page; - } - } - - private async *listByExtendedResourcePagingAll( - resourceGroupName: string, - resourceNamespace: string, - resourceType: string, - resourceName: string, - options?: AdaptiveNetworkHardeningsListByExtendedResourceOptionalParams, - ): AsyncIterableIterator { - for await (const page of this.listByExtendedResourcePagingPage( - resourceGroupName, - resourceNamespace, - resourceType, - resourceName, - options, - )) { - yield* page; - } - } - - /** - * Gets a list of Adaptive Network Hardenings resources in scope of an extended resource. - * @param resourceGroupName The name of the resource group within the user's subscription. The name is - * case insensitive. - * @param resourceNamespace The Namespace of the resource. - * @param resourceType The type of the resource. - * @param resourceName Name of the resource. - * @param options The options parameters. - */ - private _listByExtendedResource( - resourceGroupName: string, - resourceNamespace: string, - resourceType: string, - resourceName: string, - options?: AdaptiveNetworkHardeningsListByExtendedResourceOptionalParams, - ): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - resourceNamespace, - resourceType, - resourceName, - options, - }, - listByExtendedResourceOperationSpec, - ); - } - - /** - * Gets a single Adaptive Network Hardening resource - * @param resourceGroupName The name of the resource group within the user's subscription. The name is - * case insensitive. - * @param resourceNamespace The Namespace of the resource. - * @param resourceType The type of the resource. - * @param resourceName Name of the resource. - * @param adaptiveNetworkHardeningResourceName The name of the Adaptive Network Hardening resource. - * @param options The options parameters. - */ - get( - resourceGroupName: string, - resourceNamespace: string, - resourceType: string, - resourceName: string, - adaptiveNetworkHardeningResourceName: string, - options?: AdaptiveNetworkHardeningsGetOptionalParams, - ): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - resourceNamespace, - resourceType, - resourceName, - adaptiveNetworkHardeningResourceName, - options, - }, - getOperationSpec, - ); - } - - /** - * Enforces the given rules on the NSG(s) listed in the request - * @param resourceGroupName The name of the resource group within the user's subscription. The name is - * case insensitive. - * @param resourceNamespace The Namespace of the resource. - * @param resourceType The type of the resource. - * @param resourceName Name of the resource. - * @param adaptiveNetworkHardeningResourceName The name of the Adaptive Network Hardening resource. - * @param body - * @param options The options parameters. - */ - async beginEnforce( - resourceGroupName: string, - resourceNamespace: string, - resourceType: string, - resourceName: string, - adaptiveNetworkHardeningResourceName: string, - body: AdaptiveNetworkHardeningEnforceRequest, - options?: AdaptiveNetworkHardeningsEnforceOptionalParams, - ): Promise, void>> { - const directSendOperation = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec, - ): Promise => { - return this.client.sendOperationRequest(args, spec); - }; - const sendOperationFn = async ( - args: coreClient.OperationArguments, - spec: coreClient.OperationSpec, - ) => { - let currentRawResponse: coreClient.FullOperationResponse | undefined = - undefined; - const providedCallback = args.options?.onResponse; - const callback: coreClient.RawResponseCallback = ( - rawResponse: coreClient.FullOperationResponse, - flatResponse: unknown, - ) => { - currentRawResponse = rawResponse; - providedCallback?.(rawResponse, flatResponse); - }; - const updatedArgs = { - ...args, - options: { - ...args.options, - onResponse: callback, - }, - }; - const flatResponse = await directSendOperation(updatedArgs, spec); - return { - flatResponse, - rawResponse: { - statusCode: currentRawResponse!.status, - body: currentRawResponse!.parsedBody, - headers: currentRawResponse!.headers.toJSON(), - }, - }; - }; - - const lro = createLroSpec({ - sendOperationFn, - args: { - resourceGroupName, - resourceNamespace, - resourceType, - resourceName, - adaptiveNetworkHardeningResourceName, - body, - options, - }, - spec: enforceOperationSpec, - }); - const poller = await createHttpPoller>(lro, { - restoreFrom: options?.resumeFrom, - intervalInMs: options?.updateIntervalInMs, - }); - await poller.poll(); - return poller; - } - - /** - * Enforces the given rules on the NSG(s) listed in the request - * @param resourceGroupName The name of the resource group within the user's subscription. The name is - * case insensitive. - * @param resourceNamespace The Namespace of the resource. - * @param resourceType The type of the resource. - * @param resourceName Name of the resource. - * @param adaptiveNetworkHardeningResourceName The name of the Adaptive Network Hardening resource. - * @param body - * @param options The options parameters. - */ - async beginEnforceAndWait( - resourceGroupName: string, - resourceNamespace: string, - resourceType: string, - resourceName: string, - adaptiveNetworkHardeningResourceName: string, - body: AdaptiveNetworkHardeningEnforceRequest, - options?: AdaptiveNetworkHardeningsEnforceOptionalParams, - ): Promise { - const poller = await this.beginEnforce( - resourceGroupName, - resourceNamespace, - resourceType, - resourceName, - adaptiveNetworkHardeningResourceName, - body, - options, - ); - return poller.pollUntilDone(); - } - - /** - * ListByExtendedResourceNext - * @param resourceGroupName The name of the resource group within the user's subscription. The name is - * case insensitive. - * @param resourceNamespace The Namespace of the resource. - * @param resourceType The type of the resource. - * @param resourceName Name of the resource. - * @param nextLink The nextLink from the previous successful call to the ListByExtendedResource method. - * @param options The options parameters. - */ - private _listByExtendedResourceNext( - resourceGroupName: string, - resourceNamespace: string, - resourceType: string, - resourceName: string, - nextLink: string, - options?: AdaptiveNetworkHardeningsListByExtendedResourceNextOptionalParams, - ): Promise { - return this.client.sendOperationRequest( - { - resourceGroupName, - resourceNamespace, - resourceType, - resourceName, - nextLink, - options, - }, - listByExtendedResourceNextOperationSpec, - ); - } -} -// Operation Specifications -const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); - -const listByExtendedResourceOperationSpec: coreClient.OperationSpec = { - path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceNamespace}/{resourceType}/{resourceName}/providers/Microsoft.Security/adaptiveNetworkHardenings", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.AdaptiveNetworkHardeningsList, - }, - default: { - bodyMapper: Mappers.CloudError, - }, - }, - queryParameters: [Parameters.apiVersion20], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.resourceNamespace, - Parameters.resourceType, - Parameters.resourceName, - ], - headerParameters: [Parameters.accept], - serializer, -}; -const getOperationSpec: coreClient.OperationSpec = { - path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceNamespace}/{resourceType}/{resourceName}/providers/Microsoft.Security/adaptiveNetworkHardenings/{adaptiveNetworkHardeningResourceName}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.AdaptiveNetworkHardening, - }, - default: { - bodyMapper: Mappers.CloudError, - }, - }, - queryParameters: [Parameters.apiVersion20], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.resourceNamespace, - Parameters.resourceType, - Parameters.resourceName, - Parameters.adaptiveNetworkHardeningResourceName, - ], - headerParameters: [Parameters.accept], - serializer, -}; -const enforceOperationSpec: coreClient.OperationSpec = { - path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceNamespace}/{resourceType}/{resourceName}/providers/Microsoft.Security/adaptiveNetworkHardenings/{adaptiveNetworkHardeningResourceName}/{adaptiveNetworkHardeningEnforceAction}", - httpMethod: "POST", - responses: { - 200: {}, - 201: {}, - 202: {}, - 204: {}, - default: { - bodyMapper: Mappers.CloudError, - }, - }, - requestBody: Parameters.body2, - queryParameters: [Parameters.apiVersion20], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - Parameters.resourceNamespace, - Parameters.resourceType, - Parameters.resourceName, - Parameters.adaptiveNetworkHardeningResourceName, - Parameters.adaptiveNetworkHardeningEnforceAction, - ], - headerParameters: [Parameters.accept, Parameters.contentType], - mediaType: "json", - serializer, -}; -const listByExtendedResourceNextOperationSpec: coreClient.OperationSpec = { - path: "{nextLink}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.AdaptiveNetworkHardeningsList, - }, - default: { - bodyMapper: Mappers.CloudError, - }, - }, - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.nextLink, - Parameters.resourceGroupName, - Parameters.resourceNamespace, - Parameters.resourceType, - Parameters.resourceName, - ], - headerParameters: [Parameters.accept], - serializer, -}; diff --git a/sdk/security/arm-security/src/operations/advancedThreatProtection.ts b/sdk/security/arm-security/src/operations/advancedThreatProtection.ts index b538b3ce7b3a..872a5bd361e4 100644 --- a/sdk/security/arm-security/src/operations/advancedThreatProtection.ts +++ b/sdk/security/arm-security/src/operations/advancedThreatProtection.ts @@ -40,10 +40,7 @@ export class AdvancedThreatProtectionImpl implements AdvancedThreatProtection { resourceId: string, options?: AdvancedThreatProtectionGetOptionalParams, ): Promise { - return this.client.sendOperationRequest( - { resourceId, options }, - getOperationSpec, - ); + return this.client.sendOperationRequest({ resourceId, options }, getOperationSpec); } /** @@ -78,11 +75,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, }, queryParameters: [Parameters.apiVersion18], - urlParameters: [ - Parameters.$host, - Parameters.resourceId, - Parameters.settingName2, - ], + urlParameters: [Parameters.$host, Parameters.resourceId, Parameters.settingName2], headerParameters: [Parameters.accept], serializer, }; @@ -99,11 +92,7 @@ const createOperationSpec: coreClient.OperationSpec = { }, requestBody: Parameters.advancedThreatProtectionSetting, queryParameters: [Parameters.apiVersion18], - urlParameters: [ - Parameters.$host, - Parameters.resourceId, - Parameters.settingName2, - ], + urlParameters: [Parameters.$host, Parameters.resourceId, Parameters.settingName2], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer, diff --git a/sdk/security/arm-security/src/operations/alerts.ts b/sdk/security/arm-security/src/operations/alerts.ts index 4a955d46fa72..db7756260f80 100644 --- a/sdk/security/arm-security/src/operations/alerts.ts +++ b/sdk/security/arm-security/src/operations/alerts.ts @@ -13,11 +13,7 @@ import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers.js"; import * as Parameters from "../models/parameters.js"; import { SecurityCenter } from "../securityCenter.js"; -import { - SimplePollerLike, - OperationState, - createHttpPoller, -} from "@azure/core-lro"; +import { SimplePollerLike, OperationState, createHttpPoller } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl.js"; import { Alert, @@ -70,9 +66,7 @@ export class AlertsImpl implements Alerts { * List all the alerts that are associated with the subscription * @param options The options parameters. */ - public list( - options?: AlertsListOptionalParams, - ): PagedAsyncIterableIterator { + public list(options?: AlertsListOptionalParams): PagedAsyncIterableIterator { const iter = this.listPagingAll(options); return { next() { @@ -112,9 +106,7 @@ export class AlertsImpl implements Alerts { } } - private async *listPagingAll( - options?: AlertsListOptionalParams, - ): AsyncIterableIterator { + private async *listPagingAll(options?: AlertsListOptionalParams): AsyncIterableIterator { for await (const page of this.listPagingPage(options)) { yield* page; } @@ -142,11 +134,7 @@ export class AlertsImpl implements Alerts { if (settings?.maxPageSize) { throw new Error("maxPageSize is not supported by this operation."); } - return this.listByResourceGroupPagingPage( - resourceGroupName, - options, - settings, - ); + return this.listByResourceGroupPagingPage(resourceGroupName, options, settings); }, }; } @@ -166,11 +154,7 @@ export class AlertsImpl implements Alerts { yield page; } while (continuationToken) { - result = await this._listByResourceGroupNext( - resourceGroupName, - continuationToken, - options, - ); + result = await this._listByResourceGroupNext(resourceGroupName, continuationToken, options); continuationToken = result.nextLink; let page = result.value || []; setContinuationToken(page, continuationToken); @@ -182,10 +166,7 @@ export class AlertsImpl implements Alerts { resourceGroupName: string, options?: AlertsListByResourceGroupOptionalParams, ): AsyncIterableIterator { - for await (const page of this.listByResourceGroupPagingPage( - resourceGroupName, - options, - )) { + for await (const page of this.listByResourceGroupPagingPage(resourceGroupName, options)) { yield* page; } } @@ -200,10 +181,7 @@ export class AlertsImpl implements Alerts { ascLocation: string, options?: AlertsListSubscriptionLevelByRegionOptionalParams, ): PagedAsyncIterableIterator { - const iter = this.listSubscriptionLevelByRegionPagingAll( - ascLocation, - options, - ); + const iter = this.listSubscriptionLevelByRegionPagingAll(ascLocation, options); return { next() { return iter.next(); @@ -215,11 +193,7 @@ export class AlertsImpl implements Alerts { if (settings?.maxPageSize) { throw new Error("maxPageSize is not supported by this operation."); } - return this.listSubscriptionLevelByRegionPagingPage( - ascLocation, - options, - settings, - ); + return this.listSubscriptionLevelByRegionPagingPage(ascLocation, options, settings); }, }; } @@ -255,10 +229,7 @@ export class AlertsImpl implements Alerts { ascLocation: string, options?: AlertsListSubscriptionLevelByRegionOptionalParams, ): AsyncIterableIterator { - for await (const page of this.listSubscriptionLevelByRegionPagingPage( - ascLocation, - options, - )) { + for await (const page of this.listSubscriptionLevelByRegionPagingPage(ascLocation, options)) { yield* page; } } @@ -312,11 +283,7 @@ export class AlertsImpl implements Alerts { let result: AlertsListResourceGroupLevelByRegionResponse; let continuationToken = settings?.continuationToken; if (!continuationToken) { - result = await this._listResourceGroupLevelByRegion( - ascLocation, - resourceGroupName, - options, - ); + result = await this._listResourceGroupLevelByRegion(ascLocation, resourceGroupName, options); let page = result.value || []; continuationToken = result.nextLink; setContinuationToken(page, continuationToken); @@ -354,9 +321,7 @@ export class AlertsImpl implements Alerts { * List all the alerts that are associated with the subscription * @param options The options parameters. */ - private _list( - options?: AlertsListOptionalParams, - ): Promise { + private _list(options?: AlertsListOptionalParams): Promise { return this.client.sendOperationRequest({ options }, listOperationSpec); } @@ -629,8 +594,7 @@ export class AlertsImpl implements Alerts { args: coreClient.OperationArguments, spec: coreClient.OperationSpec, ) => { - let currentRawResponse: coreClient.FullOperationResponse | undefined = - undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, @@ -683,11 +647,7 @@ export class AlertsImpl implements Alerts { alertSimulatorRequestBody: AlertSimulatorRequestBody, options?: AlertsSimulateOptionalParams, ): Promise { - const poller = await this.beginSimulate( - ascLocation, - alertSimulatorRequestBody, - options, - ); + const poller = await this.beginSimulate(ascLocation, alertSimulatorRequestBody, options); return poller.pollUntilDone(); } @@ -700,10 +660,7 @@ export class AlertsImpl implements Alerts { nextLink: string, options?: AlertsListNextOptionalParams, ): Promise { - return this.client.sendOperationRequest( - { nextLink, options }, - listNextOperationSpec, - ); + return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec); } /** @@ -796,11 +753,7 @@ const listByResourceGroupOperationSpec: coreClient.OperationSpec = { }, }, queryParameters: [Parameters.apiVersion22], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - ], + urlParameters: [Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName], headerParameters: [Parameters.accept], serializer, }; @@ -816,11 +769,7 @@ const listSubscriptionLevelByRegionOperationSpec: coreClient.OperationSpec = { }, }, queryParameters: [Parameters.apiVersion22], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.ascLocation, - ], + urlParameters: [Parameters.$host, Parameters.subscriptionId, Parameters.ascLocation], headerParameters: [Parameters.accept], serializer, }; @@ -888,170 +837,162 @@ const getResourceGroupLevelOperationSpec: coreClient.OperationSpec = { headerParameters: [Parameters.accept], serializer, }; -const updateSubscriptionLevelStateToDismissOperationSpec: coreClient.OperationSpec = - { - path: "/subscriptions/{subscriptionId}/providers/Microsoft.Security/locations/{ascLocation}/alerts/{alertName}/dismiss", - httpMethod: "POST", - responses: { - 204: {}, - default: { - bodyMapper: Mappers.CloudError, - }, +const updateSubscriptionLevelStateToDismissOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Security/locations/{ascLocation}/alerts/{alertName}/dismiss", + httpMethod: "POST", + responses: { + 204: {}, + default: { + bodyMapper: Mappers.CloudError, }, - queryParameters: [Parameters.apiVersion22], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.ascLocation, - Parameters.alertName, - ], - headerParameters: [Parameters.accept], - serializer, - }; -const updateSubscriptionLevelStateToResolveOperationSpec: coreClient.OperationSpec = - { - path: "/subscriptions/{subscriptionId}/providers/Microsoft.Security/locations/{ascLocation}/alerts/{alertName}/resolve", - httpMethod: "POST", - responses: { - 204: {}, - default: { - bodyMapper: Mappers.CloudError, - }, + }, + queryParameters: [Parameters.apiVersion22], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.ascLocation, + Parameters.alertName, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const updateSubscriptionLevelStateToResolveOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Security/locations/{ascLocation}/alerts/{alertName}/resolve", + httpMethod: "POST", + responses: { + 204: {}, + default: { + bodyMapper: Mappers.CloudError, }, - queryParameters: [Parameters.apiVersion22], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.ascLocation, - Parameters.alertName, - ], - headerParameters: [Parameters.accept], - serializer, - }; -const updateSubscriptionLevelStateToActivateOperationSpec: coreClient.OperationSpec = - { - path: "/subscriptions/{subscriptionId}/providers/Microsoft.Security/locations/{ascLocation}/alerts/{alertName}/activate", - httpMethod: "POST", - responses: { - 204: {}, - default: { - bodyMapper: Mappers.CloudError, - }, + }, + queryParameters: [Parameters.apiVersion22], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.ascLocation, + Parameters.alertName, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const updateSubscriptionLevelStateToActivateOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Security/locations/{ascLocation}/alerts/{alertName}/activate", + httpMethod: "POST", + responses: { + 204: {}, + default: { + bodyMapper: Mappers.CloudError, }, - queryParameters: [Parameters.apiVersion22], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.ascLocation, - Parameters.alertName, - ], - headerParameters: [Parameters.accept], - serializer, - }; -const updateSubscriptionLevelStateToInProgressOperationSpec: coreClient.OperationSpec = - { - path: "/subscriptions/{subscriptionId}/providers/Microsoft.Security/locations/{ascLocation}/alerts/{alertName}/inProgress", - httpMethod: "POST", - responses: { - 204: {}, - default: { - bodyMapper: Mappers.CloudError, - }, + }, + queryParameters: [Parameters.apiVersion22], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.ascLocation, + Parameters.alertName, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const updateSubscriptionLevelStateToInProgressOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Security/locations/{ascLocation}/alerts/{alertName}/inProgress", + httpMethod: "POST", + responses: { + 204: {}, + default: { + bodyMapper: Mappers.CloudError, }, - queryParameters: [Parameters.apiVersion22], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.ascLocation, - Parameters.alertName, - ], - headerParameters: [Parameters.accept], - serializer, - }; -const updateResourceGroupLevelStateToResolveOperationSpec: coreClient.OperationSpec = - { - path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/locations/{ascLocation}/alerts/{alertName}/resolve", - httpMethod: "POST", - responses: { - 204: {}, - default: { - bodyMapper: Mappers.CloudError, - }, + }, + queryParameters: [Parameters.apiVersion22], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.ascLocation, + Parameters.alertName, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const updateResourceGroupLevelStateToResolveOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/locations/{ascLocation}/alerts/{alertName}/resolve", + httpMethod: "POST", + responses: { + 204: {}, + default: { + bodyMapper: Mappers.CloudError, }, - queryParameters: [Parameters.apiVersion22], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.ascLocation, - Parameters.resourceGroupName, - Parameters.alertName, - ], - headerParameters: [Parameters.accept], - serializer, - }; -const updateResourceGroupLevelStateToDismissOperationSpec: coreClient.OperationSpec = - { - path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/locations/{ascLocation}/alerts/{alertName}/dismiss", - httpMethod: "POST", - responses: { - 204: {}, - default: { - bodyMapper: Mappers.CloudError, - }, + }, + queryParameters: [Parameters.apiVersion22], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.ascLocation, + Parameters.resourceGroupName, + Parameters.alertName, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const updateResourceGroupLevelStateToDismissOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/locations/{ascLocation}/alerts/{alertName}/dismiss", + httpMethod: "POST", + responses: { + 204: {}, + default: { + bodyMapper: Mappers.CloudError, }, - queryParameters: [Parameters.apiVersion22], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.ascLocation, - Parameters.resourceGroupName, - Parameters.alertName, - ], - headerParameters: [Parameters.accept], - serializer, - }; -const updateResourceGroupLevelStateToActivateOperationSpec: coreClient.OperationSpec = - { - path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/locations/{ascLocation}/alerts/{alertName}/activate", - httpMethod: "POST", - responses: { - 204: {}, - default: { - bodyMapper: Mappers.CloudError, - }, + }, + queryParameters: [Parameters.apiVersion22], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.ascLocation, + Parameters.resourceGroupName, + Parameters.alertName, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const updateResourceGroupLevelStateToActivateOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/locations/{ascLocation}/alerts/{alertName}/activate", + httpMethod: "POST", + responses: { + 204: {}, + default: { + bodyMapper: Mappers.CloudError, }, - queryParameters: [Parameters.apiVersion22], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.ascLocation, - Parameters.resourceGroupName, - Parameters.alertName, - ], - headerParameters: [Parameters.accept], - serializer, - }; -const updateResourceGroupLevelStateToInProgressOperationSpec: coreClient.OperationSpec = - { - path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/locations/{ascLocation}/alerts/{alertName}/inProgress", - httpMethod: "POST", - responses: { - 204: {}, - default: { - bodyMapper: Mappers.CloudError, - }, + }, + queryParameters: [Parameters.apiVersion22], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.ascLocation, + Parameters.resourceGroupName, + Parameters.alertName, + ], + headerParameters: [Parameters.accept], + serializer, +}; +const updateResourceGroupLevelStateToInProgressOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/locations/{ascLocation}/alerts/{alertName}/inProgress", + httpMethod: "POST", + responses: { + 204: {}, + default: { + bodyMapper: Mappers.CloudError, }, - queryParameters: [Parameters.apiVersion22], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.ascLocation, - Parameters.resourceGroupName, - Parameters.alertName, - ], - headerParameters: [Parameters.accept], - serializer, - }; + }, + queryParameters: [Parameters.apiVersion22], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.ascLocation, + Parameters.resourceGroupName, + Parameters.alertName, + ], + headerParameters: [Parameters.accept], + serializer, +}; const simulateOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/providers/Microsoft.Security/locations/{ascLocation}/alerts/default/simulate", httpMethod: "POST", @@ -1066,16 +1007,27 @@ const simulateOperationSpec: coreClient.OperationSpec = { }, requestBody: Parameters.alertSimulatorRequestBody, queryParameters: [Parameters.apiVersion22], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.ascLocation, - ], + urlParameters: [Parameters.$host, Parameters.subscriptionId, Parameters.ascLocation], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.AlertList, + }, + default: { + bodyMapper: Mappers.CloudError, + }, + }, + urlParameters: [Parameters.$host, Parameters.subscriptionId, Parameters.nextLink], + headerParameters: [Parameters.accept], + serializer, +}; +const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { @@ -1090,11 +1042,12 @@ const listNextOperationSpec: coreClient.OperationSpec = { Parameters.$host, Parameters.subscriptionId, Parameters.nextLink, + Parameters.resourceGroupName, ], headerParameters: [Parameters.accept], serializer, }; -const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = { +const listSubscriptionLevelByRegionNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { @@ -1108,52 +1061,30 @@ const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = { urlParameters: [ Parameters.$host, Parameters.subscriptionId, + Parameters.ascLocation, Parameters.nextLink, - Parameters.resourceGroupName, ], headerParameters: [Parameters.accept], serializer, }; -const listSubscriptionLevelByRegionNextOperationSpec: coreClient.OperationSpec = - { - path: "{nextLink}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.AlertList, - }, - default: { - bodyMapper: Mappers.CloudError, - }, +const listResourceGroupLevelByRegionNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.AlertList, }, - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.ascLocation, - Parameters.nextLink, - ], - headerParameters: [Parameters.accept], - serializer, - }; -const listResourceGroupLevelByRegionNextOperationSpec: coreClient.OperationSpec = - { - path: "{nextLink}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.AlertList, - }, - default: { - bodyMapper: Mappers.CloudError, - }, + default: { + bodyMapper: Mappers.CloudError, }, - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.ascLocation, - Parameters.nextLink, - Parameters.resourceGroupName, - ], - headerParameters: [Parameters.accept], - serializer, - }; + }, + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.ascLocation, + Parameters.nextLink, + Parameters.resourceGroupName, + ], + headerParameters: [Parameters.accept], + serializer, +}; diff --git a/sdk/security/arm-security/src/operations/alertsSuppressionRules.ts b/sdk/security/arm-security/src/operations/alertsSuppressionRules.ts index 67c7973f3f84..d4e56a1cd3f6 100644 --- a/sdk/security/arm-security/src/operations/alertsSuppressionRules.ts +++ b/sdk/security/arm-security/src/operations/alertsSuppressionRules.ts @@ -159,10 +159,7 @@ export class AlertsSuppressionRulesImpl implements AlertsSuppressionRules { nextLink: string, options?: AlertsSuppressionRulesListNextOptionalParams, ): Promise { - return this.client.sendOperationRequest( - { nextLink, options }, - listNextOperationSpec, - ); + return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec); } } // Operation Specifications @@ -255,11 +252,7 @@ const listNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError, }, }, - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.nextLink, - ], + urlParameters: [Parameters.$host, Parameters.subscriptionId, Parameters.nextLink], headerParameters: [Parameters.accept], serializer, }; diff --git a/sdk/security/arm-security/src/operations/allowedConnections.ts b/sdk/security/arm-security/src/operations/allowedConnections.ts index 20cc71739fd9..2466232fd62f 100644 --- a/sdk/security/arm-security/src/operations/allowedConnections.ts +++ b/sdk/security/arm-security/src/operations/allowedConnections.ts @@ -137,11 +137,7 @@ export class AllowedConnectionsImpl implements AllowedConnections { yield page; } while (continuationToken) { - result = await this._listByHomeRegionNext( - ascLocation, - continuationToken, - options, - ); + result = await this._listByHomeRegionNext(ascLocation, continuationToken, options); continuationToken = result.nextLink; let page = result.value || []; setContinuationToken(page, continuationToken); @@ -153,10 +149,7 @@ export class AllowedConnectionsImpl implements AllowedConnections { ascLocation: string, options?: AllowedConnectionsListByHomeRegionOptionalParams, ): AsyncIterableIterator { - for await (const page of this.listByHomeRegionPagingPage( - ascLocation, - options, - )) { + for await (const page of this.listByHomeRegionPagingPage(ascLocation, options)) { yield* page; } } @@ -218,10 +211,7 @@ export class AllowedConnectionsImpl implements AllowedConnections { nextLink: string, options?: AllowedConnectionsListNextOptionalParams, ): Promise { - return this.client.sendOperationRequest( - { nextLink, options }, - listNextOperationSpec, - ); + return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec); } /** @@ -273,11 +263,7 @@ const listByHomeRegionOperationSpec: coreClient.OperationSpec = { }, }, queryParameters: [Parameters.apiVersion20], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.ascLocation, - ], + urlParameters: [Parameters.$host, Parameters.subscriptionId, Parameters.ascLocation], headerParameters: [Parameters.accept], serializer, }; @@ -314,11 +300,7 @@ const listNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError, }, }, - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.nextLink, - ], + urlParameters: [Parameters.$host, Parameters.subscriptionId, Parameters.nextLink], headerParameters: [Parameters.accept], serializer, }; diff --git a/sdk/security/arm-security/src/operations/applicationOperations.ts b/sdk/security/arm-security/src/operations/applicationOperations.ts index 8cab2942a61c..18a3f7c63983 100644 --- a/sdk/security/arm-security/src/operations/applicationOperations.ts +++ b/sdk/security/arm-security/src/operations/applicationOperations.ts @@ -41,10 +41,7 @@ export class ApplicationOperationsImpl implements ApplicationOperations { applicationId: string, options?: ApplicationGetOptionalParams, ): Promise { - return this.client.sendOperationRequest( - { applicationId, options }, - getOperationSpec, - ); + return this.client.sendOperationRequest({ applicationId, options }, getOperationSpec); } /** @@ -69,14 +66,8 @@ export class ApplicationOperationsImpl implements ApplicationOperations { * @param applicationId The security Application key - unique key for the standard application * @param options The options parameters. */ - delete( - applicationId: string, - options?: ApplicationDeleteOptionalParams, - ): Promise { - return this.client.sendOperationRequest( - { applicationId, options }, - deleteOperationSpec, - ); + delete(applicationId: string, options?: ApplicationDeleteOptionalParams): Promise { + return this.client.sendOperationRequest({ applicationId, options }, deleteOperationSpec); } } // Operation Specifications @@ -93,12 +84,8 @@ const getOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError, }, }, - queryParameters: [Parameters.apiVersion9], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.applicationId, - ], + queryParameters: [Parameters.apiVersion8], + urlParameters: [Parameters.$host, Parameters.subscriptionId, Parameters.applicationId], headerParameters: [Parameters.accept], serializer, }; @@ -117,12 +104,8 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, }, requestBody: Parameters.application, - queryParameters: [Parameters.apiVersion9], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.applicationId, - ], + queryParameters: [Parameters.apiVersion8], + urlParameters: [Parameters.$host, Parameters.subscriptionId, Parameters.applicationId], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer, @@ -131,11 +114,7 @@ const deleteOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/providers/Microsoft.Security/applications/{applicationId}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: {} }, - queryParameters: [Parameters.apiVersion9], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.applicationId, - ], + queryParameters: [Parameters.apiVersion8], + urlParameters: [Parameters.$host, Parameters.subscriptionId, Parameters.applicationId], serializer, }; diff --git a/sdk/security/arm-security/src/operations/applications.ts b/sdk/security/arm-security/src/operations/applications.ts index 083d1695d3d0..7a4f5de86942 100644 --- a/sdk/security/arm-security/src/operations/applications.ts +++ b/sdk/security/arm-security/src/operations/applications.ts @@ -38,9 +38,7 @@ export class ApplicationsImpl implements Applications { * Get a list of all relevant applications over a subscription level scope * @param options The options parameters. */ - public list( - options?: ApplicationsListOptionalParams, - ): PagedAsyncIterableIterator { + public list(options?: ApplicationsListOptionalParams): PagedAsyncIterableIterator { const iter = this.listPagingAll(options); return { next() { @@ -92,9 +90,7 @@ export class ApplicationsImpl implements Applications { * Get a list of all relevant applications over a subscription level scope * @param options The options parameters. */ - private _list( - options?: ApplicationsListOptionalParams, - ): Promise { + private _list(options?: ApplicationsListOptionalParams): Promise { return this.client.sendOperationRequest({ options }, listOperationSpec); } @@ -107,10 +103,7 @@ export class ApplicationsImpl implements Applications { nextLink: string, options?: ApplicationsListNextOptionalParams, ): Promise { - return this.client.sendOperationRequest( - { nextLink, options }, - listNextOperationSpec, - ); + return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec); } } // Operation Specifications @@ -127,7 +120,7 @@ const listOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError, }, }, - queryParameters: [Parameters.apiVersion9], + queryParameters: [Parameters.apiVersion8], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], serializer, @@ -143,11 +136,7 @@ const listNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError, }, }, - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.nextLink, - ], + urlParameters: [Parameters.$host, Parameters.subscriptionId, Parameters.nextLink], headerParameters: [Parameters.accept], serializer, }; diff --git a/sdk/security/arm-security/src/operations/assessments.ts b/sdk/security/arm-security/src/operations/assessments.ts index c547e64909e7..f25613e4d4aa 100644 --- a/sdk/security/arm-security/src/operations/assessments.ts +++ b/sdk/security/arm-security/src/operations/assessments.ts @@ -111,10 +111,7 @@ export class AssessmentsImpl implements Assessments { scope: string, options?: AssessmentsListOptionalParams, ): Promise { - return this.client.sendOperationRequest( - { scope, options }, - listOperationSpec, - ); + return this.client.sendOperationRequest({ scope, options }, listOperationSpec); } /** @@ -185,10 +182,7 @@ export class AssessmentsImpl implements Assessments { nextLink: string, options?: AssessmentsListNextOptionalParams, ): Promise { - return this.client.sendOperationRequest( - { scope, nextLink, options }, - listNextOperationSpec, - ); + return this.client.sendOperationRequest({ scope, nextLink, options }, listNextOperationSpec); } } // Operation Specifications @@ -222,11 +216,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, }, queryParameters: [Parameters.apiVersion21, Parameters.expand1], - urlParameters: [ - Parameters.$host, - Parameters.assessmentName, - Parameters.resourceId, - ], + urlParameters: [Parameters.$host, Parameters.assessmentName, Parameters.resourceId], headerParameters: [Parameters.accept], serializer, }; @@ -246,11 +236,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, requestBody: Parameters.assessment, queryParameters: [Parameters.apiVersion21], - urlParameters: [ - Parameters.$host, - Parameters.assessmentName, - Parameters.resourceId, - ], + urlParameters: [Parameters.$host, Parameters.assessmentName, Parameters.resourceId], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer, @@ -266,11 +252,7 @@ const deleteOperationSpec: coreClient.OperationSpec = { }, }, queryParameters: [Parameters.apiVersion21], - urlParameters: [ - Parameters.$host, - Parameters.assessmentName, - Parameters.resourceId, - ], + urlParameters: [Parameters.$host, Parameters.assessmentName, Parameters.resourceId], headerParameters: [Parameters.accept], serializer, }; diff --git a/sdk/security/arm-security/src/operations/assessmentsMetadata.ts b/sdk/security/arm-security/src/operations/assessmentsMetadata.ts index 1a88315798e8..0c68e2503a57 100644 --- a/sdk/security/arm-security/src/operations/assessmentsMetadata.ts +++ b/sdk/security/arm-security/src/operations/assessmentsMetadata.ts @@ -172,10 +172,7 @@ export class AssessmentsMetadataImpl implements AssessmentsMetadata { assessmentMetadataName: string, options?: AssessmentsMetadataGetOptionalParams, ): Promise { - return this.client.sendOperationRequest( - { assessmentMetadataName, options }, - getOperationSpec, - ); + return this.client.sendOperationRequest({ assessmentMetadataName, options }, getOperationSpec); } /** @@ -185,10 +182,7 @@ export class AssessmentsMetadataImpl implements AssessmentsMetadata { private _listBySubscription( options?: AssessmentsMetadataListBySubscriptionOptionalParams, ): Promise { - return this.client.sendOperationRequest( - { options }, - listBySubscriptionOperationSpec, - ); + return this.client.sendOperationRequest({ options }, listBySubscriptionOperationSpec); } /** @@ -248,10 +242,7 @@ export class AssessmentsMetadataImpl implements AssessmentsMetadata { nextLink: string, options?: AssessmentsMetadataListNextOptionalParams, ): Promise { - return this.client.sendOperationRequest( - { nextLink, options }, - listNextOperationSpec, - ); + return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec); } /** @@ -332,11 +323,7 @@ const getInSubscriptionOperationSpec: coreClient.OperationSpec = { }, }, queryParameters: [Parameters.apiVersion21], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.assessmentMetadataName, - ], + urlParameters: [Parameters.$host, Parameters.subscriptionId, Parameters.assessmentMetadataName], headerParameters: [Parameters.accept], serializer, }; @@ -353,11 +340,7 @@ const createInSubscriptionOperationSpec: coreClient.OperationSpec = { }, requestBody: Parameters.assessmentMetadata, queryParameters: [Parameters.apiVersion21], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.assessmentMetadataName, - ], + urlParameters: [Parameters.$host, Parameters.subscriptionId, Parameters.assessmentMetadataName], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer, @@ -372,11 +355,7 @@ const deleteInSubscriptionOperationSpec: coreClient.OperationSpec = { }, }, queryParameters: [Parameters.apiVersion21], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.assessmentMetadataName, - ], + urlParameters: [Parameters.$host, Parameters.subscriptionId, Parameters.assessmentMetadataName], headerParameters: [Parameters.accept], serializer, }; @@ -406,11 +385,7 @@ const listBySubscriptionNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError, }, }, - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.nextLink, - ], + urlParameters: [Parameters.$host, Parameters.subscriptionId, Parameters.nextLink], headerParameters: [Parameters.accept], serializer, }; diff --git a/sdk/security/arm-security/src/operations/autoProvisioningSettings.ts b/sdk/security/arm-security/src/operations/autoProvisioningSettings.ts index 98c274fa3a87..b0d4700a5b96 100644 --- a/sdk/security/arm-security/src/operations/autoProvisioningSettings.ts +++ b/sdk/security/arm-security/src/operations/autoProvisioningSettings.ts @@ -111,10 +111,7 @@ export class AutoProvisioningSettingsImpl implements AutoProvisioningSettings { settingName: string, options?: AutoProvisioningSettingsGetOptionalParams, ): Promise { - return this.client.sendOperationRequest( - { settingName, options }, - getOperationSpec, - ); + return this.client.sendOperationRequest({ settingName, options }, getOperationSpec); } /** @@ -128,10 +125,7 @@ export class AutoProvisioningSettingsImpl implements AutoProvisioningSettings { setting: AutoProvisioningSetting, options?: AutoProvisioningSettingsCreateOptionalParams, ): Promise { - return this.client.sendOperationRequest( - { settingName, setting, options }, - createOperationSpec, - ); + return this.client.sendOperationRequest({ settingName, setting, options }, createOperationSpec); } /** @@ -143,10 +137,7 @@ export class AutoProvisioningSettingsImpl implements AutoProvisioningSettings { nextLink: string, options?: AutoProvisioningSettingsListNextOptionalParams, ): Promise { - return this.client.sendOperationRequest( - { nextLink, options }, - listNextOperationSpec, - ); + return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec); } } // Operation Specifications @@ -180,11 +171,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, }, queryParameters: [Parameters.apiVersion1], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.settingName, - ], + urlParameters: [Parameters.$host, Parameters.subscriptionId, Parameters.settingName], headerParameters: [Parameters.accept], serializer, }; @@ -201,11 +188,7 @@ const createOperationSpec: coreClient.OperationSpec = { }, requestBody: Parameters.setting, queryParameters: [Parameters.apiVersion1], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.settingName, - ], + urlParameters: [Parameters.$host, Parameters.subscriptionId, Parameters.settingName], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer, @@ -221,11 +204,7 @@ const listNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError, }, }, - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.nextLink, - ], + urlParameters: [Parameters.$host, Parameters.subscriptionId, Parameters.nextLink], headerParameters: [Parameters.accept], serializer, }; diff --git a/sdk/security/arm-security/src/operations/automations.ts b/sdk/security/arm-security/src/operations/automations.ts index 7bfc56636e54..5472bec2006e 100644 --- a/sdk/security/arm-security/src/operations/automations.ts +++ b/sdk/security/arm-security/src/operations/automations.ts @@ -53,9 +53,7 @@ export class AutomationsImpl implements Automations { * response to get the next page of security automations for the specified subscription. * @param options The options parameters. */ - public list( - options?: AutomationsListOptionalParams, - ): PagedAsyncIterableIterator { + public list(options?: AutomationsListOptionalParams): PagedAsyncIterableIterator { const iter = this.listPagingAll(options); return { next() { @@ -126,11 +124,7 @@ export class AutomationsImpl implements Automations { if (settings?.maxPageSize) { throw new Error("maxPageSize is not supported by this operation."); } - return this.listByResourceGroupPagingPage( - resourceGroupName, - options, - settings, - ); + return this.listByResourceGroupPagingPage(resourceGroupName, options, settings); }, }; } @@ -150,11 +144,7 @@ export class AutomationsImpl implements Automations { yield page; } while (continuationToken) { - result = await this._listByResourceGroupNext( - resourceGroupName, - continuationToken, - options, - ); + result = await this._listByResourceGroupNext(resourceGroupName, continuationToken, options); continuationToken = result.nextLink; let page = result.value || []; setContinuationToken(page, continuationToken); @@ -166,10 +156,7 @@ export class AutomationsImpl implements Automations { resourceGroupName: string, options?: AutomationsListByResourceGroupOptionalParams, ): AsyncIterableIterator { - for await (const page of this.listByResourceGroupPagingPage( - resourceGroupName, - options, - )) { + for await (const page of this.listByResourceGroupPagingPage(resourceGroupName, options)) { yield* page; } } @@ -179,9 +166,7 @@ export class AutomationsImpl implements Automations { * response to get the next page of security automations for the specified subscription. * @param options The options parameters. */ - private _list( - options?: AutomationsListOptionalParams, - ): Promise { + private _list(options?: AutomationsListOptionalParams): Promise { return this.client.sendOperationRequest({ options }, listOperationSpec); } @@ -309,10 +294,7 @@ export class AutomationsImpl implements Automations { nextLink: string, options?: AutomationsListNextOptionalParams, ): Promise { - return this.client.sendOperationRequest( - { nextLink, options }, - listNextOperationSpec, - ); + return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec); } /** @@ -347,7 +329,7 @@ const listOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError, }, }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion13], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], serializer, @@ -363,12 +345,8 @@ const listByResourceGroupOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError, }, }, - queryParameters: [Parameters.apiVersion3], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - ], + queryParameters: [Parameters.apiVersion13], + urlParameters: [Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName], headerParameters: [Parameters.accept], serializer, }; @@ -383,7 +361,7 @@ const getOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError, }, }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion13], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -408,7 +386,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, }, requestBody: Parameters.automation, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion13], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -431,7 +409,7 @@ const updateOperationSpec: coreClient.OperationSpec = { }, }, requestBody: Parameters.automation1, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion13], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -452,7 +430,7 @@ const deleteOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError, }, }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion13], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -474,7 +452,7 @@ const validateOperationSpec: coreClient.OperationSpec = { }, }, requestBody: Parameters.automation, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion13], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -496,11 +474,7 @@ const listNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError, }, }, - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.nextLink, - ], + urlParameters: [Parameters.$host, Parameters.subscriptionId, Parameters.nextLink], headerParameters: [Parameters.accept], serializer, }; diff --git a/sdk/security/arm-security/src/operations/azureDevOpsOrgs.ts b/sdk/security/arm-security/src/operations/azureDevOpsOrgs.ts index 8ca1c0c1d155..350fa8843e49 100644 --- a/sdk/security/arm-security/src/operations/azureDevOpsOrgs.ts +++ b/sdk/security/arm-security/src/operations/azureDevOpsOrgs.ts @@ -13,11 +13,7 @@ import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers.js"; import * as Parameters from "../models/parameters.js"; import { SecurityCenter } from "../securityCenter.js"; -import { - SimplePollerLike, - OperationState, - createHttpPoller, -} from "@azure/core-lro"; +import { SimplePollerLike, OperationState, createHttpPoller } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl.js"; import { AzureDevOpsOrg, @@ -59,11 +55,7 @@ export class AzureDevOpsOrgsImpl implements AzureDevOpsOrgs { securityConnectorName: string, options?: AzureDevOpsOrgsListOptionalParams, ): PagedAsyncIterableIterator { - const iter = this.listPagingAll( - resourceGroupName, - securityConnectorName, - options, - ); + const iter = this.listPagingAll(resourceGroupName, securityConnectorName, options); return { next() { return iter.next(); @@ -75,12 +67,7 @@ export class AzureDevOpsOrgsImpl implements AzureDevOpsOrgs { if (settings?.maxPageSize) { throw new Error("maxPageSize is not supported by this operation."); } - return this.listPagingPage( - resourceGroupName, - securityConnectorName, - options, - settings, - ); + return this.listPagingPage(resourceGroupName, securityConnectorName, options, settings); }, }; } @@ -94,11 +81,7 @@ export class AzureDevOpsOrgsImpl implements AzureDevOpsOrgs { let result: AzureDevOpsOrgsListResponse; let continuationToken = settings?.continuationToken; if (!continuationToken) { - result = await this._list( - resourceGroupName, - securityConnectorName, - options, - ); + result = await this._list(resourceGroupName, securityConnectorName, options); let page = result.value || []; continuationToken = result.nextLink; setContinuationToken(page, continuationToken); @@ -216,8 +199,7 @@ export class AzureDevOpsOrgsImpl implements AzureDevOpsOrgs { args: coreClient.OperationArguments, spec: coreClient.OperationSpec, ) => { - let currentRawResponse: coreClient.FullOperationResponse | undefined = - undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, @@ -307,10 +289,7 @@ export class AzureDevOpsOrgsImpl implements AzureDevOpsOrgs { azureDevOpsOrg: AzureDevOpsOrg, options?: AzureDevOpsOrgsUpdateOptionalParams, ): Promise< - SimplePollerLike< - OperationState, - AzureDevOpsOrgsUpdateResponse - > + SimplePollerLike, AzureDevOpsOrgsUpdateResponse> > { const directSendOperation = async ( args: coreClient.OperationArguments, @@ -322,8 +301,7 @@ export class AzureDevOpsOrgsImpl implements AzureDevOpsOrgs { args: coreClient.OperationArguments, spec: coreClient.OperationSpec, ) => { - let currentRawResponse: coreClient.FullOperationResponse | undefined = - undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, @@ -428,10 +406,10 @@ const listAvailableOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.AzureDevOpsOrgListResponse, }, default: { - bodyMapper: Mappers.ErrorResponseAutoGenerated, + bodyMapper: Mappers.ErrorResponseAutoGenerated2, }, }, - queryParameters: [Parameters.apiVersion15], + queryParameters: [Parameters.apiVersion28], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -449,10 +427,10 @@ const listOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.AzureDevOpsOrgListResponse, }, default: { - bodyMapper: Mappers.ErrorResponseAutoGenerated, + bodyMapper: Mappers.ErrorResponseAutoGenerated2, }, }, - queryParameters: [Parameters.apiVersion15], + queryParameters: [Parameters.apiVersion28], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -470,10 +448,10 @@ const getOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.AzureDevOpsOrg, }, default: { - bodyMapper: Mappers.ErrorResponseAutoGenerated, + bodyMapper: Mappers.ErrorResponseAutoGenerated2, }, }, - queryParameters: [Parameters.apiVersion15], + queryParameters: [Parameters.apiVersion28], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -501,11 +479,11 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.AzureDevOpsOrg, }, default: { - bodyMapper: Mappers.ErrorResponseAutoGenerated, + bodyMapper: Mappers.ErrorResponseAutoGenerated2, }, }, requestBody: Parameters.azureDevOpsOrg, - queryParameters: [Parameters.apiVersion15], + queryParameters: [Parameters.apiVersion28], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -534,11 +512,11 @@ const updateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.AzureDevOpsOrg, }, default: { - bodyMapper: Mappers.ErrorResponseAutoGenerated, + bodyMapper: Mappers.ErrorResponseAutoGenerated2, }, }, requestBody: Parameters.azureDevOpsOrg, - queryParameters: [Parameters.apiVersion15], + queryParameters: [Parameters.apiVersion28], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -558,7 +536,7 @@ const listNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.AzureDevOpsOrgListResponse, }, default: { - bodyMapper: Mappers.ErrorResponseAutoGenerated, + bodyMapper: Mappers.ErrorResponseAutoGenerated2, }, }, urlParameters: [ diff --git a/sdk/security/arm-security/src/operations/azureDevOpsProjects.ts b/sdk/security/arm-security/src/operations/azureDevOpsProjects.ts index edbb54053764..89cf46a5293f 100644 --- a/sdk/security/arm-security/src/operations/azureDevOpsProjects.ts +++ b/sdk/security/arm-security/src/operations/azureDevOpsProjects.ts @@ -13,11 +13,7 @@ import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers.js"; import * as Parameters from "../models/parameters.js"; import { SecurityCenter } from "../securityCenter.js"; -import { - SimplePollerLike, - OperationState, - createHttpPoller, -} from "@azure/core-lro"; +import { SimplePollerLike, OperationState, createHttpPoller } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl.js"; import { AzureDevOpsProject, @@ -59,12 +55,7 @@ export class AzureDevOpsProjectsImpl implements AzureDevOpsProjects { orgName: string, options?: AzureDevOpsProjectsListOptionalParams, ): PagedAsyncIterableIterator { - const iter = this.listPagingAll( - resourceGroupName, - securityConnectorName, - orgName, - options, - ); + const iter = this.listPagingAll(resourceGroupName, securityConnectorName, orgName, options); return { next() { return iter.next(); @@ -97,12 +88,7 @@ export class AzureDevOpsProjectsImpl implements AzureDevOpsProjects { let result: AzureDevOpsProjectsListResponse; let continuationToken = settings?.continuationToken; if (!continuationToken) { - result = await this._list( - resourceGroupName, - securityConnectorName, - orgName, - options, - ); + result = await this._list(resourceGroupName, securityConnectorName, orgName, options); let page = result.value || []; continuationToken = result.nextLink; setContinuationToken(page, continuationToken); @@ -217,8 +203,7 @@ export class AzureDevOpsProjectsImpl implements AzureDevOpsProjects { args: coreClient.OperationArguments, spec: coreClient.OperationSpec, ) => { - let currentRawResponse: coreClient.FullOperationResponse | undefined = - undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, @@ -329,8 +314,7 @@ export class AzureDevOpsProjectsImpl implements AzureDevOpsProjects { args: coreClient.OperationArguments, spec: coreClient.OperationSpec, ) => { - let currentRawResponse: coreClient.FullOperationResponse | undefined = - undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, @@ -441,10 +425,10 @@ const listOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.AzureDevOpsProjectListResponse, }, default: { - bodyMapper: Mappers.ErrorResponseAutoGenerated, + bodyMapper: Mappers.ErrorResponseAutoGenerated2, }, }, - queryParameters: [Parameters.apiVersion15], + queryParameters: [Parameters.apiVersion28], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -463,10 +447,10 @@ const getOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.AzureDevOpsProject, }, default: { - bodyMapper: Mappers.ErrorResponseAutoGenerated, + bodyMapper: Mappers.ErrorResponseAutoGenerated2, }, }, - queryParameters: [Parameters.apiVersion15], + queryParameters: [Parameters.apiVersion28], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -495,11 +479,11 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.AzureDevOpsProject, }, default: { - bodyMapper: Mappers.ErrorResponseAutoGenerated, + bodyMapper: Mappers.ErrorResponseAutoGenerated2, }, }, requestBody: Parameters.azureDevOpsProject, - queryParameters: [Parameters.apiVersion15], + queryParameters: [Parameters.apiVersion28], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -529,11 +513,11 @@ const updateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.AzureDevOpsProject, }, default: { - bodyMapper: Mappers.ErrorResponseAutoGenerated, + bodyMapper: Mappers.ErrorResponseAutoGenerated2, }, }, requestBody: Parameters.azureDevOpsProject, - queryParameters: [Parameters.apiVersion15], + queryParameters: [Parameters.apiVersion28], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -554,7 +538,7 @@ const listNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.AzureDevOpsProjectListResponse, }, default: { - bodyMapper: Mappers.ErrorResponseAutoGenerated, + bodyMapper: Mappers.ErrorResponseAutoGenerated2, }, }, urlParameters: [ diff --git a/sdk/security/arm-security/src/operations/azureDevOpsRepos.ts b/sdk/security/arm-security/src/operations/azureDevOpsRepos.ts index 0d7c0cf99109..7ad98f13d75b 100644 --- a/sdk/security/arm-security/src/operations/azureDevOpsRepos.ts +++ b/sdk/security/arm-security/src/operations/azureDevOpsRepos.ts @@ -13,11 +13,7 @@ import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers.js"; import * as Parameters from "../models/parameters.js"; import { SecurityCenter } from "../securityCenter.js"; -import { - SimplePollerLike, - OperationState, - createHttpPoller, -} from "@azure/core-lro"; +import { SimplePollerLike, OperationState, createHttpPoller } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl.js"; import { AzureDevOpsRepository, @@ -239,8 +235,7 @@ export class AzureDevOpsReposImpl implements AzureDevOpsRepos { args: coreClient.OperationArguments, spec: coreClient.OperationSpec, ) => { - let currentRawResponse: coreClient.FullOperationResponse | undefined = - undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, @@ -342,10 +337,7 @@ export class AzureDevOpsReposImpl implements AzureDevOpsRepos { azureDevOpsRepository: AzureDevOpsRepository, options?: AzureDevOpsReposUpdateOptionalParams, ): Promise< - SimplePollerLike< - OperationState, - AzureDevOpsReposUpdateResponse - > + SimplePollerLike, AzureDevOpsReposUpdateResponse> > { const directSendOperation = async ( args: coreClient.OperationArguments, @@ -357,8 +349,7 @@ export class AzureDevOpsReposImpl implements AzureDevOpsRepos { args: coreClient.OperationArguments, spec: coreClient.OperationSpec, ) => { - let currentRawResponse: coreClient.FullOperationResponse | undefined = - undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, @@ -482,10 +473,10 @@ const listOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.AzureDevOpsRepositoryListResponse, }, default: { - bodyMapper: Mappers.ErrorResponseAutoGenerated, + bodyMapper: Mappers.ErrorResponseAutoGenerated2, }, }, - queryParameters: [Parameters.apiVersion15], + queryParameters: [Parameters.apiVersion28], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -505,10 +496,10 @@ const getOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.AzureDevOpsRepository, }, default: { - bodyMapper: Mappers.ErrorResponseAutoGenerated, + bodyMapper: Mappers.ErrorResponseAutoGenerated2, }, }, - queryParameters: [Parameters.apiVersion15], + queryParameters: [Parameters.apiVersion28], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -538,11 +529,11 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.AzureDevOpsRepository, }, default: { - bodyMapper: Mappers.ErrorResponseAutoGenerated, + bodyMapper: Mappers.ErrorResponseAutoGenerated2, }, }, requestBody: Parameters.azureDevOpsRepository, - queryParameters: [Parameters.apiVersion15], + queryParameters: [Parameters.apiVersion28], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -573,11 +564,11 @@ const updateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.AzureDevOpsRepository, }, default: { - bodyMapper: Mappers.ErrorResponseAutoGenerated, + bodyMapper: Mappers.ErrorResponseAutoGenerated2, }, }, requestBody: Parameters.azureDevOpsRepository, - queryParameters: [Parameters.apiVersion15], + queryParameters: [Parameters.apiVersion28], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -599,7 +590,7 @@ const listNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.AzureDevOpsRepositoryListResponse, }, default: { - bodyMapper: Mappers.ErrorResponseAutoGenerated, + bodyMapper: Mappers.ErrorResponseAutoGenerated2, }, }, urlParameters: [ diff --git a/sdk/security/arm-security/src/operations/complianceResults.ts b/sdk/security/arm-security/src/operations/complianceResults.ts index cc397acd3a06..624fa21fb3b8 100644 --- a/sdk/security/arm-security/src/operations/complianceResults.ts +++ b/sdk/security/arm-security/src/operations/complianceResults.ts @@ -107,10 +107,7 @@ export class ComplianceResultsImpl implements ComplianceResults { scope: string, options?: ComplianceResultsListOptionalParams, ): Promise { - return this.client.sendOperationRequest( - { scope, options }, - listOperationSpec, - ); + return this.client.sendOperationRequest({ scope, options }, listOperationSpec); } /** @@ -143,10 +140,7 @@ export class ComplianceResultsImpl implements ComplianceResults { nextLink: string, options?: ComplianceResultsListNextOptionalParams, ): Promise { - return this.client.sendOperationRequest( - { scope, nextLink, options }, - listNextOperationSpec, - ); + return this.client.sendOperationRequest({ scope, nextLink, options }, listNextOperationSpec); } } // Operation Specifications @@ -180,11 +174,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, }, queryParameters: [Parameters.apiVersion17], - urlParameters: [ - Parameters.$host, - Parameters.resourceId, - Parameters.complianceResultName, - ], + urlParameters: [Parameters.$host, Parameters.resourceId, Parameters.complianceResultName], headerParameters: [Parameters.accept], serializer, }; diff --git a/sdk/security/arm-security/src/operations/compliances.ts b/sdk/security/arm-security/src/operations/compliances.ts index ee30bb43fa92..5bf07fb6757d 100644 --- a/sdk/security/arm-security/src/operations/compliances.ts +++ b/sdk/security/arm-security/src/operations/compliances.ts @@ -107,10 +107,7 @@ export class CompliancesImpl implements Compliances { scope: string, options?: CompliancesListOptionalParams, ): Promise { - return this.client.sendOperationRequest( - { scope, options }, - listOperationSpec, - ); + return this.client.sendOperationRequest({ scope, options }, listOperationSpec); } /** @@ -126,10 +123,7 @@ export class CompliancesImpl implements Compliances { complianceName: string, options?: CompliancesGetOptionalParams, ): Promise { - return this.client.sendOperationRequest( - { scope, complianceName, options }, - getOperationSpec, - ); + return this.client.sendOperationRequest({ scope, complianceName, options }, getOperationSpec); } /** @@ -145,10 +139,7 @@ export class CompliancesImpl implements Compliances { nextLink: string, options?: CompliancesListNextOptionalParams, ): Promise { - return this.client.sendOperationRequest( - { scope, nextLink, options }, - listNextOperationSpec, - ); + return this.client.sendOperationRequest({ scope, nextLink, options }, listNextOperationSpec); } } // Operation Specifications @@ -182,11 +173,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, }, queryParameters: [Parameters.apiVersion1], - urlParameters: [ - Parameters.$host, - Parameters.scope, - Parameters.complianceName, - ], + urlParameters: [Parameters.$host, Parameters.scope, Parameters.complianceName], headerParameters: [Parameters.accept], serializer, }; diff --git a/sdk/security/arm-security/src/operations/connectors.ts b/sdk/security/arm-security/src/operations/connectors.ts index 12c330e19bae..313257e81f5c 100644 --- a/sdk/security/arm-security/src/operations/connectors.ts +++ b/sdk/security/arm-security/src/operations/connectors.ts @@ -97,9 +97,7 @@ export class ConnectorsImpl implements Connectors { * Cloud accounts connectors of a subscription * @param options The options parameters. */ - private _list( - options?: ConnectorsListOptionalParams, - ): Promise { + private _list(options?: ConnectorsListOptionalParams): Promise { return this.client.sendOperationRequest({ options }, listOperationSpec); } @@ -112,10 +110,7 @@ export class ConnectorsImpl implements Connectors { connectorName: string, options?: ConnectorsGetOptionalParams, ): Promise { - return this.client.sendOperationRequest( - { connectorName, options }, - getOperationSpec, - ); + return this.client.sendOperationRequest({ connectorName, options }, getOperationSpec); } /** @@ -142,14 +137,8 @@ export class ConnectorsImpl implements Connectors { * @param connectorName Name of the cloud account connector * @param options The options parameters. */ - delete( - connectorName: string, - options?: ConnectorsDeleteOptionalParams, - ): Promise { - return this.client.sendOperationRequest( - { connectorName, options }, - deleteOperationSpec, - ); + delete(connectorName: string, options?: ConnectorsDeleteOptionalParams): Promise { + return this.client.sendOperationRequest({ connectorName, options }, deleteOperationSpec); } /** @@ -161,10 +150,7 @@ export class ConnectorsImpl implements Connectors { nextLink: string, options?: ConnectorsListNextOptionalParams, ): Promise { - return this.client.sendOperationRequest( - { nextLink, options }, - listNextOperationSpec, - ); + return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec); } } // Operation Specifications @@ -181,7 +167,7 @@ const listOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError, }, }, - queryParameters: [Parameters.apiVersion4], + queryParameters: [Parameters.apiVersion3], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], serializer, @@ -197,12 +183,8 @@ const getOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError, }, }, - queryParameters: [Parameters.apiVersion4], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.connectorName, - ], + queryParameters: [Parameters.apiVersion3], + urlParameters: [Parameters.$host, Parameters.subscriptionId, Parameters.connectorName], headerParameters: [Parameters.accept], serializer, }; @@ -218,12 +200,8 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, }, requestBody: Parameters.connectorSetting, - queryParameters: [Parameters.apiVersion4], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.connectorName, - ], + queryParameters: [Parameters.apiVersion3], + urlParameters: [Parameters.$host, Parameters.subscriptionId, Parameters.connectorName], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer, @@ -238,12 +216,8 @@ const deleteOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError, }, }, - queryParameters: [Parameters.apiVersion4], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.connectorName, - ], + queryParameters: [Parameters.apiVersion3], + urlParameters: [Parameters.$host, Parameters.subscriptionId, Parameters.connectorName], headerParameters: [Parameters.accept], serializer, }; @@ -258,11 +232,7 @@ const listNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError, }, }, - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.nextLink, - ], + urlParameters: [Parameters.$host, Parameters.subscriptionId, Parameters.nextLink], headerParameters: [Parameters.accept], serializer, }; diff --git a/sdk/security/arm-security/src/operations/customAssessmentAutomations.ts b/sdk/security/arm-security/src/operations/customAssessmentAutomations.ts index b4c2f8350441..7df9c52df774 100644 --- a/sdk/security/arm-security/src/operations/customAssessmentAutomations.ts +++ b/sdk/security/arm-security/src/operations/customAssessmentAutomations.ts @@ -33,9 +33,7 @@ import { /// /** Class containing CustomAssessmentAutomations operations. */ -export class CustomAssessmentAutomationsImpl - implements CustomAssessmentAutomations -{ +export class CustomAssessmentAutomationsImpl implements CustomAssessmentAutomations { private readonly client: SecurityCenter; /** @@ -68,11 +66,7 @@ export class CustomAssessmentAutomationsImpl if (settings?.maxPageSize) { throw new Error("maxPageSize is not supported by this operation."); } - return this.listByResourceGroupPagingPage( - resourceGroupName, - options, - settings, - ); + return this.listByResourceGroupPagingPage(resourceGroupName, options, settings); }, }; } @@ -92,11 +86,7 @@ export class CustomAssessmentAutomationsImpl yield page; } while (continuationToken) { - result = await this._listByResourceGroupNext( - resourceGroupName, - continuationToken, - options, - ); + result = await this._listByResourceGroupNext(resourceGroupName, continuationToken, options); continuationToken = result.nextLink; let page = result.value || []; setContinuationToken(page, continuationToken); @@ -108,10 +98,7 @@ export class CustomAssessmentAutomationsImpl resourceGroupName: string, options?: CustomAssessmentAutomationsListByResourceGroupOptionalParams, ): AsyncIterableIterator { - for await (const page of this.listByResourceGroupPagingPage( - resourceGroupName, - options, - )) { + for await (const page of this.listByResourceGroupPagingPage(resourceGroupName, options)) { yield* page; } } @@ -255,10 +242,7 @@ export class CustomAssessmentAutomationsImpl private _listBySubscription( options?: CustomAssessmentAutomationsListBySubscriptionOptionalParams, ): Promise { - return this.client.sendOperationRequest( - { options }, - listBySubscriptionOperationSpec, - ); + return this.client.sendOperationRequest({ options }, listBySubscriptionOperationSpec); } /** @@ -308,7 +292,7 @@ const getOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError, }, }, - queryParameters: [Parameters.apiVersion6], + queryParameters: [Parameters.apiVersion5], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -333,7 +317,7 @@ const createOperationSpec: coreClient.OperationSpec = { }, }, requestBody: Parameters.customAssessmentAutomationBody, - queryParameters: [Parameters.apiVersion6], + queryParameters: [Parameters.apiVersion5], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -354,7 +338,7 @@ const deleteOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError, }, }, - queryParameters: [Parameters.apiVersion6], + queryParameters: [Parameters.apiVersion5], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -375,12 +359,8 @@ const listByResourceGroupOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError, }, }, - queryParameters: [Parameters.apiVersion6], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - ], + queryParameters: [Parameters.apiVersion5], + urlParameters: [Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName], headerParameters: [Parameters.accept], serializer, }; @@ -395,7 +375,7 @@ const listBySubscriptionOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError, }, }, - queryParameters: [Parameters.apiVersion6], + queryParameters: [Parameters.apiVersion5], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], serializer, @@ -431,11 +411,7 @@ const listBySubscriptionNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError, }, }, - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.nextLink, - ], + urlParameters: [Parameters.$host, Parameters.subscriptionId, Parameters.nextLink], headerParameters: [Parameters.accept], serializer, }; diff --git a/sdk/security/arm-security/src/operations/customEntityStoreAssignments.ts b/sdk/security/arm-security/src/operations/customEntityStoreAssignments.ts index f3b01f2f4bb1..84b2bf006a40 100644 --- a/sdk/security/arm-security/src/operations/customEntityStoreAssignments.ts +++ b/sdk/security/arm-security/src/operations/customEntityStoreAssignments.ts @@ -33,9 +33,7 @@ import { /// /** Class containing CustomEntityStoreAssignments operations. */ -export class CustomEntityStoreAssignmentsImpl - implements CustomEntityStoreAssignments -{ +export class CustomEntityStoreAssignmentsImpl implements CustomEntityStoreAssignments { private readonly client: SecurityCenter; /** @@ -68,11 +66,7 @@ export class CustomEntityStoreAssignmentsImpl if (settings?.maxPageSize) { throw new Error("maxPageSize is not supported by this operation."); } - return this.listByResourceGroupPagingPage( - resourceGroupName, - options, - settings, - ); + return this.listByResourceGroupPagingPage(resourceGroupName, options, settings); }, }; } @@ -92,11 +86,7 @@ export class CustomEntityStoreAssignmentsImpl yield page; } while (continuationToken) { - result = await this._listByResourceGroupNext( - resourceGroupName, - continuationToken, - options, - ); + result = await this._listByResourceGroupNext(resourceGroupName, continuationToken, options); continuationToken = result.nextLink; let page = result.value || []; setContinuationToken(page, continuationToken); @@ -108,10 +98,7 @@ export class CustomEntityStoreAssignmentsImpl resourceGroupName: string, options?: CustomEntityStoreAssignmentsListByResourceGroupOptionalParams, ): AsyncIterableIterator { - for await (const page of this.listByResourceGroupPagingPage( - resourceGroupName, - options, - )) { + for await (const page of this.listByResourceGroupPagingPage(resourceGroupName, options)) { yield* page; } } @@ -258,10 +245,7 @@ export class CustomEntityStoreAssignmentsImpl private _listBySubscription( options?: CustomEntityStoreAssignmentsListBySubscriptionOptionalParams, ): Promise { - return this.client.sendOperationRequest( - { options }, - listBySubscriptionOperationSpec, - ); + return this.client.sendOperationRequest({ options }, listBySubscriptionOperationSpec); } /** @@ -311,7 +295,7 @@ const getOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError, }, }, - queryParameters: [Parameters.apiVersion6], + queryParameters: [Parameters.apiVersion5], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -336,7 +320,7 @@ const createOperationSpec: coreClient.OperationSpec = { }, }, requestBody: Parameters.customEntityStoreAssignmentRequestBody, - queryParameters: [Parameters.apiVersion6], + queryParameters: [Parameters.apiVersion5], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -357,7 +341,7 @@ const deleteOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError, }, }, - queryParameters: [Parameters.apiVersion6], + queryParameters: [Parameters.apiVersion5], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -378,12 +362,8 @@ const listByResourceGroupOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError, }, }, - queryParameters: [Parameters.apiVersion6], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - ], + queryParameters: [Parameters.apiVersion5], + urlParameters: [Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName], headerParameters: [Parameters.accept], serializer, }; @@ -398,7 +378,7 @@ const listBySubscriptionOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError, }, }, - queryParameters: [Parameters.apiVersion6], + queryParameters: [Parameters.apiVersion5], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], serializer, @@ -434,11 +414,7 @@ const listBySubscriptionNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError, }, }, - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.nextLink, - ], + urlParameters: [Parameters.$host, Parameters.subscriptionId, Parameters.nextLink], headerParameters: [Parameters.accept], serializer, }; diff --git a/sdk/security/arm-security/src/operations/customRecommendations.ts b/sdk/security/arm-security/src/operations/customRecommendations.ts new file mode 100644 index 000000000000..4da1587e9f99 --- /dev/null +++ b/sdk/security/arm-security/src/operations/customRecommendations.ts @@ -0,0 +1,282 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper.js"; +import { CustomRecommendations } from "../operationsInterfaces/index.js"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { SecurityCenter } from "../securityCenter.js"; +import { + CustomRecommendation, + CustomRecommendationsListNextOptionalParams, + CustomRecommendationsListOptionalParams, + CustomRecommendationsListResponse, + CustomRecommendationsGetOptionalParams, + CustomRecommendationsGetResponse, + CustomRecommendationsCreateOrUpdateOptionalParams, + CustomRecommendationsCreateOrUpdateResponse, + CustomRecommendationsDeleteOptionalParams, + CustomRecommendationsListNextResponse, +} from "../models/index.js"; + +/// +/** Class containing CustomRecommendations operations. */ +export class CustomRecommendationsImpl implements CustomRecommendations { + private readonly client: SecurityCenter; + + /** + * Initialize a new instance of the class CustomRecommendations class. + * @param client Reference to the service client + */ + constructor(client: SecurityCenter) { + this.client = client; + } + + /** + * Get a list of all relevant custom recommendations over a scope + * @param scope The scope of the custom recommendation. Valid scopes are: management group (format: + * 'providers/Microsoft.Management/managementGroups/{managementGroup}'), subscription (format: + * 'subscriptions/{subscriptionId}'), or security connector (format: + * 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName})' + * @param options The options parameters. + */ + public list( + scope: string, + options?: CustomRecommendationsListOptionalParams, + ): PagedAsyncIterableIterator { + const iter = this.listPagingAll(scope, options); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listPagingPage(scope, options, settings); + }, + }; + } + + private async *listPagingPage( + scope: string, + options?: CustomRecommendationsListOptionalParams, + settings?: PageSettings, + ): AsyncIterableIterator { + let result: CustomRecommendationsListResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._list(scope, options); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listNext(scope, continuationToken, options); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listPagingAll( + scope: string, + options?: CustomRecommendationsListOptionalParams, + ): AsyncIterableIterator { + for await (const page of this.listPagingPage(scope, options)) { + yield* page; + } + } + + /** + * Get a list of all relevant custom recommendations over a scope + * @param scope The scope of the custom recommendation. Valid scopes are: management group (format: + * 'providers/Microsoft.Management/managementGroups/{managementGroup}'), subscription (format: + * 'subscriptions/{subscriptionId}'), or security connector (format: + * 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName})' + * @param options The options parameters. + */ + private _list( + scope: string, + options?: CustomRecommendationsListOptionalParams, + ): Promise { + return this.client.sendOperationRequest({ scope, options }, listOperationSpec); + } + + /** + * Get a specific custom recommendation for the requested scope by customRecommendationName + * @param scope The scope of the custom recommendation. Valid scopes are: management group (format: + * 'providers/Microsoft.Management/managementGroups/{managementGroup}'), subscription (format: + * 'subscriptions/{subscriptionId}'), or security connector (format: + * 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName})' + * @param customRecommendationName Name of the Custom Recommendation. + * @param options The options parameters. + */ + get( + scope: string, + customRecommendationName: string, + options?: CustomRecommendationsGetOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { scope, customRecommendationName, options }, + getOperationSpec, + ); + } + + /** + * Creates or updates a custom recommendation over a given scope + * @param scope The scope of the custom recommendation. Valid scopes are: management group (format: + * 'providers/Microsoft.Management/managementGroups/{managementGroup}'), subscription (format: + * 'subscriptions/{subscriptionId}'), or security connector (format: + * 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName})' + * @param customRecommendationName Name of the Custom Recommendation. + * @param customRecommendationBody Custom Recommendation body + * @param options The options parameters. + */ + createOrUpdate( + scope: string, + customRecommendationName: string, + customRecommendationBody: CustomRecommendation, + options?: CustomRecommendationsCreateOrUpdateOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { scope, customRecommendationName, customRecommendationBody, options }, + createOrUpdateOperationSpec, + ); + } + + /** + * Delete a custom recommendation over a given scope + * @param scope The scope of the custom recommendation. Valid scopes are: management group (format: + * 'providers/Microsoft.Management/managementGroups/{managementGroup}'), subscription (format: + * 'subscriptions/{subscriptionId}'), or security connector (format: + * 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName})' + * @param customRecommendationName Name of the Custom Recommendation. + * @param options The options parameters. + */ + delete( + scope: string, + customRecommendationName: string, + options?: CustomRecommendationsDeleteOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { scope, customRecommendationName, options }, + deleteOperationSpec, + ); + } + + /** + * ListNext + * @param scope The scope of the custom recommendation. Valid scopes are: management group (format: + * 'providers/Microsoft.Management/managementGroups/{managementGroup}'), subscription (format: + * 'subscriptions/{subscriptionId}'), or security connector (format: + * 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName})' + * @param nextLink The nextLink from the previous successful call to the List method. + * @param options The options parameters. + */ + private _listNext( + scope: string, + nextLink: string, + options?: CustomRecommendationsListNextOptionalParams, + ): Promise { + return this.client.sendOperationRequest({ scope, nextLink, options }, listNextOperationSpec); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listOperationSpec: coreClient.OperationSpec = { + path: "/{scope}/providers/Microsoft.Security/customRecommendations", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.CustomRecommendationsList, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion27], + urlParameters: [Parameters.$host, Parameters.scope1], + headerParameters: [Parameters.accept], + serializer, +}; +const getOperationSpec: coreClient.OperationSpec = { + path: "/{scope}/providers/Microsoft.Security/customRecommendations/{customRecommendationName}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.CustomRecommendation, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion27], + urlParameters: [Parameters.$host, Parameters.scope1, Parameters.customRecommendationName], + headerParameters: [Parameters.accept], + serializer, +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: "/{scope}/providers/Microsoft.Security/customRecommendations/{customRecommendationName}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.CustomRecommendation, + }, + 201: { + bodyMapper: Mappers.CustomRecommendation, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + requestBody: Parameters.customRecommendationBody, + queryParameters: [Parameters.apiVersion27], + urlParameters: [Parameters.$host, Parameters.scope1, Parameters.customRecommendationName], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer, +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: "/{scope}/providers/Microsoft.Security/customRecommendations/{customRecommendationName}", + httpMethod: "DELETE", + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion27], + urlParameters: [Parameters.$host, Parameters.scope1, Parameters.customRecommendationName], + headerParameters: [Parameters.accept], + serializer, +}; +const listNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.CustomRecommendationsList, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + urlParameters: [Parameters.$host, Parameters.nextLink, Parameters.scope1], + headerParameters: [Parameters.accept], + serializer, +}; diff --git a/sdk/security/arm-security/src/operations/defenderForStorage.ts b/sdk/security/arm-security/src/operations/defenderForStorage.ts index b4d72e4df0fb..04c9f1703247 100644 --- a/sdk/security/arm-security/src/operations/defenderForStorage.ts +++ b/sdk/security/arm-security/src/operations/defenderForStorage.ts @@ -18,6 +18,12 @@ import { DefenderForStorageSetting, DefenderForStorageCreateOptionalParams, DefenderForStorageCreateResponse, + DefenderForStorageStartMalwareScanOptionalParams, + DefenderForStorageStartMalwareScanResponse, + DefenderForStorageCancelMalwareScanOptionalParams, + DefenderForStorageCancelMalwareScanResponse, + DefenderForStorageGetMalwareScanOptionalParams, + DefenderForStorageGetMalwareScanResponse, } from "../models/index.js"; /** Class containing DefenderForStorage operations. */ @@ -43,10 +49,7 @@ export class DefenderForStorageImpl implements DefenderForStorage { settingName: SettingName, options?: DefenderForStorageGetOptionalParams, ): Promise { - return this.client.sendOperationRequest( - { resourceId, settingName, options }, - getOperationSpec, - ); + return this.client.sendOperationRequest({ resourceId, settingName, options }, getOperationSpec); } /** @@ -67,6 +70,61 @@ export class DefenderForStorageImpl implements DefenderForStorage { createOperationSpec, ); } + + /** + * Initiate a Defender for Storage malware scan for the specified storage account. + * @param resourceId The identifier of the resource. + * @param settingName Defender for Storage setting name. + * @param options The options parameters. + */ + startMalwareScan( + resourceId: string, + settingName: SettingName, + options?: DefenderForStorageStartMalwareScanOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceId, settingName, options }, + startMalwareScanOperationSpec, + ); + } + + /** + * Cancels a Defender for Storage malware scan for the specified storage account. + * @param resourceId The identifier of the resource. + * @param settingName Defender for Storage setting name. + * @param scanId The identifier of the scan. Can be either 'latest' or a GUID. + * @param options The options parameters. + */ + cancelMalwareScan( + resourceId: string, + settingName: SettingName, + scanId: string, + options?: DefenderForStorageCancelMalwareScanOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceId, settingName, scanId, options }, + cancelMalwareScanOperationSpec, + ); + } + + /** + * Gets the Defender for Storage malware scan for the specified storage resource. + * @param resourceId The identifier of the resource. + * @param settingName Defender for Storage setting name. + * @param scanId The identifier of the scan. Can be either 'latest' or a GUID. + * @param options The options parameters. + */ + getMalwareScan( + resourceId: string, + settingName: SettingName, + scanId: string, + options?: DefenderForStorageGetMalwareScanOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceId, settingName, scanId, options }, + getMalwareScanOperationSpec, + ); + } } // Operation Specifications const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); @@ -82,12 +140,8 @@ const getOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError, }, }, - queryParameters: [Parameters.apiVersion10], - urlParameters: [ - Parameters.$host, - Parameters.resourceId, - Parameters.settingName1, - ], + queryParameters: [Parameters.apiVersion16], + urlParameters: [Parameters.$host, Parameters.resourceId, Parameters.settingName1], headerParameters: [Parameters.accept], serializer, }; @@ -106,13 +160,67 @@ const createOperationSpec: coreClient.OperationSpec = { }, }, requestBody: Parameters.defenderForStorageSetting, - queryParameters: [Parameters.apiVersion10], + queryParameters: [Parameters.apiVersion16], + urlParameters: [Parameters.$host, Parameters.resourceId, Parameters.settingName1], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer, +}; +const startMalwareScanOperationSpec: coreClient.OperationSpec = { + path: "/{resourceId}/providers/Microsoft.Security/defenderForStorageSettings/{settingName}/startMalwareScan", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.MalwareScan, + }, + default: { + bodyMapper: Mappers.CloudError, + }, + }, + queryParameters: [Parameters.apiVersion16], + urlParameters: [Parameters.$host, Parameters.resourceId, Parameters.settingName1], + headerParameters: [Parameters.accept], + serializer, +}; +const cancelMalwareScanOperationSpec: coreClient.OperationSpec = { + path: "/{resourceId}/providers/Microsoft.Security/defenderForStorageSettings/{settingName}/malwareScans/{scanId}/cancelMalwareScan", + httpMethod: "POST", + responses: { + 200: { + bodyMapper: Mappers.MalwareScan, + }, + default: { + bodyMapper: Mappers.CloudError, + }, + }, + queryParameters: [Parameters.apiVersion16], urlParameters: [ Parameters.$host, Parameters.resourceId, Parameters.settingName1, + Parameters.scanId1, ], - headerParameters: [Parameters.accept, Parameters.contentType], - mediaType: "json", + headerParameters: [Parameters.accept], + serializer, +}; +const getMalwareScanOperationSpec: coreClient.OperationSpec = { + path: "/{resourceId}/providers/Microsoft.Security/defenderForStorageSettings/{settingName}/malwareScans/{scanId}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.MalwareScan, + }, + default: { + bodyMapper: Mappers.CloudError, + }, + }, + queryParameters: [Parameters.apiVersion16], + urlParameters: [ + Parameters.$host, + Parameters.resourceId, + Parameters.settingName1, + Parameters.scanId1, + ], + headerParameters: [Parameters.accept], serializer, }; diff --git a/sdk/security/arm-security/src/operations/devOpsConfigurations.ts b/sdk/security/arm-security/src/operations/devOpsConfigurations.ts index 16a75bc6e087..21fc94b978b1 100644 --- a/sdk/security/arm-security/src/operations/devOpsConfigurations.ts +++ b/sdk/security/arm-security/src/operations/devOpsConfigurations.ts @@ -13,11 +13,7 @@ import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers.js"; import * as Parameters from "../models/parameters.js"; import { SecurityCenter } from "../securityCenter.js"; -import { - SimplePollerLike, - OperationState, - createHttpPoller, -} from "@azure/core-lro"; +import { SimplePollerLike, OperationState, createHttpPoller } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl.js"; import { DevOpsConfiguration, @@ -58,11 +54,7 @@ export class DevOpsConfigurationsImpl implements DevOpsConfigurations { securityConnectorName: string, options?: DevOpsConfigurationsListOptionalParams, ): PagedAsyncIterableIterator { - const iter = this.listPagingAll( - resourceGroupName, - securityConnectorName, - options, - ); + const iter = this.listPagingAll(resourceGroupName, securityConnectorName, options); return { next() { return iter.next(); @@ -74,12 +66,7 @@ export class DevOpsConfigurationsImpl implements DevOpsConfigurations { if (settings?.maxPageSize) { throw new Error("maxPageSize is not supported by this operation."); } - return this.listPagingPage( - resourceGroupName, - securityConnectorName, - options, - settings, - ); + return this.listPagingPage(resourceGroupName, securityConnectorName, options, settings); }, }; } @@ -93,11 +80,7 @@ export class DevOpsConfigurationsImpl implements DevOpsConfigurations { let result: DevOpsConfigurationsListResponse; let continuationToken = settings?.continuationToken; if (!continuationToken) { - result = await this._list( - resourceGroupName, - securityConnectorName, - options, - ); + result = await this._list(resourceGroupName, securityConnectorName, options); let page = result.value || []; continuationToken = result.nextLink; setContinuationToken(page, continuationToken); @@ -193,8 +176,7 @@ export class DevOpsConfigurationsImpl implements DevOpsConfigurations { args: coreClient.OperationArguments, spec: coreClient.OperationSpec, ) => { - let currentRawResponse: coreClient.FullOperationResponse | undefined = - undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, @@ -293,8 +275,7 @@ export class DevOpsConfigurationsImpl implements DevOpsConfigurations { args: coreClient.OperationArguments, spec: coreClient.OperationSpec, ) => { - let currentRawResponse: coreClient.FullOperationResponse | undefined = - undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, @@ -386,8 +367,7 @@ export class DevOpsConfigurationsImpl implements DevOpsConfigurations { args: coreClient.OperationArguments, spec: coreClient.OperationSpec, ) => { - let currentRawResponse: coreClient.FullOperationResponse | undefined = - undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, @@ -438,11 +418,7 @@ export class DevOpsConfigurationsImpl implements DevOpsConfigurations { securityConnectorName: string, options?: DevOpsConfigurationsDeleteOptionalParams, ): Promise { - const poller = await this.beginDelete( - resourceGroupName, - securityConnectorName, - options, - ); + const poller = await this.beginDelete(resourceGroupName, securityConnectorName, options); return poller.pollUntilDone(); } @@ -476,10 +452,10 @@ const listOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.DevOpsConfigurationListResponse, }, default: { - bodyMapper: Mappers.ErrorResponseAutoGenerated, + bodyMapper: Mappers.ErrorResponseAutoGenerated2, }, }, - queryParameters: [Parameters.apiVersion15], + queryParameters: [Parameters.apiVersion28], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -497,10 +473,10 @@ const getOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.DevOpsConfiguration, }, default: { - bodyMapper: Mappers.ErrorResponseAutoGenerated, + bodyMapper: Mappers.ErrorResponseAutoGenerated2, }, }, - queryParameters: [Parameters.apiVersion15], + queryParameters: [Parameters.apiVersion28], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -527,11 +503,11 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.DevOpsConfiguration, }, default: { - bodyMapper: Mappers.ErrorResponseAutoGenerated, + bodyMapper: Mappers.ErrorResponseAutoGenerated2, }, }, requestBody: Parameters.devOpsConfiguration, - queryParameters: [Parameters.apiVersion15], + queryParameters: [Parameters.apiVersion28], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -559,11 +535,11 @@ const updateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.DevOpsConfiguration, }, default: { - bodyMapper: Mappers.ErrorResponseAutoGenerated, + bodyMapper: Mappers.ErrorResponseAutoGenerated2, }, }, requestBody: Parameters.devOpsConfiguration, - queryParameters: [Parameters.apiVersion15], + queryParameters: [Parameters.apiVersion28], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -583,10 +559,10 @@ const deleteOperationSpec: coreClient.OperationSpec = { 202: {}, 204: {}, default: { - bodyMapper: Mappers.ErrorResponseAutoGenerated, + bodyMapper: Mappers.ErrorResponseAutoGenerated2, }, }, - queryParameters: [Parameters.apiVersion15], + queryParameters: [Parameters.apiVersion28], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -604,7 +580,7 @@ const listNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.DevOpsConfigurationListResponse, }, default: { - bodyMapper: Mappers.ErrorResponseAutoGenerated, + bodyMapper: Mappers.ErrorResponseAutoGenerated2, }, }, urlParameters: [ diff --git a/sdk/security/arm-security/src/operations/devOpsOperationResults.ts b/sdk/security/arm-security/src/operations/devOpsOperationResults.ts index aae18df5e92c..87d95e1cc06c 100644 --- a/sdk/security/arm-security/src/operations/devOpsOperationResults.ts +++ b/sdk/security/arm-security/src/operations/devOpsOperationResults.ts @@ -58,10 +58,10 @@ const getOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.OperationStatusResult, }, default: { - bodyMapper: Mappers.ErrorResponseAutoGenerated, + bodyMapper: Mappers.ErrorResponseAutoGenerated2, }, }, - queryParameters: [Parameters.apiVersion15], + queryParameters: [Parameters.apiVersion28], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/security/arm-security/src/operations/deviceSecurityGroups.ts b/sdk/security/arm-security/src/operations/deviceSecurityGroups.ts index 14e3671c53a9..aa3aee9739d8 100644 --- a/sdk/security/arm-security/src/operations/deviceSecurityGroups.ts +++ b/sdk/security/arm-security/src/operations/deviceSecurityGroups.ts @@ -106,10 +106,7 @@ export class DeviceSecurityGroupsImpl implements DeviceSecurityGroups { resourceId: string, options?: DeviceSecurityGroupsListOptionalParams, ): Promise { - return this.client.sendOperationRequest( - { resourceId, options }, - listOperationSpec, - ); + return this.client.sendOperationRequest({ resourceId, options }, listOperationSpec); } /** @@ -216,11 +213,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, }, queryParameters: [Parameters.apiVersion19], - urlParameters: [ - Parameters.$host, - Parameters.resourceId, - Parameters.deviceSecurityGroupName, - ], + urlParameters: [Parameters.$host, Parameters.resourceId, Parameters.deviceSecurityGroupName], headerParameters: [Parameters.accept], serializer, }; @@ -240,11 +233,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, requestBody: Parameters.deviceSecurityGroup, queryParameters: [Parameters.apiVersion19], - urlParameters: [ - Parameters.$host, - Parameters.resourceId, - Parameters.deviceSecurityGroupName, - ], + urlParameters: [Parameters.$host, Parameters.resourceId, Parameters.deviceSecurityGroupName], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer, @@ -260,11 +249,7 @@ const deleteOperationSpec: coreClient.OperationSpec = { }, }, queryParameters: [Parameters.apiVersion19], - urlParameters: [ - Parameters.$host, - Parameters.resourceId, - Parameters.deviceSecurityGroupName, - ], + urlParameters: [Parameters.$host, Parameters.resourceId, Parameters.deviceSecurityGroupName], headerParameters: [Parameters.accept], serializer, }; diff --git a/sdk/security/arm-security/src/operations/discoveredSecuritySolutions.ts b/sdk/security/arm-security/src/operations/discoveredSecuritySolutions.ts index 2ae27ea3ecb1..c50ad4d3f0b7 100644 --- a/sdk/security/arm-security/src/operations/discoveredSecuritySolutions.ts +++ b/sdk/security/arm-security/src/operations/discoveredSecuritySolutions.ts @@ -29,9 +29,7 @@ import { /// /** Class containing DiscoveredSecuritySolutions operations. */ -export class DiscoveredSecuritySolutionsImpl - implements DiscoveredSecuritySolutions -{ +export class DiscoveredSecuritySolutionsImpl implements DiscoveredSecuritySolutions { private readonly client: SecurityCenter; /** @@ -138,11 +136,7 @@ export class DiscoveredSecuritySolutionsImpl yield page; } while (continuationToken) { - result = await this._listByHomeRegionNext( - ascLocation, - continuationToken, - options, - ); + result = await this._listByHomeRegionNext(ascLocation, continuationToken, options); continuationToken = result.nextLink; let page = result.value || []; setContinuationToken(page, continuationToken); @@ -154,10 +148,7 @@ export class DiscoveredSecuritySolutionsImpl ascLocation: string, options?: DiscoveredSecuritySolutionsListByHomeRegionOptionalParams, ): AsyncIterableIterator { - for await (const page of this.listByHomeRegionPagingPage( - ascLocation, - options, - )) { + for await (const page of this.listByHomeRegionPagingPage(ascLocation, options)) { yield* page; } } @@ -223,10 +214,7 @@ export class DiscoveredSecuritySolutionsImpl nextLink: string, options?: DiscoveredSecuritySolutionsListNextOptionalParams, ): Promise { - return this.client.sendOperationRequest( - { nextLink, options }, - listNextOperationSpec, - ); + return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec); } /** @@ -278,11 +266,7 @@ const listByHomeRegionOperationSpec: coreClient.OperationSpec = { }, }, queryParameters: [Parameters.apiVersion20], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.ascLocation, - ], + urlParameters: [Parameters.$host, Parameters.subscriptionId, Parameters.ascLocation], headerParameters: [Parameters.accept], serializer, }; @@ -319,11 +303,7 @@ const listNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError, }, }, - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.nextLink, - ], + urlParameters: [Parameters.$host, Parameters.subscriptionId, Parameters.nextLink], headerParameters: [Parameters.accept], serializer, }; diff --git a/sdk/security/arm-security/src/operations/externalSecuritySolutions.ts b/sdk/security/arm-security/src/operations/externalSecuritySolutions.ts index bcaad15cfc6b..f2439d1c04f9 100644 --- a/sdk/security/arm-security/src/operations/externalSecuritySolutions.ts +++ b/sdk/security/arm-security/src/operations/externalSecuritySolutions.ts @@ -29,9 +29,7 @@ import { /// /** Class containing ExternalSecuritySolutions operations. */ -export class ExternalSecuritySolutionsImpl - implements ExternalSecuritySolutions -{ +export class ExternalSecuritySolutionsImpl implements ExternalSecuritySolutions { private readonly client: SecurityCenter; /** @@ -138,11 +136,7 @@ export class ExternalSecuritySolutionsImpl yield page; } while (continuationToken) { - result = await this._listByHomeRegionNext( - ascLocation, - continuationToken, - options, - ); + result = await this._listByHomeRegionNext(ascLocation, continuationToken, options); continuationToken = result.nextLink; let page = result.value || []; setContinuationToken(page, continuationToken); @@ -154,10 +148,7 @@ export class ExternalSecuritySolutionsImpl ascLocation: string, options?: ExternalSecuritySolutionsListByHomeRegionOptionalParams, ): AsyncIterableIterator { - for await (const page of this.listByHomeRegionPagingPage( - ascLocation, - options, - )) { + for await (const page of this.listByHomeRegionPagingPage(ascLocation, options)) { yield* page; } } @@ -223,10 +214,7 @@ export class ExternalSecuritySolutionsImpl nextLink: string, options?: ExternalSecuritySolutionsListNextOptionalParams, ): Promise { - return this.client.sendOperationRequest( - { nextLink, options }, - listNextOperationSpec, - ); + return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec); } /** @@ -278,11 +266,7 @@ const listByHomeRegionOperationSpec: coreClient.OperationSpec = { }, }, queryParameters: [Parameters.apiVersion20], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.ascLocation, - ], + urlParameters: [Parameters.$host, Parameters.subscriptionId, Parameters.ascLocation], headerParameters: [Parameters.accept], serializer, }; @@ -319,11 +303,7 @@ const listNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError, }, }, - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.nextLink, - ], + urlParameters: [Parameters.$host, Parameters.subscriptionId, Parameters.nextLink], headerParameters: [Parameters.accept], serializer, }; diff --git a/sdk/security/arm-security/src/operations/gitHubOwners.ts b/sdk/security/arm-security/src/operations/gitHubOwners.ts index c172ad99ea55..10be313afc6d 100644 --- a/sdk/security/arm-security/src/operations/gitHubOwners.ts +++ b/sdk/security/arm-security/src/operations/gitHubOwners.ts @@ -49,11 +49,7 @@ export class GitHubOwnersImpl implements GitHubOwners { securityConnectorName: string, options?: GitHubOwnersListOptionalParams, ): PagedAsyncIterableIterator { - const iter = this.listPagingAll( - resourceGroupName, - securityConnectorName, - options, - ); + const iter = this.listPagingAll(resourceGroupName, securityConnectorName, options); return { next() { return iter.next(); @@ -65,12 +61,7 @@ export class GitHubOwnersImpl implements GitHubOwners { if (settings?.maxPageSize) { throw new Error("maxPageSize is not supported by this operation."); } - return this.listPagingPage( - resourceGroupName, - securityConnectorName, - options, - settings, - ); + return this.listPagingPage(resourceGroupName, securityConnectorName, options, settings); }, }; } @@ -84,11 +75,7 @@ export class GitHubOwnersImpl implements GitHubOwners { let result: GitHubOwnersListResponse; let continuationToken = settings?.continuationToken; if (!continuationToken) { - result = await this._list( - resourceGroupName, - securityConnectorName, - options, - ); + result = await this._list(resourceGroupName, securityConnectorName, options); let page = result.value || []; continuationToken = result.nextLink; setContinuationToken(page, continuationToken); @@ -205,10 +192,10 @@ const listAvailableOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.GitHubOwnerListResponse, }, default: { - bodyMapper: Mappers.ErrorResponseAutoGenerated, + bodyMapper: Mappers.ErrorResponseAutoGenerated2, }, }, - queryParameters: [Parameters.apiVersion15], + queryParameters: [Parameters.apiVersion28], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -226,10 +213,10 @@ const listOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.GitHubOwnerListResponse, }, default: { - bodyMapper: Mappers.ErrorResponseAutoGenerated, + bodyMapper: Mappers.ErrorResponseAutoGenerated2, }, }, - queryParameters: [Parameters.apiVersion15], + queryParameters: [Parameters.apiVersion28], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -247,10 +234,10 @@ const getOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.GitHubOwner, }, default: { - bodyMapper: Mappers.ErrorResponseAutoGenerated, + bodyMapper: Mappers.ErrorResponseAutoGenerated2, }, }, - queryParameters: [Parameters.apiVersion15], + queryParameters: [Parameters.apiVersion28], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -269,7 +256,7 @@ const listNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.GitHubOwnerListResponse, }, default: { - bodyMapper: Mappers.ErrorResponseAutoGenerated, + bodyMapper: Mappers.ErrorResponseAutoGenerated2, }, }, urlParameters: [ diff --git a/sdk/security/arm-security/src/operations/gitHubRepos.ts b/sdk/security/arm-security/src/operations/gitHubRepos.ts index 66628a2b4bb0..3767c3d546f9 100644 --- a/sdk/security/arm-security/src/operations/gitHubRepos.ts +++ b/sdk/security/arm-security/src/operations/gitHubRepos.ts @@ -49,12 +49,7 @@ export class GitHubReposImpl implements GitHubRepos { ownerName: string, options?: GitHubReposListOptionalParams, ): PagedAsyncIterableIterator { - const iter = this.listPagingAll( - resourceGroupName, - securityConnectorName, - ownerName, - options, - ); + const iter = this.listPagingAll(resourceGroupName, securityConnectorName, ownerName, options); return { next() { return iter.next(); @@ -87,12 +82,7 @@ export class GitHubReposImpl implements GitHubRepos { let result: GitHubReposListResponse; let continuationToken = settings?.continuationToken; if (!continuationToken) { - result = await this._list( - resourceGroupName, - securityConnectorName, - ownerName, - options, - ); + result = await this._list(resourceGroupName, securityConnectorName, ownerName, options); let page = result.value || []; continuationToken = result.nextLink; setContinuationToken(page, continuationToken); @@ -213,10 +203,10 @@ const listOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.GitHubRepositoryListResponse, }, default: { - bodyMapper: Mappers.ErrorResponseAutoGenerated, + bodyMapper: Mappers.ErrorResponseAutoGenerated2, }, }, - queryParameters: [Parameters.apiVersion15], + queryParameters: [Parameters.apiVersion28], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -235,10 +225,10 @@ const getOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.GitHubRepository, }, default: { - bodyMapper: Mappers.ErrorResponseAutoGenerated, + bodyMapper: Mappers.ErrorResponseAutoGenerated2, }, }, - queryParameters: [Parameters.apiVersion15], + queryParameters: [Parameters.apiVersion28], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -258,7 +248,7 @@ const listNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.GitHubRepositoryListResponse, }, default: { - bodyMapper: Mappers.ErrorResponseAutoGenerated, + bodyMapper: Mappers.ErrorResponseAutoGenerated2, }, }, urlParameters: [ diff --git a/sdk/security/arm-security/src/operations/gitLabGroups.ts b/sdk/security/arm-security/src/operations/gitLabGroups.ts index 9f53d5cc917e..acdc72179990 100644 --- a/sdk/security/arm-security/src/operations/gitLabGroups.ts +++ b/sdk/security/arm-security/src/operations/gitLabGroups.ts @@ -49,11 +49,7 @@ export class GitLabGroupsImpl implements GitLabGroups { securityConnectorName: string, options?: GitLabGroupsListOptionalParams, ): PagedAsyncIterableIterator { - const iter = this.listPagingAll( - resourceGroupName, - securityConnectorName, - options, - ); + const iter = this.listPagingAll(resourceGroupName, securityConnectorName, options); return { next() { return iter.next(); @@ -65,12 +61,7 @@ export class GitLabGroupsImpl implements GitLabGroups { if (settings?.maxPageSize) { throw new Error("maxPageSize is not supported by this operation."); } - return this.listPagingPage( - resourceGroupName, - securityConnectorName, - options, - settings, - ); + return this.listPagingPage(resourceGroupName, securityConnectorName, options, settings); }, }; } @@ -84,11 +75,7 @@ export class GitLabGroupsImpl implements GitLabGroups { let result: GitLabGroupsListResponse; let continuationToken = settings?.continuationToken; if (!continuationToken) { - result = await this._list( - resourceGroupName, - securityConnectorName, - options, - ); + result = await this._list(resourceGroupName, securityConnectorName, options); let page = result.value || []; continuationToken = result.nextLink; setContinuationToken(page, continuationToken); @@ -205,10 +192,10 @@ const listAvailableOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.GitLabGroupListResponse, }, default: { - bodyMapper: Mappers.ErrorResponseAutoGenerated, + bodyMapper: Mappers.ErrorResponseAutoGenerated2, }, }, - queryParameters: [Parameters.apiVersion15], + queryParameters: [Parameters.apiVersion28], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -226,10 +213,10 @@ const listOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.GitLabGroupListResponse, }, default: { - bodyMapper: Mappers.ErrorResponseAutoGenerated, + bodyMapper: Mappers.ErrorResponseAutoGenerated2, }, }, - queryParameters: [Parameters.apiVersion15], + queryParameters: [Parameters.apiVersion28], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -247,10 +234,10 @@ const getOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.GitLabGroup, }, default: { - bodyMapper: Mappers.ErrorResponseAutoGenerated, + bodyMapper: Mappers.ErrorResponseAutoGenerated2, }, }, - queryParameters: [Parameters.apiVersion15], + queryParameters: [Parameters.apiVersion28], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -269,7 +256,7 @@ const listNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.GitLabGroupListResponse, }, default: { - bodyMapper: Mappers.ErrorResponseAutoGenerated, + bodyMapper: Mappers.ErrorResponseAutoGenerated2, }, }, urlParameters: [ diff --git a/sdk/security/arm-security/src/operations/gitLabProjects.ts b/sdk/security/arm-security/src/operations/gitLabProjects.ts index 9fef38ffb93d..5ceeaf518a76 100644 --- a/sdk/security/arm-security/src/operations/gitLabProjects.ts +++ b/sdk/security/arm-security/src/operations/gitLabProjects.ts @@ -50,12 +50,7 @@ export class GitLabProjectsImpl implements GitLabProjects { groupFQName: string, options?: GitLabProjectsListOptionalParams, ): PagedAsyncIterableIterator { - const iter = this.listPagingAll( - resourceGroupName, - securityConnectorName, - groupFQName, - options, - ); + const iter = this.listPagingAll(resourceGroupName, securityConnectorName, groupFQName, options); return { next() { return iter.next(); @@ -88,12 +83,7 @@ export class GitLabProjectsImpl implements GitLabProjects { let result: GitLabProjectsListResponse; let continuationToken = settings?.continuationToken; if (!continuationToken) { - result = await this._list( - resourceGroupName, - securityConnectorName, - groupFQName, - options, - ); + result = await this._list(resourceGroupName, securityConnectorName, groupFQName, options); let page = result.value || []; continuationToken = result.nextLink; setContinuationToken(page, continuationToken); @@ -215,10 +205,10 @@ const listOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.GitLabProjectListResponse, }, default: { - bodyMapper: Mappers.ErrorResponseAutoGenerated, + bodyMapper: Mappers.ErrorResponseAutoGenerated2, }, }, - queryParameters: [Parameters.apiVersion15], + queryParameters: [Parameters.apiVersion28], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -237,10 +227,10 @@ const getOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.GitLabProject, }, default: { - bodyMapper: Mappers.ErrorResponseAutoGenerated, + bodyMapper: Mappers.ErrorResponseAutoGenerated2, }, }, - queryParameters: [Parameters.apiVersion15], + queryParameters: [Parameters.apiVersion28], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -260,7 +250,7 @@ const listNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.GitLabProjectListResponse, }, default: { - bodyMapper: Mappers.ErrorResponseAutoGenerated, + bodyMapper: Mappers.ErrorResponseAutoGenerated2, }, }, urlParameters: [ diff --git a/sdk/security/arm-security/src/operations/gitLabSubgroups.ts b/sdk/security/arm-security/src/operations/gitLabSubgroups.ts index a35314056320..32f4f6dba55d 100644 --- a/sdk/security/arm-security/src/operations/gitLabSubgroups.ts +++ b/sdk/security/arm-security/src/operations/gitLabSubgroups.ts @@ -11,10 +11,7 @@ import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers.js"; import * as Parameters from "../models/parameters.js"; import { SecurityCenter } from "../securityCenter.js"; -import { - GitLabSubgroupsListOptionalParams, - GitLabSubgroupsListResponse, -} from "../models/index.js"; +import { GitLabSubgroupsListOptionalParams, GitLabSubgroupsListResponse } from "../models/index.js"; /** Class containing GitLabSubgroups operations. */ export class GitLabSubgroupsImpl implements GitLabSubgroups { @@ -58,10 +55,10 @@ const listOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.GitLabGroupListResponse, }, default: { - bodyMapper: Mappers.ErrorResponseAutoGenerated, + bodyMapper: Mappers.ErrorResponseAutoGenerated2, }, }, - queryParameters: [Parameters.apiVersion15], + queryParameters: [Parameters.apiVersion28], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/security/arm-security/src/operations/governanceAssignments.ts b/sdk/security/arm-security/src/operations/governanceAssignments.ts index 7b5e66d97f23..b9a28ac7737b 100644 --- a/sdk/security/arm-security/src/operations/governanceAssignments.ts +++ b/sdk/security/arm-security/src/operations/governanceAssignments.ts @@ -85,12 +85,7 @@ export class GovernanceAssignmentsImpl implements GovernanceAssignments { yield page; } while (continuationToken) { - result = await this._listNext( - scope, - assessmentName, - continuationToken, - options, - ); + result = await this._listNext(scope, assessmentName, continuationToken, options); continuationToken = result.nextLink; let page = result.value || []; setContinuationToken(page, continuationToken); @@ -103,11 +98,7 @@ export class GovernanceAssignmentsImpl implements GovernanceAssignments { assessmentName: string, options?: GovernanceAssignmentsListOptionalParams, ): AsyncIterableIterator { - for await (const page of this.listPagingPage( - scope, - assessmentName, - options, - )) { + for await (const page of this.listPagingPage(scope, assessmentName, options)) { yield* page; } } @@ -125,10 +116,7 @@ export class GovernanceAssignmentsImpl implements GovernanceAssignments { assessmentName: string, options?: GovernanceAssignmentsListOptionalParams, ): Promise { - return this.client.sendOperationRequest( - { scope, assessmentName, options }, - listOperationSpec, - ); + return this.client.sendOperationRequest({ scope, assessmentName, options }, listOperationSpec); } /** @@ -234,12 +222,8 @@ const listOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError, }, }, - queryParameters: [Parameters.apiVersion8], - urlParameters: [ - Parameters.$host, - Parameters.scope1, - Parameters.assessmentName1, - ], + queryParameters: [Parameters.apiVersion7], + urlParameters: [Parameters.$host, Parameters.scope1, Parameters.assessmentName1], headerParameters: [Parameters.accept], serializer, }; @@ -254,7 +238,7 @@ const getOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError, }, }, - queryParameters: [Parameters.apiVersion8], + queryParameters: [Parameters.apiVersion7], urlParameters: [ Parameters.$host, Parameters.scope1, @@ -279,7 +263,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, }, requestBody: Parameters.governanceAssignment, - queryParameters: [Parameters.apiVersion8], + queryParameters: [Parameters.apiVersion7], urlParameters: [ Parameters.$host, Parameters.scope1, @@ -294,7 +278,7 @@ const deleteOperationSpec: coreClient.OperationSpec = { path: "/{scope}/providers/Microsoft.Security/assessments/{assessmentName}/governanceAssignments/{assignmentKey}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: {} }, - queryParameters: [Parameters.apiVersion8], + queryParameters: [Parameters.apiVersion7], urlParameters: [ Parameters.$host, Parameters.scope1, diff --git a/sdk/security/arm-security/src/operations/governanceRules.ts b/sdk/security/arm-security/src/operations/governanceRules.ts index c2cc60978ed7..7c6b09dc9f8f 100644 --- a/sdk/security/arm-security/src/operations/governanceRules.ts +++ b/sdk/security/arm-security/src/operations/governanceRules.ts @@ -13,11 +13,7 @@ import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers.js"; import * as Parameters from "../models/parameters.js"; import { SecurityCenter } from "../securityCenter.js"; -import { - SimplePollerLike, - OperationState, - createHttpPoller, -} from "@azure/core-lro"; +import { SimplePollerLike, OperationState, createHttpPoller } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl.js"; import { GovernanceRule, @@ -122,10 +118,7 @@ export class GovernanceRulesImpl implements GovernanceRules { scope: string, options?: GovernanceRulesListOptionalParams, ): Promise { - return this.client.sendOperationRequest( - { scope, options }, - listOperationSpec, - ); + return this.client.sendOperationRequest({ scope, options }, listOperationSpec); } /** @@ -142,10 +135,7 @@ export class GovernanceRulesImpl implements GovernanceRules { ruleId: string, options?: GovernanceRulesGetOptionalParams, ): Promise { - return this.client.sendOperationRequest( - { scope, ruleId, options }, - getOperationSpec, - ); + return this.client.sendOperationRequest({ scope, ruleId, options }, getOperationSpec); } /** @@ -194,8 +184,7 @@ export class GovernanceRulesImpl implements GovernanceRules { args: coreClient.OperationArguments, spec: coreClient.OperationSpec, ) => { - let currentRawResponse: coreClient.FullOperationResponse | undefined = - undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, @@ -268,10 +257,7 @@ export class GovernanceRulesImpl implements GovernanceRules { ruleId: string, options?: GovernanceRulesExecuteOptionalParams, ): Promise< - SimplePollerLike< - OperationState, - GovernanceRulesExecuteResponse - > + SimplePollerLike, GovernanceRulesExecuteResponse> > { const directSendOperation = async ( args: coreClient.OperationArguments, @@ -283,8 +269,7 @@ export class GovernanceRulesImpl implements GovernanceRules { args: coreClient.OperationArguments, spec: coreClient.OperationSpec, ) => { - let currentRawResponse: coreClient.FullOperationResponse | undefined = - undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, @@ -382,10 +367,7 @@ export class GovernanceRulesImpl implements GovernanceRules { nextLink: string, options?: GovernanceRulesListNextOptionalParams, ): Promise { - return this.client.sendOperationRequest( - { scope, nextLink, options }, - listNextOperationSpec, - ); + return this.client.sendOperationRequest({ scope, nextLink, options }, listNextOperationSpec); } } // Operation Specifications @@ -402,7 +384,7 @@ const listOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError, }, }, - queryParameters: [Parameters.apiVersion8], + queryParameters: [Parameters.apiVersion7], urlParameters: [Parameters.$host, Parameters.scope1], headerParameters: [Parameters.accept], serializer, @@ -418,7 +400,7 @@ const getOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError, }, }, - queryParameters: [Parameters.apiVersion8], + queryParameters: [Parameters.apiVersion7], urlParameters: [Parameters.$host, Parameters.scope1, Parameters.ruleId], headerParameters: [Parameters.accept], serializer, @@ -438,7 +420,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, }, requestBody: Parameters.governanceRule, - queryParameters: [Parameters.apiVersion8], + queryParameters: [Parameters.apiVersion7], urlParameters: [Parameters.$host, Parameters.scope1, Parameters.ruleId], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", @@ -448,7 +430,7 @@ const deleteOperationSpec: coreClient.OperationSpec = { path: "/{scope}/providers/Microsoft.Security/governanceRules/{ruleId}", httpMethod: "DELETE", responses: { 200: {}, 201: {}, 202: {}, 204: {}, default: {} }, - queryParameters: [Parameters.apiVersion8], + queryParameters: [Parameters.apiVersion7], urlParameters: [Parameters.$host, Parameters.scope1, Parameters.ruleId], serializer, }; @@ -473,7 +455,7 @@ const executeOperationSpec: coreClient.OperationSpec = { }, }, requestBody: Parameters.executeGovernanceRuleParams, - queryParameters: [Parameters.apiVersion8], + queryParameters: [Parameters.apiVersion7], urlParameters: [Parameters.$host, Parameters.scope1, Parameters.ruleId], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", @@ -493,13 +475,8 @@ const operationResultsOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError, }, }, - queryParameters: [Parameters.apiVersion8], - urlParameters: [ - Parameters.$host, - Parameters.scope1, - Parameters.ruleId, - Parameters.operationId, - ], + queryParameters: [Parameters.apiVersion7], + urlParameters: [Parameters.$host, Parameters.scope1, Parameters.ruleId, Parameters.operationId], headerParameters: [Parameters.accept], serializer, }; diff --git a/sdk/security/arm-security/src/operations/healthReports.ts b/sdk/security/arm-security/src/operations/healthReports.ts index b7e9fd5c3d47..b40455a93a4e 100644 --- a/sdk/security/arm-security/src/operations/healthReports.ts +++ b/sdk/security/arm-security/src/operations/healthReports.ts @@ -107,10 +107,7 @@ export class HealthReportsImpl implements HealthReports { scope: string, options?: HealthReportsListOptionalParams, ): Promise { - return this.client.sendOperationRequest( - { scope, options }, - listOperationSpec, - ); + return this.client.sendOperationRequest({ scope, options }, listOperationSpec); } /** @@ -141,10 +138,7 @@ export class HealthReportsImpl implements HealthReports { nextLink: string, options?: HealthReportsListNextOptionalParams, ): Promise { - return this.client.sendOperationRequest( - { scope, nextLink, options }, - listNextOperationSpec, - ); + return this.client.sendOperationRequest({ scope, nextLink, options }, listNextOperationSpec); } } // Operation Specifications @@ -161,7 +155,7 @@ const listOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse, }, }, - queryParameters: [Parameters.apiVersion14], + queryParameters: [Parameters.apiVersion12], urlParameters: [Parameters.$host, Parameters.scope2], headerParameters: [Parameters.accept], serializer, @@ -177,12 +171,8 @@ const getOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse, }, }, - queryParameters: [Parameters.apiVersion14], - urlParameters: [ - Parameters.$host, - Parameters.resourceId, - Parameters.healthReportName, - ], + queryParameters: [Parameters.apiVersion12], + urlParameters: [Parameters.$host, Parameters.resourceId, Parameters.healthReportName], headerParameters: [Parameters.accept], serializer, }; diff --git a/sdk/security/arm-security/src/operations/index.ts b/sdk/security/arm-security/src/operations/index.ts index 129b6240965a..c747b754ba85 100644 --- a/sdk/security/arm-security/src/operations/index.ts +++ b/sdk/security/arm-security/src/operations/index.ts @@ -7,20 +7,17 @@ */ export * from "./locations.js"; -export * from "./operations.js"; export * from "./tasks.js"; export * from "./autoProvisioningSettings.js"; export * from "./compliances.js"; export * from "./informationProtectionPolicies.js"; export * from "./workspaceSettings.js"; export * from "./alertsSuppressionRules.js"; -export * from "./automations.js"; export * from "./regulatoryComplianceStandards.js"; export * from "./regulatoryComplianceControls.js"; export * from "./regulatoryComplianceAssessments.js"; export * from "./subAssessments.js"; export * from "./connectors.js"; -export * from "./securityContacts.js"; export * from "./softwareInventories.js"; export * from "./customAssessmentAutomations.js"; export * from "./customEntityStoreAssignments.js"; @@ -31,24 +28,17 @@ export * from "./applications.js"; export * from "./applicationOperations.js"; export * from "./securityConnectorApplications.js"; export * from "./securityConnectorApplication.js"; -export * from "./defenderForStorage.js"; export * from "./securityOperators.js"; export * from "./sqlVulnerabilityAssessmentBaselineRules.js"; export * from "./sqlVulnerabilityAssessmentScans.js"; export * from "./sqlVulnerabilityAssessmentScanResults.js"; export * from "./sensitivitySettings.js"; export * from "./healthReports.js"; -export * from "./azureDevOpsOrgs.js"; -export * from "./azureDevOpsProjects.js"; -export * from "./azureDevOpsRepos.js"; -export * from "./devOpsConfigurations.js"; -export * from "./gitHubOwners.js"; -export * from "./gitHubRepos.js"; -export * from "./gitLabGroups.js"; -export * from "./gitLabSubgroups.js"; -export * from "./gitLabProjects.js"; -export * from "./devOpsOperationResults.js"; +export * from "./automations.js"; +export * from "./securityContacts.js"; export * from "./securityConnectors.js"; +export * from "./operations.js"; +export * from "./defenderForStorage.js"; export * from "./complianceResults.js"; export * from "./advancedThreatProtection.js"; export * from "./deviceSecurityGroups.js"; @@ -56,9 +46,7 @@ export * from "./iotSecuritySolutionAnalytics.js"; export * from "./iotSecuritySolutionsAnalyticsAggregatedAlert.js"; export * from "./iotSecuritySolutionsAnalyticsRecommendation.js"; export * from "./iotSecuritySolution.js"; -export * from "./adaptiveNetworkHardenings.js"; export * from "./allowedConnections.js"; -export * from "./adaptiveApplicationControls.js"; export * from "./discoveredSecuritySolutions.js"; export * from "./externalSecuritySolutions.js"; export * from "./jitNetworkAccessPolicies.js"; @@ -76,3 +64,16 @@ export * from "./settings.js"; export * from "./serverVulnerabilityAssessmentsSettings.js"; export * from "./aPICollections.js"; export * from "./pricings.js"; +export * from "./securityStandards.js"; +export * from "./standardAssignments.js"; +export * from "./customRecommendations.js"; +export * from "./azureDevOpsOrgs.js"; +export * from "./azureDevOpsProjects.js"; +export * from "./azureDevOpsRepos.js"; +export * from "./devOpsConfigurations.js"; +export * from "./gitHubOwners.js"; +export * from "./gitHubRepos.js"; +export * from "./gitLabGroups.js"; +export * from "./gitLabSubgroups.js"; +export * from "./gitLabProjects.js"; +export * from "./devOpsOperationResults.js"; diff --git a/sdk/security/arm-security/src/operations/informationProtectionPolicies.ts b/sdk/security/arm-security/src/operations/informationProtectionPolicies.ts index aa2b56a88ac6..3d96d1a4b357 100644 --- a/sdk/security/arm-security/src/operations/informationProtectionPolicies.ts +++ b/sdk/security/arm-security/src/operations/informationProtectionPolicies.ts @@ -28,9 +28,7 @@ import { /// /** Class containing InformationProtectionPolicies operations. */ -export class InformationProtectionPoliciesImpl - implements InformationProtectionPolicies -{ +export class InformationProtectionPoliciesImpl implements InformationProtectionPolicies { private readonly client: SecurityCenter; /** @@ -157,10 +155,7 @@ export class InformationProtectionPoliciesImpl scope: string, options?: InformationProtectionPoliciesListOptionalParams, ): Promise { - return this.client.sendOperationRequest( - { scope, options }, - listOperationSpec, - ); + return this.client.sendOperationRequest({ scope, options }, listOperationSpec); } /** @@ -176,10 +171,7 @@ export class InformationProtectionPoliciesImpl nextLink: string, options?: InformationProtectionPoliciesListNextOptionalParams, ): Promise { - return this.client.sendOperationRequest( - { scope, nextLink, options }, - listNextOperationSpec, - ); + return this.client.sendOperationRequest({ scope, nextLink, options }, listNextOperationSpec); } } // Operation Specifications @@ -197,11 +189,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, }, queryParameters: [Parameters.apiVersion1], - urlParameters: [ - Parameters.$host, - Parameters.scope, - Parameters.informationProtectionPolicyName, - ], + urlParameters: [Parameters.$host, Parameters.scope, Parameters.informationProtectionPolicyName], headerParameters: [Parameters.accept], serializer, }; @@ -221,11 +209,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, requestBody: Parameters.informationProtectionPolicy, queryParameters: [Parameters.apiVersion1], - urlParameters: [ - Parameters.$host, - Parameters.scope, - Parameters.informationProtectionPolicyName, - ], + urlParameters: [Parameters.$host, Parameters.scope, Parameters.informationProtectionPolicyName], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer, diff --git a/sdk/security/arm-security/src/operations/iotSecuritySolution.ts b/sdk/security/arm-security/src/operations/iotSecuritySolution.ts index 030b2ee288e2..5c96a57f7cc6 100644 --- a/sdk/security/arm-security/src/operations/iotSecuritySolution.ts +++ b/sdk/security/arm-security/src/operations/iotSecuritySolution.ts @@ -122,11 +122,7 @@ export class IotSecuritySolutionImpl implements IotSecuritySolution { if (settings?.maxPageSize) { throw new Error("maxPageSize is not supported by this operation."); } - return this.listByResourceGroupPagingPage( - resourceGroupName, - options, - settings, - ); + return this.listByResourceGroupPagingPage(resourceGroupName, options, settings); }, }; } @@ -146,11 +142,7 @@ export class IotSecuritySolutionImpl implements IotSecuritySolution { yield page; } while (continuationToken) { - result = await this._listByResourceGroupNext( - resourceGroupName, - continuationToken, - options, - ); + result = await this._listByResourceGroupNext(resourceGroupName, continuationToken, options); continuationToken = result.nextLink; let page = result.value || []; setContinuationToken(page, continuationToken); @@ -162,10 +154,7 @@ export class IotSecuritySolutionImpl implements IotSecuritySolution { resourceGroupName: string, options?: IotSecuritySolutionListByResourceGroupOptionalParams, ): AsyncIterableIterator { - for await (const page of this.listByResourceGroupPagingPage( - resourceGroupName, - options, - )) { + for await (const page of this.listByResourceGroupPagingPage(resourceGroupName, options)) { yield* page; } } @@ -177,10 +166,7 @@ export class IotSecuritySolutionImpl implements IotSecuritySolution { private _listBySubscription( options?: IotSecuritySolutionListBySubscriptionOptionalParams, ): Promise { - return this.client.sendOperationRequest( - { options }, - listBySubscriptionOperationSpec, - ); + return this.client.sendOperationRequest({ options }, listBySubscriptionOperationSpec); } /** @@ -345,11 +331,7 @@ const listByResourceGroupOperationSpec: coreClient.OperationSpec = { }, }, queryParameters: [Parameters.filter, Parameters.apiVersion19], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - ], + urlParameters: [Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName], headerParameters: [Parameters.accept], serializer, }; @@ -454,11 +436,7 @@ const listBySubscriptionNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError, }, }, - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.nextLink, - ], + urlParameters: [Parameters.$host, Parameters.subscriptionId, Parameters.nextLink], headerParameters: [Parameters.accept], serializer, }; diff --git a/sdk/security/arm-security/src/operations/iotSecuritySolutionAnalytics.ts b/sdk/security/arm-security/src/operations/iotSecuritySolutionAnalytics.ts index 1d56d9a8c828..a4f9d0ad9d12 100644 --- a/sdk/security/arm-security/src/operations/iotSecuritySolutionAnalytics.ts +++ b/sdk/security/arm-security/src/operations/iotSecuritySolutionAnalytics.ts @@ -19,9 +19,7 @@ import { } from "../models/index.js"; /** Class containing IotSecuritySolutionAnalytics operations. */ -export class IotSecuritySolutionAnalyticsImpl - implements IotSecuritySolutionAnalytics -{ +export class IotSecuritySolutionAnalyticsImpl implements IotSecuritySolutionAnalytics { private readonly client: SecurityCenter; /** diff --git a/sdk/security/arm-security/src/operations/iotSecuritySolutionsAnalyticsAggregatedAlert.ts b/sdk/security/arm-security/src/operations/iotSecuritySolutionsAnalyticsAggregatedAlert.ts index cc96ec4a9841..843b5697729b 100644 --- a/sdk/security/arm-security/src/operations/iotSecuritySolutionsAnalyticsAggregatedAlert.ts +++ b/sdk/security/arm-security/src/operations/iotSecuritySolutionsAnalyticsAggregatedAlert.ts @@ -63,12 +63,7 @@ export class IotSecuritySolutionsAnalyticsAggregatedAlertImpl if (settings?.maxPageSize) { throw new Error("maxPageSize is not supported by this operation."); } - return this.listPagingPage( - resourceGroupName, - solutionName, - options, - settings, - ); + return this.listPagingPage(resourceGroupName, solutionName, options, settings); }, }; } @@ -89,12 +84,7 @@ export class IotSecuritySolutionsAnalyticsAggregatedAlertImpl yield page; } while (continuationToken) { - result = await this._listNext( - resourceGroupName, - solutionName, - continuationToken, - options, - ); + result = await this._listNext(resourceGroupName, solutionName, continuationToken, options); continuationToken = result.nextLink; let page = result.value || []; setContinuationToken(page, continuationToken); @@ -107,11 +97,7 @@ export class IotSecuritySolutionsAnalyticsAggregatedAlertImpl solutionName: string, options?: IotSecuritySolutionsAnalyticsAggregatedAlertListOptionalParams, ): AsyncIterableIterator { - for await (const page of this.listPagingPage( - resourceGroupName, - solutionName, - options, - )) { + for await (const page of this.listPagingPage(resourceGroupName, solutionName, options)) { yield* page; } } diff --git a/sdk/security/arm-security/src/operations/iotSecuritySolutionsAnalyticsRecommendation.ts b/sdk/security/arm-security/src/operations/iotSecuritySolutionsAnalyticsRecommendation.ts index a4df49ec27f6..ff855cbc68f1 100644 --- a/sdk/security/arm-security/src/operations/iotSecuritySolutionsAnalyticsRecommendation.ts +++ b/sdk/security/arm-security/src/operations/iotSecuritySolutionsAnalyticsRecommendation.ts @@ -63,12 +63,7 @@ export class IotSecuritySolutionsAnalyticsRecommendationImpl if (settings?.maxPageSize) { throw new Error("maxPageSize is not supported by this operation."); } - return this.listPagingPage( - resourceGroupName, - solutionName, - options, - settings, - ); + return this.listPagingPage(resourceGroupName, solutionName, options, settings); }, }; } @@ -89,12 +84,7 @@ export class IotSecuritySolutionsAnalyticsRecommendationImpl yield page; } while (continuationToken) { - result = await this._listNext( - resourceGroupName, - solutionName, - continuationToken, - options, - ); + result = await this._listNext(resourceGroupName, solutionName, continuationToken, options); continuationToken = result.nextLink; let page = result.value || []; setContinuationToken(page, continuationToken); @@ -107,11 +97,7 @@ export class IotSecuritySolutionsAnalyticsRecommendationImpl solutionName: string, options?: IotSecuritySolutionsAnalyticsRecommendationListOptionalParams, ): AsyncIterableIterator { - for await (const page of this.listPagingPage( - resourceGroupName, - solutionName, - options, - )) { + for await (const page of this.listPagingPage(resourceGroupName, solutionName, options)) { yield* page; } } diff --git a/sdk/security/arm-security/src/operations/jitNetworkAccessPolicies.ts b/sdk/security/arm-security/src/operations/jitNetworkAccessPolicies.ts index 014d7d8adf7f..81f4419abe29 100644 --- a/sdk/security/arm-security/src/operations/jitNetworkAccessPolicies.ts +++ b/sdk/security/arm-security/src/operations/jitNetworkAccessPolicies.ts @@ -150,11 +150,7 @@ export class JitNetworkAccessPoliciesImpl implements JitNetworkAccessPolicies { yield page; } while (continuationToken) { - result = await this._listByRegionNext( - ascLocation, - continuationToken, - options, - ); + result = await this._listByRegionNext(ascLocation, continuationToken, options); continuationToken = result.nextLink; let page = result.value || []; setContinuationToken(page, continuationToken); @@ -166,10 +162,7 @@ export class JitNetworkAccessPoliciesImpl implements JitNetworkAccessPolicies { ascLocation: string, options?: JitNetworkAccessPoliciesListByRegionOptionalParams, ): AsyncIterableIterator { - for await (const page of this.listByRegionPagingPage( - ascLocation, - options, - )) { + for await (const page of this.listByRegionPagingPage(ascLocation, options)) { yield* page; } } @@ -196,11 +189,7 @@ export class JitNetworkAccessPoliciesImpl implements JitNetworkAccessPolicies { if (settings?.maxPageSize) { throw new Error("maxPageSize is not supported by this operation."); } - return this.listByResourceGroupPagingPage( - resourceGroupName, - options, - settings, - ); + return this.listByResourceGroupPagingPage(resourceGroupName, options, settings); }, }; } @@ -220,11 +209,7 @@ export class JitNetworkAccessPoliciesImpl implements JitNetworkAccessPolicies { yield page; } while (continuationToken) { - result = await this._listByResourceGroupNext( - resourceGroupName, - continuationToken, - options, - ); + result = await this._listByResourceGroupNext(resourceGroupName, continuationToken, options); continuationToken = result.nextLink; let page = result.value || []; setContinuationToken(page, continuationToken); @@ -236,10 +221,7 @@ export class JitNetworkAccessPoliciesImpl implements JitNetworkAccessPolicies { resourceGroupName: string, options?: JitNetworkAccessPoliciesListByResourceGroupOptionalParams, ): AsyncIterableIterator { - for await (const page of this.listByResourceGroupPagingPage( - resourceGroupName, - options, - )) { + for await (const page of this.listByResourceGroupPagingPage(resourceGroupName, options)) { yield* page; } } @@ -292,11 +274,7 @@ export class JitNetworkAccessPoliciesImpl implements JitNetworkAccessPolicies { let result: JitNetworkAccessPoliciesListByResourceGroupAndRegionResponse; let continuationToken = settings?.continuationToken; if (!continuationToken) { - result = await this._listByResourceGroupAndRegion( - resourceGroupName, - ascLocation, - options, - ); + result = await this._listByResourceGroupAndRegion(resourceGroupName, ascLocation, options); let page = result.value || []; continuationToken = result.nextLink; setContinuationToken(page, continuationToken); @@ -350,10 +328,7 @@ export class JitNetworkAccessPoliciesImpl implements JitNetworkAccessPolicies { ascLocation: string, options?: JitNetworkAccessPoliciesListByRegionOptionalParams, ): Promise { - return this.client.sendOperationRequest( - { ascLocation, options }, - listByRegionOperationSpec, - ); + return this.client.sendOperationRequest({ ascLocation, options }, listByRegionOperationSpec); } /** @@ -500,10 +475,7 @@ export class JitNetworkAccessPoliciesImpl implements JitNetworkAccessPolicies { nextLink: string, options?: JitNetworkAccessPoliciesListNextOptionalParams, ): Promise { - return this.client.sendOperationRequest( - { nextLink, options }, - listNextOperationSpec, - ); + return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec); } /** @@ -595,11 +567,7 @@ const listByRegionOperationSpec: coreClient.OperationSpec = { }, }, queryParameters: [Parameters.apiVersion20], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.ascLocation, - ], + urlParameters: [Parameters.$host, Parameters.subscriptionId, Parameters.ascLocation], headerParameters: [Parameters.accept], serializer, }; @@ -615,11 +583,7 @@ const listByResourceGroupOperationSpec: coreClient.OperationSpec = { }, }, queryParameters: [Parameters.apiVersion20], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - ], + urlParameters: [Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName], headerParameters: [Parameters.accept], serializer, }; @@ -677,7 +641,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError, }, }, - requestBody: Parameters.body4, + requestBody: Parameters.body2, queryParameters: [Parameters.apiVersion20], urlParameters: [ Parameters.$host, @@ -722,7 +686,7 @@ const initiateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError, }, }, - requestBody: Parameters.body5, + requestBody: Parameters.body3, queryParameters: [Parameters.apiVersion20], urlParameters: [ Parameters.$host, @@ -737,6 +701,21 @@ const initiateOperationSpec: coreClient.OperationSpec = { serializer, }; const listNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.JitNetworkAccessPoliciesList, + }, + default: { + bodyMapper: Mappers.CloudError, + }, + }, + urlParameters: [Parameters.$host, Parameters.subscriptionId, Parameters.nextLink], + headerParameters: [Parameters.accept], + serializer, +}; +const listByRegionNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { @@ -750,12 +729,13 @@ const listNextOperationSpec: coreClient.OperationSpec = { urlParameters: [ Parameters.$host, Parameters.subscriptionId, + Parameters.ascLocation, Parameters.nextLink, ], headerParameters: [Parameters.accept], serializer, }; -const listByRegionNextOperationSpec: coreClient.OperationSpec = { +const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { @@ -769,13 +749,13 @@ const listByRegionNextOperationSpec: coreClient.OperationSpec = { urlParameters: [ Parameters.$host, Parameters.subscriptionId, - Parameters.ascLocation, Parameters.nextLink, + Parameters.resourceGroupName, ], headerParameters: [Parameters.accept], serializer, }; -const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = { +const listByResourceGroupAndRegionNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", responses: { @@ -789,31 +769,10 @@ const listByResourceGroupNextOperationSpec: coreClient.OperationSpec = { urlParameters: [ Parameters.$host, Parameters.subscriptionId, + Parameters.ascLocation, Parameters.nextLink, Parameters.resourceGroupName, ], headerParameters: [Parameters.accept], serializer, }; -const listByResourceGroupAndRegionNextOperationSpec: coreClient.OperationSpec = - { - path: "{nextLink}", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.JitNetworkAccessPoliciesList, - }, - default: { - bodyMapper: Mappers.CloudError, - }, - }, - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.ascLocation, - Parameters.nextLink, - Parameters.resourceGroupName, - ], - headerParameters: [Parameters.accept], - serializer, - }; diff --git a/sdk/security/arm-security/src/operations/locations.ts b/sdk/security/arm-security/src/operations/locations.ts index adf25feefce4..a357c81a9731 100644 --- a/sdk/security/arm-security/src/operations/locations.ts +++ b/sdk/security/arm-security/src/operations/locations.ts @@ -42,9 +42,7 @@ export class LocationsImpl implements Locations { * read or write other resources in ASC according to their ID. * @param options The options parameters. */ - public list( - options?: LocationsListOptionalParams, - ): PagedAsyncIterableIterator { + public list(options?: LocationsListOptionalParams): PagedAsyncIterableIterator { const iter = this.listPagingAll(options); return { next() { @@ -98,9 +96,7 @@ export class LocationsImpl implements Locations { * read or write other resources in ASC according to their ID. * @param options The options parameters. */ - private _list( - options?: LocationsListOptionalParams, - ): Promise { + private _list(options?: LocationsListOptionalParams): Promise { return this.client.sendOperationRequest({ options }, listOperationSpec); } @@ -110,14 +106,8 @@ export class LocationsImpl implements Locations { * Get locations * @param options The options parameters. */ - get( - ascLocation: string, - options?: LocationsGetOptionalParams, - ): Promise { - return this.client.sendOperationRequest( - { ascLocation, options }, - getOperationSpec, - ); + get(ascLocation: string, options?: LocationsGetOptionalParams): Promise { + return this.client.sendOperationRequest({ ascLocation, options }, getOperationSpec); } /** @@ -129,10 +119,7 @@ export class LocationsImpl implements Locations { nextLink: string, options?: LocationsListNextOptionalParams, ): Promise { - return this.client.sendOperationRequest( - { nextLink, options }, - listNextOperationSpec, - ); + return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec); } } // Operation Specifications @@ -166,11 +153,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, }, queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.ascLocation, - ], + urlParameters: [Parameters.$host, Parameters.subscriptionId, Parameters.ascLocation], headerParameters: [Parameters.accept], serializer, }; @@ -185,11 +168,7 @@ const listNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError, }, }, - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.nextLink, - ], + urlParameters: [Parameters.$host, Parameters.subscriptionId, Parameters.nextLink], headerParameters: [Parameters.accept], serializer, }; diff --git a/sdk/security/arm-security/src/operations/mdeOnboardings.ts b/sdk/security/arm-security/src/operations/mdeOnboardings.ts index fb0550ceed27..31ebe7c73f7c 100644 --- a/sdk/security/arm-security/src/operations/mdeOnboardings.ts +++ b/sdk/security/arm-security/src/operations/mdeOnboardings.ts @@ -34,9 +34,7 @@ export class MdeOnboardingsImpl implements MdeOnboardings { * The configuration or data needed to onboard the machine to MDE * @param options The options parameters. */ - list( - options?: MdeOnboardingsListOptionalParams, - ): Promise { + list(options?: MdeOnboardingsListOptionalParams): Promise { return this.client.sendOperationRequest({ options }, listOperationSpec); } @@ -44,9 +42,7 @@ export class MdeOnboardingsImpl implements MdeOnboardings { * The default configuration or data needed to onboard the machine to MDE * @param options The options parameters. */ - get( - options?: MdeOnboardingsGetOptionalParams, - ): Promise { + get(options?: MdeOnboardingsGetOptionalParams): Promise { return this.client.sendOperationRequest({ options }, getOperationSpec); } } @@ -64,7 +60,7 @@ const listOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError, }, }, - queryParameters: [Parameters.apiVersion7], + queryParameters: [Parameters.apiVersion6], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], serializer, @@ -80,7 +76,7 @@ const getOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError, }, }, - queryParameters: [Parameters.apiVersion7], + queryParameters: [Parameters.apiVersion6], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], serializer, diff --git a/sdk/security/arm-security/src/operations/operations.ts b/sdk/security/arm-security/src/operations/operations.ts index 23af6543c3f5..5b050babe123 100644 --- a/sdk/security/arm-security/src/operations/operations.ts +++ b/sdk/security/arm-security/src/operations/operations.ts @@ -38,9 +38,7 @@ export class OperationsImpl implements Operations { * Exposes all available operations for discovery purposes. * @param options The options parameters. */ - public list( - options?: OperationsListOptionalParams, - ): PagedAsyncIterableIterator { + public list(options?: OperationsListOptionalParams): PagedAsyncIterableIterator { const iter = this.listPagingAll(options); return { next() { @@ -92,9 +90,7 @@ export class OperationsImpl implements Operations { * Exposes all available operations for discovery purposes. * @param options The options parameters. */ - private _list( - options?: OperationsListOptionalParams, - ): Promise { + private _list(options?: OperationsListOptionalParams): Promise { return this.client.sendOperationRequest({ options }, listOperationSpec); } @@ -107,10 +103,7 @@ export class OperationsImpl implements Operations { nextLink: string, options?: OperationsListNextOptionalParams, ): Promise { - return this.client.sendOperationRequest( - { nextLink, options }, - listNextOperationSpec, - ); + return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec); } } // Operation Specifications @@ -121,13 +114,13 @@ const listOperationSpec: coreClient.OperationSpec = { httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.OperationList, + bodyMapper: Mappers.OperationListResult, }, default: { - bodyMapper: Mappers.CloudError, + bodyMapper: Mappers.ErrorResponseAutoGenerated, }, }, - queryParameters: [Parameters.apiVersion], + queryParameters: [Parameters.apiVersion15], urlParameters: [Parameters.$host], headerParameters: [Parameters.accept], serializer, @@ -137,10 +130,10 @@ const listNextOperationSpec: coreClient.OperationSpec = { httpMethod: "GET", responses: { 200: { - bodyMapper: Mappers.OperationList, + bodyMapper: Mappers.OperationListResult, }, default: { - bodyMapper: Mappers.CloudError, + bodyMapper: Mappers.ErrorResponseAutoGenerated, }, }, urlParameters: [Parameters.$host, Parameters.nextLink], diff --git a/sdk/security/arm-security/src/operations/pricings.ts b/sdk/security/arm-security/src/operations/pricings.ts index ca6e5f5d8df1..9c3a66d09f6f 100644 --- a/sdk/security/arm-security/src/operations/pricings.ts +++ b/sdk/security/arm-security/src/operations/pricings.ts @@ -50,10 +50,7 @@ export class PricingsImpl implements Pricings { pricingName: string, options?: PricingsGetOptionalParams, ): Promise { - return this.client.sendOperationRequest( - { scopeId, pricingName, options }, - getOperationSpec, - ); + return this.client.sendOperationRequest({ scopeId, pricingName, options }, getOperationSpec); } /** @@ -93,10 +90,7 @@ export class PricingsImpl implements Pricings { pricingName: string, options?: PricingsDeleteOptionalParams, ): Promise { - return this.client.sendOperationRequest( - { scopeId, pricingName, options }, - deleteOperationSpec, - ); + return this.client.sendOperationRequest({ scopeId, pricingName, options }, deleteOperationSpec); } /** @@ -112,14 +106,8 @@ export class PricingsImpl implements Pricings { * - Supported resources are (VirtualMachines) * @param options The options parameters. */ - list( - scopeId: string, - options?: PricingsListOptionalParams, - ): Promise { - return this.client.sendOperationRequest( - { scopeId, options }, - listOperationSpec, - ); + list(scopeId: string, options?: PricingsListOptionalParams): Promise { + return this.client.sendOperationRequest({ scopeId, options }, listOperationSpec); } } // Operation Specifications @@ -137,11 +125,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, }, queryParameters: [Parameters.apiVersion26], - urlParameters: [ - Parameters.$host, - Parameters.scopeId, - Parameters.pricingName1, - ], + urlParameters: [Parameters.$host, Parameters.scopeId, Parameters.pricingName1], headerParameters: [Parameters.accept], serializer, }; @@ -161,11 +145,7 @@ const updateOperationSpec: coreClient.OperationSpec = { }, requestBody: Parameters.pricing, queryParameters: [Parameters.apiVersion26], - urlParameters: [ - Parameters.$host, - Parameters.scopeId, - Parameters.pricingName1, - ], + urlParameters: [Parameters.$host, Parameters.scopeId, Parameters.pricingName1], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer, @@ -181,11 +161,7 @@ const deleteOperationSpec: coreClient.OperationSpec = { }, }, queryParameters: [Parameters.apiVersion26], - urlParameters: [ - Parameters.$host, - Parameters.scopeId, - Parameters.pricingName1, - ], + urlParameters: [Parameters.$host, Parameters.scopeId, Parameters.pricingName1], headerParameters: [Parameters.accept], serializer, }; diff --git a/sdk/security/arm-security/src/operations/regulatoryComplianceAssessments.ts b/sdk/security/arm-security/src/operations/regulatoryComplianceAssessments.ts index be3cac97a10e..ffbdb7b53bc9 100644 --- a/sdk/security/arm-security/src/operations/regulatoryComplianceAssessments.ts +++ b/sdk/security/arm-security/src/operations/regulatoryComplianceAssessments.ts @@ -25,9 +25,7 @@ import { /// /** Class containing RegulatoryComplianceAssessments operations. */ -export class RegulatoryComplianceAssessmentsImpl - implements RegulatoryComplianceAssessments -{ +export class RegulatoryComplianceAssessmentsImpl implements RegulatoryComplianceAssessments { private readonly client: SecurityCenter; /** diff --git a/sdk/security/arm-security/src/operations/regulatoryComplianceControls.ts b/sdk/security/arm-security/src/operations/regulatoryComplianceControls.ts index 4b27a990b0bf..2e45e0a756b6 100644 --- a/sdk/security/arm-security/src/operations/regulatoryComplianceControls.ts +++ b/sdk/security/arm-security/src/operations/regulatoryComplianceControls.ts @@ -25,9 +25,7 @@ import { /// /** Class containing RegulatoryComplianceControls operations. */ -export class RegulatoryComplianceControlsImpl - implements RegulatoryComplianceControls -{ +export class RegulatoryComplianceControlsImpl implements RegulatoryComplianceControls { private readonly client: SecurityCenter; /** @@ -59,11 +57,7 @@ export class RegulatoryComplianceControlsImpl if (settings?.maxPageSize) { throw new Error("maxPageSize is not supported by this operation."); } - return this.listPagingPage( - regulatoryComplianceStandardName, - options, - settings, - ); + return this.listPagingPage(regulatoryComplianceStandardName, options, settings); }, }; } @@ -83,11 +77,7 @@ export class RegulatoryComplianceControlsImpl yield page; } while (continuationToken) { - result = await this._listNext( - regulatoryComplianceStandardName, - continuationToken, - options, - ); + result = await this._listNext(regulatoryComplianceStandardName, continuationToken, options); continuationToken = result.nextLink; let page = result.value || []; setContinuationToken(page, continuationToken); @@ -99,10 +89,7 @@ export class RegulatoryComplianceControlsImpl regulatoryComplianceStandardName: string, options?: RegulatoryComplianceControlsListOptionalParams, ): AsyncIterableIterator { - for await (const page of this.listPagingPage( - regulatoryComplianceStandardName, - options, - )) { + for await (const page of this.listPagingPage(regulatoryComplianceStandardName, options)) { yield* page; } } diff --git a/sdk/security/arm-security/src/operations/regulatoryComplianceStandards.ts b/sdk/security/arm-security/src/operations/regulatoryComplianceStandards.ts index f6a1b3cab3c0..8c6e7044addd 100644 --- a/sdk/security/arm-security/src/operations/regulatoryComplianceStandards.ts +++ b/sdk/security/arm-security/src/operations/regulatoryComplianceStandards.ts @@ -25,9 +25,7 @@ import { /// /** Class containing RegulatoryComplianceStandards operations. */ -export class RegulatoryComplianceStandardsImpl - implements RegulatoryComplianceStandards -{ +export class RegulatoryComplianceStandardsImpl implements RegulatoryComplianceStandards { private readonly client: SecurityCenter; /** @@ -126,10 +124,7 @@ export class RegulatoryComplianceStandardsImpl nextLink: string, options?: RegulatoryComplianceStandardsListNextOptionalParams, ): Promise { - return this.client.sendOperationRequest( - { nextLink, options }, - listNextOperationSpec, - ); + return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec); } } // Operation Specifications @@ -182,11 +177,7 @@ const listNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError, }, }, - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.nextLink, - ], + urlParameters: [Parameters.$host, Parameters.subscriptionId, Parameters.nextLink], headerParameters: [Parameters.accept], serializer, }; diff --git a/sdk/security/arm-security/src/operations/secureScoreControlDefinitions.ts b/sdk/security/arm-security/src/operations/secureScoreControlDefinitions.ts index 2ab507a9aea5..694bc2f7205a 100644 --- a/sdk/security/arm-security/src/operations/secureScoreControlDefinitions.ts +++ b/sdk/security/arm-security/src/operations/secureScoreControlDefinitions.ts @@ -27,9 +27,7 @@ import { /// /** Class containing SecureScoreControlDefinitions operations. */ -export class SecureScoreControlDefinitionsImpl - implements SecureScoreControlDefinitions -{ +export class SecureScoreControlDefinitionsImpl implements SecureScoreControlDefinitions { private readonly client: SecurityCenter; /** @@ -167,10 +165,7 @@ export class SecureScoreControlDefinitionsImpl private _listBySubscription( options?: SecureScoreControlDefinitionsListBySubscriptionOptionalParams, ): Promise { - return this.client.sendOperationRequest( - { options }, - listBySubscriptionOperationSpec, - ); + return this.client.sendOperationRequest({ options }, listBySubscriptionOperationSpec); } /** @@ -182,10 +177,7 @@ export class SecureScoreControlDefinitionsImpl nextLink: string, options?: SecureScoreControlDefinitionsListNextOptionalParams, ): Promise { - return this.client.sendOperationRequest( - { nextLink, options }, - listNextOperationSpec, - ); + return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec); } /** @@ -264,11 +256,7 @@ const listBySubscriptionNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError, }, }, - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.nextLink, - ], + urlParameters: [Parameters.$host, Parameters.subscriptionId, Parameters.nextLink], headerParameters: [Parameters.accept], serializer, }; diff --git a/sdk/security/arm-security/src/operations/secureScoreControls.ts b/sdk/security/arm-security/src/operations/secureScoreControls.ts index 7b92b52d2978..0e26726def50 100644 --- a/sdk/security/arm-security/src/operations/secureScoreControls.ts +++ b/sdk/security/arm-security/src/operations/secureScoreControls.ts @@ -60,11 +60,7 @@ export class SecureScoreControlsImpl implements SecureScoreControls { if (settings?.maxPageSize) { throw new Error("maxPageSize is not supported by this operation."); } - return this.listBySecureScorePagingPage( - secureScoreName, - options, - settings, - ); + return this.listBySecureScorePagingPage(secureScoreName, options, settings); }, }; } @@ -84,11 +80,7 @@ export class SecureScoreControlsImpl implements SecureScoreControls { yield page; } while (continuationToken) { - result = await this._listBySecureScoreNext( - secureScoreName, - continuationToken, - options, - ); + result = await this._listBySecureScoreNext(secureScoreName, continuationToken, options); continuationToken = result.nextLink; let page = result.value || []; setContinuationToken(page, continuationToken); @@ -100,10 +92,7 @@ export class SecureScoreControlsImpl implements SecureScoreControls { secureScoreName: string, options?: SecureScoreControlsListBySecureScoreOptionalParams, ): AsyncIterableIterator { - for await (const page of this.listBySecureScorePagingPage( - secureScoreName, - options, - )) { + for await (const page of this.listBySecureScorePagingPage(secureScoreName, options)) { yield* page; } } @@ -215,10 +204,7 @@ export class SecureScoreControlsImpl implements SecureScoreControls { nextLink: string, options?: SecureScoreControlsListNextOptionalParams, ): Promise { - return this.client.sendOperationRequest( - { nextLink, options }, - listNextOperationSpec, - ); + return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec); } } // Operation Specifications @@ -236,11 +222,7 @@ const listBySecureScoreOperationSpec: coreClient.OperationSpec = { }, }, queryParameters: [Parameters.apiVersion20, Parameters.expand], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.secureScoreName, - ], + urlParameters: [Parameters.$host, Parameters.subscriptionId, Parameters.secureScoreName], headerParameters: [Parameters.accept], serializer, }; @@ -291,11 +273,7 @@ const listNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError, }, }, - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.nextLink, - ], + urlParameters: [Parameters.$host, Parameters.subscriptionId, Parameters.nextLink], headerParameters: [Parameters.accept], serializer, }; diff --git a/sdk/security/arm-security/src/operations/secureScores.ts b/sdk/security/arm-security/src/operations/secureScores.ts index 95cb1a1ed738..b335a19495b6 100644 --- a/sdk/security/arm-security/src/operations/secureScores.ts +++ b/sdk/security/arm-security/src/operations/secureScores.ts @@ -94,9 +94,7 @@ export class SecureScoresImpl implements SecureScores { * List secure scores for all your Microsoft Defender for Cloud initiatives within your current scope. * @param options The options parameters. */ - private _list( - options?: SecureScoresListOptionalParams, - ): Promise { + private _list(options?: SecureScoresListOptionalParams): Promise { return this.client.sendOperationRequest({ options }, listOperationSpec); } @@ -111,10 +109,7 @@ export class SecureScoresImpl implements SecureScores { secureScoreName: string, options?: SecureScoresGetOptionalParams, ): Promise { - return this.client.sendOperationRequest( - { secureScoreName, options }, - getOperationSpec, - ); + return this.client.sendOperationRequest({ secureScoreName, options }, getOperationSpec); } /** @@ -126,10 +121,7 @@ export class SecureScoresImpl implements SecureScores { nextLink: string, options?: SecureScoresListNextOptionalParams, ): Promise { - return this.client.sendOperationRequest( - { nextLink, options }, - listNextOperationSpec, - ); + return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec); } } // Operation Specifications @@ -163,11 +155,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, }, queryParameters: [Parameters.apiVersion20], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.secureScoreName, - ], + urlParameters: [Parameters.$host, Parameters.subscriptionId, Parameters.secureScoreName], headerParameters: [Parameters.accept], serializer, }; @@ -182,11 +170,7 @@ const listNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError, }, }, - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.nextLink, - ], + urlParameters: [Parameters.$host, Parameters.subscriptionId, Parameters.nextLink], headerParameters: [Parameters.accept], serializer, }; diff --git a/sdk/security/arm-security/src/operations/securityConnectorApplication.ts b/sdk/security/arm-security/src/operations/securityConnectorApplication.ts index d2e1b94c8e50..ad7320bdafef 100644 --- a/sdk/security/arm-security/src/operations/securityConnectorApplication.ts +++ b/sdk/security/arm-security/src/operations/securityConnectorApplication.ts @@ -21,9 +21,7 @@ import { } from "../models/index.js"; /** Class containing SecurityConnectorApplication operations. */ -export class SecurityConnectorApplicationImpl - implements SecurityConnectorApplication -{ +export class SecurityConnectorApplicationImpl implements SecurityConnectorApplication { private readonly client: SecurityCenter; /** @@ -116,7 +114,7 @@ const getOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError, }, }, - queryParameters: [Parameters.apiVersion9], + queryParameters: [Parameters.apiVersion8], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -142,7 +140,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, }, requestBody: Parameters.application, - queryParameters: [Parameters.apiVersion9], + queryParameters: [Parameters.apiVersion8], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -158,7 +156,7 @@ const deleteOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName}/providers/Microsoft.Security/applications/{applicationId}", httpMethod: "DELETE", responses: { 200: {}, 204: {}, default: {} }, - queryParameters: [Parameters.apiVersion9], + queryParameters: [Parameters.apiVersion8], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/security/arm-security/src/operations/securityConnectorApplications.ts b/sdk/security/arm-security/src/operations/securityConnectorApplications.ts index 54bf4d807969..889fe59475e5 100644 --- a/sdk/security/arm-security/src/operations/securityConnectorApplications.ts +++ b/sdk/security/arm-security/src/operations/securityConnectorApplications.ts @@ -23,9 +23,7 @@ import { /// /** Class containing SecurityConnectorApplications operations. */ -export class SecurityConnectorApplicationsImpl - implements SecurityConnectorApplications -{ +export class SecurityConnectorApplicationsImpl implements SecurityConnectorApplications { private readonly client: SecurityCenter; /** @@ -48,11 +46,7 @@ export class SecurityConnectorApplicationsImpl securityConnectorName: string, options?: SecurityConnectorApplicationsListOptionalParams, ): PagedAsyncIterableIterator { - const iter = this.listPagingAll( - resourceGroupName, - securityConnectorName, - options, - ); + const iter = this.listPagingAll(resourceGroupName, securityConnectorName, options); return { next() { return iter.next(); @@ -64,12 +58,7 @@ export class SecurityConnectorApplicationsImpl if (settings?.maxPageSize) { throw new Error("maxPageSize is not supported by this operation."); } - return this.listPagingPage( - resourceGroupName, - securityConnectorName, - options, - settings, - ); + return this.listPagingPage(resourceGroupName, securityConnectorName, options, settings); }, }; } @@ -83,11 +72,7 @@ export class SecurityConnectorApplicationsImpl let result: SecurityConnectorApplicationsListResponse; let continuationToken = settings?.continuationToken; if (!continuationToken) { - result = await this._list( - resourceGroupName, - securityConnectorName, - options, - ); + result = await this._list(resourceGroupName, securityConnectorName, options); let page = result.value || []; continuationToken = result.nextLink; setContinuationToken(page, continuationToken); @@ -173,7 +158,7 @@ const listOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError, }, }, - queryParameters: [Parameters.apiVersion9], + queryParameters: [Parameters.apiVersion8], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/security/arm-security/src/operations/securityConnectors.ts b/sdk/security/arm-security/src/operations/securityConnectors.ts index f4b37e4b7001..7da9c70fb7ec 100644 --- a/sdk/security/arm-security/src/operations/securityConnectors.ts +++ b/sdk/security/arm-security/src/operations/securityConnectors.ts @@ -123,11 +123,7 @@ export class SecurityConnectorsImpl implements SecurityConnectors { if (settings?.maxPageSize) { throw new Error("maxPageSize is not supported by this operation."); } - return this.listByResourceGroupPagingPage( - resourceGroupName, - options, - settings, - ); + return this.listByResourceGroupPagingPage(resourceGroupName, options, settings); }, }; } @@ -147,11 +143,7 @@ export class SecurityConnectorsImpl implements SecurityConnectors { yield page; } while (continuationToken) { - result = await this._listByResourceGroupNext( - resourceGroupName, - continuationToken, - options, - ); + result = await this._listByResourceGroupNext(resourceGroupName, continuationToken, options); continuationToken = result.nextLink; let page = result.value || []; setContinuationToken(page, continuationToken); @@ -163,10 +155,7 @@ export class SecurityConnectorsImpl implements SecurityConnectors { resourceGroupName: string, options?: SecurityConnectorsListByResourceGroupOptionalParams, ): AsyncIterableIterator { - for await (const page of this.listByResourceGroupPagingPage( - resourceGroupName, - options, - )) { + for await (const page of this.listByResourceGroupPagingPage(resourceGroupName, options)) { yield* page; } } @@ -285,10 +274,7 @@ export class SecurityConnectorsImpl implements SecurityConnectors { nextLink: string, options?: SecurityConnectorsListNextOptionalParams, ): Promise { - return this.client.sendOperationRequest( - { nextLink, options }, - listNextOperationSpec, - ); + return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec); } /** @@ -323,7 +309,7 @@ const listOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError, }, }, - queryParameters: [Parameters.apiVersion16], + queryParameters: [Parameters.apiVersion14], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], serializer, @@ -339,12 +325,8 @@ const listByResourceGroupOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError, }, }, - queryParameters: [Parameters.apiVersion16], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.resourceGroupName, - ], + queryParameters: [Parameters.apiVersion14], + urlParameters: [Parameters.$host, Parameters.subscriptionId, Parameters.resourceGroupName], headerParameters: [Parameters.accept], serializer, }; @@ -359,7 +341,7 @@ const getOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError, }, }, - queryParameters: [Parameters.apiVersion16], + queryParameters: [Parameters.apiVersion14], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -384,7 +366,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, }, requestBody: Parameters.securityConnector, - queryParameters: [Parameters.apiVersion16], + queryParameters: [Parameters.apiVersion14], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -407,7 +389,7 @@ const updateOperationSpec: coreClient.OperationSpec = { }, }, requestBody: Parameters.securityConnector, - queryParameters: [Parameters.apiVersion16], + queryParameters: [Parameters.apiVersion14], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -428,7 +410,7 @@ const deleteOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError, }, }, - queryParameters: [Parameters.apiVersion16], + queryParameters: [Parameters.apiVersion14], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -449,11 +431,7 @@ const listNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError, }, }, - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.nextLink, - ], + urlParameters: [Parameters.$host, Parameters.subscriptionId, Parameters.nextLink], headerParameters: [Parameters.accept], serializer, }; diff --git a/sdk/security/arm-security/src/operations/securityContacts.ts b/sdk/security/arm-security/src/operations/securityContacts.ts index a239d921f437..990c7286d04f 100644 --- a/sdk/security/arm-security/src/operations/securityContacts.ts +++ b/sdk/security/arm-security/src/operations/securityContacts.ts @@ -113,10 +113,7 @@ export class SecurityContactsImpl implements SecurityContacts { securityContactName: SecurityContactName, options?: SecurityContactsGetOptionalParams, ): Promise { - return this.client.sendOperationRequest( - { securityContactName, options }, - getOperationSpec, - ); + return this.client.sendOperationRequest({ securityContactName, options }, getOperationSpec); } /** @@ -145,10 +142,7 @@ export class SecurityContactsImpl implements SecurityContacts { securityContactName: SecurityContactName, options?: SecurityContactsDeleteOptionalParams, ): Promise { - return this.client.sendOperationRequest( - { securityContactName, options }, - deleteOperationSpec, - ); + return this.client.sendOperationRequest({ securityContactName, options }, deleteOperationSpec); } /** @@ -160,10 +154,7 @@ export class SecurityContactsImpl implements SecurityContacts { nextLink: string, options?: SecurityContactsListNextOptionalParams, ): Promise { - return this.client.sendOperationRequest( - { nextLink, options }, - listNextOperationSpec, - ); + return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec); } } // Operation Specifications @@ -180,7 +171,7 @@ const listOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError, }, }, - queryParameters: [Parameters.apiVersion3], + queryParameters: [Parameters.apiVersion13], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], serializer, @@ -196,12 +187,8 @@ const getOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError, }, }, - queryParameters: [Parameters.apiVersion3], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.securityContactName, - ], + queryParameters: [Parameters.apiVersion13], + urlParameters: [Parameters.$host, Parameters.subscriptionId, Parameters.securityContactName], headerParameters: [Parameters.accept], serializer, }; @@ -220,12 +207,8 @@ const createOperationSpec: coreClient.OperationSpec = { }, }, requestBody: Parameters.securityContact, - queryParameters: [Parameters.apiVersion3], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.securityContactName, - ], + queryParameters: [Parameters.apiVersion13], + urlParameters: [Parameters.$host, Parameters.subscriptionId, Parameters.securityContactName], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer, @@ -240,12 +223,8 @@ const deleteOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError, }, }, - queryParameters: [Parameters.apiVersion3], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.securityContactName, - ], + queryParameters: [Parameters.apiVersion13], + urlParameters: [Parameters.$host, Parameters.subscriptionId, Parameters.securityContactName], headerParameters: [Parameters.accept], serializer, }; @@ -260,11 +239,7 @@ const listNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError, }, }, - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.nextLink, - ], + urlParameters: [Parameters.$host, Parameters.subscriptionId, Parameters.nextLink], headerParameters: [Parameters.accept], serializer, }; diff --git a/sdk/security/arm-security/src/operations/securityOperators.ts b/sdk/security/arm-security/src/operations/securityOperators.ts index e52a7ca6a8ab..08fdd9100b28 100644 --- a/sdk/security/arm-security/src/operations/securityOperators.ts +++ b/sdk/security/arm-security/src/operations/securityOperators.ts @@ -42,10 +42,7 @@ export class SecurityOperatorsImpl implements SecurityOperators { pricingName: string, options?: SecurityOperatorsListOptionalParams, ): Promise { - return this.client.sendOperationRequest( - { pricingName, options }, - listOperationSpec, - ); + return this.client.sendOperationRequest({ pricingName, options }, listOperationSpec); } /** @@ -113,12 +110,8 @@ const listOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError, }, }, - queryParameters: [Parameters.apiVersion11], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.pricingName, - ], + queryParameters: [Parameters.apiVersion9], + urlParameters: [Parameters.$host, Parameters.subscriptionId, Parameters.pricingName], headerParameters: [Parameters.accept], serializer, }; @@ -133,7 +126,7 @@ const getOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError, }, }, - queryParameters: [Parameters.apiVersion11], + queryParameters: [Parameters.apiVersion9], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -154,7 +147,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError, }, }, - queryParameters: [Parameters.apiVersion11], + queryParameters: [Parameters.apiVersion9], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -174,7 +167,7 @@ const deleteOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError, }, }, - queryParameters: [Parameters.apiVersion11], + queryParameters: [Parameters.apiVersion9], urlParameters: [ Parameters.$host, Parameters.subscriptionId, diff --git a/sdk/security/arm-security/src/operations/securitySolutions.ts b/sdk/security/arm-security/src/operations/securitySolutions.ts index ee4e46ee6f76..5fc549068fc7 100644 --- a/sdk/security/arm-security/src/operations/securitySolutions.ts +++ b/sdk/security/arm-security/src/operations/securitySolutions.ts @@ -130,10 +130,7 @@ export class SecuritySolutionsImpl implements SecuritySolutions { nextLink: string, options?: SecuritySolutionsListNextOptionalParams, ): Promise { - return this.client.sendOperationRequest( - { nextLink, options }, - listNextOperationSpec, - ); + return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec); } } // Operation Specifications @@ -188,11 +185,7 @@ const listNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError, }, }, - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.nextLink, - ], + urlParameters: [Parameters.$host, Parameters.subscriptionId, Parameters.nextLink], headerParameters: [Parameters.accept], serializer, }; diff --git a/sdk/security/arm-security/src/operations/securitySolutionsReferenceDataOperations.ts b/sdk/security/arm-security/src/operations/securitySolutionsReferenceDataOperations.ts index ac141acf1081..b47318be7eb0 100644 --- a/sdk/security/arm-security/src/operations/securitySolutionsReferenceDataOperations.ts +++ b/sdk/security/arm-security/src/operations/securitySolutionsReferenceDataOperations.ts @@ -89,11 +89,7 @@ const listByHomeRegionOperationSpec: coreClient.OperationSpec = { }, }, queryParameters: [Parameters.apiVersion20], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.ascLocation, - ], + urlParameters: [Parameters.$host, Parameters.subscriptionId, Parameters.ascLocation], headerParameters: [Parameters.accept], serializer, }; diff --git a/sdk/security/arm-security/src/operations/securityStandards.ts b/sdk/security/arm-security/src/operations/securityStandards.ts new file mode 100644 index 000000000000..657143a8e9a5 --- /dev/null +++ b/sdk/security/arm-security/src/operations/securityStandards.ts @@ -0,0 +1,276 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper.js"; +import { SecurityStandards } from "../operationsInterfaces/index.js"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { SecurityCenter } from "../securityCenter.js"; +import { + SecurityStandard, + SecurityStandardsListNextOptionalParams, + SecurityStandardsListOptionalParams, + SecurityStandardsListResponse, + SecurityStandardsGetOptionalParams, + SecurityStandardsGetResponse, + SecurityStandardsCreateOrUpdateOptionalParams, + SecurityStandardsCreateOrUpdateResponse, + SecurityStandardsDeleteOptionalParams, + SecurityStandardsListNextResponse, +} from "../models/index.js"; + +/// +/** Class containing SecurityStandards operations. */ +export class SecurityStandardsImpl implements SecurityStandards { + private readonly client: SecurityCenter; + + /** + * Initialize a new instance of the class SecurityStandards class. + * @param client Reference to the service client + */ + constructor(client: SecurityCenter) { + this.client = client; + } + + /** + * Get a list of all relevant security standards over a scope + * @param scope The scope of the security standard. Valid scopes are: management group (format: + * 'providers/Microsoft.Management/managementGroups/{managementGroup}'), subscription (format: + * 'subscriptions/{subscriptionId}'), or security connector (format: + * 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName})' + * @param options The options parameters. + */ + public list( + scope: string, + options?: SecurityStandardsListOptionalParams, + ): PagedAsyncIterableIterator { + const iter = this.listPagingAll(scope, options); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listPagingPage(scope, options, settings); + }, + }; + } + + private async *listPagingPage( + scope: string, + options?: SecurityStandardsListOptionalParams, + settings?: PageSettings, + ): AsyncIterableIterator { + let result: SecurityStandardsListResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._list(scope, options); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listNext(scope, continuationToken, options); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listPagingAll( + scope: string, + options?: SecurityStandardsListOptionalParams, + ): AsyncIterableIterator { + for await (const page of this.listPagingPage(scope, options)) { + yield* page; + } + } + + /** + * Get a list of all relevant security standards over a scope + * @param scope The scope of the security standard. Valid scopes are: management group (format: + * 'providers/Microsoft.Management/managementGroups/{managementGroup}'), subscription (format: + * 'subscriptions/{subscriptionId}'), or security connector (format: + * 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName})' + * @param options The options parameters. + */ + private _list( + scope: string, + options?: SecurityStandardsListOptionalParams, + ): Promise { + return this.client.sendOperationRequest({ scope, options }, listOperationSpec); + } + + /** + * Get a specific security standard for the requested scope by standardId + * @param scope The scope of the security standard. Valid scopes are: management group (format: + * 'providers/Microsoft.Management/managementGroups/{managementGroup}'), subscription (format: + * 'subscriptions/{subscriptionId}'), or security connector (format: + * 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName})' + * @param standardId The Security Standard key - unique key for the standard type + * @param options The options parameters. + */ + get( + scope: string, + standardId: string, + options?: SecurityStandardsGetOptionalParams, + ): Promise { + return this.client.sendOperationRequest({ scope, standardId, options }, getOperationSpec); + } + + /** + * Creates or updates a security standard over a given scope + * @param scope The scope of the security standard. Valid scopes are: management group (format: + * 'providers/Microsoft.Management/managementGroups/{managementGroup}'), subscription (format: + * 'subscriptions/{subscriptionId}'), or security connector (format: + * 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName})' + * @param standardId The Security Standard key - unique key for the standard type + * @param standard Custom security standard over a pre-defined scope + * @param options The options parameters. + */ + createOrUpdate( + scope: string, + standardId: string, + standard: SecurityStandard, + options?: SecurityStandardsCreateOrUpdateOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { scope, standardId, standard, options }, + createOrUpdateOperationSpec, + ); + } + + /** + * Delete a security standard over a given scope + * @param scope The scope of the security standard. Valid scopes are: management group (format: + * 'providers/Microsoft.Management/managementGroups/{managementGroup}'), subscription (format: + * 'subscriptions/{subscriptionId}'), or security connector (format: + * 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName})' + * @param standardId The Security Standard key - unique key for the standard type + * @param options The options parameters. + */ + delete( + scope: string, + standardId: string, + options?: SecurityStandardsDeleteOptionalParams, + ): Promise { + return this.client.sendOperationRequest({ scope, standardId, options }, deleteOperationSpec); + } + + /** + * ListNext + * @param scope The scope of the security standard. Valid scopes are: management group (format: + * 'providers/Microsoft.Management/managementGroups/{managementGroup}'), subscription (format: + * 'subscriptions/{subscriptionId}'), or security connector (format: + * 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName})' + * @param nextLink The nextLink from the previous successful call to the List method. + * @param options The options parameters. + */ + private _listNext( + scope: string, + nextLink: string, + options?: SecurityStandardsListNextOptionalParams, + ): Promise { + return this.client.sendOperationRequest({ scope, nextLink, options }, listNextOperationSpec); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const listOperationSpec: coreClient.OperationSpec = { + path: "/{scope}/providers/Microsoft.Security/securityStandards", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.SecurityStandardList, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion27], + urlParameters: [Parameters.$host, Parameters.scope1], + headerParameters: [Parameters.accept], + serializer, +}; +const getOperationSpec: coreClient.OperationSpec = { + path: "/{scope}/providers/Microsoft.Security/securityStandards/{standardId}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.SecurityStandard, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion27], + urlParameters: [Parameters.$host, Parameters.scope1, Parameters.standardId], + headerParameters: [Parameters.accept], + serializer, +}; +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: "/{scope}/providers/Microsoft.Security/securityStandards/{standardId}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.SecurityStandard, + }, + 201: { + bodyMapper: Mappers.SecurityStandard, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + requestBody: Parameters.standard, + queryParameters: [Parameters.apiVersion27], + urlParameters: [Parameters.$host, Parameters.scope1, Parameters.standardId], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer, +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: "/{scope}/providers/Microsoft.Security/securityStandards/{standardId}", + httpMethod: "DELETE", + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion27], + urlParameters: [Parameters.$host, Parameters.scope1, Parameters.standardId], + headerParameters: [Parameters.accept], + serializer, +}; +const listNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.SecurityStandardList, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + urlParameters: [Parameters.$host, Parameters.nextLink, Parameters.scope1], + headerParameters: [Parameters.accept], + serializer, +}; diff --git a/sdk/security/arm-security/src/operations/sensitivitySettings.ts b/sdk/security/arm-security/src/operations/sensitivitySettings.ts index 1dacb695c56a..acbb6b33b17b 100644 --- a/sdk/security/arm-security/src/operations/sensitivitySettings.ts +++ b/sdk/security/arm-security/src/operations/sensitivitySettings.ts @@ -12,6 +12,11 @@ import * as Mappers from "../models/mappers.js"; import * as Parameters from "../models/parameters.js"; import { SecurityCenter } from "../securityCenter.js"; import { + UpdateSensitivitySettingsRequest, + SensitivitySettingsCreateOrUpdateOptionalParams, + SensitivitySettingsCreateOrUpdateResponse, + SensitivitySettingsGetOptionalParams, + SensitivitySettingsGetResponse, SensitivitySettingsListOptionalParams, SensitivitySettingsListResponse, } from "../models/index.js"; @@ -28,19 +33,74 @@ export class SensitivitySettingsImpl implements SensitivitySettings { this.client = client; } + /** + * Create or update data sensitivity settings for sensitive data discovery + * @param sensitivitySettings The data sensitivity settings to update + * @param options The options parameters. + */ + createOrUpdate( + sensitivitySettings: UpdateSensitivitySettingsRequest, + options?: SensitivitySettingsCreateOrUpdateOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { sensitivitySettings, options }, + createOrUpdateOperationSpec, + ); + } + + /** + * Gets data sensitivity settings for sensitive data discovery + * @param options The options parameters. + */ + get(options?: SensitivitySettingsGetOptionalParams): Promise { + return this.client.sendOperationRequest({ options }, getOperationSpec); + } + /** * Gets a list with a single sensitivity settings resource * @param options The options parameters. */ - list( - options?: SensitivitySettingsListOptionalParams, - ): Promise { + list(options?: SensitivitySettingsListOptionalParams): Promise { return this.client.sendOperationRequest({ options }, listOperationSpec); } } // Operation Specifications const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); +const createOrUpdateOperationSpec: coreClient.OperationSpec = { + path: "/providers/Microsoft.Security/sensitivitySettings/current", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.GetSensitivitySettingsResponse, + }, + default: { + bodyMapper: Mappers.CloudError, + }, + }, + requestBody: Parameters.sensitivitySettings, + queryParameters: [Parameters.apiVersion11], + urlParameters: [Parameters.$host], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer, +}; +const getOperationSpec: coreClient.OperationSpec = { + path: "/providers/Microsoft.Security/sensitivitySettings/current", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.GetSensitivitySettingsResponse, + }, + default: { + bodyMapper: Mappers.CloudError, + }, + }, + queryParameters: [Parameters.apiVersion11], + urlParameters: [Parameters.$host], + headerParameters: [Parameters.accept], + serializer, +}; const listOperationSpec: coreClient.OperationSpec = { path: "/providers/Microsoft.Security/sensitivitySettings", httpMethod: "GET", @@ -52,7 +112,7 @@ const listOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError, }, }, - queryParameters: [Parameters.apiVersion13], + queryParameters: [Parameters.apiVersion11], urlParameters: [Parameters.$host], headerParameters: [Parameters.accept], serializer, diff --git a/sdk/security/arm-security/src/operations/serverVulnerabilityAssessmentOperations.ts b/sdk/security/arm-security/src/operations/serverVulnerabilityAssessmentOperations.ts index 939aee4e4730..1b20f4c6b0d4 100644 --- a/sdk/security/arm-security/src/operations/serverVulnerabilityAssessmentOperations.ts +++ b/sdk/security/arm-security/src/operations/serverVulnerabilityAssessmentOperations.ts @@ -11,11 +11,7 @@ import * as coreClient from "@azure/core-client"; import * as Mappers from "../models/mappers.js"; import * as Parameters from "../models/parameters.js"; import { SecurityCenter } from "../securityCenter.js"; -import { - SimplePollerLike, - OperationState, - createHttpPoller, -} from "@azure/core-lro"; +import { SimplePollerLike, OperationState, createHttpPoller } from "@azure/core-lro"; import { createLroSpec } from "../lroImpl.js"; import { ServerVulnerabilityAssessmentListByExtendedResourceOptionalParams, @@ -152,8 +148,7 @@ export class ServerVulnerabilityAssessmentOperationsImpl args: coreClient.OperationArguments, spec: coreClient.OperationSpec, ) => { - let currentRawResponse: coreClient.FullOperationResponse | undefined = - undefined; + let currentRawResponse: coreClient.FullOperationResponse | undefined = undefined; const providedCallback = args.options?.onResponse; const callback: coreClient.RawResponseCallback = ( rawResponse: coreClient.FullOperationResponse, diff --git a/sdk/security/arm-security/src/operations/serverVulnerabilityAssessmentsSettings.ts b/sdk/security/arm-security/src/operations/serverVulnerabilityAssessmentsSettings.ts index 9e5982e1634c..a831705259c3 100644 --- a/sdk/security/arm-security/src/operations/serverVulnerabilityAssessmentsSettings.ts +++ b/sdk/security/arm-security/src/operations/serverVulnerabilityAssessmentsSettings.ts @@ -103,10 +103,7 @@ export class ServerVulnerabilityAssessmentsSettingsImpl private _listBySubscription( options?: ServerVulnerabilityAssessmentsSettingsListBySubscriptionOptionalParams, ): Promise { - return this.client.sendOperationRequest( - { options }, - listBySubscriptionOperationSpec, - ); + return this.client.sendOperationRequest({ options }, listBySubscriptionOperationSpec); } /** @@ -119,10 +116,7 @@ export class ServerVulnerabilityAssessmentsSettingsImpl settingKind: ServerVulnerabilityAssessmentsSettingKindName, options?: ServerVulnerabilityAssessmentsSettingsGetOptionalParams, ): Promise { - return this.client.sendOperationRequest( - { settingKind, options }, - getOperationSpec, - ); + return this.client.sendOperationRequest({ settingKind, options }, getOperationSpec); } /** @@ -153,10 +147,7 @@ export class ServerVulnerabilityAssessmentsSettingsImpl settingKind: ServerVulnerabilityAssessmentsSettingKindName, options?: ServerVulnerabilityAssessmentsSettingsDeleteOptionalParams, ): Promise { - return this.client.sendOperationRequest( - { settingKind, options }, - deleteOperationSpec, - ); + return this.client.sendOperationRequest({ settingKind, options }, deleteOperationSpec); } /** @@ -205,11 +196,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, }, queryParameters: [Parameters.apiVersion24], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.settingKind, - ], + urlParameters: [Parameters.$host, Parameters.subscriptionId, Parameters.settingKind], headerParameters: [Parameters.accept], serializer, }; @@ -229,11 +216,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, requestBody: Parameters.serverVulnerabilityAssessmentsSetting, queryParameters: [Parameters.apiVersion24], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.settingKind, - ], + urlParameters: [Parameters.$host, Parameters.subscriptionId, Parameters.settingKind], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer, @@ -249,11 +232,7 @@ const deleteOperationSpec: coreClient.OperationSpec = { }, }, queryParameters: [Parameters.apiVersion24], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.settingKind, - ], + urlParameters: [Parameters.$host, Parameters.subscriptionId, Parameters.settingKind], headerParameters: [Parameters.accept], serializer, }; @@ -268,11 +247,7 @@ const listBySubscriptionNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.ErrorResponse, }, }, - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.nextLink, - ], + urlParameters: [Parameters.$host, Parameters.subscriptionId, Parameters.nextLink], headerParameters: [Parameters.accept], serializer, }; diff --git a/sdk/security/arm-security/src/operations/settings.ts b/sdk/security/arm-security/src/operations/settings.ts index 0d9b62e88460..f3e788c6a966 100644 --- a/sdk/security/arm-security/src/operations/settings.ts +++ b/sdk/security/arm-security/src/operations/settings.ts @@ -43,9 +43,7 @@ export class SettingsImpl implements Settings { * Settings about different configurations in Microsoft Defender for Cloud * @param options The options parameters. */ - public list( - options?: SettingsListOptionalParams, - ): PagedAsyncIterableIterator { + public list(options?: SettingsListOptionalParams): PagedAsyncIterableIterator { const iter = this.listPagingAll(options); return { next() { @@ -97,9 +95,7 @@ export class SettingsImpl implements Settings { * Settings about different configurations in Microsoft Defender for Cloud * @param options The options parameters. */ - private _list( - options?: SettingsListOptionalParams, - ): Promise { + private _list(options?: SettingsListOptionalParams): Promise { return this.client.sendOperationRequest({ options }, listOperationSpec); } @@ -112,10 +108,7 @@ export class SettingsImpl implements Settings { settingName: SettingNameAutoGenerated, options?: SettingsGetOptionalParams, ): Promise { - return this.client.sendOperationRequest( - { settingName, options }, - getOperationSpec, - ); + return this.client.sendOperationRequest({ settingName, options }, getOperationSpec); } /** @@ -129,10 +122,7 @@ export class SettingsImpl implements Settings { setting: SettingUnion, options?: SettingsUpdateOptionalParams, ): Promise { - return this.client.sendOperationRequest( - { settingName, setting, options }, - updateOperationSpec, - ); + return this.client.sendOperationRequest({ settingName, setting, options }, updateOperationSpec); } /** @@ -144,10 +134,7 @@ export class SettingsImpl implements Settings { nextLink: string, options?: SettingsListNextOptionalParams, ): Promise { - return this.client.sendOperationRequest( - { nextLink, options }, - listNextOperationSpec, - ); + return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec); } } // Operation Specifications @@ -181,11 +168,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, }, queryParameters: [Parameters.apiVersion23], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.settingName3, - ], + urlParameters: [Parameters.$host, Parameters.subscriptionId, Parameters.settingName3], headerParameters: [Parameters.accept], serializer, }; @@ -202,11 +185,7 @@ const updateOperationSpec: coreClient.OperationSpec = { }, requestBody: Parameters.setting1, queryParameters: [Parameters.apiVersion23], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.settingName3, - ], + urlParameters: [Parameters.$host, Parameters.subscriptionId, Parameters.settingName3], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer, @@ -222,11 +201,7 @@ const listNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError, }, }, - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.nextLink, - ], + urlParameters: [Parameters.$host, Parameters.subscriptionId, Parameters.nextLink], headerParameters: [Parameters.accept], serializer, }; diff --git a/sdk/security/arm-security/src/operations/softwareInventories.ts b/sdk/security/arm-security/src/operations/softwareInventories.ts index f3476802b76d..4c7d8baaa13b 100644 --- a/sdk/security/arm-security/src/operations/softwareInventories.ts +++ b/sdk/security/arm-security/src/operations/softwareInventories.ts @@ -232,10 +232,7 @@ export class SoftwareInventoriesImpl implements SoftwareInventories { private _listBySubscription( options?: SoftwareInventoriesListBySubscriptionOptionalParams, ): Promise { - return this.client.sendOperationRequest( - { options }, - listBySubscriptionOperationSpec, - ); + return this.client.sendOperationRequest({ options }, listBySubscriptionOperationSpec); } /** @@ -329,7 +326,7 @@ const listByExtendedResourceOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError, }, }, - queryParameters: [Parameters.apiVersion5], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -352,7 +349,7 @@ const listBySubscriptionOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError, }, }, - queryParameters: [Parameters.apiVersion5], + queryParameters: [Parameters.apiVersion4], urlParameters: [Parameters.$host, Parameters.subscriptionId], headerParameters: [Parameters.accept], serializer, @@ -368,7 +365,7 @@ const getOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError, }, }, - queryParameters: [Parameters.apiVersion5], + queryParameters: [Parameters.apiVersion4], urlParameters: [ Parameters.$host, Parameters.subscriptionId, @@ -415,11 +412,7 @@ const listBySubscriptionNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError, }, }, - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.nextLink, - ], + urlParameters: [Parameters.$host, Parameters.subscriptionId, Parameters.nextLink], headerParameters: [Parameters.accept], serializer, }; diff --git a/sdk/security/arm-security/src/operations/sqlVulnerabilityAssessmentBaselineRules.ts b/sdk/security/arm-security/src/operations/sqlVulnerabilityAssessmentBaselineRules.ts index 3dce3011144e..ffe583abef06 100644 --- a/sdk/security/arm-security/src/operations/sqlVulnerabilityAssessmentBaselineRules.ts +++ b/sdk/security/arm-security/src/operations/sqlVulnerabilityAssessmentBaselineRules.ts @@ -122,10 +122,7 @@ export class SqlVulnerabilityAssessmentBaselineRulesImpl resourceId: string, options?: SqlVulnerabilityAssessmentBaselineRulesAddOptionalParams, ): Promise { - return this.client.sendOperationRequest( - { workspaceId, resourceId, options }, - addOperationSpec, - ); + return this.client.sendOperationRequest({ workspaceId, resourceId, options }, addOperationSpec); } } // Operation Specifications @@ -143,7 +140,7 @@ const createOrUpdateOperationSpec: coreClient.OperationSpec = { }, }, requestBody: Parameters.body, - queryParameters: [Parameters.workspaceId, Parameters.apiVersion12], + queryParameters: [Parameters.workspaceId, Parameters.apiVersion10], urlParameters: [Parameters.$host, Parameters.ruleId, Parameters.resourceId], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", @@ -160,7 +157,7 @@ const getOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError, }, }, - queryParameters: [Parameters.workspaceId, Parameters.apiVersion12], + queryParameters: [Parameters.workspaceId, Parameters.apiVersion10], urlParameters: [Parameters.$host, Parameters.ruleId, Parameters.resourceId], headerParameters: [Parameters.accept], serializer, @@ -175,7 +172,7 @@ const deleteOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError, }, }, - queryParameters: [Parameters.workspaceId, Parameters.apiVersion12], + queryParameters: [Parameters.workspaceId, Parameters.apiVersion10], urlParameters: [Parameters.$host, Parameters.ruleId, Parameters.resourceId], headerParameters: [Parameters.accept], serializer, @@ -191,7 +188,7 @@ const listOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError, }, }, - queryParameters: [Parameters.workspaceId, Parameters.apiVersion12], + queryParameters: [Parameters.workspaceId, Parameters.apiVersion10], urlParameters: [Parameters.$host, Parameters.resourceId], headerParameters: [Parameters.accept], serializer, @@ -208,7 +205,7 @@ const addOperationSpec: coreClient.OperationSpec = { }, }, requestBody: Parameters.body1, - queryParameters: [Parameters.workspaceId, Parameters.apiVersion12], + queryParameters: [Parameters.workspaceId, Parameters.apiVersion10], urlParameters: [Parameters.$host, Parameters.resourceId], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", diff --git a/sdk/security/arm-security/src/operations/sqlVulnerabilityAssessmentScanResults.ts b/sdk/security/arm-security/src/operations/sqlVulnerabilityAssessmentScanResults.ts index 8231f91192af..70a39745deb3 100644 --- a/sdk/security/arm-security/src/operations/sqlVulnerabilityAssessmentScanResults.ts +++ b/sdk/security/arm-security/src/operations/sqlVulnerabilityAssessmentScanResults.ts @@ -86,7 +86,7 @@ const getOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError, }, }, - queryParameters: [Parameters.workspaceId, Parameters.apiVersion12], + queryParameters: [Parameters.workspaceId, Parameters.apiVersion10], urlParameters: [ Parameters.$host, Parameters.resourceId, @@ -107,7 +107,7 @@ const listOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError, }, }, - queryParameters: [Parameters.workspaceId, Parameters.apiVersion12], + queryParameters: [Parameters.workspaceId, Parameters.apiVersion10], urlParameters: [Parameters.$host, Parameters.resourceId, Parameters.scanId], headerParameters: [Parameters.accept], serializer, diff --git a/sdk/security/arm-security/src/operations/sqlVulnerabilityAssessmentScans.ts b/sdk/security/arm-security/src/operations/sqlVulnerabilityAssessmentScans.ts index 7f25db5b88a1..3d89e1cca660 100644 --- a/sdk/security/arm-security/src/operations/sqlVulnerabilityAssessmentScans.ts +++ b/sdk/security/arm-security/src/operations/sqlVulnerabilityAssessmentScans.ts @@ -19,9 +19,7 @@ import { } from "../models/index.js"; /** Class containing SqlVulnerabilityAssessmentScans operations. */ -export class SqlVulnerabilityAssessmentScansImpl - implements SqlVulnerabilityAssessmentScans -{ +export class SqlVulnerabilityAssessmentScansImpl implements SqlVulnerabilityAssessmentScans { private readonly client: SecurityCenter; /** @@ -82,7 +80,7 @@ const getOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError, }, }, - queryParameters: [Parameters.workspaceId, Parameters.apiVersion12], + queryParameters: [Parameters.workspaceId, Parameters.apiVersion10], urlParameters: [Parameters.$host, Parameters.resourceId, Parameters.scanId], headerParameters: [Parameters.accept], serializer, @@ -98,7 +96,7 @@ const listOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError, }, }, - queryParameters: [Parameters.workspaceId, Parameters.apiVersion12], + queryParameters: [Parameters.workspaceId, Parameters.apiVersion10], urlParameters: [Parameters.$host, Parameters.resourceId], headerParameters: [Parameters.accept], serializer, diff --git a/sdk/security/arm-security/src/operations/standardAssignments.ts b/sdk/security/arm-security/src/operations/standardAssignments.ts new file mode 100644 index 000000000000..99884694b410 --- /dev/null +++ b/sdk/security/arm-security/src/operations/standardAssignments.ts @@ -0,0 +1,281 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator, PageSettings } from "@azure/core-paging"; +import { setContinuationToken } from "../pagingHelper.js"; +import { StandardAssignments } from "../operationsInterfaces/index.js"; +import * as coreClient from "@azure/core-client"; +import * as Mappers from "../models/mappers.js"; +import * as Parameters from "../models/parameters.js"; +import { SecurityCenter } from "../securityCenter.js"; +import { + StandardAssignment, + StandardAssignmentsListNextOptionalParams, + StandardAssignmentsListOptionalParams, + StandardAssignmentsListResponse, + StandardAssignmentsGetOptionalParams, + StandardAssignmentsGetResponse, + StandardAssignmentsCreateOptionalParams, + StandardAssignmentsCreateResponse, + StandardAssignmentsDeleteOptionalParams, + StandardAssignmentsListNextResponse, +} from "../models/index.js"; + +/// +/** Class containing StandardAssignments operations. */ +export class StandardAssignmentsImpl implements StandardAssignments { + private readonly client: SecurityCenter; + + /** + * Initialize a new instance of the class StandardAssignments class. + * @param client Reference to the service client + */ + constructor(client: SecurityCenter) { + this.client = client; + } + + /** + * Get a list of all relevant standard assignments over a scope + * @param scope The scope of the standard assignment. Valid scopes are: management group (format: + * 'providers/Microsoft.Management/managementGroups/{managementGroup}'), subscription (format: + * 'subscriptions/{subscriptionId}'), or security connector (format: + * 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName})' + * @param options The options parameters. + */ + public list( + scope: string, + options?: StandardAssignmentsListOptionalParams, + ): PagedAsyncIterableIterator { + const iter = this.listPagingAll(scope, options); + return { + next() { + return iter.next(); + }, + [Symbol.asyncIterator]() { + return this; + }, + byPage: (settings?: PageSettings) => { + if (settings?.maxPageSize) { + throw new Error("maxPageSize is not supported by this operation."); + } + return this.listPagingPage(scope, options, settings); + }, + }; + } + + private async *listPagingPage( + scope: string, + options?: StandardAssignmentsListOptionalParams, + settings?: PageSettings, + ): AsyncIterableIterator { + let result: StandardAssignmentsListResponse; + let continuationToken = settings?.continuationToken; + if (!continuationToken) { + result = await this._list(scope, options); + let page = result.value || []; + continuationToken = result.nextLink; + setContinuationToken(page, continuationToken); + yield page; + } + while (continuationToken) { + result = await this._listNext(scope, continuationToken, options); + continuationToken = result.nextLink; + let page = result.value || []; + setContinuationToken(page, continuationToken); + yield page; + } + } + + private async *listPagingAll( + scope: string, + options?: StandardAssignmentsListOptionalParams, + ): AsyncIterableIterator { + for await (const page of this.listPagingPage(scope, options)) { + yield* page; + } + } + + /** + * This operation retrieves a single standard assignment, given its name and the scope it was created + * at. + * @param resourceId The identifier of the resource. + * @param standardAssignmentName The standard assignments assignment key - unique key for the standard + * assignment + * @param options The options parameters. + */ + get( + resourceId: string, + standardAssignmentName: string, + options?: StandardAssignmentsGetOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceId, standardAssignmentName, options }, + getOperationSpec, + ); + } + + /** + * This operation creates or updates a standard assignment with the given scope and name. standard + * assignments apply to all resources contained within their scope. For example, when you assign a + * policy at resource group scope, that policy applies to all resources in the group. + * @param resourceId The identifier of the resource. + * @param standardAssignmentName The standard assignments assignment key - unique key for the standard + * assignment + * @param standardAssignment Custom standard assignment over a pre-defined scope + * @param options The options parameters. + */ + create( + resourceId: string, + standardAssignmentName: string, + standardAssignment: StandardAssignment, + options?: StandardAssignmentsCreateOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceId, standardAssignmentName, standardAssignment, options }, + createOperationSpec, + ); + } + + /** + * This operation deletes a standard assignment, given its name and the scope it was created in. The + * scope of a standard assignment is the part of its ID preceding + * '/providers/Microsoft.Security/standardAssignments/{standardAssignmentName}'. + * @param resourceId The identifier of the resource. + * @param standardAssignmentName The standard assignments assignment key - unique key for the standard + * assignment + * @param options The options parameters. + */ + delete( + resourceId: string, + standardAssignmentName: string, + options?: StandardAssignmentsDeleteOptionalParams, + ): Promise { + return this.client.sendOperationRequest( + { resourceId, standardAssignmentName, options }, + deleteOperationSpec, + ); + } + + /** + * Get a list of all relevant standard assignments over a scope + * @param scope The scope of the standard assignment. Valid scopes are: management group (format: + * 'providers/Microsoft.Management/managementGroups/{managementGroup}'), subscription (format: + * 'subscriptions/{subscriptionId}'), or security connector (format: + * 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName})' + * @param options The options parameters. + */ + private _list( + scope: string, + options?: StandardAssignmentsListOptionalParams, + ): Promise { + return this.client.sendOperationRequest({ scope, options }, listOperationSpec); + } + + /** + * ListNext + * @param scope The scope of the standard assignment. Valid scopes are: management group (format: + * 'providers/Microsoft.Management/managementGroups/{managementGroup}'), subscription (format: + * 'subscriptions/{subscriptionId}'), or security connector (format: + * 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName})' + * @param nextLink The nextLink from the previous successful call to the List method. + * @param options The options parameters. + */ + private _listNext( + scope: string, + nextLink: string, + options?: StandardAssignmentsListNextOptionalParams, + ): Promise { + return this.client.sendOperationRequest({ scope, nextLink, options }, listNextOperationSpec); + } +} +// Operation Specifications +const serializer = coreClient.createSerializer(Mappers, /* isXml */ false); + +const getOperationSpec: coreClient.OperationSpec = { + path: "/{resourceId}/providers/Microsoft.Security/standardAssignments/{standardAssignmentName}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.StandardAssignment, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion27], + urlParameters: [Parameters.$host, Parameters.resourceId, Parameters.standardAssignmentName], + headerParameters: [Parameters.accept], + serializer, +}; +const createOperationSpec: coreClient.OperationSpec = { + path: "/{resourceId}/providers/Microsoft.Security/standardAssignments/{standardAssignmentName}", + httpMethod: "PUT", + responses: { + 200: { + bodyMapper: Mappers.StandardAssignment, + }, + 201: { + bodyMapper: Mappers.StandardAssignment, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + requestBody: Parameters.standardAssignment, + queryParameters: [Parameters.apiVersion27], + urlParameters: [Parameters.$host, Parameters.resourceId, Parameters.standardAssignmentName], + headerParameters: [Parameters.accept, Parameters.contentType], + mediaType: "json", + serializer, +}; +const deleteOperationSpec: coreClient.OperationSpec = { + path: "/{resourceId}/providers/Microsoft.Security/standardAssignments/{standardAssignmentName}", + httpMethod: "DELETE", + responses: { + 200: {}, + 204: {}, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion27], + urlParameters: [Parameters.$host, Parameters.resourceId, Parameters.standardAssignmentName], + headerParameters: [Parameters.accept], + serializer, +}; +const listOperationSpec: coreClient.OperationSpec = { + path: "/{scope}/providers/Microsoft.Security/standardAssignments", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.StandardAssignmentsList, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + queryParameters: [Parameters.apiVersion27], + urlParameters: [Parameters.$host, Parameters.scope1], + headerParameters: [Parameters.accept], + serializer, +}; +const listNextOperationSpec: coreClient.OperationSpec = { + path: "{nextLink}", + httpMethod: "GET", + responses: { + 200: { + bodyMapper: Mappers.StandardAssignmentsList, + }, + default: { + bodyMapper: Mappers.ErrorResponse, + }, + }, + urlParameters: [Parameters.$host, Parameters.nextLink, Parameters.scope1], + headerParameters: [Parameters.accept], + serializer, +}; diff --git a/sdk/security/arm-security/src/operations/subAssessments.ts b/sdk/security/arm-security/src/operations/subAssessments.ts index b14ff279a93f..51e74473ac6b 100644 --- a/sdk/security/arm-security/src/operations/subAssessments.ts +++ b/sdk/security/arm-security/src/operations/subAssessments.ts @@ -146,12 +146,7 @@ export class SubAssessmentsImpl implements SubAssessments { yield page; } while (continuationToken) { - result = await this._listNext( - scope, - assessmentName, - continuationToken, - options, - ); + result = await this._listNext(scope, assessmentName, continuationToken, options); continuationToken = result.nextLink; let page = result.value || []; setContinuationToken(page, continuationToken); @@ -164,11 +159,7 @@ export class SubAssessmentsImpl implements SubAssessments { assessmentName: string, options?: SubAssessmentsListOptionalParams, ): AsyncIterableIterator { - for await (const page of this.listPagingPage( - scope, - assessmentName, - options, - )) { + for await (const page of this.listPagingPage(scope, assessmentName, options)) { yield* page; } } @@ -184,10 +175,7 @@ export class SubAssessmentsImpl implements SubAssessments { scope: string, options?: SubAssessmentsListAllOptionalParams, ): Promise { - return this.client.sendOperationRequest( - { scope, options }, - listAllOperationSpec, - ); + return this.client.sendOperationRequest({ scope, options }, listAllOperationSpec); } /** @@ -203,10 +191,7 @@ export class SubAssessmentsImpl implements SubAssessments { assessmentName: string, options?: SubAssessmentsListOptionalParams, ): Promise { - return this.client.sendOperationRequest( - { scope, assessmentName, options }, - listOperationSpec, - ); + return this.client.sendOperationRequest({ scope, assessmentName, options }, listOperationSpec); } /** @@ -243,10 +228,7 @@ export class SubAssessmentsImpl implements SubAssessments { nextLink: string, options?: SubAssessmentsListAllNextOptionalParams, ): Promise { - return this.client.sendOperationRequest( - { scope, nextLink, options }, - listAllNextOperationSpec, - ); + return this.client.sendOperationRequest({ scope, nextLink, options }, listAllNextOperationSpec); } /** @@ -301,11 +283,7 @@ const listOperationSpec: coreClient.OperationSpec = { }, }, queryParameters: [Parameters.apiVersion2], - urlParameters: [ - Parameters.$host, - Parameters.scope, - Parameters.assessmentName, - ], + urlParameters: [Parameters.$host, Parameters.scope, Parameters.assessmentName], headerParameters: [Parameters.accept], serializer, }; diff --git a/sdk/security/arm-security/src/operations/tasks.ts b/sdk/security/arm-security/src/operations/tasks.ts index 0209f128e26c..ef5678268ab9 100644 --- a/sdk/security/arm-security/src/operations/tasks.ts +++ b/sdk/security/arm-security/src/operations/tasks.ts @@ -53,9 +53,7 @@ export class TasksImpl implements Tasks { * Recommended tasks that will help improve the security of the subscription proactively * @param options The options parameters. */ - public list( - options?: TasksListOptionalParams, - ): PagedAsyncIterableIterator { + public list(options?: TasksListOptionalParams): PagedAsyncIterableIterator { const iter = this.listPagingAll(options); return { next() { @@ -145,11 +143,7 @@ export class TasksImpl implements Tasks { yield page; } while (continuationToken) { - result = await this._listByHomeRegionNext( - ascLocation, - continuationToken, - options, - ); + result = await this._listByHomeRegionNext(ascLocation, continuationToken, options); continuationToken = result.nextLink; let page = result.value || []; setContinuationToken(page, continuationToken); @@ -161,10 +155,7 @@ export class TasksImpl implements Tasks { ascLocation: string, options?: TasksListByHomeRegionOptionalParams, ): AsyncIterableIterator { - for await (const page of this.listByHomeRegionPagingPage( - ascLocation, - options, - )) { + for await (const page of this.listByHomeRegionPagingPage(ascLocation, options)) { yield* page; } } @@ -182,11 +173,7 @@ export class TasksImpl implements Tasks { ascLocation: string, options?: TasksListByResourceGroupOptionalParams, ): PagedAsyncIterableIterator { - const iter = this.listByResourceGroupPagingAll( - resourceGroupName, - ascLocation, - options, - ); + const iter = this.listByResourceGroupPagingAll(resourceGroupName, ascLocation, options); return { next() { return iter.next(); @@ -217,11 +204,7 @@ export class TasksImpl implements Tasks { let result: TasksListByResourceGroupResponse; let continuationToken = settings?.continuationToken; if (!continuationToken) { - result = await this._listByResourceGroup( - resourceGroupName, - ascLocation, - options, - ); + result = await this._listByResourceGroup(resourceGroupName, ascLocation, options); let page = result.value || []; continuationToken = result.nextLink; setContinuationToken(page, continuationToken); @@ -395,10 +378,7 @@ export class TasksImpl implements Tasks { nextLink: string, options?: TasksListNextOptionalParams, ): Promise { - return this.client.sendOperationRequest( - { nextLink, options }, - listNextOperationSpec, - ); + return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec); } /** @@ -471,11 +451,7 @@ const listByHomeRegionOperationSpec: coreClient.OperationSpec = { }, }, queryParameters: [Parameters.apiVersion, Parameters.filter], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.ascLocation, - ], + urlParameters: [Parameters.$host, Parameters.subscriptionId, Parameters.ascLocation], headerParameters: [Parameters.accept], serializer, }; @@ -500,27 +476,26 @@ const getSubscriptionLevelTaskOperationSpec: coreClient.OperationSpec = { headerParameters: [Parameters.accept], serializer, }; -const updateSubscriptionLevelTaskStateOperationSpec: coreClient.OperationSpec = - { - path: "/subscriptions/{subscriptionId}/providers/Microsoft.Security/locations/{ascLocation}/tasks/{taskName}/{taskUpdateActionType}", - httpMethod: "POST", - responses: { - 204: {}, - default: { - bodyMapper: Mappers.CloudError, - }, +const updateSubscriptionLevelTaskStateOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/providers/Microsoft.Security/locations/{ascLocation}/tasks/{taskName}/{taskUpdateActionType}", + httpMethod: "POST", + responses: { + 204: {}, + default: { + bodyMapper: Mappers.CloudError, }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.ascLocation, - Parameters.taskName, - Parameters.taskUpdateActionType, - ], - headerParameters: [Parameters.accept], - serializer, - }; + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.ascLocation, + Parameters.taskName, + Parameters.taskUpdateActionType, + ], + headerParameters: [Parameters.accept], + serializer, +}; const listByResourceGroupOperationSpec: coreClient.OperationSpec = { path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/locations/{ascLocation}/tasks", httpMethod: "GET", @@ -564,28 +539,27 @@ const getResourceGroupLevelTaskOperationSpec: coreClient.OperationSpec = { headerParameters: [Parameters.accept], serializer, }; -const updateResourceGroupLevelTaskStateOperationSpec: coreClient.OperationSpec = - { - path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/locations/{ascLocation}/tasks/{taskName}/{taskUpdateActionType}", - httpMethod: "POST", - responses: { - 204: {}, - default: { - bodyMapper: Mappers.CloudError, - }, +const updateResourceGroupLevelTaskStateOperationSpec: coreClient.OperationSpec = { + path: "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/locations/{ascLocation}/tasks/{taskName}/{taskUpdateActionType}", + httpMethod: "POST", + responses: { + 204: {}, + default: { + bodyMapper: Mappers.CloudError, }, - queryParameters: [Parameters.apiVersion], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.ascLocation, - Parameters.taskName, - Parameters.taskUpdateActionType, - Parameters.resourceGroupName, - ], - headerParameters: [Parameters.accept], - serializer, - }; + }, + queryParameters: [Parameters.apiVersion], + urlParameters: [ + Parameters.$host, + Parameters.subscriptionId, + Parameters.ascLocation, + Parameters.taskName, + Parameters.taskUpdateActionType, + Parameters.resourceGroupName, + ], + headerParameters: [Parameters.accept], + serializer, +}; const listNextOperationSpec: coreClient.OperationSpec = { path: "{nextLink}", httpMethod: "GET", @@ -597,11 +571,7 @@ const listNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError, }, }, - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.nextLink, - ], + urlParameters: [Parameters.$host, Parameters.subscriptionId, Parameters.nextLink], headerParameters: [Parameters.accept], serializer, }; diff --git a/sdk/security/arm-security/src/operations/topology.ts b/sdk/security/arm-security/src/operations/topology.ts index 67ee7a32c1d2..b668c2315e54 100644 --- a/sdk/security/arm-security/src/operations/topology.ts +++ b/sdk/security/arm-security/src/operations/topology.ts @@ -44,9 +44,7 @@ export class TopologyImpl implements Topology { * Gets a list that allows to build a topology view of a subscription. * @param options The options parameters. */ - public list( - options?: TopologyListOptionalParams, - ): PagedAsyncIterableIterator { + public list(options?: TopologyListOptionalParams): PagedAsyncIterableIterator { const iter = this.listPagingAll(options); return { next() { @@ -136,11 +134,7 @@ export class TopologyImpl implements Topology { yield page; } while (continuationToken) { - result = await this._listByHomeRegionNext( - ascLocation, - continuationToken, - options, - ); + result = await this._listByHomeRegionNext(ascLocation, continuationToken, options); continuationToken = result.nextLink; let page = result.value || []; setContinuationToken(page, continuationToken); @@ -152,10 +146,7 @@ export class TopologyImpl implements Topology { ascLocation: string, options?: TopologyListByHomeRegionOptionalParams, ): AsyncIterableIterator { - for await (const page of this.listByHomeRegionPagingPage( - ascLocation, - options, - )) { + for await (const page of this.listByHomeRegionPagingPage(ascLocation, options)) { yield* page; } } @@ -164,9 +155,7 @@ export class TopologyImpl implements Topology { * Gets a list that allows to build a topology view of a subscription. * @param options The options parameters. */ - private _list( - options?: TopologyListOptionalParams, - ): Promise { + private _list(options?: TopologyListOptionalParams): Promise { return this.client.sendOperationRequest({ options }, listOperationSpec); } @@ -216,10 +205,7 @@ export class TopologyImpl implements Topology { nextLink: string, options?: TopologyListNextOptionalParams, ): Promise { - return this.client.sendOperationRequest( - { nextLink, options }, - listNextOperationSpec, - ); + return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec); } /** @@ -271,11 +257,7 @@ const listByHomeRegionOperationSpec: coreClient.OperationSpec = { }, }, queryParameters: [Parameters.apiVersion20], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.ascLocation, - ], + urlParameters: [Parameters.$host, Parameters.subscriptionId, Parameters.ascLocation], headerParameters: [Parameters.accept], serializer, }; @@ -312,11 +294,7 @@ const listNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError, }, }, - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.nextLink, - ], + urlParameters: [Parameters.$host, Parameters.subscriptionId, Parameters.nextLink], headerParameters: [Parameters.accept], serializer, }; diff --git a/sdk/security/arm-security/src/operations/workspaceSettings.ts b/sdk/security/arm-security/src/operations/workspaceSettings.ts index 2b58a22c81df..ed746db4232b 100644 --- a/sdk/security/arm-security/src/operations/workspaceSettings.ts +++ b/sdk/security/arm-security/src/operations/workspaceSettings.ts @@ -117,10 +117,7 @@ export class WorkspaceSettingsImpl implements WorkspaceSettings { workspaceSettingName: string, options?: WorkspaceSettingsGetOptionalParams, ): Promise { - return this.client.sendOperationRequest( - { workspaceSettingName, options }, - getOperationSpec, - ); + return this.client.sendOperationRequest({ workspaceSettingName, options }, getOperationSpec); } /** @@ -167,10 +164,7 @@ export class WorkspaceSettingsImpl implements WorkspaceSettings { workspaceSettingName: string, options?: WorkspaceSettingsDeleteOptionalParams, ): Promise { - return this.client.sendOperationRequest( - { workspaceSettingName, options }, - deleteOperationSpec, - ); + return this.client.sendOperationRequest({ workspaceSettingName, options }, deleteOperationSpec); } /** @@ -182,10 +176,7 @@ export class WorkspaceSettingsImpl implements WorkspaceSettings { nextLink: string, options?: WorkspaceSettingsListNextOptionalParams, ): Promise { - return this.client.sendOperationRequest( - { nextLink, options }, - listNextOperationSpec, - ); + return this.client.sendOperationRequest({ nextLink, options }, listNextOperationSpec); } } // Operation Specifications @@ -219,11 +210,7 @@ const getOperationSpec: coreClient.OperationSpec = { }, }, queryParameters: [Parameters.apiVersion1], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.workspaceSettingName, - ], + urlParameters: [Parameters.$host, Parameters.subscriptionId, Parameters.workspaceSettingName], headerParameters: [Parameters.accept], serializer, }; @@ -240,11 +227,7 @@ const createOperationSpec: coreClient.OperationSpec = { }, requestBody: Parameters.workspaceSetting, queryParameters: [Parameters.apiVersion1], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.workspaceSettingName, - ], + urlParameters: [Parameters.$host, Parameters.subscriptionId, Parameters.workspaceSettingName], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer, @@ -262,11 +245,7 @@ const updateOperationSpec: coreClient.OperationSpec = { }, requestBody: Parameters.workspaceSetting, queryParameters: [Parameters.apiVersion1], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.workspaceSettingName, - ], + urlParameters: [Parameters.$host, Parameters.subscriptionId, Parameters.workspaceSettingName], headerParameters: [Parameters.accept, Parameters.contentType], mediaType: "json", serializer, @@ -281,11 +260,7 @@ const deleteOperationSpec: coreClient.OperationSpec = { }, }, queryParameters: [Parameters.apiVersion1], - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.workspaceSettingName, - ], + urlParameters: [Parameters.$host, Parameters.subscriptionId, Parameters.workspaceSettingName], headerParameters: [Parameters.accept], serializer, }; @@ -300,11 +275,7 @@ const listNextOperationSpec: coreClient.OperationSpec = { bodyMapper: Mappers.CloudError, }, }, - urlParameters: [ - Parameters.$host, - Parameters.subscriptionId, - Parameters.nextLink, - ], + urlParameters: [Parameters.$host, Parameters.subscriptionId, Parameters.nextLink], headerParameters: [Parameters.accept], serializer, }; diff --git a/sdk/security/arm-security/src/operationsInterfaces/adaptiveApplicationControls.ts b/sdk/security/arm-security/src/operationsInterfaces/adaptiveApplicationControls.ts deleted file mode 100644 index 48d0e59973e9..000000000000 --- a/sdk/security/arm-security/src/operationsInterfaces/adaptiveApplicationControls.ts +++ /dev/null @@ -1,67 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -import { - AdaptiveApplicationControlsListOptionalParams, - AdaptiveApplicationControlsListResponse, - AdaptiveApplicationControlsGetOptionalParams, - AdaptiveApplicationControlsGetResponse, - AdaptiveApplicationControlGroup, - AdaptiveApplicationControlsPutOptionalParams, - AdaptiveApplicationControlsPutResponse, - AdaptiveApplicationControlsDeleteOptionalParams, -} from "../models/index.js"; - -/** Interface representing a AdaptiveApplicationControls. */ -export interface AdaptiveApplicationControls { - /** - * Gets a list of application control machine groups for the subscription. - * @param options The options parameters. - */ - list( - options?: AdaptiveApplicationControlsListOptionalParams, - ): Promise; - /** - * Gets an application control VM/server group. - * @param ascLocation The location where ASC stores the data of the subscription. can be retrieved from - * Get locations - * @param groupName Name of an application control machine group - * @param options The options parameters. - */ - get( - ascLocation: string, - groupName: string, - options?: AdaptiveApplicationControlsGetOptionalParams, - ): Promise; - /** - * Update an application control machine group - * @param ascLocation The location where ASC stores the data of the subscription. can be retrieved from - * Get locations - * @param groupName Name of an application control machine group - * @param body - * @param options The options parameters. - */ - put( - ascLocation: string, - groupName: string, - body: AdaptiveApplicationControlGroup, - options?: AdaptiveApplicationControlsPutOptionalParams, - ): Promise; - /** - * Delete an application control machine group - * @param ascLocation The location where ASC stores the data of the subscription. can be retrieved from - * Get locations - * @param groupName Name of an application control machine group - * @param options The options parameters. - */ - delete( - ascLocation: string, - groupName: string, - options?: AdaptiveApplicationControlsDeleteOptionalParams, - ): Promise; -} diff --git a/sdk/security/arm-security/src/operationsInterfaces/adaptiveNetworkHardenings.ts b/sdk/security/arm-security/src/operationsInterfaces/adaptiveNetworkHardenings.ts deleted file mode 100644 index e0475dba54aa..000000000000 --- a/sdk/security/arm-security/src/operationsInterfaces/adaptiveNetworkHardenings.ts +++ /dev/null @@ -1,97 +0,0 @@ -/* - * Copyright (c) Microsoft Corporation. - * Licensed under the MIT License. - * - * Code generated by Microsoft (R) AutoRest Code Generator. - * Changes may cause incorrect behavior and will be lost if the code is regenerated. - */ - -import { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { SimplePollerLike, OperationState } from "@azure/core-lro"; -import { - AdaptiveNetworkHardening, - AdaptiveNetworkHardeningsListByExtendedResourceOptionalParams, - AdaptiveNetworkHardeningsGetOptionalParams, - AdaptiveNetworkHardeningsGetResponse, - AdaptiveNetworkHardeningEnforceRequest, - AdaptiveNetworkHardeningsEnforceOptionalParams, -} from "../models/index.js"; - -/// -/** Interface representing a AdaptiveNetworkHardenings. */ -export interface AdaptiveNetworkHardenings { - /** - * Gets a list of Adaptive Network Hardenings resources in scope of an extended resource. - * @param resourceGroupName The name of the resource group within the user's subscription. The name is - * case insensitive. - * @param resourceNamespace The Namespace of the resource. - * @param resourceType The type of the resource. - * @param resourceName Name of the resource. - * @param options The options parameters. - */ - listByExtendedResource( - resourceGroupName: string, - resourceNamespace: string, - resourceType: string, - resourceName: string, - options?: AdaptiveNetworkHardeningsListByExtendedResourceOptionalParams, - ): PagedAsyncIterableIterator; - /** - * Gets a single Adaptive Network Hardening resource - * @param resourceGroupName The name of the resource group within the user's subscription. The name is - * case insensitive. - * @param resourceNamespace The Namespace of the resource. - * @param resourceType The type of the resource. - * @param resourceName Name of the resource. - * @param adaptiveNetworkHardeningResourceName The name of the Adaptive Network Hardening resource. - * @param options The options parameters. - */ - get( - resourceGroupName: string, - resourceNamespace: string, - resourceType: string, - resourceName: string, - adaptiveNetworkHardeningResourceName: string, - options?: AdaptiveNetworkHardeningsGetOptionalParams, - ): Promise; - /** - * Enforces the given rules on the NSG(s) listed in the request - * @param resourceGroupName The name of the resource group within the user's subscription. The name is - * case insensitive. - * @param resourceNamespace The Namespace of the resource. - * @param resourceType The type of the resource. - * @param resourceName Name of the resource. - * @param adaptiveNetworkHardeningResourceName The name of the Adaptive Network Hardening resource. - * @param body - * @param options The options parameters. - */ - beginEnforce( - resourceGroupName: string, - resourceNamespace: string, - resourceType: string, - resourceName: string, - adaptiveNetworkHardeningResourceName: string, - body: AdaptiveNetworkHardeningEnforceRequest, - options?: AdaptiveNetworkHardeningsEnforceOptionalParams, - ): Promise, void>>; - /** - * Enforces the given rules on the NSG(s) listed in the request - * @param resourceGroupName The name of the resource group within the user's subscription. The name is - * case insensitive. - * @param resourceNamespace The Namespace of the resource. - * @param resourceType The type of the resource. - * @param resourceName Name of the resource. - * @param adaptiveNetworkHardeningResourceName The name of the Adaptive Network Hardening resource. - * @param body - * @param options The options parameters. - */ - beginEnforceAndWait( - resourceGroupName: string, - resourceNamespace: string, - resourceType: string, - resourceName: string, - adaptiveNetworkHardeningResourceName: string, - body: AdaptiveNetworkHardeningEnforceRequest, - options?: AdaptiveNetworkHardeningsEnforceOptionalParams, - ): Promise; -} diff --git a/sdk/security/arm-security/src/operationsInterfaces/applicationOperations.ts b/sdk/security/arm-security/src/operationsInterfaces/applicationOperations.ts index cdc7102eef7e..2335367d3030 100644 --- a/sdk/security/arm-security/src/operationsInterfaces/applicationOperations.ts +++ b/sdk/security/arm-security/src/operationsInterfaces/applicationOperations.ts @@ -42,8 +42,5 @@ export interface ApplicationOperations { * @param applicationId The security Application key - unique key for the standard application * @param options The options parameters. */ - delete( - applicationId: string, - options?: ApplicationDeleteOptionalParams, - ): Promise; + delete(applicationId: string, options?: ApplicationDeleteOptionalParams): Promise; } diff --git a/sdk/security/arm-security/src/operationsInterfaces/applications.ts b/sdk/security/arm-security/src/operationsInterfaces/applications.ts index 2133244e5b37..d3bb6c74336c 100644 --- a/sdk/security/arm-security/src/operationsInterfaces/applications.ts +++ b/sdk/security/arm-security/src/operationsInterfaces/applications.ts @@ -16,7 +16,5 @@ export interface Applications { * Get a list of all relevant applications over a subscription level scope * @param options The options parameters. */ - list( - options?: ApplicationsListOptionalParams, - ): PagedAsyncIterableIterator; + list(options?: ApplicationsListOptionalParams): PagedAsyncIterableIterator; } diff --git a/sdk/security/arm-security/src/operationsInterfaces/automations.ts b/sdk/security/arm-security/src/operationsInterfaces/automations.ts index f20f268a4f83..770418d195b2 100644 --- a/sdk/security/arm-security/src/operationsInterfaces/automations.ts +++ b/sdk/security/arm-security/src/operationsInterfaces/automations.ts @@ -31,9 +31,7 @@ export interface Automations { * response to get the next page of security automations for the specified subscription. * @param options The options parameters. */ - list( - options?: AutomationsListOptionalParams, - ): PagedAsyncIterableIterator; + list(options?: AutomationsListOptionalParams): PagedAsyncIterableIterator; /** * Lists all the security automations in the specified resource group. Use the 'nextLink' property in * the response to get the next page of security automations for the specified resource group. diff --git a/sdk/security/arm-security/src/operationsInterfaces/azureDevOpsOrgs.ts b/sdk/security/arm-security/src/operationsInterfaces/azureDevOpsOrgs.ts index 71a304b58c75..dfbee7f874cc 100644 --- a/sdk/security/arm-security/src/operationsInterfaces/azureDevOpsOrgs.ts +++ b/sdk/security/arm-security/src/operationsInterfaces/azureDevOpsOrgs.ts @@ -110,10 +110,7 @@ export interface AzureDevOpsOrgs { azureDevOpsOrg: AzureDevOpsOrg, options?: AzureDevOpsOrgsUpdateOptionalParams, ): Promise< - SimplePollerLike< - OperationState, - AzureDevOpsOrgsUpdateResponse - > + SimplePollerLike, AzureDevOpsOrgsUpdateResponse> >; /** * Updates monitored Azure DevOps organization details. diff --git a/sdk/security/arm-security/src/operationsInterfaces/azureDevOpsRepos.ts b/sdk/security/arm-security/src/operationsInterfaces/azureDevOpsRepos.ts index bdb15948c040..d5083fcd5bc9 100644 --- a/sdk/security/arm-security/src/operationsInterfaces/azureDevOpsRepos.ts +++ b/sdk/security/arm-security/src/operationsInterfaces/azureDevOpsRepos.ts @@ -116,10 +116,7 @@ export interface AzureDevOpsRepos { azureDevOpsRepository: AzureDevOpsRepository, options?: AzureDevOpsReposUpdateOptionalParams, ): Promise< - SimplePollerLike< - OperationState, - AzureDevOpsReposUpdateResponse - > + SimplePollerLike, AzureDevOpsReposUpdateResponse> >; /** * Updates a monitored Azure DevOps repository resource. diff --git a/sdk/security/arm-security/src/operationsInterfaces/connectors.ts b/sdk/security/arm-security/src/operationsInterfaces/connectors.ts index acf305f44266..6553f723693a 100644 --- a/sdk/security/arm-security/src/operationsInterfaces/connectors.ts +++ b/sdk/security/arm-security/src/operationsInterfaces/connectors.ts @@ -24,18 +24,13 @@ export interface Connectors { * Cloud accounts connectors of a subscription * @param options The options parameters. */ - list( - options?: ConnectorsListOptionalParams, - ): PagedAsyncIterableIterator; + list(options?: ConnectorsListOptionalParams): PagedAsyncIterableIterator; /** * Details of a specific cloud account connector * @param connectorName Name of the cloud account connector * @param options The options parameters. */ - get( - connectorName: string, - options?: ConnectorsGetOptionalParams, - ): Promise; + get(connectorName: string, options?: ConnectorsGetOptionalParams): Promise; /** * Create a cloud account connector or update an existing one. Connect to your cloud account. For AWS, * use either account credentials or role-based authentication. For GCP, use account organization @@ -54,8 +49,5 @@ export interface Connectors { * @param connectorName Name of the cloud account connector * @param options The options parameters. */ - delete( - connectorName: string, - options?: ConnectorsDeleteOptionalParams, - ): Promise; + delete(connectorName: string, options?: ConnectorsDeleteOptionalParams): Promise; } diff --git a/sdk/security/arm-security/src/operationsInterfaces/customRecommendations.ts b/sdk/security/arm-security/src/operationsInterfaces/customRecommendations.ts new file mode 100644 index 000000000000..8724eda714bb --- /dev/null +++ b/sdk/security/arm-security/src/operationsInterfaces/customRecommendations.ts @@ -0,0 +1,79 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { + CustomRecommendation, + CustomRecommendationsListOptionalParams, + CustomRecommendationsGetOptionalParams, + CustomRecommendationsGetResponse, + CustomRecommendationsCreateOrUpdateOptionalParams, + CustomRecommendationsCreateOrUpdateResponse, + CustomRecommendationsDeleteOptionalParams, +} from "../models/index.js"; + +/// +/** Interface representing a CustomRecommendations. */ +export interface CustomRecommendations { + /** + * Get a list of all relevant custom recommendations over a scope + * @param scope The scope of the custom recommendation. Valid scopes are: management group (format: + * 'providers/Microsoft.Management/managementGroups/{managementGroup}'), subscription (format: + * 'subscriptions/{subscriptionId}'), or security connector (format: + * 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName})' + * @param options The options parameters. + */ + list( + scope: string, + options?: CustomRecommendationsListOptionalParams, + ): PagedAsyncIterableIterator; + /** + * Get a specific custom recommendation for the requested scope by customRecommendationName + * @param scope The scope of the custom recommendation. Valid scopes are: management group (format: + * 'providers/Microsoft.Management/managementGroups/{managementGroup}'), subscription (format: + * 'subscriptions/{subscriptionId}'), or security connector (format: + * 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName})' + * @param customRecommendationName Name of the Custom Recommendation. + * @param options The options parameters. + */ + get( + scope: string, + customRecommendationName: string, + options?: CustomRecommendationsGetOptionalParams, + ): Promise; + /** + * Creates or updates a custom recommendation over a given scope + * @param scope The scope of the custom recommendation. Valid scopes are: management group (format: + * 'providers/Microsoft.Management/managementGroups/{managementGroup}'), subscription (format: + * 'subscriptions/{subscriptionId}'), or security connector (format: + * 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName})' + * @param customRecommendationName Name of the Custom Recommendation. + * @param customRecommendationBody Custom Recommendation body + * @param options The options parameters. + */ + createOrUpdate( + scope: string, + customRecommendationName: string, + customRecommendationBody: CustomRecommendation, + options?: CustomRecommendationsCreateOrUpdateOptionalParams, + ): Promise; + /** + * Delete a custom recommendation over a given scope + * @param scope The scope of the custom recommendation. Valid scopes are: management group (format: + * 'providers/Microsoft.Management/managementGroups/{managementGroup}'), subscription (format: + * 'subscriptions/{subscriptionId}'), or security connector (format: + * 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName})' + * @param customRecommendationName Name of the Custom Recommendation. + * @param options The options parameters. + */ + delete( + scope: string, + customRecommendationName: string, + options?: CustomRecommendationsDeleteOptionalParams, + ): Promise; +} diff --git a/sdk/security/arm-security/src/operationsInterfaces/defenderForStorage.ts b/sdk/security/arm-security/src/operationsInterfaces/defenderForStorage.ts index 65c874d17ce9..0830db6471cb 100644 --- a/sdk/security/arm-security/src/operationsInterfaces/defenderForStorage.ts +++ b/sdk/security/arm-security/src/operationsInterfaces/defenderForStorage.ts @@ -13,6 +13,12 @@ import { DefenderForStorageSetting, DefenderForStorageCreateOptionalParams, DefenderForStorageCreateResponse, + DefenderForStorageStartMalwareScanOptionalParams, + DefenderForStorageStartMalwareScanResponse, + DefenderForStorageCancelMalwareScanOptionalParams, + DefenderForStorageCancelMalwareScanResponse, + DefenderForStorageGetMalwareScanOptionalParams, + DefenderForStorageGetMalwareScanResponse, } from "../models/index.js"; /** Interface representing a DefenderForStorage. */ @@ -41,4 +47,41 @@ export interface DefenderForStorage { defenderForStorageSetting: DefenderForStorageSetting, options?: DefenderForStorageCreateOptionalParams, ): Promise; + /** + * Initiate a Defender for Storage malware scan for the specified storage account. + * @param resourceId The identifier of the resource. + * @param settingName Defender for Storage setting name. + * @param options The options parameters. + */ + startMalwareScan( + resourceId: string, + settingName: SettingName, + options?: DefenderForStorageStartMalwareScanOptionalParams, + ): Promise; + /** + * Cancels a Defender for Storage malware scan for the specified storage account. + * @param resourceId The identifier of the resource. + * @param settingName Defender for Storage setting name. + * @param scanId The identifier of the scan. Can be either 'latest' or a GUID. + * @param options The options parameters. + */ + cancelMalwareScan( + resourceId: string, + settingName: SettingName, + scanId: string, + options?: DefenderForStorageCancelMalwareScanOptionalParams, + ): Promise; + /** + * Gets the Defender for Storage malware scan for the specified storage resource. + * @param resourceId The identifier of the resource. + * @param settingName Defender for Storage setting name. + * @param scanId The identifier of the scan. Can be either 'latest' or a GUID. + * @param options The options parameters. + */ + getMalwareScan( + resourceId: string, + settingName: SettingName, + scanId: string, + options?: DefenderForStorageGetMalwareScanOptionalParams, + ): Promise; } diff --git a/sdk/security/arm-security/src/operationsInterfaces/gitLabSubgroups.ts b/sdk/security/arm-security/src/operationsInterfaces/gitLabSubgroups.ts index 8ea3db5c31ff..a555dbda1150 100644 --- a/sdk/security/arm-security/src/operationsInterfaces/gitLabSubgroups.ts +++ b/sdk/security/arm-security/src/operationsInterfaces/gitLabSubgroups.ts @@ -6,10 +6,7 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import { - GitLabSubgroupsListOptionalParams, - GitLabSubgroupsListResponse, -} from "../models/index.js"; +import { GitLabSubgroupsListOptionalParams, GitLabSubgroupsListResponse } from "../models/index.js"; /** Interface representing a GitLabSubgroups. */ export interface GitLabSubgroups { diff --git a/sdk/security/arm-security/src/operationsInterfaces/governanceRules.ts b/sdk/security/arm-security/src/operationsInterfaces/governanceRules.ts index 529075627aa4..a551a87ce2a4 100644 --- a/sdk/security/arm-security/src/operationsInterfaces/governanceRules.ts +++ b/sdk/security/arm-security/src/operationsInterfaces/governanceRules.ts @@ -109,10 +109,7 @@ export interface GovernanceRules { ruleId: string, options?: GovernanceRulesExecuteOptionalParams, ): Promise< - SimplePollerLike< - OperationState, - GovernanceRulesExecuteResponse - > + SimplePollerLike, GovernanceRulesExecuteResponse> >; /** * Execute a governance rule diff --git a/sdk/security/arm-security/src/operationsInterfaces/index.ts b/sdk/security/arm-security/src/operationsInterfaces/index.ts index 129b6240965a..c747b754ba85 100644 --- a/sdk/security/arm-security/src/operationsInterfaces/index.ts +++ b/sdk/security/arm-security/src/operationsInterfaces/index.ts @@ -7,20 +7,17 @@ */ export * from "./locations.js"; -export * from "./operations.js"; export * from "./tasks.js"; export * from "./autoProvisioningSettings.js"; export * from "./compliances.js"; export * from "./informationProtectionPolicies.js"; export * from "./workspaceSettings.js"; export * from "./alertsSuppressionRules.js"; -export * from "./automations.js"; export * from "./regulatoryComplianceStandards.js"; export * from "./regulatoryComplianceControls.js"; export * from "./regulatoryComplianceAssessments.js"; export * from "./subAssessments.js"; export * from "./connectors.js"; -export * from "./securityContacts.js"; export * from "./softwareInventories.js"; export * from "./customAssessmentAutomations.js"; export * from "./customEntityStoreAssignments.js"; @@ -31,24 +28,17 @@ export * from "./applications.js"; export * from "./applicationOperations.js"; export * from "./securityConnectorApplications.js"; export * from "./securityConnectorApplication.js"; -export * from "./defenderForStorage.js"; export * from "./securityOperators.js"; export * from "./sqlVulnerabilityAssessmentBaselineRules.js"; export * from "./sqlVulnerabilityAssessmentScans.js"; export * from "./sqlVulnerabilityAssessmentScanResults.js"; export * from "./sensitivitySettings.js"; export * from "./healthReports.js"; -export * from "./azureDevOpsOrgs.js"; -export * from "./azureDevOpsProjects.js"; -export * from "./azureDevOpsRepos.js"; -export * from "./devOpsConfigurations.js"; -export * from "./gitHubOwners.js"; -export * from "./gitHubRepos.js"; -export * from "./gitLabGroups.js"; -export * from "./gitLabSubgroups.js"; -export * from "./gitLabProjects.js"; -export * from "./devOpsOperationResults.js"; +export * from "./automations.js"; +export * from "./securityContacts.js"; export * from "./securityConnectors.js"; +export * from "./operations.js"; +export * from "./defenderForStorage.js"; export * from "./complianceResults.js"; export * from "./advancedThreatProtection.js"; export * from "./deviceSecurityGroups.js"; @@ -56,9 +46,7 @@ export * from "./iotSecuritySolutionAnalytics.js"; export * from "./iotSecuritySolutionsAnalyticsAggregatedAlert.js"; export * from "./iotSecuritySolutionsAnalyticsRecommendation.js"; export * from "./iotSecuritySolution.js"; -export * from "./adaptiveNetworkHardenings.js"; export * from "./allowedConnections.js"; -export * from "./adaptiveApplicationControls.js"; export * from "./discoveredSecuritySolutions.js"; export * from "./externalSecuritySolutions.js"; export * from "./jitNetworkAccessPolicies.js"; @@ -76,3 +64,16 @@ export * from "./settings.js"; export * from "./serverVulnerabilityAssessmentsSettings.js"; export * from "./aPICollections.js"; export * from "./pricings.js"; +export * from "./securityStandards.js"; +export * from "./standardAssignments.js"; +export * from "./customRecommendations.js"; +export * from "./azureDevOpsOrgs.js"; +export * from "./azureDevOpsProjects.js"; +export * from "./azureDevOpsRepos.js"; +export * from "./devOpsConfigurations.js"; +export * from "./gitHubOwners.js"; +export * from "./gitHubRepos.js"; +export * from "./gitLabGroups.js"; +export * from "./gitLabSubgroups.js"; +export * from "./gitLabProjects.js"; +export * from "./devOpsOperationResults.js"; diff --git a/sdk/security/arm-security/src/operationsInterfaces/locations.ts b/sdk/security/arm-security/src/operationsInterfaces/locations.ts index 5b7232606c82..57adf6d41918 100644 --- a/sdk/security/arm-security/src/operationsInterfaces/locations.ts +++ b/sdk/security/arm-security/src/operationsInterfaces/locations.ts @@ -23,17 +23,12 @@ export interface Locations { * read or write other resources in ASC according to their ID. * @param options The options parameters. */ - list( - options?: LocationsListOptionalParams, - ): PagedAsyncIterableIterator; + list(options?: LocationsListOptionalParams): PagedAsyncIterableIterator; /** * Details of a specific location * @param ascLocation The location where ASC stores the data of the subscription. can be retrieved from * Get locations * @param options The options parameters. */ - get( - ascLocation: string, - options?: LocationsGetOptionalParams, - ): Promise; + get(ascLocation: string, options?: LocationsGetOptionalParams): Promise; } diff --git a/sdk/security/arm-security/src/operationsInterfaces/mdeOnboardings.ts b/sdk/security/arm-security/src/operationsInterfaces/mdeOnboardings.ts index a384cb26da26..e4f56374e4ea 100644 --- a/sdk/security/arm-security/src/operationsInterfaces/mdeOnboardings.ts +++ b/sdk/security/arm-security/src/operationsInterfaces/mdeOnboardings.ts @@ -19,14 +19,10 @@ export interface MdeOnboardings { * The configuration or data needed to onboard the machine to MDE * @param options The options parameters. */ - list( - options?: MdeOnboardingsListOptionalParams, - ): Promise; + list(options?: MdeOnboardingsListOptionalParams): Promise; /** * The default configuration or data needed to onboard the machine to MDE * @param options The options parameters. */ - get( - options?: MdeOnboardingsGetOptionalParams, - ): Promise; + get(options?: MdeOnboardingsGetOptionalParams): Promise; } diff --git a/sdk/security/arm-security/src/operationsInterfaces/operations.ts b/sdk/security/arm-security/src/operationsInterfaces/operations.ts index 43bb4fdae730..4ee154126836 100644 --- a/sdk/security/arm-security/src/operationsInterfaces/operations.ts +++ b/sdk/security/arm-security/src/operationsInterfaces/operations.ts @@ -16,7 +16,5 @@ export interface Operations { * Exposes all available operations for discovery purposes. * @param options The options parameters. */ - list( - options?: OperationsListOptionalParams, - ): PagedAsyncIterableIterator; + list(options?: OperationsListOptionalParams): PagedAsyncIterableIterator; } diff --git a/sdk/security/arm-security/src/operationsInterfaces/pricings.ts b/sdk/security/arm-security/src/operationsInterfaces/pricings.ts index 11a1214c7385..f3f4d9dca9ca 100644 --- a/sdk/security/arm-security/src/operationsInterfaces/pricings.ts +++ b/sdk/security/arm-security/src/operationsInterfaces/pricings.ts @@ -79,8 +79,5 @@ export interface Pricings { * - Supported resources are (VirtualMachines) * @param options The options parameters. */ - list( - scopeId: string, - options?: PricingsListOptionalParams, - ): Promise; + list(scopeId: string, options?: PricingsListOptionalParams): Promise; } diff --git a/sdk/security/arm-security/src/operationsInterfaces/secureScores.ts b/sdk/security/arm-security/src/operationsInterfaces/secureScores.ts index c8ca8eb4adaa..20df7175dab7 100644 --- a/sdk/security/arm-security/src/operationsInterfaces/secureScores.ts +++ b/sdk/security/arm-security/src/operationsInterfaces/secureScores.ts @@ -21,9 +21,7 @@ export interface SecureScores { * List secure scores for all your Microsoft Defender for Cloud initiatives within your current scope. * @param options The options parameters. */ - list( - options?: SecureScoresListOptionalParams, - ): PagedAsyncIterableIterator; + list(options?: SecureScoresListOptionalParams): PagedAsyncIterableIterator; /** * Get secure score for a specific Microsoft Defender for Cloud initiative within your current scope. * For the ASC Default initiative, use 'ascScore'. diff --git a/sdk/security/arm-security/src/operationsInterfaces/securityConnectorApplications.ts b/sdk/security/arm-security/src/operationsInterfaces/securityConnectorApplications.ts index 07154e7f969b..5baf4f345c49 100644 --- a/sdk/security/arm-security/src/operationsInterfaces/securityConnectorApplications.ts +++ b/sdk/security/arm-security/src/operationsInterfaces/securityConnectorApplications.ts @@ -7,10 +7,7 @@ */ import { PagedAsyncIterableIterator } from "@azure/core-paging"; -import { - Application, - SecurityConnectorApplicationsListOptionalParams, -} from "../models/index.js"; +import { Application, SecurityConnectorApplicationsListOptionalParams } from "../models/index.js"; /// /** Interface representing a SecurityConnectorApplications. */ diff --git a/sdk/security/arm-security/src/operationsInterfaces/securityContacts.ts b/sdk/security/arm-security/src/operationsInterfaces/securityContacts.ts index 3c0b2c9d0fd6..1698e63747ed 100644 --- a/sdk/security/arm-security/src/operationsInterfaces/securityContacts.ts +++ b/sdk/security/arm-security/src/operationsInterfaces/securityContacts.ts @@ -25,9 +25,7 @@ export interface SecurityContacts { * List all security contact configurations for the subscription * @param options The options parameters. */ - list( - options?: SecurityContactsListOptionalParams, - ): PagedAsyncIterableIterator; + list(options?: SecurityContactsListOptionalParams): PagedAsyncIterableIterator; /** * Get Default Security contact configurations for the subscription * @param securityContactName Name of the security contact object diff --git a/sdk/security/arm-security/src/operationsInterfaces/securitySolutions.ts b/sdk/security/arm-security/src/operationsInterfaces/securitySolutions.ts index f88f1c07d24a..b05015177363 100644 --- a/sdk/security/arm-security/src/operationsInterfaces/securitySolutions.ts +++ b/sdk/security/arm-security/src/operationsInterfaces/securitySolutions.ts @@ -21,9 +21,7 @@ export interface SecuritySolutions { * Gets a list of Security Solutions for the subscription. * @param options The options parameters. */ - list( - options?: SecuritySolutionsListOptionalParams, - ): PagedAsyncIterableIterator; + list(options?: SecuritySolutionsListOptionalParams): PagedAsyncIterableIterator; /** * Gets a specific Security Solution. * @param resourceGroupName The name of the resource group within the user's subscription. The name is diff --git a/sdk/security/arm-security/src/operationsInterfaces/securityStandards.ts b/sdk/security/arm-security/src/operationsInterfaces/securityStandards.ts new file mode 100644 index 000000000000..964eabe68f48 --- /dev/null +++ b/sdk/security/arm-security/src/operationsInterfaces/securityStandards.ts @@ -0,0 +1,79 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { + SecurityStandard, + SecurityStandardsListOptionalParams, + SecurityStandardsGetOptionalParams, + SecurityStandardsGetResponse, + SecurityStandardsCreateOrUpdateOptionalParams, + SecurityStandardsCreateOrUpdateResponse, + SecurityStandardsDeleteOptionalParams, +} from "../models/index.js"; + +/// +/** Interface representing a SecurityStandards. */ +export interface SecurityStandards { + /** + * Get a list of all relevant security standards over a scope + * @param scope The scope of the security standard. Valid scopes are: management group (format: + * 'providers/Microsoft.Management/managementGroups/{managementGroup}'), subscription (format: + * 'subscriptions/{subscriptionId}'), or security connector (format: + * 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName})' + * @param options The options parameters. + */ + list( + scope: string, + options?: SecurityStandardsListOptionalParams, + ): PagedAsyncIterableIterator; + /** + * Get a specific security standard for the requested scope by standardId + * @param scope The scope of the security standard. Valid scopes are: management group (format: + * 'providers/Microsoft.Management/managementGroups/{managementGroup}'), subscription (format: + * 'subscriptions/{subscriptionId}'), or security connector (format: + * 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName})' + * @param standardId The Security Standard key - unique key for the standard type + * @param options The options parameters. + */ + get( + scope: string, + standardId: string, + options?: SecurityStandardsGetOptionalParams, + ): Promise; + /** + * Creates or updates a security standard over a given scope + * @param scope The scope of the security standard. Valid scopes are: management group (format: + * 'providers/Microsoft.Management/managementGroups/{managementGroup}'), subscription (format: + * 'subscriptions/{subscriptionId}'), or security connector (format: + * 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName})' + * @param standardId The Security Standard key - unique key for the standard type + * @param standard Custom security standard over a pre-defined scope + * @param options The options parameters. + */ + createOrUpdate( + scope: string, + standardId: string, + standard: SecurityStandard, + options?: SecurityStandardsCreateOrUpdateOptionalParams, + ): Promise; + /** + * Delete a security standard over a given scope + * @param scope The scope of the security standard. Valid scopes are: management group (format: + * 'providers/Microsoft.Management/managementGroups/{managementGroup}'), subscription (format: + * 'subscriptions/{subscriptionId}'), or security connector (format: + * 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName})' + * @param standardId The Security Standard key - unique key for the standard type + * @param options The options parameters. + */ + delete( + scope: string, + standardId: string, + options?: SecurityStandardsDeleteOptionalParams, + ): Promise; +} diff --git a/sdk/security/arm-security/src/operationsInterfaces/sensitivitySettings.ts b/sdk/security/arm-security/src/operationsInterfaces/sensitivitySettings.ts index 3e509abe87ec..b472deabef48 100644 --- a/sdk/security/arm-security/src/operationsInterfaces/sensitivitySettings.ts +++ b/sdk/security/arm-security/src/operationsInterfaces/sensitivitySettings.ts @@ -7,17 +7,34 @@ */ import { + UpdateSensitivitySettingsRequest, + SensitivitySettingsCreateOrUpdateOptionalParams, + SensitivitySettingsCreateOrUpdateResponse, + SensitivitySettingsGetOptionalParams, + SensitivitySettingsGetResponse, SensitivitySettingsListOptionalParams, SensitivitySettingsListResponse, } from "../models/index.js"; /** Interface representing a SensitivitySettings. */ export interface SensitivitySettings { + /** + * Create or update data sensitivity settings for sensitive data discovery + * @param sensitivitySettings The data sensitivity settings to update + * @param options The options parameters. + */ + createOrUpdate( + sensitivitySettings: UpdateSensitivitySettingsRequest, + options?: SensitivitySettingsCreateOrUpdateOptionalParams, + ): Promise; + /** + * Gets data sensitivity settings for sensitive data discovery + * @param options The options parameters. + */ + get(options?: SensitivitySettingsGetOptionalParams): Promise; /** * Gets a list with a single sensitivity settings resource * @param options The options parameters. */ - list( - options?: SensitivitySettingsListOptionalParams, - ): Promise; + list(options?: SensitivitySettingsListOptionalParams): Promise; } diff --git a/sdk/security/arm-security/src/operationsInterfaces/settings.ts b/sdk/security/arm-security/src/operationsInterfaces/settings.ts index 39b4f988269f..f2b92b2ecab8 100644 --- a/sdk/security/arm-security/src/operationsInterfaces/settings.ts +++ b/sdk/security/arm-security/src/operationsInterfaces/settings.ts @@ -24,9 +24,7 @@ export interface Settings { * Settings about different configurations in Microsoft Defender for Cloud * @param options The options parameters. */ - list( - options?: SettingsListOptionalParams, - ): PagedAsyncIterableIterator; + list(options?: SettingsListOptionalParams): PagedAsyncIterableIterator; /** * Settings of different configurations in Microsoft Defender for Cloud * @param settingName The name of the setting diff --git a/sdk/security/arm-security/src/operationsInterfaces/standardAssignments.ts b/sdk/security/arm-security/src/operationsInterfaces/standardAssignments.ts new file mode 100644 index 000000000000..cc3d5c019067 --- /dev/null +++ b/sdk/security/arm-security/src/operationsInterfaces/standardAssignments.ts @@ -0,0 +1,78 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { PagedAsyncIterableIterator } from "@azure/core-paging"; +import { + StandardAssignment, + StandardAssignmentsListOptionalParams, + StandardAssignmentsGetOptionalParams, + StandardAssignmentsGetResponse, + StandardAssignmentsCreateOptionalParams, + StandardAssignmentsCreateResponse, + StandardAssignmentsDeleteOptionalParams, +} from "../models/index.js"; + +/// +/** Interface representing a StandardAssignments. */ +export interface StandardAssignments { + /** + * Get a list of all relevant standard assignments over a scope + * @param scope The scope of the standard assignment. Valid scopes are: management group (format: + * 'providers/Microsoft.Management/managementGroups/{managementGroup}'), subscription (format: + * 'subscriptions/{subscriptionId}'), or security connector (format: + * 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName})' + * @param options The options parameters. + */ + list( + scope: string, + options?: StandardAssignmentsListOptionalParams, + ): PagedAsyncIterableIterator; + /** + * This operation retrieves a single standard assignment, given its name and the scope it was created + * at. + * @param resourceId The identifier of the resource. + * @param standardAssignmentName The standard assignments assignment key - unique key for the standard + * assignment + * @param options The options parameters. + */ + get( + resourceId: string, + standardAssignmentName: string, + options?: StandardAssignmentsGetOptionalParams, + ): Promise; + /** + * This operation creates or updates a standard assignment with the given scope and name. standard + * assignments apply to all resources contained within their scope. For example, when you assign a + * policy at resource group scope, that policy applies to all resources in the group. + * @param resourceId The identifier of the resource. + * @param standardAssignmentName The standard assignments assignment key - unique key for the standard + * assignment + * @param standardAssignment Custom standard assignment over a pre-defined scope + * @param options The options parameters. + */ + create( + resourceId: string, + standardAssignmentName: string, + standardAssignment: StandardAssignment, + options?: StandardAssignmentsCreateOptionalParams, + ): Promise; + /** + * This operation deletes a standard assignment, given its name and the scope it was created in. The + * scope of a standard assignment is the part of its ID preceding + * '/providers/Microsoft.Security/standardAssignments/{standardAssignmentName}'. + * @param resourceId The identifier of the resource. + * @param standardAssignmentName The standard assignments assignment key - unique key for the standard + * assignment + * @param options The options parameters. + */ + delete( + resourceId: string, + standardAssignmentName: string, + options?: StandardAssignmentsDeleteOptionalParams, + ): Promise; +} diff --git a/sdk/security/arm-security/src/operationsInterfaces/tasks.ts b/sdk/security/arm-security/src/operationsInterfaces/tasks.ts index 30b34bc0dd3e..b6454cf8e936 100644 --- a/sdk/security/arm-security/src/operationsInterfaces/tasks.ts +++ b/sdk/security/arm-security/src/operationsInterfaces/tasks.ts @@ -28,9 +28,7 @@ export interface Tasks { * Recommended tasks that will help improve the security of the subscription proactively * @param options The options parameters. */ - list( - options?: TasksListOptionalParams, - ): PagedAsyncIterableIterator; + list(options?: TasksListOptionalParams): PagedAsyncIterableIterator; /** * Recommended tasks that will help improve the security of the subscription proactively * @param ascLocation The location where ASC stores the data of the subscription. can be retrieved from diff --git a/sdk/security/arm-security/src/operationsInterfaces/topology.ts b/sdk/security/arm-security/src/operationsInterfaces/topology.ts index 32d74b897db1..849bb3add7c5 100644 --- a/sdk/security/arm-security/src/operationsInterfaces/topology.ts +++ b/sdk/security/arm-security/src/operationsInterfaces/topology.ts @@ -22,9 +22,7 @@ export interface Topology { * Gets a list that allows to build a topology view of a subscription. * @param options The options parameters. */ - list( - options?: TopologyListOptionalParams, - ): PagedAsyncIterableIterator; + list(options?: TopologyListOptionalParams): PagedAsyncIterableIterator; /** * Gets a list that allows to build a topology view of a subscription and location. * @param ascLocation The location where ASC stores the data of the subscription. can be retrieved from diff --git a/sdk/security/arm-security/src/operationsInterfaces/workspaceSettings.ts b/sdk/security/arm-security/src/operationsInterfaces/workspaceSettings.ts index 6ebd9864dfb3..92802ec4c4e6 100644 --- a/sdk/security/arm-security/src/operationsInterfaces/workspaceSettings.ts +++ b/sdk/security/arm-security/src/operationsInterfaces/workspaceSettings.ts @@ -27,9 +27,7 @@ export interface WorkspaceSettings { * that no custom-workspace configuration was set * @param options The options parameters. */ - list( - options?: WorkspaceSettingsListOptionalParams, - ): PagedAsyncIterableIterator; + list(options?: WorkspaceSettingsListOptionalParams): PagedAsyncIterableIterator; /** * Settings about where we should store your security data and logs. If the result is empty, it means * that no custom-workspace configuration was set diff --git a/sdk/security/arm-security/src/pagingHelper.ts b/sdk/security/arm-security/src/pagingHelper.ts index 205cccc26592..e362819bdfc4 100644 --- a/sdk/security/arm-security/src/pagingHelper.ts +++ b/sdk/security/arm-security/src/pagingHelper.ts @@ -26,10 +26,7 @@ export function getContinuationToken(page: unknown): string | undefined { return pageMap.get(page)?.continuationToken; } -export function setContinuationToken( - page: unknown, - continuationToken: string | undefined, -): void { +export function setContinuationToken(page: unknown, continuationToken: string | undefined): void { if (typeof page !== "object" || page === null || !continuationToken) { return; } diff --git a/sdk/security/arm-security/src/securityCenter.ts b/sdk/security/arm-security/src/securityCenter.ts index b8bb52419619..952461c21e4e 100644 --- a/sdk/security/arm-security/src/securityCenter.ts +++ b/sdk/security/arm-security/src/securityCenter.ts @@ -11,20 +11,17 @@ import * as coreRestPipeline from "@azure/core-rest-pipeline"; import * as coreAuth from "@azure/core-auth"; import { LocationsImpl, - OperationsImpl, TasksImpl, AutoProvisioningSettingsImpl, CompliancesImpl, InformationProtectionPoliciesImpl, WorkspaceSettingsImpl, AlertsSuppressionRulesImpl, - AutomationsImpl, RegulatoryComplianceStandardsImpl, RegulatoryComplianceControlsImpl, RegulatoryComplianceAssessmentsImpl, SubAssessmentsImpl, ConnectorsImpl, - SecurityContactsImpl, SoftwareInventoriesImpl, CustomAssessmentAutomationsImpl, CustomEntityStoreAssignmentsImpl, @@ -35,24 +32,17 @@ import { ApplicationOperationsImpl, SecurityConnectorApplicationsImpl, SecurityConnectorApplicationImpl, - DefenderForStorageImpl, SecurityOperatorsImpl, SqlVulnerabilityAssessmentBaselineRulesImpl, SqlVulnerabilityAssessmentScansImpl, SqlVulnerabilityAssessmentScanResultsImpl, SensitivitySettingsImpl, HealthReportsImpl, - AzureDevOpsOrgsImpl, - AzureDevOpsProjectsImpl, - AzureDevOpsReposImpl, - DevOpsConfigurationsImpl, - GitHubOwnersImpl, - GitHubReposImpl, - GitLabGroupsImpl, - GitLabSubgroupsImpl, - GitLabProjectsImpl, - DevOpsOperationResultsImpl, + AutomationsImpl, + SecurityContactsImpl, SecurityConnectorsImpl, + OperationsImpl, + DefenderForStorageImpl, ComplianceResultsImpl, AdvancedThreatProtectionImpl, DeviceSecurityGroupsImpl, @@ -60,9 +50,7 @@ import { IotSecuritySolutionsAnalyticsAggregatedAlertImpl, IotSecuritySolutionsAnalyticsRecommendationImpl, IotSecuritySolutionImpl, - AdaptiveNetworkHardeningsImpl, AllowedConnectionsImpl, - AdaptiveApplicationControlsImpl, DiscoveredSecuritySolutionsImpl, ExternalSecuritySolutionsImpl, JitNetworkAccessPoliciesImpl, @@ -80,23 +68,33 @@ import { ServerVulnerabilityAssessmentsSettingsImpl, APICollectionsImpl, PricingsImpl, + SecurityStandardsImpl, + StandardAssignmentsImpl, + CustomRecommendationsImpl, + AzureDevOpsOrgsImpl, + AzureDevOpsProjectsImpl, + AzureDevOpsReposImpl, + DevOpsConfigurationsImpl, + GitHubOwnersImpl, + GitHubReposImpl, + GitLabGroupsImpl, + GitLabSubgroupsImpl, + GitLabProjectsImpl, + DevOpsOperationResultsImpl, } from "./operations/index.js"; import { Locations, - Operations, Tasks, AutoProvisioningSettings, Compliances, InformationProtectionPolicies, WorkspaceSettings, AlertsSuppressionRules, - Automations, RegulatoryComplianceStandards, RegulatoryComplianceControls, RegulatoryComplianceAssessments, SubAssessments, Connectors, - SecurityContacts, SoftwareInventories, CustomAssessmentAutomations, CustomEntityStoreAssignments, @@ -107,24 +105,17 @@ import { ApplicationOperations, SecurityConnectorApplications, SecurityConnectorApplication, - DefenderForStorage, SecurityOperators, SqlVulnerabilityAssessmentBaselineRules, SqlVulnerabilityAssessmentScans, SqlVulnerabilityAssessmentScanResults, SensitivitySettings, HealthReports, - AzureDevOpsOrgs, - AzureDevOpsProjects, - AzureDevOpsRepos, - DevOpsConfigurations, - GitHubOwners, - GitHubRepos, - GitLabGroups, - GitLabSubgroups, - GitLabProjects, - DevOpsOperationResults, + Automations, + SecurityContacts, SecurityConnectors, + Operations, + DefenderForStorage, ComplianceResults, AdvancedThreatProtection, DeviceSecurityGroups, @@ -132,9 +123,7 @@ import { IotSecuritySolutionsAnalyticsAggregatedAlert, IotSecuritySolutionsAnalyticsRecommendation, IotSecuritySolution, - AdaptiveNetworkHardenings, AllowedConnections, - AdaptiveApplicationControls, DiscoveredSecuritySolutions, ExternalSecuritySolutions, JitNetworkAccessPolicies, @@ -152,17 +141,21 @@ import { ServerVulnerabilityAssessmentsSettings, APICollections, Pricings, + SecurityStandards, + StandardAssignments, + CustomRecommendations, + AzureDevOpsOrgs, + AzureDevOpsProjects, + AzureDevOpsRepos, + DevOpsConfigurations, + GitHubOwners, + GitHubRepos, + GitLabGroups, + GitLabSubgroups, + GitLabProjects, + DevOpsOperationResults, } from "./operationsInterfaces/index.js"; -import * as Parameters from "./models/parameters.js"; -import * as Mappers from "./models/mappers.js"; -import { - SecurityCenterOptionalParams, - UpdateSensitivitySettingsRequest, - UpdateSensitivitySettingsOptionalParams, - UpdateSensitivitySettingsResponse, - GetSensitivitySettingsOptionalParams, - GetSensitivitySettingsOperationResponse, -} from "./models/index.js"; +import { SecurityCenterOptionalParams } from "./models/index.js"; export class SecurityCenter extends coreClient.ServiceClient { $host: string; @@ -179,10 +172,7 @@ export class SecurityCenter extends coreClient.ServiceClient { subscriptionId: string, options?: SecurityCenterOptionalParams, ); - constructor( - credentials: coreAuth.TokenCredential, - options?: SecurityCenterOptionalParams, - ); + constructor(credentials: coreAuth.TokenCredential, options?: SecurityCenterOptionalParams); constructor( credentials: coreAuth.TokenCredential, subscriptionIdOrOptions?: SecurityCenterOptionalParams | string, @@ -221,8 +211,7 @@ export class SecurityCenter extends coreClient.ServiceClient { userAgentOptions: { userAgentPrefix, }, - endpoint: - options.endpoint ?? options.baseUri ?? "https://management.azure.com", + endpoint: options.endpoint ?? options.baseUri ?? "https://management.azure.com", }; super(optionsWithDefaults); @@ -232,8 +221,7 @@ export class SecurityCenter extends coreClient.ServiceClient { options.pipeline.getOrderedPolicies(); bearerTokenAuthenticationPolicyFound = pipelinePolicies.some( (pipelinePolicy) => - pipelinePolicy.name === - coreRestPipeline.bearerTokenAuthenticationPolicyName, + pipelinePolicy.name === coreRestPipeline.bearerTokenAuthenticationPolicyName, ); } if ( @@ -249,11 +237,9 @@ export class SecurityCenter extends coreClient.ServiceClient { coreRestPipeline.bearerTokenAuthenticationPolicy({ credential: credentials, scopes: - optionsWithDefaults.credentialScopes ?? - `${optionsWithDefaults.endpoint}/.default`, + optionsWithDefaults.credentialScopes ?? `${optionsWithDefaults.endpoint}/.default`, challengeCallbacks: { - authorizeRequestOnChallenge: - coreClient.authorizeRequestOnClaimChallenge, + authorizeRequestOnChallenge: coreClient.authorizeRequestOnClaimChallenge, }, }), ); @@ -264,151 +250,101 @@ export class SecurityCenter extends coreClient.ServiceClient { // Assigning values to Constant parameters this.$host = options.$host || "https://management.azure.com"; this.locations = new LocationsImpl(this); - this.operations = new OperationsImpl(this); this.tasks = new TasksImpl(this); this.autoProvisioningSettings = new AutoProvisioningSettingsImpl(this); this.compliances = new CompliancesImpl(this); - this.informationProtectionPolicies = new InformationProtectionPoliciesImpl( - this, - ); + this.informationProtectionPolicies = new InformationProtectionPoliciesImpl(this); this.workspaceSettings = new WorkspaceSettingsImpl(this); this.alertsSuppressionRules = new AlertsSuppressionRulesImpl(this); - this.automations = new AutomationsImpl(this); - this.regulatoryComplianceStandards = new RegulatoryComplianceStandardsImpl( - this, - ); - this.regulatoryComplianceControls = new RegulatoryComplianceControlsImpl( - this, - ); - this.regulatoryComplianceAssessments = - new RegulatoryComplianceAssessmentsImpl(this); + this.regulatoryComplianceStandards = new RegulatoryComplianceStandardsImpl(this); + this.regulatoryComplianceControls = new RegulatoryComplianceControlsImpl(this); + this.regulatoryComplianceAssessments = new RegulatoryComplianceAssessmentsImpl(this); this.subAssessments = new SubAssessmentsImpl(this); this.connectors = new ConnectorsImpl(this); - this.securityContacts = new SecurityContactsImpl(this); this.softwareInventories = new SoftwareInventoriesImpl(this); - this.customAssessmentAutomations = new CustomAssessmentAutomationsImpl( - this, - ); - this.customEntityStoreAssignments = new CustomEntityStoreAssignmentsImpl( - this, - ); + this.customAssessmentAutomations = new CustomAssessmentAutomationsImpl(this); + this.customEntityStoreAssignments = new CustomEntityStoreAssignmentsImpl(this); this.mdeOnboardings = new MdeOnboardingsImpl(this); this.governanceAssignments = new GovernanceAssignmentsImpl(this); this.governanceRules = new GovernanceRulesImpl(this); this.applications = new ApplicationsImpl(this); this.applicationOperations = new ApplicationOperationsImpl(this); - this.securityConnectorApplications = new SecurityConnectorApplicationsImpl( + this.securityConnectorApplications = new SecurityConnectorApplicationsImpl(this); + this.securityConnectorApplication = new SecurityConnectorApplicationImpl(this); + this.securityOperators = new SecurityOperatorsImpl(this); + this.sqlVulnerabilityAssessmentBaselineRules = new SqlVulnerabilityAssessmentBaselineRulesImpl( this, ); - this.securityConnectorApplication = new SecurityConnectorApplicationImpl( + this.sqlVulnerabilityAssessmentScans = new SqlVulnerabilityAssessmentScansImpl(this); + this.sqlVulnerabilityAssessmentScanResults = new SqlVulnerabilityAssessmentScanResultsImpl( this, ); - this.defenderForStorage = new DefenderForStorageImpl(this); - this.securityOperators = new SecurityOperatorsImpl(this); - this.sqlVulnerabilityAssessmentBaselineRules = - new SqlVulnerabilityAssessmentBaselineRulesImpl(this); - this.sqlVulnerabilityAssessmentScans = - new SqlVulnerabilityAssessmentScansImpl(this); - this.sqlVulnerabilityAssessmentScanResults = - new SqlVulnerabilityAssessmentScanResultsImpl(this); this.sensitivitySettings = new SensitivitySettingsImpl(this); this.healthReports = new HealthReportsImpl(this); - this.azureDevOpsOrgs = new AzureDevOpsOrgsImpl(this); - this.azureDevOpsProjects = new AzureDevOpsProjectsImpl(this); - this.azureDevOpsRepos = new AzureDevOpsReposImpl(this); - this.devOpsConfigurations = new DevOpsConfigurationsImpl(this); - this.gitHubOwners = new GitHubOwnersImpl(this); - this.gitHubRepos = new GitHubReposImpl(this); - this.gitLabGroups = new GitLabGroupsImpl(this); - this.gitLabSubgroups = new GitLabSubgroupsImpl(this); - this.gitLabProjects = new GitLabProjectsImpl(this); - this.devOpsOperationResults = new DevOpsOperationResultsImpl(this); + this.automations = new AutomationsImpl(this); + this.securityContacts = new SecurityContactsImpl(this); this.securityConnectors = new SecurityConnectorsImpl(this); + this.operations = new OperationsImpl(this); + this.defenderForStorage = new DefenderForStorageImpl(this); this.complianceResults = new ComplianceResultsImpl(this); this.advancedThreatProtection = new AdvancedThreatProtectionImpl(this); this.deviceSecurityGroups = new DeviceSecurityGroupsImpl(this); - this.iotSecuritySolutionAnalytics = new IotSecuritySolutionAnalyticsImpl( - this, - ); + this.iotSecuritySolutionAnalytics = new IotSecuritySolutionAnalyticsImpl(this); this.iotSecuritySolutionsAnalyticsAggregatedAlert = new IotSecuritySolutionsAnalyticsAggregatedAlertImpl(this); this.iotSecuritySolutionsAnalyticsRecommendation = new IotSecuritySolutionsAnalyticsRecommendationImpl(this); this.iotSecuritySolution = new IotSecuritySolutionImpl(this); - this.adaptiveNetworkHardenings = new AdaptiveNetworkHardeningsImpl(this); this.allowedConnections = new AllowedConnectionsImpl(this); - this.adaptiveApplicationControls = new AdaptiveApplicationControlsImpl( - this, - ); - this.discoveredSecuritySolutions = new DiscoveredSecuritySolutionsImpl( - this, - ); + this.discoveredSecuritySolutions = new DiscoveredSecuritySolutionsImpl(this); this.externalSecuritySolutions = new ExternalSecuritySolutionsImpl(this); this.jitNetworkAccessPolicies = new JitNetworkAccessPoliciesImpl(this); this.secureScores = new SecureScoresImpl(this); this.secureScoreControls = new SecureScoreControlsImpl(this); - this.secureScoreControlDefinitions = new SecureScoreControlDefinitionsImpl( - this, - ); + this.secureScoreControlDefinitions = new SecureScoreControlDefinitionsImpl(this); this.securitySolutions = new SecuritySolutionsImpl(this); this.securitySolutionsReferenceDataOperations = new SecuritySolutionsReferenceDataOperationsImpl(this); - this.serverVulnerabilityAssessmentOperations = - new ServerVulnerabilityAssessmentOperationsImpl(this); + this.serverVulnerabilityAssessmentOperations = new ServerVulnerabilityAssessmentOperationsImpl( + this, + ); this.topology = new TopologyImpl(this); this.assessmentsMetadata = new AssessmentsMetadataImpl(this); this.assessments = new AssessmentsImpl(this); this.alerts = new AlertsImpl(this); this.settings = new SettingsImpl(this); - this.serverVulnerabilityAssessmentsSettings = - new ServerVulnerabilityAssessmentsSettingsImpl(this); + this.serverVulnerabilityAssessmentsSettings = new ServerVulnerabilityAssessmentsSettingsImpl( + this, + ); this.aPICollections = new APICollectionsImpl(this); this.pricings = new PricingsImpl(this); - } - - /** - * 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, - ); + this.securityStandards = new SecurityStandardsImpl(this); + this.standardAssignments = new StandardAssignmentsImpl(this); + this.customRecommendations = new CustomRecommendationsImpl(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); } locations: Locations; - operations: Operations; tasks: Tasks; autoProvisioningSettings: AutoProvisioningSettings; compliances: Compliances; informationProtectionPolicies: InformationProtectionPolicies; workspaceSettings: WorkspaceSettings; alertsSuppressionRules: AlertsSuppressionRules; - automations: Automations; regulatoryComplianceStandards: RegulatoryComplianceStandards; regulatoryComplianceControls: RegulatoryComplianceControls; regulatoryComplianceAssessments: RegulatoryComplianceAssessments; subAssessments: SubAssessments; connectors: Connectors; - securityContacts: SecurityContacts; softwareInventories: SoftwareInventories; customAssessmentAutomations: CustomAssessmentAutomations; customEntityStoreAssignments: CustomEntityStoreAssignments; @@ -419,24 +355,17 @@ export class SecurityCenter extends coreClient.ServiceClient { applicationOperations: ApplicationOperations; securityConnectorApplications: SecurityConnectorApplications; securityConnectorApplication: SecurityConnectorApplication; - defenderForStorage: DefenderForStorage; securityOperators: SecurityOperators; sqlVulnerabilityAssessmentBaselineRules: SqlVulnerabilityAssessmentBaselineRules; sqlVulnerabilityAssessmentScans: SqlVulnerabilityAssessmentScans; sqlVulnerabilityAssessmentScanResults: SqlVulnerabilityAssessmentScanResults; sensitivitySettings: SensitivitySettings; healthReports: HealthReports; - azureDevOpsOrgs: AzureDevOpsOrgs; - azureDevOpsProjects: AzureDevOpsProjects; - azureDevOpsRepos: AzureDevOpsRepos; - devOpsConfigurations: DevOpsConfigurations; - gitHubOwners: GitHubOwners; - gitHubRepos: GitHubRepos; - gitLabGroups: GitLabGroups; - gitLabSubgroups: GitLabSubgroups; - gitLabProjects: GitLabProjects; - devOpsOperationResults: DevOpsOperationResults; + automations: Automations; + securityContacts: SecurityContacts; securityConnectors: SecurityConnectors; + operations: Operations; + defenderForStorage: DefenderForStorage; complianceResults: ComplianceResults; advancedThreatProtection: AdvancedThreatProtection; deviceSecurityGroups: DeviceSecurityGroups; @@ -444,9 +373,7 @@ export class SecurityCenter extends coreClient.ServiceClient { iotSecuritySolutionsAnalyticsAggregatedAlert: IotSecuritySolutionsAnalyticsAggregatedAlert; iotSecuritySolutionsAnalyticsRecommendation: IotSecuritySolutionsAnalyticsRecommendation; iotSecuritySolution: IotSecuritySolution; - adaptiveNetworkHardenings: AdaptiveNetworkHardenings; allowedConnections: AllowedConnections; - adaptiveApplicationControls: AdaptiveApplicationControls; discoveredSecuritySolutions: DiscoveredSecuritySolutions; externalSecuritySolutions: ExternalSecuritySolutions; jitNetworkAccessPolicies: JitNetworkAccessPolicies; @@ -464,41 +391,17 @@ export class SecurityCenter extends coreClient.ServiceClient { serverVulnerabilityAssessmentsSettings: ServerVulnerabilityAssessmentsSettings; aPICollections: APICollections; pricings: Pricings; + securityStandards: SecurityStandards; + standardAssignments: StandardAssignments; + customRecommendations: CustomRecommendations; + 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.apiVersion13], - urlParameters: [Parameters.$host], - headerParameters: [Parameters.accept, Parameters.contentType], - mediaType: "json", - serializer, -}; -const getSensitivitySettingsOperationSpec: coreClient.OperationSpec = { - path: "/providers/Microsoft.Security/sensitivitySettings/current", - httpMethod: "GET", - responses: { - 200: { - bodyMapper: Mappers.GetSensitivitySettingsResponse, - }, - default: { - bodyMapper: Mappers.CloudError, - }, - }, - queryParameters: [Parameters.apiVersion13], - urlParameters: [Parameters.$host], - headerParameters: [Parameters.accept], - serializer, -}; diff --git a/sdk/security/arm-security/test/sampleTest.spec.ts b/sdk/security/arm-security/test/sampleTest.spec.ts new file mode 100644 index 000000000000..90b3c8a868b4 --- /dev/null +++ b/sdk/security/arm-security/test/sampleTest.spec.ts @@ -0,0 +1,38 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +import { Recorder, RecorderStartOptions } from "@azure-tools/test-recorder"; +import { afterEach, beforeEach, describe, it, assert } from "vitest"; + +const replaceableVariables: Record = { + AZURE_CLIENT_ID: "azure_client_id", + AZURE_CLIENT_SECRET: "azure_client_secret", + AZURE_TENANT_ID: "88888888-8888-8888-8888-888888888888", + SUBSCRIPTION_ID: "azure_subscription_id", +}; + +const recorderOptions: RecorderStartOptions = { + envSetupForPlayback: replaceableVariables, +}; + +describe("My test", () => { + let recorder: Recorder; + + beforeEach(async () => { + recorder = new Recorder(); + await recorder.start(recorderOptions); + }); + + afterEach(async () => { + await recorder.stop(); + }); + + it("sample test", async () => { + assert(true); + }); +}); diff --git a/sdk/security/arm-security/test/snippets.spec.ts b/sdk/security/arm-security/test/snippets.spec.ts index 6a3ed38a7e97..d10d5ac4203d 100644 --- a/sdk/security/arm-security/test/snippets.spec.ts +++ b/sdk/security/arm-security/test/snippets.spec.ts @@ -1,5 +1,10 @@ -// Copyright (c) Microsoft Corporation. -// Licensed under the MIT License. +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ import { SecurityCenter } from "../src/index.js"; import { DefaultAzureCredential, InteractiveBrowserCredential } from "@azure/identity"; diff --git a/sdk/security/arm-security/tsconfig.browser.config.json b/sdk/security/arm-security/tsconfig.browser.config.json index 0c8bafa97126..75871518e3a0 100644 --- a/sdk/security/arm-security/tsconfig.browser.config.json +++ b/sdk/security/arm-security/tsconfig.browser.config.json @@ -1,6 +1,3 @@ { - "extends": [ - "./tsconfig.test.json", - "../../../tsconfig.browser.base.json" - ] + "extends": ["./tsconfig.test.json", "../../../tsconfig.browser.base.json"] } diff --git a/sdk/security/arm-security/tsconfig.json b/sdk/security/arm-security/tsconfig.json index 19ceb382b521..59ea83c046bf 100644 --- a/sdk/security/arm-security/tsconfig.json +++ b/sdk/security/arm-security/tsconfig.json @@ -3,11 +3,8 @@ { "path": "./tsconfig.src.json" }, - { - "path": "./tsconfig.samples.json" - }, { "path": "./tsconfig.test.json" } ] -} +} \ No newline at end of file diff --git a/sdk/security/arm-security/tsconfig.samples.json b/sdk/security/arm-security/tsconfig.samples.json index c78c2c70841f..c100e8646d25 100644 --- a/sdk/security/arm-security/tsconfig.samples.json +++ b/sdk/security/arm-security/tsconfig.samples.json @@ -2,9 +2,7 @@ "extends": "../../../tsconfig.samples.base.json", "compilerOptions": { "paths": { - "@azure/arm-security": [ - "./dist/esm" - ] + "@azure/arm-security": ["./dist/esm"] } } } diff --git a/sdk/security/arm-security/tsconfig.test.json b/sdk/security/arm-security/tsconfig.test.json index 3c2b783a8c1b..290ca214aebc 100644 --- a/sdk/security/arm-security/tsconfig.test.json +++ b/sdk/security/arm-security/tsconfig.test.json @@ -1,6 +1,3 @@ { - "extends": [ - "./tsconfig.src.json", - "../../../tsconfig.test.base.json" - ] + "extends": ["./tsconfig.src.json", "../../../tsconfig.test.base.json"] }